@builder.io/sdk-vue 1.0.22 → 1.0.23
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/{block-styles-VImRioSm.js → block-styles-dCtjVM33.js} +1 -1
- package/lib/browser/{block-styles-WIrvoyUF.cjs → block-styles-vJjDjr-p.cjs} +1 -1
- package/lib/browser/{block-wrapper-PG29yePT.cjs → block-wrapper--ZdEHV8w.cjs} +1 -1
- package/lib/browser/{block-wrapper--ZG8uXgi.js → block-wrapper-JRsL0Mr2.js} +3 -3
- package/lib/browser/{component-ref-AbXXG_wD.js → component-ref-IfYzvEjh.js} +2 -2
- package/lib/browser/{component-ref-Oh6emZ2D.cjs → component-ref-YU4cmBVZ.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-jSTzat9q.js → get-block-properties-U49zKnMK.js} +1 -1
- package/lib/browser/{get-block-properties-iG0EdCc7.cjs → get-block-properties-qdvSfWjS.cjs} +1 -1
- package/lib/browser/{index-_VfPZEOT.js → index-T89gD77O.js} +33 -35
- package/lib/browser/{index-3lFzntkG.cjs → index-YYfrLt1V.cjs} +3 -3
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-GitdVuPz.cjs → repeated-block-GnmpQPxE.cjs} +1 -1
- package/lib/browser/{repeated-block-LywEnyR6.js → repeated-block-oYGHWwW3.js} +2 -2
- package/lib/edge/{block-styles-eJqBAPHH.cjs → block-styles-9nbFFeOH.cjs} +1 -1
- package/lib/{node/block-styles-_OMTv9sJ.js → edge/block-styles-nidJqmvF.js} +1 -1
- package/lib/edge/{block-wrapper-E58yJMa2.js → block-wrapper-7WuameoR.js} +3 -3
- package/lib/{node/block-wrapper-olhoZ1Gm.cjs → edge/block-wrapper-OitVCHV4.cjs} +1 -1
- package/lib/{node/component-ref-Wy04EyRy.cjs → edge/component-ref-Z3GxM6cH.cjs} +1 -1
- package/lib/{node/component-ref-CnP6F8zd.js → edge/component-ref-fkgFjHYh.js} +2 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-ozEWpZlZ.cjs → get-block-properties-hpLeBYvo.cjs} +1 -1
- package/lib/edge/{get-block-properties-RLx998wH.js → get-block-properties-uUwzuzd6.js} +1 -1
- package/lib/edge/{index-nVP8G4zp.cjs → index-CKoC6tWI.cjs} +11 -11
- package/lib/edge/{index-53gkK1JA.js → index-hIX7Gefu.js} +47 -49
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-_7bmUv-Z.cjs → repeated-block-TT5biOEz.cjs} +1 -1
- package/lib/edge/{repeated-block-kei-SmhT.js → repeated-block-otH5LpjC.js} +2 -2
- package/lib/node/{block-styles-cJg0zG2x.cjs → block-styles-4KxeWlDy.cjs} +1 -1
- package/lib/{edge/block-styles-ZxWEJSxb.js → node/block-styles-FYc9WmuJ.js} +1 -1
- package/lib/node/{block-wrapper-WFhgV7rM.js → block-wrapper-NWQoMvJs.js} +3 -3
- package/lib/{edge/block-wrapper-2Crn7tbG.cjs → node/block-wrapper-a_fu1ViB.cjs} +1 -1
- package/lib/{edge/component-ref-4M72dsyI.cjs → node/component-ref-jllHNOll.cjs} +1 -1
- package/lib/{edge/component-ref-lMVExvau.js → node/component-ref-jqz9fyL1.js} +2 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-azp9C2XD.cjs → get-block-properties-DnPEkmGq.cjs} +1 -1
- package/lib/node/{get-block-properties-3AHBPypn.js → get-block-properties-ddOPipN4.js} +1 -1
- package/lib/node/{index-eF57HLR1.js → index-Bc6eCrlT.js} +6 -8
- package/lib/node/{index-my4sBiPM.cjs → index-ixVpFh79.cjs} +4 -4
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-AtgGXQbg.cjs → repeated-block-W2kKB7D3.cjs} +1 -1
- package/lib/node/{repeated-block-uRrCR8KR.js → repeated-block-sdoj-hCY.js} +2 -2
- package/package.json +1 -1
|
@@ -123,7 +123,7 @@ function Lo(e) {
|
|
|
123
123
|
builderBlock: e
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
const Tt = "[Builder.io]: ",
|
|
126
|
+
const Tt = "[Builder.io]: ", te = {
|
|
127
127
|
log: (...e) => console.log(Tt, ...e),
|
|
128
128
|
error: (...e) => console.error(Tt, ...e),
|
|
129
129
|
warn: (...e) => console.warn(Tt, ...e),
|
|
@@ -496,10 +496,10 @@ var j, Xo = function(e) {
|
|
|
496
496
|
}
|
|
497
497
|
function O(s, l) {
|
|
498
498
|
for (var c = p, h = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
|
|
499
|
-
var
|
|
500
|
-
if (
|
|
499
|
+
var Z = b.charCodeAt(p);
|
|
500
|
+
if (Z = 97 <= Z ? Z - 97 + 10 : 65 <= Z ? Z - 65 + 10 : 48 <= Z && 57 >= Z ? Z - 48 : 1 / 0, Z >= s)
|
|
501
501
|
break;
|
|
502
|
-
++p, h = h * s +
|
|
502
|
+
++p, h = h * s + Z;
|
|
503
503
|
}
|
|
504
504
|
return p === c || l !== void 0 && p - c !== l ? null : h;
|
|
505
505
|
}
|
|
@@ -746,8 +746,8 @@ var j, Xo = function(e) {
|
|
|
746
746
|
} else
|
|
747
747
|
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? he() : (T = c = !0, _ = h.kind = h.key.name, h.key = I === Qe || I === kt ? bt() : fe(!0), I !== ge && he(), h.value = Ft(G(), !1));
|
|
748
748
|
if (h.key.type === "Identifier" && (ne || c))
|
|
749
|
-
for (var
|
|
750
|
-
var Le = s.h[
|
|
749
|
+
for (var Z = 0; Z < s.h.length; ++Z) {
|
|
750
|
+
var Le = s.h[Z];
|
|
751
751
|
if (Le.key.name === h.key.name) {
|
|
752
752
|
var nn = _ === Le.kind || T && Le.kind === "init" || _ === "init" && (Le.kind === "get" || Le.kind === "set");
|
|
753
753
|
nn && !ne && _ === "init" && Le.kind === "init" && (nn = !1), nn && r(h.key.start, "Redefinition of property");
|
|
@@ -1044,7 +1044,7 @@ var pr = {
|
|
|
1044
1044
|
configurable: !0,
|
|
1045
1045
|
enumerable: !1,
|
|
1046
1046
|
writable: !0
|
|
1047
|
-
},
|
|
1047
|
+
}, ee = {
|
|
1048
1048
|
configurable: !0,
|
|
1049
1049
|
enumerable: !1,
|
|
1050
1050
|
writable: !1
|
|
@@ -1192,7 +1192,7 @@ function Qo(e, t) {
|
|
|
1192
1192
|
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Cn(e, m.body[0].la, e.N, "anonymous");
|
|
1193
1193
|
};
|
|
1194
1194
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1195
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1195
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ee), e.Z.H = "Function", r = function(o, i) {
|
|
1196
1196
|
var a = e.o[e.o.length - 1];
|
|
1197
1197
|
a.U = this, a.B = o, a.F = [], i != null && (i instanceof P ? a.F = Br(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1198
1198
|
}, z(e, e.O, "apply", r), r = function(o) {
|
|
@@ -1435,7 +1435,7 @@ function si(e, t) {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
return kn(e, i, a), i;
|
|
1437
1437
|
};
|
|
1438
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0,
|
|
1438
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, ee), e.g(e.I.h.prototype, "ignoreCase", void 0, ee), e.g(e.I.h.prototype, "multiline", void 0, ee), e.g(e.I.h.prototype, "source", "(?:)", ee), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1439
1439
|
function i(y) {
|
|
1440
1440
|
if (y) {
|
|
1441
1441
|
var f = be(e, y);
|
|
@@ -1478,7 +1478,7 @@ function li(e, t) {
|
|
|
1478
1478
|
e.g(t, "Math", n, k);
|
|
1479
1479
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1480
1480
|
for (t = 0; t < r.length; t++)
|
|
1481
|
-
e.g(n, r[t], Math[r[t]],
|
|
1481
|
+
e.g(n, r[t], Math[r[t]], ee);
|
|
1482
1482
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1483
1483
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1484
1484
|
}
|
|
@@ -1516,7 +1516,7 @@ function q(e, t, n) {
|
|
|
1516
1516
|
return !1;
|
|
1517
1517
|
}
|
|
1518
1518
|
function kn(e, t, n) {
|
|
1519
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source,
|
|
1519
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source, ee), e.g(t, "global", n.global, ee), e.g(t, "ignoreCase", n.ignoreCase, ee), e.g(t, "multiline", n.multiline, ee);
|
|
1520
1520
|
}
|
|
1521
1521
|
function pn(e, t, n) {
|
|
1522
1522
|
n && e.g(t, "message", String(n), k), n = [];
|
|
@@ -1599,18 +1599,18 @@ function ze(e) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
function Sn(e, t, n) {
|
|
1601
1601
|
var r = e.s(e.Z);
|
|
1602
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t,
|
|
1602
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t, ee), r.H = "Function", r;
|
|
1603
1603
|
}
|
|
1604
1604
|
function Cn(e, t, n, r) {
|
|
1605
1605
|
var o = Sn(e, t.oa.length, !0);
|
|
1606
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1606
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", ee), o;
|
|
1607
1607
|
}
|
|
1608
1608
|
j.i = function(e, t) {
|
|
1609
|
-
return t = Sn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1609
|
+
return t = Sn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ee), t;
|
|
1610
1610
|
};
|
|
1611
1611
|
j.ub = function(e) {
|
|
1612
1612
|
var t = Sn(this, e.length, !0);
|
|
1613
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1613
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ee), t;
|
|
1614
1614
|
};
|
|
1615
1615
|
j.Ia = function(e) {
|
|
1616
1616
|
if (e instanceof P)
|
|
@@ -1955,34 +1955,34 @@ function ft(e, t, n, r) {
|
|
|
1955
1955
|
URIError
|
|
1956
1956
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Q(e, t) {
|
|
1959
1959
|
switch (t.type) {
|
|
1960
1960
|
case "ArrayExpression":
|
|
1961
1961
|
return "[...]";
|
|
1962
1962
|
case "BinaryExpression":
|
|
1963
1963
|
case "LogicalExpression":
|
|
1964
|
-
return
|
|
1964
|
+
return Q(e, t.left) + " " + t.operator + " " + Q(e, t.right);
|
|
1965
1965
|
case "CallExpression":
|
|
1966
|
-
return
|
|
1966
|
+
return Q(e, t.callee) + "(...)";
|
|
1967
1967
|
case "ConditionalExpression":
|
|
1968
|
-
return
|
|
1968
|
+
return Q(e, t.test) + " ? " + Q(e, t.da) + " : " + Q(e, t.alternate);
|
|
1969
1969
|
case "Identifier":
|
|
1970
1970
|
return t.name;
|
|
1971
1971
|
case "Literal":
|
|
1972
1972
|
return t.raw;
|
|
1973
1973
|
case "MemberExpression":
|
|
1974
|
-
var n =
|
|
1975
|
-
return e =
|
|
1974
|
+
var n = Q(e, t.object);
|
|
1975
|
+
return e = Q(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1976
1976
|
case "NewExpression":
|
|
1977
|
-
return "new " +
|
|
1977
|
+
return "new " + Q(e, t.callee) + "(...)";
|
|
1978
1978
|
case "ObjectExpression":
|
|
1979
1979
|
return "{...}";
|
|
1980
1980
|
case "ThisExpression":
|
|
1981
1981
|
return "this";
|
|
1982
1982
|
case "UnaryExpression":
|
|
1983
|
-
return t.operator + " " +
|
|
1983
|
+
return t.operator + " " + Q(e, t.K);
|
|
1984
1984
|
case "UpdateExpression":
|
|
1985
|
-
return n =
|
|
1985
|
+
return n = Q(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1986
1986
|
}
|
|
1987
1987
|
return "???";
|
|
1988
1988
|
}
|
|
@@ -2279,7 +2279,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2279
2279
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2280
2280
|
return new S(n.arguments[t.A++], t.scope);
|
|
2281
2281
|
if (n.type === "NewExpression") {
|
|
2282
|
-
if (o instanceof P && !o.Ab || w(this, this.j,
|
|
2282
|
+
if (o instanceof P && !o.Ab || w(this, this.j, Q(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2283
2283
|
t.B = ze(this);
|
|
2284
2284
|
else {
|
|
2285
2285
|
var i = o.h.prototype;
|
|
@@ -2292,7 +2292,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2292
2292
|
if (t.eb)
|
|
2293
2293
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2294
2294
|
else {
|
|
2295
|
-
if (t.eb = !0, o instanceof P || w(this, this.j,
|
|
2295
|
+
if (t.eb = !0, o instanceof P || w(this, this.j, Q(this, n.callee) + " is not a function"), e = o.node) {
|
|
2296
2296
|
for (n = dn(this, e.body, o.Va), r = ze(this), o = 0; o < t.F.length; o++)
|
|
2297
2297
|
this.g(r, o, t.F[o]);
|
|
2298
2298
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
@@ -2318,7 +2318,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2318
2318
|
t.value = u, a.za = !1;
|
|
2319
2319
|
}), this.za = !0, t.scope.S || (t.B = on(this, t.B)), o.Za.apply(t.B, r);
|
|
2320
2320
|
} else
|
|
2321
|
-
w(this, this.j,
|
|
2321
|
+
w(this, this.j, Q(this, n.callee) + " is not callable");
|
|
2322
2322
|
}
|
|
2323
2323
|
};
|
|
2324
2324
|
g.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2692,7 +2692,7 @@ const di = (e) => e.split(`
|
|
|
2692
2692
|
}).join(`
|
|
2693
2693
|
`), y = di(a);
|
|
2694
2694
|
if (y === "") {
|
|
2695
|
-
|
|
2695
|
+
te.warn("Skipping evaluation of empty code block.");
|
|
2696
2696
|
return;
|
|
2697
2697
|
}
|
|
2698
2698
|
const f = `
|
|
@@ -2715,7 +2715,7 @@ theFunction();
|
|
|
2715
2715
|
const E = new g(f, O);
|
|
2716
2716
|
return E.run(), E.pseudoToNative(E.value);
|
|
2717
2717
|
} catch (E) {
|
|
2718
|
-
|
|
2718
|
+
te.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2719
2719
|
e: E
|
|
2720
2720
|
});
|
|
2721
2721
|
return;
|
|
@@ -2730,7 +2730,7 @@ const mi = () => {
|
|
|
2730
2730
|
if (!fi())
|
|
2731
2731
|
return !1;
|
|
2732
2732
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2733
|
-
return e && t && !n ? (
|
|
2733
|
+
return e && t && !n ? (te.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;
|
|
2734
2734
|
}, gi = (e) => X() || mi() ? Jo(e) : hi(e), ve = class ve {
|
|
2735
2735
|
static getCacheKey(t) {
|
|
2736
2736
|
return JSON.stringify({
|
|
@@ -2761,10 +2761,8 @@ function At({
|
|
|
2761
2761
|
isExpression: a = !0,
|
|
2762
2762
|
enableCache: u
|
|
2763
2763
|
}) {
|
|
2764
|
-
if (e === "")
|
|
2765
|
-
Z.warn("Skipping evaluation of empty code block.");
|
|
2764
|
+
if (e === "")
|
|
2766
2765
|
return;
|
|
2767
|
-
}
|
|
2768
2766
|
const d = {
|
|
2769
2767
|
code: qo(e, {
|
|
2770
2768
|
isExpression: a
|
|
@@ -2789,7 +2787,7 @@ function At({
|
|
|
2789
2787
|
}
|
|
2790
2788
|
return m;
|
|
2791
2789
|
} catch (m) {
|
|
2792
|
-
|
|
2790
|
+
te.error("Failed code evaluation: " + m.message, {
|
|
2793
2791
|
code: e
|
|
2794
2792
|
});
|
|
2795
2793
|
return;
|
|
@@ -3041,22 +3039,22 @@ const Ii = ({
|
|
|
3041
3039
|
},
|
|
3042
3040
|
block: r
|
|
3043
3041
|
}));
|
|
3044
|
-
}, xi = () => import("./block-styles-
|
|
3042
|
+
}, xi = () => import("./block-styles-nidJqmvF.js").then((e) => e.default).catch((e) => {
|
|
3045
3043
|
throw console.error(
|
|
3046
3044
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3047
3045
|
e
|
|
3048
3046
|
), e;
|
|
3049
|
-
}), Ri = () => import("./block-wrapper-
|
|
3047
|
+
}), Ri = () => import("./block-wrapper-7WuameoR.js").then((e) => e.default).catch((e) => {
|
|
3050
3048
|
throw console.error(
|
|
3051
3049
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3052
3050
|
e
|
|
3053
3051
|
), e;
|
|
3054
|
-
}), Ai = () => import("./component-ref-
|
|
3052
|
+
}), Ai = () => import("./component-ref-fkgFjHYh.js").then((e) => e.default).catch((e) => {
|
|
3055
3053
|
throw console.error(
|
|
3056
3054
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3057
3055
|
e
|
|
3058
3056
|
), e;
|
|
3059
|
-
}), $i = () => import("./repeated-block-
|
|
3057
|
+
}), $i = () => import("./repeated-block-otH5LpjC.js").then((e) => e.default).catch((e) => {
|
|
3060
3058
|
throw console.error(
|
|
3061
3059
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3062
3060
|
e
|
|
@@ -3687,7 +3685,7 @@ const ts = /* @__PURE__ */ V(Qi, [["render", es]]), ns = (e) => {
|
|
|
3687
3685
|
try {
|
|
3688
3686
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3689
3687
|
} catch (r) {
|
|
3690
|
-
|
|
3688
|
+
te.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3691
3689
|
return;
|
|
3692
3690
|
}
|
|
3693
3691
|
}, qr = async (e) => Gr(e), rs = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter($e).join("; "), os = [["secure", ""], ["SameSite", "None"]], is = ({
|
|
@@ -3713,7 +3711,7 @@ const ts = /* @__PURE__ */ V(Qi, [["render", es]]), ns = (e) => {
|
|
|
3713
3711
|
});
|
|
3714
3712
|
document.cookie = o;
|
|
3715
3713
|
} catch (o) {
|
|
3716
|
-
|
|
3714
|
+
te.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3717
3715
|
}
|
|
3718
3716
|
}, ss = "builder.tests", Pn = (e) => `${ss}.${e}`, as = ({
|
|
3719
3717
|
contentId: e
|
|
@@ -3751,7 +3749,7 @@ const ts = /* @__PURE__ */ V(Qi, [["render", es]]), ns = (e) => {
|
|
|
3751
3749
|
contentId: e.id,
|
|
3752
3750
|
value: t
|
|
3753
3751
|
}).catch((n) => {
|
|
3754
|
-
|
|
3752
|
+
te.error("could not store A/B test variation: ", n);
|
|
3755
3753
|
}), t;
|
|
3756
3754
|
}, Zr = ({
|
|
3757
3755
|
item: e,
|
|
@@ -5565,20 +5563,20 @@ const Da = async (e) => {
|
|
|
5565
5563
|
}));
|
|
5566
5564
|
t.results = o;
|
|
5567
5565
|
} catch (o) {
|
|
5568
|
-
|
|
5566
|
+
te.error("Could not process A/B tests. ", o);
|
|
5569
5567
|
}
|
|
5570
5568
|
return t.results;
|
|
5571
5569
|
};
|
|
5572
5570
|
async function Ha(e) {
|
|
5573
5571
|
try {
|
|
5574
5572
|
const t = On(e), n = await Da(e);
|
|
5575
|
-
return Wa(n) ? La(e, n) : (
|
|
5573
|
+
return Wa(n) ? La(e, n) : (te.error("Error fetching data. ", {
|
|
5576
5574
|
url: t,
|
|
5577
5575
|
content: n,
|
|
5578
5576
|
options: e
|
|
5579
5577
|
}), null);
|
|
5580
5578
|
} catch (t) {
|
|
5581
|
-
return
|
|
5579
|
+
return te.error("Error fetching data. ", t), null;
|
|
5582
5580
|
}
|
|
5583
5581
|
}
|
|
5584
5582
|
function Ka(e) {
|
|
@@ -5706,7 +5704,7 @@ const so = "builderSessionId", za = async ({
|
|
|
5706
5704
|
});
|
|
5707
5705
|
async function fn(e) {
|
|
5708
5706
|
if (!e.apiKey) {
|
|
5709
|
-
|
|
5707
|
+
te.error("Missing API key for track call. Please provide your API key.");
|
|
5710
5708
|
return;
|
|
5711
5709
|
}
|
|
5712
5710
|
if (e.canTrack && !ie() && (X() || de === "reactNative"))
|
|
@@ -5774,7 +5772,7 @@ function uo(e, t) {
|
|
|
5774
5772
|
const n = new URL(t.origin), r = n.hostname;
|
|
5775
5773
|
return (e || il).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
5776
5774
|
}
|
|
5777
|
-
const sl = "1.0.
|
|
5775
|
+
const sl = "1.0.23", wr = {};
|
|
5778
5776
|
function al(e, t) {
|
|
5779
5777
|
let n = wr[e];
|
|
5780
5778
|
if (n || (n = wr[e] = []), n.push(t), X()) {
|
|
@@ -5905,7 +5903,7 @@ const co = (e = {}) => {
|
|
|
5905
5903
|
}
|
|
5906
5904
|
}, Dl = (e, t, n) => {
|
|
5907
5905
|
if (!X)
|
|
5908
|
-
return
|
|
5906
|
+
return te.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
5909
5907
|
};
|
|
5910
5908
|
co();
|
|
5911
5909
|
const r = po({
|
|
@@ -5975,7 +5973,7 @@ const co = (e = {}) => {
|
|
|
5975
5973
|
);
|
|
5976
5974
|
}
|
|
5977
5975
|
})(), (() => {
|
|
5978
|
-
this.apiKey ||
|
|
5976
|
+
this.apiKey || te.error(
|
|
5979
5977
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5980
5978
|
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
5981
5979
|
})();
|
|
@@ -6637,7 +6635,7 @@ const Rl = /* @__PURE__ */ V(Tl, [["render", xl]]), Al = async ({
|
|
|
6637
6635
|
}
|
|
6638
6636
|
}
|
|
6639
6637
|
}).catch((n) => {
|
|
6640
|
-
|
|
6638
|
+
te.error("Could not fetch symbol content: ", n);
|
|
6641
6639
|
});
|
|
6642
6640
|
}, $l = N({
|
|
6643
6641
|
name: "builder-symbol",
|
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-CKoC6tWI.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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as a, k as t, l as r, C as o, p as i, F as n, I as c, S as g, m as l, n as m, V as u, A as d, s as C, z as E, D as p, E as B, v as S, q as f, r as h, t as x, u as b, y as k, x as y } from "./index-
|
|
1
|
+
import { o as a, k as t, l as r, C as o, p as i, F as n, I as c, S as g, m as l, n as m, V as u, A as d, s as C, z as E, D as p, E as B, v as S, q as f, r as h, t as x, u as b, y as k, x as y } from "./index-hIX7Gefu.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-CKoC6tWI.cjs"),r=()=>Promise.resolve().then(()=>require("./index-CKoC6tWI.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 { k as s, f as l } from "./index-
|
|
3
|
-
const i = () => import("./index-
|
|
2
|
+
import { k as s, f as l } from "./index-hIX7Gefu.js";
|
|
3
|
+
const i = () => import("./index-hIX7Gefu.js").then((o) => o.H).then((o) => o.default).catch((o) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
o
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),e=require("./index-ixVpFh79.cjs"),f=a.defineComponent({name:"block-styles",components:{InlinedStyles:e._sfc_main},props:["block","context"],data(){return{TARGET:e.TARGET}},computed:{canShowBlock(){const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return e.checkIsDefined(t.hide)?!t.hide:e.checkIsDefined(t.show)?t.show:!0},css(){var m,h,y;const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=t.responsiveStyles,c=this.context.content,r=e.getSizesForBreakpoints(((m=c==null?void 0:c.meta)==null?void 0:m.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=t.id;if(!n)return"";const k=i?e.createCssClass({className:n,styles:i}):"",p=d?e.createCssClass({className:n,styles:d,mediaQuery:e.getMaxWidthQueryForSize("medium",r)}):"",C=l?e.createCssClass({className:n,styles:l,mediaQuery:e.getMaxWidthQueryForSize("small",r)}):"",o=t.animations&&t.animations.find(u=>u.trigger==="hover");let S="";if(o){const u=((y=(h=o.steps)==null?void 0:h[1])==null?void 0:y.styles)||{};S=e.createCssClass({className:`${n}:hover`,styles:{...u,transition:`all ${o.duration}s ${e.camelCaseToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[k,p,C,S].join(" ")}}});function g(t,s,c,r,i,d){const l=a.resolveComponent("inlined-styles");return t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?(a.openBlock(),a.createBlock(l,{key:0,id:"builderio-block",styles:t.css},null,8,["styles"])):a.createCommentVNode("",!0)}const x=e._export_sfc(f,[["render",g]]);exports.default=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, resolveComponent as B, openBlock as C, createBlock as v, createCommentVNode as _ } from "vue";
|
|
2
|
-
import { _ as $, T, g as p, c as y, a as w, b as l, d as k, e as E, f as N } from "./index-
|
|
2
|
+
import { _ as $, T, g as p, c as y, a as w, b as l, d as k, e as E, f as N } from "./index-Bc6eCrlT.js";
|
|
3
3
|
const z = g({
|
|
4
4
|
name: "block-styles",
|
|
5
5
|
components: { InlinedStyles: $ },
|
|
@@ -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 { f as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-ddOPipN4.js";
|
|
3
|
+
import { f as m } from "./index-Bc6eCrlT.js";
|
|
4
|
+
const d = () => import("./index-Bc6eCrlT.js").then((e) => e.G).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-DnPEkmGq.cjs"),n=require("./index-ixVpFh79.cjs"),c=()=>Promise.resolve().then(()=>require("./index-ixVpFh79.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("dynamic-renderer");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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-ixVpFh79.cjs"),a=require("./get-block-properties-DnPEkmGq.cjs"),u=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,c,l,n,s){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const k=p._export_sfc(u,[["render",d]]),B=({componentOptions:e,builderBlock:t,context:c,componentRef:l,includeBlockProps:n,isInteractive:s,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return s?{Wrapper:l,block:t,context:c,wrapperProps:e,includeBlockProps:n}:r},f=o.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:k},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(k):this.componentRef,getWrapperProps:B}}});function b(e,t,c,l,n,s){const i=o.resolveComponent("block");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.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:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,m)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):o.createCommentVNode("",!0)}const C=p._export_sfc(f,[["render",b]]);exports.default=C;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as r, createBlock as l, resolveDynamicComponent as k, mergeProps as d, withCtx as u, renderSlot as P, resolveComponent as B, normalizeProps as g, createElementBlock as $, Fragment as v, renderList as S, createCommentVNode as W } from "vue";
|
|
2
|
-
import { f, B as h, w } from "./index-
|
|
3
|
-
import { g as R, a as b } from "./get-block-properties-
|
|
2
|
+
import { f, B as h, w } from "./index-Bc6eCrlT.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-ddOPipN4.js";
|
|
4
4
|
const I = m({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.23";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-ixVpFh79.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
|
|
@@ -410,10 +410,8 @@ function evaluate({
|
|
|
410
410
|
isExpression: i = !0,
|
|
411
411
|
enableCache: a
|
|
412
412
|
}) {
|
|
413
|
-
if (e === "")
|
|
414
|
-
logger.warn("Skipping evaluation of empty code block.");
|
|
413
|
+
if (e === "")
|
|
415
414
|
return;
|
|
416
|
-
}
|
|
417
415
|
const l = {
|
|
418
416
|
code: parseCode(e, {
|
|
419
417
|
isExpression: i
|
|
@@ -692,22 +690,22 @@ const getComponent = ({
|
|
|
692
690
|
},
|
|
693
691
|
block: o
|
|
694
692
|
}));
|
|
695
|
-
}, BlockStyles = () => import("./block-styles-
|
|
693
|
+
}, BlockStyles = () => import("./block-styles-FYc9WmuJ.js").then((e) => e.default).catch((e) => {
|
|
696
694
|
throw console.error(
|
|
697
695
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
698
696
|
e
|
|
699
697
|
), e;
|
|
700
|
-
}), BlockWrapper = () => import("./block-wrapper-
|
|
698
|
+
}), BlockWrapper = () => import("./block-wrapper-NWQoMvJs.js").then((e) => e.default).catch((e) => {
|
|
701
699
|
throw console.error(
|
|
702
700
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
703
701
|
e
|
|
704
702
|
), e;
|
|
705
|
-
}), ComponentRef = () => import("./component-ref-
|
|
703
|
+
}), ComponentRef = () => import("./component-ref-jqz9fyL1.js").then((e) => e.default).catch((e) => {
|
|
706
704
|
throw console.error(
|
|
707
705
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
708
706
|
e
|
|
709
707
|
), e;
|
|
710
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
708
|
+
}), RepeatedBlock = () => import("./repeated-block-sdoj-hCY.js").then((e) => e.default).catch((e) => {
|
|
711
709
|
throw console.error(
|
|
712
710
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
713
711
|
e
|
|
@@ -3425,7 +3423,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3425
3423
|
const n = new URL(t.origin), o = n.hostname;
|
|
3426
3424
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3427
3425
|
}
|
|
3428
|
-
const SDK_VERSION = "1.0.
|
|
3426
|
+
const SDK_VERSION = "1.0.23", registry = {};
|
|
3429
3427
|
function register(e, t) {
|
|
3430
3428
|
let n = registry[e];
|
|
3431
3429
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|