@builder.io/sdk-vue 1.0.3 → 1.0.6
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-O6zs87OW.cjs → block-styles-T5vCQuNZ.cjs} +1 -1
- package/lib/browser/{block-styles-ImJppKLu.js → block-styles-l1n9LOP3.js} +1 -1
- package/lib/browser/{block-wrapper-iQwK-yXe.cjs → block-wrapper-1iQeE0Vh.cjs} +1 -1
- package/lib/browser/{block-wrapper-butCDDIj.js → block-wrapper-AnautAQY.js} +3 -3
- package/lib/browser/blocks/button/index.d.ts +1 -0
- package/lib/browser/blocks/columns/index.d.ts +1 -0
- package/lib/browser/blocks/custom-code/index.d.ts +1 -0
- package/lib/browser/blocks/embed/index.d.ts +1 -0
- package/lib/browser/blocks/form/form/index.d.ts +1 -0
- package/lib/browser/blocks/form/input/index.d.ts +1 -0
- package/lib/browser/blocks/form/select/index.d.ts +1 -0
- package/lib/browser/blocks/form/submit-button/index.d.ts +1 -0
- package/lib/browser/blocks/fragment/index.d.ts +1 -0
- package/lib/browser/blocks/image/index.d.ts +1 -0
- package/lib/browser/blocks/img/index.d.ts +1 -0
- package/lib/browser/blocks/raw-text/index.d.ts +1 -0
- package/lib/browser/blocks/section/index.d.ts +1 -0
- package/lib/browser/blocks/slot/index.d.ts +1 -0
- package/lib/browser/blocks/symbol/index.d.ts +1 -0
- package/lib/browser/blocks/text/index.d.ts +1 -0
- package/lib/browser/blocks/textarea/index.d.ts +1 -0
- package/lib/browser/blocks/video/index.d.ts +1 -0
- package/lib/browser/{component-ref-kihkcAvN.cjs → component-ref-IYvN3d9s.cjs} +1 -1
- package/lib/browser/{component-ref-Yt4g22Y_.js → component-ref-RDMHJDH-.js} +2 -2
- package/lib/browser/components/blocks/index.d.ts +1 -0
- package/lib/browser/components/content-variants/index.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-builder-search-params/index.d.ts +1 -4
- package/lib/browser/functions/is-editing.d.ts +2 -1
- package/lib/browser/functions/is-previewing.d.ts +2 -1
- package/lib/browser/{get-block-properties-MyFVpr2Z.js → get-block-properties-7dUtKLsz.js} +1 -1
- package/lib/browser/{get-block-properties-EQ9TZrpu.cjs → get-block-properties-Eu8lMQZC.cjs} +1 -1
- package/lib/browser/helpers/search/search.d.ts +5 -0
- package/lib/browser/{index-NmrV8zHs.cjs → index-d4LYRnwM.cjs} +22 -22
- package/lib/browser/index-helpers/blocks-exports.d.ts +10 -11
- package/lib/browser/{index-xEqK9i7_.js → index-zZaokacW.js} +426 -420
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.d.cts +5 -2
- package/lib/browser/index.d.mts +5 -2
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-rvdElrZN.cjs → repeated-block-9AUw_5dN.cjs} +1 -1
- package/lib/browser/{repeated-block-Grs88baa.js → repeated-block-b6-zxC9q.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles-Fb5UheyE.cjs → block-styles-EryVnVT2.cjs} +1 -1
- package/lib/{node/block-styles-kd5Jj3SW.js → edge/block-styles-kfRV8Nfe.js} +1 -1
- package/lib/{node/block-wrapper-OutTq66R.cjs → edge/block-wrapper-CZA5mJGL.cjs} +1 -1
- package/lib/edge/{block-wrapper-vq-bMcar.js → block-wrapper-Yc91mn-c.js} +3 -3
- package/lib/edge/blocks/button/index.d.ts +1 -0
- package/lib/edge/blocks/columns/index.d.ts +1 -0
- package/lib/edge/blocks/custom-code/index.d.ts +1 -0
- package/lib/edge/blocks/embed/index.d.ts +1 -0
- package/lib/edge/blocks/form/form/index.d.ts +1 -0
- package/lib/edge/blocks/form/input/index.d.ts +1 -0
- package/lib/edge/blocks/form/select/index.d.ts +1 -0
- package/lib/edge/blocks/form/submit-button/index.d.ts +1 -0
- package/lib/edge/blocks/fragment/index.d.ts +1 -0
- package/lib/edge/blocks/image/index.d.ts +1 -0
- package/lib/edge/blocks/img/index.d.ts +1 -0
- package/lib/edge/blocks/raw-text/index.d.ts +1 -0
- package/lib/edge/blocks/section/index.d.ts +1 -0
- package/lib/edge/blocks/slot/index.d.ts +1 -0
- package/lib/edge/blocks/symbol/index.d.ts +1 -0
- package/lib/edge/blocks/text/index.d.ts +1 -0
- package/lib/edge/blocks/textarea/index.d.ts +1 -0
- package/lib/edge/blocks/video/index.d.ts +1 -0
- package/lib/{node/component-ref-HcbvZD65.js → edge/component-ref-0Icv1DAo.js} +2 -2
- package/lib/{node/component-ref-PvIqAbtS.cjs → edge/component-ref-i9944Zps.cjs} +1 -1
- package/lib/edge/components/blocks/index.d.ts +1 -0
- package/lib/edge/components/content-variants/index.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-builder-search-params/index.d.ts +1 -4
- package/lib/edge/functions/is-editing.d.ts +2 -1
- package/lib/edge/functions/is-previewing.d.ts +2 -1
- package/lib/{node/get-block-properties-BlNLSvwI.js → edge/get-block-properties-3NfhpZAv.js} +1 -1
- package/lib/edge/{get-block-properties-EdjUbf7x.cjs → get-block-properties-79cWdk2l.cjs} +1 -1
- package/lib/edge/helpers/search/search.d.ts +5 -0
- package/lib/edge/{index-P7fymkW9.cjs → index-Vawma8OH.cjs} +30 -30
- package/lib/edge/{index-RXZhlIsq.js → index-bHy_c22G.js} +480 -474
- package/lib/edge/index-helpers/blocks-exports.d.ts +10 -11
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.d.cts +5 -2
- package/lib/edge/index.d.mts +5 -2
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-ibo5w6qy.cjs → repeated-block-IKmC4gcU.cjs} +1 -1
- package/lib/{node/repeated-block-Ww_Y0Q7Z.js → edge/repeated-block-OZzE5RYv.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles-MdVcqx1d.cjs → block-styles-gg6UCzQZ.cjs} +1 -1
- package/lib/{edge/block-styles-fRtdE0e9.js → node/block-styles-iIXlBuOj.js} +1 -1
- package/lib/node/{block-wrapper-XtMD8TEK.js → block-wrapper-2EdxXIso.js} +3 -3
- package/lib/{edge/block-wrapper-L46BmHXL.cjs → node/block-wrapper-LzsSTT7w.cjs} +1 -1
- package/lib/node/blocks/button/index.d.ts +1 -0
- package/lib/node/blocks/columns/index.d.ts +1 -0
- package/lib/node/blocks/custom-code/index.d.ts +1 -0
- package/lib/node/blocks/embed/index.d.ts +1 -0
- package/lib/node/blocks/form/form/index.d.ts +1 -0
- package/lib/node/blocks/form/input/index.d.ts +1 -0
- package/lib/node/blocks/form/select/index.d.ts +1 -0
- package/lib/node/blocks/form/submit-button/index.d.ts +1 -0
- package/lib/node/blocks/fragment/index.d.ts +1 -0
- package/lib/node/blocks/image/index.d.ts +1 -0
- package/lib/node/blocks/img/index.d.ts +1 -0
- package/lib/node/blocks/raw-text/index.d.ts +1 -0
- package/lib/node/blocks/section/index.d.ts +1 -0
- package/lib/node/blocks/slot/index.d.ts +1 -0
- package/lib/node/blocks/symbol/index.d.ts +1 -0
- package/lib/node/blocks/text/index.d.ts +1 -0
- package/lib/node/blocks/textarea/index.d.ts +1 -0
- package/lib/node/blocks/video/index.d.ts +1 -0
- package/lib/{edge/component-ref-brc13Tru.cjs → node/component-ref-QyoB6z9j.cjs} +1 -1
- package/lib/{edge/component-ref-_lH1Xl3_.js → node/component-ref-_Tts7Ixk.js} +2 -2
- package/lib/node/components/blocks/index.d.ts +1 -0
- package/lib/node/components/content-variants/index.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-builder-search-params/index.d.ts +1 -4
- package/lib/node/functions/is-editing.d.ts +2 -1
- package/lib/node/functions/is-previewing.d.ts +2 -1
- package/lib/{edge/get-block-properties-pPBPSsiy.js → node/get-block-properties-9PvYdu6g.js} +1 -1
- package/lib/node/{get-block-properties-Ji0ruaCy.cjs → get-block-properties-SoO0VRdP.cjs} +1 -1
- package/lib/node/helpers/search/search.d.ts +5 -0
- package/lib/node/{index-GiofhrQH.cjs → index-2NS4ZmVm.cjs} +6 -6
- package/lib/node/{index-dx-rqB58.js → index-8ZIeZjSs.js} +39 -33
- package/lib/node/index-helpers/blocks-exports.d.ts +10 -11
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.d.cts +5 -2
- package/lib/node/index.d.mts +5 -2
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-NSALbTMB.cjs → repeated-block-e41uch83.cjs} +1 -1
- package/lib/{edge/repeated-block-Bqv_g1t0.js → node/repeated-block-wVFWgrHC.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +4 -4
|
@@ -130,11 +130,17 @@ const MSG_PREFIX = "[Builder.io]: ", logger = {
|
|
|
130
130
|
function isBrowser() {
|
|
131
131
|
return typeof window < "u" && typeof document < "u";
|
|
132
132
|
}
|
|
133
|
+
const convertSearchParamsToQueryObject = (e) => {
|
|
134
|
+
const t = {};
|
|
135
|
+
return e.forEach((n, o) => {
|
|
136
|
+
t[o] = n;
|
|
137
|
+
}), t;
|
|
138
|
+
}, normalizeSearchParams = (e) => e instanceof URLSearchParams ? convertSearchParamsToQueryObject(e) : e, getSearchString = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
133
139
|
function isIframe() {
|
|
134
140
|
return isBrowser() && window.self !== window.top;
|
|
135
141
|
}
|
|
136
|
-
function isEditing() {
|
|
137
|
-
return isIframe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
142
|
+
function isEditing(e) {
|
|
143
|
+
return isIframe() && getSearchString(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
138
144
|
}
|
|
139
145
|
const getLocation = () => {
|
|
140
146
|
if (isBrowser()) {
|
|
@@ -655,22 +661,22 @@ const getComponent = ({
|
|
|
655
661
|
},
|
|
656
662
|
block: o
|
|
657
663
|
}));
|
|
658
|
-
}, BlockStyles = () => import("./block-styles-
|
|
664
|
+
}, BlockStyles = () => import("./block-styles-iIXlBuOj.js").then((e) => e.default).catch((e) => {
|
|
659
665
|
throw console.error(
|
|
660
666
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
661
667
|
e
|
|
662
668
|
), e;
|
|
663
|
-
}), BlockWrapper = () => import("./block-wrapper-
|
|
669
|
+
}), BlockWrapper = () => import("./block-wrapper-2EdxXIso.js").then((e) => e.default).catch((e) => {
|
|
664
670
|
throw console.error(
|
|
665
671
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
666
672
|
e
|
|
667
673
|
), e;
|
|
668
|
-
}), ComponentRef = () => import("./component-ref-
|
|
674
|
+
}), ComponentRef = () => import("./component-ref-_Tts7Ixk.js").then((e) => e.default).catch((e) => {
|
|
669
675
|
throw console.error(
|
|
670
676
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
671
677
|
e
|
|
672
678
|
), e;
|
|
673
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
679
|
+
}), RepeatedBlock = () => import("./repeated-block-wVFWgrHC.js").then((e) => e.default).catch((e) => {
|
|
674
680
|
throw console.error(
|
|
675
681
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
676
682
|
e
|
|
@@ -869,7 +875,7 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$l
|
|
|
869
875
|
});
|
|
870
876
|
function _sfc_render$k(e, t, n, o, r, s) {
|
|
871
877
|
return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
|
|
872
|
-
class: e.className + " component-
|
|
878
|
+
class: e.className + " component-1o2kztlxdt6",
|
|
873
879
|
"builder-path": e.path,
|
|
874
880
|
"builder-parent-id": e.parent,
|
|
875
881
|
style: e.styleProp,
|
|
@@ -883,7 +889,7 @@ function _sfc_render$k(e, t, n, o, r, s) {
|
|
|
883
889
|
_: 3
|
|
884
890
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
885
891
|
}
|
|
886
|
-
const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
892
|
+
const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$k], ["__scopeId", "data-v-6fabd81c"]]), _sfc_main$l = defineComponent({
|
|
887
893
|
name: "builder-blocks",
|
|
888
894
|
components: { BlocksWrapper, Block },
|
|
889
895
|
props: [
|
|
@@ -1097,7 +1103,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$
|
|
|
1097
1103
|
function _sfc_render$i(e, t, n, o, r, s) {
|
|
1098
1104
|
const i = resolveComponent("inlined-styles"), a = resolveComponent("blocks"), l = resolveComponent("dynamic-renderer");
|
|
1099
1105
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
1100
|
-
class: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
1106
|
+
class: `builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,
|
|
1101
1107
|
style: e.columnsCssVars
|
|
1102
1108
|
}, {}), [
|
|
1103
1109
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
|
|
@@ -1133,7 +1139,7 @@ function _sfc_render$i(e, t, n, o, r, s) {
|
|
|
1133
1139
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1134
1140
|
], 16);
|
|
1135
1141
|
}
|
|
1136
|
-
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
1142
|
+
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-0777f1ce"]]), _sfc_main$i = defineComponent({
|
|
1137
1143
|
name: "builder-fragment-component",
|
|
1138
1144
|
props: []
|
|
1139
1145
|
});
|
|
@@ -1221,7 +1227,7 @@ const _sfc_main$h = defineComponent({
|
|
|
1221
1227
|
}
|
|
1222
1228
|
}), _hoisted_1$8 = ["srcset"], _hoisted_2$3 = ["alt", "role", "src", "srcset", "sizes"], _hoisted_3$1 = {
|
|
1223
1229
|
key: 2,
|
|
1224
|
-
class: "div-
|
|
1230
|
+
class: "div-1be3j8m9ewb-2"
|
|
1225
1231
|
};
|
|
1226
1232
|
function _sfc_render$g(e, t, n, o, r, s) {
|
|
1227
1233
|
var i, a, l, d;
|
|
@@ -1242,7 +1248,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
|
|
|
1242
1248
|
...e.aspectRatioCss
|
|
1243
1249
|
}),
|
|
1244
1250
|
class: normalizeClass(
|
|
1245
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1251
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
1246
1252
|
),
|
|
1247
1253
|
src: e.image,
|
|
1248
1254
|
srcset: e.srcSetToUse,
|
|
@@ -1251,7 +1257,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
|
|
|
1251
1257
|
]),
|
|
1252
1258
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
|
|
1253
1259
|
key: 0,
|
|
1254
|
-
class: "builder-image-sizer div-
|
|
1260
|
+
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
1255
1261
|
style: normalizeStyle({
|
|
1256
1262
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1257
1263
|
})
|
|
@@ -1262,7 +1268,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
|
|
|
1262
1268
|
])) : createCommentVNode("", !0)
|
|
1263
1269
|
], 64);
|
|
1264
1270
|
}
|
|
1265
|
-
const Image = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
1271
|
+
const Image = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-8b807426"]]), _sfc_main$g = defineComponent({
|
|
1266
1272
|
name: "builder-section-component",
|
|
1267
1273
|
props: ["attributes", "maxWidth"],
|
|
1268
1274
|
data() {
|
|
@@ -2443,7 +2449,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
|
|
|
2443
2449
|
}
|
|
2444
2450
|
}), _hoisted_1$4 = ["validate", "action", "method", "name"], _hoisted_2$2 = {
|
|
2445
2451
|
key: 3,
|
|
2446
|
-
class: "builder-form-error-text pre-
|
|
2452
|
+
class: "builder-form-error-text pre-5vz8uirn7sc"
|
|
2447
2453
|
};
|
|
2448
2454
|
function _sfc_render$a(e, t, n, o, r, s) {
|
|
2449
2455
|
var l;
|
|
@@ -2485,7 +2491,7 @@ function _sfc_render$a(e, t, n, o, r, s) {
|
|
|
2485
2491
|
}, null, 8, ["blocks", "context"])) : createCommentVNode("", !0)
|
|
2486
2492
|
], 16, _hoisted_1$4);
|
|
2487
2493
|
}
|
|
2488
|
-
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-
|
|
2494
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-c1bb70af"]]), componentInfo$4 = {
|
|
2489
2495
|
name: "Form:Input",
|
|
2490
2496
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2491
2497
|
inputs: [
|
|
@@ -3094,12 +3100,7 @@ function flatten(e, t = null, n = ".") {
|
|
|
3094
3100
|
};
|
|
3095
3101
|
}, {});
|
|
3096
3102
|
}
|
|
3097
|
-
const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "options.",
|
|
3098
|
-
const t = {};
|
|
3099
|
-
return e.forEach((n, o) => {
|
|
3100
|
-
t[o] = n;
|
|
3101
|
-
}), t;
|
|
3102
|
-
}, getBuilderSearchParams = (e) => {
|
|
3103
|
+
const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUILDER_OPTIONS_PREFIX = "options.", getBuilderSearchParams = (e) => {
|
|
3103
3104
|
if (!e)
|
|
3104
3105
|
return {};
|
|
3105
3106
|
const t = normalizeSearchParams(e), n = {};
|
|
@@ -3114,7 +3115,7 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
3114
3115
|
return {};
|
|
3115
3116
|
const e = new URLSearchParams(window.location.search);
|
|
3116
3117
|
return getBuilderSearchParams(e);
|
|
3117
|
-
},
|
|
3118
|
+
}, isPositiveNumber = (e) => typeof e == "number" && !isNaN(e) && e >= 0, generateContentUrl = (e) => {
|
|
3118
3119
|
const {
|
|
3119
3120
|
limit: t = 30,
|
|
3120
3121
|
userAttributes: n,
|
|
@@ -3198,8 +3199,11 @@ async function fetchEntries(e) {
|
|
|
3198
3199
|
return logger.error("Error fetching data. ", t), null;
|
|
3199
3200
|
}
|
|
3200
3201
|
}
|
|
3201
|
-
function isPreviewing() {
|
|
3202
|
-
|
|
3202
|
+
function isPreviewing(e) {
|
|
3203
|
+
if (!isBrowser())
|
|
3204
|
+
return !1;
|
|
3205
|
+
const t = getSearchString(e || window.location.search);
|
|
3206
|
+
return isEditing(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
3203
3207
|
}
|
|
3204
3208
|
function uuidv4() {
|
|
3205
3209
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
@@ -3390,7 +3394,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3390
3394
|
const n = new URL(t.origin), o = n.hostname;
|
|
3391
3395
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3392
3396
|
}
|
|
3393
|
-
const SDK_VERSION = "1.0.
|
|
3397
|
+
const SDK_VERSION = "1.0.6", registry = {};
|
|
3394
3398
|
function register(e, t) {
|
|
3395
3399
|
let n = registry[e];
|
|
3396
3400
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -4330,7 +4334,9 @@ function _sfc_render(e, t, n, o, r, s) {
|
|
|
4330
4334
|
},
|
|
4331
4335
|
model: (c = e.symbol) == null ? void 0 : c.model,
|
|
4332
4336
|
content: e.contentToUse,
|
|
4333
|
-
linkComponent: e.builderLinkComponent
|
|
4337
|
+
linkComponent: e.builderLinkComponent,
|
|
4338
|
+
blocksWrapper: "div",
|
|
4339
|
+
contentWrapper: "div"
|
|
4334
4340
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
4335
4341
|
], 16);
|
|
4336
4342
|
}
|
|
@@ -4368,7 +4374,7 @@ const fetchBuilderProps = async (e) => {
|
|
|
4368
4374
|
export {
|
|
4369
4375
|
fetchEntries as A,
|
|
4370
4376
|
Block as B,
|
|
4371
|
-
|
|
4377
|
+
Columns as C,
|
|
4372
4378
|
fetchOneEntry as D,
|
|
4373
4379
|
dynamicRenderer as E,
|
|
4374
4380
|
Fragment as F,
|
|
@@ -4388,11 +4394,11 @@ export {
|
|
|
4388
4394
|
getStyle as h,
|
|
4389
4395
|
getClassPropName as i,
|
|
4390
4396
|
BuilderContext as j,
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4397
|
+
Button as k,
|
|
4398
|
+
Symbol$1 as l,
|
|
4399
|
+
Text as m,
|
|
4400
|
+
Blocks as n,
|
|
4401
|
+
ContentVariants as o,
|
|
4396
4402
|
isEditing as p,
|
|
4397
4403
|
isPreviewing as q,
|
|
4398
4404
|
createRegisterComponentMessage as r,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { default as Button } from '../blocks/button/
|
|
2
|
-
export { default as Columns } from '../blocks/columns/
|
|
3
|
-
export { default as Fragment } from '../blocks/fragment/
|
|
4
|
-
export { default as Image } from '../blocks/image/
|
|
5
|
-
export { default as Section } from '../blocks/section/
|
|
6
|
-
export { default as Symbol } from '../blocks/symbol/
|
|
7
|
-
export { default as Text } from '../blocks/text/
|
|
8
|
-
export { default as Video } from '../blocks/video/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { Blocks, Content };
|
|
1
|
+
export { default as Button } from '../blocks/button/index.js';
|
|
2
|
+
export { default as Columns } from '../blocks/columns/index.js';
|
|
3
|
+
export { default as Fragment } from '../blocks/fragment/index.js';
|
|
4
|
+
export { default as Image } from '../blocks/image/index.js';
|
|
5
|
+
export { default as Section } from '../blocks/section/index.js';
|
|
6
|
+
export { default as Symbol } from '../blocks/symbol/index.js';
|
|
7
|
+
export { default as Text } from '../blocks/text/index.js';
|
|
8
|
+
export { default as Video } from '../blocks/video/index.js';
|
|
9
|
+
export { default as Blocks } from '../components/blocks/index.js';
|
|
10
|
+
export { default as Content } from '../components/content-variants/index.js';
|
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-2NS4ZmVm.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.d.cts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './index-helpers/top-of-file.js';
|
|
2
|
+
/**
|
|
3
|
+
* In the React SDK, this file is marked with `use client`.
|
|
4
|
+
*/
|
|
2
5
|
export * from './index-helpers/blocks-exports.js';
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
7
|
+
* In the React SDK, this file is not marked with `use client`, to allow
|
|
8
|
+
* NextJS App Directory to use the SDK helper functions without issues.
|
|
6
9
|
*/
|
|
7
10
|
export * from './server-index.js';
|
package/lib/node/index.d.mts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './index-helpers/top-of-file.js';
|
|
2
|
+
/**
|
|
3
|
+
* In the React SDK, this file is marked with `use client`.
|
|
4
|
+
*/
|
|
2
5
|
export * from './index-helpers/blocks-exports.js';
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
7
|
+
* In the React SDK, this file is not marked with `use client`, to allow
|
|
8
|
+
* NextJS App Directory to use the SDK helper functions without issues.
|
|
6
9
|
*/
|
|
7
10
|
export * from './server-index.js';
|
package/lib/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-8ZIeZjSs.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-2NS4ZmVm.cjs"),r=()=>Promise.resolve().then(()=>require("./index-2NS4ZmVm.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-8ZIeZjSs.js";
|
|
3
|
+
const i = () => import("./index-8ZIeZjSs.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/node/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
1
|
+
.component-1o2kztlxdt6[data-v-6fabd81c]{display:flex;flex-direction:column;align-items:stretch}.div-2fnk003dqad[data-v-0777f1ce]{display:flex;line-height:normal}.img-1be3j8m9ewb[data-v-8b807426]{opacity:1;transition:opacity .2s ease-in-out}.div-1be3j8m9ewb[data-v-8b807426]{width:100%;pointer-events:none;font-size:0}.div-1be3j8m9ewb-2[data-v-8b807426]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-5vz8uirn7sc[data-v-c1bb70af]{padding:10px;color:red;text-align:center}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-vue",
|
|
3
3
|
"description": "Builder.io SDK for Vue",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.6",
|
|
5
5
|
"main": "./lib/node/index.cjs",
|
|
6
6
|
"module": "./lib/node/index.js",
|
|
7
7
|
"type": "module",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"exports": {
|
|
26
26
|
"./css": "./lib/browser/style.css",
|
|
27
27
|
"./nuxt": "./nuxt.js",
|
|
28
|
-
"./edge": {
|
|
28
|
+
"./bundle/edge": {
|
|
29
29
|
"import": "./lib/edge/index.js",
|
|
30
30
|
"require": "./lib/edge/index.cjs"
|
|
31
31
|
},
|
|
32
|
-
"./browser": {
|
|
32
|
+
"./bundle/browser": {
|
|
33
33
|
"import": "./lib/browser/index.js",
|
|
34
34
|
"require": "./lib/browser/index.cjs"
|
|
35
35
|
},
|
|
36
|
-
"./node": {
|
|
36
|
+
"./bundle/node": {
|
|
37
37
|
"import": "./lib/node/index.js",
|
|
38
38
|
"require": "./lib/node/index.cjs"
|
|
39
39
|
},
|