@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/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;" :style="{ height: displayMode === 'stack' ? 'auto' : '100%' }">
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: p,
43546
- displayMode: b,
43547
- allowPanAndZoom: f,
43548
- embedApiBaseUrl: r,
43549
- cloudflarePagesHostname: s,
43550
- bxCoreVersion: d,
43551
- branding: v,
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
  };