@builder.io/sdk-vue 2.0.31 → 3.0.0
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/browser/{awaiter-zzvk2NgH.cjs → awaiter-XqdWIlSd.cjs} +1 -1
- package/lib/browser/{awaiter-CBFYn8Rc.js → awaiter-pA1AuJSn.js} +1 -1
- package/lib/browser/{block-styles-eG8aHEnR.cjs → block-styles-i6cpfJgi.cjs} +1 -1
- package/lib/browser/{block-styles-1TjUGG0M.js → block-styles-ytvCIXMJ.js} +1 -1
- package/lib/browser/{block-wrapper-t1YyB3qf.cjs → block-wrapper-4Ddr9Ro1.cjs} +1 -1
- package/lib/browser/{block-wrapper-mHstZCm3.js → block-wrapper-UdxI8OCZ.js} +3 -3
- package/lib/browser/{component-ref-4iD2JOXe.cjs → component-ref-1UbPu9gf.cjs} +1 -1
- package/lib/browser/{component-ref-SiTniDkf.js → component-ref-CKlhzm4D.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/index.d.ts +1 -1
- package/lib/browser/{get-block-properties-WnxZnXsK.js → get-block-properties-C5uVrmU3.js} +1 -1
- package/lib/browser/{get-block-properties-qCNopliW.cjs → get-block-properties-pUTK7jyd.cjs} +1 -1
- package/lib/browser/{index-EOpyZR3_.cjs → index-N0sk5VKQ.cjs} +3 -3
- package/lib/browser/{index-nG43II0w.js → index-tDGIvfSj.js} +50 -52
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-WkFOmnw-.js → repeated-block-9RoptQEu.js} +2 -2
- package/lib/browser/{repeated-block-Zrynel2G.cjs → repeated-block-h7zSwvTu.cjs} +1 -1
- package/lib/edge/{awaiter-tqyHYP24.cjs → awaiter-V9rb_a7Q.cjs} +1 -1
- package/lib/edge/{awaiter-ETIQ3Y1O.js → awaiter-yLbJL6E0.js} +1 -1
- package/lib/edge/{block-styles-xeGiE5b9.js → block-styles-8rJVuUSs.js} +1 -1
- package/lib/edge/{block-styles-UFZvXK12.cjs → block-styles-ZvyyqPxg.cjs} +1 -1
- package/lib/edge/{block-wrapper-rWfNhUAl.js → block-wrapper-jr4gy0mp.js} +3 -3
- package/lib/edge/{block-wrapper-Kx9lGbVC.cjs → block-wrapper-m7_ZegT7.cjs} +1 -1
- package/lib/edge/{component-ref-jL8V5feH.cjs → component-ref-_qPvv-Qb.cjs} +1 -1
- package/lib/edge/{component-ref-2gTfqFWa.js → component-ref-uZEXLaN7.js} +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/index.d.ts +1 -1
- package/lib/edge/{get-block-properties-U4aZTxWN.cjs → get-block-properties-4gxUIMch.cjs} +1 -1
- package/lib/edge/{get-block-properties-rSB9DXAm.js → get-block-properties-IQuU2YJ7.js} +1 -1
- package/lib/edge/{index-1wQww2g6.cjs → index-LY5CDeZs.cjs} +12 -12
- package/lib/edge/{index-61CJkECh.js → index-Qfd4FC6c.js} +66 -68
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-z6QgHzWM.cjs → edge/repeated-block-48-vVIqv.cjs} +1 -1
- package/lib/edge/{repeated-block-sibYzFQC.js → repeated-block-J3gmF8cW.js} +2 -2
- package/lib/node/{awaiter-YeTQ3hOV.cjs → awaiter-pBLgVddK.cjs} +1 -1
- package/lib/node/{awaiter--0e1RmdV.js → awaiter-yHq7zte0.js} +1 -1
- package/lib/node/{block-styles-OsL48K76.cjs → block-styles-JKmWb0f1.cjs} +1 -1
- package/lib/node/{block-styles-mmmG5Zvb.js → block-styles-UKsSQRSe.js} +1 -1
- package/lib/node/{block-wrapper-6FrZVnI8.js → block-wrapper-Ql9JBZTu.js} +3 -3
- package/lib/node/{block-wrapper-hK9iEXhq.cjs → block-wrapper-UkD5beND.cjs} +1 -1
- package/lib/node/{component-ref-u2wfD4PU.js → component-ref-GQuqlfCd.js} +3 -3
- package/lib/node/{component-ref-yN1A7uFk.cjs → component-ref-KSw6L492.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/index.d.ts +1 -1
- package/lib/node/{get-block-properties-EkNcjp0K.cjs → get-block-properties-RPZW1-a0.cjs} +1 -1
- package/lib/node/{get-block-properties-QhUhlrxy.js → get-block-properties-y-gYAn-I.js} +1 -1
- package/lib/node/{index-GJHkrBmN.js → index-5bUk_uLu.js} +66 -68
- package/lib/node/{index-EBQK2Vx-.cjs → index-W6CSiGOt.cjs} +3 -3
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-h-cU9AMQ.js → repeated-block-_Z2mgv3f.js} +2 -2
- package/lib/{edge/repeated-block-YThkmdHp.cjs → node/repeated-block-sc5a_YJK.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, openBlock as g, createElementBlock as E, Fragment as J, createBlock as D, resolveDynamicComponent as ut, mergeProps as q, toHandlers as pe, withCtx as Ee, renderSlot as de, resolveComponent as U, createTextVNode as No, toDisplayString as Bt, defineAsyncComponent as rt, createVNode as
|
|
1
|
+
import { defineComponent as j, openBlock as g, createElementBlock as E, Fragment as J, createBlock as D, resolveDynamicComponent as ut, mergeProps as q, toHandlers as pe, withCtx as Ee, renderSlot as de, resolveComponent as U, createTextVNode as No, toDisplayString as Bt, defineAsyncComponent as rt, createVNode as oe, renderList as fe, createCommentVNode as M, h as Or, createElementVNode as ht, normalizeStyle as $e, normalizeClass as ft, markRaw as Vo } from "vue";
|
|
2
2
|
const Do = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Uo = (e) => typeof e == "string" && Do.has(e.toLowerCase());
|
|
3
3
|
function me(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
@@ -40,8 +40,8 @@ function Wo(e, t, n, r, o, i) {
|
|
|
40
40
|
const bn = /* @__PURE__ */ N(Fo, [["render", Wo]]), gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
42
|
default: bn
|
|
43
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
44
|
-
switch (
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = "vue", Ot = () => {
|
|
44
|
+
switch (ie) {
|
|
45
45
|
case "react":
|
|
46
46
|
case "reactNative":
|
|
47
47
|
case "rsc":
|
|
@@ -129,7 +129,7 @@ function zo(e, ...t) {
|
|
|
129
129
|
delete n[r];
|
|
130
130
|
return n;
|
|
131
131
|
}
|
|
132
|
-
const $t = "[Builder.io]: ",
|
|
132
|
+
const $t = "[Builder.io]: ", se = {
|
|
133
133
|
log: (...e) => console.log($t, ...e),
|
|
134
134
|
error: (...e) => console.error($t, ...e),
|
|
135
135
|
warn: (...e) => console.warn($t, ...e),
|
|
@@ -178,7 +178,7 @@ const Xo = () => {
|
|
|
178
178
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
179
179
|
},
|
|
180
180
|
any() {
|
|
181
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
181
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || ie === "reactNative";
|
|
182
182
|
}
|
|
183
183
|
}, n = e.match(/Tablet|iPad/i), r = Xo();
|
|
184
184
|
return {
|
|
@@ -379,7 +379,7 @@ var B, ti = function(e) {
|
|
|
379
379
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
380
380
|
h = h.slice(0, -1);
|
|
381
381
|
if (h === "0" && (h = null), ++d, h)
|
|
382
|
-
|
|
382
|
+
re && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
383
383
|
else
|
|
384
384
|
switch (c) {
|
|
385
385
|
case 110:
|
|
@@ -511,7 +511,7 @@ var B, ti = function(e) {
|
|
|
511
511
|
var l = d, c = !1, h = k.charCodeAt(d) === 48;
|
|
512
512
|
a || I(10) !== null || r(l, "Invalid number"), k.charCodeAt(d) === 46 && (++d, I(10), c = !0), a = k.charCodeAt(d), (a === 69 || a === 101) && (a = k.charCodeAt(++d), a !== 43 && a !== 45 || ++d, I(10) === null && r(l, "Invalid number"), c = !0), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), a = k.slice(l, d);
|
|
513
513
|
var R;
|
|
514
|
-
c ? R = parseFloat(a) : h && a.length !== 1 ? /[89]/.test(a) ||
|
|
514
|
+
c ? R = parseFloat(a) : h && a.length !== 1 ? /[89]/.test(a) || re ? r(l, "Invalid number") : R = parseInt(a, 8) : R = parseInt(a, 10), s(et, R);
|
|
515
515
|
}
|
|
516
516
|
function O(a) {
|
|
517
517
|
return a = I(16, a), a === null && r(G, "Bad character escape sequence"), a;
|
|
@@ -540,7 +540,7 @@ var B, ti = function(e) {
|
|
|
540
540
|
qt = G, Re = Fe, zt = Gt, b();
|
|
541
541
|
}
|
|
542
542
|
function F(a) {
|
|
543
|
-
if (
|
|
543
|
+
if (re = a, d = G, A.C)
|
|
544
544
|
for (; d < be; )
|
|
545
545
|
be = k.lastIndexOf(`
|
|
546
546
|
`, be - 2) + 1, --Ne;
|
|
@@ -582,7 +582,7 @@ var B, ti = function(e) {
|
|
|
582
582
|
r(G, "Unexpected token");
|
|
583
583
|
}
|
|
584
584
|
function wt(a) {
|
|
585
|
-
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"),
|
|
585
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), re && a.type === "Identifier" && xt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
586
586
|
}
|
|
587
587
|
function ce() {
|
|
588
588
|
(x === cr || x === Ve && ae === "/=") && b(!0);
|
|
@@ -618,13 +618,13 @@ var B, ti = function(e) {
|
|
|
618
618
|
case er:
|
|
619
619
|
return $(), Rt.test(k.slice(Re, G)) && r(Re, "Illegal newline after throw"), l.K = Q(), Be(), T(l, "ThrowStatement");
|
|
620
620
|
case tr:
|
|
621
|
-
return $(), l.block = Xe(), l.Ea = null, x === Kn && (a = K(), $(), L(ke), a.Ua = ve(),
|
|
621
|
+
return $(), l.block = Xe(), l.Ea = null, x === Kn && (a = K(), $(), L(ke), a.Ua = ve(), re && xt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), L(he), a.body = Xe(), l.Ea = T(a, "CatchClause")), l.fb = W(Xn) ? Xe() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
622
622
|
case Qt:
|
|
623
623
|
return $(), Mn(l), Be(), T(l, "VariableDeclaration");
|
|
624
624
|
case en:
|
|
625
625
|
return $(), l.test = _e(), H.push(rn), l.body = ce(), H.pop(), T(l, "WhileStatement");
|
|
626
626
|
case nr:
|
|
627
|
-
return
|
|
627
|
+
return re && r(G, "'with' in strict mode"), $(), l.object = _e(), l.body = ce(), T(l, "WithStatement");
|
|
628
628
|
case tt:
|
|
629
629
|
return Xe();
|
|
630
630
|
case Se:
|
|
@@ -667,7 +667,7 @@ var B, ti = function(e) {
|
|
|
667
667
|
function Mn(a, l) {
|
|
668
668
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
669
669
|
var c = K();
|
|
670
|
-
if (c.id = ve(),
|
|
670
|
+
if (c.id = ve(), re && xt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(pr) ? Q(!0, l) : null, a.fa.push(T(c, "VariableDeclarator")), !W(Ae))
|
|
671
671
|
break;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
@@ -699,7 +699,7 @@ var B, ti = function(e) {
|
|
|
699
699
|
function Wt() {
|
|
700
700
|
if (x.prefix) {
|
|
701
701
|
var a = K(), l = x.$b;
|
|
702
|
-
return a.operator = ae, Ze = a.prefix = !0, $(), a.K = Wt(), l ? wt(a.K) :
|
|
702
|
+
return a.operator = ae, Ze = a.prefix = !0, $(), a.K = Wt(), l ? wt(a.K) : re && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), T(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
703
703
|
}
|
|
704
704
|
for (l = Ye(Tt()); x.cc && !Ct(); )
|
|
705
705
|
a = ue(l), a.operator = ae, a.prefix = !1, a.K = l, wt(l), $(), l = T(a, "UpdateExpression");
|
|
@@ -749,12 +749,12 @@ var B, ti = function(e) {
|
|
|
749
749
|
var z = h.kind = "init";
|
|
750
750
|
} else
|
|
751
751
|
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? ye() : (R = c = !0, z = h.kind = h.key.name, h.key = x === et || x === Et ? Tt() : ve(!0), x !== ke && ye(), h.value = Mt(K(), !1));
|
|
752
|
-
if (h.key.type === "Identifier" && (
|
|
752
|
+
if (h.key.type === "Identifier" && (re || c))
|
|
753
753
|
for (var ee = 0; ee < a.h.length; ++ee) {
|
|
754
754
|
var He = a.h[ee];
|
|
755
755
|
if (He.key.name === h.key.name) {
|
|
756
756
|
var on = z === He.kind || R && He.kind === "init" || z === "init" && (He.kind === "get" || He.kind === "set");
|
|
757
|
-
on && !
|
|
757
|
+
on && !re && z === "init" && He.kind === "init" && (on = !1), on && r(h.key.start, "Redefinition of property");
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
a.h.push(h);
|
|
@@ -774,7 +774,7 @@ var B, ti = function(e) {
|
|
|
774
774
|
c ? c = !1 : L(Ae), a.oa.push(ve());
|
|
775
775
|
c = Qe;
|
|
776
776
|
var h = H;
|
|
777
|
-
if (Qe = !0, H = [], a.body = Xe(!0), Qe = c, H = h,
|
|
777
|
+
if (Qe = !0, H = [], a.body = Xe(!0), Qe = c, H = h, re || a.body.body.length && ge(a.body.body[0])) {
|
|
778
778
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
779
779
|
if (h = 0 > c ? a.id : a.oa[c], (mr(h.name) || xt(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
780
780
|
for (var R = 0; R < c; ++R)
|
|
@@ -794,7 +794,7 @@ var B, ti = function(e) {
|
|
|
794
794
|
}
|
|
795
795
|
function ve(a) {
|
|
796
796
|
var l = K();
|
|
797
|
-
return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb && $o(ae) ||
|
|
797
|
+
return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb && $o(ae) || re && mr(ae)) && k.slice(G, Fe).indexOf("\\") === -1 && r(G, "The keyword '" + ae + "' is reserved"), l.name = ae) : a && x.l ? l.name = x.l : ye(), Ze = !1, $(), T(l, "Identifier");
|
|
798
798
|
}
|
|
799
799
|
e.version = "0.5.0";
|
|
800
800
|
var A, k = "", Ue, Ht;
|
|
@@ -802,7 +802,7 @@ var B, ti = function(e) {
|
|
|
802
802
|
k = String(a), Ue = k.length, A = l || {};
|
|
803
803
|
for (var c in Ln)
|
|
804
804
|
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = Ln[c]);
|
|
805
|
-
for (Ht = A.sourceFile, Ne = 1, d = be = 0, Ze = !0, p(), c = A.dc, qt = Re = d, A.C && (zt = new i()), Qe =
|
|
805
|
+
for (Ht = A.sourceFile, Ne = 1, d = be = 0, Ze = !0, p(), c = A.dc, qt = Re = d, A.C && (zt = new i()), Qe = re = !1, H = [], b(), a = c || K(), l = !0, c || (a.body = []); x !== Jt; )
|
|
806
806
|
c = ce(), a.body.push(c), l && ge(c) && F(!0), l = !1;
|
|
807
807
|
return T(a, "Program");
|
|
808
808
|
};
|
|
@@ -817,7 +817,7 @@ var B, ti = function(e) {
|
|
|
817
817
|
dc: null,
|
|
818
818
|
sourceFile: null,
|
|
819
819
|
vb: null
|
|
820
|
-
}, d = 0, G = 0, Fe = 0, Kt, Gt, x, ae, Ze, Ne, be, qt = 0, Re = 0, zt, Qe, H,
|
|
820
|
+
}, d = 0, G = 0, Fe = 0, Kt, Gt, x, ae, Ze, Ne, be, qt = 0, Re = 0, zt, Qe, H, re, bo = [], et = {
|
|
821
821
|
type: "num"
|
|
822
822
|
}, Hn = {
|
|
823
823
|
type: "regexp"
|
|
@@ -2713,7 +2713,7 @@ function main()`).replace(/\?\./g, "."), Cr = (e) => e + "JSON", bi = ({
|
|
|
2713
2713
|
}).join(`
|
|
2714
2714
|
`), b = vi(s);
|
|
2715
2715
|
if (b === "") {
|
|
2716
|
-
|
|
2716
|
+
se.warn("Skipping evaluation of empty code block.");
|
|
2717
2717
|
return;
|
|
2718
2718
|
}
|
|
2719
2719
|
const v = `
|
|
@@ -2746,7 +2746,7 @@ const Si = ({
|
|
|
2746
2746
|
if (!ki())
|
|
2747
2747
|
return !1;
|
|
2748
2748
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2749
|
-
return t && n && !r ? (e &&
|
|
2749
|
+
return t && n && !r ? (e && se.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;
|
|
2750
2750
|
}, Ci = (e) => Y() || Si({
|
|
2751
2751
|
shouldLogWarning: !0
|
|
2752
2752
|
}) ? ei(e) : bi(e), wi = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Ti = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ei = (e) => {
|
|
@@ -2784,7 +2784,7 @@ function kt({
|
|
|
2784
2784
|
try {
|
|
2785
2785
|
return Ci(p);
|
|
2786
2786
|
} catch (m) {
|
|
2787
|
-
|
|
2787
|
+
se.error("Failed code evaluation: " + m.message, {
|
|
2788
2788
|
code: e
|
|
2789
2789
|
});
|
|
2790
2790
|
return;
|
|
@@ -2808,7 +2808,7 @@ function gn(e) {
|
|
|
2808
2808
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = gn(e[n]));
|
|
2809
2809
|
return t;
|
|
2810
2810
|
}
|
|
2811
|
-
const Ii = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
2811
|
+
const Ii = ["svelte", "vue", "angular", "qwik", "solid"].includes(ie), xi = (e) => {
|
|
2812
2812
|
if (Ii) {
|
|
2813
2813
|
const t = On(e);
|
|
2814
2814
|
return {
|
|
@@ -2932,8 +2932,8 @@ const Er = "builder.", Bi = "options.", Gr = (e) => {
|
|
|
2932
2932
|
return {};
|
|
2933
2933
|
const e = new URLSearchParams(window.location.search);
|
|
2934
2934
|
return Gr(e);
|
|
2935
|
-
}, qr = "
|
|
2936
|
-
"X-Builder-SDK":
|
|
2935
|
+
}, qr = "3.0.0", zr = () => ({
|
|
2936
|
+
"X-Builder-SDK": ie,
|
|
2937
2937
|
"X-Builder-SDK-GEN": "2",
|
|
2938
2938
|
"X-Builder-SDK-Version": qr
|
|
2939
2939
|
}), Vi = (e) => {
|
|
@@ -2949,7 +2949,7 @@ const Er = "builder.", Bi = "options.", Gr = (e) => {
|
|
|
2949
2949
|
try {
|
|
2950
2950
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
2951
2951
|
} catch (r) {
|
|
2952
|
-
|
|
2952
|
+
se.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
2953
2953
|
return;
|
|
2954
2954
|
}
|
|
2955
2955
|
}, _r = async (e) => Jr(e), Di = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Oe).join("; "), Ui = [["secure", ""], ["SameSite", "None"]], Fi = ({
|
|
@@ -2975,7 +2975,7 @@ const Er = "builder.", Bi = "options.", Gr = (e) => {
|
|
|
2975
2975
|
});
|
|
2976
2976
|
document.cookie = o;
|
|
2977
2977
|
} catch (o) {
|
|
2978
|
-
|
|
2978
|
+
se.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
2979
2979
|
}
|
|
2980
2980
|
};
|
|
2981
2981
|
function Wi() {
|
|
@@ -3062,7 +3062,7 @@ const Zr = "builderSessionId", Mi = async ({
|
|
|
3062
3062
|
});
|
|
3063
3063
|
function jn(e) {
|
|
3064
3064
|
var t;
|
|
3065
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
3065
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && se.log(e);
|
|
3066
3066
|
}
|
|
3067
3067
|
const _i = async ({
|
|
3068
3068
|
canTrack: e
|
|
@@ -3107,10 +3107,10 @@ async function yn({
|
|
|
3107
3107
|
...t
|
|
3108
3108
|
}) {
|
|
3109
3109
|
if (!t.apiKey) {
|
|
3110
|
-
|
|
3110
|
+
se.error("Missing API key for track call. Please provide your API key.");
|
|
3111
3111
|
return;
|
|
3112
3112
|
}
|
|
3113
|
-
if (!t.canTrack || le() || !(Y() ||
|
|
3113
|
+
if (!t.canTrack || le() || !(Y() || ie === "reactNative"))
|
|
3114
3114
|
return;
|
|
3115
3115
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
3116
3116
|
return jn(r), fetch(r, {
|
|
@@ -3166,7 +3166,7 @@ const no = (e = {}) => {
|
|
|
3166
3166
|
Ir || (Ir = !0, Y() && ((t = window.parent) == null || t.postMessage({
|
|
3167
3167
|
type: "builder.sdkInfo",
|
|
3168
3168
|
data: {
|
|
3169
|
-
target:
|
|
3169
|
+
target: ie,
|
|
3170
3170
|
version: qr,
|
|
3171
3171
|
supportsPatchUpdates: !1,
|
|
3172
3172
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -3250,7 +3250,7 @@ const no = (e = {}) => {
|
|
|
3250
3250
|
}
|
|
3251
3251
|
}, bu = (e, t, n) => {
|
|
3252
3252
|
if (!Y)
|
|
3253
|
-
return
|
|
3253
|
+
return se.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3254
3254
|
};
|
|
3255
3255
|
no();
|
|
3256
3256
|
const r = ro({
|
|
@@ -3303,7 +3303,7 @@ const no = (e = {}) => {
|
|
|
3303
3303
|
contentId: e.id,
|
|
3304
3304
|
value: t
|
|
3305
3305
|
}).catch((n) => {
|
|
3306
|
-
|
|
3306
|
+
se.error("could not store A/B test variation: ", n);
|
|
3307
3307
|
}), t;
|
|
3308
3308
|
}, so = ({
|
|
3309
3309
|
item: e,
|
|
@@ -3463,7 +3463,7 @@ const ps = async (e) => {
|
|
|
3463
3463
|
return await (await n(t.href, r)).json();
|
|
3464
3464
|
}, ds = async (e, t, n = Nn(e)) => {
|
|
3465
3465
|
const r = yt(e.canTrack);
|
|
3466
|
-
if (n.search.includes("preview="), !r || !(Y() ||
|
|
3466
|
+
if (n.search.includes("preview="), !r || !(Y() || ie === "reactNative"))
|
|
3467
3467
|
return t.results;
|
|
3468
3468
|
try {
|
|
3469
3469
|
const o = [];
|
|
@@ -3474,21 +3474,19 @@ const ps = async (e) => {
|
|
|
3474
3474
|
}));
|
|
3475
3475
|
t.results = o;
|
|
3476
3476
|
} catch (o) {
|
|
3477
|
-
|
|
3477
|
+
se.error("Could not process A/B tests. ", o);
|
|
3478
3478
|
}
|
|
3479
3479
|
return t.results;
|
|
3480
3480
|
};
|
|
3481
3481
|
async function hs(e) {
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3482
|
+
const t = Nn(e), n = await ps(e);
|
|
3483
|
+
if (!cs(n))
|
|
3484
|
+
throw se.error("Error fetching data. ", {
|
|
3485
3485
|
url: t,
|
|
3486
3486
|
content: n,
|
|
3487
3487
|
options: e
|
|
3488
|
-
}),
|
|
3489
|
-
|
|
3490
|
-
return re.error("Error fetching data. ", t), null;
|
|
3491
|
-
}
|
|
3488
|
+
}), n;
|
|
3489
|
+
return ds(e, n);
|
|
3492
3490
|
}
|
|
3493
3491
|
const ku = async (e) => {
|
|
3494
3492
|
var r, o, i;
|
|
@@ -3638,7 +3636,7 @@ const Cu = ({
|
|
|
3638
3636
|
block: e
|
|
3639
3637
|
}));
|
|
3640
3638
|
function ho(e) {
|
|
3641
|
-
switch (
|
|
3639
|
+
switch (ie) {
|
|
3642
3640
|
case "svelte":
|
|
3643
3641
|
case "vue":
|
|
3644
3642
|
case "solid":
|
|
@@ -3723,22 +3721,22 @@ const ks = ({
|
|
|
3723
3721
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3724
3722
|
e
|
|
3725
3723
|
), e;
|
|
3726
|
-
}), xs = () => import("./block-styles-
|
|
3724
|
+
}), xs = () => import("./block-styles-8rJVuUSs.js").then((e) => e.default).catch((e) => {
|
|
3727
3725
|
throw console.error(
|
|
3728
3726
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3729
3727
|
e
|
|
3730
3728
|
), e;
|
|
3731
|
-
}), Rs = () => import("./block-wrapper-
|
|
3729
|
+
}), Rs = () => import("./block-wrapper-jr4gy0mp.js").then((e) => e.default).catch((e) => {
|
|
3732
3730
|
throw console.error(
|
|
3733
3731
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3734
3732
|
e
|
|
3735
3733
|
), e;
|
|
3736
|
-
}), As = () => import("./component-ref-
|
|
3734
|
+
}), As = () => import("./component-ref-uZEXLaN7.js").then((e) => e.default).catch((e) => {
|
|
3737
3735
|
throw console.error(
|
|
3738
3736
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3739
3737
|
e
|
|
3740
3738
|
), e;
|
|
3741
|
-
}), $s = () => import("./repeated-block-
|
|
3739
|
+
}), $s = () => import("./repeated-block-J3gmF8cW.js").then((e) => e.default).catch((e) => {
|
|
3742
3740
|
throw console.error(
|
|
3743
3741
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3744
3742
|
e
|
|
@@ -3831,7 +3829,7 @@ const ks = ({
|
|
|
3831
3829
|
registeredComponents: this.registeredComponents,
|
|
3832
3830
|
builderBlock: this.processedBlock,
|
|
3833
3831
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
3834
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
3832
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && ie === "rsc")
|
|
3835
3833
|
};
|
|
3836
3834
|
}
|
|
3837
3835
|
}
|
|
@@ -3840,7 +3838,7 @@ function Os(e, t, n, r, o, i) {
|
|
|
3840
3838
|
var v;
|
|
3841
3839
|
const s = U("BlockStyles"), u = U("ComponentRef"), p = U("Block", !0), m = U("BlockWrapper"), b = U("RepeatedBlock");
|
|
3842
3840
|
return e.canShowBlock ? (g(), E(J, { key: 0 }, [
|
|
3843
|
-
|
|
3841
|
+
oe(s, {
|
|
3844
3842
|
block: e.processedBlock,
|
|
3845
3843
|
context: e.context
|
|
3846
3844
|
}, null, 8, ["block", "context"]),
|
|
@@ -3877,7 +3875,7 @@ function Os(e, t, n, r, o, i) {
|
|
|
3877
3875
|
context: e.context
|
|
3878
3876
|
}, {
|
|
3879
3877
|
default: Ee(() => [
|
|
3880
|
-
|
|
3878
|
+
oe(u, {
|
|
3881
3879
|
componentRef: e.componentRefProps.componentRef,
|
|
3882
3880
|
componentOptions: e.componentRefProps.componentOptions,
|
|
3883
3881
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -4107,7 +4105,7 @@ const St = /* @__PURE__ */ N(Us, [["render", Fs]]), Ws = /* @__PURE__ */ Object.
|
|
|
4107
4105
|
"builderComponents"
|
|
4108
4106
|
],
|
|
4109
4107
|
data() {
|
|
4110
|
-
return { TARGET:
|
|
4108
|
+
return { TARGET: ie, getColumnsClass: Ls };
|
|
4111
4109
|
},
|
|
4112
4110
|
computed: {
|
|
4113
4111
|
gutterSize() {
|
|
@@ -4249,7 +4247,7 @@ function Ks(e, t, n, r, o, i) {
|
|
|
4249
4247
|
attributes: e.getAttributes(b, v)
|
|
4250
4248
|
}, {
|
|
4251
4249
|
default: Ee(() => [
|
|
4252
|
-
|
|
4250
|
+
oe(u, {
|
|
4253
4251
|
path: `columns.${v}.blocks`,
|
|
4254
4252
|
parent: e.builderBlock.id,
|
|
4255
4253
|
styleProp: {
|
|
@@ -4664,7 +4662,7 @@ function ca(e, t, n, r, o, i) {
|
|
|
4664
4662
|
"data-index": p,
|
|
4665
4663
|
onClick: (m) => e.onClick(p)
|
|
4666
4664
|
}, [
|
|
4667
|
-
|
|
4665
|
+
oe(s, {
|
|
4668
4666
|
blocks: u.title,
|
|
4669
4667
|
path: `items.${p}.title`,
|
|
4670
4668
|
parent: e.builderBlock.id,
|
|
@@ -4678,7 +4676,7 @@ function ca(e, t, n, r, o, i) {
|
|
|
4678
4676
|
class: ft(e.getAccordionDetailClassName(p)),
|
|
4679
4677
|
style: $e(e.accordionDetailStyles)
|
|
4680
4678
|
}, [
|
|
4681
|
-
|
|
4679
|
+
oe(s, {
|
|
4682
4680
|
blocks: u.detail,
|
|
4683
4681
|
path: `items.${p}.detail`,
|
|
4684
4682
|
parent: e.builderBlock.id,
|
|
@@ -5119,7 +5117,7 @@ function ba(e, t, n, r, o, i) {
|
|
|
5119
5117
|
"builder-slot": e.name
|
|
5120
5118
|
}
|
|
5121
5119
|
), [
|
|
5122
|
-
|
|
5120
|
+
oe(s, {
|
|
5123
5121
|
parent: (p = e.builderContext.context) == null ? void 0 : p.symbolId,
|
|
5124
5122
|
path: `symbol.data.${e.name}`,
|
|
5125
5123
|
context: e.builderContext,
|
|
@@ -5354,7 +5352,7 @@ function Ia(e, t, n, r, o, i) {
|
|
|
5354
5352
|
}),
|
|
5355
5353
|
onClick: (m) => e.onClick(p)
|
|
5356
5354
|
}, [
|
|
5357
|
-
|
|
5355
|
+
oe(s, {
|
|
5358
5356
|
parent: e.builderBlock.id,
|
|
5359
5357
|
path: `tabs.${p}.label`,
|
|
5360
5358
|
blocks: u.label,
|
|
@@ -5365,7 +5363,7 @@ function Ia(e, t, n, r, o, i) {
|
|
|
5365
5363
|
], 14, Ta))), 128))
|
|
5366
5364
|
], 4),
|
|
5367
5365
|
e.activeTabContent(e.activeTab) ? (g(), E("div", Ea, [
|
|
5368
|
-
|
|
5366
|
+
oe(s, {
|
|
5369
5367
|
parent: e.builderBlock.id,
|
|
5370
5368
|
path: `tabs.${e.activeTab}.content`,
|
|
5371
5369
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -6625,7 +6623,7 @@ const Ol = /* @__PURE__ */ N(El, [["render", Pl]]), jl = () => [{
|
|
|
6625
6623
|
})), Vl = ({
|
|
6626
6624
|
canTrack: e,
|
|
6627
6625
|
content: t
|
|
6628
|
-
}) => !(!(Pt(t).length > 0) || !e), Dl = (e) => e === "react" || e === "reactNative", yo = Dl(
|
|
6626
|
+
}) => !(!(Pt(t).length > 0) || !e), Dl = (e) => e === "react" || e === "reactNative", yo = Dl(ie), Ul = () => `
|
|
6629
6627
|
window.${mo} = ${Bl}
|
|
6630
6628
|
window.${go} = ${Nl}
|
|
6631
6629
|
`, Fl = (e, t) => `
|
|
@@ -7166,7 +7164,7 @@ const tu = /* @__PURE__ */ N(Ql, [["render", eu]]), nu = ({
|
|
|
7166
7164
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
7167
7165
|
nonce: this.nonce || ""
|
|
7168
7166
|
},
|
|
7169
|
-
TARGET:
|
|
7167
|
+
TARGET: ie
|
|
7170
7168
|
};
|
|
7171
7169
|
},
|
|
7172
7170
|
provide() {
|
|
@@ -7179,7 +7177,7 @@ const tu = /* @__PURE__ */ N(Ql, [["render", eu]]), nu = ({
|
|
|
7179
7177
|
},
|
|
7180
7178
|
created() {
|
|
7181
7179
|
var t, n;
|
|
7182
|
-
this.apiKey ||
|
|
7180
|
+
this.apiKey || se.error(
|
|
7183
7181
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
7184
7182
|
);
|
|
7185
7183
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -7237,7 +7235,7 @@ function su(e, t, n, r, o, i) {
|
|
|
7237
7235
|
cssCode: (y = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : y.cssCode,
|
|
7238
7236
|
customFonts: (V = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : V.customFonts
|
|
7239
7237
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : M("", !0),
|
|
7240
|
-
|
|
7238
|
+
oe(p, {
|
|
7241
7239
|
blocks: (Z = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : Z.blocks,
|
|
7242
7240
|
context: e.builderContextSignal,
|
|
7243
7241
|
registeredComponents: e.registeredComponents,
|
|
@@ -7282,7 +7280,7 @@ const au = /* @__PURE__ */ N(iu, [["render", su]]), lu = j({
|
|
|
7282
7280
|
canTrack: yt(this.canTrack),
|
|
7283
7281
|
content: this.content
|
|
7284
7282
|
}),
|
|
7285
|
-
TARGET:
|
|
7283
|
+
TARGET: ie,
|
|
7286
7284
|
getInitVariantsFnsScriptString: Ul,
|
|
7287
7285
|
getVariants: Pt
|
|
7288
7286
|
};
|
|
@@ -7325,12 +7323,12 @@ function uu(e, t, n, r, o, i) {
|
|
|
7325
7323
|
nonce: e.nonce || ""
|
|
7326
7324
|
}, null, 8, ["scriptStr", "nonce"])) : M("", !0),
|
|
7327
7325
|
e.shouldRenderVariants ? (g(), E(J, { key: 1 }, [
|
|
7328
|
-
|
|
7326
|
+
oe(u, {
|
|
7329
7327
|
id: "builderio-variants",
|
|
7330
7328
|
styles: e.hideVariantsStyleString,
|
|
7331
7329
|
nonce: e.nonce || ""
|
|
7332
7330
|
}, null, 8, ["styles", "nonce"]),
|
|
7333
|
-
|
|
7331
|
+
oe(s, {
|
|
7334
7332
|
id: "builderio-variants-visibility",
|
|
7335
7333
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
7336
7334
|
nonce: e.nonce || ""
|
|
@@ -7360,7 +7358,7 @@ function uu(e, t, n, r, o, i) {
|
|
|
7360
7358
|
trustedHosts: e.trustedHosts
|
|
7361
7359
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
7362
7360
|
], 64)) : M("", !0),
|
|
7363
|
-
|
|
7361
|
+
oe(p, q({
|
|
7364
7362
|
apiHost: e.apiHost,
|
|
7365
7363
|
nonce: e.nonce,
|
|
7366
7364
|
isNestedRender: e.isNestedRender,
|
|
@@ -7403,7 +7401,7 @@ const cu = /* @__PURE__ */ N(lu, [["render", uu]]), pu = async ({
|
|
|
7403
7401
|
}
|
|
7404
7402
|
}
|
|
7405
7403
|
}).catch((n) => {
|
|
7406
|
-
|
|
7404
|
+
se.error("Could not fetch symbol content: ", n);
|
|
7407
7405
|
});
|
|
7408
7406
|
}, du = j({
|
|
7409
7407
|
name: "builder-symbol",
|
|
@@ -7469,7 +7467,7 @@ function hu(e, t, n, r, o, i) {
|
|
|
7469
7467
|
var u, p, m, b, v;
|
|
7470
7468
|
const s = U("ContentVariants");
|
|
7471
7469
|
return g(), E("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
7472
|
-
|
|
7470
|
+
oe(s, {
|
|
7473
7471
|
nonce: e.builderContext.nonce,
|
|
7474
7472
|
isNestedRender: !0,
|
|
7475
7473
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -7504,7 +7502,7 @@ export {
|
|
|
7504
7502
|
wu as G,
|
|
7505
7503
|
na as I,
|
|
7506
7504
|
ia as S,
|
|
7507
|
-
|
|
7505
|
+
ie as T,
|
|
7508
7506
|
Ol as V,
|
|
7509
7507
|
Fn as _,
|
|
7510
7508
|
Su as a,
|
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-LY5CDeZs.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as a, j as t, k as r, C as o, o as i, F as n, I as c, S as g, l, m, V as u, z as d, r as C, y as p, A as B, D as E, u as S, p as f, q as h, s as x, t as b, x as k, v as y } from "./index-
|
|
1
|
+
import { n as a, j as t, k as r, C as o, o as i, F as n, I as c, S as g, l, m, V as u, z as d, r as C, y as p, A as B, D as E, u as S, p as f, q as h, s as x, t as b, x as k, v as y } from "./index-Qfd4FC6c.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Blocks,
|
|
4
4
|
t as BuilderContext,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-LY5CDeZs.cjs"),r=()=>Promise.resolve().then(()=>require("./index-LY5CDeZs.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents","linkComponent"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}}});function s(e,i,p,a,m,d){const n=o.resolveComponent("Block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"])}const l=t._export_sfc(c,[["render",s]]);exports.default=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { j as s, e as l } from "./index-
|
|
3
|
-
const i = () => import("./index-
|
|
2
|
+
import { j as s, e as l } from "./index-Qfd4FC6c.js";
|
|
3
|
+
const i = () => import("./index-Qfd4FC6c.js").then((e) => e.G).then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-W6CSiGOt.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,c,i,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),t=require("./index-W6CSiGOt.cjs"),u=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),b=r.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:u.TARGET}},computed:{canShowBlock(){const e=this.block;return u.checkIsDefined(e.hide)?!e.hide:u.checkIsDefined(e.show)?e.show:!0},css(){var p,h,S;const e=this.block,s=e.responsiveStyles,c=this.context.content,a=t.getSizesForBreakpoints(((p=c==null?void 0:c.meta)==null?void 0:p.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=e.id;if(!n)return"";const k=i?t.createCssClass({className:n,styles:i}):"",C=d?t.createCssClass({className:n,styles:d,mediaQuery:t.getMaxWidthQueryForSize("medium",a)}):"",f=l?t.createCssClass({className:n,styles:l,mediaQuery:t.getMaxWidthQueryForSize("small",a)}):"",o=e.animations&&e.animations.find(m=>m.trigger==="hover");let y="";if(o){const m=((S=(h=o.steps)==null?void 0:h[1])==null?void 0:S.styles)||{};y=t.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${o.duration}s ${t.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[k,C,f,y].join(" ")}}});function g(e,s,c,a,i,d){const l=r.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(r.openBlock(),r.createBlock(l,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):r.createCommentVNode("",!0)}const v=t._export_sfc(b,[["render",g]]);exports.default=v;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, resolveComponent as g, openBlock as $, createBlock as v, createCommentVNode as B } from "vue";
|
|
2
|
-
import { _, g as T, c as l, a as h, b as w, d as I } from "./index-
|
|
2
|
+
import { _, g as T, c as l, a as h, b as w, d as I } from "./index-5bUk_uLu.js";
|
|
3
3
|
import { T as N, e as k } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
4
4
|
const z = C({
|
|
5
5
|
name: "block-styles",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
3
|
-
import { d as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-y-gYAn-I.js";
|
|
3
|
+
import { d as m } from "./index-5bUk_uLu.js";
|
|
4
|
+
const d = () => import("./index-5bUk_uLu.js").then((e) => e.z).then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-RPZW1-a0.cjs"),n=require("./index-W6CSiGOt.cjs"),c=()=>Promise.resolve().then(()=>require("./index-W6CSiGOt.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(r,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as u, defineAsyncComponent as P, resolveComponent as k, openBlock as o, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as f, mergeProps as b, normalizeProps as B, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as W } from "vue";
|
|
2
|
-
import { d as h, B as S, w as y } from "./index-
|
|
3
|
-
import { a as C, g as A } from "./get-block-properties-
|
|
4
|
-
const R = () => import("./awaiter
|
|
2
|
+
import { d as h, B as S, w as y } from "./index-5bUk_uLu.js";
|
|
3
|
+
import { a as C, g as A } from "./get-block-properties-y-gYAn-I.js";
|
|
4
|
+
const R = () => import("./awaiter-yHq7zte0.js").then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
7
7
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-W6CSiGOt.cjs"),a=require("./get-block-properties-RPZW1-a0.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-pBLgVddK.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),d=t.defineComponent({name:"interactive-element",components:{Awaiter:t.defineAsyncComponent(u)},props:["includeBlockProps","block","context","Wrapper","wrapperProps"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function f(e,n,s,l,r,i){const o=t.resolveComponent("Awaiter");return e.Wrapper.load?(t.openBlock(),t.createBlock(o,{key:0,load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["load","fallback","props","attributes"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1,attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))}const m=c._export_sfc(d,[["render",f]]),b=({componentOptions:e,builderBlock:n,context:s,componentRef:l,includeBlockProps:r,isInteractive:i,contextValue:o})=>{const p={...e,...r?{attributes:a.getBlockProperties({block:n,context:o})}:{}};return i?{Wrapper:l,block:n,context:s,wrapperProps:e,includeBlockProps:r}:p},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:b}}});function C(e,n,s,l,r,i){const o=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(p,k)=>(t.openBlock(),t.createBlock(o,{key:p.id,block:p,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const h=c._export_sfc(B,[["render",C]]);exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "3.0.0";
|