@car-cutter/vanilla-webplayer 0.9.0 → 0.11.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 +10 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -44,18 +44,20 @@ export declare const EVENT_HOTSPOTS_ON = "hotspots-on";
|
|
|
44
44
|
|
|
45
45
|
export declare const EVENT_ITEM_CHANGE = "item-change";
|
|
46
46
|
|
|
47
|
+
declare type ExtendBehavior = "full_screen" | "event" | "none";
|
|
48
|
+
|
|
47
49
|
/**
|
|
48
50
|
* Generates a URL for fetching the composition JSON for a given customer and vehicle.
|
|
49
51
|
*
|
|
50
|
-
* @param {string}
|
|
52
|
+
* @param {string} customerToken - The CarCutter Customer Token (computed by hasing the Customer ID with SHA-256).
|
|
51
53
|
* @param {string} vin - The Vehicle Identification Number.
|
|
52
54
|
* @returns {string} The URL to fetch the composition JSON.
|
|
53
55
|
*/
|
|
54
56
|
export declare function generateCompositionUrl(
|
|
55
|
-
|
|
57
|
+
customerToken: string,
|
|
56
58
|
vin: string
|
|
57
59
|
): string {
|
|
58
|
-
return `https://cdn.car-cutter.com/gallery/${
|
|
60
|
+
return `https://cdn.car-cutter.com/gallery/${customerToken}/${vin}/composition_v3.json`;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
declare type Hotspot = {
|
|
@@ -136,7 +138,7 @@ declare type WebPlayerProps = {
|
|
|
136
138
|
compositionUrl: string;
|
|
137
139
|
|
|
138
140
|
// Layout
|
|
139
|
-
|
|
141
|
+
hideCategoriesNav?: boolean;
|
|
140
142
|
infiniteCarrousel?: boolean;
|
|
141
143
|
permanentGallery?: boolean;
|
|
142
144
|
|
|
@@ -145,10 +147,13 @@ declare type WebPlayerProps = {
|
|
|
145
147
|
minMediaWidth?: MediaWidth;
|
|
146
148
|
maxMediaWidth?: MediaWidth;
|
|
147
149
|
preloadRange?: number;
|
|
150
|
+
autoLoad360?: boolean;
|
|
148
151
|
|
|
149
152
|
// Miscelaneous
|
|
150
|
-
|
|
153
|
+
categoriesFilter?: string;
|
|
154
|
+
extendBehavior?: ExtendBehavior;
|
|
151
155
|
eventPrefix?: string;
|
|
156
|
+
demoSpin?: boolean;
|
|
152
157
|
reverse360?: boolean;
|
|
153
158
|
};
|
|
154
159
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@car-cutter/vanilla-webplayer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CarCutter",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"analyze": "vite-bundle-visualizer"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@car-cutter/wc-webplayer": "0.
|
|
34
|
+
"@car-cutter/wc-webplayer": "0.11.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@car-cutter/eslint-config": "*",
|