@car-cutter/vue-webplayer 3.1.2 → 3.1.3

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 CHANGED
@@ -388,6 +388,7 @@ declare type WebPlayerProps_2 = {
388
388
  demoSpin?: boolean;
389
389
  reverse360?: boolean;
390
390
  spinCursor?: string;
391
+ themeConfig?: "autonation";
391
392
 
392
393
  // Analytics
393
394
  analyticsEventPrefix?: string;
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as m, onMounted as h, onUnmounted as M, openBlock as _, createElementBlock as u, mergeProps as S, unref as c, renderSlot as O, normalizeProps as T, guardReactiveProps as f } from "vue";
1
+ import { defineComponent as d, onMounted as h, onUnmounted as M, openBlock as _, createElementBlock as u, mergeProps as S, unref as c, renderSlot as O, normalizeProps as T, guardReactiveProps as f } from "vue";
2
2
  import { ensureCustomElementsDefinition as B, webPlayerPropsToAttributes as D, webPlayerCustomMediaPropsToAttributes as R, webPlayerIconPropsToAttributes as x } from "@car-cutter/wc-webplayer";
3
3
  const ee = "cc-webplayer", te = "cc-webplayer-custom-media", oe = "cc-webplayer-icon", V = "composition-loading", w = "composition-loaded", W = "composition-load-error", Y = "item-change", $ = "extend-mode-on", F = "extend-mode-off", G = "hotspots-on", U = "hotspots-off", X = "gallery-open", j = "gallery-close", k = "analytics-load", H = "analytics-display", q = "analytics-interaction", z = "analytics-error", J = "cc-webplayer:", K = "cc-analytics:";
4
4
  function ne(n, s) {
5
5
  return `https://cdn.car-cutter.com/gallery/${n}/${s}/composition_v3.json`;
6
6
  }
