@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
|
@@ -696,22 +696,22 @@ const getComponent = ({
|
|
|
696
696
|
},
|
|
697
697
|
block: o
|
|
698
698
|
}));
|
|
699
|
-
}, BlockStyles = () => import("./block-styles-
|
|
699
|
+
}, BlockStyles = () => import("./block-styles-osmIZ6Mt.js").then((e) => e.default).catch((e) => {
|
|
700
700
|
throw console.error(
|
|
701
701
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
702
702
|
e
|
|
703
703
|
), e;
|
|
704
|
-
}), BlockWrapper = () => import("./block-wrapper-
|
|
704
|
+
}), BlockWrapper = () => import("./block-wrapper-5xqcFiwU.js").then((e) => e.default).catch((e) => {
|
|
705
705
|
throw console.error(
|
|
706
706
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
707
707
|
e
|
|
708
708
|
), e;
|
|
709
|
-
}), ComponentRef = () => import("./component-ref-
|
|
709
|
+
}), ComponentRef = () => import("./component-ref-mGwwqC-f.js").then((e) => e.default).catch((e) => {
|
|
710
710
|
throw console.error(
|
|
711
711
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
712
712
|
e
|
|
713
713
|
), e;
|
|
714
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
714
|
+
}), RepeatedBlock = () => import("./repeated-block-_XkAOrun.js").then((e) => e.default).catch((e) => {
|
|
715
715
|
throw console.error(
|
|
716
716
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
717
717
|
e
|
|
@@ -963,7 +963,10 @@ function _sfc_render$j(e, t, n, o, r, s) {
|
|
|
963
963
|
}
|
|
964
964
|
const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]), _sfc_main$k = defineComponent({
|
|
965
965
|
render() {
|
|
966
|
-
return h("style", {
|
|
966
|
+
return h("style", {
|
|
967
|
+
innerHTML: this.styles,
|
|
968
|
+
"data-id": this.id
|
|
969
|
+
});
|
|
967
970
|
},
|
|
968
971
|
name: "inlined-styles",
|
|
969
972
|
props: ["styles", "id"]
|
|
@@ -1140,6 +1143,7 @@ function _sfc_render$i(e, t, n, o, r, s) {
|
|
|
1140
1143
|
}, {}), [
|
|
1141
1144
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
|
|
1142
1145
|
key: 0,
|
|
1146
|
+
id: "builderio-columns",
|
|
1143
1147
|
styles: e.columnsStyles
|
|
1144
1148
|
}, null, 8, ["styles"])) : createCommentVNode("", !0),
|
|
1145
1149
|
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (c, u) => (openBlock(), createBlock(l, {
|
|
@@ -1171,7 +1175,7 @@ function _sfc_render$i(e, t, n, o, r, s) {
|
|
|
1171
1175
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1172
1176
|
], 16);
|
|
1173
1177
|
}
|
|
1174
|
-
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
1178
|
+
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-4eaba73b"]]), _sfc_main$i = defineComponent({
|
|
1175
1179
|
name: "builder-fragment-component",
|
|
1176
1180
|
props: []
|
|
1177
1181
|
});
|
|
@@ -3090,7 +3094,7 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
|
|
|
3090
3094
|
})), checkShouldRenderVariants = ({
|
|
3091
3095
|
canTrack: e,
|
|
3092
3096
|
content: t
|
|
3093
|
-
}) => !(!(getVariants(t).length > 0) || !e), getIsHydrationTarget = (e) => e === "react" || e === "reactNative", isHydrationTarget = getIsHydrationTarget(TARGET),
|
|
3097
|
+
}) => !(!(getVariants(t).length > 0) || !e), getIsHydrationTarget = (e) => e === "react" || e === "reactNative", isHydrationTarget = getIsHydrationTarget(TARGET), getInitVariantsFnsScriptString = () => `
|
|
3094
3098
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
3095
3099
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
3096
3100
|
`, getUpdateCookieAndStylesScript = (e, t) => `
|
|
@@ -3103,7 +3107,10 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
|
|
|
3103
3107
|
"${t}", "${e}", ${isHydrationTarget}
|
|
3104
3108
|
)`, _sfc_main$5 = defineComponent({
|
|
3105
3109
|
render() {
|
|
3106
|
-
return h("script", {
|
|
3110
|
+
return h("script", {
|
|
3111
|
+
innerHTML: this.scriptStr,
|
|
3112
|
+
"data-id": this.id
|
|
3113
|
+
});
|
|
3107
3114
|
},
|
|
3108
3115
|
name: "inlined-script",
|
|
3109
3116
|
props: ["scriptStr", "id"]
|
|
@@ -3425,7 +3432,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3425
3432
|
const n = new URL(t.origin), o = n.hostname;
|
|
3426
3433
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3427
3434
|
}
|
|
3428
|
-
const SDK_VERSION = "1.0.
|
|
3435
|
+
const SDK_VERSION = "1.0.17", registry = {};
|
|
3429
3436
|
function register(e, t) {
|
|
3430
3437
|
let n = registry[e];
|
|
3431
3438
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -3594,6 +3601,7 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
3594
3601
|
return {
|
|
3595
3602
|
ContentWrapper: this.contentWrapper || "div",
|
|
3596
3603
|
httpReqsData: {},
|
|
3604
|
+
httpReqsPending: {},
|
|
3597
3605
|
clicked: !1,
|
|
3598
3606
|
builderContext: BuilderContext
|
|
3599
3607
|
};
|
|
@@ -3790,44 +3798,35 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
3790
3798
|
}
|
|
3791
3799
|
this.clicked || (this.clicked = !0);
|
|
3792
3800
|
},
|
|
3793
|
-
evalExpression(e) {
|
|
3794
|
-
return e.replace(
|
|
3795
|
-
/{{([^}]+)}}/g,
|
|
3796
|
-
(t, n) => String(
|
|
3797
|
-
evaluate({
|
|
3798
|
-
code: n,
|
|
3799
|
-
context: this.context || {},
|
|
3800
|
-
localState: void 0,
|
|
3801
|
-
rootState: this.builderContextSignal.rootState,
|
|
3802
|
-
rootSetState: this.builderContextSignal.rootSetState,
|
|
3803
|
-
enableCache: !0
|
|
3804
|
-
})
|
|
3805
|
-
)
|
|
3806
|
-
);
|
|
3807
|
-
},
|
|
3808
|
-
handleRequest({ url: e, key: t }) {
|
|
3809
|
-
fetch$1(e).then((n) => n.json()).then((n) => {
|
|
3810
|
-
var r, s;
|
|
3811
|
-
const o = {
|
|
3812
|
-
...this.builderContextSignal.rootState,
|
|
3813
|
-
[t]: n
|
|
3814
|
-
};
|
|
3815
|
-
(s = (r = this.builderContextSignal).rootSetState) == null || s.call(r, o), this.httpReqsData[t] = !0;
|
|
3816
|
-
}).catch((n) => {
|
|
3817
|
-
console.error("error fetching dynamic data", e, n);
|
|
3818
|
-
});
|
|
3819
|
-
},
|
|
3820
3801
|
runHttpRequests() {
|
|
3821
3802
|
var t, n;
|
|
3822
3803
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
3823
3804
|
Object.entries(e).forEach(([o, r]) => {
|
|
3824
|
-
if (r
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3805
|
+
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !isEditing())
|
|
3806
|
+
return;
|
|
3807
|
+
this.httpReqsPending[o] = !0;
|
|
3808
|
+
const s = r.replace(
|
|
3809
|
+
/{{([^}]+)}}/g,
|
|
3810
|
+
(i, a) => String(
|
|
3811
|
+
evaluate({
|
|
3812
|
+
code: a,
|
|
3813
|
+
context: this.context || {},
|
|
3814
|
+
localState: void 0,
|
|
3815
|
+
rootState: this.builderContextSignal.rootState,
|
|
3816
|
+
rootSetState: this.builderContextSignal.rootSetState,
|
|
3817
|
+
enableCache: !0
|
|
3818
|
+
})
|
|
3819
|
+
)
|
|
3820
|
+
);
|
|
3821
|
+
fetch$1(s).then((i) => i.json()).then((i) => {
|
|
3822
|
+
this.mergeNewRootState({
|
|
3823
|
+
[o]: i
|
|
3824
|
+
}), this.httpReqsData[o] = !0;
|
|
3825
|
+
}).catch((i) => {
|
|
3826
|
+
console.error("error fetching dynamic data", r, i);
|
|
3827
|
+
}).finally(() => {
|
|
3828
|
+
this.httpReqsPending[o] = !1;
|
|
3829
|
+
});
|
|
3831
3830
|
});
|
|
3832
3831
|
},
|
|
3833
3832
|
emitStateUpdate() {
|
|
@@ -3977,7 +3976,10 @@ ${getDefaultStyles(this.isNestedRender)}
|
|
|
3977
3976
|
});
|
|
3978
3977
|
function _sfc_render$3(e, t, n, o, r, s) {
|
|
3979
3978
|
const i = resolveComponent("inlined-styles");
|
|
3980
|
-
return openBlock(), createBlock(i, {
|
|
3979
|
+
return openBlock(), createBlock(i, {
|
|
3980
|
+
id: "builderio-content",
|
|
3981
|
+
styles: e.injectedStyles
|
|
3982
|
+
}, null, 8, ["styles"]);
|
|
3981
3983
|
}
|
|
3982
3984
|
const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]), getRootStateInitialValue = ({
|
|
3983
3985
|
content: e,
|
|
@@ -4126,6 +4128,7 @@ function _sfc_render$2(e, t, n, o, r, s) {
|
|
|
4126
4128
|
return [
|
|
4127
4129
|
e.isSsrAbTest ? (openBlock(), createBlock(i, {
|
|
4128
4130
|
key: 0,
|
|
4131
|
+
id: "builderio-variant-visibility",
|
|
4129
4132
|
scriptStr: e.scriptStr
|
|
4130
4133
|
}, null, 8, ["scriptStr"])) : createCommentVNode("", !0),
|
|
4131
4134
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(a, {
|
|
@@ -4179,7 +4182,7 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
4179
4182
|
content: this.content
|
|
4180
4183
|
}),
|
|
4181
4184
|
TARGET,
|
|
4182
|
-
|
|
4185
|
+
getInitVariantsFnsScriptString,
|
|
4183
4186
|
getVariants
|
|
4184
4187
|
};
|
|
4185
4188
|
},
|
|
@@ -4213,23 +4216,26 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
4213
4216
|
}
|
|
4214
4217
|
});
|
|
4215
4218
|
function _sfc_render$1(e, t, n, o, r, s) {
|
|
4216
|
-
var c;
|
|
4217
4219
|
const i = resolveComponent("inlined-script"), a = resolveComponent("inlined-styles"), l = resolveComponent("content-component");
|
|
4218
4220
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
4219
4221
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
|
|
4220
4222
|
key: 0,
|
|
4221
|
-
|
|
4223
|
+
id: "builderio-init-variants-fns",
|
|
4224
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
4222
4225
|
}, null, 8, ["scriptStr"])) : createCommentVNode("", !0),
|
|
4223
4226
|
e.shouldRenderVariants ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
4224
4227
|
createVNode(a, {
|
|
4225
|
-
id:
|
|
4228
|
+
id: "builderio-variants",
|
|
4226
4229
|
styles: e.hideVariantsStyleString
|
|
4227
|
-
}, null, 8, ["
|
|
4228
|
-
createVNode(i, {
|
|
4229
|
-
|
|
4230
|
-
|
|
4230
|
+
}, null, 8, ["styles"]),
|
|
4231
|
+
createVNode(i, {
|
|
4232
|
+
id: "builderio-variants-visibility",
|
|
4233
|
+
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4234
|
+
}, null, 8, ["scriptStr"]),
|
|
4235
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (c, u) => (openBlock(), createBlock(l, {
|
|
4236
|
+
key: c.testVariationId,
|
|
4231
4237
|
isNestedRender: e.isNestedRender,
|
|
4232
|
-
content:
|
|
4238
|
+
content: c,
|
|
4233
4239
|
showContent: !1,
|
|
4234
4240
|
model: e.model,
|
|
4235
4241
|
data: e.data,
|
package/lib/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-8hg8pWTn.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/node/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-wXqz2rFK.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Blocks,
|
|
4
4
|
t as Button,
|
|
@@ -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-wXqz2rFK.js";
|
|
3
|
+
const i = () => import("./index-wXqz2rFK.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
|
|
@@ -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-8hg8pWTn.cjs"),r=()=>Promise.resolve().then(()=>require("./index-8hg8pWTn.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;
|
package/lib/node/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}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-Knuxd6qK.cjs"),h=o.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}),s=e.responsiveStyles,n=this.context.content,r=t.getSizesForBreakpoints(((d=n==null?void 0:n.meta)==null?void 0:d.breakpoints)||{}),a=s==null?void 0:s.large,i=s==null?void 0:s.medium,c=s==null?void 0:s.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=c?t.createCssClass({className:l,styles:c,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"";return[u,S,m].join(" ")}}});function p(e,s,n,r,a,i){const c=o.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,styles:e.css},null,8,["styles"])):o.createCommentVNode("",!0)}const k=t._export_sfc(h,[["render",p]]);exports.default=k;
|