@builder.io/sdk-vue 4.0.10 → 4.1.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-_QmjZdDa.cjs → awaiter-Z8G2OoIt.cjs} +1 -1
- package/lib/browser/{awaiter-SGR-8Tyj.js → awaiter-bHhcCAw-.js} +1 -1
- package/lib/browser/{block-styles-GhS2Neb5.cjs → block-styles-4D3dxqsc.cjs} +1 -1
- package/lib/browser/{block-styles-9_PWytNG.js → block-styles-EcElF-2-.js} +1 -1
- package/lib/browser/{block-wrapper-LRJ-a4Yv.cjs → block-wrapper-BphBSU8p.cjs} +1 -1
- package/lib/browser/{block-wrapper-YBBdYoR2.js → block-wrapper-y6shAIfG.js} +3 -3
- package/lib/browser/blocks/img/img.vue.d.ts +3 -1
- package/lib/browser/{component-ref-aowMl_8a.js → component-ref-pdyC0C4W.js} +3 -3
- package/lib/browser/{component-ref-TrZpO6ax.cjs → component-ref-ruzDdcxx.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-ZMO5aCzy.cjs → get-block-properties--_pDaeyi.cjs} +1 -1
- package/lib/browser/{get-block-properties-cWyJs3dm.js → get-block-properties-VN3bVHPk.js} +1 -1
- package/lib/browser/{index-XGOQf5Zo.js → index-HGAItB4u.js} +63 -54
- package/lib/browser/{index-ZOIaGZSB.cjs → index-M8XDYZV0.cjs} +10 -10
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-Hv_GjZAU.js → repeated-block-SZu5_uPp.js} +2 -2
- package/lib/browser/{repeated-block-RF3rdPho.cjs → repeated-block-q0lw0-pY.cjs} +1 -1
- package/lib/edge/{awaiter-8DxOpj9t.js → awaiter-D-JGcApV.js} +1 -1
- package/lib/edge/{awaiter-Jd_e61ZE.cjs → awaiter-F2W7AY8Z.cjs} +1 -1
- package/lib/edge/{block-styles-CBbRK24W.cjs → block-styles-3l9Hduxi.cjs} +1 -1
- package/lib/edge/{block-styles-alNWUQlB.js → block-styles-Zigt4UYf.js} +1 -1
- package/lib/{node/block-wrapper-vSVxY0Wx.js → edge/block-wrapper-2kNtVKeM.js} +3 -3
- package/lib/{node/block-wrapper-jwKlwSSL.cjs → edge/block-wrapper-Bls5leYs.cjs} +1 -1
- package/lib/edge/blocks/img/img.vue.d.ts +3 -1
- package/lib/edge/{component-ref-WcUEBxse.cjs → component-ref-CH_xiCcQ.cjs} +1 -1
- package/lib/{node/component-ref-9vbMmjMt.js → edge/component-ref-u9bVD2Kc.js} +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-BM_LURWO.js → get-block-properties-9o9yHvzD.js} +1 -1
- package/lib/edge/{get-block-properties-fHOkPyWO.cjs → get-block-properties-sOm9X0n9.cjs} +1 -1
- package/lib/edge/{index-ajjjq0JL.cjs → index-IS1IQwNC.cjs} +15 -15
- package/lib/edge/{index-9YK4Me2G.js → index-yOdx5G7s.js} +220 -211
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-8KS-FGzb.cjs → edge/repeated-block-0RgMkM-2.cjs} +1 -1
- package/lib/{node/repeated-block-YIQ1YLOA.js → edge/repeated-block-DoFtUtQg.js} +2 -2
- package/lib/node/{awaiter-zmPuC-98.js → awaiter-SRwmemu4.js} +1 -1
- package/lib/node/{awaiter-oYZdOTCc.cjs → awaiter-_KzRk-u-.cjs} +1 -1
- package/lib/node/{block-styles-Y8npu4LN.cjs → block-styles-SBN_mUQo.cjs} +1 -1
- package/lib/node/{block-styles-jP9_QKN9.js → block-styles-kox1-DtF.js} +1 -1
- package/lib/{edge/block-wrapper-7f07MDcC.cjs → node/block-wrapper-bpKnw_xs.cjs} +1 -1
- package/lib/{edge/block-wrapper-OGrsxDK8.js → node/block-wrapper-w12OzN8B.js} +3 -3
- package/lib/node/blocks/img/img.vue.d.ts +3 -1
- package/lib/node/{component-ref-KhG0RJfO.cjs → component-ref-U9LHJYny.cjs} +1 -1
- package/lib/{edge/component-ref-qiOVFEA2.js → node/component-ref-WED2OrTe.js} +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-ThY3npVI.js → get-block-properties-_vqrrxIy.js} +1 -1
- package/lib/node/{get-block-properties-V4NMvZLg.cjs → get-block-properties-uiECbfRP.cjs} +1 -1
- package/lib/node/{index-ear7pTzY.cjs → index-Cx55tjMN.cjs} +10 -10
- package/lib/node/{index-plSOyo89.js → index-i-g6zKfw.js} +63 -54
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-z91UKOom.cjs → node/repeated-block-4fKSO5gP.cjs} +1 -1
- package/lib/{edge/repeated-block-yuVnH3DH.js → node/repeated-block-ZUQiLiJJ.js} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as _, mergeProps as w, toHandlers as O, withCtx as U, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as
|
|
1
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as _, mergeProps as w, toHandlers as O, withCtx as U, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as ce, defineAsyncComponent as X, createVNode as E, renderList as L, createCommentVNode as C, h as Ke, createElementVNode as z, normalizeStyle as j, normalizeClass as ee, markRaw as Et } from "vue";
|
|
2
2
|
import { T as $, g as Pt, f as At, i as R, s as Bt, r as Vt, p as Nt, a as Wt, l as N, b as qe, c as ke, d as xt, n as ze, e as K, h as P, j as Dt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
3
3
|
const Ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ut = (e) => typeof e == "string" && Ot.has(e.toLowerCase());
|
|
4
4
|
function W(e = {}, t, n) {
|
|
@@ -91,7 +91,7 @@ function Mt(e, t, n, o, r, s) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: U(() => [
|
|
94
|
-
Rt(
|
|
94
|
+
Rt(ce(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
@@ -211,7 +211,7 @@ function Zt(e, ...t) {
|
|
|
211
211
|
delete n[o];
|
|
212
212
|
return n;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
215
215
|
if (e == null || typeof e != "object") {
|
|
216
216
|
t(e, (s) => {
|
|
217
217
|
n !== null && o !== null && (n[o] = s);
|
|
@@ -221,11 +221,11 @@ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
221
221
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((s, i) => {
|
|
222
222
|
t(s, (l) => {
|
|
223
223
|
e[i] = l;
|
|
224
|
-
}),
|
|
224
|
+
}), se(s, t, e, i, r);
|
|
225
225
|
}) : Object.entries(e).forEach(([s, i]) => {
|
|
226
226
|
t(i, (l) => {
|
|
227
227
|
e[s] = l;
|
|
228
|
-
}),
|
|
228
|
+
}), se(i, t, e, s, r);
|
|
229
229
|
}));
|
|
230
230
|
}
|
|
231
231
|
function Qe(e) {
|
|
@@ -235,7 +235,7 @@ function en(e) {
|
|
|
235
235
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
236
236
|
return !1;
|
|
237
237
|
let t = !1;
|
|
238
|
-
return
|
|
238
|
+
return se(e, (n) => {
|
|
239
239
|
if (Qe(n)) {
|
|
240
240
|
t = !0;
|
|
241
241
|
return;
|
|
@@ -243,7 +243,7 @@ function en(e) {
|
|
|
243
243
|
}), t;
|
|
244
244
|
}
|
|
245
245
|
function tn(e, t) {
|
|
246
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
246
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (se(e, (n, o) => {
|
|
247
247
|
Qe(n) && o(n[t] ?? void 0);
|
|
248
248
|
}), e);
|
|
249
249
|
}
|
|
@@ -333,17 +333,17 @@ function Te(e) {
|
|
|
333
333
|
}
|
|
334
334
|
const ln = (e) => ({
|
|
335
335
|
type: "builder.registerComponent",
|
|
336
|
-
data:
|
|
336
|
+
data: ae(e)
|
|
337
337
|
}), cn = (e) => {
|
|
338
338
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
339
339
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
340
340
|
};
|
|
341
|
-
function
|
|
341
|
+
function ae(e) {
|
|
342
342
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? cn(n) : n));
|
|
343
343
|
}
|
|
344
344
|
const Ne = {};
|
|
345
345
|
function dn(e, t) {
|
|
346
|
-
e === "plugin" && (t =
|
|
346
|
+
e === "plugin" && (t = ae(t));
|
|
347
347
|
let n = Ne[e];
|
|
348
348
|
if (n || (n = Ne[e] = []), n.push(t), R()) {
|
|
349
349
|
const o = {
|
|
@@ -386,7 +386,7 @@ const xe = "builder.", un = "options.", Ye = (e) => {
|
|
|
386
386
|
return {};
|
|
387
387
|
const e = new URLSearchParams(window.location.search);
|
|
388
388
|
return Ye(e);
|
|
389
|
-
}, Xe = "4.
|
|
389
|
+
}, Xe = "4.1.1", _e = () => ({
|
|
390
390
|
"X-Builder-SDK": $,
|
|
391
391
|
"X-Builder-SDK-GEN": "2",
|
|
392
392
|
"X-Builder-SDK-Version": Xe
|
|
@@ -395,7 +395,7 @@ const xe = "builder.", un = "options.", Ye = (e) => {
|
|
|
395
395
|
return e;
|
|
396
396
|
const t = e.split(".");
|
|
397
397
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
398
|
-
},
|
|
398
|
+
}, de = ({
|
|
399
399
|
name: e,
|
|
400
400
|
canTrack: t
|
|
401
401
|
}) => {
|
|
@@ -406,7 +406,7 @@ const xe = "builder.", un = "options.", Ye = (e) => {
|
|
|
406
406
|
N.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
|
-
}, Ze = async (e) =>
|
|
409
|
+
}, Ze = async (e) => de(e), hn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), fn = [["secure", ""], ["SameSite", "None"]], bn = ({
|
|
410
410
|
name: e,
|
|
411
411
|
value: t,
|
|
412
412
|
expires: n
|
|
@@ -747,7 +747,7 @@ const it = (e) => {
|
|
|
747
747
|
canTrack: !0
|
|
748
748
|
}), Vn = ({
|
|
749
749
|
contentId: e
|
|
750
|
-
}) =>
|
|
750
|
+
}) => de({
|
|
751
751
|
name: $e(e),
|
|
752
752
|
canTrack: !0
|
|
753
753
|
}), Nn = ({
|
|
@@ -854,7 +854,7 @@ function Ue() {
|
|
|
854
854
|
}), t.forEach((r) => r(o));
|
|
855
855
|
},
|
|
856
856
|
getUserAttributes() {
|
|
857
|
-
return R() ? JSON.parse(
|
|
857
|
+
return R() ? JSON.parse(de({
|
|
858
858
|
name: Oe,
|
|
859
859
|
canTrack: e
|
|
860
860
|
}) || "{}") : {};
|
|
@@ -873,11 +873,11 @@ function Ue() {
|
|
|
873
873
|
}
|
|
874
874
|
let ve;
|
|
875
875
|
R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ue()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Ue();
|
|
876
|
-
const
|
|
877
|
-
|
|
876
|
+
const le = ve, Ss = (e) => {
|
|
877
|
+
le.setUserAttributes(e);
|
|
878
878
|
}, J = (e) => {
|
|
879
879
|
const t = K(e) ? e : !0;
|
|
880
|
-
return
|
|
880
|
+
return le.setCanTrack(t), t;
|
|
881
881
|
};
|
|
882
882
|
function On() {
|
|
883
883
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
@@ -1272,22 +1272,22 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1272
1272
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1273
1273
|
e
|
|
1274
1274
|
), e;
|
|
1275
|
-
}), lo = () => import("./block-styles-
|
|
1275
|
+
}), lo = () => import("./block-styles-kox1-DtF.js").then((e) => e.default).catch((e) => {
|
|
1276
1276
|
throw console.error(
|
|
1277
1277
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1278
1278
|
e
|
|
1279
1279
|
), e;
|
|
1280
|
-
}), co = () => import("./block-wrapper-
|
|
1280
|
+
}), co = () => import("./block-wrapper-w12OzN8B.js").then((e) => e.default).catch((e) => {
|
|
1281
1281
|
throw console.error(
|
|
1282
1282
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1283
1283
|
e
|
|
1284
1284
|
), e;
|
|
1285
|
-
}), uo = () => import("./component-ref-
|
|
1285
|
+
}), uo = () => import("./component-ref-WED2OrTe.js").then((e) => e.default).catch((e) => {
|
|
1286
1286
|
throw console.error(
|
|
1287
1287
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1288
1288
|
e
|
|
1289
1289
|
), e;
|
|
1290
|
-
}), po = () => import("./repeated-block-
|
|
1290
|
+
}), po = () => import("./repeated-block-ZUQiLiJJ.js").then((e) => e.default).catch((e) => {
|
|
1291
1291
|
throw console.error(
|
|
1292
1292
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1293
1293
|
e
|
|
@@ -1601,7 +1601,7 @@ function ko(e, t, n, o, r, s) {
|
|
|
1601
1601
|
const ne = /* @__PURE__ */ v(So, [["render", ko]]), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1602
1602
|
__proto__: null,
|
|
1603
1603
|
default: ne
|
|
1604
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1604
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = y({
|
|
1605
1605
|
render() {
|
|
1606
1606
|
return Ke("style", {
|
|
1607
1607
|
innerHTML: this.styles,
|
|
@@ -1673,7 +1673,7 @@ const ne = /* @__PURE__ */ v(So, [["render", ko]]), Co = /* @__PURE__ */ Object.
|
|
|
1673
1673
|
}, Io = (e) => `builder-columns ${e}-breakpoints`, wo = y({
|
|
1674
1674
|
name: "builder-columns",
|
|
1675
1675
|
components: {
|
|
1676
|
-
InlinedStyles:
|
|
1676
|
+
InlinedStyles: ue,
|
|
1677
1677
|
DynamicRenderer: Ce,
|
|
1678
1678
|
Blocks: q,
|
|
1679
1679
|
DynamicDiv: ne
|
|
@@ -1876,7 +1876,7 @@ function Vo(e, t) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
return null;
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function oe(e) {
|
|
1880
1880
|
if (!e)
|
|
1881
1881
|
return e;
|
|
1882
1882
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -1917,10 +1917,10 @@ const No = y({
|
|
|
1917
1917
|
if (!this.noWebp) {
|
|
1918
1918
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1919
1919
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1920
|
-
return console.debug("Removed given srcset"),
|
|
1920
|
+
return console.debug("Removed given srcset"), oe(t);
|
|
1921
1921
|
} else if (this.image && !this.srcset)
|
|
1922
|
-
return
|
|
1923
|
-
return
|
|
1922
|
+
return oe(t);
|
|
1923
|
+
return oe(t);
|
|
1924
1924
|
}
|
|
1925
1925
|
},
|
|
1926
1926
|
webpSrcSet() {
|
|
@@ -2227,7 +2227,7 @@ const jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2227
2227
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2228
2228
|
}
|
|
2229
2229
|
}
|
|
2230
|
-
}`,
|
|
2230
|
+
}`, re = "default", zo = "filterWithCustomTargeting", vt = "builderIoPersonalization", St = "updateVisibilityStylesScript", kt = ["react", "vue", "svelte", "qwik"], Ct = ["vue", "svelte", "qwik"];
|
|
2231
2231
|
function Go(e, t) {
|
|
2232
2232
|
return !(e && e.length > 0) || !t ? !1 : Ct.includes($) ? !0 : !R();
|
|
2233
2233
|
}
|
|
@@ -2241,7 +2241,7 @@ function Jo({
|
|
|
2241
2241
|
const s = {
|
|
2242
2242
|
blocks: r ?? [],
|
|
2243
2243
|
path: "this.children",
|
|
2244
|
-
index:
|
|
2244
|
+
index: re
|
|
2245
2245
|
};
|
|
2246
2246
|
if (n && P()) {
|
|
2247
2247
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2949,7 +2949,7 @@ const or = /* @__PURE__ */ v(er, [["render", nr]]), rr = {
|
|
|
2949
2949
|
name: "builder-personalization-container",
|
|
2950
2950
|
components: {
|
|
2951
2951
|
Blocks: q,
|
|
2952
|
-
InlinedStyles:
|
|
2952
|
+
InlinedStyles: ue,
|
|
2953
2953
|
InlinedScript: Be
|
|
2954
2954
|
},
|
|
2955
2955
|
props: [
|
|
@@ -2963,7 +2963,7 @@ const or = /* @__PURE__ */ v(er, [["render", nr]]), rr = {
|
|
|
2963
2963
|
data() {
|
|
2964
2964
|
var e, t, n, o, r, s, i;
|
|
2965
2965
|
return {
|
|
2966
|
-
userAttributes:
|
|
2966
|
+
userAttributes: le.getUserAttributes(),
|
|
2967
2967
|
scriptStr: Yo(
|
|
2968
2968
|
this.variants,
|
|
2969
2969
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
@@ -2981,14 +2981,14 @@ const or = /* @__PURE__ */ v(er, [["render", nr]]), rr = {
|
|
|
2981
2981
|
),
|
|
2982
2982
|
shouldResetVariants: !1,
|
|
2983
2983
|
TARGET: $,
|
|
2984
|
-
DEFAULT_INDEX:
|
|
2984
|
+
DEFAULT_INDEX: re,
|
|
2985
2985
|
SDKS_REQUIRING_RESET_APPROACH: Ct
|
|
2986
2986
|
};
|
|
2987
2987
|
},
|
|
2988
2988
|
mounted() {
|
|
2989
2989
|
var t;
|
|
2990
2990
|
this.shouldResetVariants = !0;
|
|
2991
|
-
const e =
|
|
2991
|
+
const e = le.subscribeOnUserAttributesChange(
|
|
2992
2992
|
(n) => {
|
|
2993
2993
|
this.userAttributes = n;
|
|
2994
2994
|
},
|
|
@@ -3001,7 +3001,7 @@ const or = /* @__PURE__ */ v(er, [["render", nr]]), rr = {
|
|
|
3001
3001
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3002
3002
|
new CustomEvent("builder.variantLoaded", {
|
|
3003
3003
|
detail: {
|
|
3004
|
-
variant: n ||
|
|
3004
|
+
variant: n || re,
|
|
3005
3005
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3006
3006
|
},
|
|
3007
3007
|
bubbles: !0
|
|
@@ -3012,7 +3012,7 @@ const or = /* @__PURE__ */ v(er, [["render", nr]]), rr = {
|
|
|
3012
3012
|
s.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3013
3013
|
new CustomEvent("builder.variantDisplayed", {
|
|
3014
3014
|
detail: {
|
|
3015
|
-
variant: n ||
|
|
3015
|
+
variant: n || re,
|
|
3016
3016
|
content: (i = this.builderContext) == null ? void 0 : i.content
|
|
3017
3017
|
},
|
|
3018
3018
|
bubbles: !0
|
|
@@ -4110,7 +4110,7 @@ function Jr(e, t, n, o, r, s) {
|
|
|
4110
4110
|
blocks: e.sendingMessage,
|
|
4111
4111
|
context: e.builderContext
|
|
4112
4112
|
}, null, 8, ["blocks", "context"])) : C("", !0),
|
|
4113
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Gr,
|
|
4113
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Gr, ce(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
|
|
4114
4114
|
e.submissionState() === "success" ? (d(), S(i, {
|
|
4115
4115
|
key: 3,
|
|
4116
4116
|
path: "successMessage",
|
|
@@ -4256,7 +4256,7 @@ function ii(e, t, n, o, r, s) {
|
|
|
4256
4256
|
(d(!0), h(I, null, L(e.options, (i, a) => (d(), h("option", {
|
|
4257
4257
|
key: `${i.name}-${a}`,
|
|
4258
4258
|
value: i.value
|
|
4259
|
-
},
|
|
4259
|
+
}, ce(i.name || i.value), 9, ri))), 128))
|
|
4260
4260
|
], 16, oi);
|
|
4261
4261
|
}
|
|
4262
4262
|
const si = /* @__PURE__ */ v(ni, [["render", ii]]), ai = {
|
|
@@ -4292,7 +4292,7 @@ const si = /* @__PURE__ */ v(ni, [["render", ii]]), ai = {
|
|
|
4292
4292
|
}
|
|
4293
4293
|
});
|
|
4294
4294
|
function ci(e, t, n, o, r, s) {
|
|
4295
|
-
return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
4295
|
+
return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17);
|
|
4296
4296
|
}
|
|
4297
4297
|
const di = /* @__PURE__ */ v(li, [["render", ci]]), ui = {
|
|
4298
4298
|
name: "Form:TextArea",
|
|
@@ -4370,26 +4370,35 @@ const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
|
|
|
4370
4370
|
}, gi = y({
|
|
4371
4371
|
name: "builder-img-component",
|
|
4372
4372
|
props: [
|
|
4373
|
+
"imgSrc",
|
|
4374
|
+
"image",
|
|
4373
4375
|
"backgroundSize",
|
|
4374
4376
|
"backgroundPosition",
|
|
4375
|
-
"imgSrc",
|
|
4376
4377
|
"altText",
|
|
4377
|
-
"image",
|
|
4378
4378
|
"attributes"
|
|
4379
4379
|
],
|
|
4380
4380
|
data() {
|
|
4381
4381
|
return { isEditing: P, filterAttrs: W };
|
|
4382
|
+
},
|
|
4383
|
+
computed: {
|
|
4384
|
+
srcSetToUse() {
|
|
4385
|
+
const e = this.imgSrc || this.image;
|
|
4386
|
+
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4387
|
+
return oe(e);
|
|
4388
|
+
}
|
|
4382
4389
|
}
|
|
4383
|
-
}), yi = ["alt", "src"];
|
|
4390
|
+
}), yi = ["alt", "src", "srcSet"];
|
|
4384
4391
|
function vi(e, t, n, o, r, s) {
|
|
4385
4392
|
return d(), h("img", w({
|
|
4393
|
+
loading: "lazy",
|
|
4386
4394
|
style: {
|
|
4387
4395
|
objectFit: e.backgroundSize || "cover",
|
|
4388
4396
|
objectPosition: e.backgroundPosition || "center"
|
|
4389
4397
|
},
|
|
4390
4398
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4391
4399
|
alt: e.altText,
|
|
4392
|
-
src: e.imgSrc || e.image
|
|
4400
|
+
src: e.imgSrc || e.image,
|
|
4401
|
+
srcSet: e.srcSetToUse
|
|
4393
4402
|
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, yi);
|
|
4394
4403
|
}
|
|
4395
4404
|
const Si = /* @__PURE__ */ v(gi, [["render", vi]]), ki = {
|
|
@@ -4773,14 +4782,14 @@ const Ei = /* @__PURE__ */ v(Ci, [["render", Ri]]), Pi = () => [{
|
|
|
4773
4782
|
thisScriptEl?.remove();
|
|
4774
4783
|
}
|
|
4775
4784
|
return;
|
|
4776
|
-
}`, It = "builderIoAbTest", wt = "builderIoRenderContent",
|
|
4785
|
+
}`, It = "builderIoAbTest", wt = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4777
4786
|
...t,
|
|
4778
4787
|
testVariationId: t.id,
|
|
4779
4788
|
id: e == null ? void 0 : e.id
|
|
4780
4789
|
})), Vi = ({
|
|
4781
4790
|
canTrack: e,
|
|
4782
4791
|
content: t
|
|
4783
|
-
}) => !(!(
|
|
4792
|
+
}) => !(!(ie(t).length > 0) || !e), Ni = (e) => e === "react" || e === "reactNative", Wi = $ === "angular", $t = Ni($), xi = () => `
|
|
4784
4793
|
window.${It} = ${Ai}
|
|
4785
4794
|
window.${wt} = ${Bi}
|
|
4786
4795
|
`, Di = (e, t) => `
|
|
@@ -4932,7 +4941,7 @@ font-weight: ${i};
|
|
|
4932
4941
|
P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4933
4942
|
new CustomEvent("initeditingbldr")
|
|
4934
4943
|
);
|
|
4935
|
-
const o = this.builderContextSignal.content && J(this.canTrack), r =
|
|
4944
|
+
const o = this.builderContextSignal.content && J(this.canTrack), r = de({
|
|
4936
4945
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4937
4946
|
canTrack: !0
|
|
4938
4947
|
}), s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
@@ -5197,7 +5206,7 @@ function Yi(e, t, n, o, r, s) {
|
|
|
5197
5206
|
}
|
|
5198
5207
|
const Xi = /* @__PURE__ */ v(Qi, [["render", Yi]]), _i = y({
|
|
5199
5208
|
name: "content-styles",
|
|
5200
|
-
components: { InlinedStyles:
|
|
5209
|
+
components: { InlinedStyles: ue },
|
|
5201
5210
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5202
5211
|
data() {
|
|
5203
5212
|
return {
|
|
@@ -5298,7 +5307,7 @@ const es = /* @__PURE__ */ v(_i, [["render", Zi]]), ts = ({
|
|
|
5298
5307
|
...n,
|
|
5299
5308
|
[r.name]: {
|
|
5300
5309
|
component: os(o),
|
|
5301
|
-
...
|
|
5310
|
+
...ae(r)
|
|
5302
5311
|
}
|
|
5303
5312
|
}),
|
|
5304
5313
|
{}
|
|
@@ -5325,7 +5334,7 @@ const es = /* @__PURE__ */ v(_i, [["render", Zi]]), ts = ({
|
|
|
5325
5334
|
].reduce(
|
|
5326
5335
|
(n, { component: o, ...r }) => ({
|
|
5327
5336
|
...n,
|
|
5328
|
-
[r.name]:
|
|
5337
|
+
[r.name]: ae(r)
|
|
5329
5338
|
}),
|
|
5330
5339
|
{}
|
|
5331
5340
|
),
|
|
@@ -5421,7 +5430,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = y({
|
|
|
5421
5430
|
name: "content-variants",
|
|
5422
5431
|
components: {
|
|
5423
5432
|
InlinedScript: Be,
|
|
5424
|
-
InlinedStyles:
|
|
5433
|
+
InlinedStyles: ue,
|
|
5425
5434
|
ContentComponent: ss
|
|
5426
5435
|
},
|
|
5427
5436
|
props: [
|
|
@@ -5455,7 +5464,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = y({
|
|
|
5455
5464
|
getInitPersonalizationVariantsFnsScriptString: Qo,
|
|
5456
5465
|
TARGET: $,
|
|
5457
5466
|
getInitVariantsFnsScriptString: xi,
|
|
5458
|
-
getVariants:
|
|
5467
|
+
getVariants: ie
|
|
5459
5468
|
};
|
|
5460
5469
|
},
|
|
5461
5470
|
mounted() {
|
|
@@ -5464,7 +5473,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = y({
|
|
|
5464
5473
|
updateCookieAndStylesScriptStr() {
|
|
5465
5474
|
var e;
|
|
5466
5475
|
return Di(
|
|
5467
|
-
|
|
5476
|
+
ie(this.content).map((t) => ({
|
|
5468
5477
|
id: t.testVariationId,
|
|
5469
5478
|
testRatio: t.testRatio
|
|
5470
5479
|
})),
|
|
@@ -5472,7 +5481,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = y({
|
|
|
5472
5481
|
);
|
|
5473
5482
|
},
|
|
5474
5483
|
hideVariantsStyleString() {
|
|
5475
|
-
return
|
|
5484
|
+
return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5476
5485
|
},
|
|
5477
5486
|
defaultContent() {
|
|
5478
5487
|
var e;
|
|
@@ -5688,7 +5697,7 @@ export {
|
|
|
5688
5697
|
Ho as S,
|
|
5689
5698
|
Pr as T,
|
|
5690
5699
|
Ei as V,
|
|
5691
|
-
|
|
5700
|
+
ue as _,
|
|
5692
5701
|
ws as a,
|
|
5693
5702
|
Pe as b,
|
|
5694
5703
|
Cs as c,
|
package/lib/node/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-Cx55tjMN.cjs"),t=require("./should-force-browser-runtime-in-node-1vTKsoso.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.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setClientUserAttributes=e.setClientUserAttributes;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;exports.isEditing=t.isEditing;
|
package/lib/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as t, i as a, j as r, C as i, m as o, F as n, I as c, S as g, k as l, T as m, V as u, x as d, o as C, v as p, y as f, z as h, q as x, n as B, r as E, s as S, p as b, u as k, t as y } from "./index-
|
|
1
|
+
import { l as t, i as a, j as r, C as i, m as o, F as n, I as c, S as g, k as l, T as m, V as u, x as d, o as C, v as p, y as f, z as h, q as x, n as B, r as E, s as S, p as b, u as k, t as y } from "./index-i-g6zKfw.js";
|
|
2
2
|
import { h as T } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Blocks,
|
|
@@ -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-Cx55tjMN.cjs"),r=()=>Promise.resolve().then(()=>require("./index-Cx55tjMN.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 { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as s } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const a = () => import("./index-
|
|
2
|
+
import { i as c, d as i } from "./index-i-g6zKfw.js";
|
|
3
|
+
const a = () => import("./index-i-g6zKfw.js").then((e) => e.D).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
|