@builder.io/sdk-vue 5.4.0 → 5.4.1
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-qNFJfpSz.cjs → awaiter-4W3WT96K.cjs} +1 -1
- package/lib/browser/{awaiter-XLoIdAw3.js → awaiter-B8s77WBH.js} +1 -1
- package/lib/browser/{block-wrapper-reas9rmo.cjs → block-wrapper-7JoIxDbQ.cjs} +1 -1
- package/lib/browser/{block-wrapper-f3zEx8S_.js → block-wrapper-kW5g4Okp.js} +3 -3
- package/lib/browser/{component-ref-4ay3OV1k.cjs → component-ref-4Utffff4.cjs} +1 -1
- package/lib/browser/{component-ref-4lLMyE43.js → component-ref-b7ywwGcW.js} +4 -4
- package/lib/browser/components/content/content.helpers.d.ts +7 -1
- package/lib/browser/components/content/content.vue.d.ts +4 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-CK4qnoHd.cjs → get-block-properties-89n-r4Af.cjs} +1 -1
- package/lib/browser/{get-block-properties-nqV8scES.js → get-block-properties-Y6tHbrsL.js} +1 -1
- package/lib/browser/{index-lRIGot7h.cjs → index-6jB0_2he.cjs} +4 -4
- package/lib/browser/{index-pJnoXY0A.js → index-ikowBLdB.js} +62 -58
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-hoV0ghuj.cjs → live-edit-3wlrF5Sa.cjs} +1 -1
- package/lib/browser/{live-edit-5mCChUV2.js → live-edit-OfF9nBpT.js} +1 -1
- package/lib/browser/{repeated-block-F5n8q4pA.js → repeated-block-fVyfF5-2.js} +2 -2
- package/lib/browser/{repeated-block-FDJw__8i.cjs → repeated-block-mH_DZ94i.cjs} +1 -1
- package/lib/browser/{style-wrapper-e5wqPuhd.js → style-wrapper-8rqiq_70.js} +1 -1
- package/lib/browser/{style-wrapper-6XW31DT6.cjs → style-wrapper-wQeSi9uI.cjs} +1 -1
- package/lib/edge/{awaiter-TPWZATcH.js → awaiter--AIlZV5A.js} +1 -1
- package/lib/edge/{awaiter-g1cucmgb.cjs → awaiter-o_usBqsR.cjs} +1 -1
- package/lib/{node/block-wrapper-S-D5WDpF.js → edge/block-wrapper-C3hvVlZR.js} +3 -3
- package/lib/edge/{block-wrapper-oEdWkUs5.cjs → block-wrapper-f0WB40t8.cjs} +1 -1
- package/lib/edge/{component-ref-XsyNNMUg.cjs → component-ref-RH-KNtol.cjs} +1 -1
- package/lib/edge/{component-ref-PjrRqoNv.js → component-ref-palC2iTk.js} +4 -4
- package/lib/edge/components/content/content.helpers.d.ts +7 -1
- package/lib/edge/components/content/content.vue.d.ts +4 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-OQKbXkPB.js → get-block-properties-J0RzfSzL.js} +1 -1
- package/lib/edge/{get-block-properties-LZfO1d9V.cjs → get-block-properties-NK3aSNeI.cjs} +1 -1
- package/lib/edge/{index-fWAfFgEy.cjs → index-Mb5Ji_3B.cjs} +11 -11
- package/lib/edge/{index-RgTaKnZ2.js → index-Rfy62Wro.js} +16 -12
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-YCZ5pmAP.cjs → edge/live-edit-FXVlWLQR.cjs} +1 -1
- package/lib/edge/{live-edit-f7U2Azcm.js → live-edit-mAeB4Uu2.js} +1 -1
- package/lib/edge/{repeated-block-bXYXfKP_.js → repeated-block-_kq2y3Kn.js} +2 -2
- package/lib/edge/{repeated-block-N0cYhpaS.cjs → repeated-block-tuEDHoSp.cjs} +1 -1
- package/lib/edge/{style-wrapper-XXgvForl.js → style-wrapper-OSOobwM9.js} +1 -1
- package/lib/edge/{style-wrapper-x1xM4jrn.cjs → style-wrapper-r8zHhlTM.cjs} +1 -1
- package/lib/node/{awaiter-U9ghjah_.js → awaiter-fR3-KaXu.js} +1 -1
- package/lib/node/{awaiter-6GuArcPZ.cjs → awaiter-y38jjnBK.cjs} +1 -1
- package/lib/node/{block-wrapper-BjCwxGrk.cjs → block-wrapper-nPZjqj5H.cjs} +1 -1
- package/lib/{edge/block-wrapper-pWTeul3q.js → node/block-wrapper-ofgM0xH0.js} +3 -3
- package/lib/node/{component-ref-JIXZgEPq.js → component-ref-COeITsvM.js} +5 -5
- package/lib/node/{component-ref-2T_SzZr_.cjs → component-ref-WO74XtUa.cjs} +1 -1
- package/lib/node/components/content/content.helpers.d.ts +7 -1
- package/lib/node/components/content/content.vue.d.ts +4 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-6ZEBsSGZ.js → get-block-properties-JDRIQ736.js} +2 -2
- package/lib/node/{get-block-properties-VdcyrKHl.cjs → get-block-properties-UHO1OvdN.cjs} +1 -1
- package/lib/node/{index-C8cK6fMj.cjs → index-TDsy_Sk9.cjs} +4 -4
- package/lib/node/{index-BFBRlmya.js → index-_L3VFXAv.js} +16 -12
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-JjbauDaL.cjs → node/live-edit-QgZv9WDZ.cjs} +1 -1
- package/lib/node/{live-edit-Gaqi2aam.js → live-edit-u-OEPKCw.js} +1 -1
- package/lib/node/{repeated-block-crOq_RyN.cjs → repeated-block--LS-nlbL.cjs} +1 -1
- package/lib/node/{repeated-block-xa9PS91L.js → repeated-block-rhmN1ohE.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-dSSMAIhU.js → should-force-browser-runtime-in-node-CwJRQBSu.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-ljCjC7PN.cjs → should-force-browser-runtime-in-node-MVlZh-76.cjs} +2 -2
- package/lib/node/{style-wrapper-ol70p_wf.cjs → style-wrapper-oChSWVYu.cjs} +1 -1
- package/lib/node/{style-wrapper-8sWObtTj.js → style-wrapper-qHENiLRx.js} +2 -2
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ function an(e, t, n, o, r, i) {
|
|
|
41
41
|
const Ve = /* @__PURE__ */ k(sn, [["render", an]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: Ve
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })), E = "vue",
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), E = "vue", j = () => {
|
|
45
45
|
switch (E) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
@@ -71,7 +71,7 @@ const Ve = /* @__PURE__ */ k(sn, [["render", an]]), sa = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...N(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[j()]: `${this.link ? "" : "builder-button"} ${this.attributes[j()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -182,11 +182,11 @@ const fn = () => {
|
|
|
182
182
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
183
183
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
184
184
|
};
|
|
185
|
-
}, kt = "5.4.
|
|
185
|
+
}, kt = "5.4.1", Ct = () => ({
|
|
186
186
|
"X-Builder-SDK": E,
|
|
187
187
|
"X-Builder-SDK-GEN": "2",
|
|
188
188
|
"X-Builder-SDK-Version": kt
|
|
189
|
-
}),
|
|
189
|
+
}), H = (e) => e != null, gn = (e) => {
|
|
190
190
|
if (e === "localhost" || e === "127.0.0.1")
|
|
191
191
|
return e;
|
|
192
192
|
const t = e.split(".");
|
|
@@ -202,7 +202,7 @@ const fn = () => {
|
|
|
202
202
|
V.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
}, Tt = async (e) => fe(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(
|
|
205
|
+
}, Tt = async (e) => fe(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(H).join("; "), Sn = [["secure", ""], ["SameSite", "None"]], vn = ({
|
|
206
206
|
name: e,
|
|
207
207
|
value: t,
|
|
208
208
|
expires: n
|
|
@@ -246,7 +246,7 @@ const wt = "builderSessionId", Cn = async ({
|
|
|
246
246
|
name: wt,
|
|
247
247
|
canTrack: e
|
|
248
248
|
});
|
|
249
|
-
if (
|
|
249
|
+
if (H(t))
|
|
250
250
|
return t;
|
|
251
251
|
{
|
|
252
252
|
const n = Tn();
|
|
@@ -293,7 +293,7 @@ const wt = "builderSessionId", Cn = async ({
|
|
|
293
293
|
key: Rt,
|
|
294
294
|
canTrack: e
|
|
295
295
|
});
|
|
296
|
-
if (
|
|
296
|
+
if (H(t))
|
|
297
297
|
return t;
|
|
298
298
|
{
|
|
299
299
|
const n = $n();
|
|
@@ -466,7 +466,7 @@ const Wn = 5e3, Ke = bt(Wn), Dn = (e, t) => {
|
|
|
466
466
|
};
|
|
467
467
|
function Un() {
|
|
468
468
|
var e;
|
|
469
|
-
return typeof process < "u" &&
|
|
469
|
+
return typeof process < "u" && H((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
470
470
|
}
|
|
471
471
|
let qe = !1;
|
|
472
472
|
const xn = ({
|
|
@@ -479,12 +479,12 @@ const xn = ({
|
|
|
479
479
|
return t && n && !o ? (e && !qe && (qe = !0, V.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;
|
|
480
480
|
}, Ln = (e) => (I() || xn({
|
|
481
481
|
shouldLogWarning: !0
|
|
482
|
-
}), ze(e)), Fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Mn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,
|
|
482
|
+
}), ze(e)), Fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Mn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, jn = (e) => {
|
|
483
483
|
var t, n, o, r, i, s;
|
|
484
484
|
return ((o = (n = (t = Fn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Mn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
485
|
-
},
|
|
485
|
+
}, Hn = 5e3, Ge = bt(Hn), Kn = (e) => {
|
|
486
486
|
let t = Ge.get(e);
|
|
487
|
-
return t === void 0 && (t =
|
|
487
|
+
return t === void 0 && (t = jn(e) || null, Ge.set(e, t)), t;
|
|
488
488
|
}, zn = (e, t, n) => {
|
|
489
489
|
const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
|
|
490
490
|
return gt(r, n);
|
|
@@ -651,7 +651,7 @@ const Xn = ({
|
|
|
651
651
|
rootSetState: r,
|
|
652
652
|
context: t
|
|
653
653
|
});
|
|
654
|
-
Yn(s, l, d, i);
|
|
654
|
+
Yn(s, l === "id" ? "properties.id" : l, d, i);
|
|
655
655
|
}
|
|
656
656
|
return s;
|
|
657
657
|
}, _e = /* @__PURE__ */ new WeakMap(), Zn = (e) => {
|
|
@@ -904,7 +904,7 @@ const Ut = (e) => {
|
|
|
904
904
|
name: De(e),
|
|
905
905
|
value: t,
|
|
906
906
|
canTrack: !0
|
|
907
|
-
}), Lt = (e) =>
|
|
907
|
+
}), Lt = (e) => H(e.id) && H(e.variations) && Object.keys(e.variations).length > 0, uo = ({
|
|
908
908
|
id: e,
|
|
909
909
|
variations: t
|
|
910
910
|
}) => {
|
|
@@ -1044,7 +1044,7 @@ I() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__B
|
|
|
1044
1044
|
const pe = Ie, pa = (e) => {
|
|
1045
1045
|
pe.setUserAttributes(e);
|
|
1046
1046
|
}, _ = (e) => {
|
|
1047
|
-
const t =
|
|
1047
|
+
const t = H(e) ? e : !0;
|
|
1048
1048
|
return pe.setCanTrack(t), t;
|
|
1049
1049
|
};
|
|
1050
1050
|
function go() {
|
|
@@ -1070,10 +1070,10 @@ function we(e, t = null, n = ".") {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
}, {});
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function jt(e, t, n = {}) {
|
|
1074
1074
|
for (const o in e) {
|
|
1075
1075
|
const r = e[o], i = t ? t + "." + o : o;
|
|
1076
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
1076
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? jt(r, i, n) : n[i] = r;
|
|
1077
1077
|
}
|
|
1078
1078
|
return n;
|
|
1079
1079
|
}
|
|
@@ -1135,7 +1135,7 @@ const ko = "v3", ot = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ue = (
|
|
|
1135
1135
|
for (const W in Q)
|
|
1136
1136
|
W !== "apiKey" && T.searchParams.set(W, String(Q[W]));
|
|
1137
1137
|
if (Object.keys(K).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(K)), o) {
|
|
1138
|
-
const W =
|
|
1138
|
+
const W = jt({
|
|
1139
1139
|
query: o
|
|
1140
1140
|
});
|
|
1141
1141
|
for (const F in W)
|
|
@@ -1260,7 +1260,7 @@ function Ao(e) {
|
|
|
1260
1260
|
break;
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Ht(e) {
|
|
1264
1264
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1265
1265
|
}
|
|
1266
1266
|
function Kt(e, t) {
|
|
@@ -1279,7 +1279,7 @@ function Bo(e) {
|
|
|
1279
1279
|
function zt(e) {
|
|
1280
1280
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1281
1281
|
if (!t.length) {
|
|
1282
|
-
|
|
1282
|
+
Ht(e.elementId || e.id || "");
|
|
1283
1283
|
return;
|
|
1284
1284
|
}
|
|
1285
1285
|
Array.from(t).forEach((n) => {
|
|
@@ -1293,7 +1293,7 @@ function zt(e) {
|
|
|
1293
1293
|
function Vo(e) {
|
|
1294
1294
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1295
1295
|
if (!t.length) {
|
|
1296
|
-
|
|
1296
|
+
Ht(e.elementId || e.id || "");
|
|
1297
1297
|
return;
|
|
1298
1298
|
}
|
|
1299
1299
|
Array.from(t).forEach((n) => {
|
|
@@ -1340,7 +1340,7 @@ const ie = (e, t) => {
|
|
|
1340
1340
|
} : e, qt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1341
1341
|
if (typeof o == "string")
|
|
1342
1342
|
return `${Le(n)}: ${o};`;
|
|
1343
|
-
}).filter(
|
|
1343
|
+
}).filter(H), Oo = (e) => qt(e).join(`
|
|
1344
1344
|
`), fa = ({
|
|
1345
1345
|
mediaQuery: e,
|
|
1346
1346
|
className: t,
|
|
@@ -1472,27 +1472,27 @@ const _t = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1472
1472
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1473
1473
|
builderContext: t
|
|
1474
1474
|
} : {};
|
|
1475
|
-
},
|
|
1475
|
+
}, jo = (e) => e.toString(), Ho = () => Promise.resolve().then(() => or).then((e) => e.default).catch((e) => {
|
|
1476
1476
|
throw console.error(
|
|
1477
1477
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1478
1478
|
e
|
|
1479
1479
|
), e;
|
|
1480
|
-
}), Ko = () => import("./block-wrapper-
|
|
1480
|
+
}), Ko = () => import("./block-wrapper-kW5g4Okp.js").then((e) => e.default).catch((e) => {
|
|
1481
1481
|
throw console.error(
|
|
1482
1482
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1483
1483
|
e
|
|
1484
1484
|
), e;
|
|
1485
|
-
}), zo = () => import("./component-ref-
|
|
1485
|
+
}), zo = () => import("./component-ref-b7ywwGcW.js").then((e) => e.default).catch((e) => {
|
|
1486
1486
|
throw console.error(
|
|
1487
1487
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1488
1488
|
e
|
|
1489
1489
|
), e;
|
|
1490
|
-
}), qo = () => import("./repeated-block-
|
|
1490
|
+
}), qo = () => import("./repeated-block-fVyfF5-2.js").then((e) => e.default).catch((e) => {
|
|
1491
1491
|
throw console.error(
|
|
1492
1492
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1493
1493
|
e
|
|
1494
1494
|
), e;
|
|
1495
|
-
}), Go = () => import("./style-wrapper-
|
|
1495
|
+
}), Go = () => import("./style-wrapper-8rqiq_70.js").then((e) => e.default).catch((e) => {
|
|
1496
1496
|
throw console.error(
|
|
1497
1497
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1498
1498
|
e
|
|
@@ -1504,7 +1504,7 @@ const _t = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1504
1504
|
RepeatedBlock: Y(qo),
|
|
1505
1505
|
ComponentRef: Y(zo),
|
|
1506
1506
|
BlockWrapper: Y(Ko),
|
|
1507
|
-
DynamicDiv: Y(
|
|
1507
|
+
DynamicDiv: Y(Ho)
|
|
1508
1508
|
},
|
|
1509
1509
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1510
1510
|
data() {
|
|
@@ -1517,7 +1517,7 @@ const _t = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1517
1517
|
value: null,
|
|
1518
1518
|
deps: []
|
|
1519
1519
|
},
|
|
1520
|
-
generateKey:
|
|
1520
|
+
generateKey: jo
|
|
1521
1521
|
};
|
|
1522
1522
|
},
|
|
1523
1523
|
mounted() {
|
|
@@ -2028,7 +2028,7 @@ const oe = /* @__PURE__ */ k(tr, [["render", nr]]), or = /* @__PURE__ */ Object.
|
|
|
2028
2028
|
...e.link ? {
|
|
2029
2029
|
href: e.link
|
|
2030
2030
|
} : {},
|
|
2031
|
-
[
|
|
2031
|
+
[j()]: "builder-column",
|
|
2032
2032
|
style: Gt(this.columnCssVars(t))
|
|
2033
2033
|
};
|
|
2034
2034
|
}
|
|
@@ -2832,7 +2832,7 @@ const Fr = /* @__PURE__ */ k(Ur, [["render", Lr]]), Mr = {
|
|
|
2832
2832
|
shouldReceiveBuilderProps: {
|
|
2833
2833
|
builderLinkComponent: !0
|
|
2834
2834
|
}
|
|
2835
|
-
},
|
|
2835
|
+
}, jr = {
|
|
2836
2836
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2837
2837
|
name: "Columns",
|
|
2838
2838
|
isRSC: !0,
|
|
@@ -3039,7 +3039,7 @@ const Fr = /* @__PURE__ */ k(Ur, [["render", Lr]]), Mr = {
|
|
|
3039
3039
|
builderComponents: !0,
|
|
3040
3040
|
builderLinkComponent: !0
|
|
3041
3041
|
}
|
|
3042
|
-
},
|
|
3042
|
+
}, Hr = {
|
|
3043
3043
|
name: "Fragment",
|
|
3044
3044
|
static: !0,
|
|
3045
3045
|
hidden: !0,
|
|
@@ -3290,7 +3290,7 @@ const Fr = /* @__PURE__ */ k(Ur, [["render", Lr]]), Mr = {
|
|
|
3290
3290
|
return {
|
|
3291
3291
|
...N(this.attributes, "v-on:", !1),
|
|
3292
3292
|
...N(this.attributes, "v-on:", !0),
|
|
3293
|
-
[
|
|
3293
|
+
[j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
|
|
3294
3294
|
};
|
|
3295
3295
|
},
|
|
3296
3296
|
filteredVariants() {
|
|
@@ -3374,12 +3374,12 @@ function _r(e, t, n, o, r, i) {
|
|
|
3374
3374
|
registeredComponents: e.builderComponents
|
|
3375
3375
|
}, {
|
|
3376
3376
|
default: D(() => {
|
|
3377
|
-
var F,
|
|
3377
|
+
var F, He;
|
|
3378
3378
|
return [
|
|
3379
3379
|
$(a, {
|
|
3380
3380
|
nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
|
|
3381
3381
|
scriptStr: e.scriptStr,
|
|
3382
|
-
id: `variants-script-${(
|
|
3382
|
+
id: `variants-script-${(He = e.builderBlock) == null ? void 0 : He.id}-${T}`
|
|
3383
3383
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3384
3384
|
];
|
|
3385
3385
|
}),
|
|
@@ -4509,7 +4509,7 @@ const Ui = /* @__PURE__ */ k(Ni, [["render", Di]]), xi = {
|
|
|
4509
4509
|
return { isEditing: P, filterAttrs: N };
|
|
4510
4510
|
}
|
|
4511
4511
|
}), Fi = ["value", "defaultValue", "name", "required"], Mi = ["value"];
|
|
4512
|
-
function
|
|
4512
|
+
function ji(e, t, n, o, r, i) {
|
|
4513
4513
|
return u(), h("select", R({
|
|
4514
4514
|
value: e.value,
|
|
4515
4515
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -4523,7 +4523,7 @@ function Hi(e, t, n, o, r, i) {
|
|
|
4523
4523
|
}, he(s.name || s.value), 9, Mi))), 128))
|
|
4524
4524
|
], 16, Fi);
|
|
4525
4525
|
}
|
|
4526
|
-
const
|
|
4526
|
+
const Hi = /* @__PURE__ */ k(Li, [["render", ji]]), Ki = {
|
|
4527
4527
|
name: "Form:SubmitButton",
|
|
4528
4528
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4529
4529
|
defaultStyles: {
|
|
@@ -4686,7 +4686,7 @@ const Xi = /* @__PURE__ */ k(Ji, [["render", Yi]]), Zi = {
|
|
|
4686
4686
|
const e = {
|
|
4687
4687
|
...N(this.attributes, "v-on:", !1),
|
|
4688
4688
|
...N(this.attributes, "v-on:", !0),
|
|
4689
|
-
[
|
|
4689
|
+
[j()]: `builder-raw-img ${this.attributes[j()] || ""}`
|
|
4690
4690
|
};
|
|
4691
4691
|
return delete e.style, e;
|
|
4692
4692
|
}
|
|
@@ -4952,7 +4952,7 @@ const us = /* @__PURE__ */ k(is, [["render", ds]]), ps = () => [{
|
|
|
4952
4952
|
component: Gi,
|
|
4953
4953
|
...Ki
|
|
4954
4954
|
}, {
|
|
4955
|
-
component:
|
|
4955
|
+
component: Hi,
|
|
4956
4956
|
...xi
|
|
4957
4957
|
}, {
|
|
4958
4958
|
component: Xi,
|
|
@@ -4970,10 +4970,10 @@ const ct = () => se || (se = [{
|
|
|
4970
4970
|
...Mr
|
|
4971
4971
|
}, {
|
|
4972
4972
|
component: lr,
|
|
4973
|
-
...
|
|
4973
|
+
...jr
|
|
4974
4974
|
}, {
|
|
4975
4975
|
component: ur,
|
|
4976
|
-
...
|
|
4976
|
+
...Hr
|
|
4977
4977
|
}, {
|
|
4978
4978
|
component: Sr,
|
|
4979
4979
|
...zr
|
|
@@ -5098,25 +5098,25 @@ const ct = () => se || (se = [{
|
|
|
5098
5098
|
})), bs = ({
|
|
5099
5099
|
canTrack: e,
|
|
5100
5100
|
content: t
|
|
5101
|
-
}) => !(!(de(t).length > 0) || !e), gs = (e) => e === "react" || e === "reactNative", ys = E === "angular",
|
|
5101
|
+
}) => !(!(de(t).length > 0) || !e), gs = (e) => e === "react" || e === "reactNative", ys = E === "angular", je = gs(E), Zt = () => `
|
|
5102
5102
|
(function() {
|
|
5103
5103
|
if (!window.${Ae}) {
|
|
5104
5104
|
window.${Ae} = ${ms};
|
|
5105
5105
|
}
|
|
5106
5106
|
if (!window.${Be}) {
|
|
5107
5107
|
window.${Be} = ${hs};
|
|
5108
|
-
}${
|
|
5108
|
+
}${je ? `
|
|
5109
5109
|
var thisScriptEl = document.currentScript;
|
|
5110
5110
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
5111
5111
|
})();
|
|
5112
5112
|
`, Ss = (e, t) => `
|
|
5113
5113
|
window.${Ae}(
|
|
5114
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
5114
|
+
"${t}",${JSON.stringify(e)}, ${je}, ${ys}
|
|
5115
5115
|
)`, vs = ({
|
|
5116
5116
|
contentId: e,
|
|
5117
5117
|
variationId: t
|
|
5118
5118
|
}) => `window.${Be}(
|
|
5119
|
-
"${t}", "${e}", ${
|
|
5119
|
+
"${t}", "${e}", ${je}
|
|
5120
5120
|
)`, ks = (e) => JSON.parse(JSON.stringify(e));
|
|
5121
5121
|
function dt(e) {
|
|
5122
5122
|
return Math.round(e * 1e3) / 1e3;
|
|
@@ -5439,7 +5439,7 @@ font-weight: ${s};
|
|
|
5439
5439
|
(p, b) => String(
|
|
5440
5440
|
ne({
|
|
5441
5441
|
code: b,
|
|
5442
|
-
context: this.context
|
|
5442
|
+
context: this.builderContextSignal.context,
|
|
5443
5443
|
localState: void 0,
|
|
5444
5444
|
rootState: this.builderContextSignal.rootState,
|
|
5445
5445
|
rootSetState: this.builderContextSignal.rootSetState
|
|
@@ -5656,7 +5656,7 @@ const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */
|
|
|
5656
5656
|
locale: n
|
|
5657
5657
|
} : {}
|
|
5658
5658
|
};
|
|
5659
|
-
},
|
|
5659
|
+
}, js = ({
|
|
5660
5660
|
content: e,
|
|
5661
5661
|
data: t
|
|
5662
5662
|
}) => e ? {
|
|
@@ -5666,7 +5666,7 @@ const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */
|
|
|
5666
5666
|
...t
|
|
5667
5667
|
},
|
|
5668
5668
|
meta: e == null ? void 0 : e.meta
|
|
5669
|
-
} : void 0,
|
|
5669
|
+
} : void 0, Hs = nn, Ks = y({
|
|
5670
5670
|
name: "content-component",
|
|
5671
5671
|
components: {
|
|
5672
5672
|
EnableEditor: Ws,
|
|
@@ -5680,8 +5680,8 @@ const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */
|
|
|
5680
5680
|
"data",
|
|
5681
5681
|
"locale",
|
|
5682
5682
|
"apiKey",
|
|
5683
|
-
"context",
|
|
5684
5683
|
"customComponents",
|
|
5684
|
+
"context",
|
|
5685
5685
|
"canTrack",
|
|
5686
5686
|
"apiVersion",
|
|
5687
5687
|
"blocksWrapper",
|
|
@@ -5708,12 +5708,16 @@ const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */
|
|
|
5708
5708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5709
5709
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5710
5710
|
}),
|
|
5711
|
+
jsCodeRun: {
|
|
5712
|
+
done: !1,
|
|
5713
|
+
rootState: null
|
|
5714
|
+
},
|
|
5711
5715
|
registeredComponents: Ls(
|
|
5712
5716
|
[...ct(), ...this.customComponents || []],
|
|
5713
|
-
(n) =>
|
|
5717
|
+
(n) => Hs(n)
|
|
5714
5718
|
),
|
|
5715
5719
|
builderContextSignal: {
|
|
5716
|
-
content:
|
|
5720
|
+
content: js({
|
|
5717
5721
|
content: this.content,
|
|
5718
5722
|
data: this.data
|
|
5719
5723
|
}),
|
|
@@ -5755,16 +5759,16 @@ const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */
|
|
|
5755
5759
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5756
5760
|
);
|
|
5757
5761
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5758
|
-
e && ne({
|
|
5762
|
+
e && (this.jsCodeRun.rootState = this.builderContextSignal.rootState, ne({
|
|
5759
5763
|
code: e,
|
|
5760
|
-
context: this.context
|
|
5764
|
+
context: this.builderContextSignal.context,
|
|
5761
5765
|
localState: void 0,
|
|
5762
5766
|
rootState: this.builderContextSignal.rootState,
|
|
5763
5767
|
rootSetState: (o) => {
|
|
5764
5768
|
this.builderContextSignal.rootState = o;
|
|
5765
5769
|
},
|
|
5766
5770
|
isExpression: !1
|
|
5767
|
-
});
|
|
5771
|
+
}), this.jsCodeRun.done = !0);
|
|
5768
5772
|
},
|
|
5769
5773
|
watch: {
|
|
5770
5774
|
onUpdateHook0: {
|
|
@@ -5784,7 +5788,7 @@ const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */
|
|
|
5784
5788
|
},
|
|
5785
5789
|
methods: {
|
|
5786
5790
|
contentSetState(e) {
|
|
5787
|
-
this.builderContextSignal.rootState = e;
|
|
5791
|
+
this.jsCodeRun.rootState = e, this.builderContextSignal.rootState = e;
|
|
5788
5792
|
}
|
|
5789
5793
|
}
|
|
5790
5794
|
});
|
|
@@ -6061,7 +6065,7 @@ const Js = /* @__PURE__ */ k(Gs, [["render", _s]]), Qs = (e) => {
|
|
|
6061
6065
|
className() {
|
|
6062
6066
|
var e, t;
|
|
6063
6067
|
return [
|
|
6064
|
-
this.attributes[
|
|
6068
|
+
this.attributes[j()],
|
|
6065
6069
|
"builder-symbol",
|
|
6066
6070
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
6067
6071
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -6179,10 +6183,10 @@ export {
|
|
|
6179
6183
|
E as T,
|
|
6180
6184
|
us as V,
|
|
6181
6185
|
k as _,
|
|
6182
|
-
|
|
6186
|
+
j as a,
|
|
6183
6187
|
Te as b,
|
|
6184
6188
|
ge as c,
|
|
6185
|
-
|
|
6189
|
+
H as d,
|
|
6186
6190
|
ne as e,
|
|
6187
6191
|
ha as f,
|
|
6188
6192
|
ba as g,
|
|
@@ -6201,7 +6205,7 @@ export {
|
|
|
6201
6205
|
pa as t,
|
|
6202
6206
|
be as u,
|
|
6203
6207
|
to as v,
|
|
6204
|
-
|
|
6208
|
+
Hs as w,
|
|
6205
6209
|
la as x,
|
|
6206
6210
|
ca as y,
|
|
6207
6211
|
da as z
|
package/lib/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
var t=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-6jB0_2he.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.BuilderScripts=e.builderScripts;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.registerAction=e.registerAction;exports.setClientUserAttributes=e.setClientUserAttributes;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/browser/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { q as a, b as r, r as i, n as o, C as n, s as c, F as g, I as u, S as l, o as d, p as m, V as p, H as C, v as B, G as E, J as S, K as b, A as f, i as h, u as x, x as y, y as A, t as P, z as k, E as v, D as F } from "./index-
|
|
2
|
+
import { q as a, b as r, r as i, n as o, C as n, s as c, F as g, I as u, S as l, o as d, p as m, V as p, H as C, v as B, G as E, J as S, K as b, A as f, i as h, u as x, x as y, y as A, t as P, z as k, E as v, D as F } from "./index-ikowBLdB.js";
|
|
3
3
|
export {
|
|
4
4
|
a as Blocks,
|
|
5
5
|
r as BuilderContext,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FHyxDYzT.cjs"),n=require("./index-
|
|
1
|
+
var l=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FHyxDYzT.cjs"),n=require("./index-6jB0_2he.cjs"),i=t.defineComponent({name:"live-edit",props:["id","attributes","Wrapper"],inject:{context:n.BuilderContext.key},computed:{block(){return r.findBlockById(this.context.content,this.id)},options(){var e,o;return((o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options)||{}}}});function s(e,o,p,u,d,a){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.options),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const c=n._export_sfc(i,[["render",s]]);exports.default=c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as o, openBlock as r, createBlock as n, resolveDynamicComponent as i, mergeProps as s, withCtx as p, renderSlot as a } from "vue";
|
|
3
3
|
import { f as c } from "./find-block-4FksmtpZ.js";
|
|
4
|
-
import { b as d, _ as m } from "./index-
|
|
4
|
+
import { b as d, _ as m } from "./index-ikowBLdB.js";
|
|
5
5
|
const l = o({
|
|
6
6
|
name: "live-edit",
|
|
7
7
|
props: ["id", "attributes", "Wrapper"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as s } from "vue";
|
|
3
|
-
import { b as c, _ as i } from "./index-
|
|
4
|
-
const a = () => import("./index-
|
|
3
|
+
import { b as c, _ as i } from "./index-ikowBLdB.js";
|
|
4
|
+
const a = () => import("./index-ikowBLdB.js").then((e) => e.M).then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
7
7
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-6jB0_2he.cjs"),r=()=>Promise.resolve().then(()=>require("./index-6jB0_2he.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}},watch:{onUpdateHook0:{handler(){this.store=this.repeatContext},immediate:!0}},computed:{onUpdateHook0(){return{0:this.repeatContext}}}});function s(e,p,l,a,d,m){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 i=t._export_sfc(c,[["render",s]]);exports.default=i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as E, resolveComponent as x, openBlock as y, createBlock as g, createCommentVNode as N, createElementBlock as G, Fragment as H } from "vue";
|
|
3
|
-
import { c as R, T as w, d as C, f as W, h as j, j as l, k as u, l as z, _ as Q, m as U, b as D } from "./index-
|
|
3
|
+
import { c as R, T as w, d as C, f as W, h as j, j as l, k as u, l as z, _ as Q, m as U, b as D } from "./index-ikowBLdB.js";
|
|
4
4
|
import { f as F } from "./find-block-4FksmtpZ.js";
|
|
5
5
|
const L = E({
|
|
6
6
|
name: "block-styles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var F=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-
|
|
1
|
+
var F=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-6jB0_2he.cjs"),_=require("./find-block-FHyxDYzT.cjs"),P=o.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=this.block;return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var S,h,B,C,f,v;const e=this.block,t=s.getResponsiveStylesWithImagePosition(e.responsiveStyles,((S=e.component)==null?void 0:S.name)==="Image"),n=this.context.content,l=s.getSizesForBreakpoints(((h=n==null?void 0:n.meta)==null?void 0:h.breakpoints)||{}),k=!!((C=(B=n==null?void 0:n.meta)==null?void 0:B.breakpoints)!=null&&C.xsmall),a=t==null?void 0:t.large,c=t==null?void 0:t.medium,d=t==null?void 0:t.small,r=t==null?void 0:t.xsmall,m=e.id;if(!m)return"";const b=a?s.createCssClass({className:m,styles:a}):"",g=c?s.createCssClass({className:m,styles:c,mediaQuery:s.getMaxWidthQueryForSize("medium",l)}):"",x=d?s.createCssClass({className:m,styles:d,mediaQuery:s.getMaxWidthQueryForSize("small",l)}):"",p=r&&k?s.createCssClass({className:m,styles:r,mediaQuery:s.getMaxWidthQueryForSize("xsmall",l)}):"",i=e.animations&&e.animations.find(u=>u.trigger==="hover");let y="";if(i){const u=((v=(f=i.steps)==null?void 0:f[1])==null?void 0:v.styles)||{};y=s.createCssClass({className:`${m}:hover`,styles:{...u,transition:`all ${i.duration}s ${s.camelToKebabCase(i.easing)}`,transitionDelay:i.delay?`${i.delay}s`:"0s"}})||""}return[b,g,x,p,y].join(" ")}}});function E(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const I=s._export_sfc(P,[["render",E]]),Q=o.defineComponent({name:"live-edit-block-styles",components:{InlinedStyles:s._sfc_main},props:["contextProvider","id"],data(){return{TARGET:s.TARGET}},computed:{block(){return _.findBlockById(this.contextProvider.content,this.id)},processedBlock(){var n;const e=this.block;return e?(n=e.repeat)!=null&&n.collection?e:s.getProcessedBlock({block:e,localState:this.contextProvider.localState,rootState:this.contextProvider.rootState,rootSetState:this.contextProvider.rootSetState,context:this.contextProvider.context}):null},canShowBlock(){var e,t,n,l;return s.checkIsDefined((e=this.processedBlock)==null?void 0:e.hide)?!((t=this.processedBlock)!=null&&t.hide):s.checkIsDefined((n=this.processedBlock)==null?void 0:n.show)?(l=this.processedBlock)==null?void 0:l.show:!0},css(){var y,S,h,B,C,f,v,u,T;const e=s.getResponsiveStylesWithImagePosition((y=this.processedBlock)==null?void 0:y.responsiveStyles,((h=(S=this.processedBlock)==null?void 0:S.component)==null?void 0:h.name)==="Image"),t=this.contextProvider.content,n=s.getSizesForBreakpoints(((B=t==null?void 0:t.meta)==null?void 0:B.breakpoints)||{}),l=!!((f=(C=t==null?void 0:t.meta)==null?void 0:C.breakpoints)!=null&&f.xsmall),k=e==null?void 0:e.large,a=e==null?void 0:e.medium,c=e==null?void 0:e.small,d=e==null?void 0:e.xsmall,r=(v=this.processedBlock)==null?void 0:v.id;if(!r)return"";const m=k?s.createCssClass({className:r,styles:k}):"",b=a?s.createCssClass({className:r,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",n)}):"",g=c?s.createCssClass({className:r,styles:c,mediaQuery:s.getMaxWidthQueryForSize("small",n)}):"",x=d&&l?s.createCssClass({className:r,styles:d,mediaQuery:s.getMaxWidthQueryForSize("xsmall",n)}):"",p=this.processedBlock.animations&&this.processedBlock.animations.find($=>$.trigger==="hover");let i="";if(p){const $=((T=(u=p.steps)==null?void 0:u[1])==null?void 0:T.styles)||{};i=s.createCssClass({className:`${r}:hover`,styles:{...$,transition:`all ${p.duration}s ${s.camelToKebabCase(p.easing)}`,transitionDelay:p.delay?`${p.delay}s`:"0s"}})||""}return[m,b,g,x,i].join(" ")}}});function A(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET==="rsc"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.contextProvider.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const R=s._export_sfc(Q,[["render",A]]),W=o.defineComponent({name:"style-wrapper",components:{BlockStyles:I,LiveEditBlockStyles:R},props:["block","context"],data(){return{isClientEditing:!1,isHydrated:!1,TARGET:s.TARGET}},inject:{contextProvider:s.BuilderContext.key},mounted(){}});function z(e,t,n,l,k,a){const c=o.resolveComponent("LiveEditBlockStyles"),d=o.resolveComponent("BlockStyles");return e.isHydrated?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.TARGET==="rsc"&&e.isClientEditing?(o.openBlock(),o.createBlock(c,{key:0,id:e.block.id,contextProvider:e.contextProvider},null,8,["id","contextProvider"])):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))],64)):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))}const w=s._export_sfc(W,[["render",z]]);exports.default=w;
|
|
@@ -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-Mb5Ji_3B.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,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, defineAsyncComponent as a, resolveComponent as c, openBlock as i, createBlock as p, withCtx as s, renderSlot as l } from "vue";
|
|
2
|
-
import { g as m, a as d } from "./get-block-properties-
|
|
3
|
-
import { _ as k } from "./index-
|
|
4
|
-
const u = () => import("./index-
|
|
2
|
+
import { g as m, a as d } from "./get-block-properties-J0RzfSzL.js";
|
|
3
|
+
import { _ as k } from "./index-Rfy62Wro.js";
|
|
4
|
+
const u = () => import("./index-Rfy62Wro.js").then((t) => t.L).then((t) => t.default).catch((t) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-NK3aSNeI.cjs"),a=require("./index-Mb5Ji_3B.cjs"),i=()=>Promise.resolve().then(()=>require("./index-Mb5Ji_3B.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}),s=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(i)},props:["Wrapper","block","context"],data(){return{getBlockActions:r.getBlockActions,getBlockProperties:r.getBlockProperties}}});function l(e,d,m,u,k,y){var o,n;const c=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(c,{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,trackingContext:{apiKey:e.context.apiKey,canTrack:e.context.canTrack??!0,contentId:(o=e.context.content)==null?void 0:o.id,variationId:(n=e.context.content)==null?void 0:n.testVariationId}})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const p=a._export_sfc(s,[["render",l]]);exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-Mb5Ji_3B.cjs"),l=require("./get-block-properties-NK3aSNeI.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-o_usBqsR.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),k=()=>Promise.resolve().then(()=>require("./live-edit-FXVlWLQR.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",e),e}),h=t.defineComponent({name:"interactive-element",components:{LiveEdit:t.defineAsyncComponent(k),Awaiter:t.defineAsyncComponent(u)},props:["wrapperProps","block","includeBlockProps","context","Wrapper"],data(){return{forceRenderCount:0,TARGET:r.TARGET,isEditing:r.isEditing}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{attributes(){var e,o;return this.includeBlockProps?{...l.getBlockProperties({block:this.block,context:this.context}),...l.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context,trackingContext:{apiKey:this.context.apiKey,canTrack:this.context.canTrack??!0,contentId:(e=this.context.content)==null?void 0:e.id,variationId:(o=this.context.content)==null?void 0:o.testVariationId}})}:{}},targetWrapperProps(){return{...this.wrapperProps,...Object.keys(this.attributes).length>0?{attributes:this.attributes}:{}}},onUpdateHook0(){var e,o;return{0:this.wrapperProps,1:(o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options}}}});function b(e,o,a,s,p,c){const i=t.resolveComponent("Awaiter"),n=t.resolveComponent("LiveEdit");return e.Wrapper.load?(t.openBlock(),t.createBlock(i,{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.createElementBlock(t.Fragment,{key:1},[e.TARGET==="rsc"&&e.isEditing()?(t.openBlock(),t.createBlock(n,{key:0,Wrapper:e.Wrapper,id:e.block.id||"",attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["Wrapper","id","attributes"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1,attributes:e.attributes},e.targetWrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))],64))}const d=r._export_sfc(h,[["render",b]]),f=({componentOptions:e,builderBlock:o,context:a,componentRef:s,includeBlockProps:p,isInteractive:c,contextValue:i})=>{const n={...e,...p?{attributes:l.getBlockProperties({block:o,context:i})}:{}};return c?{Wrapper:s,block:o,context:a,wrapperProps:e,includeBlockProps:p}:n},C=t.defineComponent({name:"component-ref",components:{Block:r.Block,InteractiveElement:d},props:["isInteractive","componentRef","blockChildren","componentOptions","builderBlock","context","linkComponent","includeBlockProps","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?r.wrapComponentRef(d):this.componentRef,getWrapperProps:f}},computed:{blockChildrenToRender(){return this.componentRef?this.blockChildren:[]}}});function B(e,o,a,s,p,c){const i=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.blockChildrenToRender,(n,m)=>(t.openBlock(),t.createBlock(i,{key:n.id,block:n,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const v=r._export_sfc(C,[["render",B]]);exports.default=v;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as h, defineAsyncComponent as u, resolveComponent as m, openBlock as o, createBlock as i, withCtx as p, renderSlot as d, createElementBlock as b, Fragment as f, resolveDynamicComponent as C, mergeProps as w, normalizeProps as W, renderList as y, createCommentVNode as B } from "vue";
|
|
2
|
-
import { T as E, i as R, _ as g, B as $, w as A } from "./index-
|
|
3
|
-
import { a as v, g as S } from "./get-block-properties-
|
|
4
|
-
const T = () => import("./awaiter
|
|
2
|
+
import { T as E, i as R, _ as g, B as $, w as A } from "./index-Rfy62Wro.js";
|
|
3
|
+
import { a as v, g as S } from "./get-block-properties-J0RzfSzL.js";
|
|
4
|
+
const T = () => import("./awaiter--AIlZV5A.js").then((t) => t.default).catch((t) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
7
7
|
t
|
|
8
8
|
), t;
|
|
9
|
-
}), I = () => import("./live-edit-
|
|
9
|
+
}), I = () => import("./live-edit-mAeB4Uu2.js").then((t) => t.default).catch((t) => {
|
|
10
10
|
throw console.error(
|
|
11
11
|
"Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",
|
|
12
12
|
t
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RegisteredComponent, RegisteredComponents } from '../../context/types';
|
|
1
|
+
import type { BuilderRenderState, RegisteredComponent, RegisteredComponents } from '../../context/types';
|
|
2
2
|
import type { BuilderContent } from '../../types/builder-content';
|
|
3
3
|
import type { ComponentInfo } from '../../types/components';
|
|
4
4
|
import type { Dictionary, Nullable } from '../../types/typescript';
|
|
@@ -9,3 +9,9 @@ export declare const getRootStateInitialValue: ({ content, data, locale }: Pick<
|
|
|
9
9
|
locale?: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
|
|
12
|
+
/**
|
|
13
|
+
* A state object whose reads and writes go to whatever `getRootState` returns
|
|
14
|
+
* when they happen, for jsCode functions that outlive the root state object
|
|
15
|
+
* they were defined against.
|
|
16
|
+
*/
|
|
17
|
+
export declare const getLiveRootState: (getRootState: () => BuilderRenderState) => BuilderRenderState;
|