@car-cutter/vanilla-webplayer 0.6.1 → 0.7.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 +18 -11
- package/dist/index.js +2588 -2582
- package/dist/index.umd.cjs +10 -10
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,12 +10,12 @@ declare type Category = {
|
|
|
10
10
|
|
|
11
11
|
export declare type Composition = {
|
|
12
12
|
aspectRatio: AspectRatio;
|
|
13
|
-
imageHdWidth:
|
|
14
|
-
imageSubWidths:
|
|
13
|
+
imageHdWidth: MediaWidth;
|
|
14
|
+
imageSubWidths: MediaWidth[];
|
|
15
15
|
categories: Category[];
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
export declare const DEFAULT_EVENT_PREFIX
|
|
18
|
+
export declare const DEFAULT_EVENT_PREFIX = "cc-webplayer:" satisfies string;
|
|
19
19
|
|
|
20
20
|
export declare const EVENT_COMPOSITION_LOAD_ERROR = "composition-load-error";
|
|
21
21
|
|
|
@@ -35,6 +35,8 @@ export declare const EVENT_HOTSPOTS_OFF = "hotspots-off";
|
|
|
35
35
|
|
|
36
36
|
export declare const EVENT_HOTSPOTS_ON = "hotspots-on";
|
|
37
37
|
|
|
38
|
+
export declare const EVENT_ITEM_CHANGE = "item-change";
|
|
39
|
+
|
|
38
40
|
/**
|
|
39
41
|
* Generates a URL for fetching the composition JSON for a given customer and vehicle.
|
|
40
42
|
*
|
|
@@ -65,16 +67,20 @@ declare type Hotspot = {
|
|
|
65
67
|
|
|
66
68
|
declare type ImageItem = { type: "image" } & ImageWithHotspots;
|
|
67
69
|
|
|
68
|
-
declare type ImageLoadStrategy = "quality" | "speed";
|
|
69
|
-
|
|
70
|
-
declare type ImageWidth = number;
|
|
71
|
-
|
|
72
70
|
declare type ImageWithHotspots = {
|
|
73
71
|
src: string;
|
|
74
72
|
hotspots?: Hotspot[];
|
|
75
73
|
};
|
|
76
74
|
|
|
77
|
-
declare type Item = ImageItem | VideoItem | ThreeSixtyItem;
|
|
75
|
+
export declare type Item = ImageItem | VideoItem | ThreeSixtyItem;
|
|
76
|
+
|
|
77
|
+
export declare type MediaLoadStrategy = "quality" | "balanced" | "speed";
|
|
78
|
+
|
|
79
|
+
declare type MediaLoadStrategy_2 = "quality" | "balanced" | "speed";
|
|
80
|
+
|
|
81
|
+
declare type MediaWidth = number;
|
|
82
|
+
|
|
83
|
+
declare type MediaWidth_2 = number;
|
|
78
84
|
|
|
79
85
|
declare type ThreeSixtyItem = {
|
|
80
86
|
type: "360";
|
|
@@ -96,9 +102,10 @@ export declare type WebPlayerProps = {
|
|
|
96
102
|
hideCategories?: boolean;
|
|
97
103
|
infiniteCarrousel?: boolean;
|
|
98
104
|
permanentGallery?: boolean;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
mediaLoadStrategy?: MediaLoadStrategy_2;
|
|
106
|
+
minMediaWidth?: MediaWidth_2;
|
|
107
|
+
maxMediaWidth?: MediaWidth_2;
|
|
108
|
+
preloadRange?: number;
|
|
102
109
|
preventFullScreen?: boolean;
|
|
103
110
|
eventPrefix?: string;
|
|
104
111
|
reverse360?: boolean;
|