@car-cutter/vanilla-webplayer 0.11.0 → 0.13.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 +13 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -81,7 +81,16 @@ declare type ImageWithHotspots = {
|
|
|
81
81
|
hotspots?: Hotspot[];
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
declare type InteriorThreeSixtyItem = {
|
|
85
|
+
type: "interior-360";
|
|
86
|
+
poster?: string;
|
|
87
|
+
} & ImageWithHotspots;
|
|
88
|
+
|
|
89
|
+
export declare type Item =
|
|
90
|
+
| ImageItem
|
|
91
|
+
| VideoItem
|
|
92
|
+
| ThreeSixtyItem
|
|
93
|
+
| InteriorThreeSixtyItem;
|
|
85
94
|
|
|
86
95
|
export declare type MediaLoadStrategy = "quality" | "balanced" | "speed";
|
|
87
96
|
|
|
@@ -123,6 +132,7 @@ declare type WebPlayerIconName =
|
|
|
123
132
|
| "UI_PLUS" // Increase zoom
|
|
124
133
|
| "UI_REDUCE" // Reducing an extended view
|
|
125
134
|
| "UI_360" // 360-degree view
|
|
135
|
+
| "UI_INTERIOR_360" // interior 360 view
|
|
126
136
|
| "UI_VOLUME" // Video volume
|
|
127
137
|
| "UI_VOLUME_OFF" // Muted video
|
|
128
138
|
| "CONTROLS_PREV" // Go to previous media
|
|
@@ -148,8 +158,9 @@ declare type WebPlayerProps = {
|
|
|
148
158
|
maxMediaWidth?: MediaWidth;
|
|
149
159
|
preloadRange?: number;
|
|
150
160
|
autoLoad360?: boolean;
|
|
161
|
+
autoLoadInterior360?: boolean;
|
|
151
162
|
|
|
152
|
-
//
|
|
163
|
+
// Miscellaneous
|
|
153
164
|
categoriesFilter?: string;
|
|
154
165
|
extendBehavior?: ExtendBehavior;
|
|
155
166
|
eventPrefix?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@car-cutter/vanilla-webplayer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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.13.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@car-cutter/eslint-config": "*",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"browserslist-to-esbuild": "^2.1.1",
|
|
41
41
|
"eslint": "^8.57.0",
|
|
42
42
|
"typescript": "^5.5.4",
|
|
43
|
-
"vite": "^5.4.
|
|
43
|
+
"vite": "^5.4.19",
|
|
44
44
|
"vite-bundle-visualizer": "^1.2.1",
|
|
45
45
|
"vite-plugin-dts": "^4.2.1"
|
|
46
46
|
},
|