@udus/notion-renderer
Version:

27 lines • 1.09 kB
TypeScript
import type { BlockBlockProps } from "./block.js";
import type { Overwrite } from "../../utils.js";
import type { TextRequest } from "../common/common.js";
import type { RichTextItemType } from "../richText/richTextItem.js";
import type { LinkTypeData, PhotoTypeData, VideoTypeData, RichTypeData } from "@extractus/oembed-extractor";
import type { VideoBlockObjectResponse } from "@notionhq/client/build/src/api-endpoints.js";
import type { ComponentType } from "react";
export type VideoBlockObject = Overwrite<VideoBlockObjectResponse, {
video: {
type: "external";
external: {
url: TextRequest;
};
caption: Array<RichTextItemType>;
oembed?: LinkTypeData | PhotoTypeData | VideoTypeData | RichTypeData;
} | {
type: "file";
file: {
url: string;
expiry_time: string;
};
caption: Array<RichTextItemType>;
};
}>;
export type VideoBlockProps = BlockBlockProps<VideoBlockObject>;
export type VideoBlock = ComponentType<VideoBlockProps>;
//# sourceMappingURL=video.d.ts.map