@car-cutter/react-webplayer 0.7.0 → 0.8.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/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { PropsWithChildren } from 'react';
2
3
 
3
4
  declare type AspectRatio = `${number}:${number}`;
4
5
 
@@ -90,7 +91,7 @@ declare type ThreeSixtyItem = {
90
91
  declare type VideoItem = {
91
92
  type: "video";
92
93
  src: string;
93
- poster: string;
94
+ poster?: string;
94
95
  };
95
96
 
96
97
  export declare const WEB_PLAYER_ICON_WC_TAG = "cc-webplayer-icon";
@@ -99,14 +100,22 @@ export declare const WEB_PLAYER_WC_TAG = "cc-webplayer";
99
100
 
100
101
  export declare const WebPlayer: FC<WebPlayerProps>;
101
102
 
102
- export declare const WebPlayerIcon: FC<WebPlayerIconProps>;
103
+ export declare const WebPlayerCustomMedia: FC<PropsWithChildren<WebPlayerCustomMediaProps>>;
104
+
105
+ export declare type WebPlayerCustomMediaProps = {
106
+ index: number;
107
+ thumbnailSrc?: string;
108
+ };
109
+
110
+ export declare const WebPlayerIcon: FC<PropsWithChildren<WebPlayerIconProps>>;
111
+
112
+ declare type WebPlayerIconName = "UI_ARROW_RIGHT" | "UI_BURGER" | "UI_CLOSE" | "UI_EXTEND" | "UI_GALLERY" | "UI_HOTSPOTS" | "UI_IMAGE" | "UI_MINUS" | "UI_PAUSE" | "UI_PLAY" | "UI_PLUS" | "UI_REDUCE" | "UI_360" | "UI_VOLUME" | "UI_VOLUME_OFF" | "CONTROLS_PREV" | "CONTROLS_NEXT" | (string & {});
103
113
 
104
114
  export declare type WebPlayerIconProps = {
105
- name: string;
106
- color?: string;
115
+ name: WebPlayerIconName;
107
116
  };
108
117
 
109
- export declare type WebPlayerProps = WebPlayerProps_2 & {
118
+ export declare type WebPlayerProps = PropsWithChildren<WebPlayerProps_2> & {
110
119
  onCompositionLoading?: (url: string) => void;
111
120
  onCompositionLoaded?: (composition: Composition) => void;
112
121
  onCompositionLoadError?: (error: unknown) => void;
@@ -120,7 +129,7 @@ export declare type WebPlayerProps = WebPlayerProps_2 & {
120
129
  onHotspotsOff?: () => void;
121
130
  onGalleryOpen?: () => void;
122
131
  onGalleryClose?: () => void;
123
- };
132
+ } & Pick<React.HTMLAttributes<HTMLElement>, "className" | "style">;
124
133
 
125
134
  declare type WebPlayerProps_2 = {
126
135
  compositionUrl: string;