7
- const ae = /* @__PURE__ */ m({
7
+ const ae = /* @__PURE__ */ d({
8
8
  __name: "WebPlayer",
9
9
  props: {
10
10
  compositionUrl: {},
@@ -25,6 +25,7 @@ const ae = /* @__PURE__ */ m({
25
25
  demoSpin: { type: Boolean },
26
26
  reverse360: { type: Boolean },
27
27
  spinCursor: {},
28
+ themeConfig: {},
28
29
  analyticsEventPrefix: {},
29
30
  analyticsUrl: {},
30
31
  analyticsBearer: {},
@@ -58,12 +59,12 @@ const ae = /* @__PURE__ */ m({
58
59
  return Object.entries(I).forEach(([e, o]) => {
59
60
  if (!o)
60
61
  return;
61
- const E = b(e), y = (d) => o(d.detail);
62
+ const E = b(e), y = (m) => o(m.detail);
62
63
  l.set(E, y);
63
64
  }), Object.entries(g).forEach(([e, o]) => {
64
65
  if (!o)
65
66
  return;
66
- const E = v(e), y = (d) => o(d.detail);
67
+ const E = v(e), y = (m) => o(m.detail);
67
68
  p.set(E, y);
68
69
  }), h(() => {
69
70
  l.forEach((e, o) => {
@@ -84,7 +85,7 @@ const ae = /* @__PURE__ */ m({
84
85
  O(e.$slots, "default")
85
86
  ], 16));
86
87
  }
87
- }), se = /* @__PURE__ */ m({
88
+ }), se = /* @__PURE__ */ d({
88
89
  __name: "WebPlayerCustomMedia",
89
90
  props: {
90
91
  index: {},
@@ -96,7 +97,7 @@ const ae = /* @__PURE__ */ m({
96
97
  O(r.$slots, "default")
97
98
  ], 16));
98
99
  }
99
- }), re = /* @__PURE__ */ m({
100
+ }), re = /* @__PURE__ */ d({
100
101
  __name: "WebPlayerIcon",
101
102
  props: {
102
103
  name: {}
@@ -1 +1 @@
1
- (function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@car-cutter/wc-webplayer")):typeof define=="function"&&define.amd?define(["exports","vue","@car-cutter/wc-webplayer"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.CarCutterWebplayerVue={},t.Vue,t.CarCutterWebplayerWC))})(this,(function(t,n,E){"use strict";const D="cc-webplayer",h="cc-webplayer-custom-media",g="cc-webplayer-icon",O="composition-loading",m="composition-loaded",N="composition-load-error",A="item-change",L="extend-mode-on",f="extend-mode-off",C="hotspots-on",P="hotspots-off",u="gallery-open",I="gallery-close",S="analytics-load",M="analytics-display",V="analytics-interaction",R="analytics-error",b="cc-webplayer:",B="cc-analytics:";function Y(s,c){return`https://cdn.car-cutter.com/gallery/${s}/${c}/composition_v3.json`}const W=n.defineComponent({__name:"WebPlayer",props:{compositionUrl:{},integration:{type:Boolean},maxItemsShown:{},hideCategoriesNav:{type:Boolean},infiniteCarrousel:{type:Boolean},permanentGallery:{type:Boolean},mediaLoadStrategy:{},minMediaWidth:{},maxMediaWidth:{},preloadRange:{},autoLoad360:{type:Boolean},autoLoadInterior360:{type:Boolean},categoriesFilter:{},extendBehavior:{},eventPrefix:{},demoSpin:{type:Boolean},reverse360:{type:Boolean},spinCursor:{},analyticsEventPrefix:{},analyticsUrl:{},analyticsBearer:{},analyticsSimpleRequestsOnly:{type:Boolean},analyticsDryRun:{type:Boolean},analyticsDebug:{type:Boolean},monitoring:{type:Boolean},class:{},style:{}},emits:["compositionLoading","compositionLoaded","compositionLoadError","itemChange","extendModeOn","extendModeOff","hotspotsOn","hotspotsOff","galleryOpen","galleryClose","analyticsLoad","analyticsDisplay","analyticsInteraction","analyticsError"],setup(s,{emit:c}){E.ensureCustomElementsDefinition();const i=s,{class:r,style:l,...G}=i,$={display:"block",...l??{}},U=E.webPlayerPropsToAttributes(G),o=c,v=i.eventPrefix??b,k=i.analyticsEventPrefix??B,X=e=>`${v}${e}`,H=e=>`${k}${e}`,j={[O]:e=>o("compositionLoading",e),[m]:e=>o("compositionLoaded",e),[N]:e=>o("compositionLoadError",e),[A]:e=>o("itemChange",e),[L]:()=>o("extendModeOn"),[f]:()=>o("extendModeOff"),[C]:()=>o("hotspotsOn"),[P]:()=>o("hotspotsOff"),[u]:()=>o("galleryOpen"),[I]:()=>o("galleryClose")},q={[S]:e=>o("analyticsLoad",e),[M]:e=>o("analyticsDisplay",e),[V]:e=>o("analyticsInteraction",e),[R]:e=>o("analyticsError",e)},_=new Map,d=new Map;return Object.entries(j).forEach(([e,a])=>{if(!a)return;const T=X(e),y=p=>a(p.detail);_.set(T,y)}),Object.entries(q).forEach(([e,a])=>{if(!a)return;const T=H(e),y=p=>a(p.detail);d.set(T,y)}),n.onMounted(()=>{_.forEach((e,a)=>{document.addEventListener(a,e)}),d.forEach((e,a)=>{document.addEventListener(a,e)})}),n.onUnmounted(()=>{_.forEach((e,a)=>{document.removeEventListener(a,e)}),d.forEach((e,a)=>{document.removeEventListener(a,e)})}),(e,a)=>(n.openBlock(),n.createElementBlock("cc-webplayer",n.mergeProps(n.unref(U),{class:n.unref(r),style:$}),[n.renderSlot(e.$slots,"default")],16))}}),w=n.defineComponent({__name:"WebPlayerCustomMedia",props:{index:{},thumbnailSrc:{}},setup(s){const c=s,i=E.webPlayerCustomMediaPropsToAttributes(c);return(r,l)=>(n.openBlock(),n.createElementBlock("cc-webplayer-custom-media",n.normalizeProps(n.guardReactiveProps(n.unref(i))),[n.renderSlot(r.$slots,"default")],16))}}),F=n.defineComponent({__name:"WebPlayerIcon",props:{name:{}},setup(s){const c=s,i=E.webPlayerIconPropsToAttributes(c);return(r,l)=>(n.openBlock(),n.createElementBlock("cc-webplayer-icon",n.normalizeProps(n.guardReactiveProps(n.unref(i))),[n.renderSlot(r.$slots,"default")],16))}});t.ANALYTICS_EVENT_DISPLAY=M,t.ANALYTICS_EVENT_ERROR=R,t.ANALYTICS_EVENT_INTERACTION=V,t.ANALYTICS_EVENT_LOAD=S,t.DEFAULT_EVENT_PREFIX=b,t.EVENT_COMPOSITION_LOADED=m,t.EVENT_COMPOSITION_LOADING=O,t.EVENT_COMPOSITION_LOAD_ERROR=N,t.EVENT_EXTEND_MODE_OFF=f,t.EVENT_EXTEND_MODE_ON=L,t.EVENT_GALLERY_CLOSE=I,t.EVENT_GALLERY_OPEN=u,t.EVENT_HOTSPOTS_OFF=P,t.EVENT_HOTSPOTS_ON=C,t.EVENT_ITEM_CHANGE=A,t.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=h,t.WEB_PLAYER_ICON_WC_TAG=g,t.WEB_PLAYER_WC_TAG=D,t.WebPlayer=W,t.WebPlayerCustomMedia=w,t.WebPlayerIcon=F,t.generateCompositionUrl=Y,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@car-cutter/wc-webplayer")):typeof define=="function"&&define.amd?define(["exports","vue","@car-cutter/wc-webplayer"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.CarCutterWebplayerVue={},t.Vue,t.CarCutterWebplayerWC))})(this,(function(t,n,E){"use strict";const D="cc-webplayer",h="cc-webplayer-custom-media",g="cc-webplayer-icon",O="composition-loading",m="composition-loaded",N="composition-load-error",A="item-change",L="extend-mode-on",f="extend-mode-off",C="hotspots-on",P="hotspots-off",u="gallery-open",I="gallery-close",S="analytics-load",M="analytics-display",V="analytics-interaction",R="analytics-error",b="cc-webplayer:",B="cc-analytics:";function Y(s,c){return`https://cdn.car-cutter.com/gallery/${s}/${c}/composition_v3.json`}const W=n.defineComponent({__name:"WebPlayer",props:{compositionUrl:{},integration:{type:Boolean},maxItemsShown:{},hideCategoriesNav:{type:Boolean},infiniteCarrousel:{type:Boolean},permanentGallery:{type:Boolean},mediaLoadStrategy:{},minMediaWidth:{},maxMediaWidth:{},preloadRange:{},autoLoad360:{type:Boolean},autoLoadInterior360:{type:Boolean},categoriesFilter:{},extendBehavior:{},eventPrefix:{},demoSpin:{type:Boolean},reverse360:{type:Boolean},spinCursor:{},themeConfig:{},analyticsEventPrefix:{},analyticsUrl:{},analyticsBearer:{},analyticsSimpleRequestsOnly:{type:Boolean},analyticsDryRun:{type:Boolean},analyticsDebug:{type:Boolean},monitoring:{type:Boolean},class:{},style:{}},emits:["compositionLoading","compositionLoaded","compositionLoadError","itemChange","extendModeOn","extendModeOff","hotspotsOn","hotspotsOff","galleryOpen","galleryClose","analyticsLoad","analyticsDisplay","analyticsInteraction","analyticsError"],setup(s,{emit:c}){E.ensureCustomElementsDefinition();const i=s,{class:r,style:l,...G}=i,$={display:"block",...l??{}},U=E.webPlayerPropsToAttributes(G),o=c,v=i.eventPrefix??b,k=i.analyticsEventPrefix??B,X=e=>`${v}${e}`,H=e=>`${k}${e}`,j={[O]:e=>o("compositionLoading",e),[m]:e=>o("compositionLoaded",e),[N]:e=>o("compositionLoadError",e),[A]:e=>o("itemChange",e),[L]:()=>o("extendModeOn"),[f]:()=>o("extendModeOff"),[C]:()=>o("hotspotsOn"),[P]:()=>o("hotspotsOff"),[u]:()=>o("galleryOpen"),[I]:()=>o("galleryClose")},q={[S]:e=>o("analyticsLoad",e),[M]:e=>o("analyticsDisplay",e),[V]:e=>o("analyticsInteraction",e),[R]:e=>o("analyticsError",e)},_=new Map,d=new Map;return Object.entries(j).forEach(([e,a])=>{if(!a)return;const T=X(e),y=p=>a(p.detail);_.set(T,y)}),Object.entries(q).forEach(([e,a])=>{if(!a)return;const T=H(e),y=p=>a(p.detail);d.set(T,y)}),n.onMounted(()=>{_.forEach((e,a)=>{document.addEventListener(a,e)}),d.forEach((e,a)=>{document.addEventListener(a,e)})}),n.onUnmounted(()=>{_.forEach((e,a)=>{document.removeEventListener(a,e)}),d.forEach((e,a)=>{document.removeEventListener(a,e)})}),(e,a)=>(n.openBlock(),n.createElementBlock("cc-webplayer",n.mergeProps(n.unref(U),{class:n.unref(r),style:$}),[n.renderSlot(e.$slots,"default")],16))}}),w=n.defineComponent({__name:"WebPlayerCustomMedia",props:{index:{},thumbnailSrc:{}},setup(s){const c=s,i=E.webPlayerCustomMediaPropsToAttributes(c);return(r,l)=>(n.openBlock(),n.createElementBlock("cc-webplayer-custom-media",n.normalizeProps(n.guardReactiveProps(n.unref(i))),[n.renderSlot(r.$slots,"default")],16))}}),F=n.defineComponent({__name:"WebPlayerIcon",props:{name:{}},setup(s){const c=s,i=E.webPlayerIconPropsToAttributes(c);return(r,l)=>(n.openBlock(),n.createElementBlock("cc-webplayer-icon",n.normalizeProps(n.guardReactiveProps(n.unref(i))),[n.renderSlot(r.$slots,"default")],16))}});t.ANALYTICS_EVENT_DISPLAY=M,t.ANALYTICS_EVENT_ERROR=R,t.ANALYTICS_EVENT_INTERACTION=V,t.ANALYTICS_EVENT_LOAD=S,t.DEFAULT_EVENT_PREFIX=b,t.EVENT_COMPOSITION_LOADED=m,t.EVENT_COMPOSITION_LOADING=O,t.EVENT_COMPOSITION_LOAD_ERROR=N,t.EVENT_EXTEND_MODE_OFF=f,t.EVENT_EXTEND_MODE_ON=L,t.EVENT_GALLERY_CLOSE=I,t.EVENT_GALLERY_OPEN=u,t.EVENT_HOTSPOTS_OFF=P,t.EVENT_HOTSPOTS_ON=C,t.EVENT_ITEM_CHANGE=A,t.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=h,t.WEB_PLAYER_ICON_WC_TAG=g,t.WEB_PLAYER_WC_TAG=D,t.WebPlayer=W,t.WebPlayerCustomMedia=w,t.WebPlayerIcon=F,t.generateCompositionUrl=Y,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@car-cutter/vue-webplayer",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "license": "Apache-2.0",
5
5
  "author": {
6
6
  "name": "CarCutter",
@@ -40,7 +40,7 @@
40
40
  "analyze": "vite-bundle-visualizer"
41
41
  },
42
42
  "dependencies": {
43
- "@car-cutter/wc-webplayer": "3.1.2"
43
+ "@car-cutter/wc-webplayer": "3.1.3"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "vue": "^3"