@car-cutter/vue-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
@@ -3,6 +3,88 @@ import { ComponentProvideOptions } from 'vue';
3
3
  import { DefineComponent } from 'vue';
4
4
  import { PublicProps } from 'vue';
5
5
 
6
+ declare const __VLS_component: DefineComponent<WebPlayerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ compositionLoading: (url: string) => any;
8
+ compositionLoaded: (composition: Composition_2) => any;
9
+ compositionLoadError: (error: unknown) => any;
10
+ itemChange: (props: {
11
+ index: number;
12
+ item: Item_2;
13
+ }) => any;
14
+ extendModeOn: () => any;
15
+ extendModeOff: () => any;
16
+ hotspotsOn: () => any;
17
+ hotspotsOff: () => any;
18
+ galleryOpen: () => any;
19
+ galleryClose: () => any;
20
+ }, string, PublicProps, Readonly<WebPlayerProps> & Readonly<{
21
+ onCompositionLoading?: ((url: string) => any) | undefined;
22
+ onCompositionLoaded?: ((composition: Composition_2) => any) | undefined;
23
+ onCompositionLoadError?: ((error: unknown) => any) | undefined;
24
+ onItemChange?: ((props: {
25
+ index: number;
26
+ item: Item_2;
27
+ }) => any) | undefined;
28
+ onExtendModeOn?: (() => any) | undefined;
29
+ onExtendModeOff?: (() => any) | undefined;
30
+ onHotspotsOn?: (() => any) | undefined;
31
+ onHotspotsOff?: (() => any) | undefined;
32
+ onGalleryOpen?: (() => any) | undefined;
33
+ onGalleryClose?: (() => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
35
+
36
+ declare const __VLS_component_2: DefineComponent<WebPlayerCustomMediaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WebPlayerCustomMediaProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
37
+
38
+ declare const __VLS_component_3: DefineComponent<WebPlayerIconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WebPlayerIconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
39
+
40
+ declare function __VLS_template(): {
41
+ slots: {
42
+ default?(_: {}): any;
43
+ };
44
+ refs: {};
45
+ attrs: Partial<{}>;
46
+ };
47
+
48
+ declare function __VLS_template_2(): {
49
+ slots: {
50
+ default?(_: {}): any;
51
+ };
52
+ refs: {};
53
+ attrs: Partial<{}>;
54
+ };
55
+
56
+ declare function __VLS_template_3(): {
57
+ slots: {
58
+ default?(_: {}): any;
59
+ };
60
+ refs: {};
61
+ attrs: Partial<{}>;
62
+ };
63
+
64
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
65
+
66
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
67
+
68
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
69
+
70
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
75
+
76
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
81
+
82
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
83
+ new (): {
84
+ $slots: S;
85
+ };
86
+ };
87
+
6
88
  declare type AspectRatio = `${number}:${number}`;
7
89
 
8
90
  declare type AspectRatio_2 = `${number}:${number}`;
@@ -138,48 +220,27 @@ declare type ThreeSixtyItem_2 = {
138
220
  declare type VideoItem = {
139
221
  type: "video";
140
222
  src: string;
141
- poster: string;
223
+ poster?: string;
142
224
  };
143
225
 
144
226
  declare type VideoItem_2 = {
145
227
  type: "video";
146
228
  src: string;
147
- poster: string;
229
+ poster?: string;
148
230
  };
149
231
 
150
232
  export declare const WEB_PLAYER_ICON_WC_TAG = "cc-webplayer-icon";
151
233
 
152
234
  export declare const WEB_PLAYER_WC_TAG = "cc-webplayer";
153
235
 
154
- export declare const WebPlayer: DefineComponent<WebPlayerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
155
- compositionLoading: (url: string) => any;
156
- compositionLoaded: (composition: Composition_2) => any;
157
- compositionLoadError: (error: unknown) => any;
158
- itemChange: (props: {
159
- index: number;
160
- item: Item_2;
161
- }) => any;
162
- extendModeOn: () => any;
163
- extendModeOff: () => any;
164
- hotspotsOn: () => any;
165
- hotspotsOff: () => any;
166
- galleryOpen: () => any;
167
- galleryClose: () => any;
168
- }, string, PublicProps, Readonly<WebPlayerProps> & Readonly<{
169
- onCompositionLoading?: ((url: string) => any) | undefined;
170
- onCompositionLoaded?: ((composition: Composition_2) => any) | undefined;
171
- onCompositionLoadError?: ((error: unknown) => any) | undefined;
172
- onItemChange?: ((props: {
173
- index: number;
174
- item: Item_2;
175
- }) => any) | undefined;
176
- onExtendModeOn?: (() => any) | undefined;
177
- onExtendModeOff?: (() => any) | undefined;
178
- onHotspotsOn?: (() => any) | undefined;
179
- onHotspotsOff?: (() => any) | undefined;
180
- onGalleryOpen?: (() => any) | undefined;
181
- onGalleryClose?: (() => any) | undefined;
182
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
236
+ export declare const WebPlayer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
237
+
238
+ export declare const WebPlayerCustomMedia: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
239
+
240
+ export declare type WebPlayerCustomMediaProps = {
241
+ index: number;
242
+ thumbnailSrc?: string;
243
+ };
183
244
 
184
245
  export declare type WebPlayerEvents = {
185
246
  compositionLoading: [url: string];
@@ -197,7 +258,20 @@ export declare type WebPlayerEvents = {
197
258
  galleryClose: [];
198
259
  };
199
260
 
200
- export declare type WebPlayerProps = {
261
+ export declare const WebPlayerIcon: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
262
+
263
+ 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 & {});
264
+
265
+ export declare type WebPlayerIconProps = {
266
+ name: WebPlayerIconName;
267
+ };
268
+
269
+ export declare type WebPlayerProps = WebPlayerProps_2 & {
270
+ class?: string;
271
+ style?: HTMLElement["style"];
272
+ };
273
+
274
+ declare type WebPlayerProps_2 = {
201
275
  compositionUrl: string;
202
276
  hideCategories?: boolean;
203
277
  infiniteCarrousel?: boolean;