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.
Files changed (29) hide show
  1. package/dist/exporter/files.d.ts +1 -0
  2. package/dist/exporter/files.js +35 -32
  3. package/dist/exporter/files.js.map +1 -1
  4. package/dist/ui/cjs/index.css +1 -1
  5. package/dist/ui/cjs/index.js +1 -1
  6. package/dist/ui/cjs/index.js.map +1 -1
  7. package/dist/ui/cjs/types/exporter/files.d.ts +1 -0
  8. package/dist/ui/cjs/types/ui/components/Page/EmbedBlock/EmbedBlock.types.d.ts +10 -1
  9. package/dist/ui/cjs/types/ui/components/Page/VideoBlock/VideoBlock.types.d.ts +1 -4
  10. package/dist/ui/cjs/types/ui/components/RichText/Caption.d.ts +4 -0
  11. package/dist/ui/cjs/types/ui/components/RichText/RichText.types.d.ts +4 -0
  12. package/dist/ui/esm/index.css +1 -1
  13. package/dist/ui/esm/index.js +1 -1
  14. package/dist/ui/esm/index.js.map +1 -1
  15. package/dist/ui/esm/types/exporter/files.d.ts +1 -0
  16. package/dist/ui/esm/types/ui/components/Page/EmbedBlock/EmbedBlock.types.d.ts +10 -1
  17. package/dist/ui/esm/types/ui/components/Page/VideoBlock/VideoBlock.types.d.ts +1 -4
  18. package/dist/ui/esm/types/ui/components/RichText/Caption.d.ts +4 -0
  19. package/dist/ui/esm/types/ui/components/RichText/RichText.types.d.ts +4 -0
  20. package/dist/ui/style-without-dark.css +1 -1
  21. package/dist/ui/umd/index.css +1 -1
  22. package/dist/ui/umd/index.js +1 -1
  23. package/dist/ui/umd/index.js.map +1 -1
  24. package/dist/ui/umd/types/exporter/files.d.ts +1 -0
  25. package/dist/ui/umd/types/ui/components/Page/EmbedBlock/EmbedBlock.types.d.ts +10 -1
  26. package/dist/ui/umd/types/ui/components/Page/VideoBlock/VideoBlock.types.d.ts +1 -4
  27. package/dist/ui/umd/types/ui/components/RichText/Caption.d.ts +4 -0
  28. package/dist/ui/umd/types/ui/components/RichText/RichText.types.d.ts +4 -0
  29. 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, RichTextItemResponse } from '../../../../exporter';
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
- }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { CaptionProps } from './RichText.types';
3
+ declare const Caption: ({ type, caption }: CaptionProps) => React.JSX.Element;
4
+ export default Caption;
@@ -5,3 +5,7 @@ export interface RichTextProps {
5
5
  key?: string;
6
6
  children?: ReactNode;
7
7
  }
8
+ export interface CaptionProps {
9
+ type: 'embed' | 'video';
10
+ caption: RichTextItemResponse[];
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotion",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "license": "MIT",
5
5
  "repository": "linyows/rotion",
6
6
  "description": "This is react components that uses the notion API to display the notion's database and page.",