@car-cutter/next-webplayer 3.0.1 → 3.0.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 +8 -1
- package/dist/index.js +21 -18
- package/dist/legacy.cjs +1 -1
- package/dist/legacy.d.ts +8 -1
- package/dist/legacy.js +21 -18
- package/dist/utils-BpzJysIS.cjs +1 -0
- package/dist/utils-fWKvKx03.js +24 -0
- package/package.json +2 -2
- package/dist/utils-CbTbWQZC.cjs +0 -1
- package/dist/utils-CvBJsRf5.js +0 -21
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";var
|
|
1
|
+
"use client";"use strict";var P=Object.create;var C=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,t=Object.prototype.hasOwnProperty;var S=(_,T,N,I)=>{if(T&&typeof T=="object"||typeof T=="function")for(let O of V(T))!t.call(_,O)&&O!==N&&C(_,O,{get:()=>T[O],enumerable:!(I=L(T,O))||I.enumerable});return _};var e=(_,T,N)=>(N=_!=null?P(r(_)):{},S(T||!_||!_.__esModule?C(N,"default",{value:_,enumerable:!0}):N,_));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("next/dynamic"),E=require("./utils-BpzJysIS.cjs"),o=A(()=>import("@car-cutter/react-webplayer").then(_=>_.WebPlayer),{ssr:!1}),s=A(()=>import("@car-cutter/react-webplayer").then(_=>_.WebPlayerCustomMedia),{ssr:!1}),D=A(()=>import("@car-cutter/react-webplayer").then(_=>_.WebPlayerIcon),{ssr:!1});exports.ANALYTICS_EVENT_IDENTIFY=E.ANALYTICS_EVENT_IDENTIFY;exports.ANALYTICS_EVENT_PAGE=E.ANALYTICS_EVENT_PAGE;exports.ANALYTICS_EVENT_TRACK=E.ANALYTICS_EVENT_TRACK;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=o;exports.WebPlayerCustomMedia=s;exports.WebPlayerIcon=D;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ 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 ANALYTICS_EVENT_IDENTIFY = "analytics-identify";
|
|
8
|
+
|
|
9
|
+
export declare const ANALYTICS_EVENT_PAGE = "analytics-page";
|
|
10
|
+
|
|
11
|
+
export declare const ANALYTICS_EVENT_TRACK = "analytics-track";
|
|
12
|
+
|
|
7
13
|
declare type AspectRatio = `${number}:${number}`;
|
|
8
14
|
|
|
9
15
|
declare type Category = {
|
|
@@ -44,7 +50,7 @@ export declare const EVENT_ITEM_CHANGE = "item-change";
|
|
|
44
50
|
/**
|
|
45
51
|
* Generates a URL for fetching the composition JSON for a given customer and vehicle.
|
|
46
52
|
*
|
|
47
|
-
* @param {string} customerToken - The CarCutter Customer Token (computed by
|
|
53
|
+
* @param {string} customerToken - The CarCutter Customer Token (computed by hashing the Customer ID with SHA-256).
|
|
48
54
|
* @param {string} vin - The Vehicle Identification Number.
|
|
49
55
|
* @returns {string} The URL to fetch the composition JSON.
|
|
50
56
|
*/
|
|
@@ -59,6 +65,7 @@ declare type Hotspot = {
|
|
|
59
65
|
title: string;
|
|
60
66
|
icon?: string;
|
|
61
67
|
description?: string;
|
|
68
|
+
type?: "damage" | "feature";
|
|
62
69
|
position: {
|
|
63
70
|
x: number;
|
|
64
71
|
y: number;
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import _ from "next/dynamic";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
3
|
+
import { A, l as r, m as o, D as I, c as t, E as C, d as P, g as L, f as V, k as n, j as W, i as l, h as D, e as S, a as i, b as m, W as M, n as R } from "./utils-fWKvKx03.js";
|
|
4
|
+
const T = _(
|
|
5
5
|
() => import("@car-cutter/react-webplayer").then((E) => E.WebPlayer),
|
|
6
6
|
{ ssr: !1 }
|
|
7
|
-
),
|
|
7
|
+
), a = _(
|
|
8
8
|
() => import("@car-cutter/react-webplayer").then((E) => E.WebPlayerCustomMedia),
|
|
9
9
|
{ ssr: !1 }
|
|
10
|
-
),
|
|
10
|
+
), N = _(
|
|
11
11
|
() => import("@car-cutter/react-webplayer").then((E) => E.WebPlayerIcon),
|
|
12
12
|
{ ssr: !1 }
|
|
13
13
|
);
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
A as ANALYTICS_EVENT_IDENTIFY,
|
|
16
|
+
r as ANALYTICS_EVENT_PAGE,
|
|
17
|
+
o as ANALYTICS_EVENT_TRACK,
|
|
18
|
+
I as DEFAULT_EVENT_PREFIX,
|
|
19
|
+
t as EVENT_COMPOSITION_LOADED,
|
|
20
|
+
C as EVENT_COMPOSITION_LOADING,
|
|
18
21
|
P as EVENT_COMPOSITION_LOAD_ERROR,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
L as EVENT_EXTEND_MODE_OFF,
|
|
23
|
+
V as EVENT_EXTEND_MODE_ON,
|
|
24
|
+
n as EVENT_GALLERY_CLOSE,
|
|
22
25
|
W as EVENT_GALLERY_OPEN,
|
|
23
26
|
l as EVENT_HOTSPOTS_OFF,
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
D as EVENT_HOTSPOTS_ON,
|
|
28
|
+
S as EVENT_ITEM_CHANGE,
|
|
26
29
|
i as WEB_PLAYER_CUSTOM_MEDIA_WC_TAG,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
m as WEB_PLAYER_ICON_WC_TAG,
|
|
31
|
+
M as WEB_PLAYER_WC_TAG,
|
|
32
|
+
T as WebPlayer,
|
|
33
|
+
a as WebPlayerCustomMedia,
|
|
34
|
+
N as WebPlayerIcon,
|
|
35
|
+
R as generateCompositionUrl
|
|
33
36
|
};
|
package/dist/legacy.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";var
|
|
1
|
+
"use client";"use strict";var P=Object.create;var C=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,t=Object.prototype.hasOwnProperty;var S=(_,T,N,I)=>{if(T&&typeof T=="object"||typeof T=="function")for(let O of V(T))!t.call(_,O)&&O!==N&&C(_,O,{get:()=>T[O],enumerable:!(I=L(T,O))||I.enumerable});return _};var e=(_,T,N)=>(N=_!=null?P(r(_)):{},S(T||!_||!_.__esModule?C(N,"default",{value:_,enumerable:!0}):N,_));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("next/dynamic"),E=require("./utils-BpzJysIS.cjs"),o=A(()=>import("@car-cutter/react-webplayer/legacy").then(_=>_.WebPlayer),{ssr:!1}),s=A(()=>import("@car-cutter/react-webplayer/legacy").then(_=>_.WebPlayerCustomMedia),{ssr:!1}),D=A(()=>import("@car-cutter/react-webplayer/legacy").then(_=>_.WebPlayerIcon),{ssr:!1});exports.ANALYTICS_EVENT_IDENTIFY=E.ANALYTICS_EVENT_IDENTIFY;exports.ANALYTICS_EVENT_PAGE=E.ANALYTICS_EVENT_PAGE;exports.ANALYTICS_EVENT_TRACK=E.ANALYTICS_EVENT_TRACK;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=o;exports.WebPlayerCustomMedia=s;exports.WebPlayerIcon=D;
|
package/dist/legacy.d.ts
CHANGED
|
@@ -7,6 +7,12 @@ 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 ANALYTICS_EVENT_IDENTIFY = "analytics-identify";
|
|
11
|
+
|
|
12
|
+
export declare const ANALYTICS_EVENT_PAGE = "analytics-page";
|
|
13
|
+
|
|
14
|
+
export declare const ANALYTICS_EVENT_TRACK = "analytics-track";
|
|
15
|
+
|
|
10
16
|
declare type AspectRatio = `${number}:${number}`;
|
|
11
17
|
|
|
12
18
|
declare type Category = {
|
|
@@ -47,7 +53,7 @@ export declare const EVENT_ITEM_CHANGE = "item-change";
|
|
|
47
53
|
/**
|
|
48
54
|
* Generates a URL for fetching the composition JSON for a given customer and vehicle.
|
|
49
55
|
*
|
|
50
|
-
* @param {string} customerToken - The CarCutter Customer Token (computed by
|
|
56
|
+
* @param {string} customerToken - The CarCutter Customer Token (computed by hashing the Customer ID with SHA-256).
|
|
51
57
|
* @param {string} vin - The Vehicle Identification Number.
|
|
52
58
|
* @returns {string} The URL to fetch the composition JSON.
|
|
53
59
|
*/
|
|
@@ -62,6 +68,7 @@ declare type Hotspot = {
|
|
|
62
68
|
title: string;
|
|
63
69
|
icon?: string;
|
|
64
70
|
description?: string;
|
|
71
|
+
type?: "damage" | "feature";
|
|
65
72
|
position: {
|
|
66
73
|
x: number;
|
|
67
74
|
y: number;
|
package/dist/legacy.js
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import _ from "next/dynamic";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
3
|
+
import { A, l as r, m as o, D as I, c as t, E as C, d as P, g as L, f as V, k as n, j as W, i as l, h as D, e as S, a as i, b as m, W as M, n as R } from "./utils-fWKvKx03.js";
|
|
4
|
+
const T = _(
|
|
5
5
|
() => import("@car-cutter/react-webplayer/legacy").then((E) => E.WebPlayer),
|
|
6
6
|
{ ssr: !1 }
|
|
7
|
-
),
|
|
7
|
+
), a = _(
|
|
8
8
|
() => import("@car-cutter/react-webplayer/legacy").then(
|
|
9
9
|
(E) => E.WebPlayerCustomMedia
|
|
10
10
|
),
|
|
11
11
|
{ ssr: !1 }
|
|
12
|
-
),
|
|
12
|
+
), N = _(
|
|
13
13
|
() => import("@car-cutter/react-webplayer/legacy").then((E) => E.WebPlayerIcon),
|
|
14
14
|
{ ssr: !1 }
|
|
15
15
|
);
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
A as ANALYTICS_EVENT_IDENTIFY,
|
|
18
|
+
r as ANALYTICS_EVENT_PAGE,
|
|
19
|
+
o as ANALYTICS_EVENT_TRACK,
|
|
20
|
+
I as DEFAULT_EVENT_PREFIX,
|
|
21
|
+
t as EVENT_COMPOSITION_LOADED,
|
|
22
|
+
C as EVENT_COMPOSITION_LOADING,
|
|
20
23
|
P as EVENT_COMPOSITION_LOAD_ERROR,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
L as EVENT_EXTEND_MODE_OFF,
|
|
25
|
+
V as EVENT_EXTEND_MODE_ON,
|
|
26
|
+
n as EVENT_GALLERY_CLOSE,
|
|
24
27
|
W as EVENT_GALLERY_OPEN,
|
|
25
28
|
l as EVENT_HOTSPOTS_OFF,
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
D as EVENT_HOTSPOTS_ON,
|
|
30
|
+
S as EVENT_ITEM_CHANGE,
|
|
28
31
|
i as WEB_PLAYER_CUSTOM_MEDIA_WC_TAG,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
m as WEB_PLAYER_ICON_WC_TAG,
|
|
33
|
+
M as WEB_PLAYER_WC_TAG,
|
|
34
|
+
T as WebPlayer,
|
|
35
|
+
a as WebPlayerCustomMedia,
|
|
36
|
+
N as WebPlayerIcon,
|
|
37
|
+
R as generateCompositionUrl
|
|
35
38
|
};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
t as E,
|
|
9
|
+
s as W,
|
|
10
|
+
_ as a,
|
|
11
|
+
c as b,
|
|
12
|
+
a as c,
|
|
13
|
+
n as d,
|
|
14
|
+
T as e,
|
|
15
|
+
e as f,
|
|
16
|
+
N as g,
|
|
17
|
+
O as h,
|
|
18
|
+
A as i,
|
|
19
|
+
i as j,
|
|
20
|
+
l as k,
|
|
21
|
+
I as l,
|
|
22
|
+
p as m,
|
|
23
|
+
L as n
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@car-cutter/next-webplayer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CarCutter",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"analyze": "vite-bundle-visualizer"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@car-cutter/react-webplayer": "3.0.
|
|
44
|
+
"@car-cutter/react-webplayer": "3.0.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"next": ">=10"
|
package/dist/utils-CbTbWQZC.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const O="cc-webplayer",o="cc-webplayer-custom-media",T="cc-webplayer-icon",N="composition-loading",t="composition-loaded",c="composition-load-error",n="item-change",e="extend-mode-on",s="extend-mode-off",A="hotspots-on",L="hotspots-off",C="gallery-open",I="gallery-close",V="cc-webplayer:";function D(E,_){return`https://cdn.car-cutter.com/gallery/${E}/${_}/composition_v3.json`}exports.DEFAULT_EVENT_PREFIX=V;exports.EVENT_COMPOSITION_LOADED=t;exports.EVENT_COMPOSITION_LOADING=N;exports.EVENT_COMPOSITION_LOAD_ERROR=c;exports.EVENT_EXTEND_MODE_OFF=s;exports.EVENT_EXTEND_MODE_ON=e;exports.EVENT_GALLERY_CLOSE=I;exports.EVENT_GALLERY_OPEN=C;exports.EVENT_HOTSPOTS_OFF=L;exports.EVENT_HOTSPOTS_ON=A;exports.EVENT_ITEM_CHANGE=n;exports.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=o;exports.WEB_PLAYER_ICON_WC_TAG=T;exports.WEB_PLAYER_WC_TAG=O;exports.generateCompositionUrl=D;
|
package/dist/utils-CvBJsRf5.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const s = "cc-webplayer", _ = "cc-webplayer-custom-media", c = "cc-webplayer-icon", t = "composition-loading", n = "composition-loaded", e = "composition-load-error", a = "item-change", O = "extend-mode-on", T = "extend-mode-off", N = "hotspots-on", r = "hotspots-off", i = "gallery-open", l = "gallery-close", p = "cc-webplayer:";
|
|
2
|
-
function A(o, E) {
|
|
3
|
-
return `https://cdn.car-cutter.com/gallery/${o}/${E}/composition_v3.json`;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
p as D,
|
|
7
|
-
t as E,
|
|
8
|
-
s as W,
|
|
9
|
-
_ as a,
|
|
10
|
-
c as b,
|
|
11
|
-
n as c,
|
|
12
|
-
e as d,
|
|
13
|
-
a as e,
|
|
14
|
-
O as f,
|
|
15
|
-
T as g,
|
|
16
|
-
N as h,
|
|
17
|
-
r as i,
|
|
18
|
-
i as j,
|
|
19
|
-
l as k,
|
|
20
|
-
A as l
|
|
21
|
-
};
|