@builder.io/sdk-vue 0.13.2 → 0.13.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-5NGYAhBS.cjs +1 -0
- package/lib/browser/{block-styles.234c76cc.js → block-styles-jDSz7IPu.js} +15 -15
- package/lib/browser/{block-wrapper.632a0344.cjs → block-wrapper-aYMueUMD.cjs} +1 -1
- package/lib/browser/{block-wrapper.87efb259.js → block-wrapper-i3S3k3_c.js} +10 -10
- package/lib/browser/blocks/button/button.vue.d.ts +1 -1
- package/lib/browser/blocks/columns/columns.types.d.ts +2 -2
- package/lib/browser/blocks/columns/columns.vue.d.ts +1 -4
- package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +1 -1
- package/lib/browser/blocks/embed/embed.vue.d.ts +1 -1
- package/lib/browser/blocks/form/form/form.vue.d.ts +4 -4
- package/lib/browser/blocks/form/input/input.vue.d.ts +4 -4
- package/lib/browser/blocks/form/select/select.vue.d.ts +1 -1
- package/lib/browser/blocks/form/submit-button/submit-button.vue.d.ts +1 -1
- package/lib/browser/blocks/fragment/fragment.vue.d.ts +1 -1
- package/lib/browser/blocks/image/image.vue.d.ts +1 -1
- package/lib/browser/blocks/img/img.vue.d.ts +1 -1
- package/lib/browser/blocks/section/section.vue.d.ts +1 -1
- package/lib/browser/blocks/slot/slot.vue.d.ts +4 -4
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -4
- package/lib/browser/blocks/text/text.vue.d.ts +1 -1
- package/lib/browser/blocks/video/video.vue.d.ts +1 -1
- package/lib/browser/{component-ref.3afd884d.cjs → component-ref-23FBngqj.cjs} +1 -1
- package/lib/browser/{component-ref.3863762f.js → component-ref-YzJX0Oul.js} +21 -17
- package/lib/browser/components/block/block.vue.d.ts +1 -1
- package/lib/browser/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/browser/components/block/components/block-wrapper.vue.d.ts +1 -1
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +2 -1
- package/lib/browser/components/block/components/repeated-block.vue.d.ts +1 -1
- package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +2 -1
- package/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -1
- package/lib/browser/components/content/components/styles.vue.d.ts +1 -1
- package/lib/browser/components/content/content.types.d.ts +1 -8
- package/lib/browser/components/content/content.vue.d.ts +1 -1
- package/lib/browser/components/content/contentProps.types.d.ts +7 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +7 -1
- package/lib/browser/components/inlined-script.vue.d.ts +1 -1
- package/lib/browser/components/inlined-styles.vue.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/get-block-properties-KacPzO_o.cjs +1 -0
- package/lib/browser/{get-block-properties.954bd25c.js → get-block-properties-ZirT3ZGB.js} +19 -20
- package/lib/browser/{index.5e2629c5.js → index-6a_qPbnw.js} +637 -597
- package/lib/browser/index-7Z8XjtKs.cjs +166 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +2 -2
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +26 -27
- package/lib/browser/{repeated-block.ff7c6ac4.cjs → repeated-block-70kCyQ_l.cjs} +1 -1
- package/lib/browser/repeated-block-hRYVKXrX.js +35 -0
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-props.d.ts +1 -1
- package/lib/browser/types/enforced-partials.d.ts +1 -26
- package/lib/browser/types/input.d.ts +1 -0
- package/lib/browser/types/typescript.d.ts +0 -3
- package/lib/edge/block-styles--T_GAm5-.cjs +1 -0
- package/lib/edge/{block-styles.445302ca.js → block-styles-Tjp0oeui.js} +18 -18
- package/lib/edge/{block-wrapper.e5bbd06c.cjs → block-wrapper-K-I0ddom.cjs} +1 -1
- package/lib/{node/block-wrapper.745530a0.js → edge/block-wrapper-MgeL6r_A.js} +9 -10
- package/lib/edge/blocks/button/button.vue.d.ts +1 -1
- package/lib/edge/blocks/columns/columns.types.d.ts +2 -2
- package/lib/edge/blocks/columns/columns.vue.d.ts +1 -4
- package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +1 -1
- package/lib/edge/blocks/embed/embed.vue.d.ts +1 -1
- package/lib/edge/blocks/form/form/form.vue.d.ts +4 -4
- package/lib/edge/blocks/form/input/input.vue.d.ts +4 -4
- package/lib/edge/blocks/form/select/select.vue.d.ts +1 -1
- package/lib/edge/blocks/form/submit-button/submit-button.vue.d.ts +1 -1
- package/lib/edge/blocks/fragment/fragment.vue.d.ts +1 -1
- package/lib/edge/blocks/image/image.vue.d.ts +1 -1
- package/lib/edge/blocks/img/img.vue.d.ts +1 -1
- package/lib/edge/blocks/section/section.vue.d.ts +1 -1
- package/lib/edge/blocks/slot/slot.vue.d.ts +4 -4
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -4
- package/lib/edge/blocks/text/text.vue.d.ts +1 -1
- package/lib/edge/blocks/video/video.vue.d.ts +1 -1
- package/lib/edge/{component-ref.297cbfe7.js → component-ref-Oo-dR5xV.js} +21 -17
- package/lib/edge/{component-ref.c47dd754.cjs → component-ref-iibFypv7.cjs} +1 -1
- package/lib/edge/components/block/block.vue.d.ts +1 -1
- package/lib/edge/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/edge/components/block/components/block-wrapper.vue.d.ts +1 -1
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +2 -1
- package/lib/edge/components/block/components/repeated-block.vue.d.ts +1 -1
- package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +2 -1
- package/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -1
- package/lib/edge/components/content/components/styles.vue.d.ts +1 -1
- package/lib/edge/components/content/content.types.d.ts +1 -8
- package/lib/edge/components/content/content.vue.d.ts +1 -1
- package/lib/edge/components/content/contentProps.types.d.ts +7 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +7 -1
- package/lib/edge/components/inlined-script.vue.d.ts +1 -1
- package/lib/edge/components/inlined-styles.vue.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties.4ea261a1.js → get-block-properties-BKnsvu-2.js} +19 -20
- package/lib/edge/get-block-properties-q52zAZuL.cjs +1 -0
- package/lib/edge/{index.f5711364.js → index-FjGYEtq6.js} +1490 -1450
- package/lib/edge/index-helpers/blocks-exports.d.ts +2 -2
- package/lib/edge/index-oq0qBISZ.cjs +186 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +25 -26
- package/lib/{browser/repeated-block.83b91a53.js → edge/repeated-block-IVuHJhMQ.js} +4 -5
- package/lib/edge/repeated-block-IrS130V6.cjs +1 -0
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-props.d.ts +1 -1
- package/lib/edge/types/enforced-partials.d.ts +1 -26
- package/lib/edge/types/input.d.ts +1 -0
- package/lib/edge/types/typescript.d.ts +0 -3
- package/lib/node/block-styles-1bGjM-mF.cjs +1 -0
- package/lib/node/{block-styles.bc53b639.js → block-styles-WHZ3oh47.js} +18 -19
- package/lib/node/block-wrapper-7G595XQl.cjs +1 -0
- package/lib/{edge/block-wrapper.c973027d.js → node/block-wrapper-Oi21HLL-.js} +10 -10
- package/lib/node/blocks/button/button.vue.d.ts +1 -1
- package/lib/node/blocks/columns/columns.types.d.ts +2 -2
- package/lib/node/blocks/columns/columns.vue.d.ts +1 -4
- package/lib/node/blocks/custom-code/custom-code.vue.d.ts +1 -1
- package/lib/node/blocks/embed/embed.vue.d.ts +1 -1
- package/lib/node/blocks/form/form/form.vue.d.ts +4 -4
- package/lib/node/blocks/form/input/input.vue.d.ts +4 -4
- package/lib/node/blocks/form/select/select.vue.d.ts +1 -1
- package/lib/node/blocks/form/submit-button/submit-button.vue.d.ts +1 -1
- package/lib/node/blocks/fragment/fragment.vue.d.ts +1 -1
- package/lib/node/blocks/image/image.vue.d.ts +1 -1
- package/lib/node/blocks/img/img.vue.d.ts +1 -1
- package/lib/node/blocks/section/section.vue.d.ts +1 -1
- package/lib/node/blocks/slot/slot.vue.d.ts +4 -4
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -4
- package/lib/node/blocks/text/text.vue.d.ts +1 -1
- package/lib/node/blocks/video/video.vue.d.ts +1 -1
- package/lib/node/{component-ref.50b4a2f9.js → component-ref-6gNNgUIq.js} +22 -19
- package/lib/node/component-ref-bBOIZLBr.cjs +1 -0
- package/lib/node/components/block/block.vue.d.ts +1 -1
- package/lib/node/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/node/components/block/components/block-wrapper.vue.d.ts +1 -1
- package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
- package/lib/node/components/block/components/interactive-element.vue.d.ts +2 -1
- package/lib/node/components/block/components/repeated-block.vue.d.ts +1 -1
- package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +2 -1
- package/lib/node/components/blocks/blocks.vue.d.ts +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -1
- package/lib/node/components/content/components/styles.vue.d.ts +1 -1
- package/lib/node/components/content/content.types.d.ts +1 -8
- package/lib/node/components/content/content.vue.d.ts +1 -1
- package/lib/node/components/content/contentProps.types.d.ts +7 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +7 -1
- package/lib/node/components/inlined-script.vue.d.ts +1 -1
- package/lib/node/components/inlined-styles.vue.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties.9d97d213.js → get-block-properties-LsQPb5mK.js} +19 -20
- package/lib/node/get-block-properties-saGQjgeQ.cjs +1 -0
- package/lib/node/{index.2fe76754.js → index-TgZujUqz.js} +244 -201
- package/lib/node/index-helpers/blocks-exports.d.ts +2 -2
- package/lib/node/index-mB-x2rNA.cjs +206 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +27 -29
- package/lib/node/{repeated-block.17f75fe4.js → repeated-block-4ZvFRl8H.js} +4 -5
- package/lib/node/repeated-block-ghBGljjL.cjs +1 -0
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-props.d.ts +1 -1
- package/lib/node/types/enforced-partials.d.ts +1 -26
- package/lib/node/types/input.d.ts +1 -0
- package/lib/node/types/typescript.d.ts +0 -3
- package/package.json +5 -5
- package/lib/browser/block-styles.119ae070.cjs +0 -1
- package/lib/browser/get-block-properties.f75a4388.cjs +0 -1
- package/lib/browser/index.30ba40a5.cjs +0 -166
- package/lib/edge/block-styles.8957f0b3.cjs +0 -1
- package/lib/edge/get-block-properties.8ae4a0af.cjs +0 -1
- package/lib/edge/index.8f395d9b.cjs +0 -186
- package/lib/edge/repeated-block.afb8bacc.cjs +0 -1
- package/lib/edge/repeated-block.bb60007b.js +0 -34
- package/lib/node/block-styles.f0d350eb.cjs +0 -1
- package/lib/node/block-wrapper.a0037a74.cjs +0 -1
- package/lib/node/component-ref.3f3377ee.cjs +0 -1
- package/lib/node/get-block-properties.414a1d7e.cjs +0 -1
- package/lib/node/index.9ac19b66.cjs +0 -206
- package/lib/node/repeated-block.e79fb518.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-7Z8XjtKs.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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as k, resolveComponent as y, openBlock as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
2
|
+
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as B } from "vue";
|
|
3
|
+
import { _, T as b, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-6a_qPbnw.js";
|
|
4
|
+
const v = k({
|
|
5
5
|
name: "block-styles",
|
|
6
|
-
components: { InlinedStyles:
|
|
6
|
+
components: { InlinedStyles: _ },
|
|
7
7
|
props: ["block", "context"],
|
|
8
8
|
data() {
|
|
9
|
-
return { TARGET:
|
|
9
|
+
return { TARGET: b };
|
|
10
10
|
},
|
|
11
11
|
computed: {
|
|
12
12
|
canShowBlock() {
|
|
@@ -18,7 +18,7 @@ const C = k({
|
|
|
18
18
|
context: this.context.context,
|
|
19
19
|
shouldEvaluateBindings: !0
|
|
20
20
|
});
|
|
21
|
-
return
|
|
21
|
+
return m(t.hide) ? !t.hide : m(t.show) ? t.show : !0;
|
|
22
22
|
},
|
|
23
23
|
css() {
|
|
24
24
|
var i;
|
|
@@ -29,41 +29,41 @@ const C = k({
|
|
|
29
29
|
rootSetState: this.context.rootSetState,
|
|
30
30
|
context: this.context.context,
|
|
31
31
|
shouldEvaluateBindings: !0
|
|
32
|
-
}), e = t.responsiveStyles, o = this.context.content, c =
|
|
32
|
+
}), e = t.responsiveStyles, o = this.context.content, c = g(
|
|
33
33
|
((i = o == null ? void 0 : o.meta) == null ? void 0 : i.breakpoints) || {}
|
|
34
34
|
), a = e == null ? void 0 : e.large, l = e == null ? void 0 : e.medium, s = e == null ? void 0 : e.small, n = t.id;
|
|
35
35
|
if (!n)
|
|
36
36
|
return "";
|
|
37
|
-
const
|
|
37
|
+
const u = a ? r({
|
|
38
38
|
className: n,
|
|
39
39
|
styles: a
|
|
40
40
|
}) : "", p = l ? r({
|
|
41
41
|
className: n,
|
|
42
42
|
styles: l,
|
|
43
|
-
mediaQuery:
|
|
43
|
+
mediaQuery: S(
|
|
44
44
|
"medium",
|
|
45
45
|
c
|
|
46
46
|
)
|
|
47
47
|
}) : "", h = s ? r({
|
|
48
48
|
className: n,
|
|
49
49
|
styles: s,
|
|
50
|
-
mediaQuery:
|
|
50
|
+
mediaQuery: S(
|
|
51
51
|
"small",
|
|
52
52
|
c
|
|
53
53
|
)
|
|
54
54
|
}) : "";
|
|
55
|
-
return [
|
|
55
|
+
return [u, p, h].join(" ");
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
function
|
|
59
|
+
function T(t, e, o, c, a, l) {
|
|
60
60
|
const s = y("inlined-styles");
|
|
61
|
-
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (
|
|
61
|
+
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (x(), f(s, {
|
|
62
62
|
key: 0,
|
|
63
63
|
styles: t.css
|
|
64
|
-
}, null, 8, ["styles"])) :
|
|
64
|
+
}, null, 8, ["styles"])) : B("", !0);
|
|
65
65
|
}
|
|
66
|
-
const z = /* @__PURE__ */ v
|
|
66
|
+
const z = /* @__PURE__ */ C(v, [["render", T]]);
|
|
67
67
|
export {
|
|
68
68
|
z as default
|
|
69
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties.
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-KacPzO_o.cjs"),n=require("./index-7Z8XjtKs.cjs"),c=()=>Promise.resolve().then(()=>require("./index-7Z8XjtKs.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("dynamic-renderer");return t.openBlock(),t.createBlock(r,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as
|
|
3
|
-
import { g as s, a as l } from "./get-block-properties.
|
|
4
|
-
import {
|
|
5
|
-
const d = () => import("./index.
|
|
2
|
+
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties-ZirT3ZGB.js";
|
|
4
|
+
import { e as m } from "./index-6a_qPbnw.js";
|
|
5
|
+
const d = () => import("./index-6a_qPbnw.js").then((e) => e.J).then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
8
8
|
e
|
|
9
9
|
), e;
|
|
10
|
-
}),
|
|
10
|
+
}), f = o({
|
|
11
11
|
name: "block-wrapper",
|
|
12
12
|
components: { DynamicRenderer: r(d) },
|
|
13
13
|
props: ["Wrapper", "block", "context"],
|
|
@@ -15,7 +15,7 @@ const d = () => import("./index.5e2629c5.js").then((e) => e.J).then((e) => e.def
|
|
|
15
15
|
return { getBlockActions: s, getBlockProperties: l };
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
function
|
|
18
|
+
function u(e, k, b, y, S, g) {
|
|
19
19
|
const t = n("dynamic-renderer");
|
|
20
20
|
return a(), c(t, {
|
|
21
21
|
TagName: e.Wrapper,
|
|
@@ -32,13 +32,13 @@ function k(e, b, f, y, g, S) {
|
|
|
32
32
|
stripPrefix: !0
|
|
33
33
|
})
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
35
|
+
default: i(() => [
|
|
36
|
+
p(e.$slots, "default")
|
|
37
37
|
]),
|
|
38
38
|
_: 3
|
|
39
39
|
}, 8, ["TagName", "attributes", "actionAttributes"]);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const w = /* @__PURE__ */ m(f, [["render", u]]);
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
w as default
|
|
44
44
|
};
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
8
8
|
}>, unknown, {
|
|
9
9
|
getClassPropName: () => "className" | "class";
|
|
10
10
|
filterAttrs: typeof filterAttrs;
|
|
11
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
11
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
12
12
|
text?: any;
|
|
13
13
|
link?: any;
|
|
14
14
|
attributes?: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BuilderBlock } from '../../types/builder-block.js';
|
|
2
|
-
import type { BuilderComponentsProp, BuilderLinkComponentProp } from '../../types/builder-props.js';
|
|
2
|
+
import type { BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp } from '../../types/builder-props.js';
|
|
3
3
|
type Column = {
|
|
4
4
|
blocks: BuilderBlock[];
|
|
5
5
|
width?: number;
|
|
6
6
|
link?: string;
|
|
7
7
|
};
|
|
8
8
|
type StackColumnsAt = 'tablet' | 'mobile' | 'never';
|
|
9
|
-
export interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp {
|
|
9
|
+
export interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp, BuilderDataProps {
|
|
10
10
|
columns?: Column[];
|
|
11
11
|
space?: number;
|
|
12
12
|
stackColumnsAt?: StackColumnsAt;
|
|
@@ -11,7 +11,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
11
11
|
space?: any;
|
|
12
12
|
stackColumnsAt?: any;
|
|
13
13
|
reverseColumnsWhenStacked?: any;
|
|
14
|
-
js?: any;
|
|
15
14
|
}>, unknown, {
|
|
16
15
|
gutterSize: number;
|
|
17
16
|
cols: any;
|
|
@@ -36,7 +35,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
36
35
|
}): CSSVal;
|
|
37
36
|
columnCssVars(index: number): Dictionary<string>;
|
|
38
37
|
getWidthForBreakpointSize(size: SizeName): number;
|
|
39
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
38
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
40
39
|
builderContext?: any;
|
|
41
40
|
builderLinkComponent?: any;
|
|
42
41
|
columns?: any;
|
|
@@ -45,7 +44,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
45
44
|
space?: any;
|
|
46
45
|
stackColumnsAt?: any;
|
|
47
46
|
reverseColumnsWhenStacked?: any;
|
|
48
|
-
js?: any;
|
|
49
47
|
}>>>, {
|
|
50
48
|
readonly builderContext?: any;
|
|
51
49
|
readonly builderLinkComponent?: any;
|
|
@@ -55,6 +53,5 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
55
53
|
readonly space?: any;
|
|
56
54
|
readonly stackColumnsAt?: any;
|
|
57
55
|
readonly reverseColumnsWhenStacked?: any;
|
|
58
|
-
readonly js?: any;
|
|
59
56
|
}, {}>;
|
|
60
57
|
export default _default;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
8
8
|
}>, unknown, {
|
|
9
9
|
scriptsInserted: never[];
|
|
10
10
|
scriptsRun: never[];
|
|
11
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
11
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
12
12
|
code?: any;
|
|
13
13
|
replaceNodes?: any;
|
|
14
14
|
}>>>, {
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
16
16
|
findAndRunScripts(): void;
|
|
17
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
17
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
18
18
|
content?: any;
|
|
19
19
|
}>>>, {
|
|
20
20
|
readonly content?: any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
2
|
-
import type { BuilderComponentsProp,
|
|
2
|
+
import type { BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp } from "../../../types/builder-props.js";
|
|
3
3
|
import type { Dictionary } from "../../../types/typescript.js";
|
|
4
4
|
import { filterAttrs } from "../../helpers.js";
|
|
5
5
|
/**
|
|
6
6
|
* This import is used by the Svelte SDK. Do not remove.
|
|
7
7
|
*/
|
|
8
|
-
export type FormProps =
|
|
8
|
+
export type FormProps = BuilderDataProps & BuilderComponentsProp & BuilderLinkComponentProp & {
|
|
9
9
|
attributes?: any;
|
|
10
10
|
name?: string;
|
|
11
11
|
action?: string;
|
|
@@ -25,7 +25,7 @@ export type FormProps = PropsWithBuilderData<BuilderComponentsProp & BuilderLink
|
|
|
25
25
|
sendingMessage?: BuilderBlock[];
|
|
26
26
|
resetFormOnSubmit?: boolean;
|
|
27
27
|
errorMessagePath?: string;
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
/**
|
|
30
30
|
* This import is used by the Svelte SDK. Do not remove.
|
|
31
31
|
*/
|
|
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
62
62
|
mergeNewRootState(newData: Dictionary<any>): void;
|
|
63
63
|
submissionState(): any;
|
|
64
64
|
onSubmit(event: any): void;
|
|
65
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
65
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
66
66
|
name?: any;
|
|
67
67
|
builderContext?: any;
|
|
68
68
|
attributes?: any;
|
|
@@ -16,28 +16,28 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
16
16
|
name?: any;
|
|
17
17
|
attributes?: any;
|
|
18
18
|
value?: any;
|
|
19
|
-
type?: any;
|
|
20
19
|
defaultValue?: any;
|
|
21
20
|
placeholder?: any;
|
|
21
|
+
type?: any;
|
|
22
22
|
required?: any;
|
|
23
23
|
}>, unknown, {
|
|
24
24
|
isEditing: typeof isEditing;
|
|
25
25
|
filterAttrs: typeof filterAttrs;
|
|
26
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
27
27
|
name?: any;
|
|
28
28
|
attributes?: any;
|
|
29
29
|
value?: any;
|
|
30
|
-
type?: any;
|
|
31
30
|
defaultValue?: any;
|
|
32
31
|
placeholder?: any;
|
|
32
|
+
type?: any;
|
|
33
33
|
required?: any;
|
|
34
34
|
}>>>, {
|
|
35
35
|
readonly name?: any;
|
|
36
36
|
readonly attributes?: any;
|
|
37
37
|
readonly value?: any;
|
|
38
|
-
readonly type?: any;
|
|
39
38
|
readonly defaultValue?: any;
|
|
40
39
|
readonly placeholder?: any;
|
|
40
|
+
readonly type?: any;
|
|
41
41
|
readonly required?: any;
|
|
42
42
|
}, {}>;
|
|
43
43
|
export default _default;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
22
22
|
}>, unknown, {
|
|
23
23
|
isEditing: typeof isEditing;
|
|
24
24
|
filterAttrs: typeof filterAttrs;
|
|
25
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
25
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
26
26
|
name?: any;
|
|
27
27
|
attributes?: any;
|
|
28
28
|
value?: any;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
11
11
|
attributes?: any;
|
|
12
12
|
}>, unknown, {
|
|
13
13
|
filterAttrs: typeof filterAttrs;
|
|
14
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
14
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
15
15
|
text?: any;
|
|
16
16
|
attributes?: any;
|
|
17
17
|
}>>>, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<Readonly<{}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<{}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{}>>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
21
21
|
readonly left: "0px";
|
|
22
22
|
readonly top: "0px";
|
|
23
23
|
} | undefined;
|
|
24
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
24
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
25
25
|
image?: any;
|
|
26
26
|
className?: any;
|
|
27
27
|
aspectRatio?: any;
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
21
21
|
}>, unknown, {
|
|
22
22
|
isEditing: typeof isEditing;
|
|
23
23
|
filterAttrs: typeof filterAttrs;
|
|
24
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
24
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
25
25
|
image?: any;
|
|
26
26
|
attributes?: any;
|
|
27
27
|
backgroundPosition?: any;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
4
4
|
maxWidth?: any;
|
|
5
5
|
}>, unknown, {
|
|
6
6
|
filterAttrs: typeof filterAttrs;
|
|
7
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
7
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
8
8
|
attributes?: any;
|
|
9
9
|
maxWidth?: any;
|
|
10
10
|
}>>>, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type DropzoneProps =
|
|
1
|
+
import type { BuilderDataProps } from "../../types/builder-props.js";
|
|
2
|
+
export type DropzoneProps = BuilderDataProps & {
|
|
3
3
|
name: string;
|
|
4
4
|
attributes: any;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
7
7
|
name?: any;
|
|
8
8
|
builderContext?: any;
|
|
9
9
|
js?: any;
|
|
10
|
-
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
10
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
11
11
|
name?: any;
|
|
12
12
|
builderContext?: any;
|
|
13
13
|
js?: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BuilderContent } from '../../types/builder-content.js';
|
|
2
|
-
import type { BuilderComponentsProp, BuilderLinkComponentProp } from '../../types/builder-props.js';
|
|
2
|
+
import type { BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp } from '../../types/builder-props.js';
|
|
3
3
|
interface SymbolInfo {
|
|
4
4
|
model?: string;
|
|
5
5
|
entry?: string;
|
|
@@ -8,7 +8,7 @@ interface SymbolInfo {
|
|
|
8
8
|
inline?: boolean;
|
|
9
9
|
dynamic?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export interface SymbolProps extends BuilderComponentsProp, BuilderLinkComponentProp {
|
|
11
|
+
export interface SymbolProps extends BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp {
|
|
12
12
|
symbol?: SymbolInfo;
|
|
13
13
|
dataOnly?: boolean;
|
|
14
14
|
dynamic?: boolean;
|
|
@@ -6,7 +6,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
builderLinkComponent?: any;
|
|
7
7
|
builderBlock?: any;
|
|
8
8
|
builderComponents?: any;
|
|
9
|
-
js?: any;
|
|
10
9
|
dynamic?: any;
|
|
11
10
|
}>, unknown, {
|
|
12
11
|
contentToUse: any;
|
|
@@ -18,14 +17,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
18
17
|
};
|
|
19
18
|
}, {
|
|
20
19
|
setContent(): void;
|
|
21
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
20
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
22
21
|
symbol?: any;
|
|
23
22
|
builderContext?: any;
|
|
24
23
|
attributes?: any;
|
|
25
24
|
builderLinkComponent?: any;
|
|
26
25
|
builderBlock?: any;
|
|
27
26
|
builderComponents?: any;
|
|
28
|
-
js?: any;
|
|
29
27
|
dynamic?: any;
|
|
30
28
|
}>>>, {
|
|
31
29
|
readonly symbol?: any;
|
|
@@ -34,7 +32,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
34
32
|
readonly builderLinkComponent?: any;
|
|
35
33
|
readonly builderBlock?: any;
|
|
36
34
|
readonly builderComponents?: any;
|
|
37
|
-
readonly js?: any;
|
|
38
35
|
readonly dynamic?: any;
|
|
39
36
|
}, {}>;
|
|
40
37
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
2
|
text?: any;
|
|
3
|
-
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
3
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
4
4
|
text?: any;
|
|
5
5
|
}>>>, {
|
|
6
6
|
readonly text?: any;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
29
29
|
muted?: boolean | undefined;
|
|
30
30
|
autoPlay?: boolean | undefined;
|
|
31
31
|
};
|
|
32
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
32
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
33
33
|
video?: any;
|
|
34
34
|
attributes?: any;
|
|
35
35
|
aspectRatio?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-7Z8XjtKs.cjs"),a=require("./get-block-properties-KacPzO_o.cjs"),u=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,c,l,n,s){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=p._export_sfc(u,[["render",d]]),B=({componentOptions:e,builderBlock:t,context:c,componentRef:l,includeBlockProps:n,isInteractive:s,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return s?{Wrapper:l,block:t,context:c,wrapperProps:e,includeBlockProps:n}:r},f=o.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(m):this.componentRef,getWrapperProps:B}}});function b(e,t,c,l,n,s){const i=o.resolveComponent("block");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,k)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):o.createCommentVNode("",!0)}const C=p._export_sfc(f,[["render",b]]);exports.default=C;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as m, openBlock as r, createBlock as
|
|
3
|
-
import {
|
|
4
|
-
import { g as R, a as b } from "./get-block-properties.
|
|
2
|
+
import { defineComponent as m, openBlock as r, createBlock as l, resolveDynamicComponent as k, mergeProps as d, withCtx as u, renderSlot as P, resolveComponent as B, normalizeProps as g, createElementBlock as $, Fragment as v, renderList as S, createCommentVNode as W } from "vue";
|
|
3
|
+
import { e as f, B as h, w } from "./index-6a_qPbnw.js";
|
|
4
|
+
import { g as R, a as b } from "./get-block-properties-ZirT3ZGB.js";
|
|
5
5
|
const I = m({
|
|
6
6
|
name: "interactive-element",
|
|
7
7
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -10,7 +10,7 @@ const I = m({
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
function E(e, o, p, s, t, c) {
|
|
13
|
-
return r(),
|
|
13
|
+
return r(), l(k(e.Wrapper), d({
|
|
14
14
|
attributes: e.includeBlockProps ? {
|
|
15
15
|
...e.getBlockProperties({
|
|
16
16
|
block: e.block,
|
|
@@ -25,27 +25,31 @@ function E(e, o, p, s, t, c) {
|
|
|
25
25
|
})
|
|
26
26
|
} : {}
|
|
27
27
|
}, e.wrapperProps), {
|
|
28
|
-
default:
|
|
29
|
-
|
|
28
|
+
default: u(() => [
|
|
29
|
+
P(e.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
32
|
}, 16, ["attributes"]);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const i = /* @__PURE__ */ f(I, [["render", E]]), y = ({
|
|
35
35
|
componentOptions: e,
|
|
36
36
|
builderBlock: o,
|
|
37
37
|
context: p,
|
|
38
38
|
componentRef: s,
|
|
39
39
|
includeBlockProps: t,
|
|
40
40
|
isInteractive: c,
|
|
41
|
-
contextValue:
|
|
41
|
+
contextValue: a
|
|
42
42
|
}) => {
|
|
43
43
|
const n = {
|
|
44
44
|
...e,
|
|
45
|
+
/**
|
|
46
|
+
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
47
|
+
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
48
|
+
*/
|
|
45
49
|
...t ? {
|
|
46
50
|
attributes: b({
|
|
47
51
|
block: o,
|
|
48
|
-
context:
|
|
52
|
+
context: a
|
|
49
53
|
})
|
|
50
54
|
} : {}
|
|
51
55
|
};
|
|
@@ -58,7 +62,7 @@ const a = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/bui
|
|
|
58
62
|
} : n;
|
|
59
63
|
}, A = m({
|
|
60
64
|
name: "component-ref",
|
|
61
|
-
components: { Block:
|
|
65
|
+
components: { Block: h, InteractiveElement: i },
|
|
62
66
|
props: [
|
|
63
67
|
"isInteractive",
|
|
64
68
|
"componentRef",
|
|
@@ -72,14 +76,14 @@ const a = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/bui
|
|
|
72
76
|
],
|
|
73
77
|
data() {
|
|
74
78
|
return {
|
|
75
|
-
Wrapper: this.isInteractive ?
|
|
79
|
+
Wrapper: this.isInteractive ? w(i) : this.componentRef,
|
|
76
80
|
getWrapperProps: y
|
|
77
81
|
};
|
|
78
82
|
}
|
|
79
83
|
});
|
|
80
84
|
function O(e, o, p, s, t, c) {
|
|
81
|
-
const
|
|
82
|
-
return e.componentRef ? (r(),
|
|
85
|
+
const a = B("block");
|
|
86
|
+
return e.componentRef ? (r(), l(k(e.Wrapper), g(d(
|
|
83
87
|
{ key: 0 },
|
|
84
88
|
e.getWrapperProps({
|
|
85
89
|
componentOptions: e.componentOptions,
|
|
@@ -92,8 +96,8 @@ function O(e, o, p, s, t, c) {
|
|
|
92
96
|
contextValue: e.context
|
|
93
97
|
})
|
|
94
98
|
)), {
|
|
95
|
-
default:
|
|
96
|
-
(r(!0),
|
|
99
|
+
default: u(() => [
|
|
100
|
+
(r(!0), $(v, null, S(e.blockChildren, (n, C) => (r(), l(a, {
|
|
97
101
|
key: n.id,
|
|
98
102
|
block: n,
|
|
99
103
|
context: e.context,
|
|
@@ -102,9 +106,9 @@ function O(e, o, p, s, t, c) {
|
|
|
102
106
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
103
107
|
]),
|
|
104
108
|
_: 1
|
|
105
|
-
}, 16)) :
|
|
109
|
+
}, 16)) : W("", !0);
|
|
106
110
|
}
|
|
107
|
-
const L = /* @__PURE__ */ f(A, [["render", O]
|
|
111
|
+
const L = /* @__PURE__ */ f(A, [["render", O]]);
|
|
108
112
|
export {
|
|
109
113
|
L as default
|
|
110
114
|
};
|
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
31
31
|
includeBlockProps: boolean;
|
|
32
32
|
isInteractive: boolean;
|
|
33
33
|
};
|
|
34
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
34
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
35
35
|
context?: any;
|
|
36
36
|
block?: any;
|
|
37
37
|
registeredComponents?: any;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
12
12
|
}, {
|
|
13
13
|
canShowBlock(): boolean;
|
|
14
14
|
css(): string;
|
|
15
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
15
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
16
16
|
context?: any;
|
|
17
17
|
block?: any;
|
|
18
18
|
}>>>, {
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
10
10
|
}>, unknown, {
|
|
11
11
|
getBlockActions: typeof getBlockActions;
|
|
12
12
|
getBlockProperties: typeof getBlockProperties;
|
|
13
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
13
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
14
14
|
context?: any;
|
|
15
15
|
block?: any;
|
|
16
16
|
Wrapper?: any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { BuilderContextInterface, RegisteredComponents } from '../../../../context/types.js';
|
|
2
2
|
import type { BuilderBlock } from '../../../../types/builder-block.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { BuilderDataProps } from '../../../../types/builder-props.js';
|
|
4
4
|
import type { InteractiveElementProps } from '../interactive-element.vue';
|
|
5
|
-
type ComponentOptions =
|
|
5
|
+
type ComponentOptions = BuilderDataProps & {
|
|
6
6
|
[index: string]: any;
|
|
7
7
|
attributes?: {
|
|
8
8
|
[index: string]: any;
|
|
9
9
|
};
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
export interface ComponentProps {
|
|
12
12
|
componentRef: any;
|
|
13
13
|
componentOptions: ComponentOptions;
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
24
24
|
builderBlock: import("../../../../server-index.js").BuilderBlock;
|
|
25
25
|
builderContext: import("../../../../context/types.js").BuilderContextInterface;
|
|
26
26
|
};
|
|
27
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
27
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
28
28
|
context?: any;
|
|
29
29
|
registeredComponents?: any;
|
|
30
30
|
includeBlockProps?: any;
|