rotion 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exporter/files.d.ts +1 -0
- package/dist/exporter/files.js +35 -32
- package/dist/exporter/files.js.map +1 -1
- package/dist/ui/cjs/index.css +1 -1
- package/dist/ui/cjs/index.js +1 -1
- package/dist/ui/cjs/index.js.map +1 -1
- package/dist/ui/cjs/types/exporter/files.d.ts +1 -0
- package/dist/ui/cjs/types/ui/components/Page/EmbedBlock/EmbedBlock.types.d.ts +10 -1
- package/dist/ui/cjs/types/ui/components/Page/VideoBlock/VideoBlock.types.d.ts +1 -4
- package/dist/ui/cjs/types/ui/components/RichText/Caption.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/RichText/RichText.types.d.ts +4 -0
- package/dist/ui/esm/index.css +1 -1
- package/dist/ui/esm/index.js +1 -1
- package/dist/ui/esm/index.js.map +1 -1
- package/dist/ui/esm/types/exporter/files.d.ts +1 -0
- package/dist/ui/esm/types/ui/components/Page/EmbedBlock/EmbedBlock.types.d.ts +10 -1
- package/dist/ui/esm/types/ui/components/Page/VideoBlock/VideoBlock.types.d.ts +1 -4
- package/dist/ui/esm/types/ui/components/RichText/Caption.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/RichText/RichText.types.d.ts +4 -0
- package/dist/ui/style-without-dark.css +1 -1
- package/dist/ui/umd/index.css +1 -1
- package/dist/ui/umd/index.js +1 -1
- package/dist/ui/umd/index.js.map +1 -1
- package/dist/ui/umd/types/exporter/files.d.ts +1 -0
- package/dist/ui/umd/types/ui/components/Page/EmbedBlock/EmbedBlock.types.d.ts +10 -1
- package/dist/ui/umd/types/ui/components/Page/VideoBlock/VideoBlock.types.d.ts +1 -4
- package/dist/ui/umd/types/ui/components/RichText/Caption.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/RichText/RichText.types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export declare const getHtmlMeta: (reqUrl: string, httpFunc?: (reqUrl: string) =
|
|
|
26
26
|
icon: string;
|
|
27
27
|
}>;
|
|
28
28
|
export declare const getVideoHtml: (block: VideoBlockObjectResponseEx) => Promise<string>;
|
|
29
|
+
export declare function getSlideshareOembedUrl(reqUrl: string, httpFunc?: (reqUrl: string) => Promise<string>): Promise<string>;
|
|
29
30
|
export declare const getEmbedHtml: (block: EmbedBlockObjectResponseEx) => Promise<string>;
|
|
30
31
|
export declare const isEmpty: (obj: Object) => boolean;
|
|
31
32
|
export declare function getVideoType(uri: string): "video/mp4" | "video/webm" | "video/ogg" | "";
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import type { EmbedBlockObjectResponseEx } from '../../../../exporter';
|
|
1
|
+
import type { EmbedBlockObjectResponseEx, RichTextItemResponse } from '../../../../exporter';
|
|
2
2
|
export interface EmbedBlockProps {
|
|
3
3
|
block: EmbedBlockObjectResponseEx;
|
|
4
4
|
}
|
|
5
|
+
export interface EmbedProps {
|
|
6
|
+
type: 'speakerdeck' | 'applemusic' | 'googlemap';
|
|
7
|
+
html: string;
|
|
8
|
+
caption: RichTextItemResponse[];
|
|
9
|
+
}
|
|
10
|
+
export interface OembedProps {
|
|
11
|
+
html: string;
|
|
12
|
+
caption: RichTextItemResponse[];
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VideoBlockObjectResponseEx, VideoFile, VideoExternal
|
|
1
|
+
import type { VideoBlockObjectResponseEx, VideoFile, VideoExternal } from '../../../../exporter';
|
|
2
2
|
export interface VideoBlockProps {
|
|
3
3
|
block: VideoBlockObjectResponseEx;
|
|
4
4
|
}
|
|
@@ -8,6 +8,3 @@ export interface VideoFileProps {
|
|
|
8
8
|
export interface VideoExternalProps {
|
|
9
9
|
video: VideoExternal;
|
|
10
10
|
}
|
|
11
|
-
export interface CaptionProps {
|
|
12
|
-
caption: RichTextItemResponse[];
|
|
13
|
-
}
|