@car-cutter/next-webplayer 3.1.1 → 3.1.2
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.cjs +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +17 -16
- package/dist/legacy.cjs +1 -1
- package/dist/legacy.d.ts +5 -3
- package/dist/legacy.js +17 -16
- package/dist/utils-Dz2dQmYW.cjs +1 -0
- package/dist/utils-WyCmTZH1.js +25 -0
- package/package.json +4 -4
- package/dist/utils-BpzJysIS.cjs +0 -1
- package/dist/utils-dyeaNVPi.js +0 -24
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";var
|
|
1
|
+
"use client";"use strict";var C=Object.create;var L=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,r=Object.prototype.hasOwnProperty;var t=(_,T,N,I)=>{if(T&&typeof T=="object"||typeof T=="function")for(let O of S(T))!r.call(_,O)&&O!==N&&L(_,O,{get:()=>T[O],enumerable:!(I=P(T,O))||I.enumerable});return _};var A=(_,T,N)=>(N=_!=null?C(V(_)):{},t(T||!_||!_.__esModule?L(N,"default",{value:_,enumerable:!0}):N,_));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("next/dynamic"),E=require("./utils-Dz2dQmYW.cjs"),R=e(()=>import("@car-cutter/react-webplayer").then(_=>_.WebPlayer),{ssr:!1}),o=e(()=>import("@car-cutter/react-webplayer").then(_=>_.WebPlayerCustomMedia),{ssr:!1}),D=e(()=>import("@car-cutter/react-webplayer").then(_=>_.WebPlayerIcon),{ssr:!1});exports.ANALYTICS_EVENT_DISPLAY=E.ANALYTICS_EVENT_DISPLAY;exports.ANALYTICS_EVENT_ERROR=E.ANALYTICS_EVENT_ERROR;exports.ANALYTICS_EVENT_INTERACTION=E.ANALYTICS_EVENT_INTERACTION;exports.ANALYTICS_EVENT_LOAD=E.ANALYTICS_EVENT_LOAD;exports.DEFAULT_EVENT_PREFIX=E.DEFAULT_EVENT_PREFIX;exports.EVENT_COMPOSITION_LOADED=E.EVENT_COMPOSITION_LOADED;exports.EVENT_COMPOSITION_LOADING=E.EVENT_COMPOSITION_LOADING;exports.EVENT_COMPOSITION_LOAD_ERROR=E.EVENT_COMPOSITION_LOAD_ERROR;exports.EVENT_EXTEND_MODE_OFF=E.EVENT_EXTEND_MODE_OFF;exports.EVENT_EXTEND_MODE_ON=E.EVENT_EXTEND_MODE_ON;exports.EVENT_GALLERY_CLOSE=E.EVENT_GALLERY_CLOSE;exports.EVENT_GALLERY_OPEN=E.EVENT_GALLERY_OPEN;exports.EVENT_HOTSPOTS_OFF=E.EVENT_HOTSPOTS_OFF;exports.EVENT_HOTSPOTS_ON=E.EVENT_HOTSPOTS_ON;exports.EVENT_ITEM_CHANGE=E.EVENT_ITEM_CHANGE;exports.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=E.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG;exports.WEB_PLAYER_ICON_WC_TAG=E.WEB_PLAYER_ICON_WC_TAG;exports.WEB_PLAYER_WC_TAG=E.WEB_PLAYER_WC_TAG;exports.generateCompositionUrl=E.generateCompositionUrl;exports.WebPlayer=R;exports.WebPlayerCustomMedia=o;exports.WebPlayerIcon=D;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ import { WebPlayerCustomMediaProps } from '@car-cutter/react-webplayer';
|
|
|
4
4
|
import { WebPlayerIconProps } from '@car-cutter/react-webplayer';
|
|
5
5
|
import { WebPlayerProps } from '@car-cutter/react-webplayer';
|
|
6
6
|
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const ANALYTICS_EVENT_DISPLAY = "analytics-display";
|
|
8
8
|
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const ANALYTICS_EVENT_ERROR = "analytics-error";
|
|
10
10
|
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const ANALYTICS_EVENT_INTERACTION = "analytics-interaction";
|
|
12
|
+
|
|
13
|
+
export declare const ANALYTICS_EVENT_LOAD = "analytics-load";
|
|
12
14
|
|
|
13
15
|
declare type AspectRatio = `${number}:${number}`;
|
|
14
16
|
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import _ from "next/dynamic";
|
|
3
|
-
import { A, a as
|
|
4
|
-
const
|
|
3
|
+
import { A, a as I, b as o, c as r, D as C, E as L, d as t, e as P, f as V, g as S, h as n, i as D, j as R, k as W, l, W as i, m, n as M, o as Y } from "./utils-WyCmTZH1.js";
|
|
4
|
+
const s = _(
|
|
5
5
|
() => import("@car-cutter/react-webplayer").then((E) => E.WebPlayer),
|
|
6
6
|
{ ssr: !1 }
|
|
7
7
|
), a = _(
|
|
@@ -12,25 +12,26 @@ const T = _(
|
|
|
12
12
|
{ ssr: !1 }
|
|
13
13
|
);
|
|
14
14
|
export {
|
|
15
|
-
A as
|
|
16
|
-
|
|
17
|
-
o as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
A as ANALYTICS_EVENT_DISPLAY,
|
|
16
|
+
I as ANALYTICS_EVENT_ERROR,
|
|
17
|
+
o as ANALYTICS_EVENT_INTERACTION,
|
|
18
|
+
r as ANALYTICS_EVENT_LOAD,
|
|
19
|
+
C as DEFAULT_EVENT_PREFIX,
|
|
20
|
+
L as EVENT_COMPOSITION_LOADED,
|
|
21
|
+
t as EVENT_COMPOSITION_LOADING,
|
|
21
22
|
P as EVENT_COMPOSITION_LOAD_ERROR,
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
V as EVENT_EXTEND_MODE_OFF,
|
|
24
|
+
S as EVENT_EXTEND_MODE_ON,
|
|
24
25
|
n as EVENT_GALLERY_CLOSE,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
D as EVENT_GALLERY_OPEN,
|
|
27
|
+
R as EVENT_HOTSPOTS_OFF,
|
|
28
|
+
W as EVENT_HOTSPOTS_ON,
|
|
29
|
+
l as EVENT_ITEM_CHANGE,
|
|
29
30
|
i as WEB_PLAYER_CUSTOM_MEDIA_WC_TAG,
|
|
30
31
|
m as WEB_PLAYER_ICON_WC_TAG,
|
|
31
32
|
M as WEB_PLAYER_WC_TAG,
|
|
32
|
-
|
|
33
|
+
s as WebPlayer,
|
|
33
34
|
a as WebPlayerCustomMedia,
|
|
34
35
|
N as WebPlayerIcon,
|
|
35
|
-
|
|
36
|
+
Y as generateCompositionUrl
|
|
36
37
|
};
|
package/dist/legacy.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";var
|
|
1
|
+
"use client";"use strict";var C=Object.create;var L=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,r=Object.prototype.hasOwnProperty;var t=(_,T,N,I)=>{if(T&&typeof T=="object"||typeof T=="function")for(let O of S(T))!r.call(_,O)&&O!==N&&L(_,O,{get:()=>T[O],enumerable:!(I=P(T,O))||I.enumerable});return _};var A=(_,T,N)=>(N=_!=null?C(V(_)):{},t(T||!_||!_.__esModule?L(N,"default",{value:_,enumerable:!0}):N,_));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("next/dynamic"),E=require("./utils-Dz2dQmYW.cjs"),R=e(()=>import("@car-cutter/react-webplayer/legacy").then(_=>_.WebPlayer),{ssr:!1}),o=e(()=>import("@car-cutter/react-webplayer/legacy").then(_=>_.WebPlayerCustomMedia),{ssr:!1}),D=e(()=>import("@car-cutter/react-webplayer/legacy").then(_=>_.WebPlayerIcon),{ssr:!1});exports.ANALYTICS_EVENT_DISPLAY=E.ANALYTICS_EVENT_DISPLAY;exports.ANALYTICS_EVENT_ERROR=E.ANALYTICS_EVENT_ERROR;exports.ANALYTICS_EVENT_INTERACTION=E.ANALYTICS_EVENT_INTERACTION;exports.ANALYTICS_EVENT_LOAD=E.ANALYTICS_EVENT_LOAD;exports.DEFAULT_EVENT_PREFIX=E.DEFAULT_EVENT_PREFIX;exports.EVENT_COMPOSITION_LOADED=E.EVENT_COMPOSITION_LOADED;exports.EVENT_COMPOSITION_LOADING=E.EVENT_COMPOSITION_LOADING;exports.EVENT_COMPOSITION_LOAD_ERROR=E.EVENT_COMPOSITION_LOAD_ERROR;exports.EVENT_EXTEND_MODE_OFF=E.EVENT_EXTEND_MODE_OFF;exports.EVENT_EXTEND_MODE_ON=E.EVENT_EXTEND_MODE_ON;exports.EVENT_GALLERY_CLOSE=E.EVENT_GALLERY_CLOSE;exports.EVENT_GALLERY_OPEN=E.EVENT_GALLERY_OPEN;exports.EVENT_HOTSPOTS_OFF=E.EVENT_HOTSPOTS_OFF;exports.EVENT_HOTSPOTS_ON=E.EVENT_HOTSPOTS_ON;exports.EVENT_ITEM_CHANGE=E.EVENT_ITEM_CHANGE;exports.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=E.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG;exports.WEB_PLAYER_ICON_WC_TAG=E.WEB_PLAYER_ICON_WC_TAG;exports.WEB_PLAYER_WC_TAG=E.WEB_PLAYER_WC_TAG;exports.generateCompositionUrl=E.generateCompositionUrl;exports.WebPlayer=R;exports.WebPlayerCustomMedia=o;exports.WebPlayerIcon=D;
|
package/dist/legacy.d.ts
CHANGED
|
@@ -7,11 +7,13 @@ import { WebPlayerIconProps as WebPlayerIconProps_2 } from '@car-cutter/react-we
|
|
|
7
7
|
import { WebPlayerProps } from '@car-cutter/react-webplayer';
|
|
8
8
|
import { WebPlayerProps as WebPlayerProps_2 } from '@car-cutter/react-webplayer/legacy';
|
|
9
9
|
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const ANALYTICS_EVENT_DISPLAY = "analytics-display";
|
|
11
11
|
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const ANALYTICS_EVENT_ERROR = "analytics-error";
|
|
13
13
|
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const ANALYTICS_EVENT_INTERACTION = "analytics-interaction";
|
|
15
|
+
|
|
16
|
+
export declare const ANALYTICS_EVENT_LOAD = "analytics-load";
|
|
15
17
|
|
|
16
18
|
declare type AspectRatio = `${number}:${number}`;
|
|
17
19
|
|
package/dist/legacy.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import _ from "next/dynamic";
|
|
3
|
-
import { A, a as
|
|
4
|
-
const
|
|
3
|
+
import { A, a as I, b as o, c as r, D as C, E as L, d as t, e as P, f as V, g as S, h as n, i as D, j as R, k as W, l, W as i, m, n as M, o as Y } from "./utils-WyCmTZH1.js";
|
|
4
|
+
const s = _(
|
|
5
5
|
() => import("@car-cutter/react-webplayer/legacy").then((E) => E.WebPlayer),
|
|
6
6
|
{ ssr: !1 }
|
|
7
7
|
), a = _(
|
|
@@ -14,25 +14,26 @@ const T = _(
|
|
|
14
14
|
{ ssr: !1 }
|
|
15
15
|
);
|
|
16
16
|
export {
|
|
17
|
-
A as
|
|
18
|
-
|
|
19
|
-
o as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
A as ANALYTICS_EVENT_DISPLAY,
|
|
18
|
+
I as ANALYTICS_EVENT_ERROR,
|
|
19
|
+
o as ANALYTICS_EVENT_INTERACTION,
|
|
20
|
+
r as ANALYTICS_EVENT_LOAD,
|
|
21
|
+
C as DEFAULT_EVENT_PREFIX,
|
|
22
|
+
L as EVENT_COMPOSITION_LOADED,
|
|
23
|
+
t as EVENT_COMPOSITION_LOADING,
|
|
23
24
|
P as EVENT_COMPOSITION_LOAD_ERROR,
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
V as EVENT_EXTEND_MODE_OFF,
|
|
26
|
+
S as EVENT_EXTEND_MODE_ON,
|
|
26
27
|
n as EVENT_GALLERY_CLOSE,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
D as EVENT_GALLERY_OPEN,
|
|
29
|
+
R as EVENT_HOTSPOTS_OFF,
|
|
30
|
+
W as EVENT_HOTSPOTS_ON,
|
|
31
|
+
l as EVENT_ITEM_CHANGE,
|
|
31
32
|
i as WEB_PLAYER_CUSTOM_MEDIA_WC_TAG,
|
|
32
33
|
m as WEB_PLAYER_ICON_WC_TAG,
|
|
33
34
|
M as WEB_PLAYER_WC_TAG,
|
|
34
|
-
|
|
35
|
+
s as WebPlayer,
|
|
35
36
|
a as WebPlayerCustomMedia,
|
|
36
37
|
N as WebPlayerIcon,
|
|
37
|
-
|
|
38
|
+
Y as generateCompositionUrl
|
|
38
39
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const T="cc-webplayer",N="cc-webplayer-custom-media",o="cc-webplayer-icon",O="composition-loading",A="composition-loaded",t="composition-load-error",c="item-change",n="extend-mode-on",s="extend-mode-off",I="hotspots-on",L="hotspots-off",e="gallery-open",C="gallery-close",V="analytics-load",S="analytics-display",a="analytics-interaction",R="analytics-error",i="cc-webplayer:";function D(E,_){return`https://cdn.car-cutter.com/gallery/${E}/${_}/composition_v3.json`}exports.ANALYTICS_EVENT_DISPLAY=S;exports.ANALYTICS_EVENT_ERROR=R;exports.ANALYTICS_EVENT_INTERACTION=a;exports.ANALYTICS_EVENT_LOAD=V;exports.DEFAULT_EVENT_PREFIX=i;exports.EVENT_COMPOSITION_LOADED=A;exports.EVENT_COMPOSITION_LOADING=O;exports.EVENT_COMPOSITION_LOAD_ERROR=t;exports.EVENT_EXTEND_MODE_OFF=s;exports.EVENT_EXTEND_MODE_ON=n;exports.EVENT_GALLERY_CLOSE=C;exports.EVENT_GALLERY_OPEN=e;exports.EVENT_HOTSPOTS_OFF=L;exports.EVENT_HOTSPOTS_ON=I;exports.EVENT_ITEM_CHANGE=c;exports.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=N;exports.WEB_PLAYER_ICON_WC_TAG=o;exports.WEB_PLAYER_WC_TAG=T;exports.generateCompositionUrl=D;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const s = "cc-webplayer", _ = "cc-webplayer-custom-media", a = "cc-webplayer-icon", c = "composition-loading", t = "composition-loaded", n = "composition-load-error", T = "item-change", e = "extend-mode-on", N = "extend-mode-off", O = "hotspots-on", A = "hotspots-off", i = "gallery-open", l = "gallery-close", r = "analytics-load", I = "analytics-display", L = "analytics-interaction", C = "analytics-error", p = "cc-webplayer:";
|
|
2
|
+
function V(o, E) {
|
|
3
|
+
return `https://cdn.car-cutter.com/gallery/${o}/${E}/composition_v3.json`;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
I as A,
|
|
7
|
+
p as D,
|
|
8
|
+
t as E,
|
|
9
|
+
_ as W,
|
|
10
|
+
C as a,
|
|
11
|
+
L as b,
|
|
12
|
+
r as c,
|
|
13
|
+
c as d,
|
|
14
|
+
n as e,
|
|
15
|
+
N as f,
|
|
16
|
+
e as g,
|
|
17
|
+
l as h,
|
|
18
|
+
i,
|
|
19
|
+
A as j,
|
|
20
|
+
O as k,
|
|
21
|
+
T as l,
|
|
22
|
+
a as m,
|
|
23
|
+
s as n,
|
|
24
|
+
V as o
|
|
25
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@car-cutter/next-webplayer",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CarCutter",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"analyze": "vite-bundle-visualizer"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@car-cutter/react-webplayer": "3.1.
|
|
48
|
+
"@car-cutter/react-webplayer": "3.1.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"next": ">=10"
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@car-cutter/eslint-config": "*",
|
|
55
55
|
"@car-cutter/typescript-config": "*",
|
|
56
|
-
"@vitejs/plugin-react": "^
|
|
56
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
57
57
|
"browserslist": "^4.23.3",
|
|
58
58
|
"browserslist-to-esbuild": "^2.1.1",
|
|
59
59
|
"eslint": "^8.57.0",
|
|
60
60
|
"rollup-preserve-directives": "^1.1.1",
|
|
61
61
|
"typescript": "^5.5.4",
|
|
62
|
-
"vite": "^
|
|
62
|
+
"vite": "^6.2.0",
|
|
63
63
|
"vite-bundle-visualizer": "^1.2.1",
|
|
64
64
|
"vite-plugin-dts": "^4.2.1"
|
|
65
65
|
},
|
package/dist/utils-BpzJysIS.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const T="cc-webplayer",N="cc-webplayer-custom-media",o="cc-webplayer-icon",O="composition-loading",t="composition-loaded",A="composition-load-error",c="item-change",n="extend-mode-on",s="extend-mode-off",e="hotspots-on",I="hotspots-off",C="gallery-open",L="gallery-close",V="analytics-identify",S="analytics-page",a="analytics-track",i="cc-webplayer:";function D(E,_){return`https://cdn.car-cutter.com/gallery/${E}/${_}/composition_v3.json`}exports.ANALYTICS_EVENT_IDENTIFY=V;exports.ANALYTICS_EVENT_PAGE=S;exports.ANALYTICS_EVENT_TRACK=a;exports.DEFAULT_EVENT_PREFIX=i;exports.EVENT_COMPOSITION_LOADED=t;exports.EVENT_COMPOSITION_LOADING=O;exports.EVENT_COMPOSITION_LOAD_ERROR=A;exports.EVENT_EXTEND_MODE_OFF=s;exports.EVENT_EXTEND_MODE_ON=n;exports.EVENT_GALLERY_CLOSE=L;exports.EVENT_GALLERY_OPEN=C;exports.EVENT_HOTSPOTS_OFF=I;exports.EVENT_HOTSPOTS_ON=e;exports.EVENT_ITEM_CHANGE=c;exports.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=N;exports.WEB_PLAYER_ICON_WC_TAG=o;exports.WEB_PLAYER_WC_TAG=T;exports.generateCompositionUrl=D;
|
package/dist/utils-dyeaNVPi.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const s = "cc-webplayer", _ = "cc-webplayer-custom-media", c = "cc-webplayer-icon", t = "composition-loading", a = "composition-loaded", n = "composition-load-error", T = "item-change", e = "extend-mode-on", N = "extend-mode-off", O = "hotspots-on", A = "hotspots-off", i = "gallery-open", l = "gallery-close", r = "analytics-identify", I = "analytics-page", p = "analytics-track", C = "cc-webplayer:";
|
|
2
|
-
function L(o, E) {
|
|
3
|
-
return `https://cdn.car-cutter.com/gallery/${o}/${E}/composition_v3.json`;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
r as A,
|
|
7
|
-
C as D,
|
|
8
|
-
a as E,
|
|
9
|
-
_ as W,
|
|
10
|
-
I as a,
|
|
11
|
-
p as b,
|
|
12
|
-
t as c,
|
|
13
|
-
n as d,
|
|
14
|
-
N as e,
|
|
15
|
-
e as f,
|
|
16
|
-
l as g,
|
|
17
|
-
i as h,
|
|
18
|
-
A as i,
|
|
19
|
-
O as j,
|
|
20
|
-
T as k,
|
|
21
|
-
c as l,
|
|
22
|
-
s as m,
|
|
23
|
-
L as n
|
|
24
|
-
};
|