@builder.io/sdk-vue 0.11.5 → 0.12.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.547deda7.cjs → block-styles.0a1c13cc.cjs} +1 -1
- package/lib/browser/{block-styles.7d354d56.js → block-styles.15daad04.js} +2 -2
- package/lib/browser/{block-wrapper.3999844a.cjs → block-wrapper.3372ead3.cjs} +1 -1
- package/lib/browser/{block-wrapper.c1399cc7.js → block-wrapper.684870c2.js} +3 -3
- package/lib/browser/blocks/slot/component-info.d.ts +2 -0
- package/lib/browser/blocks/slot/slot.vue.d.ts +19 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/browser/{component-ref.6369d7ce.cjs → component-ref.35876089.cjs} +1 -1
- package/lib/browser/{component-ref.1980ea37.js → component-ref.408ec744.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{css.f13f9668.cjs → css.56c01a0f.cjs} +1 -1
- package/lib/browser/{css.c5dbc2fb.js → css.e56cc923.js} +1 -1
- package/lib/browser/{get-block-actions.9e78e08c.js → get-block-actions.5749164d.js} +2 -2
- package/lib/browser/{get-block-actions.be9b24f4.cjs → get-block-actions.786a0830.cjs} +1 -1
- package/lib/browser/{index.68f1cdc9.js → index.1c3cd66d.js} +351 -308
- package/lib/browser/{index.2d468b02.cjs → index.caecdbca.cjs} +16 -16
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block.d0d6536d.js → repeated-block.3aa48114.js} +2 -2
- package/lib/browser/{repeated-block.5177bff6.cjs → repeated-block.f3af0b09.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles.7036106d.cjs → block-styles.1d36e17e.cjs} +1 -1
- package/lib/edge/{block-styles.9a6f909a.js → block-styles.baf84624.js} +2 -2
- package/lib/edge/{block-wrapper.f0edc57e.js → block-wrapper.c2e6a717.js} +3 -3
- package/lib/edge/{block-wrapper.87aa285f.cjs → block-wrapper.e35eb0ba.cjs} +1 -1
- package/lib/edge/blocks/slot/component-info.d.ts +2 -0
- package/lib/edge/blocks/slot/slot.vue.d.ts +19 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/edge/{component-ref.fae2958f.js → component-ref.a0bf7c30.js} +3 -3
- package/lib/edge/{component-ref.06dc7198.cjs → component-ref.b38c0a17.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/css.33f6a0e5.cjs → edge/css.817ffaca.cjs} +1 -1
- package/lib/{node/css.7b7d6045.js → edge/css.c9cd980b.js} +1 -1
- package/lib/{node/get-block-actions.da279770.js → edge/get-block-actions.59e642f2.js} +2 -2
- package/lib/edge/{get-block-actions.de0e3a7c.cjs → get-block-actions.c4334ce2.cjs} +1 -1
- package/lib/edge/{index.b0c8c979.cjs → index.7f2747c7.cjs} +21 -21
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/{index.b3a91e74.js → index.d2eea20b.js} +635 -592
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block.cddb5408.js → repeated-block.d2e0b56c.js} +2 -2
- package/lib/edge/{repeated-block.4e5fe8a8.cjs → repeated-block.d802e6a0.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles.17b53563.cjs → block-styles.544d0fa5.cjs} +1 -1
- package/lib/node/{block-styles.d0b46cf1.js → block-styles.9378e041.js} +2 -2
- package/lib/node/{block-wrapper.beb0b154.js → block-wrapper.20c333af.js} +3 -3
- package/lib/node/{block-wrapper.ba583c5e.cjs → block-wrapper.498bd360.cjs} +1 -1
- package/lib/node/blocks/slot/component-info.d.ts +2 -0
- package/lib/node/blocks/slot/slot.vue.d.ts +19 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/node/{component-ref.d338ff58.cjs → component-ref.36955ca9.cjs} +1 -1
- package/lib/node/{component-ref.3600c82e.js → component-ref.85cf8aff.js} +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/css.b1595c13.js → node/css.43e589b6.js} +1 -1
- package/lib/{edge/css.d468e49f.cjs → node/css.b8f02dce.cjs} +1 -1
- package/lib/{edge/get-block-actions.6c32fbdc.js → node/get-block-actions.9542f4f9.js} +2 -2
- package/lib/node/{get-block-actions.a9c7f214.cjs → get-block-actions.c427b339.cjs} +1 -1
- package/lib/node/{index.ff428090.cjs → index.52366dfd.cjs} +6 -6
- package/lib/node/{index.7a458aa4.js → index.73c9ec13.js} +132 -89
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block.5d392271.cjs → repeated-block.182fc93f.cjs} +1 -1
- package/lib/node/{repeated-block.3c6c86a9.js → repeated-block.6972ade9.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ function filterAttrs(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
12
|
}
|
|
13
|
-
const _sfc_main$
|
|
13
|
+
const _sfc_main$k = defineComponent({
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
@@ -33,7 +33,7 @@ const _sfc_main$j = defineComponent({
|
|
|
33
33
|
n[o] = r;
|
|
34
34
|
return n;
|
|
35
35
|
}, _hoisted_1$6 = ["href", "target"];
|
|
36
|
-
function _sfc_render$
|
|
36
|
+
function _sfc_render$i(e, t, n, o, r, i) {
|
|
37
37
|
return e.link ? (openBlock(), createElementBlock("a", mergeProps({
|
|
38
38
|
key: 0,
|
|
39
39
|
href: e.link,
|
|
@@ -45,7 +45,7 @@ function _sfc_render$h(e, t, n, o, r, i) {
|
|
|
45
45
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
46
46
|
}, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), toDisplayString(e.text), 17));
|
|
47
47
|
}
|
|
48
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), key$1 = Symbol(), BuilderContext = {
|
|
49
49
|
Builder: {
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
@@ -262,14 +262,14 @@ output;
|
|
|
262
262
|
) : null;
|
|
263
263
|
d.setSync(getSyncValName(m), b);
|
|
264
264
|
}), d.setSync(INJECTED_IVM_GLOBAL, ivm);
|
|
265
|
-
const
|
|
265
|
+
const u = processCode({
|
|
266
266
|
code: e,
|
|
267
267
|
args: c
|
|
268
|
-
}),
|
|
268
|
+
}), p = l.evalSync(u);
|
|
269
269
|
try {
|
|
270
|
-
return JSON.parse(
|
|
270
|
+
return JSON.parse(p);
|
|
271
271
|
} catch {
|
|
272
|
-
return
|
|
272
|
+
return p;
|
|
273
273
|
}
|
|
274
274
|
}, chooseBrowserOrServerEval = (e) => isBrowser() ? runInBrowser(e) : runInNode(e);
|
|
275
275
|
function evaluate({
|
|
@@ -410,27 +410,27 @@ const EMPTY_HTML_ELEMENTS = ["area", "base", "br", "col", "embed", "hr", "img",
|
|
|
410
410
|
},
|
|
411
411
|
block: o
|
|
412
412
|
}));
|
|
413
|
-
}, BlockStyles = () => import("./block-styles.
|
|
413
|
+
}, BlockStyles = () => import("./block-styles.9378e041.js").then((e) => e.default).catch((e) => {
|
|
414
414
|
throw console.error(
|
|
415
415
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
416
416
|
e
|
|
417
417
|
), e;
|
|
418
|
-
}), BlockWrapper = () => import("./block-wrapper.
|
|
418
|
+
}), BlockWrapper = () => import("./block-wrapper.20c333af.js").then((e) => e.default).catch((e) => {
|
|
419
419
|
throw console.error(
|
|
420
420
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
421
421
|
e
|
|
422
422
|
), e;
|
|
423
|
-
}), ComponentRef = () => import("./component-ref.
|
|
423
|
+
}), ComponentRef = () => import("./component-ref.85cf8aff.js").then((e) => e.default).catch((e) => {
|
|
424
424
|
throw console.error(
|
|
425
425
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
426
426
|
e
|
|
427
427
|
), e;
|
|
428
|
-
}), RepeatedBlock = () => import("./repeated-block.
|
|
428
|
+
}), RepeatedBlock = () => import("./repeated-block.6972ade9.js").then((e) => e.default).catch((e) => {
|
|
429
429
|
throw console.error(
|
|
430
430
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
431
431
|
e
|
|
432
432
|
), e;
|
|
433
|
-
}), _sfc_main$
|
|
433
|
+
}), _sfc_main$j = defineComponent({
|
|
434
434
|
name: "block",
|
|
435
435
|
components: {
|
|
436
436
|
BlockStyles: defineAsyncComponent(BlockStyles),
|
|
@@ -502,15 +502,15 @@ const EMPTY_HTML_ELEMENTS = ["area", "base", "br", "col", "embed", "hr", "img",
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
});
|
|
505
|
-
function _sfc_render$
|
|
506
|
-
var
|
|
505
|
+
function _sfc_render$h(e, t, n, o, r, i) {
|
|
506
|
+
var u;
|
|
507
507
|
const s = resolveComponent("block-styles"), a = resolveComponent("block-wrapper"), c = resolveComponent("repeated-block"), l = resolveComponent("component-ref"), d = resolveComponent("block", !0);
|
|
508
508
|
return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
509
509
|
createVNode(s, {
|
|
510
510
|
block: e.block,
|
|
511
511
|
context: e.context
|
|
512
512
|
}, null, 8, ["block", "context"]),
|
|
513
|
-
(
|
|
513
|
+
(u = e.blockComponent) != null && u.noWrap ? (openBlock(), createBlock(l, {
|
|
514
514
|
key: 1,
|
|
515
515
|
componentRef: e.componentRefProps.componentRef,
|
|
516
516
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -528,10 +528,10 @@ function _sfc_render$g(e, t, n, o, r, i) {
|
|
|
528
528
|
context: e.context,
|
|
529
529
|
hasChildren: !1
|
|
530
530
|
}, null, 8, ["Wrapper", "block", "context"])) : createCommentVNode("v-if", !0),
|
|
531
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (
|
|
531
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (p, m) => (openBlock(), createBlock(c, {
|
|
532
532
|
key: m,
|
|
533
|
-
repeatContext:
|
|
534
|
-
block:
|
|
533
|
+
repeatContext: p.context,
|
|
534
|
+
block: p.block,
|
|
535
535
|
registeredComponents: e.registeredComponents
|
|
536
536
|
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0),
|
|
537
537
|
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (openBlock(), createBlock(a, {
|
|
@@ -552,9 +552,9 @@ function _sfc_render$g(e, t, n, o, r, i) {
|
|
|
552
552
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
553
553
|
isInteractive: e.componentRefProps.isInteractive
|
|
554
554
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
555
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (
|
|
556
|
-
key:
|
|
557
|
-
block:
|
|
555
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (p, m) => (openBlock(), createBlock(d, {
|
|
556
|
+
key: p.id,
|
|
557
|
+
block: p,
|
|
558
558
|
context: e.childrenContext,
|
|
559
559
|
registeredComponents: e.registeredComponents
|
|
560
560
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128))
|
|
@@ -564,10 +564,10 @@ function _sfc_render$g(e, t, n, o, r, i) {
|
|
|
564
564
|
], 64))
|
|
565
565
|
], 64)) : createCommentVNode("v-if", !0);
|
|
566
566
|
}
|
|
567
|
-
const Block = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
567
|
+
const Block = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$h], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), block = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
568
568
|
__proto__: null,
|
|
569
569
|
default: Block
|
|
570
|
-
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$
|
|
570
|
+
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$i = defineComponent({
|
|
571
571
|
name: "builder-blocks-wrapper",
|
|
572
572
|
props: [
|
|
573
573
|
"BlocksWrapper",
|
|
@@ -621,9 +621,9 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
}), blocksWrapper_vue_vue_type_style_index_0_scoped_1f8aab9f_lang = "";
|
|
624
|
-
function _sfc_render$
|
|
624
|
+
function _sfc_render$g(e, t, n, o, r, i) {
|
|
625
625
|
return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
|
|
626
|
-
class: e._classStringToObject(e.className + " component-
|
|
626
|
+
class: e._classStringToObject(e.className + " component-1k2igrjdg3x"),
|
|
627
627
|
"builder-path": e.path,
|
|
628
628
|
"builder-parent-id": e.parent,
|
|
629
629
|
style: e.styleProp,
|
|
@@ -637,7 +637,7 @@ function _sfc_render$f(e, t, n, o, r, i) {
|
|
|
637
637
|
_: 3
|
|
638
638
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
639
639
|
}
|
|
640
|
-
const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
640
|
+
const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$g], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), _sfc_main$h = defineComponent({
|
|
641
641
|
name: "builder-blocks",
|
|
642
642
|
components: { BlocksWrapper, Block },
|
|
643
643
|
props: [
|
|
@@ -653,7 +653,7 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_
|
|
|
653
653
|
componentsContext: ComponentsContext.key
|
|
654
654
|
}
|
|
655
655
|
});
|
|
656
|
-
function _sfc_render$
|
|
656
|
+
function _sfc_render$f(e, t, n, o, r, i) {
|
|
657
657
|
var c, l;
|
|
658
658
|
const s = resolveComponent("block"), a = resolveComponent("blocks-wrapper");
|
|
659
659
|
return openBlock(), createBlock(a, {
|
|
@@ -665,7 +665,7 @@ function _sfc_render$e(e, t, n, o, r, i) {
|
|
|
665
665
|
BlocksWrapperProps: (l = e.context) == null ? void 0 : l.BlocksWrapperProps
|
|
666
666
|
}, {
|
|
667
667
|
default: withCtx(() => [
|
|
668
|
-
e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (d,
|
|
668
|
+
e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (d, u) => (openBlock(), createBlock(s, {
|
|
669
669
|
key: d.id,
|
|
670
670
|
block: d,
|
|
671
671
|
context: e.context || e.builderContext,
|
|
@@ -675,13 +675,13 @@ function _sfc_render$e(e, t, n, o, r, i) {
|
|
|
675
675
|
_: 1
|
|
676
676
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
677
677
|
}
|
|
678
|
-
const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
678
|
+
const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$f], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), _sfc_main$g = defineComponent({
|
|
679
679
|
render() {
|
|
680
680
|
return h("style", { id: this.id, innerHTML: this.styles });
|
|
681
681
|
},
|
|
682
682
|
name: "inlined-styles",
|
|
683
683
|
props: ["styles", "id"]
|
|
684
|
-
}), InlinedStyles = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
684
|
+
}), InlinedStyles = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), SIZES = {
|
|
685
685
|
small: {
|
|
686
686
|
min: 320,
|
|
687
687
|
default: 321,
|
|
@@ -722,7 +722,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$
|
|
|
722
722
|
min: i,
|
|
723
723
|
default: i + 1
|
|
724
724
|
}, n;
|
|
725
|
-
}, _sfc_main$
|
|
725
|
+
}, _sfc_main$f = defineComponent({
|
|
726
726
|
name: "builder-columns",
|
|
727
727
|
components: { InlinedStyles, Blocks },
|
|
728
728
|
props: [
|
|
@@ -843,7 +843,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
}), columns_vue_vue_type_style_index_0_scoped_7be099dc_lang = "";
|
|
846
|
-
function _sfc_render$
|
|
846
|
+
function _sfc_render$e(e, t, n, o, r, i) {
|
|
847
847
|
const s = resolveComponent("inlined-styles"), a = resolveComponent("blocks");
|
|
848
848
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
849
849
|
class: e._classStringToObject(
|
|
@@ -873,16 +873,16 @@ function _sfc_render$d(e, t, n, o, r, i) {
|
|
|
873
873
|
], 16))), 128))
|
|
874
874
|
], 16);
|
|
875
875
|
}
|
|
876
|
-
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
876
|
+
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), _sfc_main$e = defineComponent({
|
|
877
877
|
name: "builder-fragment-component",
|
|
878
878
|
props: []
|
|
879
879
|
});
|
|
880
|
-
function _sfc_render$
|
|
880
|
+
function _sfc_render$d(e, t, n, o, r, i) {
|
|
881
881
|
return openBlock(), createElementBlock("span", null, [
|
|
882
882
|
renderSlot(e.$slots, "default")
|
|
883
883
|
]);
|
|
884
884
|
}
|
|
885
|
-
const Fragment = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
885
|
+
const Fragment = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
|
|
886
886
|
function removeProtocol(e) {
|
|
887
887
|
return e.replace(/http(s)?:/, "");
|
|
888
888
|
}
|
|
@@ -913,7 +913,7 @@ function getSrcSet(e) {
|
|
|
913
913
|
}
|
|
914
914
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [getShopifyImageUrl(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
915
915
|
}
|
|
916
|
-
const _sfc_main$
|
|
916
|
+
const _sfc_main$d = defineComponent({
|
|
917
917
|
name: "builder-image",
|
|
918
918
|
props: [
|
|
919
919
|
"image",
|
|
@@ -972,7 +972,7 @@ const _sfc_main$c = defineComponent({
|
|
|
972
972
|
key: 2,
|
|
973
973
|
class: "div-1be3j8m9ewb-2"
|
|
974
974
|
};
|
|
975
|
-
function _sfc_render$
|
|
975
|
+
function _sfc_render$c(e, t, n, o, r, i) {
|
|
976
976
|
var s, a, c, l;
|
|
977
977
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
978
978
|
createElementVNode("picture", null, [
|
|
@@ -1013,14 +1013,14 @@ function _sfc_render$b(e, t, n, o, r, i) {
|
|
|
1013
1013
|
])) : createCommentVNode("v-if", !0)
|
|
1014
1014
|
], 64);
|
|
1015
1015
|
}
|
|
1016
|
-
const Image = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1016
|
+
const Image = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), _sfc_main$c = defineComponent({
|
|
1017
1017
|
name: "builder-section-component",
|
|
1018
1018
|
props: ["attributes", "maxWidth"],
|
|
1019
1019
|
data() {
|
|
1020
1020
|
return { filterAttrs };
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
|
-
function _sfc_render$
|
|
1023
|
+
function _sfc_render$b(e, t, n, o, r, i) {
|
|
1024
1024
|
return openBlock(), createElementBlock("section", mergeProps({
|
|
1025
1025
|
style: {
|
|
1026
1026
|
width: "100%",
|
|
@@ -1038,7 +1038,7 @@ function _sfc_render$a(e, t, n, o, r, i) {
|
|
|
1038
1038
|
renderSlot(e.$slots, "default")
|
|
1039
1039
|
], 16);
|
|
1040
1040
|
}
|
|
1041
|
-
const Section = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1041
|
+
const Section = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), getTopLevelDomain = (e) => {
|
|
1042
1042
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1043
1043
|
return e;
|
|
1044
1044
|
const t = e.split(".");
|
|
@@ -1172,7 +1172,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
|
|
|
1172
1172
|
...e,
|
|
1173
1173
|
...r
|
|
1174
1174
|
};
|
|
1175
|
-
}, getDefaultCanTrack = (e) => checkIsDefined(e) ? e : !0, componentInfo$
|
|
1175
|
+
}, getDefaultCanTrack = (e) => checkIsDefined(e) ? e : !0, componentInfo$b = {
|
|
1176
1176
|
name: "Core:Button",
|
|
1177
1177
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1178
1178
|
defaultStyles: {
|
|
@@ -1204,7 +1204,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
|
|
|
1204
1204
|
}],
|
|
1205
1205
|
static: !0,
|
|
1206
1206
|
noWrap: !0
|
|
1207
|
-
}, componentInfo$
|
|
1207
|
+
}, componentInfo$a = {
|
|
1208
1208
|
name: "Columns",
|
|
1209
1209
|
isRSC: !0,
|
|
1210
1210
|
inputs: [{
|
|
@@ -1404,7 +1404,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
|
|
|
1404
1404
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1405
1405
|
advanced: !0
|
|
1406
1406
|
}]
|
|
1407
|
-
}, componentInfo$
|
|
1407
|
+
}, componentInfo$9 = {
|
|
1408
1408
|
name: "Custom Code",
|
|
1409
1409
|
static: !0,
|
|
1410
1410
|
requiredPermissions: ["editCode"],
|
|
@@ -1426,7 +1426,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
|
|
|
1426
1426
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1427
1427
|
advanced: !0
|
|
1428
1428
|
}]
|
|
1429
|
-
}, _sfc_main$
|
|
1429
|
+
}, _sfc_main$b = defineComponent({
|
|
1430
1430
|
name: "builder-custom-code",
|
|
1431
1431
|
props: ["replaceNodes", "code"],
|
|
1432
1432
|
data() {
|
|
@@ -1472,7 +1472,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render
|
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
1474
|
}), _hoisted_1$4 = ["innerHTML"];
|
|
1475
|
-
function _sfc_render$
|
|
1475
|
+
function _sfc_render$a(e, t, n, o, r, i) {
|
|
1476
1476
|
return openBlock(), createElementBlock("div", {
|
|
1477
1477
|
ref: "elementRef",
|
|
1478
1478
|
class: normalizeClass(
|
|
@@ -1483,7 +1483,7 @@ function _sfc_render$9(e, t, n, o, r, i) {
|
|
|
1483
1483
|
innerHTML: e.code
|
|
1484
1484
|
}, null, 10, _hoisted_1$4);
|
|
1485
1485
|
}
|
|
1486
|
-
const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1486
|
+
const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), componentInfo$8 = {
|
|
1487
1487
|
name: "Embed",
|
|
1488
1488
|
static: !0,
|
|
1489
1489
|
inputs: [{
|
|
@@ -1508,7 +1508,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_ren
|
|
|
1508
1508
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1509
1509
|
hideFromUI: !0
|
|
1510
1510
|
}]
|
|
1511
|
-
}, SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"], isJsScript = (e) => SCRIPT_MIME_TYPES.includes(e.type), _sfc_main$
|
|
1511
|
+
}, SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"], isJsScript = (e) => SCRIPT_MIME_TYPES.includes(e.type), _sfc_main$a = defineComponent({
|
|
1512
1512
|
name: "builder-embed",
|
|
1513
1513
|
props: ["content"],
|
|
1514
1514
|
data() {
|
|
@@ -1551,20 +1551,20 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_ren
|
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
}), _hoisted_1$3 = ["innerHTML"];
|
|
1554
|
-
function _sfc_render$
|
|
1554
|
+
function _sfc_render$9(e, t, n, o, r, i) {
|
|
1555
1555
|
return openBlock(), createElementBlock("div", {
|
|
1556
1556
|
class: "builder-embed",
|
|
1557
1557
|
ref: "elem",
|
|
1558
1558
|
innerHTML: e.content
|
|
1559
1559
|
}, null, 8, _hoisted_1$3);
|
|
1560
1560
|
}
|
|
1561
|
-
const embed = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1561
|
+
const embed = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), componentInfo$7 = {
|
|
1562
1562
|
name: "Fragment",
|
|
1563
1563
|
static: !0,
|
|
1564
1564
|
hidden: !0,
|
|
1565
1565
|
canHaveChildren: !0,
|
|
1566
1566
|
noWrap: !0
|
|
1567
|
-
}, componentInfo$
|
|
1567
|
+
}, componentInfo$6 = {
|
|
1568
1568
|
name: "Image",
|
|
1569
1569
|
static: !0,
|
|
1570
1570
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1587,13 +1587,13 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8
|
|
|
1587
1587
|
function n(s, a = 6e4) {
|
|
1588
1588
|
return new Promise((c, l) => {
|
|
1589
1589
|
const d = document.createElement("img");
|
|
1590
|
-
let
|
|
1590
|
+
let u = !1;
|
|
1591
1591
|
d.onload = () => {
|
|
1592
|
-
|
|
1593
|
-
}, d.addEventListener("error", (
|
|
1594
|
-
console.warn("Image load failed",
|
|
1592
|
+
u = !0, c(d);
|
|
1593
|
+
}, d.addEventListener("error", (p) => {
|
|
1594
|
+
console.warn("Image load failed", p.error), l(p.error);
|
|
1595
1595
|
}), d.src = s, setTimeout(() => {
|
|
1596
|
-
|
|
1596
|
+
u || l(new Error("Image load timed out"));
|
|
1597
1597
|
}, a);
|
|
1598
1598
|
});
|
|
1599
1599
|
}
|
|
@@ -1664,7 +1664,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8
|
|
|
1664
1664
|
advanced: !0,
|
|
1665
1665
|
defaultValue: 0.7041
|
|
1666
1666
|
}]
|
|
1667
|
-
}, componentInfo$
|
|
1667
|
+
}, componentInfo$5 = {
|
|
1668
1668
|
name: "Raw:Img",
|
|
1669
1669
|
hideFromInsertMenu: !0,
|
|
1670
1670
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1677,7 +1677,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8
|
|
|
1677
1677
|
}],
|
|
1678
1678
|
noWrap: !0,
|
|
1679
1679
|
static: !0
|
|
1680
|
-
}, _sfc_main$
|
|
1680
|
+
}, _sfc_main$9 = defineComponent({
|
|
1681
1681
|
name: "builder-img-component",
|
|
1682
1682
|
props: [
|
|
1683
1683
|
"backgroundSize",
|
|
@@ -1691,7 +1691,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8
|
|
|
1691
1691
|
return { isEditing, filterAttrs };
|
|
1692
1692
|
}
|
|
1693
1693
|
}), _hoisted_1$2 = ["alt", "src"];
|
|
1694
|
-
function _sfc_render$
|
|
1694
|
+
function _sfc_render$8(e, t, n, o, r, i) {
|
|
1695
1695
|
return openBlock(), createElementBlock("img", mergeProps({
|
|
1696
1696
|
style: {
|
|
1697
1697
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -1702,7 +1702,7 @@ function _sfc_render$7(e, t, n, o, r, i) {
|
|
|
1702
1702
|
src: e.imgSrc || e.image
|
|
1703
1703
|
}, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$2);
|
|
1704
1704
|
}
|
|
1705
|
-
const Img = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1705
|
+
const Img = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), componentInfo$4 = {
|
|
1706
1706
|
name: "Core:Section",
|
|
1707
1707
|
static: !0,
|
|
1708
1708
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1741,7 +1741,43 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7],
|
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
}]
|
|
1744
|
-
}, componentInfo$
|
|
1744
|
+
}, componentInfo$3 = {
|
|
1745
|
+
name: "Slot",
|
|
1746
|
+
isRSC: !0,
|
|
1747
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
1748
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
1749
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
1750
|
+
inputs: [{
|
|
1751
|
+
name: "name",
|
|
1752
|
+
type: "string",
|
|
1753
|
+
required: !0,
|
|
1754
|
+
defaultValue: "children"
|
|
1755
|
+
}]
|
|
1756
|
+
}, _sfc_main$8 = defineComponent({
|
|
1757
|
+
name: "builder-slot",
|
|
1758
|
+
components: { Blocks },
|
|
1759
|
+
props: ["builderContext", "name"]
|
|
1760
|
+
});
|
|
1761
|
+
function _sfc_render$7(e, t, n, o, r, i) {
|
|
1762
|
+
var a, c, l;
|
|
1763
|
+
const s = resolveComponent("blocks");
|
|
1764
|
+
return openBlock(), createElementBlock("div", mergeProps(
|
|
1765
|
+
{ style: {
|
|
1766
|
+
pointerEvents: "auto"
|
|
1767
|
+
} },
|
|
1768
|
+
!((a = e.builderContext.context) != null && a.symbolId) && {
|
|
1769
|
+
"builder-slot": e.name
|
|
1770
|
+
}
|
|
1771
|
+
), [
|
|
1772
|
+
createVNode(s, {
|
|
1773
|
+
parent: (c = e.builderContext.context) == null ? void 0 : c.symbolId,
|
|
1774
|
+
path: `symbol.data.${e.name}`,
|
|
1775
|
+
context: e.builderContext,
|
|
1776
|
+
blocks: (l = e.builderContext.rootState) == null ? void 0 : l[e.name]
|
|
1777
|
+
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1778
|
+
], 16);
|
|
1779
|
+
}
|
|
1780
|
+
const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/slot/slot.vue"]]), componentInfo$2 = {
|
|
1745
1781
|
name: "Symbol",
|
|
1746
1782
|
noWrap: !0,
|
|
1747
1783
|
static: !0,
|
|
@@ -1956,7 +1992,7 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]
|
|
|
1956
1992
|
}
|
|
1957
1993
|
};
|
|
1958
1994
|
function _sfc_render$5(e, t, n, o, r, i) {
|
|
1959
|
-
var s, a, c, l, d,
|
|
1995
|
+
var s, a, c, l, d, u, p;
|
|
1960
1996
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1961
1997
|
createElementVNode("video", mergeProps({
|
|
1962
1998
|
class: "builder-video",
|
|
@@ -1994,35 +2030,35 @@ function _sfc_render$5(e, t, n, o, r, i) {
|
|
|
1994
2030
|
((d = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : d.length) && e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
1995
2031
|
renderSlot(e.$slots, "default")
|
|
1996
2032
|
])) : createCommentVNode("v-if", !0),
|
|
1997
|
-
((
|
|
2033
|
+
((p = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : p.length) && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
1998
2034
|
renderSlot(e.$slots, "default")
|
|
1999
2035
|
])) : createCommentVNode("v-if", !0)
|
|
2000
2036
|
]);
|
|
2001
2037
|
}
|
|
2002
2038
|
const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), getDefaultRegisteredComponents = () => [{
|
|
2003
2039
|
component: Button,
|
|
2004
|
-
...componentInfo$
|
|
2040
|
+
...componentInfo$b
|
|
2005
2041
|
}, {
|
|
2006
2042
|
component: Columns,
|
|
2007
|
-
...componentInfo$
|
|
2043
|
+
...componentInfo$a
|
|
2008
2044
|
}, {
|
|
2009
2045
|
component: customCode,
|
|
2010
|
-
...componentInfo$
|
|
2046
|
+
...componentInfo$9
|
|
2011
2047
|
}, {
|
|
2012
2048
|
component: embed,
|
|
2013
|
-
...componentInfo$
|
|
2049
|
+
...componentInfo$8
|
|
2014
2050
|
}, {
|
|
2015
2051
|
component: Fragment,
|
|
2016
|
-
...componentInfo$
|
|
2052
|
+
...componentInfo$7
|
|
2017
2053
|
}, {
|
|
2018
2054
|
component: Image,
|
|
2019
|
-
...componentInfo$
|
|
2055
|
+
...componentInfo$6
|
|
2020
2056
|
}, {
|
|
2021
2057
|
component: Img,
|
|
2022
|
-
...componentInfo$
|
|
2058
|
+
...componentInfo$5
|
|
2023
2059
|
}, {
|
|
2024
2060
|
component: Section,
|
|
2025
|
-
...componentInfo$
|
|
2061
|
+
...componentInfo$4
|
|
2026
2062
|
}, {
|
|
2027
2063
|
component: Symbol$1,
|
|
2028
2064
|
...componentInfo$2
|
|
@@ -2032,6 +2068,9 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
|
|
|
2032
2068
|
}, {
|
|
2033
2069
|
component: Video,
|
|
2034
2070
|
...componentInfo
|
|
2071
|
+
}, {
|
|
2072
|
+
component: Slot,
|
|
2073
|
+
...componentInfo$3
|
|
2035
2074
|
}], components = [], createRegisterComponentMessage = (e) => ({
|
|
2036
2075
|
type: "builder.registerComponent",
|
|
2037
2076
|
data: serializeComponentInfo(e)
|
|
@@ -2219,8 +2258,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
2219
2258
|
enrich: c,
|
|
2220
2259
|
locale: l,
|
|
2221
2260
|
apiVersion: d = DEFAULT_API_VERSION,
|
|
2222
|
-
fields:
|
|
2223
|
-
omit:
|
|
2261
|
+
fields: u,
|
|
2262
|
+
omit: p,
|
|
2224
2263
|
offset: m,
|
|
2225
2264
|
cacheSeconds: f,
|
|
2226
2265
|
staleCacheSeconds: b,
|
|
@@ -2233,7 +2272,7 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
2233
2272
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${d}'`);
|
|
2234
2273
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2235
2274
|
const g = new URL(`https://cdn.builder.io/api/${d}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${l ? `&locale=${l}` : ""}${c ? `&enrich=${c}` : ""}`);
|
|
2236
|
-
if (g.searchParams.set("omit",
|
|
2275
|
+
if (g.searchParams.set("omit", p || "meta.componentsUsed"), u && g.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && g.searchParams.set("offset", String(Math.floor(m))), typeof C == "boolean" && g.searchParams.set("includeUnpublished", String(C)), f && isPositiveNumber(f) && g.searchParams.set("cacheSeconds", String(f)), b && isPositiveNumber(b) && g.searchParams.set("staleCacheSeconds", String(b)), y) {
|
|
2237
2276
|
const k = flatten({
|
|
2238
2277
|
sort: y
|
|
2239
2278
|
});
|
|
@@ -2482,7 +2521,7 @@ const findParentElement = (e, t, n = !0) => {
|
|
|
2482
2521
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2483
2522
|
}
|
|
2484
2523
|
};
|
|
2485
|
-
}, SDK_VERSION = "0.
|
|
2524
|
+
}, SDK_VERSION = "0.12.1", registry = {};
|
|
2486
2525
|
function register(e, t) {
|
|
2487
2526
|
let n = registry[e];
|
|
2488
2527
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -2548,25 +2587,25 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2548
2587
|
switch (o.type) {
|
|
2549
2588
|
case "builder.evaluate": {
|
|
2550
2589
|
const s = o.data.text, a = o.data.arguments || [], c = o.data.id, l = new Function(s);
|
|
2551
|
-
let d,
|
|
2590
|
+
let d, u = null;
|
|
2552
2591
|
try {
|
|
2553
2592
|
d = l.apply(null, a);
|
|
2554
|
-
} catch (
|
|
2555
|
-
|
|
2593
|
+
} catch (p) {
|
|
2594
|
+
u = p;
|
|
2556
2595
|
}
|
|
2557
|
-
|
|
2596
|
+
u ? (r = window.parent) == null || r.postMessage({
|
|
2558
2597
|
type: "builder.evaluateError",
|
|
2559
2598
|
data: {
|
|
2560
2599
|
id: c,
|
|
2561
|
-
error:
|
|
2600
|
+
error: u.message
|
|
2562
2601
|
}
|
|
2563
|
-
}, "*") : d && typeof d.then == "function" ? d.then((
|
|
2602
|
+
}, "*") : d && typeof d.then == "function" ? d.then((p) => {
|
|
2564
2603
|
var m;
|
|
2565
2604
|
(m = window.parent) == null || m.postMessage({
|
|
2566
2605
|
type: "builder.evaluateResult",
|
|
2567
2606
|
data: {
|
|
2568
2607
|
id: c,
|
|
2569
|
-
result:
|
|
2608
|
+
result: p
|
|
2570
2609
|
}
|
|
2571
2610
|
}, "*");
|
|
2572
2611
|
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
@@ -3137,7 +3176,7 @@ function _sfc_render$2(e, t, n, o, r, i) {
|
|
|
3137
3176
|
contentWrapperProps: e.contentWrapperProps
|
|
3138
3177
|
}, {}), {
|
|
3139
3178
|
default: withCtx(() => {
|
|
3140
|
-
var d,
|
|
3179
|
+
var d, u, p, m, f, b, y;
|
|
3141
3180
|
return [
|
|
3142
3181
|
e.isSsrAbTest ? (openBlock(), createBlock(s, {
|
|
3143
3182
|
key: 0,
|
|
@@ -3146,7 +3185,7 @@ function _sfc_render$2(e, t, n, o, r, i) {
|
|
|
3146
3185
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(a, {
|
|
3147
3186
|
key: 1,
|
|
3148
3187
|
contentId: (d = e.builderContextSignal.content) == null ? void 0 : d.id,
|
|
3149
|
-
cssCode: (
|
|
3188
|
+
cssCode: (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
|
|
3150
3189
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
3151
3190
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : createCommentVNode("v-if", !0),
|
|
3152
3191
|
createVNode(c, {
|
|
@@ -3238,7 +3277,7 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3238
3277
|
styles: e.hideVariantsStyleString
|
|
3239
3278
|
}, null, 8, ["id", "styles"]),
|
|
3240
3279
|
createVNode(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3241
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d,
|
|
3280
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, u) => (openBlock(), createBlock(c, {
|
|
3242
3281
|
key: d.testVariationId,
|
|
3243
3282
|
content: d,
|
|
3244
3283
|
showContent: !1,
|
|
@@ -3308,6 +3347,7 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3308
3347
|
"symbol",
|
|
3309
3348
|
"dynamic",
|
|
3310
3349
|
"builderContext",
|
|
3350
|
+
"builderBlock",
|
|
3311
3351
|
"builderComponents"
|
|
3312
3352
|
],
|
|
3313
3353
|
data() {
|
|
@@ -3362,7 +3402,7 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3362
3402
|
}
|
|
3363
3403
|
});
|
|
3364
3404
|
function _sfc_render(e, t, n, o, r, i) {
|
|
3365
|
-
var a, c, l, d;
|
|
3405
|
+
var a, c, l, d, u;
|
|
3366
3406
|
const s = resolveComponent("content-variants");
|
|
3367
3407
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
3368
3408
|
class: e._classStringToObject(e.className)
|
|
@@ -3371,14 +3411,17 @@ function _sfc_render(e, t, n, o, r, i) {
|
|
|
3371
3411
|
__isNestedRender: !0,
|
|
3372
3412
|
apiVersion: e.builderContext.apiVersion,
|
|
3373
3413
|
apiKey: e.builderContext.apiKey,
|
|
3374
|
-
context:
|
|
3414
|
+
context: {
|
|
3415
|
+
...e.builderContext.context,
|
|
3416
|
+
symbolId: (a = e.builderBlock) == null ? void 0 : a.id
|
|
3417
|
+
},
|
|
3375
3418
|
customComponents: Object.values(e.builderComponents),
|
|
3376
3419
|
data: {
|
|
3377
|
-
...(
|
|
3420
|
+
...(c = e.symbol) == null ? void 0 : c.data,
|
|
3378
3421
|
...e.builderContext.localState,
|
|
3379
|
-
...(
|
|
3422
|
+
...(d = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : d.state
|
|
3380
3423
|
},
|
|
3381
|
-
model: (
|
|
3424
|
+
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
3382
3425
|
content: e.contentToUse
|
|
3383
3426
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3384
3427
|
], 16);
|
package/lib/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.52366dfd.cjs");require("vue");require("node:module");exports.Blocks=e.Blocks;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.Content;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;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.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;
|