@bluepic/embed 0.2.32 → 0.2.35
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/bluepic-embed.iife.js +2 -2
- package/dist/bluepic-embed.iife.js.map +1 -1
- package/dist/bluepic-embed.umd.js +2 -2
- package/dist/bluepic-embed.umd.js.map +1 -1
- package/dist/embed/embed.d.ts +2 -0
- package/dist/main.cjs +2 -2
- package/dist/main.cjs.map +1 -1
- package/dist/main.mjs +11 -12
- package/dist/main.mjs.map +1 -1
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -43348,7 +43348,7 @@ class Zv extends EventTarget {
|
|
|
43348
43348
|
box-sizing: border-box;
|
|
43349
43349
|
}
|
|
43350
43350
|
`, document.head.appendChild(t), this.element.innerHTML = `
|
|
43351
|
-
<div id="${this.id}" class="bluepic-app-wrapper" style="position: relative;
|
|
43351
|
+
<div id="${this.id}" class="bluepic-app-wrapper" style="position: relative; height: ${this.displayMode.value === "stack" ? "auto" : "100%"};">
|
|
43352
43352
|
<div v-if="templateId && (!isAsync || baseSerial)" style="display: flex; flex-direction: column;" :style="{ height: displayMode === 'stack' ? 'auto' : '100%' }">
|
|
43353
43353
|
<bluepic-embedded-editor
|
|
43354
43354
|
v-if="templateId"
|
|
@@ -43538,18 +43538,17 @@ async function dP(e, n, t, i, a, r) {
|
|
|
43538
43538
|
const pP = async () => {
|
|
43539
43539
|
const e = document.querySelectorAll(".bluepic-embed[data-embed-project-id]");
|
|
43540
43540
|
for (const n of e) {
|
|
43541
|
-
const t = n.getAttribute("data-embed-project-id"), i = n.getAttribute("data-template-id");
|
|
43542
|
-
n.getAttribute("data-stripe-env");
|
|
43543
|
-
const a = n.getAttribute("data-init-data"), r = n.getAttribute("data-embed-api-base-url") ?? void 0, s = n.getAttribute("data-cloudflare-pages-hostname") ?? void 0, u = n.getAttribute("data-display-mode"), l = n.getAttribute("data-allow-pan-and-zoom"), d = n.getAttribute("data-bx-core-version") ?? void 0, p = a ? JSON.parse(a) : void 0, f = l === "true", b = u === "mobile" ? "mobile" : u === "stack" ? "stack" : "auto", v = n.getAttribute("data-branding") === "false";
|
|
43541
|
+
const t = n.getAttribute("data-embed-project-id"), i = n.getAttribute("data-template-id"), a = n.getAttribute("data-stripe-env"), r = n.getAttribute("data-init-data"), s = n.getAttribute("data-embed-api-base-url") ?? void 0, u = n.getAttribute("data-cloudflare-pages-hostname") ?? void 0, l = n.getAttribute("data-display-mode"), d = n.getAttribute("data-allow-pan-and-zoom"), p = n.getAttribute("data-bx-core-version") ?? void 0, f = r ? JSON.parse(r) : void 0, b = d === "true", v = l === "mobile" ? "mobile" : l === "stack" ? "stack" : "auto", h = n.getAttribute("data-branding") === "false";
|
|
43544
43542
|
new Zv(n, i, t, {
|
|
43545
|
-
initData:
|
|
43546
|
-
displayMode:
|
|
43547
|
-
allowPanAndZoom:
|
|
43548
|
-
embedApiBaseUrl:
|
|
43549
|
-
cloudflarePagesHostname:
|
|
43550
|
-
bxCoreVersion:
|
|
43551
|
-
branding:
|
|
43552
|
-
theme: "auto"
|
|
43543
|
+
initData: f,
|
|
43544
|
+
displayMode: v,
|
|
43545
|
+
allowPanAndZoom: b,
|
|
43546
|
+
embedApiBaseUrl: s,
|
|
43547
|
+
cloudflarePagesHostname: u,
|
|
43548
|
+
bxCoreVersion: p,
|
|
43549
|
+
branding: h,
|
|
43550
|
+
theme: "auto",
|
|
43551
|
+
stripeEnv: a === "dev" ? "dev" : "prod"
|
|
43553
43552
|
});
|
|
43554
43553
|
}
|
|
43555
43554
|
};
|