@builder.io/sdk-vue 1.0.0 → 1.0.3
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-pTO89liw.js → block-styles-ImJppKLu.js} +1 -1
- package/lib/browser/{block-styles-xFVr2LVx.cjs → block-styles-O6zs87OW.cjs} +1 -1
- package/lib/browser/{block-wrapper-J4YGTQ9x.js → block-wrapper-butCDDIj.js} +3 -3
- package/lib/browser/{block-wrapper-nOMXDx0Y.cjs → block-wrapper-iQwK-yXe.cjs} +1 -1
- package/lib/browser/{component-ref-GPVGIT1N.js → component-ref-Yt4g22Y_.js} +2 -2
- package/lib/browser/{component-ref-VeiQufiu.cjs → component-ref-kihkcAvN.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/types.d.ts +1 -1
- package/lib/browser/{get-block-properties-dx8LD-KR.cjs → get-block-properties-EQ9TZrpu.cjs} +1 -1
- package/lib/browser/{get-block-properties-a47aWFqT.js → get-block-properties-MyFVpr2Z.js} +1 -1
- package/lib/browser/{index-ZaX5899H.cjs → index-NmrV8zHs.cjs} +3 -3
- package/lib/browser/{index-e8lvkj5V.js → index-xEqK9i7_.js} +9 -9
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-3lJ7h_Ay.js → repeated-block-Grs88baa.js} +2 -2
- package/lib/browser/{repeated-block-uil2mBWH.cjs → repeated-block-rvdElrZN.cjs} +1 -1
- package/lib/edge/{block-styles-LxKQFWL2.cjs → block-styles-Fb5UheyE.cjs} +1 -1
- package/lib/{node/block-styles-XCIWJJ75.js → edge/block-styles-fRtdE0e9.js} +1 -1
- package/lib/{node/block-wrapper-ihfL_ZvL.cjs → edge/block-wrapper-L46BmHXL.cjs} +1 -1
- package/lib/edge/{block-wrapper-7fR5bpm2.js → block-wrapper-vq-bMcar.js} +3 -3
- package/lib/{node/component-ref-8YdSn9uh.js → edge/component-ref-_lH1Xl3_.js} +2 -2
- package/lib/{node/component-ref-H5yucpKm.cjs → edge/component-ref-brc13Tru.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/types.d.ts +1 -1
- package/lib/edge/{get-block-properties-8Aty_8NM.cjs → get-block-properties-EdjUbf7x.cjs} +1 -1
- package/lib/{node/get-block-properties-uVfJTMKq.js → edge/get-block-properties-pPBPSsiy.js} +1 -1
- package/lib/edge/{index-SdEmkbpT.cjs → index-P7fymkW9.cjs} +3 -3
- package/lib/edge/{index-RRXfj1MW.js → index-RXZhlIsq.js} +9 -9
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/{node/repeated-block-g0u6F-nm.js → edge/repeated-block-Bqv_g1t0.js} +2 -2
- package/lib/edge/{repeated-block-si68P1hO.cjs → repeated-block-ibo5w6qy.cjs} +1 -1
- package/lib/node/{block-styles-jxSt6h1z.cjs → block-styles-MdVcqx1d.cjs} +1 -1
- package/lib/{edge/block-styles-X86yzwrz.js → node/block-styles-kd5Jj3SW.js} +1 -1
- package/lib/{edge/block-wrapper-QB427htu.cjs → node/block-wrapper-OutTq66R.cjs} +1 -1
- package/lib/node/{block-wrapper-lL_F-Ydg.js → block-wrapper-XtMD8TEK.js} +3 -3
- package/lib/{edge/component-ref-jS82xaTc.js → node/component-ref-HcbvZD65.js} +2 -2
- package/lib/{edge/component-ref-G-Mi0YnS.cjs → node/component-ref-PvIqAbtS.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/types.d.ts +1 -1
- package/lib/{edge/get-block-properties-6IQyty6d.js → node/get-block-properties-BlNLSvwI.js} +1 -1
- package/lib/node/{get-block-properties-iCRHfrv6.cjs → get-block-properties-Ji0ruaCy.cjs} +1 -1
- package/lib/node/{index-X7D1axSt.cjs → index-GiofhrQH.cjs} +7 -7
- package/lib/node/{index-ocE5pkqX.js → index-dx-rqB58.js} +72 -69
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-vFKDId72.cjs → repeated-block-NSALbTMB.cjs} +1 -1
- package/lib/{edge/repeated-block-JQGeeLVs.js → node/repeated-block-Ww_Y0Q7Z.js} +2 -2
- package/package.json +1 -1
|
@@ -57,10 +57,10 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sf
|
|
|
57
57
|
name: "builder-button",
|
|
58
58
|
components: { DynamicRenderer },
|
|
59
59
|
props: [
|
|
60
|
-
"link",
|
|
61
|
-
"builderLinkComponent",
|
|
62
60
|
"attributes",
|
|
61
|
+
"link",
|
|
63
62
|
"openLinkInNewTab",
|
|
63
|
+
"builderLinkComponent",
|
|
64
64
|
"text"
|
|
65
65
|
],
|
|
66
66
|
data() {
|
|
@@ -70,7 +70,6 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sf
|
|
|
70
70
|
function _sfc_render$m(e, t, n, o, r, s) {
|
|
71
71
|
const i = resolveComponent("dynamic-renderer");
|
|
72
72
|
return openBlock(), createBlock(i, {
|
|
73
|
-
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
74
73
|
attributes: {
|
|
75
74
|
...e.filterAttrs(e.attributes, "v-on:", !1),
|
|
76
75
|
[e.getClassPropName()]: `${e.link ? "" : "builder-button"} ${e.attributes[e.getClassPropName()] || ""}`,
|
|
@@ -82,13 +81,14 @@ function _sfc_render$m(e, t, n, o, r, s) {
|
|
|
82
81
|
role: "button"
|
|
83
82
|
}
|
|
84
83
|
},
|
|
84
|
+
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
85
85
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
86
86
|
}, {
|
|
87
87
|
default: withCtx(() => [
|
|
88
88
|
createTextVNode(toDisplayString(e.text), 1)
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
|
-
}, 8, ["
|
|
91
|
+
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
92
92
|
}
|
|
93
93
|
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$m]]), key$1 = Symbol(), BuilderContext = {
|
|
94
94
|
Builder: {
|
|
@@ -249,7 +249,7 @@ try {
|
|
|
249
249
|
} catch (e) {
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const getSyncValName = (e) => `bldr_${e}_sync`, BUILDER_SET_STATE_NAME = "BUILDER_SET_STATE", INJECTED_IVM_GLOBAL = "BUILDER_IVM", REF_TO_PROXY_FN = `
|
|
253
253
|
var refToProxy = (obj) => {
|
|
254
254
|
if (typeof obj !== 'object' || obj === null) {
|
|
255
255
|
return obj;
|
|
@@ -295,9 +295,12 @@ if (typeof output === 'object' && output !== null) {
|
|
|
295
295
|
|
|
296
296
|
output;
|
|
297
297
|
`;
|
|
298
|
-
}, getIsolateContext = () =>
|
|
299
|
-
|
|
300
|
-
|
|
298
|
+
}, getIsolateContext = () => {
|
|
299
|
+
const e = safeDynamicRequire("isolated-vm");
|
|
300
|
+
return new e.Isolate({
|
|
301
|
+
memoryLimit: 128
|
|
302
|
+
}).createContextSync();
|
|
303
|
+
}, runInNode = ({
|
|
301
304
|
code: e,
|
|
302
305
|
builder: t,
|
|
303
306
|
context: n,
|
|
@@ -306,37 +309,37 @@ output;
|
|
|
306
309
|
rootSetState: s,
|
|
307
310
|
rootState: i
|
|
308
311
|
}) => {
|
|
309
|
-
const a = fastClone({
|
|
312
|
+
const a = safeDynamicRequire("isolated-vm"), l = fastClone({
|
|
310
313
|
...i,
|
|
311
314
|
...r
|
|
312
|
-
}),
|
|
315
|
+
}), d = getFunctionArguments({
|
|
313
316
|
builder: t,
|
|
314
317
|
context: n,
|
|
315
318
|
event: o,
|
|
316
|
-
state:
|
|
317
|
-
}),
|
|
318
|
-
|
|
319
|
+
state: l
|
|
320
|
+
}), u = getIsolateContext(), c = u.global;
|
|
321
|
+
c.setSync("global", c.derefInto()), c.setSync("log", function(...m) {
|
|
319
322
|
console.log(...m);
|
|
320
|
-
}),
|
|
321
|
-
set(i, m,
|
|
322
|
-
}),
|
|
323
|
-
const
|
|
323
|
+
}), c.setSync(BUILDER_SET_STATE_NAME, function(m, b) {
|
|
324
|
+
set(i, m, b), s == null || s(i);
|
|
325
|
+
}), d.forEach(([m, b]) => {
|
|
326
|
+
const k = typeof b == "object" ? new a.Reference(
|
|
324
327
|
// workaround: methods with default values for arguments is not being cloned over
|
|
325
328
|
m === "builder" ? {
|
|
326
|
-
...
|
|
327
|
-
getUserAttributes: () =>
|
|
328
|
-
} :
|
|
329
|
+
...b,
|
|
330
|
+
getUserAttributes: () => b.getUserAttributes()
|
|
331
|
+
} : b
|
|
329
332
|
) : null;
|
|
330
|
-
|
|
331
|
-
}),
|
|
332
|
-
const
|
|
333
|
+
c.setSync(getSyncValName(m), k);
|
|
334
|
+
}), c.setSync(INJECTED_IVM_GLOBAL, a);
|
|
335
|
+
const p = processCode({
|
|
333
336
|
code: e,
|
|
334
|
-
args:
|
|
335
|
-
}),
|
|
337
|
+
args: d
|
|
338
|
+
}), f = u.evalSync(p);
|
|
336
339
|
try {
|
|
337
|
-
return JSON.parse(
|
|
340
|
+
return JSON.parse(f);
|
|
338
341
|
} catch {
|
|
339
|
-
return
|
|
342
|
+
return f;
|
|
340
343
|
}
|
|
341
344
|
}, checkIsDefined = (e) => e != null;
|
|
342
345
|
function isNodeRuntime() {
|
|
@@ -582,8 +585,8 @@ function bindScrollInViewAnimation(e) {
|
|
|
582
585
|
leading: !1
|
|
583
586
|
});
|
|
584
587
|
function a(u) {
|
|
585
|
-
const c = u.getBoundingClientRect(), p = window.innerHeight,
|
|
586
|
-
return c.bottom >
|
|
588
|
+
const c = u.getBoundingClientRect(), p = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * p;
|
|
589
|
+
return c.bottom > m && c.top < p - m;
|
|
587
590
|
}
|
|
588
591
|
const l = e.steps[0].styles;
|
|
589
592
|
function d() {
|
|
@@ -652,22 +655,22 @@ const getComponent = ({
|
|
|
652
655
|
},
|
|
653
656
|
block: o
|
|
654
657
|
}));
|
|
655
|
-
}, BlockStyles = () => import("./block-styles-
|
|
658
|
+
}, BlockStyles = () => import("./block-styles-kd5Jj3SW.js").then((e) => e.default).catch((e) => {
|
|
656
659
|
throw console.error(
|
|
657
660
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
658
661
|
e
|
|
659
662
|
), e;
|
|
660
|
-
}), BlockWrapper = () => import("./block-wrapper-
|
|
663
|
+
}), BlockWrapper = () => import("./block-wrapper-XtMD8TEK.js").then((e) => e.default).catch((e) => {
|
|
661
664
|
throw console.error(
|
|
662
665
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
663
666
|
e
|
|
664
667
|
), e;
|
|
665
|
-
}), ComponentRef = () => import("./component-ref-
|
|
668
|
+
}), ComponentRef = () => import("./component-ref-HcbvZD65.js").then((e) => e.default).catch((e) => {
|
|
666
669
|
throw console.error(
|
|
667
670
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
668
671
|
e
|
|
669
672
|
), e;
|
|
670
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
673
|
+
}), RepeatedBlock = () => import("./repeated-block-Ww_Y0Q7Z.js").then((e) => e.default).catch((e) => {
|
|
671
674
|
throw console.error(
|
|
672
675
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
673
676
|
e
|
|
@@ -778,8 +781,8 @@ function _sfc_render$l(e, t, n, o, r, s) {
|
|
|
778
781
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
779
782
|
isInteractive: e.componentRefProps.isInteractive
|
|
780
783
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
781
|
-
e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (p,
|
|
782
|
-
key:
|
|
784
|
+
e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (p, f) => (openBlock(), createBlock(u, {
|
|
785
|
+
key: f,
|
|
783
786
|
repeatContext: p.context,
|
|
784
787
|
block: p.block,
|
|
785
788
|
registeredComponents: e.registeredComponents,
|
|
@@ -803,7 +806,7 @@ function _sfc_render$l(e, t, n, o, r, s) {
|
|
|
803
806
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
804
807
|
isInteractive: e.componentRefProps.isInteractive
|
|
805
808
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
806
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (p,
|
|
809
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (p, f) => (openBlock(), createBlock(l, {
|
|
807
810
|
key: p.id,
|
|
808
811
|
block: p,
|
|
809
812
|
context: e.childrenContext,
|
|
@@ -2340,25 +2343,25 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
|
|
|
2340
2343
|
e.currentTarget.querySelectorAll("input,select,textarea")
|
|
2341
2344
|
).filter((c) => !!c.name).map((c) => {
|
|
2342
2345
|
let p;
|
|
2343
|
-
const
|
|
2346
|
+
const f = c.name;
|
|
2344
2347
|
if (c instanceof HTMLInputElement)
|
|
2345
2348
|
if (c.type === "radio") {
|
|
2346
2349
|
if (c.checked)
|
|
2347
2350
|
return p = c.name, {
|
|
2348
|
-
key:
|
|
2351
|
+
key: f,
|
|
2349
2352
|
value: p
|
|
2350
2353
|
};
|
|
2351
2354
|
} else if (c.type === "checkbox")
|
|
2352
2355
|
p = c.checked;
|
|
2353
2356
|
else if (c.type === "number" || c.type === "range") {
|
|
2354
|
-
const
|
|
2355
|
-
isNaN(
|
|
2357
|
+
const m = c.valueAsNumber;
|
|
2358
|
+
isNaN(m) || (p = m);
|
|
2356
2359
|
} else
|
|
2357
2360
|
c.type === "file" ? p = c.files : p = c.value;
|
|
2358
2361
|
else
|
|
2359
2362
|
p = c.value;
|
|
2360
2363
|
return {
|
|
2361
|
-
key:
|
|
2364
|
+
key: f,
|
|
2362
2365
|
value: p
|
|
2363
2366
|
};
|
|
2364
2367
|
});
|
|
@@ -2369,8 +2372,8 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
|
|
|
2369
2372
|
s = i;
|
|
2370
2373
|
else {
|
|
2371
2374
|
const c = {};
|
|
2372
|
-
Array.from(a).forEach(({ value: p, key:
|
|
2373
|
-
set(c,
|
|
2375
|
+
Array.from(a).forEach(({ value: p, key: f }) => {
|
|
2376
|
+
set(c, f, p);
|
|
2374
2377
|
}), s = JSON.stringify(c);
|
|
2375
2378
|
}
|
|
2376
2379
|
l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
|
|
@@ -2395,22 +2398,22 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b
|
|
|
2395
2398
|
).then(
|
|
2396
2399
|
async (c) => {
|
|
2397
2400
|
let p;
|
|
2398
|
-
const
|
|
2399
|
-
if (
|
|
2400
|
-
let
|
|
2401
|
-
|
|
2402
|
-
formErrorMessage:
|
|
2401
|
+
const f = c.headers.get("content-type");
|
|
2402
|
+
if (f && f.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
|
|
2403
|
+
let m = get(p, this.errorMessagePath);
|
|
2404
|
+
m && (typeof m != "string" && (m = JSON.stringify(m)), this.formErrorMessage = m, this.mergeNewRootState({
|
|
2405
|
+
formErrorMessage: m
|
|
2403
2406
|
}));
|
|
2404
2407
|
}
|
|
2405
2408
|
if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
2406
|
-
const
|
|
2409
|
+
const m = new CustomEvent("submit:success", {
|
|
2407
2410
|
detail: {
|
|
2408
2411
|
res: c,
|
|
2409
2412
|
body: p
|
|
2410
2413
|
}
|
|
2411
2414
|
});
|
|
2412
2415
|
if (this.$refs.formRef) {
|
|
2413
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
2416
|
+
if (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented)
|
|
2414
2417
|
return;
|
|
2415
2418
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
2416
2419
|
}
|
|
@@ -3125,21 +3128,21 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
3125
3128
|
omit: u,
|
|
3126
3129
|
offset: c,
|
|
3127
3130
|
cacheSeconds: p,
|
|
3128
|
-
staleCacheSeconds:
|
|
3129
|
-
sort:
|
|
3131
|
+
staleCacheSeconds: f,
|
|
3132
|
+
sort: m,
|
|
3130
3133
|
includeUnpublished: b
|
|
3131
3134
|
} = e;
|
|
3132
3135
|
if (!s)
|
|
3133
3136
|
throw new Error("Missing API key");
|
|
3134
3137
|
if (!["v3"].includes(l))
|
|
3135
3138
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
|
|
3136
|
-
const
|
|
3137
|
-
if (g.searchParams.set("apiKey", s), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(
|
|
3139
|
+
const k = t !== 1, g = new URL(`https://cdn.builder.io/api/${l}/content/${r}`);
|
|
3140
|
+
if (g.searchParams.set("apiKey", s), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(k)), g.searchParams.set("includeRefs", String(!0)), a && g.searchParams.set("locale", a), i && g.searchParams.set("enrich", String(i)), g.searchParams.set("omit", u || "meta.componentsUsed"), d && g.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && g.searchParams.set("offset", String(Math.floor(c))), typeof b == "boolean" && g.searchParams.set("includeUnpublished", String(b)), p && isPositiveNumber(p) && g.searchParams.set("cacheSeconds", String(p)), f && isPositiveNumber(f) && g.searchParams.set("staleCacheSeconds", String(f)), m) {
|
|
3138
3141
|
const y = flatten({
|
|
3139
|
-
sort:
|
|
3142
|
+
sort: m
|
|
3140
3143
|
});
|
|
3141
|
-
for (const
|
|
3142
|
-
g.searchParams.set(
|
|
3144
|
+
for (const S in y)
|
|
3145
|
+
g.searchParams.set(S, JSON.stringify(y[S]));
|
|
3143
3146
|
}
|
|
3144
3147
|
const v = {
|
|
3145
3148
|
...getBuilderSearchParamsFromWindow(),
|
|
@@ -3151,8 +3154,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
3151
3154
|
const y = flatten({
|
|
3152
3155
|
query: o
|
|
3153
3156
|
});
|
|
3154
|
-
for (const
|
|
3155
|
-
g.searchParams.set(
|
|
3157
|
+
for (const S in y)
|
|
3158
|
+
g.searchParams.set(S, JSON.stringify(y[S]));
|
|
3156
3159
|
}
|
|
3157
3160
|
return g;
|
|
3158
3161
|
}, checkContentHasResults = (e) => "results" in e;
|
|
@@ -3387,7 +3390,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3387
3390
|
const n = new URL(t.origin), o = n.hostname;
|
|
3388
3391
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3389
3392
|
}
|
|
3390
|
-
const SDK_VERSION = "1.0.
|
|
3393
|
+
const SDK_VERSION = "1.0.3", registry = {};
|
|
3391
3394
|
function register(e, t) {
|
|
3392
3395
|
let n = registry[e];
|
|
3393
3396
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -3461,8 +3464,8 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
3461
3464
|
let c, p = null;
|
|
3462
3465
|
try {
|
|
3463
3466
|
c = u.apply(null, l);
|
|
3464
|
-
} catch (
|
|
3465
|
-
p =
|
|
3467
|
+
} catch (f) {
|
|
3468
|
+
p = f;
|
|
3466
3469
|
}
|
|
3467
3470
|
p ? (s = window.parent) == null || s.postMessage({
|
|
3468
3471
|
type: "builder.evaluateError",
|
|
@@ -3470,13 +3473,13 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
3470
3473
|
id: d,
|
|
3471
3474
|
error: p.message
|
|
3472
3475
|
}
|
|
3473
|
-
}, "*") : c && typeof c.then == "function" ? c.then((
|
|
3474
|
-
var
|
|
3475
|
-
(
|
|
3476
|
+
}, "*") : c && typeof c.then == "function" ? c.then((f) => {
|
|
3477
|
+
var m;
|
|
3478
|
+
(m = window.parent) == null || m.postMessage({
|
|
3476
3479
|
type: "builder.evaluateResult",
|
|
3477
3480
|
data: {
|
|
3478
3481
|
id: d,
|
|
3479
|
-
result:
|
|
3482
|
+
result: f
|
|
3480
3483
|
}
|
|
3481
3484
|
}, "*");
|
|
3482
3485
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
@@ -4086,7 +4089,7 @@ function _sfc_render$2(e, t, n, o, r, s) {
|
|
|
4086
4089
|
trustedHosts: e.trustedHosts
|
|
4087
4090
|
}, {}), {
|
|
4088
4091
|
default: withCtx(() => {
|
|
4089
|
-
var u, c, p,
|
|
4092
|
+
var u, c, p, f, m, b, k;
|
|
4090
4093
|
return [
|
|
4091
4094
|
e.isSsrAbTest ? (openBlock(), createBlock(i, {
|
|
4092
4095
|
key: 0,
|
|
@@ -4096,10 +4099,10 @@ function _sfc_render$2(e, t, n, o, r, s) {
|
|
|
4096
4099
|
key: 1,
|
|
4097
4100
|
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
4098
4101
|
cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
|
|
4099
|
-
customFonts: (
|
|
4102
|
+
customFonts: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4100
4103
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : createCommentVNode("", !0),
|
|
4101
4104
|
createVNode(l, {
|
|
4102
|
-
blocks: (
|
|
4105
|
+
blocks: (k = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : k.blocks,
|
|
4103
4106
|
context: e.builderContextSignal,
|
|
4104
4107
|
registeredComponents: e.registeredComponents,
|
|
4105
4108
|
linkComponent: e.linkComponent
|
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-GiofhrQH.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 { k as a, l as t, m as r, C as o, F as i, I as n, S as c, n as g, o as 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 { k as a, l as t, m as r, C as o, F as i, I as n, S as c, n as g, o as 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-dx-rqB58.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-GiofhrQH.cjs"),r=()=>Promise.resolve().then(()=>require("./index-GiofhrQH.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-dx-rqB58.js";
|
|
3
|
+
const i = () => import("./index-dx-rqB58.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
|