@bluepic/embed 0.1.30 → 0.1.32
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/lib/bluepic-embed.es.js
CHANGED
|
@@ -77280,8 +77280,8 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
77280
77280
|
key: 0,
|
|
77281
77281
|
class: normalizeClass(["watermark", { darkmode: unref(ii) }])
|
|
77282
77282
|
}, [
|
|
77283
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
77284
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
77283
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(32, (yn) => createElementVNode("div", null, [
|
|
77284
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(32, (Cn) => createElementVNode("span", null, toDisplayString(Zr.watermark), 1)), 64))
|
|
77285
77285
|
])), 64))
|
|
77286
77286
|
], 2)) : createCommentVNode("", !0),
|
|
77287
77287
|
(openBlock(), createElementBlock("svg", _hoisted_7$3, [
|
|
@@ -77350,7 +77350,7 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
77350
77350
|
], 64))
|
|
77351
77351
|
], 38));
|
|
77352
77352
|
}
|
|
77353
|
-
}),
|
|
77353
|
+
}), BluepicLiveTemplate_vue_vue_type_style_index_0_scoped_1529f512_lang = "", BluepicLiveTemplate_vue_vue_type_style_index_1_scoped_1529f512_lang = "", BluepicLiveTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-1529f512"]]), _hoisted_1$f = { class: "label" }, _hoisted_2$b = { class: "field-wrapper" }, _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
77354
77354
|
__name: "KioskField",
|
|
77355
77355
|
props: {
|
|
77356
77356
|
serial: {},
|
|
@@ -98813,6 +98813,7 @@ class BluepicEmbed extends EventTarget {
|
|
|
98813
98813
|
bxCoreVersion = ref$1("auto");
|
|
98814
98814
|
publishedSlug = ref$1("latest");
|
|
98815
98815
|
theme = ref$1();
|
|
98816
|
+
branding = ref$1(!0);
|
|
98816
98817
|
constructor(c, de, ye) {
|
|
98817
98818
|
if (super(), typeof c == "string") {
|
|
98818
98819
|
const ke = document.querySelector(c);
|
|
@@ -98823,7 +98824,7 @@ class BluepicEmbed extends EventTarget {
|
|
|
98823
98824
|
this.element = c;
|
|
98824
98825
|
else
|
|
98825
98826
|
throw new Error("Invalid element or selector provided");
|
|
98826
|
-
this.init(), this.displayMode.value = ye?.displayMode ?? this.displayMode.value, this.darkmode.value = ye?.darkmode ?? this.darkmode.value, this.allowPanAndZoom.value = ye?.allowPanAndZoom ?? this.allowPanAndZoom.value, this.studioResourcesBaseUrl.value = ye?.studioResourcesBaseUrl ?? this.studioResourcesBaseUrl.value, this.cloudflarePagesHostname.value = ye?.cloudflarePagesHostname ?? this.cloudflarePagesHostname.value, this.bxCoreVersion.value = ye?.bxCoreVersion ?? this.bxCoreVersion.value, this.publishedSlug.value = ye?.publishedSlug ?? this.publishedSlug.value, this.theme.value = ye?.theme ?? this.theme.value, this.templateId = ref$1(de), this.data.value = ye?.initData ?? this.data.value, watch(this.ready, (ke, xe) => {
|
|
98827
|
+
this.init(), this.displayMode.value = ye?.displayMode ?? this.displayMode.value, this.darkmode.value = ye?.darkmode ?? this.darkmode.value, this.allowPanAndZoom.value = ye?.allowPanAndZoom ?? this.allowPanAndZoom.value, this.studioResourcesBaseUrl.value = ye?.studioResourcesBaseUrl ?? this.studioResourcesBaseUrl.value, this.cloudflarePagesHostname.value = ye?.cloudflarePagesHostname ?? this.cloudflarePagesHostname.value, this.bxCoreVersion.value = ye?.bxCoreVersion ?? this.bxCoreVersion.value, this.publishedSlug.value = ye?.publishedSlug ?? this.publishedSlug.value, this.theme.value = ye?.theme ?? this.theme.value, this.branding.value = ye?.branding ?? this.branding.value, this.templateId = ref$1(de), this.data.value = ye?.initData ?? this.data.value, watch(this.ready, (ke, xe) => {
|
|
98827
98828
|
if (ke && !xe) {
|
|
98828
98829
|
const Ze = new CustomEvent("ready", {
|
|
98829
98830
|
detail: { templateId: this.templateId.value, data: unref(this.data.value) }
|
|
@@ -98865,6 +98866,7 @@ class BluepicEmbed extends EventTarget {
|
|
|
98865
98866
|
:zoom-and-pan="allowPanAndZoom"
|
|
98866
98867
|
v-model:ready="ready"
|
|
98867
98868
|
:theme="theme"
|
|
98869
|
+
:branding="branding"
|
|
98868
98870
|
/>
|
|
98869
98871
|
</div>
|
|
98870
98872
|
`;
|
|
@@ -98983,11 +98985,12 @@ window.addEventListener("load", async () => {
|
|
|
98983
98985
|
editorViewBackgroundColor: Bi
|
|
98984
98986
|
};
|
|
98985
98987
|
}
|
|
98986
|
-
})()
|
|
98988
|
+
})(),
|
|
98989
|
+
branding: mi.isAllowedToDisableBranding ? mi.config.bluepicBranding : !0
|
|
98987
98990
|
});
|
|
98988
98991
|
console.log("!", c, Ai);
|
|
98989
98992
|
} else if (ye) {
|
|
98990
|
-
const mi = c.getAttribute("data-display-mode"), Ei = c.getAttribute("data-allow-pan-and-zoom"), Ai = c.getAttribute("data-darkmode"), Ci = c.getAttribute("data-bx-core-version") ?? void 0, Bi = c.getAttribute("data-published-slug") ?? void 0, $i = c.getAttribute("data-theme"), Wi = xe ? JSON.parse(xe) : void 0, Oi = $i ? JSON.parse($i) : void 0, Ui = Ei === "true", Gi = Ai === "true", or = mi === "mobile" ? "mobile" : mi === "stack" ? "stack" : "auto", rr = new BluepicEmbed(c, ye, {
|
|
98993
|
+
const mi = c.getAttribute("data-display-mode"), Ei = c.getAttribute("data-allow-pan-and-zoom"), Ai = c.getAttribute("data-darkmode"), Ci = c.getAttribute("data-bx-core-version") ?? void 0, Bi = c.getAttribute("data-published-slug") ?? void 0, $i = c.getAttribute("data-theme"), Wi = xe ? JSON.parse(xe) : void 0, Oi = $i ? JSON.parse($i) : void 0, Ui = Ei === "true", Gi = Ai === "true", or = mi === "mobile" ? "mobile" : mi === "stack" ? "stack" : "auto", rr = c.getAttribute("data-branding") === "false", cr = new BluepicEmbed(c, ye, {
|
|
98991
98994
|
initData: Wi,
|
|
98992
98995
|
displayMode: or,
|
|
98993
98996
|
allowPanAndZoom: Ui,
|
|
@@ -98996,9 +98999,10 @@ window.addEventListener("load", async () => {
|
|
|
98996
98999
|
cloudflarePagesHostname: ie,
|
|
98997
99000
|
bxCoreVersion: Ci,
|
|
98998
99001
|
publishedSlug: Bi,
|
|
98999
|
-
theme: Oi
|
|
99002
|
+
theme: Oi,
|
|
99003
|
+
branding: rr
|
|
99000
99004
|
});
|
|
99001
|
-
console.log("!", c,
|
|
99005
|
+
console.log("!", c, cr);
|
|
99002
99006
|
}
|
|
99003
99007
|
}
|
|
99004
99008
|
});
|