@car-cutter/vue-webplayer 3.0.2 → 3.1.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 +12 -3
- package/dist/index.js +6 -6
- package/dist/{utils-BfR5YfQn.js → utils-DkJWyyJQ.js} +3 -3
- package/dist/vue2.d.ts +6 -0
- package/dist/vue2.js +6 -6
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -44,27 +44,30 @@ declare const __VLS_component_2: DefineComponent<WebPlayerCustomMediaProps, {},
|
|
|
44
44
|
declare const __VLS_component_3: DefineComponent<WebPlayerIconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WebPlayerIconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
|
|
46
46
|
declare function __VLS_template(): {
|
|
47
|
+
attrs: Partial<{}>;
|
|
47
48
|
slots: {
|
|
48
49
|
default?(_: {}): any;
|
|
49
50
|
};
|
|
50
51
|
refs: {};
|
|
51
|
-
|
|
52
|
+
rootEl: any;
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
declare function __VLS_template_2(): {
|
|
56
|
+
attrs: Partial<{}>;
|
|
55
57
|
slots: {
|
|
56
58
|
default?(_: {}): any;
|
|
57
59
|
};
|
|
58
60
|
refs: {};
|
|
59
|
-
|
|
61
|
+
rootEl: any;
|
|
60
62
|
};
|
|
61
63
|
|
|
62
64
|
declare function __VLS_template_3(): {
|
|
65
|
+
attrs: Partial<{}>;
|
|
63
66
|
slots: {
|
|
64
67
|
default?(_: {}): any;
|
|
65
68
|
};
|
|
66
69
|
refs: {};
|
|
67
|
-
|
|
70
|
+
rootEl: any;
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -276,12 +279,18 @@ export declare type Item =
|
|
|
276
279
|
| ImageItem
|
|
277
280
|
| VideoItem
|
|
278
281
|
| ThreeSixtyItem
|
|
282
|
+
| NextGenThreeSixtyItem
|
|
279
283
|
| InteriorThreeSixtyItem;
|
|
280
284
|
|
|
281
285
|
export declare type MediaLoadStrategy = "quality" | "balanced" | "speed";
|
|
282
286
|
|
|
283
287
|
declare type MediaWidth = number;
|
|
284
288
|
|
|
289
|
+
declare type NextGenThreeSixtyItem = {
|
|
290
|
+
type: "next360";
|
|
291
|
+
images: ImageWithHotspots[];
|
|
292
|
+
};
|
|
293
|
+
|
|
285
294
|
declare type ThreeSixtyItem = {
|
|
286
295
|
type: "360";
|
|
287
296
|
images: ImageWithHotspots[];
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as d, onMounted as g, onUnmounted as h,
|
|
2
|
-
import { D as B, a as x, E as D, b as R, c as V, d as W, e as w, f as F, g as Y, h as G, i as $, j as U, A as k, k as X, l as j } from "./utils-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as d, onMounted as g, onUnmounted as h, openBlock as y, createElementBlock as T, mergeProps as S, unref as r, renderSlot as u, normalizeProps as O, guardReactiveProps as f } from "vue";
|
|
2
|
+
import { D as B, a as x, E as D, b as R, c as V, d as W, e as w, f as F, g as Y, h as G, i as $, j as U, A as k, k as X, l as j } from "./utils-DkJWyyJQ.js";
|
|
3
|
+
import { W as se, m as re, n as ie, o as ce } from "./utils-DkJWyyJQ.js";
|
|
4
4
|
import { ensureCustomElementsDefinition as H, webPlayerPropsToAttributes as q, webPlayerCustomMediaPropsToAttributes as z, webPlayerIconPropsToAttributes as K } from "@car-cutter/wc-webplayer";
|
|
5
5
|
const ee = /* @__PURE__ */ d({
|
|
6
6
|
__name: "WebPlayer",
|
|
@@ -72,7 +72,7 @@ const ee = /* @__PURE__ */ d({
|
|
|
72
72
|
}), E.forEach((e, t) => {
|
|
73
73
|
document.removeEventListener(t, e);
|
|
74
74
|
});
|
|
75
|
-
}), (e, t) => (
|
|
75
|
+
}), (e, t) => (y(), T("cc-webplayer", S(r(L), {
|
|
76
76
|
class: r(s),
|
|
77
77
|
style: P
|
|
78
78
|
}), [
|
|
@@ -87,7 +87,7 @@ const ee = /* @__PURE__ */ d({
|
|
|
87
87
|
},
|
|
88
88
|
setup(n) {
|
|
89
89
|
const a = z(n);
|
|
90
|
-
return (s, c) => (
|
|
90
|
+
return (s, c) => (y(), T("cc-webplayer-custom-media", O(f(r(a))), [
|
|
91
91
|
u(s.$slots, "default")
|
|
92
92
|
], 16));
|
|
93
93
|
}
|
|
@@ -98,7 +98,7 @@ const ee = /* @__PURE__ */ d({
|
|
|
98
98
|
},
|
|
99
99
|
setup(n) {
|
|
100
100
|
const a = K(n);
|
|
101
|
-
return (s, c) => (
|
|
101
|
+
return (s, c) => (y(), T("cc-webplayer-icon", O(f(r(a))), [
|
|
102
102
|
u(s.$slots, "default")
|
|
103
103
|
], 16));
|
|
104
104
|
}
|
package/dist/vue2.d.ts
CHANGED
|
@@ -98,12 +98,18 @@ export declare type Item =
|
|
|
98
98
|
| ImageItem
|
|
99
99
|
| VideoItem
|
|
100
100
|
| ThreeSixtyItem
|
|
101
|
+
| NextGenThreeSixtyItem
|
|
101
102
|
| InteriorThreeSixtyItem;
|
|
102
103
|
|
|
103
104
|
export declare type MediaLoadStrategy = "quality" | "balanced" | "speed";
|
|
104
105
|
|
|
105
106
|
declare type MediaWidth = number;
|
|
106
107
|
|
|
108
|
+
declare type NextGenThreeSixtyItem = {
|
|
109
|
+
type: "next360";
|
|
110
|
+
images: ImageWithHotspots[];
|
|
111
|
+
};
|
|
112
|
+
|
|
107
113
|
declare type PropsToAttributes<T> = {
|
|
108
114
|
[K in keyof T as CamelToDashed<string & K>]: ToStringOrOptional<T[K]>;
|
|
109
115
|
};
|
package/dist/vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
2
|
-
import { a as u, D as _, A as d, k as h, l as f, E as N, b as T, c as v, d as $, e as y, f as O, g as L, h as b, i as A, j as P } from "./utils-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as i, openBlock as o, createElementBlock as c, normalizeProps as E, guardReactiveProps as p, renderSlot as m } from "vue";
|
|
2
|
+
import { a as u, D as _, A as d, k as h, l as f, E as N, b as T, c as v, d as $, e as y, f as O, g as L, h as b, i as A, j as P } from "./utils-DkJWyyJQ.js";
|
|
3
|
+
import { W as X, m as j, n as H, o as z } from "./utils-DkJWyyJQ.js";
|
|
4
4
|
import { ensureCustomElementsDefinition as C, webPlayerPropsToAttributes as g, webPlayerCustomMediaPropsToAttributes as S, webPlayerIconPropsToAttributes as M } from "@car-cutter/wc-webplayer";
|
|
5
5
|
C();
|
|
6
6
|
const I = i({
|
|
@@ -96,7 +96,7 @@ const I = i({
|
|
|
96
96
|
return n;
|
|
97
97
|
};
|
|
98
98
|
function B(t, e, n, r, s, a) {
|
|
99
|
-
return
|
|
99
|
+
return o(), c("cc-webplayer", E(p(t.attributes)), [
|
|
100
100
|
m(t.$slots, "default")
|
|
101
101
|
], 16);
|
|
102
102
|
}
|
|
@@ -112,7 +112,7 @@ const G = /* @__PURE__ */ l(I, [["render", B]]), D = i({
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
function R(t, e, n, r, s, a) {
|
|
115
|
-
return
|
|
115
|
+
return o(), c("cc-webplayer-custom-media", E(p(t.attributes)), [
|
|
116
116
|
m(t.$slots, "default")
|
|
117
117
|
], 16);
|
|
118
118
|
}
|
|
@@ -127,7 +127,7 @@ const w = /* @__PURE__ */ l(D, [["render", R]]), V = i({
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
function x(t, e, n, r, s, a) {
|
|
130
|
-
return
|
|
130
|
+
return o(), c("cc-webplayer-icon", E(p(t.attributes)), [
|
|
131
131
|
m(t.$slots, "default")
|
|
132
132
|
], 16);
|
|
133
133
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@car-cutter/vue-webplayer",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CarCutter",
|
|
7
7
|
"url": "https://www.car-cutter.com/"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://carcutter.github.io/cars-webplayer-js/",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/carcutter/cars-webplayer-js"
|
|
13
|
+
},
|
|
10
14
|
"description": "Use CarCutter WebPlayer in your Vue app",
|
|
11
15
|
"keywords": [
|
|
12
16
|
"car-cutter",
|
|
@@ -41,7 +45,7 @@
|
|
|
41
45
|
"analyze": "vite-bundle-visualizer"
|
|
42
46
|
},
|
|
43
47
|
"dependencies": {
|
|
44
|
-
"@car-cutter/wc-webplayer": "3.0
|
|
48
|
+
"@car-cutter/wc-webplayer": "3.1.0"
|
|
45
49
|
},
|
|
46
50
|
"peerDependencies": {
|
|
47
51
|
"vue": ">=2"
|
|
@@ -54,7 +58,7 @@
|
|
|
54
58
|
"browserslist-to-esbuild": "^2.1.1",
|
|
55
59
|
"eslint": "^8.57.0",
|
|
56
60
|
"typescript": "^5.5.4",
|
|
57
|
-
"vite": "^5.4.
|
|
61
|
+
"vite": "^5.4.21",
|
|
58
62
|
"vite-bundle-visualizer": "^1.2.1",
|
|
59
63
|
"vite-plugin-dts": "^4.2.1",
|
|
60
64
|
"vue": "^3.5.6",
|