@builder.io/sdk-vue 2.0.0 → 2.0.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/block-styles-Csi42CXj.cjs +1 -0
- package/lib/browser/{block-styles-cVSrkWog.js → block-styles-svOVzDaV.js} +14 -13
- package/lib/browser/{block-wrapper-WsC3tXV8.cjs → block-wrapper-GE-RFbYp.cjs} +1 -1
- package/lib/browser/{block-wrapper-maIbj8Gi.js → block-wrapper-KGQI5yrU.js} +3 -3
- package/lib/browser/{component-ref-da6lIO9c.cjs → component-ref-X2UZCaau.cjs} +1 -1
- package/lib/browser/{component-ref-1N_Kijok.js → component-ref-k5NF2o_L.js} +2 -2
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/browser/components/content/components/styles.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/inlined-script.vue.d.ts +3 -0
- package/lib/browser/components/inlined-styles.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder.context.d.ts +1 -0
- package/lib/browser/context/types.d.ts +1 -0
- package/lib/browser/{get-block-properties-AuDiFohY.js → get-block-properties-1Sn1T_z8.js} +1 -1
- package/lib/browser/{get-block-properties-0QNsXkZI.cjs → get-block-properties-lkKJCs4_.cjs} +1 -1
- package/lib/browser/index-5WrmkFk4.cjs +166 -0
- package/lib/browser/{index-pDvo-fub.js → index-zc0i09p9.js} +47 -30
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-nP-Etgd7.js → repeated-block-BxE-FBVv.js} +2 -2
- package/lib/browser/{repeated-block-Z2UnXIU-.cjs → repeated-block-U8EfEnWl.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-props.d.ts +3 -0
- package/lib/edge/{block-styles--vY4nPqp.js → block-styles-F04q1oh7.js} +14 -13
- package/lib/edge/block-styles-fRc_JL86.cjs +1 -0
- package/lib/edge/{block-wrapper-JdVK1HVZ.js → block-wrapper-8j2OMXf0.js} +3 -3
- package/lib/{node/block-wrapper-TveOxTSb.cjs → edge/block-wrapper-ai3_EF77.cjs} +1 -1
- package/lib/{node/component-ref-N8Z1onkW.cjs → edge/component-ref-adfadHtQ.cjs} +1 -1
- package/lib/{node/component-ref-KnwCIp0k.js → edge/component-ref-okii_K_0.js} +2 -2
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/edge/components/content/components/styles.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/inlined-script.vue.d.ts +3 -0
- package/lib/edge/components/inlined-styles.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder.context.d.ts +1 -0
- package/lib/edge/context/types.d.ts +1 -0
- package/lib/edge/{get-block-properties-dww-G4lx.cjs → get-block-properties-T-X8E9sU.cjs} +1 -1
- package/lib/edge/{get-block-properties-hYo7UjjZ.js → get-block-properties-aLqPRHin.js} +1 -1
- package/lib/edge/{index-OtE_7PIE.js → index-Hw76nggP.js} +165 -148
- package/lib/edge/{index-lFidbDeW.cjs → index-kEvRBdly.cjs} +7 -7
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-vPgWRa-A.js → repeated-block-RuwJfamt.js} +2 -2
- package/lib/edge/{repeated-block-IMXruThl.cjs → repeated-block-iGJv6g_d.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-props.d.ts +3 -0
- package/lib/node/{block-styles-JjLwXWt4.js → block-styles-akqgR8wB.js} +14 -13
- package/lib/node/block-styles-fnIQFp0q.cjs +1 -0
- package/lib/{edge/block-wrapper-szOQNDWW.cjs → node/block-wrapper-x4ztktEw.cjs} +1 -1
- package/lib/node/{block-wrapper--XSKGCL-.js → block-wrapper-xIeM4taN.js} +3 -3
- package/lib/{edge/component-ref-Ffo8HUWI.js → node/component-ref-SSAGqUU1.js} +2 -2
- package/lib/{edge/component-ref-7HkRGS_l.cjs → node/component-ref-Xsv_XmLR.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/node/components/content/components/styles.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/inlined-script.vue.d.ts +3 -0
- package/lib/node/components/inlined-styles.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder.context.d.ts +1 -0
- package/lib/node/context/types.d.ts +1 -0
- package/lib/node/{get-block-properties-Xr5L4Okr.js → get-block-properties-4897A0cX.js} +1 -1
- package/lib/node/{get-block-properties-inIHDjNu.cjs → get-block-properties-gYAacxBD.cjs} +1 -1
- package/lib/node/{index-EVLuO1iu.js → index-ZwTY1dOi.js} +47 -30
- package/lib/node/index-zlCXfe4Y.cjs +213 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-gAw64HdW.js → repeated-block-hqi2-jn4.js} +2 -2
- package/lib/node/{repeated-block-Co8byFSc.cjs → repeated-block-kVVd7Ki5.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-props.d.ts +3 -0
- package/package.json +1 -1
- package/lib/browser/block-styles-fmMk_gc8.cjs +0 -1
- package/lib/browser/index-7PcQ3One.cjs +0 -166
- package/lib/edge/block-styles-UnZvcuhz.cjs +0 -1
- package/lib/node/block-styles-houtGRpT.cjs +0 -1
- package/lib/node/index-QFbjU7Zd.cjs +0 -213
|
@@ -112,7 +112,8 @@ const Ct = /* @__PURE__ */ b(vt, [["render", St]]), wt = Symbol(), ce = {
|
|
|
112
112
|
componentInfos: {},
|
|
113
113
|
inheritedStyles: {},
|
|
114
114
|
BlocksWrapper: "div",
|
|
115
|
-
BlocksWrapperProps: {}
|
|
115
|
+
BlocksWrapperProps: {},
|
|
116
|
+
nonce: ""
|
|
116
117
|
},
|
|
117
118
|
key: wt
|
|
118
119
|
}, Tt = Symbol(), Ae = {
|
|
@@ -595,22 +596,22 @@ const Ht = ({
|
|
|
595
596
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
596
597
|
e
|
|
597
598
|
), e;
|
|
598
|
-
}), Qt = () => import("./block-styles-
|
|
599
|
+
}), Qt = () => import("./block-styles-svOVzDaV.js").then((e) => e.default).catch((e) => {
|
|
599
600
|
throw console.error(
|
|
600
601
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
601
602
|
e
|
|
602
603
|
), e;
|
|
603
|
-
}), Xt = () => import("./block-wrapper-
|
|
604
|
+
}), Xt = () => import("./block-wrapper-KGQI5yrU.js").then((e) => e.default).catch((e) => {
|
|
604
605
|
throw console.error(
|
|
605
606
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
606
607
|
e
|
|
607
608
|
), e;
|
|
608
|
-
}), Zt = () => import("./component-ref-
|
|
609
|
+
}), Zt = () => import("./component-ref-k5NF2o_L.js").then((e) => e.default).catch((e) => {
|
|
609
610
|
throw console.error(
|
|
610
611
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
611
612
|
e
|
|
612
613
|
), e;
|
|
613
|
-
}), _t = () => import("./repeated-block-
|
|
614
|
+
}), _t = () => import("./repeated-block-BxE-FBVv.js").then((e) => e.default).catch((e) => {
|
|
614
615
|
throw console.error(
|
|
615
616
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
616
617
|
e
|
|
@@ -876,11 +877,12 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
876
877
|
render() {
|
|
877
878
|
return xe("style", {
|
|
878
879
|
innerHTML: this.styles,
|
|
879
|
-
"data-id": this.id
|
|
880
|
+
"data-id": this.id,
|
|
881
|
+
nonce: this.nonce
|
|
880
882
|
});
|
|
881
883
|
},
|
|
882
884
|
name: "inlined-styles",
|
|
883
|
-
props: ["styles", "id"]
|
|
885
|
+
props: ["styles", "id", "nonce"]
|
|
884
886
|
}), Ke = {
|
|
885
887
|
small: {
|
|
886
888
|
min: 320,
|
|
@@ -1066,8 +1068,9 @@ function hn(e, t, n, o, r, i) {
|
|
|
1066
1068
|
e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
1067
1069
|
key: 0,
|
|
1068
1070
|
id: "builderio-columns",
|
|
1069
|
-
styles: e.columnsStyles()
|
|
1070
|
-
|
|
1071
|
+
styles: e.columnsStyles(),
|
|
1072
|
+
nonce: e.builderContext.nonce
|
|
1073
|
+
}, null, 8, ["styles", "nonce"])) : v("", !0),
|
|
1071
1074
|
(d(!0), p(I, null, N(e.columns, (h, c) => (d(), k(a, {
|
|
1072
1075
|
key: c,
|
|
1073
1076
|
TagName: e.getTagName(h),
|
|
@@ -1091,7 +1094,7 @@ function hn(e, t, n, o, r, i) {
|
|
|
1091
1094
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1092
1095
|
], 16);
|
|
1093
1096
|
}
|
|
1094
|
-
const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-
|
|
1097
|
+
const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-975347d5"]]), bn = f({
|
|
1095
1098
|
name: "builder-fragment-component",
|
|
1096
1099
|
props: []
|
|
1097
1100
|
});
|
|
@@ -3593,11 +3596,12 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
|
|
|
3593
3596
|
render() {
|
|
3594
3597
|
return xe("script", {
|
|
3595
3598
|
innerHTML: this.scriptStr,
|
|
3596
|
-
"data-id": this.id
|
|
3599
|
+
"data-id": this.id,
|
|
3600
|
+
nonce: this.nonce
|
|
3597
3601
|
});
|
|
3598
3602
|
},
|
|
3599
3603
|
name: "inlined-script",
|
|
3600
|
-
props: ["scriptStr", "id"]
|
|
3604
|
+
props: ["scriptStr", "id", "nonce"]
|
|
3601
3605
|
});
|
|
3602
3606
|
function Rr() {
|
|
3603
3607
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
@@ -3923,7 +3927,7 @@ function lt(e, t) {
|
|
|
3923
3927
|
const n = new URL(t.origin), o = n.hostname;
|
|
3924
3928
|
return (e || Xr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3925
3929
|
}
|
|
3926
|
-
const Zr = "2.0.
|
|
3930
|
+
const Zr = "2.0.1", Be = {};
|
|
3927
3931
|
function _r(e, t) {
|
|
3928
3932
|
let n = Be[e];
|
|
3929
3933
|
if (n || (n = Be[e] = []), n.push(t), T()) {
|
|
@@ -4451,7 +4455,7 @@ function li(e, t, n, o, r, i) {
|
|
|
4451
4455
|
const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = f({
|
|
4452
4456
|
name: "content-styles",
|
|
4453
4457
|
components: { InlinedStyles: be },
|
|
4454
|
-
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
4458
|
+
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4455
4459
|
data() {
|
|
4456
4460
|
return {
|
|
4457
4461
|
injectedStyles: `
|
|
@@ -4471,8 +4475,9 @@ function ui(e, t, n, o, r, i) {
|
|
|
4471
4475
|
const s = g("InlinedStyles");
|
|
4472
4476
|
return d(), k(s, {
|
|
4473
4477
|
id: "builderio-content",
|
|
4474
|
-
styles: e.injectedStyles
|
|
4475
|
-
|
|
4478
|
+
styles: e.injectedStyles,
|
|
4479
|
+
nonce: e.nonce
|
|
4480
|
+
}, null, 8, ["styles", "nonce"]);
|
|
4476
4481
|
}
|
|
4477
4482
|
const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
|
|
4478
4483
|
content: e,
|
|
@@ -4521,6 +4526,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
|
|
|
4521
4526
|
"apiVersion",
|
|
4522
4527
|
"blocksWrapper",
|
|
4523
4528
|
"blocksWrapperProps",
|
|
4529
|
+
"nonce",
|
|
4524
4530
|
"model",
|
|
4525
4531
|
"enrich",
|
|
4526
4532
|
"showContent",
|
|
@@ -4581,7 +4587,8 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
|
|
|
4581
4587
|
),
|
|
4582
4588
|
inheritedStyles: {},
|
|
4583
4589
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
4584
|
-
BlocksWrapperProps: this.blocksWrapperProps || {}
|
|
4590
|
+
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4591
|
+
nonce: this.nonce || ""
|
|
4585
4592
|
},
|
|
4586
4593
|
TARGET: A
|
|
4587
4594
|
};
|
|
@@ -4603,6 +4610,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
|
|
|
4603
4610
|
function gi(e, t, n, o, r, i) {
|
|
4604
4611
|
const s = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
|
|
4605
4612
|
return d(), k(u, C({
|
|
4613
|
+
nonce: e.nonce,
|
|
4606
4614
|
content: e.content,
|
|
4607
4615
|
data: e.data,
|
|
4608
4616
|
model: e.model,
|
|
@@ -4623,15 +4631,17 @@ function gi(e, t, n, o, r, i) {
|
|
|
4623
4631
|
e.isSsrAbTest ? (d(), k(s, {
|
|
4624
4632
|
key: 0,
|
|
4625
4633
|
id: "builderio-variant-visibility",
|
|
4626
|
-
scriptStr: e.scriptStr
|
|
4627
|
-
|
|
4634
|
+
scriptStr: e.scriptStr,
|
|
4635
|
+
nonce: e.nonce || ""
|
|
4636
|
+
}, null, 8, ["scriptStr", "nonce"])) : v("", !0),
|
|
4628
4637
|
e.TARGET !== "reactNative" ? (d(), k(l, {
|
|
4629
4638
|
key: 1,
|
|
4639
|
+
nonce: e.nonce || "",
|
|
4630
4640
|
isNestedRender: e.isNestedRender,
|
|
4631
4641
|
contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
|
|
4632
4642
|
cssCode: (m = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
4633
4643
|
customFonts: (y = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : y.customFonts
|
|
4634
|
-
}, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
4644
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
4635
4645
|
$(a, {
|
|
4636
4646
|
blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
|
|
4637
4647
|
context: e.builderContextSignal,
|
|
@@ -4641,7 +4651,7 @@ function gi(e, t, n, o, r, i) {
|
|
|
4641
4651
|
];
|
|
4642
4652
|
}),
|
|
4643
4653
|
_: 1
|
|
4644
|
-
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
4654
|
+
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
4645
4655
|
}
|
|
4646
4656
|
const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
|
|
4647
4657
|
name: "content-variants",
|
|
@@ -4654,6 +4664,7 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
|
|
|
4654
4664
|
"canTrack",
|
|
4655
4665
|
"content",
|
|
4656
4666
|
"isNestedRender",
|
|
4667
|
+
"nonce",
|
|
4657
4668
|
"model",
|
|
4658
4669
|
"data",
|
|
4659
4670
|
"context",
|
|
@@ -4716,20 +4727,24 @@ function vi(e, t, n, o, r, i) {
|
|
|
4716
4727
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
4717
4728
|
key: 0,
|
|
4718
4729
|
id: "builderio-init-variants-fns",
|
|
4719
|
-
scriptStr: e.getInitVariantsFnsScriptString()
|
|
4720
|
-
|
|
4730
|
+
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4731
|
+
nonce: e.nonce || ""
|
|
4732
|
+
}, null, 8, ["scriptStr", "nonce"])) : v("", !0),
|
|
4721
4733
|
e.shouldRenderVariants ? (d(), p(I, { key: 1 }, [
|
|
4722
4734
|
$(l, {
|
|
4723
4735
|
id: "builderio-variants",
|
|
4724
|
-
styles: e.hideVariantsStyleString
|
|
4725
|
-
|
|
4736
|
+
styles: e.hideVariantsStyleString,
|
|
4737
|
+
nonce: e.nonce || ""
|
|
4738
|
+
}, null, 8, ["styles", "nonce"]),
|
|
4726
4739
|
$(s, {
|
|
4727
4740
|
id: "builderio-variants-visibility",
|
|
4728
|
-
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4729
|
-
|
|
4741
|
+
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4742
|
+
nonce: e.nonce || ""
|
|
4743
|
+
}, null, 8, ["scriptStr", "nonce"]),
|
|
4730
4744
|
(d(!0), p(I, null, N(e.getVariants(e.content), (u, h) => (d(), k(a, {
|
|
4731
4745
|
key: u.testVariationId,
|
|
4732
4746
|
isNestedRender: e.isNestedRender,
|
|
4747
|
+
nonce: e.nonce,
|
|
4733
4748
|
content: u,
|
|
4734
4749
|
showContent: !1,
|
|
4735
4750
|
model: e.model,
|
|
@@ -4748,9 +4763,10 @@ function vi(e, t, n, o, r, i) {
|
|
|
4748
4763
|
contentWrapper: e.contentWrapper,
|
|
4749
4764
|
contentWrapperProps: e.contentWrapperProps,
|
|
4750
4765
|
trustedHosts: e.trustedHosts
|
|
4751
|
-
}, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4766
|
+
}, null, 8, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4752
4767
|
], 64)) : v("", !0),
|
|
4753
4768
|
$(a, C({
|
|
4769
|
+
nonce: e.nonce,
|
|
4754
4770
|
isNestedRender: e.isNestedRender,
|
|
4755
4771
|
content: e.defaultContent,
|
|
4756
4772
|
showContent: !0,
|
|
@@ -4772,7 +4788,7 @@ function vi(e, t, n, o, r, i) {
|
|
|
4772
4788
|
trustedHosts: e.trustedHosts
|
|
4773
4789
|
}, {
|
|
4774
4790
|
key: e.shouldRenderVariants.toString()
|
|
4775
|
-
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4791
|
+
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4776
4792
|
], 64);
|
|
4777
4793
|
}
|
|
4778
4794
|
const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
|
|
@@ -4858,6 +4874,7 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4858
4874
|
const s = g("ContentVariants");
|
|
4859
4875
|
return d(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4860
4876
|
$(s, {
|
|
4877
|
+
nonce: e.builderContext.nonce,
|
|
4861
4878
|
isNestedRender: !0,
|
|
4862
4879
|
apiVersion: e.builderContext.apiVersion,
|
|
4863
4880
|
apiKey: e.builderContext.apiKey,
|
|
@@ -4877,7 +4894,7 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4877
4894
|
linkComponent: e.builderLinkComponent,
|
|
4878
4895
|
blocksWrapper: e.blocksWrapper,
|
|
4879
4896
|
contentWrapper: e.contentWrapper
|
|
4880
|
-
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4897
|
+
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4881
4898
|
], 16);
|
|
4882
4899
|
}
|
|
4883
4900
|
const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), Ee = {};
|
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-5WrmkFk4.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/browser/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { o as a, k as r, l as o, C as i, p as n, F as c, I as g, S as m, m as l, n as u, V as d, A as p, s as C, z as E, D as B, E as S, v as f, q as h, r as x, t as b, u as k, y, x as P } from "./index-
|
|
2
|
+
import { o as a, k as r, l as o, C as i, p as n, F as c, I as g, S as m, m as l, n as u, V as d, A as p, s as C, z as E, D as B, E as S, v as f, q as h, r as x, t as b, u as k, y, x as P } from "./index-zc0i09p9.js";
|
|
3
3
|
export {
|
|
4
4
|
a as Blocks,
|
|
5
5
|
r as BuilderContext,
|
|
@@ -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 { k as s, f as l } from "./index-
|
|
4
|
-
const i = () => import("./index-
|
|
3
|
+
import { k as s, f as l } from "./index-zc0i09p9.js";
|
|
4
|
+
const i = () => import("./index-zc0i09p9.js").then((o) => o.H).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-5WrmkFk4.cjs"),r=()=>Promise.resolve().then(()=>require("./index-5WrmkFk4.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-178o76acnws[data-v-a5b13ef9]{display:flex;flex-direction:column;align-items:stretch}.div-2brhoa1k8gd[data-v-
|
|
1
|
+
.component-178o76acnws[data-v-a5b13ef9]{display:flex;flex-direction:column;align-items:stretch}.div-2brhoa1k8gd[data-v-975347d5]{display:flex;line-height:normal}.img-1pl23ac79ld[data-v-0d528855]{opacity:1;transition:opacity .2s ease-in-out}.div-1pl23ac79ld[data-v-0d528855]{width:100%;pointer-events:none;font-size:0}.div-1pl23ac79ld-2[data-v-0d528855]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-3i4ezorcfhi[data-v-489330f7]{padding:10px;color:red;text-align:center}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as g, resolveComponent as B, openBlock as v, createBlock as C, createCommentVNode as
|
|
2
|
-
import { _
|
|
1
|
+
import { defineComponent as g, resolveComponent as B, openBlock as v, createBlock as C, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { _, T, g as p, c as y, a as w, b as c, d as k, e as E, f as I } from "./index-Hw76nggP.js";
|
|
3
3
|
const N = g({
|
|
4
4
|
name: "block-styles",
|
|
5
|
-
components: { InlinedStyles:
|
|
5
|
+
components: { InlinedStyles: _ },
|
|
6
6
|
props: ["block", "context"],
|
|
7
7
|
data() {
|
|
8
8
|
return { TARGET: T };
|
|
@@ -28,33 +28,33 @@ const N = g({
|
|
|
28
28
|
rootSetState: this.context.rootSetState,
|
|
29
29
|
context: this.context.context,
|
|
30
30
|
shouldEvaluateBindings: !0
|
|
31
|
-
}), e = t.responsiveStyles, n = this.context.content,
|
|
31
|
+
}), e = t.responsiveStyles, n = this.context.content, l = w(
|
|
32
32
|
((S = n == null ? void 0 : n.meta) == null ? void 0 : S.breakpoints) || {}
|
|
33
33
|
), r = e == null ? void 0 : e.large, i = e == null ? void 0 : e.medium, a = e == null ? void 0 : e.small, o = t.id;
|
|
34
34
|
if (!o)
|
|
35
35
|
return "";
|
|
36
|
-
const f = r ?
|
|
36
|
+
const f = r ? c({
|
|
37
37
|
className: o,
|
|
38
38
|
styles: r
|
|
39
|
-
}) : "", x = i ?
|
|
39
|
+
}) : "", x = i ? c({
|
|
40
40
|
className: o,
|
|
41
41
|
styles: i,
|
|
42
42
|
mediaQuery: k(
|
|
43
43
|
"medium",
|
|
44
|
-
|
|
44
|
+
l
|
|
45
45
|
)
|
|
46
|
-
}) : "", b = a ?
|
|
46
|
+
}) : "", b = a ? c({
|
|
47
47
|
className: o,
|
|
48
48
|
styles: a,
|
|
49
49
|
mediaQuery: k(
|
|
50
50
|
"small",
|
|
51
|
-
|
|
51
|
+
l
|
|
52
52
|
)
|
|
53
53
|
}) : "", s = t.animations && t.animations.find((d) => d.trigger === "hover");
|
|
54
54
|
let m = "";
|
|
55
55
|
if (s) {
|
|
56
56
|
const d = ((h = (u = s.steps) == null ? void 0 : u[1]) == null ? void 0 : h.styles) || {};
|
|
57
|
-
m =
|
|
57
|
+
m = c({
|
|
58
58
|
className: `${o}:hover`,
|
|
59
59
|
styles: {
|
|
60
60
|
...d,
|
|
@@ -74,13 +74,14 @@ const N = g({
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
function z(t, e, n,
|
|
77
|
+
function z(t, e, n, l, r, i) {
|
|
78
78
|
const a = B("InlinedStyles");
|
|
79
79
|
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (v(), C(a, {
|
|
80
80
|
key: 0,
|
|
81
81
|
id: "builderio-block",
|
|
82
|
-
styles: t.css
|
|
83
|
-
|
|
82
|
+
styles: t.css,
|
|
83
|
+
nonce: t.context.nonce
|
|
84
|
+
}, null, 8, ["styles", "nonce"])) : $("", !0);
|
|
84
85
|
}
|
|
85
86
|
const D = /* @__PURE__ */ I(N, [["render", z]]);
|
|
86
87
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),t=require("./index-kEvRBdly.cjs"),f=c.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 m,h,y;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}),s=e.responsiveStyles,a=this.context.content,r=t.getSizesForBreakpoints(((m=a==null?void 0:a.meta)==null?void 0:m.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=e.id;if(!n)return"";const k=i?t.createCssClass({className:n,styles:i}):"",p=d?t.createCssClass({className:n,styles:d,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",C=l?t.createCssClass({className:n,styles:l,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"",o=e.animations&&e.animations.find(u=>u.trigger==="hover");let S="";if(o){const u=((y=(h=o.steps)==null?void 0:h[1])==null?void 0:y.styles)||{};S=t.createCssClass({className:`${n}:hover`,styles:{...u,transition:`all ${o.duration}s ${t.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[k,p,C,S].join(" ")}}});function g(e,s,a,r,i,d){const l=c.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(c.openBlock(),c.createBlock(l,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):c.createCommentVNode("",!0)}const x=t._export_sfc(f,[["render",g]]);exports.default=x;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
3
|
-
import { f as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-aLqPRHin.js";
|
|
3
|
+
import { f as m } from "./index-Hw76nggP.js";
|
|
4
|
+
const d = () => import("./index-Hw76nggP.js").then((e) => e.G).then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-T-X8E9sU.cjs"),n=require("./index-kEvRBdly.cjs"),c=()=>Promise.resolve().then(()=>require("./index-kEvRBdly.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("DynamicRenderer");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 t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-kEvRBdly.cjs"),a=require("./get-block-properties-T-X8E9sU.cjs"),u=t.defineComponent({name:"interactive-element",props:["includeBlockProps","block","context","wrapperProps","Wrapper"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function d(e,o,p,s,n,i){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=c._export_sfc(u,[["render",d]]),f=({componentOptions:e,builderBlock:o,context:p,componentRef:s,includeBlockProps:n,isInteractive:i,contextValue:l})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:o,context:l})}:{}};return i?{Wrapper:s,block:o,context:p,wrapperProps:e,includeBlockProps:n}:r},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:f}}});function b(e,o,p,s,n,i){const l=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(r,k)=>(t.openBlock(),t.createBlock(l,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const C=c._export_sfc(B,[["render",b]]);exports.default=C;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as r, createBlock as a, resolveDynamicComponent as k, mergeProps as u, withCtx as d, renderSlot as h, resolveComponent as B, normalizeProps as P, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as S } from "vue";
|
|
2
|
-
import { f, B as W, w } from "./index-
|
|
3
|
-
import { a as b, g as R } from "./get-block-properties-
|
|
2
|
+
import { f, B as W, w } from "./index-Hw76nggP.js";
|
|
3
|
+
import { a as b, g as R } from "./get-block-properties-aLqPRHin.js";
|
|
4
4
|
const x = m({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["includeBlockProps", "block", "context", "wrapperProps", "Wrapper"],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
nonce?: any;
|
|
2
3
|
contentId?: any;
|
|
3
4
|
cssCode?: any;
|
|
4
5
|
customFonts?: any;
|
|
@@ -6,11 +7,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
7
|
}>, unknown, {
|
|
7
8
|
injectedStyles: string;
|
|
8
9
|
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
10
|
+
nonce?: any;
|
|
9
11
|
contentId?: any;
|
|
10
12
|
cssCode?: any;
|
|
11
13
|
customFonts?: any;
|
|
12
14
|
isNestedRender?: any;
|
|
13
15
|
}>>>, {
|
|
16
|
+
readonly nonce?: any;
|
|
14
17
|
readonly contentId?: any;
|
|
15
18
|
readonly cssCode?: any;
|
|
16
19
|
readonly customFonts?: any;
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
7
7
|
content?: any;
|
|
8
8
|
apiKey?: any;
|
|
9
9
|
apiVersion?: any;
|
|
10
|
+
nonce?: any;
|
|
10
11
|
canTrack?: any;
|
|
11
12
|
linkComponent?: any;
|
|
12
13
|
locale?: any;
|
|
@@ -39,6 +40,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
39
40
|
inheritedStyles: {};
|
|
40
41
|
BlocksWrapper: any;
|
|
41
42
|
BlocksWrapperProps: any;
|
|
43
|
+
nonce: any;
|
|
42
44
|
};
|
|
43
45
|
TARGET: import("../../types/targets").Target;
|
|
44
46
|
}, {}, {
|
|
@@ -49,6 +51,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
49
51
|
content?: any;
|
|
50
52
|
apiKey?: any;
|
|
51
53
|
apiVersion?: any;
|
|
54
|
+
nonce?: any;
|
|
52
55
|
canTrack?: any;
|
|
53
56
|
linkComponent?: any;
|
|
54
57
|
locale?: any;
|
|
@@ -69,6 +72,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
69
72
|
readonly content?: any;
|
|
70
73
|
readonly apiKey?: any;
|
|
71
74
|
readonly apiVersion?: any;
|
|
75
|
+
readonly nonce?: any;
|
|
72
76
|
readonly canTrack?: any;
|
|
73
77
|
readonly linkComponent?: any;
|
|
74
78
|
readonly locale?: any;
|
|
@@ -4,6 +4,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
4
4
|
content?: any;
|
|
5
5
|
apiKey?: any;
|
|
6
6
|
apiVersion?: any;
|
|
7
|
+
nonce?: any;
|
|
7
8
|
canTrack?: any;
|
|
8
9
|
linkComponent?: any;
|
|
9
10
|
locale?: any;
|
|
@@ -54,6 +55,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
54
55
|
content?: any;
|
|
55
56
|
apiKey?: any;
|
|
56
57
|
apiVersion?: any;
|
|
58
|
+
nonce?: any;
|
|
57
59
|
canTrack?: any;
|
|
58
60
|
linkComponent?: any;
|
|
59
61
|
locale?: any;
|
|
@@ -72,6 +74,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
72
74
|
readonly content?: any;
|
|
73
75
|
readonly apiKey?: any;
|
|
74
76
|
readonly apiVersion?: any;
|
|
77
|
+
readonly nonce?: any;
|
|
75
78
|
readonly canTrack?: any;
|
|
76
79
|
readonly linkComponent?: any;
|
|
77
80
|
readonly locale?: any;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
nonce?: any;
|
|
2
3
|
id?: any;
|
|
3
4
|
scriptStr?: any;
|
|
4
5
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
|
+
nonce?: any;
|
|
5
7
|
id?: any;
|
|
6
8
|
scriptStr?: any;
|
|
7
9
|
}>>>, {
|
|
10
|
+
readonly nonce?: any;
|
|
8
11
|
readonly id?: any;
|
|
9
12
|
readonly scriptStr?: any;
|
|
10
13
|
}, {}>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
nonce?: any;
|
|
2
3
|
styles?: any;
|
|
3
4
|
id?: any;
|
|
4
5
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
|
+
nonce?: any;
|
|
5
7
|
styles?: any;
|
|
6
8
|
id?: any;
|
|
7
9
|
}>>>, {
|
|
10
|
+
readonly nonce?: any;
|
|
8
11
|
readonly styles?: any;
|
|
9
12
|
readonly id?: any;
|
|
10
13
|
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-kEvRBdly.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;
|