@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
|
@@ -3063,22 +3063,22 @@ const Ti = ({
|
|
|
3063
3063
|
},
|
|
3064
3064
|
block: r
|
|
3065
3065
|
}));
|
|
3066
|
-
}, Ri = () => import("./block-styles-
|
|
3066
|
+
}, Ri = () => import("./block-styles-Dpf99VdC.js").then((e) => e.default).catch((e) => {
|
|
3067
3067
|
throw console.error(
|
|
3068
3068
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3069
3069
|
e
|
|
3070
3070
|
), e;
|
|
3071
|
-
}), Ai = () => import("./block-wrapper-
|
|
3071
|
+
}), Ai = () => import("./block-wrapper-YywVHt-r.js").then((e) => e.default).catch((e) => {
|
|
3072
3072
|
throw console.error(
|
|
3073
3073
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3074
3074
|
e
|
|
3075
3075
|
), e;
|
|
3076
|
-
}), $i = () => import("./component-ref-
|
|
3076
|
+
}), $i = () => import("./component-ref-SpgA_nlQ.js").then((e) => e.default).catch((e) => {
|
|
3077
3077
|
throw console.error(
|
|
3078
3078
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3079
3079
|
e
|
|
3080
3080
|
), e;
|
|
3081
|
-
}), Pi = () => import("./repeated-block-
|
|
3081
|
+
}), Pi = () => import("./repeated-block-qg4t-RZo.js").then((e) => e.default).catch((e) => {
|
|
3082
3082
|
throw console.error(
|
|
3083
3083
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3084
3084
|
e
|
|
@@ -3330,7 +3330,10 @@ function Ui(e, t, n, r, o, i) {
|
|
|
3330
3330
|
}
|
|
3331
3331
|
const Ot = /* @__PURE__ */ V(Mi, [["render", Ui]]), On = N({
|
|
3332
3332
|
render() {
|
|
3333
|
-
return Ar("style", {
|
|
3333
|
+
return Ar("style", {
|
|
3334
|
+
innerHTML: this.styles,
|
|
3335
|
+
"data-id": this.id
|
|
3336
|
+
});
|
|
3334
3337
|
},
|
|
3335
3338
|
name: "inlined-styles",
|
|
3336
3339
|
props: ["styles", "id"]
|
|
@@ -3507,6 +3510,7 @@ function Di(e, t, n, r, o, i) {
|
|
|
3507
3510
|
}, {}), [
|
|
3508
3511
|
e.TARGET !== "reactNative" ? (v(), B(a, {
|
|
3509
3512
|
key: 0,
|
|
3513
|
+
id: "builderio-columns",
|
|
3510
3514
|
styles: e.columnsStyles
|
|
3511
3515
|
}, null, 8, ["styles"])) : D("", !0),
|
|
3512
3516
|
(v(!0), $(re, null, Ve(e.columns, (m, y) => (v(), B(d, {
|
|
@@ -3538,7 +3542,7 @@ function Di(e, t, n, r, o, i) {
|
|
|
3538
3542
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
3539
3543
|
], 16);
|
|
3540
3544
|
}
|
|
3541
|
-
const Li = /* @__PURE__ */ V(Wi, [["render", Di], ["__scopeId", "data-v-
|
|
3545
|
+
const Li = /* @__PURE__ */ V(Wi, [["render", Di], ["__scopeId", "data-v-4eaba73b"]]), Hi = N({
|
|
3542
3546
|
name: "builder-fragment-component",
|
|
3543
3547
|
props: []
|
|
3544
3548
|
});
|
|
@@ -5470,7 +5474,10 @@ const Ea = /* @__PURE__ */ V(ya, [["render", wa]]), Ia = () => [{
|
|
|
5470
5474
|
"${t}", "${e}", ${to}
|
|
5471
5475
|
)`, no = N({
|
|
5472
5476
|
render() {
|
|
5473
|
-
return Ar("script", {
|
|
5477
|
+
return Ar("script", {
|
|
5478
|
+
innerHTML: this.scriptStr,
|
|
5479
|
+
"data-id": this.id
|
|
5480
|
+
});
|
|
5474
5481
|
},
|
|
5475
5482
|
name: "inlined-script",
|
|
5476
5483
|
props: ["scriptStr", "id"]
|
|
@@ -5792,7 +5799,7 @@ function uo(e, t) {
|
|
|
5792
5799
|
const n = new URL(t.origin), r = n.hostname;
|
|
5793
5800
|
return (e || sl).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
5794
5801
|
}
|
|
5795
|
-
const al = "1.0.
|
|
5802
|
+
const al = "1.0.17", Tr = {};
|
|
5796
5803
|
function ll(e, t) {
|
|
5797
5804
|
let n = Tr[e];
|
|
5798
5805
|
if (n || (n = Tr[e] = []), n.push(t), X()) {
|
|
@@ -5961,6 +5968,7 @@ const co = (e = {}) => {
|
|
|
5961
5968
|
return {
|
|
5962
5969
|
ContentWrapper: this.contentWrapper || "div",
|
|
5963
5970
|
httpReqsData: {},
|
|
5971
|
+
httpReqsPending: {},
|
|
5964
5972
|
clicked: !1,
|
|
5965
5973
|
builderContext: un
|
|
5966
5974
|
};
|
|
@@ -6157,44 +6165,35 @@ const co = (e = {}) => {
|
|
|
6157
6165
|
}
|
|
6158
6166
|
this.clicked || (this.clicked = !0);
|
|
6159
6167
|
},
|
|
6160
|
-
evalExpression(e) {
|
|
6161
|
-
return e.replace(
|
|
6162
|
-
/{{([^}]+)}}/g,
|
|
6163
|
-
(t, n) => String(
|
|
6164
|
-
At({
|
|
6165
|
-
code: n,
|
|
6166
|
-
context: this.context || {},
|
|
6167
|
-
localState: void 0,
|
|
6168
|
-
rootState: this.builderContextSignal.rootState,
|
|
6169
|
-
rootSetState: this.builderContextSignal.rootSetState,
|
|
6170
|
-
enableCache: !0
|
|
6171
|
-
})
|
|
6172
|
-
)
|
|
6173
|
-
);
|
|
6174
|
-
},
|
|
6175
|
-
handleRequest({ url: e, key: t }) {
|
|
6176
|
-
ro(e).then((n) => n.json()).then((n) => {
|
|
6177
|
-
var o, i;
|
|
6178
|
-
const r = {
|
|
6179
|
-
...this.builderContextSignal.rootState,
|
|
6180
|
-
[t]: n
|
|
6181
|
-
};
|
|
6182
|
-
(i = (o = this.builderContextSignal).rootSetState) == null || i.call(o, r), this.httpReqsData[t] = !0;
|
|
6183
|
-
}).catch((n) => {
|
|
6184
|
-
console.error("error fetching dynamic data", e, n);
|
|
6185
|
-
});
|
|
6186
|
-
},
|
|
6187
6168
|
runHttpRequests() {
|
|
6188
6169
|
var t, n;
|
|
6189
6170
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
6190
6171
|
Object.entries(e).forEach(([r, o]) => {
|
|
6191
|
-
if (o
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6172
|
+
if (!o || this.httpReqsPending[r] || this.httpReqsData[r] && !ie())
|
|
6173
|
+
return;
|
|
6174
|
+
this.httpReqsPending[r] = !0;
|
|
6175
|
+
const i = o.replace(
|
|
6176
|
+
/{{([^}]+)}}/g,
|
|
6177
|
+
(a, u) => String(
|
|
6178
|
+
At({
|
|
6179
|
+
code: u,
|
|
6180
|
+
context: this.context || {},
|
|
6181
|
+
localState: void 0,
|
|
6182
|
+
rootState: this.builderContextSignal.rootState,
|
|
6183
|
+
rootSetState: this.builderContextSignal.rootSetState,
|
|
6184
|
+
enableCache: !0
|
|
6185
|
+
})
|
|
6186
|
+
)
|
|
6187
|
+
);
|
|
6188
|
+
ro(i).then((a) => a.json()).then((a) => {
|
|
6189
|
+
this.mergeNewRootState({
|
|
6190
|
+
[r]: a
|
|
6191
|
+
}), this.httpReqsData[r] = !0;
|
|
6192
|
+
}).catch((a) => {
|
|
6193
|
+
console.error("error fetching dynamic data", o, a);
|
|
6194
|
+
}).finally(() => {
|
|
6195
|
+
this.httpReqsPending[r] = !1;
|
|
6196
|
+
});
|
|
6198
6197
|
});
|
|
6199
6198
|
},
|
|
6200
6199
|
emitStateUpdate() {
|
|
@@ -6344,7 +6343,10 @@ ${yl(this.isNestedRender)}
|
|
|
6344
6343
|
});
|
|
6345
6344
|
function bl(e, t, n, r, o, i) {
|
|
6346
6345
|
const a = U("inlined-styles");
|
|
6347
|
-
return v(), B(a, {
|
|
6346
|
+
return v(), B(a, {
|
|
6347
|
+
id: "builderio-content",
|
|
6348
|
+
styles: e.injectedStyles
|
|
6349
|
+
}, null, 8, ["styles"]);
|
|
6348
6350
|
}
|
|
6349
6351
|
const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
6350
6352
|
content: e,
|
|
@@ -6493,6 +6495,7 @@ function Il(e, t, n, r, o, i) {
|
|
|
6493
6495
|
return [
|
|
6494
6496
|
e.isSsrAbTest ? (v(), B(a, {
|
|
6495
6497
|
key: 0,
|
|
6498
|
+
id: "builderio-variant-visibility",
|
|
6496
6499
|
scriptStr: e.scriptStr
|
|
6497
6500
|
}, null, 8, ["scriptStr"])) : D("", !0),
|
|
6498
6501
|
e.TARGET !== "reactNative" ? (v(), B(u, {
|
|
@@ -6546,7 +6549,7 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6546
6549
|
content: this.content
|
|
6547
6550
|
}),
|
|
6548
6551
|
TARGET: de,
|
|
6549
|
-
|
|
6552
|
+
getInitVariantsFnsScriptString: Oa,
|
|
6550
6553
|
getVariants: xt
|
|
6551
6554
|
};
|
|
6552
6555
|
},
|
|
@@ -6580,23 +6583,26 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6580
6583
|
}
|
|
6581
6584
|
});
|
|
6582
6585
|
function Rl(e, t, n, r, o, i) {
|
|
6583
|
-
var m;
|
|
6584
6586
|
const a = U("inlined-script"), u = U("inlined-styles"), d = U("content-component");
|
|
6585
6587
|
return v(), $(re, null, [
|
|
6586
6588
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (v(), B(a, {
|
|
6587
6589
|
key: 0,
|
|
6588
|
-
|
|
6590
|
+
id: "builderio-init-variants-fns",
|
|
6591
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
6589
6592
|
}, null, 8, ["scriptStr"])) : D("", !0),
|
|
6590
6593
|
e.shouldRenderVariants ? (v(), $(re, { key: 1 }, [
|
|
6591
6594
|
Se(u, {
|
|
6592
|
-
id:
|
|
6595
|
+
id: "builderio-variants",
|
|
6593
6596
|
styles: e.hideVariantsStyleString
|
|
6594
|
-
}, null, 8, ["
|
|
6595
|
-
Se(a, {
|
|
6596
|
-
|
|
6597
|
-
|
|
6597
|
+
}, null, 8, ["styles"]),
|
|
6598
|
+
Se(a, {
|
|
6599
|
+
id: "builderio-variants-visibility",
|
|
6600
|
+
scriptStr: e.updateCookieAndStylesScriptStr
|
|
6601
|
+
}, null, 8, ["scriptStr"]),
|
|
6602
|
+
(v(!0), $(re, null, Ve(e.getVariants(e.content), (m, y) => (v(), B(d, {
|
|
6603
|
+
key: m.testVariationId,
|
|
6598
6604
|
isNestedRender: e.isNestedRender,
|
|
6599
|
-
content:
|
|
6605
|
+
content: m,
|
|
6600
6606
|
showContent: !1,
|
|
6601
6607
|
model: e.model,
|
|
6602
6608
|
data: e.data,
|
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-LFkZHS22.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/edge/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as a, k as t, C as r, o, F as i, I as n, S as c, l as g, m, V as l, z as u, r as d, y as p, A as C, D as E, u as S, p as f, q as h, s as B, t as b, x as k, v as x } from "./index-
|
|
1
|
+
import { n as a, k as t, C as r, o, F as i, I as n, S as c, l as g, m, V as l, z as u, r as d, y as p, A as C, D as E, u as S, p as f, q as h, s as B, t as b, x as k, v as x } from "./index-iZweifnx.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Blocks,
|
|
4
4
|
t as Button,
|
|
@@ -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-LFkZHS22.cjs"),r=()=>Promise.resolve().then(()=>require("./index-LFkZHS22.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents","linkComponent"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}}});function s(e,i,p,a,m,d){const n=o.resolveComponent("block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"])}const l=t._export_sfc(c,[["render",s]]);exports.default=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { j as s, e as l } from "./index-
|
|
3
|
-
const i = () => import("./index-
|
|
2
|
+
import { j as s, e as l } from "./index-iZweifnx.js";
|
|
3
|
+
const i = () => import("./index-iZweifnx.js").then((e) => e.G).then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
e
|
package/lib/edge/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-8hg8pWTn.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-wXqz2rFK.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,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-6h60UZrR.js";
|
|
3
|
+
import { e as m } from "./index-wXqz2rFK.js";
|
|
4
|
+
const d = () => import("./index-wXqz2rFK.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 +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-9YmnUYPw.cjs"),n=require("./index-8hg8pWTn.cjs"),c=()=>Promise.resolve().then(()=>require("./index-8hg8pWTn.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("dynamic-renderer");return t.openBlock(),t.createBlock(r,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-8hg8pWTn.cjs"),a=require("./get-block-properties-9YmnUYPw.cjs"),u=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,c,l,n,s){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const k=p._export_sfc(u,[["render",d]]),B=({componentOptions:e,builderBlock:t,context:c,componentRef:l,includeBlockProps:n,isInteractive:s,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return s?{Wrapper:l,block:t,context:c,wrapperProps:e,includeBlockProps:n}:r},f=o.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:k},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(k):this.componentRef,getWrapperProps:B}}});function b(e,t,c,l,n,s){const i=o.resolveComponent("block");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,m)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):o.createCommentVNode("",!0)}const C=p._export_sfc(f,[["render",b]]);exports.default=C;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as r, createBlock as l, resolveDynamicComponent as k, mergeProps as d, withCtx as u, renderSlot as P, resolveComponent as B, normalizeProps as g, createElementBlock as $, Fragment as v, renderList as S, createCommentVNode as W } from "vue";
|
|
2
|
-
import { 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-wXqz2rFK.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-6h60UZrR.js";
|
|
4
4
|
const I = m({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -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-8hg8pWTn.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;
|