@builder.io/sdk-vue 1.0.12 → 1.0.13

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.
Files changed (58) hide show
  1. package/lib/browser/{block-styles-xXC5xD7m.cjs → block-styles-_qrwihLk.cjs} +1 -1
  2. package/lib/browser/{block-styles-xasGILBF.js → block-styles-w1M0LXrx.js} +1 -1
  3. package/lib/browser/{block-wrapper-4N6UCZUb.cjs → block-wrapper-Au0vulMF.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-N_9kN83W.js → block-wrapper-QNIz6Vdv.js} +3 -3
  5. package/lib/browser/{component-ref-NZYFpLyY.js → component-ref-MbPl2CHV.js} +2 -2
  6. package/lib/browser/{component-ref-CtedueX1.cjs → component-ref-OnQqb8T-.cjs} +1 -1
  7. package/lib/browser/components/content/components/styles.helpers.d.ts +1 -0
  8. package/lib/browser/components/content/components/styles.vue.d.ts +3 -0
  9. package/lib/browser/components/content/content.vue.d.ts +3 -0
  10. package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -3
  11. package/lib/browser/constants/sdk-version.d.ts +1 -1
  12. package/lib/browser/{get-block-properties-XpDJWplm.js → get-block-properties-hpq-CJY1.js} +1 -1
  13. package/lib/browser/{get-block-properties-BYv9arve.cjs → get-block-properties-lXT88FeT.cjs} +1 -1
  14. package/lib/browser/{index-IiLTuw5y.js → index-E4WWVJ79.js} +130 -125
  15. package/lib/browser/{index-TLgvBIUm.cjs → index-RcE8e_OC.cjs} +14 -13
  16. package/lib/browser/index.cjs +1 -1
  17. package/lib/browser/index.js +1 -1
  18. package/lib/browser/{repeated-block-2uW65br0.js → repeated-block-QB5g7Ust.js} +2 -2
  19. package/lib/browser/{repeated-block-R55GuInH.cjs → repeated-block-V_psB9It.cjs} +1 -1
  20. package/lib/edge/{block-styles-OQkHmuXv.cjs → block-styles-QHMOE0S4.cjs} +1 -1
  21. package/lib/{node/block-styles-rVezFfnK.js → edge/block-styles-WpbLKq4T.js} +1 -1
  22. package/lib/{node/block-wrapper-HZs0reB7.cjs → edge/block-wrapper-tu7QVViI.cjs} +1 -1
  23. package/lib/edge/{block-wrapper-amJaBkpx.js → block-wrapper-ztawNy2m.js} +3 -3
  24. package/lib/{node/component-ref-lZGzt5_2.js → edge/component-ref-WRW-4P1x.js} +2 -2
  25. package/lib/{node/component-ref-pR-6yx5E.cjs → edge/component-ref-bcfMG081.cjs} +1 -1
  26. package/lib/edge/components/content/components/styles.helpers.d.ts +1 -0
  27. package/lib/edge/components/content/components/styles.vue.d.ts +3 -0
  28. package/lib/edge/components/content/content.vue.d.ts +3 -0
  29. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -3
  30. package/lib/edge/constants/sdk-version.d.ts +1 -1
  31. package/lib/{node/get-block-properties-huGrIrmB.js → edge/get-block-properties-AFdRtMKe.js} +1 -1
  32. package/lib/edge/{get-block-properties-I4wR6gqz.cjs → get-block-properties-xvC8pXTy.cjs} +1 -1
  33. package/lib/edge/{index-QGDyn3F4.js → index-GAq8Fz-f.js} +72 -67
  34. package/lib/edge/{index-Y1Ul7p-a.cjs → index-wMgipKIX.cjs} +16 -15
  35. package/lib/edge/index.cjs +1 -1
  36. package/lib/edge/index.js +1 -1
  37. package/lib/edge/{repeated-block-SXw3PYRg.js → repeated-block-OnIT2pkB.js} +2 -2
  38. package/lib/edge/{repeated-block-cho6OAg2.cjs → repeated-block-l0D27WF9.cjs} +1 -1
  39. package/lib/{edge/block-styles-1Y-luUbF.js → node/block-styles-GcRpGGGb.js} +1 -1
  40. package/lib/node/{block-styles-duIy1mDJ.cjs → block-styles-Sy-nPU0R.cjs} +1 -1
  41. package/lib/node/{block-wrapper-pazX_RJj.js → block-wrapper-0L33ttpx.js} +3 -3
  42. package/lib/{edge/block-wrapper-qcbYIhCp.cjs → node/block-wrapper-UTBALtPk.cjs} +1 -1
  43. package/lib/{edge/component-ref-G4Y_2Wev.js → node/component-ref-6IKG3Ho0.js} +2 -2
  44. package/lib/{edge/component-ref-TBA1YCG5.cjs → node/component-ref-7bM0jb0c.cjs} +1 -1
  45. package/lib/node/components/content/components/styles.helpers.d.ts +1 -0
  46. package/lib/node/components/content/components/styles.vue.d.ts +3 -0
  47. package/lib/node/components/content/content.vue.d.ts +3 -0
  48. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -3
  49. package/lib/node/constants/sdk-version.d.ts +1 -1
  50. package/lib/{edge/get-block-properties-Mf8j3xxz.js → node/get-block-properties-_UpNP38d.js} +1 -1
  51. package/lib/node/{get-block-properties-R1EbzpGB.cjs → get-block-properties-puEyJ4Mp.cjs} +1 -1
  52. package/lib/node/{index-3Ry2GjhV.cjs → index-F48IXQzv.cjs} +9 -8
  53. package/lib/node/{index-whwvaDGF.js → index-uoj8LnIN.js} +32 -27
  54. package/lib/node/index.cjs +1 -1
  55. package/lib/node/index.js +1 -1
  56. package/lib/node/{repeated-block-11rZMkW-.cjs → repeated-block-KRo01jEJ.cjs} +1 -1
  57. package/lib/node/{repeated-block-q2Om5NKj.js → repeated-block-mrsSMqYC.js} +2 -2
  58. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  var it = Object.defineProperty;
