@builder.io/sdk-vue 1.0.15 → 1.0.17
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-dr74AFyQ.cjs +1 -0
- package/lib/browser/{block-styles-T4pQN2_K.js → block-styles-yK9PvIJE.js} +6 -5
- package/lib/browser/{block-wrapper-kApw6sWf.js → block-wrapper-Mzf70_-s.js} +3 -3
- package/lib/browser/{block-wrapper-BS6H_HBW.cjs → block-wrapper-vodo6BEY.cjs} +1 -1
- package/lib/browser/{component-ref-J4lTvF63.cjs → component-ref-JK5X2Cn8.cjs} +1 -1
- package/lib/browser/{component-ref-T_Bt-NXH.js → component-ref-fsGJ-juz.js} +2 -2
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -5
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/browser/components/content-variants/helpers.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-7bc31nNM.js → get-block-properties-04KVFete.js} +1 -1
- package/lib/browser/{get-block-properties-WeCTcMri.cjs → get-block-properties-QBbrohqO.cjs} +1 -1
- package/lib/browser/index-5V3_lUTy.cjs +166 -0
- package/lib/browser/{index-4mbHsvBx.js → index-yVjp76JI.js} +88 -82
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-yWT-i8YN.js → repeated-block-B8n_g0WF.js} +2 -2
- package/lib/browser/{repeated-block--q5yqvlb.cjs → repeated-block-MbJ0NXJn.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/block-styles-DZGP-vAk.cjs +1 -0
- package/lib/{node/block-styles-rh7tEoHf.js → edge/block-styles-Dpf99VdC.js} +6 -5
- package/lib/{node/block-wrapper-cEkh_JGR.cjs → edge/block-wrapper-5cv3fE6m.cjs} +1 -1
- package/lib/edge/{block-wrapper-LGqW1WHl.js → block-wrapper-YywVHt-r.js} +3 -3
- package/lib/{node/component-ref-GxIWocaf.js → edge/component-ref-SpgA_nlQ.js} +2 -2
- package/lib/{node/component-ref-4MMqYT0r.cjs → edge/component-ref-TvhX6Iu4.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -5
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/edge/components/content-variants/helpers.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-KmHAHG48.cjs → get-block-properties-0E0mx2E1.cjs} +1 -1
- package/lib/{node/get-block-properties-T27zvZZR.js → edge/get-block-properties-2byCs3FR.js} +1 -1
- package/lib/edge/{index-8bjS2-PR.cjs → index-LFkZHS22.cjs} +12 -12
- package/lib/edge/{index-mgx2v7lM.js → index-iZweifnx.js} +58 -52
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-VTXsyh8q.cjs → repeated-block-1B1_iZSm.cjs} +1 -1
- package/lib/edge/{repeated-block-zDw-Utg9.js → repeated-block-qg4t-RZo.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/block-styles-iTZNdRpZ.cjs +1 -0
- package/lib/{edge/block-styles-LQO3VHOr.js → node/block-styles-osmIZ6Mt.js} +6 -5
- package/lib/node/{block-wrapper-MpN3sYhf.js → block-wrapper-5xqcFiwU.js} +3 -3
- package/lib/{edge/block-wrapper-0vi32HUX.cjs → node/block-wrapper-lfE4G1Gi.cjs} +1 -1
- package/lib/{edge/component-ref-dIn3f0RM.cjs → node/component-ref-QFNi73h1.cjs} +1 -1
- package/lib/{edge/component-ref-Wpu3G6M3.js → node/component-ref-mGwwqC-f.js} +2 -2
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -5
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/node/components/content-variants/helpers.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/get-block-properties-nQPKKZHn.js → node/get-block-properties-6h60UZrR.js} +1 -1
- package/lib/node/{get-block-properties-B5QLQJm5.cjs → get-block-properties-9YmnUYPw.cjs} +1 -1
- package/lib/node/index-8hg8pWTn.cjs +206 -0
- package/lib/node/{index-tdTNLVlt.js → index-wXqz2rFK.js} +59 -53
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-XpohtcNq.js → repeated-block-_XkAOrun.js} +2 -2
- package/lib/node/{repeated-block-8a9KznE-.cjs → repeated-block-aXwTR0DC.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-styles-JdWTcagf.cjs +0 -1
- package/lib/browser/index-Knuxd6qK.cjs +0 -166
- package/lib/edge/block-styles-FE8XgE6h.cjs +0 -1
- package/lib/node/block-styles-f5d_sXFZ.cjs +0 -1
- package/lib/node/index-Oh0XoTAq.cjs +0 -206
|
@@ -2,7 +2,7 @@ var it = Object.defineProperty;
|
|
|
2
2
|
var at = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _ = (e, t, n) => (at(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import "./style.css";
|
|
5
|
-
import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as j, mergeProps as w, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as lt, toDisplayString as X, defineAsyncComponent as
|
|
5
|
+
import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as j, mergeProps as w, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as lt, toDisplayString as X, defineAsyncComponent as z, createVNode as x, renderList as L, createCommentVNode as v, h as Re, createElementVNode as te, normalizeStyle as ne, normalizeClass as Ee, markRaw as ct } from "vue";
|
|
6
6
|
const dt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ut = (e) => typeof e == "string" && dt.has(e.toLowerCase());
|
|
7
7
|
function O(e = {}, t, n) {
|
|
8
8
|
const o = {};
|
|
@@ -591,33 +591,33 @@ const Lt = ({
|
|
|
591
591
|
},
|
|
592
592
|
block: o
|
|
593
593
|
}));
|
|
594
|
-
}, Dt = () => import("./block-styles-
|
|
594
|
+
}, Dt = () => import("./block-styles-yK9PvIJE.js").then((e) => e.default).catch((e) => {
|
|
595
595
|
throw console.error(
|
|
596
596
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
597
597
|
e
|
|
598
598
|
), e;
|
|
599
|
-
}), jt = () => import("./block-wrapper-
|
|
599
|
+
}), jt = () => import("./block-wrapper-Mzf70_-s.js").then((e) => e.default).catch((e) => {
|
|
600
600
|
throw console.error(
|
|
601
601
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
602
602
|
e
|
|
603
603
|
), e;
|
|
604
|
-
}), Ht = () => import("./component-ref-
|
|
604
|
+
}), Ht = () => import("./component-ref-fsGJ-juz.js").then((e) => e.default).catch((e) => {
|
|
605
605
|
throw console.error(
|
|
606
606
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
607
607
|
e
|
|
608
608
|
), e;
|
|
609
|
-
}), Kt = () => import("./repeated-block-
|
|
609
|
+
}), Kt = () => import("./repeated-block-B8n_g0WF.js").then((e) => e.default).catch((e) => {
|
|
610
610
|
throw console.error(
|
|
611
611
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
612
612
|
e
|
|
613
613
|
), e;
|
|
614
|
-
}),
|
|
614
|
+
}), qt = f({
|
|
615
615
|
name: "block",
|
|
616
616
|
components: {
|
|
617
|
-
BlockStyles:
|
|
618
|
-
ComponentRef:
|
|
619
|
-
RepeatedBlock:
|
|
620
|
-
BlockWrapper:
|
|
617
|
+
BlockStyles: z(Dt),
|
|
618
|
+
ComponentRef: z(Ht),
|
|
619
|
+
RepeatedBlock: z(Kt),
|
|
620
|
+
BlockWrapper: z(jt)
|
|
621
621
|
},
|
|
622
622
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
623
623
|
mounted() {
|
|
@@ -694,7 +694,7 @@ const Lt = ({
|
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
|
-
function
|
|
697
|
+
function zt(e, t, n, o, s, r) {
|
|
698
698
|
var d;
|
|
699
699
|
const i = k("block-styles"), a = k("component-ref"), l = k("block", !0), c = k("block-wrapper"), m = k("repeated-block");
|
|
700
700
|
return e.canShowBlock ? (u(), h($, { key: 0 }, [
|
|
@@ -752,7 +752,7 @@ function qt(e, t, n, o, s, r) {
|
|
|
752
752
|
], 64))
|
|
753
753
|
], 64)) : v("", !0);
|
|
754
754
|
}
|
|
755
|
-
const ue = /* @__PURE__ */ y(
|
|
755
|
+
const ue = /* @__PURE__ */ y(qt, [["render", zt]]), tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
756
756
|
__proto__: null,
|
|
757
757
|
default: ue
|
|
758
758
|
}, Symbol.toStringTag, { value: "Module" })), Jt = f({
|
|
@@ -858,7 +858,10 @@ function Xt(e, t, n, o, s, r) {
|
|
|
858
858
|
}
|
|
859
859
|
const Z = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
|
|
860
860
|
render() {
|
|
861
|
-
return Re("style", {
|
|
861
|
+
return Re("style", {
|
|
862
|
+
innerHTML: this.styles,
|
|
863
|
+
"data-id": this.id
|
|
864
|
+
});
|
|
862
865
|
},
|
|
863
866
|
name: "inlined-styles",
|
|
864
867
|
props: ["styles", "id"]
|
|
@@ -1035,6 +1038,7 @@ function en(e, t, n, o, s, r) {
|
|
|
1035
1038
|
}, {}), [
|
|
1036
1039
|
e.TARGET !== "reactNative" ? (u(), g(i, {
|
|
1037
1040
|
key: 0,
|
|
1041
|
+
id: "builderio-columns",
|
|
1038
1042
|
styles: e.columnsStyles
|
|
1039
1043
|
}, null, 8, ["styles"])) : v("", !0),
|
|
1040
1044
|
(u(!0), h($, null, L(e.columns, (c, m) => (u(), g(l, {
|
|
@@ -1066,7 +1070,7 @@ function en(e, t, n, o, s, r) {
|
|
|
1066
1070
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1067
1071
|
], 16);
|
|
1068
1072
|
}
|
|
1069
|
-
const tn = /* @__PURE__ */ y(_t, [["render", en], ["__scopeId", "data-v-
|
|
1073
|
+
const tn = /* @__PURE__ */ y(_t, [["render", en], ["__scopeId", "data-v-4eaba73b"]]), nn = f({
|
|
1070
1074
|
name: "builder-fragment-component",
|
|
1071
1075
|
props: []
|
|
1072
1076
|
});
|
|
@@ -1299,7 +1303,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
|
|
|
1299
1303
|
}).catch((n) => {
|
|
1300
1304
|
T.error("could not store A/B test variation: ", n);
|
|
1301
1305
|
}), t;
|
|
1302
|
-
},
|
|
1306
|
+
}, qe = ({
|
|
1303
1307
|
item: e,
|
|
1304
1308
|
testGroupId: t
|
|
1305
1309
|
}) => {
|
|
@@ -1328,7 +1332,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
|
|
|
1328
1332
|
}) || Ke({
|
|
1329
1333
|
variations: e.variations,
|
|
1330
1334
|
id: e.id
|
|
1331
|
-
}), o =
|
|
1335
|
+
}), o = qe({
|
|
1332
1336
|
item: e,
|
|
1333
1337
|
testGroupId: n
|
|
1334
1338
|
});
|
|
@@ -1347,7 +1351,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
|
|
|
1347
1351
|
}) || Ke({
|
|
1348
1352
|
variations: e.variations,
|
|
1349
1353
|
id: e.id
|
|
1350
|
-
}), s =
|
|
1354
|
+
}), s = qe({
|
|
1351
1355
|
item: e,
|
|
1352
1356
|
testGroupId: o
|
|
1353
1357
|
});
|
|
@@ -1892,15 +1896,15 @@ const jn = /* @__PURE__ */ y(Ln, [["render", Dn]]), Hn = {
|
|
|
1892
1896
|
}
|
|
1893
1897
|
}
|
|
1894
1898
|
}
|
|
1895
|
-
}),
|
|
1896
|
-
function
|
|
1899
|
+
}), qn = ["innerHTML"];
|
|
1900
|
+
function zn(e, t, n, o, s, r) {
|
|
1897
1901
|
return u(), h("div", {
|
|
1898
1902
|
ref: "elementRef",
|
|
1899
1903
|
class: Ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
1900
1904
|
innerHTML: e.code
|
|
1901
|
-
}, null, 10,
|
|
1905
|
+
}, null, 10, qn);
|
|
1902
1906
|
}
|
|
1903
|
-
const Jn = /* @__PURE__ */ y(Kn, [["render",
|
|
1907
|
+
const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
|
|
1904
1908
|
name: "Embed",
|
|
1905
1909
|
static: !0,
|
|
1906
1910
|
inputs: [{
|
|
@@ -2944,7 +2948,7 @@ const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
|
|
|
2944
2948
|
}).join('');
|
|
2945
2949
|
styleEl.innerHTML = newStyleStr;
|
|
2946
2950
|
}
|
|
2947
|
-
}`,
|
|
2951
|
+
}`, qo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2948
2952
|
if (!navigator.cookieEnabled) {
|
|
2949
2953
|
return;
|
|
2950
2954
|
}
|
|
@@ -2978,18 +2982,18 @@ const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
|
|
|
2978
2982
|
thisScriptEl?.remove();
|
|
2979
2983
|
}
|
|
2980
2984
|
return;
|
|
2981
|
-
}`,
|
|
2985
|
+
}`, ze = "builderIoAbTest", Je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2982
2986
|
...t,
|
|
2983
2987
|
testVariationId: t.id,
|
|
2984
2988
|
id: e == null ? void 0 : e.id
|
|
2985
|
-
})),
|
|
2989
|
+
})), zo = ({
|
|
2986
2990
|
canTrack: e,
|
|
2987
2991
|
content: t
|
|
2988
2992
|
}) => !(!(G(t).length > 0) || !e), Jo = (e) => e === "react" || e === "reactNative", Ge = Jo(V), Go = () => `
|
|
2989
|
-
window.${
|
|
2990
|
-
window.${Je} = ${
|
|
2993
|
+
window.${ze} = ${Ko}
|
|
2994
|
+
window.${Je} = ${qo}
|
|
2991
2995
|
`, Yo = (e, t) => `
|
|
2992
|
-
window.${
|
|
2996
|
+
window.${ze}(
|
|
2993
2997
|
"${t}",${JSON.stringify(e)}, ${Ge}
|
|
2994
2998
|
)`, Qo = ({
|
|
2995
2999
|
contentId: e,
|
|
@@ -2998,7 +3002,10 @@ const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
|
|
|
2998
3002
|
"${t}", "${e}", ${Ge}
|
|
2999
3003
|
)`, Ye = f({
|
|
3000
3004
|
render() {
|
|
3001
|
-
return Re("script", {
|
|
3005
|
+
return Re("script", {
|
|
3006
|
+
innerHTML: this.scriptStr,
|
|
3007
|
+
"data-id": this.id
|
|
3008
|
+
});
|
|
3002
3009
|
},
|
|
3003
3010
|
name: "inlined-script",
|
|
3004
3011
|
props: ["scriptStr", "id"]
|
|
@@ -3063,8 +3070,8 @@ const _o = "v3", Se = "builder.", es = "options.", Xe = (e) => {
|
|
|
3063
3070
|
throw new Error("Missing API key");
|
|
3064
3071
|
if (!["v3"].includes(l))
|
|
3065
3072
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
|
|
3066
|
-
const
|
|
3067
|
-
if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(
|
|
3073
|
+
const q = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
|
|
3074
|
+
if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(q)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a), i && C.searchParams.set("enrich", String(i)), C.searchParams.set("omit", m || "meta.componentsUsed"), c && C.searchParams.set("fields", c), Number.isFinite(d) && d > -1 && C.searchParams.set("offset", String(Math.floor(d))), typeof W == "boolean" && C.searchParams.set("includeUnpublished", String(W)), p && ve(p) && C.searchParams.set("cacheSeconds", String(p)), S && ve(S) && C.searchParams.set("staleCacheSeconds", String(S)), b) {
|
|
3068
3075
|
const N = Y({
|
|
3069
3076
|
sort: b
|
|
3070
3077
|
});
|
|
@@ -3320,7 +3327,7 @@ function nt(e, t) {
|
|
|
3320
3327
|
const n = new URL(t.origin), o = n.hostname;
|
|
3321
3328
|
return (e || vs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
|
|
3322
3329
|
}
|
|
3323
|
-
const Cs = "1.0.
|
|
3330
|
+
const Cs = "1.0.17", Ie = {};
|
|
3324
3331
|
function ws(e, t) {
|
|
3325
3332
|
let n = Ie[e];
|
|
3326
3333
|
if (n || (n = Ie[e] = []), n.push(t), I()) {
|
|
@@ -3489,6 +3496,7 @@ const ot = (e = {}) => {
|
|
|
3489
3496
|
return {
|
|
3490
3497
|
ContentWrapper: this.contentWrapper || "div",
|
|
3491
3498
|
httpReqsData: {},
|
|
3499
|
+
httpReqsPending: {},
|
|
3492
3500
|
clicked: !1,
|
|
3493
3501
|
builderContext: oe
|
|
3494
3502
|
};
|
|
@@ -3685,44 +3693,35 @@ const ot = (e = {}) => {
|
|
|
3685
3693
|
}
|
|
3686
3694
|
this.clicked || (this.clicked = !0);
|
|
3687
3695
|
},
|
|
3688
|
-
evalExpression(e) {
|
|
3689
|
-
return e.replace(
|
|
3690
|
-
/{{([^}]+)}}/g,
|
|
3691
|
-
(t, n) => String(
|
|
3692
|
-
Q({
|
|
3693
|
-
code: n,
|
|
3694
|
-
context: this.context || {},
|
|
3695
|
-
localState: void 0,
|
|
3696
|
-
rootState: this.builderContextSignal.rootState,
|
|
3697
|
-
rootSetState: this.builderContextSignal.rootSetState,
|
|
3698
|
-
enableCache: !0
|
|
3699
|
-
})
|
|
3700
|
-
)
|
|
3701
|
-
);
|
|
3702
|
-
},
|
|
3703
|
-
handleRequest({ url: e, key: t }) {
|
|
3704
|
-
Qe(e).then((n) => n.json()).then((n) => {
|
|
3705
|
-
var s, r;
|
|
3706
|
-
const o = {
|
|
3707
|
-
...this.builderContextSignal.rootState,
|
|
3708
|
-
[t]: n
|
|
3709
|
-
};
|
|
3710
|
-
(r = (s = this.builderContextSignal).rootSetState) == null || r.call(s, o), this.httpReqsData[t] = !0;
|
|
3711
|
-
}).catch((n) => {
|
|
3712
|
-
console.error("error fetching dynamic data", e, n);
|
|
3713
|
-
});
|
|
3714
|
-
},
|
|
3715
3696
|
runHttpRequests() {
|
|
3716
3697
|
var t, n;
|
|
3717
3698
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
3718
3699
|
Object.entries(e).forEach(([o, s]) => {
|
|
3719
|
-
if (s
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3700
|
+
if (!s || this.httpReqsPending[o] || this.httpReqsData[o] && !R())
|
|
3701
|
+
return;
|
|
3702
|
+
this.httpReqsPending[o] = !0;
|
|
3703
|
+
const r = s.replace(
|
|
3704
|
+
/{{([^}]+)}}/g,
|
|
3705
|
+
(i, a) => String(
|
|
3706
|
+
Q({
|
|
3707
|
+
code: a,
|
|
3708
|
+
context: this.context || {},
|
|
3709
|
+
localState: void 0,
|
|
3710
|
+
rootState: this.builderContextSignal.rootState,
|
|
3711
|
+
rootSetState: this.builderContextSignal.rootSetState,
|
|
3712
|
+
enableCache: !0
|
|
3713
|
+
})
|
|
3714
|
+
)
|
|
3715
|
+
);
|
|
3716
|
+
Qe(r).then((i) => i.json()).then((i) => {
|
|
3717
|
+
this.mergeNewRootState({
|
|
3718
|
+
[o]: i
|
|
3719
|
+
}), this.httpReqsData[o] = !0;
|
|
3720
|
+
}).catch((i) => {
|
|
3721
|
+
console.error("error fetching dynamic data", s, i);
|
|
3722
|
+
}).finally(() => {
|
|
3723
|
+
this.httpReqsPending[o] = !1;
|
|
3724
|
+
});
|
|
3726
3725
|
});
|
|
3727
3726
|
},
|
|
3728
3727
|
emitStateUpdate() {
|
|
@@ -3872,7 +3871,10 @@ ${xs(this.isNestedRender)}
|
|
|
3872
3871
|
});
|
|
3873
3872
|
function Ws(e, t, n, o, s, r) {
|
|
3874
3873
|
const i = k("inlined-styles");
|
|
3875
|
-
return u(), g(i, {
|
|
3874
|
+
return u(), g(i, {
|
|
3875
|
+
id: "builderio-content",
|
|
3876
|
+
styles: e.injectedStyles
|
|
3877
|
+
}, null, 8, ["styles"]);
|
|
3876
3878
|
}
|
|
3877
3879
|
const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
|
|
3878
3880
|
content: e,
|
|
@@ -4017,10 +4019,11 @@ function Ms(e, t, n, o, s, r) {
|
|
|
4017
4019
|
trustedHosts: e.trustedHosts
|
|
4018
4020
|
}, {}), {
|
|
4019
4021
|
default: B(() => {
|
|
4020
|
-
var m, d, p, S, b, W,
|
|
4022
|
+
var m, d, p, S, b, W, q;
|
|
4021
4023
|
return [
|
|
4022
4024
|
e.isSsrAbTest ? (u(), g(i, {
|
|
4023
4025
|
key: 0,
|
|
4026
|
+
id: "builderio-variant-visibility",
|
|
4024
4027
|
scriptStr: e.scriptStr
|
|
4025
4028
|
}, null, 8, ["scriptStr"])) : v("", !0),
|
|
4026
4029
|
e.TARGET !== "reactNative" ? (u(), g(a, {
|
|
@@ -4031,7 +4034,7 @@ function Ms(e, t, n, o, s, r) {
|
|
|
4031
4034
|
customFonts: (b = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : b.customFonts
|
|
4032
4035
|
}, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
4033
4036
|
x(l, {
|
|
4034
|
-
blocks: (
|
|
4037
|
+
blocks: (q = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : q.blocks,
|
|
4035
4038
|
context: e.builderContextSignal,
|
|
4036
4039
|
registeredComponents: e.registeredComponents,
|
|
4037
4040
|
linkComponent: e.linkComponent
|
|
@@ -4069,12 +4072,12 @@ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), js = f({
|
|
|
4069
4072
|
],
|
|
4070
4073
|
data() {
|
|
4071
4074
|
return {
|
|
4072
|
-
shouldRenderVariants:
|
|
4075
|
+
shouldRenderVariants: zo({
|
|
4073
4076
|
canTrack: H(this.canTrack),
|
|
4074
4077
|
content: this.content
|
|
4075
4078
|
}),
|
|
4076
4079
|
TARGET: V,
|
|
4077
|
-
|
|
4080
|
+
getInitVariantsFnsScriptString: Go,
|
|
4078
4081
|
getVariants: G
|
|
4079
4082
|
};
|
|
4080
4083
|
},
|
|
@@ -4108,23 +4111,26 @@ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), js = f({
|
|
|
4108
4111
|
}
|
|
4109
4112
|
});
|
|
4110
4113
|
function Hs(e, t, n, o, s, r) {
|
|
4111
|
-
var c;
|
|
4112
4114
|
const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
|
|
4113
4115
|
return u(), h($, null, [
|
|
4114
4116
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (u(), g(i, {
|
|
4115
4117
|
key: 0,
|
|
4116
|
-
|
|
4118
|
+
id: "builderio-init-variants-fns",
|
|
4119
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
4117
4120
|
}, null, 8, ["scriptStr"])) : v("", !0),
|
|
4118
4121
|
e.shouldRenderVariants ? (u(), h($, { key: 1 }, [
|
|
4119
4122
|
x(a, {
|
|
4120
|
-
id:
|
|
4123
|
+
id: "builderio-variants",
|
|
4121
4124
|
styles: e.hideVariantsStyleString
|
|
4122
|
-
}, null, 8, ["
|
|
4123
|
-
x(i, {
|
|
4124
|
-
|
|
4125
|
-
|
|
4125
|
+
}, null, 8, ["styles"]),
|
|
4126
|
+
x(i, {
|
|
4127
|
+
id: "builderio-variants-visibility",
|
|
4128
|
+
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4129
|
+
}, null, 8, ["scriptStr"]),
|
|
4130
|
+
(u(!0), h($, null, L(e.getVariants(e.content), (c, m) => (u(), g(l, {
|
|
4131
|
+
key: c.testVariationId,
|
|
4126
4132
|
isNestedRender: e.isNestedRender,
|
|
4127
|
-
content:
|
|
4133
|
+
content: c,
|
|
4128
4134
|
showContent: !1,
|
|
4129
4135
|
model: e.model,
|
|
4130
4136
|
data: e.data,
|
|
@@ -4169,7 +4175,7 @@ function Hs(e, t, n, o, s, r) {
|
|
|
4169
4175
|
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4170
4176
|
], 64);
|
|
4171
4177
|
}
|
|
4172
|
-
const Ks = /* @__PURE__ */ y(js, [["render", Hs]]),
|
|
4178
|
+
const Ks = /* @__PURE__ */ y(js, [["render", Hs]]), qs = async ({
|
|
4173
4179
|
builderContextValue: e,
|
|
4174
4180
|
symbol: t
|
|
4175
4181
|
}) => {
|
|
@@ -4187,7 +4193,7 @@ const Ks = /* @__PURE__ */ y(js, [["render", Hs]]), zs = async ({
|
|
|
4187
4193
|
}).catch((n) => {
|
|
4188
4194
|
T.error("Could not fetch symbol content: ", n);
|
|
4189
4195
|
});
|
|
4190
|
-
},
|
|
4196
|
+
}, zs = f({
|
|
4191
4197
|
name: "builder-symbol",
|
|
4192
4198
|
components: { ContentVariants: Ks },
|
|
4193
4199
|
props: [
|
|
@@ -4232,7 +4238,7 @@ const Ks = /* @__PURE__ */ y(js, [["render", Hs]]), zs = async ({
|
|
|
4232
4238
|
},
|
|
4233
4239
|
methods: {
|
|
4234
4240
|
setContent() {
|
|
4235
|
-
this.contentToUse ||
|
|
4241
|
+
this.contentToUse || qs({
|
|
4236
4242
|
symbol: this.symbol,
|
|
4237
4243
|
builderContextValue: this.builderContext
|
|
4238
4244
|
}).then((e) => {
|
|
@@ -4267,7 +4273,7 @@ function Js(e, t, n, o, s, r) {
|
|
|
4267
4273
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
4268
4274
|
], 16);
|
|
4269
4275
|
}
|
|
4270
|
-
const Gs = /* @__PURE__ */ y(
|
|
4276
|
+
const Gs = /* @__PURE__ */ y(zs, [["render", Js]]), Te = {};
|
|
4271
4277
|
function rr(e) {
|
|
4272
4278
|
if (I()) {
|
|
4273
4279
|
Object.assign(Te, e);
|
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-5V3_lUTy.cjs");exports.Blocks=e.Blocks;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/browser/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { n as t, k as r, C as o, o as i, F as n, I as c, S as g, l as m, m as l, V as u, z as d, r as p, y as C, A as E, D as S, u as f, p as h, q as B, s as b, t as k, x, v as y } from "./index-
|
|
2
|
+
import { n as t, k as r, C as o, o as i, F as n, I as c, S as g, l as m, m as l, V as u, z as d, r as p, y as C, A as E, D as S, u as f, p as h, q as B, s as b, t as k, x, v as y } from "./index-yVjp76JI.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Blocks,
|
|
5
5
|
r as Button,
|
|
@@ -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 c } from "vue";
|
|
3
|
-
import { j as s, e as l } from "./index-
|
|
4
|
-
const i = () => import("./index-
|
|
3
|
+
import { j as s, e as l } from "./index-yVjp76JI.js";
|
|
4
|
+
const i = () => import("./index-yVjp76JI.js").then((o) => o.G).then((o) => o.default).catch((o) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
7
7
|
o
|
|
@@ -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-5V3_lUTy.cjs"),r=()=>Promise.resolve().then(()=>require("./index-5V3_lUTy.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,m,a,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;
|
package/lib/browser/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-1o2kztlxdt6[data-v-b8add99a]{display:flex;flex-direction:column;align-items:stretch}.div-2fnk003dqad[data-v-
|
|
1
|
+
.component-1o2kztlxdt6[data-v-b8add99a]{display:flex;flex-direction:column;align-items:stretch}.div-2fnk003dqad[data-v-4eaba73b]{display:flex;line-height:normal}.img-1be3j8m9ewb[data-v-c23615d2]{opacity:1;transition:opacity .2s ease-in-out}.div-1be3j8m9ewb[data-v-c23615d2]{width:100%;pointer-events:none;font-size:0}.div-1be3j8m9ewb-2[data-v-c23615d2]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-5vz8uirn7sc[data-v-541b06ed]{padding:10px;color:red;text-align:center}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),t=require("./index-LFkZHS22.cjs"),h=s.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{canShowBlock(){const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return t.checkIsDefined(e.hide)?!e.hide:t.checkIsDefined(e.show)?e.show:!0},css(){var d;const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),o=e.responsiveStyles,c=this.context.content,r=t.getSizesForBreakpoints(((d=c==null?void 0:c.meta)==null?void 0:d.breakpoints)||{}),a=o==null?void 0:o.large,i=o==null?void 0:o.medium,n=o==null?void 0:o.small,l=e.id;if(!l)return"";const u=a?t.createCssClass({className:l,styles:a}):"",S=i?t.createCssClass({className:l,styles:i,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",m=n?t.createCssClass({className:l,styles:n,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"";return[u,S,m].join(" ")}}});function k(e,o,c,r,a,i){const n=s.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(s.openBlock(),s.createBlock(n,{key:0,id:"builderio-block",styles:e.css},null,8,["styles"])):s.createCommentVNode("",!0)}const p=t._export_sfc(h,[["render",k]]);exports.default=p;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as
|
|
2
|
-
import { _, T as
|
|
1
|
+
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as b } from "vue";
|
|
2
|
+
import { _ as B, T as _, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-iZweifnx.js";
|
|
3
3
|
const v = k({
|
|
4
4
|
name: "block-styles",
|
|
5
|
-
components: { InlinedStyles:
|
|
5
|
+
components: { InlinedStyles: B },
|
|
6
6
|
props: ["block", "context"],
|
|
7
7
|
data() {
|
|
8
|
-
return { TARGET:
|
|
8
|
+
return { TARGET: _ };
|
|
9
9
|
},
|
|
10
10
|
computed: {
|
|
11
11
|
canShowBlock() {
|
|
@@ -59,8 +59,9 @@ function T(t, e, o, c, a, l) {
|
|
|
59
59
|
const s = y("inlined-styles");
|
|
60
60
|
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (x(), f(s, {
|
|
61
61
|
key: 0,
|
|
62
|
+
id: "builderio-block",
|
|
62
63
|
styles: t.css
|
|
63
|
-
}, null, 8, ["styles"])) :
|
|
64
|
+
}, null, 8, ["styles"])) : b("", !0);
|
|
64
65
|
}
|
|
65
66
|
const E = /* @__PURE__ */ C(v, [["render", T]]);
|
|
66
67
|
export {
|
|
@@ -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-0E0mx2E1.cjs"),n=require("./index-LFkZHS22.cjs"),c=()=>Promise.resolve().then(()=>require("./index-LFkZHS22.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,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 { e as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-2byCs3FR.js";
|
|
3
|
+
import { e as m } from "./index-iZweifnx.js";
|
|
4
|
+
const d = () => import("./index-iZweifnx.js").then((e) => e.E).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,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 { e as f, B as h, w } from "./index-
|
|
3
|
-
import { g as R, a as b } from "./get-block-properties-
|
|
2
|
+
import { e as f, B as h, w } from "./index-iZweifnx.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-2byCs3FR.js";
|
|
4
4
|
const I = m({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -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-LFkZHS22.cjs"),a=require("./get-block-properties-0E0mx2E1.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;
|
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
17
17
|
}>, unknown, {
|
|
18
18
|
ContentWrapper: any;
|
|
19
19
|
httpReqsData: {};
|
|
20
|
+
httpReqsPending: {};
|
|
20
21
|
clicked: boolean;
|
|
21
22
|
builderContext: {
|
|
22
23
|
Builder: {
|
|
@@ -59,11 +60,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
59
60
|
processMessage(event: MessageEvent): void;
|
|
60
61
|
evaluateJsCode(): void;
|
|
61
62
|
onClick(event: any): void;
|
|
62
|
-
evalExpression(expression: string): string;
|
|
63
|
-
handleRequest({ url, key }: {
|
|
64
|
-
key: string;
|
|
65
|
-
url: string;
|
|
66
|
-
}): void;
|
|
67
63
|
runHttpRequests(): void;
|
|
68
64
|
emitStateUpdate(): void;
|
|
69
65
|
elementRef_onIniteditingbldr(event: any): void;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
19
|
}>, unknown, {
|
|
20
20
|
shouldRenderVariants: boolean;
|
|
21
21
|
TARGET: import("../../types/targets.js").Target;
|
|
22
|
-
|
|
22
|
+
getInitVariantsFnsScriptString: () => string;
|
|
23
23
|
getVariants: (content: import("../../helpers/nullable.js").Nullable<import("../../server-index.js").BuilderContent>) => {
|
|
24
24
|
testVariationId: string | undefined;
|
|
25
25
|
id: string | undefined;
|
|
@@ -32,7 +32,7 @@ type VariantData = {
|
|
|
32
32
|
id: string;
|
|
33
33
|
testRatio?: number;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const getInitVariantsFnsScriptString: () => string;
|
|
36
36
|
export declare const getUpdateCookieAndStylesScript: (variants: VariantData[], contentId: string) => string;
|
|
37
37
|
export declare const getUpdateVariantVisibilityScript: ({ contentId, variationId }: {
|
|
38
38
|
variationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.17";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-LFkZHS22.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;
|