2
2
  var at = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Z = (e, t, n) => (at(e, typeof t != "symbol" ? t + "" : t, n), n);
3
+ var _ = (e, t, n) => (at(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import "./style.css";
5
- import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as H, mergeProps as w, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as lt, toDisplayString as X, defineAsyncComponent as q, createVNode as A, renderList as L, createCommentVNode as v, h as Re, createElementVNode as te, normalizeStyle as ne, normalizeClass as Ee, markRaw as ct } from "vue";
5
+ import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as H, mergeProps as w, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as lt, toDisplayString as X, defineAsyncComponent as q, createVNode as x, renderList as L, createCommentVNode as v, h as Re, createElementVNode as te, normalizeStyle as ne, normalizeClass as Ee, markRaw as ct } from "vue";
6
6
  const dt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ut = (e) => typeof e == "string" && dt.has(e.toLowerCase());
7
7
  function U(e = {}, t, n) {
8
8
  const o = {};
@@ -41,7 +41,7 @@ function mt(e, t, n, o, s, r) {
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const ie = /* @__PURE__ */ y(pt, [["render", mt]]), Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const ie = /* @__PURE__ */ y(pt, [["render", mt]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
46
  default: ie
47
47
  }, Symbol.toStringTag, { value: "Module" })), V = "vue", ae = () => {
@@ -138,12 +138,12 @@ const St = (e) => {
138
138
  return e.forEach((n, o) => {
139
139
  t[o] = n;
140
140
  }), t;
141
- }, Ve = (e) => e instanceof URLSearchParams ? St(e) : e, xe = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
141
+ }, Ve = (e) => e instanceof URLSearchParams ? St(e) : e, Ae = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
142
142
  function vt() {
143
143
  return I() && window.self !== window.top;
144
144
  }
145
145
  function R(e) {
146
- return vt() && xe(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
146
+ return vt() && Ae(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
147
147
  }
148
148
  const Ct = () => {
149
149
  if (I()) {
@@ -151,7 +151,7 @@ const Ct = () => {
151
151
  return e.pathname === "" && (e.pathname = "/"), e;
152
152
  } else
153
153
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
154
- }, wt = () => typeof navigator == "object" && navigator.userAgent || "", Ae = () => {
154
+ }, wt = () => typeof navigator == "object" && navigator.userAgent || "", xe = () => {
155
155
  const e = wt(), t = {
156
156
  Android() {
157
157
  return e.match(/Android/i);
@@ -193,7 +193,7 @@ const Ct = () => {
193
193
  isEditing: R(),
194
194
  isBrowser: I(),
195
195
  isServer: !I(),
196
- getUserAttributes: () => Ae()
196
+ getUserAttributes: () => xe()
197
197
  }), Tt = (e, {
198
198
  isExpression: t = !0
199
199
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ge = ({
@@ -253,7 +253,7 @@ const Et = () => {
253
253
  return !1;
254
254
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
255
255
  return e && t && !n ? (T.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
256
- }, Pt = (e) => (I() || Et(), ge(e)), x = class x {
256
+ }, Pt = (e) => (I() || Et(), ge(e)), A = class A {
257
257
  static getCacheKey(t) {
258
258
  return JSON.stringify({
259
259
  ...t,
@@ -263,16 +263,16 @@ const Et = () => {
263
263
  });
264
264
  }
265
265
  static getCachedValue(t) {
266
- return x.cache.get(t);
266
+ return A.cache.get(t);
267
267
  }
268
268
  static setCachedValue(t, n) {
269
- x.cache.size > 20 && x.cache.delete(x.cache.keys().next().value), x.cache.set(t, {
269
+ A.cache.size > 20 && A.cache.delete(A.cache.keys().next().value), A.cache.set(t, {
270
270
  value: n
271
271
  });
272
272
  }
273
273
  };
274
- Z(x, "cacheLimit", 20), Z(x, "cache", /* @__PURE__ */ new Map());
275
- let M = x;
274
+ _(A, "cacheLimit", 20), _(A, "cache", /* @__PURE__ */ new Map());
275
+ let M = A;
276
276
  function Q({
277
277
  code: e,
278
278
  context: t,
@@ -371,7 +371,7 @@ function Ne({
371
371
  context: t
372
372
  }) : i;
373
373
  }
374
- function xt(e, t, n = {}) {
374
+ function At(e, t, n = {}) {
375
375
  let o, s, r, i = null, a = 0;
376
376
  const l = function() {
377
377
  a = n.leading === !1 ? 0 : Date.now(), i = null, r = e.apply(o, s), i || (o = s = null);
@@ -394,7 +394,7 @@ function O(e, ...t) {
394
394
  return n;
395
395
  }
396
396
  const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
397
- function At(e) {
397
+ function xt(e) {
398
398
  for (const t of e)
399
399
  switch (t.trigger) {
400
400
  case "pageLoad":
@@ -474,7 +474,7 @@ function Nt(e) {
474
474
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
475
475
  })) : e.repeat && o && !s && !a(n) && (o = !1, O(n.style, e.steps[0].styles));
476
476
  }
477
- const i = xt(r, 200, {
477
+ const i = At(r, 200, {
478
478
  leading: !1
479
479
  });
480
480
  function a(m) {
@@ -497,7 +497,7 @@ const Ft = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
497
497
  if (typeof o == "string")
498
498
  return `${Ft(n)}: ${o};`;
499
499
  }).filter(F), Ut = (e) => Ue(e).join(`
500
- `), Xs = ({
500
+ `), _s = ({
501
501
  mediaQuery: e,
502
502
  className: t,
503
503
  styles: n
@@ -514,7 +514,7 @@ function Ot({
514
514
  }) {
515
515
  return e;
516
516
  }
517
- const _s = ({
517
+ const er = ({
518
518
  block: e,
519
519
  context: t
520
520
  }) => Oe(Ot({
@@ -591,22 +591,22 @@ const Lt = ({
591
591
  },
592
592
  block: o
593
593
  }));
594
- }, Dt = () => import("./block-styles-xasGILBF.js").then((e) => e.default).catch((e) => {
594
+ }, Dt = () => import("./block-styles-w1M0LXrx.js").then((e) => e.default).catch((e) => {
595
595
  throw console.error(
596
596
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
597
597
  e
598
598
  ), e;
599
- }), Ht = () => import("./block-wrapper-N_9kN83W.js").then((e) => e.default).catch((e) => {
599
+ }), Ht = () => import("./block-wrapper-QNIz6Vdv.js").then((e) => e.default).catch((e) => {
600
600
  throw console.error(
601
601
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
602
602
  e
603
603
  ), e;
604
- }), jt = () => import("./component-ref-NZYFpLyY.js").then((e) => e.default).catch((e) => {
604
+ }), jt = () => import("./component-ref-MbPl2CHV.js").then((e) => e.default).catch((e) => {
605
605
  throw console.error(
606
606
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
607
607
  e
608
608
  ), e;
609
- }), Kt = () => import("./repeated-block-2uW65br0.js").then((e) => e.default).catch((e) => {
609
+ }), Kt = () => import("./repeated-block-QB5g7Ust.js").then((e) => e.default).catch((e) => {
610
610
  throw console.error(
611
611
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
612
612
  e
@@ -622,7 +622,7 @@ const Lt = ({
622
622
  props: ["block", "context", "registeredComponents", "linkComponent"],
623
623
  mounted() {
624
624
  const e = this.processedBlock.id, t = this.processedBlock.animations;
625
- t && e && At(
625
+ t && e && xt(
626
626
  t.filter((n) => n.trigger !== "hover").map((n) => ({
627
627
  ...n,
628
628
  elementId: e
@@ -698,7 +698,7 @@ function qt(e, t, n, o, s, r) {
698
698
  var d;
699
699
  const i = k("block-styles"), a = k("component-ref"), l = k("block", !0), c = k("block-wrapper"), m = k("repeated-block");
700
700
  return e.canShowBlock ? (u(), h($, { key: 0 }, [
701
- A(i, {
701
+ x(i, {
702
702
  block: e.block,
703
703
  context: e.context
704
704
  }, null, 8, ["block", "context"]),
@@ -728,7 +728,7 @@ function qt(e, t, n, o, s, r) {
728
728
  linkComponent: e.linkComponent
729
729
  }, {
730
730
  default: B(() => [
731
- A(a, {
731
+ x(a, {
732
732
  componentRef: e.componentRefProps.componentRef,
733
733
  componentOptions: e.componentRefProps.componentOptions,
734
734
  blockChildren: e.componentRefProps.blockChildren,
@@ -752,7 +752,7 @@ function qt(e, t, n, o, s, r) {
752
752
  ], 64))
753
753
  ], 64)) : v("", !0);
754
754
  }
755
- const ue = /* @__PURE__ */ y(zt, [["render", qt]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
755
+ const ue = /* @__PURE__ */ y(zt, [["render", qt]]), tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
756
756
  __proto__: null,
757
757
  default: ue
758
758
  }, Symbol.toStringTag, { value: "Module" })), Jt = f({
@@ -856,7 +856,7 @@ function Xt(e, t, n, o, s, r) {
856
856
  _: 1
857
857
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
858
858
  }
859
- const _ = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
859
+ const Z = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
860
860
  render() {
861
861
  return Re("style", { id: this.id, innerHTML: this.styles });
862
862
  },
@@ -878,7 +878,7 @@ const _ = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
878
878
  default: 991,
879
879
  max: 1200
880
880
  }
881
- }, er = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, _t = ({
881
+ }, nr = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Zt = ({
882
882
  small: e,
883
883
  medium: t
884
884
  }) => {
@@ -904,12 +904,12 @@ const _ = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
904
904
  min: r,
905
905
  default: r + 1
906
906
  }, n;
907
- }, Zt = f({
907
+ }, _t = f({
908
908
  name: "builder-columns",
909
909
  components: {
910
910
  InlinedStyles: pe,
911
911
  DynamicRenderer: ie,
912
- Blocks: _
912
+ Blocks: Z
913
913
  },
914
914
  props: [
915
915
  "space",
@@ -1021,7 +1021,7 @@ const _ = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
1021
1021
  },
1022
1022
  getWidthForBreakpointSize(e) {
1023
1023
  var n, o;
1024
- return _t(
1024
+ return Zt(
1025
1025
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1026
1026
  )[e].max;
1027
1027
  }
@@ -1050,7 +1050,7 @@ function en(e, t, n, o, s, r) {
1050
1050
  }
1051
1051
  }, {
1052
1052
  default: B(() => [
1053
- A(a, {
1053
+ x(a, {
1054
1054
  path: `component.options.columns.${m}.blocks`,
1055
1055
  parent: e.builderBlock.id,
1056
1056
  styleProp: {
@@ -1066,7 +1066,7 @@ function en(e, t, n, o, s, r) {
1066
1066
  }, 1032, ["TagName", "attributes"]))), 128))
1067
1067
  ], 16);
1068
1068
  }
1069
- const tn = /* @__PURE__ */ y(Zt, [["render", en], ["__scopeId", "data-v-d0d8b675"]]), nn = f({
1069
+ const tn = /* @__PURE__ */ y(_t, [["render", en], ["__scopeId", "data-v-d0d8b675"]]), nn = f({
1070
1070
  name: "builder-fragment-component",
1071
1071
  props: []
1072
1072
  });
@@ -1595,7 +1595,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1595
1595
  hidden: !0,
1596
1596
  canHaveChildren: !0,
1597
1597
  noWrap: !0
1598
- }, xn = {
1598
+ }, An = {
1599
1599
  name: "Image",
1600
1600
  static: !0,
1601
1601
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1695,7 +1695,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1695
1695
  advanced: !0,
1696
1696
  defaultValue: 0.7041
1697
1697
  }]
1698
- }, An = {
1698
+ }, xn = {
1699
1699
  name: "Core:Section",
1700
1700
  static: !0,
1701
1701
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1749,7 +1749,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1749
1749
  }]
1750
1750
  }, Wn = f({
1751
1751
  name: "builder-slot",
1752
- components: { Blocks: _ },
1752
+ components: { Blocks: Z },
1753
1753
  props: ["js", "builderContext", "name"]
1754
1754
  });
1755
1755
  function Nn(e, t, n, o, s, r) {
@@ -1763,7 +1763,7 @@ function Nn(e, t, n, o, s, r) {
1763
1763
  "builder-slot": e.name
1764
1764
  }
1765
1765
  ), [
1766
- A(i, {
1766
+ x(i, {
1767
1767
  parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
1768
1768
  path: `symbol.data.${e.name}`,
1769
1769
  context: e.builderContext,
@@ -1967,15 +1967,15 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", qn]]), Gn = {
1967
1967
  }
1968
1968
  }
1969
1969
  }
1970
- }), _n = ["innerHTML"];
1971
- function Zn(e, t, n, o, s, r) {
1970
+ }), Zn = ["innerHTML"];
1971
+ function _n(e, t, n, o, s, r) {
1972
1972
  return u(), h("div", {
1973
1973
  class: "builder-embed",
1974
1974
  ref: "elem",
1975
1975
  innerHTML: e.content
1976
- }, null, 8, _n);
1976
+ }, null, 8, Zn);
1977
1977
  }
1978
- const eo = /* @__PURE__ */ y(Xn, [["render", Zn]]), to = {
1978
+ const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
1979
1979
  name: "Form:Form",
1980
1980
  // editableTags: ['builder-form-error']
1981
1981
  defaults: {
@@ -2214,7 +2214,7 @@ const eo = /* @__PURE__ */ y(Xn, [["render", Zn]]), to = {
2214
2214
  return o === void 0 || o === e ? n : o;
2215
2215
  }, ro = f({
2216
2216
  name: "builder-form-component",
2217
- components: { Block: ue, Blocks: _ },
2217
+ components: { Block: ue, Blocks: Z },
2218
2218
  props: [
2219
2219
  "js",
2220
2220
  "builderContext",
@@ -2630,7 +2630,7 @@ function Po(e, t, n, o, s, r) {
2630
2630
  src: e.imgSrc || e.image
2631
2631
  }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Eo);
2632
2632
  }
2633
- const Vo = /* @__PURE__ */ y(Ro, [["render", Po]]), xo = {
2633
+ const Vo = /* @__PURE__ */ y(Ro, [["render", Po]]), Ao = {
2634
2634
  name: "Video",
2635
2635
  canHaveChildren: !0,
2636
2636
  defaultStyles: {
@@ -2711,7 +2711,7 @@ const Vo = /* @__PURE__ */ y(Ro, [["render", Po]]), xo = {
2711
2711
  defaultValue: !0,
2712
2712
  advanced: !0
2713
2713
  }]
2714
- }, Ao = f({
2714
+ }, xo = f({
2715
2715
  name: "builder-video",
2716
2716
  props: [
2717
2717
  "autoPlay",
@@ -2825,7 +2825,7 @@ function Oo(e, t, n, o, s, r) {
2825
2825
  ])) : v("", !0)
2826
2826
  ]);
2827
2827
  }
2828
- const Lo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Mo = () => [{
2828
+ const Lo = /* @__PURE__ */ y(xo, [["render", Oo]]), Mo = () => [{
2829
2829
  component: Jn,
2830
2830
  ...jn
2831
2831
  }, {
@@ -2848,7 +2848,7 @@ const Lo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Mo = () => [{
2848
2848
  ...To
2849
2849
  }, {
2850
2850
  component: Lo,
2851
- ...xo
2851
+ ...Ao
2852
2852
  }], ke = () => [{
2853
2853
  component: bt,
2854
2854
  ...En
@@ -2860,15 +2860,15 @@ const Lo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Mo = () => [{
2860
2860
  ...Vn
2861
2861
  }, {
2862
2862
  component: mn,
2863
- ...xn
2863
+ ...An
2864
2864
  }, {
2865
2865
  component: bn,
2866
- ...An
2866
+ ...xn
2867
2867
  }, {
2868
2868
  component: Fn,
2869
2869
  ...Bn
2870
2870
  }, {
2871
- component: qs,
2871
+ component: Gs,
2872
2872
  ...Un
2873
2873
  }, {
2874
2874
  component: Hn,
@@ -3006,14 +3006,14 @@ const Lo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Mo = () => [{
3006
3006
  function Xo() {
3007
3007
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3008
3008
  }
3009
- function _o() {
3009
+ function Zo() {
3010
3010
  const e = Xo().fetch;
3011
3011
  if (typeof e > "u")
3012
3012
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3013
3013
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3014
3014
  return e;
3015
3015
  }
3016
- const Qe = _o();
3016
+ const Qe = Zo();
3017
3017
  function Y(e, t = null, n = ".") {
3018
3018
  return Object.keys(e).reduce((o, s) => {
3019
3019
  const r = e[s], i = [t, s].filter(Boolean).join(n);
@@ -3026,7 +3026,7 @@ function Y(e, t = null, n = ".") {
3026
3026
  };
3027
3027
  }, {});
3028
3028
  }
3029
- const Zo = "v3", Se = "builder.", es = "options.", Xe = (e) => {
3029
+ const _o = "v3", Se = "builder.", es = "options.", Xe = (e) => {
3030
3030
  if (!e)
3031
3031
  return {};
3032
3032
  const t = Ve(e), n = {};
@@ -3050,7 +3050,7 @@ const Zo = "v3", Se = "builder.", es = "options.", Xe = (e) => {
3050
3050
  apiKey: r,
3051
3051
  enrich: i,
3052
3052
  locale: a,
3053
- apiVersion: l = Zo,
3053
+ apiVersion: l = _o,
3054
3054
  fields: c,
3055
3055
  omit: m,
3056
3056
  offset: d,
@@ -3128,7 +3128,7 @@ async function rs(e) {
3128
3128
  function is(e) {
3129
3129
  if (!I())
3130
3130
  return !1;
3131
- const t = xe(e || window.location.search);
3131
+ const t = Ae(e || window.location.search);
3132
3132
  return R(t) ? !1 : t.indexOf("builder.preview=") !== -1;
3133
3133
  }
3134
3134
  function as() {
@@ -3137,16 +3137,16 @@ function as() {
3137
3137
  return (e == "x" ? t : t & 3 | 8).toString(16);
3138
3138
  });
3139
3139
  }
3140
- function _e() {
3140
+ function Ze() {
3141
3141
  return as().replace(/-/g, "");
3142
3142
  }
3143
- const Ze = "builderSessionId", ls = async ({
3143
+ const _e = "builderSessionId", ls = async ({
3144
3144
  canTrack: e
3145
3145
  }) => {
3146
3146
  if (!e)
3147
3147
  return;
3148
3148
  const t = await De({
3149
- name: Ze,
3149
+ name: _e,
3150
3150
  canTrack: e
3151
3151
  });
3152
3152
  if (F(t))
@@ -3158,11 +3158,11 @@ const Ze = "builderSessionId", ls = async ({
3158
3158
  canTrack: e
3159
3159
  }), n;
3160
3160
  }
3161
- }, cs = () => _e(), ds = ({
3161
+ }, cs = () => Ze(), ds = ({
3162
3162
  id: e,
3163
3163
  canTrack: t
3164
3164
  }) => He({
3165
- name: Ze,
3165
+ name: _e,
3166
3166
  value: e,
3167
3167
  canTrack: t
3168
3168
  }), et = () => I() && typeof localStorage < "u" ? localStorage : void 0, us = ({
@@ -3205,7 +3205,7 @@ const Ze = "builderSessionId", ls = async ({
3205
3205
  canTrack: e
3206
3206
  }), n;
3207
3207
  }
3208
- }, hs = () => _e(), fs = ({
3208
+ }, hs = () => Ze(), fs = ({
3209
3209
  id: e,
3210
3210
  canTrack: t
3211
3211
  }) => ps({
@@ -3246,7 +3246,7 @@ const Ze = "builderSessionId", ls = async ({
3246
3246
  ...await bs({
3247
3247
  canTrack: t
3248
3248
  }),
3249
- userAttributes: Ae(),
3249
+ userAttributes: xe(),
3250
3250
  ownerId: n
3251
3251
  }
3252
3252
  });
@@ -3269,7 +3269,7 @@ async function re(e) {
3269
3269
  console.error("Failed to track: ", t);
3270
3270
  });
3271
3271
  }
3272
- const tr = (e) => re({
3272
+ const or = (e) => re({
3273
3273
  ...e,
3274
3274
  canTrack: !0
3275
3275
  });
@@ -3320,7 +3320,7 @@ function nt(e, t) {
3320
3320
  const n = new URL(t.origin), o = n.hostname;
3321
3321
  return (e || vs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3322
3322
  }
3323
- const Cs = "1.0.12", Ie = {};
3323
+ const Cs = "1.0.13", Ie = {};
3324
3324
  function ws(e, t) {
3325
3325
  let n = Ie[e];
3326
3326
  if (n || (n = Ie[e] = []), n.push(t), I()) {
@@ -3449,7 +3449,7 @@ const ot = (e = {}) => {
3449
3449
  break;
3450
3450
  }
3451
3451
  }
3452
- }, nr = (e, t, n) => {
3452
+ }, sr = (e, t, n) => {
3453
3453
  if (!I)
3454
3454
  return T.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3455
3455
  };
@@ -3845,21 +3845,7 @@ font-weight: ${i};
3845
3845
  }, Vs = ({
3846
3846
  cssCode: e,
3847
3847
  contentId: t
3848
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", xs = f({
3849
- name: "content-styles",
3850
- components: { InlinedStyles: pe },
3851
- props: ["cssCode", "contentId", "customFonts"],
3852
- data() {
3853
- return {
3854
- injectedStyles: `
3855
- ${Vs({
3856
- cssCode: this.cssCode,
3857
- contentId: this.contentId
3858
- })}
3859
- ${Ps({
3860
- customFonts: this.customFonts
3861
- })}
3862
-
3848
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", As = `
3863
3849
  .builder-button {
3864
3850
  all: unset;
3865
3851
  }
@@ -3876,15 +3862,30 @@ ${Ps({
3876
3862
  text-align: inherit;
3877
3863
  font-family: inherit;
3878
3864
  }
3865
+ `, xs = (e) => e ? "" : As, Bs = f({
3866
+ name: "content-styles",
3867
+ components: { InlinedStyles: pe },
3868
+ props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
3869
+ data() {
3870
+ return {
3871
+ injectedStyles: `
3872
+ ${Vs({
3873
+ cssCode: this.cssCode,
3874
+ contentId: this.contentId
3875
+ })}
3876
+ ${Ps({
3877
+ customFonts: this.customFonts
3878
+ })}
3879
+ ${xs(this.isNestedRender)}
3879
3880
  `.trim()
3880
3881
  };
3881
3882
  }
3882
3883
  });
3883
- function As(e, t, n, o, s, r) {
3884
+ function Ws(e, t, n, o, s, r) {
3884
3885
  const i = k("inlined-styles");
3885
3886
  return u(), g(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
3886
3887
  }
3887
- const Bs = /* @__PURE__ */ y(xs, [["render", As]]), Ws = ({
3888
+ const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3888
3889
  content: e,
3889
3890
  data: t,
3890
3891
  locale: n
@@ -3901,7 +3902,7 @@ const Bs = /* @__PURE__ */ y(xs, [["render", As]]), Ws = ({
3901
3902
  locale: n
3902
3903
  } : {}
3903
3904
  };
3904
- }, Ns = ({
3905
+ }, Us = ({
3905
3906
  content: e,
3906
3907
  data: t
3907
3908
  }) => e ? {
@@ -3911,13 +3912,13 @@ const Bs = /* @__PURE__ */ y(xs, [["render", As]]), Ws = ({
3911
3912
  ...t
3912
3913
  },
3913
3914
  meta: e == null ? void 0 : e.meta
3914
- } : void 0, Fs = ct, Us = f({
3915
+ } : void 0, Os = ct, Ls = f({
3915
3916
  name: "content-component",
3916
3917
  components: {
3917
3918
  EnableEditor: Rs,
3918
3919
  InlinedScript: Ye,
3919
- ContentStyles: Bs,
3920
- Blocks: _
3920
+ ContentStyles: Ns,
3921
+ Blocks: Z
3921
3922
  },
3922
3923
  props: [
3923
3924
  "content",
@@ -3937,7 +3938,8 @@ const Bs = /* @__PURE__ */ y(xs, [["render", As]]), Ws = ({
3937
3938
  "contentWrapperProps",
3938
3939
  "linkComponent",
3939
3940
  "trustedHosts",
3940
- "isSsrAbTest"
3941
+ "isSsrAbTest",
3942
+ "isNestedRender"
3941
3943
  ],
3942
3944
  data() {
3943
3945
  var e, t;
@@ -3955,19 +3957,19 @@ const Bs = /* @__PURE__ */ y(xs, [["render", As]]), Ws = ({
3955
3957
  (n, { component: o, ...s }) => ({
3956
3958
  ...n,
3957
3959
  [s.name]: {
3958
- component: Fs(o),
3960
+ component: Os(o),
3959
3961
  ...se(s)
3960
3962
  }
3961
3963
  }),
3962
3964
  {}
3963
3965
  ),
3964
3966
  builderContextSignal: {
3965
- content: Ns({
3967
+ content: Us({
3966
3968
  content: this.content,
3967
3969
  data: this.data
3968
3970
  }),
3969
3971
  localState: void 0,
3970
- rootState: Ws({
3972
+ rootState: Fs({
3971
3973
  content: this.content,
3972
3974
  data: this.data,
3973
3975
  locale: this.locale
@@ -4007,7 +4009,7 @@ const Bs = /* @__PURE__ */ y(xs, [["render", As]]), Ws = ({
4007
4009
  }
4008
4010
  }
4009
4011
  });
4010
- function Os(e, t, n, o, s, r) {
4012
+ function Ms(e, t, n, o, s, r) {
4011
4013
  const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), c = k("enable-editor");
4012
4014
  return u(), g(c, w({
4013
4015
  content: e.content,
@@ -4034,11 +4036,12 @@ function Os(e, t, n, o, s, r) {
4034
4036
  }, null, 8, ["scriptStr"])) : v("", !0),
4035
4037
  e.TARGET !== "reactNative" ? (u(), g(a, {
4036
4038
  key: 1,
4039
+ isNestedRender: e.isNestedRender,
4037
4040
  contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
4038
4041
  cssCode: (p = (d = e.builderContextSignal.content) == null ? void 0 : d.data) == null ? void 0 : p.cssCode,
4039
4042
  customFonts: (b = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : b.customFonts
4040
- }, null, 8, ["contentId", "cssCode", "customFonts"])) : v("", !0),
4041
- A(l, {
4043
+ }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4044
+ x(l, {
4042
4045
  blocks: (z = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : z.blocks,
4043
4046
  context: e.builderContextSignal,
4044
4047
  registeredComponents: e.registeredComponents,
@@ -4049,17 +4052,17 @@ function Os(e, t, n, o, s, r) {
4049
4052
  _: 1
4050
4053
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
4051
4054
  }
4052
- const Ls = /* @__PURE__ */ y(Us, [["render", Os]]), Ms = f({
4055
+ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), Hs = f({
4053
4056
  name: "content-variants",
4054
4057
  components: {
4055
4058
  InlinedScript: Ye,
4056
4059
  InlinedStyles: pe,
4057
- ContentComponent: Ls
4060
+ ContentComponent: Ds
4058
4061
  },
4059
4062
  props: [
4060
4063
  "canTrack",
4061
4064
  "content",
4062
- "__isNestedRender",
4065
+ "isNestedRender",
4063
4066
  "model",
4064
4067
  "data",
4065
4068
  "context",
@@ -4115,22 +4118,23 @@ const Ls = /* @__PURE__ */ y(Us, [["render", Os]]), Ms = f({
4115
4118
  }
4116
4119
  }
4117
4120
  });
4118
- function Ds(e, t, n, o, s, r) {
4121
+ function js(e, t, n, o, s, r) {
4119
4122
  var c;
4120
4123
  const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
4121
4124
  return u(), h($, null, [
4122
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (u(), g(i, {
4125
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (u(), g(i, {
4123
4126
  key: 0,
4124
4127
  scriptStr: e.getScriptString()
4125
4128
  }, null, 8, ["scriptStr"])) : v("", !0),
4126
4129
  e.shouldRenderVariants ? (u(), h($, { key: 1 }, [
4127
- A(a, {
4130
+ x(a, {
4128
4131
  id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
4129
4132
  styles: e.hideVariantsStyleString
4130
4133
  }, null, 8, ["id", "styles"]),
4131
- A(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
4134
+ x(i, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
4132
4135
  (u(!0), h($, null, L(e.getVariants(e.content), (m, d) => (u(), g(l, {
4133
4136
  key: m.testVariationId,
4137
+ isNestedRender: e.isNestedRender,
4134
4138
  content: m,
4135
4139
  showContent: !1,
4136
4140
  model: e.model,
@@ -4149,9 +4153,10 @@ function Ds(e, t, n, o, s, r) {
4149
4153
  contentWrapper: e.contentWrapper,
4150
4154
  contentWrapperProps: e.contentWrapperProps,
4151
4155
  trustedHosts: e.trustedHosts
4152
- }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4156
+ }, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4153
4157
  ], 64)) : v("", !0),
4154
- A(l, w({
4158
+ x(l, w({
4159
+ isNestedRender: e.isNestedRender,
4155
4160
  content: e.defaultContent,
4156
4161
  showContent: !0,
4157
4162
  model: e.model,
@@ -4172,10 +4177,10 @@ function Ds(e, t, n, o, s, r) {
4172
4177
  trustedHosts: e.trustedHosts
4173
4178
  }, {
4174
4179
  key: e.shouldRenderVariants.toString()
4175
- }), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4180
+ }), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4176
4181
  ], 64);
4177
4182
  }
4178
- const Hs = /* @__PURE__ */ y(Ms, [["render", Ds]]), js = async ({
4183
+ const Ks = /* @__PURE__ */ y(Hs, [["render", js]]), zs = async ({
4179
4184
  builderContextValue: e,
4180
4185
  symbol: t
4181
4186
  }) => {
@@ -4193,9 +4198,9 @@ const Hs = /* @__PURE__ */ y(Ms, [["render", Ds]]), js = async ({
4193
4198
  }).catch((n) => {
4194
4199
  T.error("Could not fetch symbol content: ", n);
4195
4200
  });
4196
- }, Ks = f({
4201
+ }, qs = f({
4197
4202
  name: "builder-symbol",
4198
- components: { ContentVariants: Hs },
4203
+ components: { ContentVariants: Ks },
4199
4204
  props: [
4200
4205
  "attributes",
4201
4206
  "symbol",
@@ -4238,7 +4243,7 @@ const Hs = /* @__PURE__ */ y(Ms, [["render", Ds]]), js = async ({
4238
4243
  },
4239
4244
  methods: {
4240
4245
  setContent() {
4241
- this.contentToUse || js({
4246
+ this.contentToUse || zs({
4242
4247
  symbol: this.symbol,
4243
4248
  builderContextValue: this.builderContext
4244
4249
  }).then((e) => {
@@ -4247,12 +4252,12 @@ const Hs = /* @__PURE__ */ y(Ms, [["render", Ds]]), js = async ({
4247
4252
  }
4248
4253
  }
4249
4254
  });
4250
- function zs(e, t, n, o, s, r) {
4255
+ function Js(e, t, n, o, s, r) {
4251
4256
  var a, l, c, m, d;
4252
4257
  const i = k("content-variants");
4253
4258
  return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4254
- A(i, {
4255
- __isNestedRender: !0,
4259
+ x(i, {
4260
+ isNestedRender: !0,
4256
4261
  apiVersion: e.builderContext.apiVersion,
4257
4262
  apiKey: e.builderContext.apiKey,
4258
4263
  context: {
@@ -4273,8 +4278,8 @@ function zs(e, t, n, o, s, r) {
4273
4278
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
4274
4279
  ], 16);
4275
4280
  }
4276
- const qs = /* @__PURE__ */ y(Ks, [["render", zs]]), Te = {};
4277
- function or(e) {
4281
+ const Gs = /* @__PURE__ */ y(qs, [["render", Js]]), Te = {};
4282
+ function rr(e) {
4278
4283
  if (I()) {
4279
4284
  Object.assign(Te, e);
4280
4285
  const t = {
@@ -4284,7 +4289,7 @@ function or(e) {
4284
4289
  parent.postMessage(t, "*");
4285
4290
  }
4286
4291
  }
4287
- const sr = async (e) => {
4292
+ const ir = async (e) => {
4288
4293
  var o, s, r;
4289
4294
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
4290
4295
  ...e,
@@ -4309,38 +4314,38 @@ export {
4309
4314
  ue as B,
4310
4315
  tn as C,
4311
4316
  fe as D,
4312
- Qs as E,
4317
+ Zs as E,
4313
4318
  sn as F,
4314
- Zs as G,
4319
+ tr as G,
4315
4320
  mn as I,
4316
4321
  bn as S,
4317
4322
  V as T,
4318
4323
  Lo as V,
4319
4324
  pe as _,
4320
- _t as a,
4321
- Xs as b,
4325
+ Zt as a,
4326
+ _s as b,
4322
4327
  F as c,
4323
- er as d,
4328
+ nr as d,
4324
4329
  y as e,
4325
4330
  Q as f,
4326
4331
  Ne as g,
4327
- _s as h,
4332
+ er as h,
4328
4333
  ae as i,
4329
4334
  oe as j,
4330
4335
  bt as k,
4331
- qs as l,
4336
+ Gs as l,
4332
4337
  Hn as m,
4333
- _ as n,
4334
- Hs as o,
4338
+ Z as n,
4339
+ Ks as o,
4335
4340
  R as p,
4336
4341
  is as q,
4337
4342
  Do as r,
4338
4343
  ws as s,
4339
- or as t,
4344
+ rr as t,
4340
4345
  Xe as u,
4341
- tr as v,
4342
- Fs as w,
4343
- nr as x,
4344
- sr as y,
4346
+ or as v,
4347
+ Os as w,
4348
+ sr as x,
4349
+ ir as y,
4345
4350
  ss as z
4346
4351
  };