@builder.io/sdk-vue 0.13.1 → 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.f235a6b3.js → block-styles-jDSz7IPu.js} +15 -15
- package/lib/browser/{block-wrapper.5c142781.cjs → block-wrapper-aYMueUMD.cjs} +1 -1
- package/lib/browser/{block-wrapper.0326cf92.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/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/form/form.vue.d.ts +112 -0
- package/lib/browser/blocks/form/input/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/input/input.vue.d.ts +43 -0
- package/lib/browser/blocks/form/select/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/select/select.vue.d.ts +38 -0
- package/lib/browser/blocks/form/submit-button/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
- 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 +7 -7
- 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.1182befe.cjs → component-ref-23FBngqj.cjs} +1 -1
- package/lib/browser/{component-ref.4425a615.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/extra-components.d.ts +7 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-env.d.ts +2 -0
- package/lib/browser/functions/get.d.ts +1 -0
- package/lib/browser/get-block-properties-KacPzO_o.cjs +1 -0
- package/lib/browser/{get-block-properties.73425f09.js → get-block-properties-ZirT3ZGB.js} +19 -20
- package/lib/browser/{index.5f9ed15d.js → index-6a_qPbnw.js} +1710 -1055
- 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.4b8c3ea0.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.c430e392.js → block-styles-Tjp0oeui.js} +18 -18
- package/lib/edge/{block-wrapper.53b24038.cjs → block-wrapper-K-I0ddom.cjs} +1 -1
- package/lib/{node/block-wrapper.779562b4.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/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/form/form.vue.d.ts +112 -0
- package/lib/edge/blocks/form/input/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/input/input.vue.d.ts +43 -0
- package/lib/edge/blocks/form/select/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/select/select.vue.d.ts +38 -0
- package/lib/edge/blocks/form/submit-button/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
- 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 +7 -7
- 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.ebab0bd9.js → component-ref-Oo-dR5xV.js} +21 -17
- package/lib/edge/{component-ref.62a7f1bd.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/extra-components.d.ts +7 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-env.d.ts +2 -0
- package/lib/edge/functions/get.d.ts +1 -0
- package/lib/{node/get-block-properties.5a8121c0.js → edge/get-block-properties-BKnsvu-2.js} +19 -20
- package/lib/edge/get-block-properties-q52zAZuL.cjs +1 -0
- package/lib/edge/{index.ae2d13a8.js → index-FjGYEtq6.js} +2574 -1919
- 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.ea7178d4.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.5c506171.js → block-styles-WHZ3oh47.js} +18 -19
- package/lib/node/block-wrapper-7G595XQl.cjs +1 -0
- package/lib/{edge/block-wrapper.f04e7d06.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/component-info.d.ts +2 -0
- package/lib/node/blocks/form/form/form.vue.d.ts +112 -0
- package/lib/node/blocks/form/input/component-info.d.ts +2 -0
- package/lib/node/blocks/form/input/input.vue.d.ts +43 -0
- package/lib/node/blocks/form/select/component-info.d.ts +2 -0
- package/lib/node/blocks/form/select/select.vue.d.ts +38 -0
- package/lib/node/blocks/form/submit-button/component-info.d.ts +2 -0
- package/lib/node/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
- 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 +7 -7
- 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.616a1d7e.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/extra-components.d.ts +7 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-env.d.ts +2 -0
- package/lib/node/functions/get.d.ts +1 -0
- package/lib/{edge/get-block-properties.3eea9a11.js → node/get-block-properties-LsQPb5mK.js} +19 -20
- package/lib/node/get-block-properties-saGQjgeQ.cjs +1 -0
- package/lib/node/{index.f804c64d.js → index-TgZujUqz.js} +1131 -474
- 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.4fe417ba.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.443192e0.cjs +0 -1
- package/lib/browser/blocks/form/component-info.d.ts +0 -2
- package/lib/browser/blocks/input/component-info.d.ts +0 -2
- package/lib/browser/blocks/select/component-info.d.ts +0 -2
- package/lib/browser/blocks/submit-button/component-info.d.ts +0 -2
- package/lib/browser/get-block-properties.75a4033c.cjs +0 -1
- package/lib/browser/index.ea2f8191.cjs +0 -165
- package/lib/edge/block-styles.ae042612.cjs +0 -1
- package/lib/edge/blocks/form/component-info.d.ts +0 -2
- package/lib/edge/blocks/input/component-info.d.ts +0 -2
- package/lib/edge/blocks/select/component-info.d.ts +0 -2
- package/lib/edge/blocks/submit-button/component-info.d.ts +0 -2
- package/lib/edge/get-block-properties.ef38da5e.cjs +0 -1
- package/lib/edge/index.6a49244b.cjs +0 -185
- package/lib/edge/repeated-block.391f9aec.cjs +0 -1
- package/lib/edge/repeated-block.8c46a7c6.js +0 -34
- package/lib/node/block-styles.b0758e84.cjs +0 -1
- package/lib/node/block-wrapper.4b4b32dd.cjs +0 -1
- package/lib/node/blocks/form/component-info.d.ts +0 -2
- package/lib/node/blocks/input/component-info.d.ts +0 -2
- package/lib/node/blocks/select/component-info.d.ts +0 -2
- package/lib/node/blocks/submit-button/component-info.d.ts +0 -2
- package/lib/node/component-ref.471ae470.cjs +0 -1
- package/lib/node/get-block-properties.310a39f2.cjs +0 -1
- package/lib/node/index.9cc8fd23.cjs +0 -205
- package/lib/node/repeated-block.fc61b1ce.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.5f9ed15d.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;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
2
|
+
import type { BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp } from "../../../types/builder-props.js";
|
|
3
|
+
import type { Dictionary } from "../../../types/typescript.js";
|
|
4
|
+
import { filterAttrs } from "../../helpers.js";
|
|
5
|
+
/**
|
|
6
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
7
|
+
*/
|
|
8
|
+
export type FormProps = BuilderDataProps & BuilderComponentsProp & BuilderLinkComponentProp & {
|
|
9
|
+
attributes?: any;
|
|
10
|
+
name?: string;
|
|
11
|
+
action?: string;
|
|
12
|
+
validate?: boolean;
|
|
13
|
+
method?: string;
|
|
14
|
+
sendSubmissionsTo?: string;
|
|
15
|
+
sendSubmissionsToEmail?: string;
|
|
16
|
+
sendWithJs?: boolean;
|
|
17
|
+
contentType?: string;
|
|
18
|
+
customHeaders?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
successUrl?: string;
|
|
22
|
+
previewState?: FormState;
|
|
23
|
+
successMessage?: BuilderBlock[];
|
|
24
|
+
errorMessage?: BuilderBlock[];
|
|
25
|
+
sendingMessage?: BuilderBlock[];
|
|
26
|
+
resetFormOnSubmit?: boolean;
|
|
27
|
+
errorMessagePath?: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
31
|
+
*/
|
|
32
|
+
export type FormState = "unsubmitted" | "sending" | "success" | "error";
|
|
33
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
34
|
+
name?: any;
|
|
35
|
+
builderContext?: any;
|
|
36
|
+
attributes?: any;
|
|
37
|
+
builderLinkComponent?: any;
|
|
38
|
+
builderBlock?: any;
|
|
39
|
+
builderComponents?: any;
|
|
40
|
+
js?: any;
|
|
41
|
+
previewState?: any;
|
|
42
|
+
sendWithJs?: any;
|
|
43
|
+
sendSubmissionsTo?: any;
|
|
44
|
+
action?: any;
|
|
45
|
+
customHeaders?: any;
|
|
46
|
+
contentType?: any;
|
|
47
|
+
sendSubmissionsToEmail?: any;
|
|
48
|
+
method?: any;
|
|
49
|
+
errorMessagePath?: any;
|
|
50
|
+
resetFormOnSubmit?: any;
|
|
51
|
+
successUrl?: any;
|
|
52
|
+
validate?: any;
|
|
53
|
+
errorMessage?: any;
|
|
54
|
+
sendingMessage?: any;
|
|
55
|
+
successMessage?: any;
|
|
56
|
+
}>, unknown, {
|
|
57
|
+
formState: string;
|
|
58
|
+
responseData: null;
|
|
59
|
+
formErrorMessage: string;
|
|
60
|
+
filterAttrs: typeof filterAttrs;
|
|
61
|
+
}, {}, {
|
|
62
|
+
mergeNewRootState(newData: Dictionary<any>): void;
|
|
63
|
+
submissionState(): any;
|
|
64
|
+
onSubmit(event: any): void;
|
|
65
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
66
|
+
name?: any;
|
|
67
|
+
builderContext?: any;
|
|
68
|
+
attributes?: any;
|
|
69
|
+
builderLinkComponent?: any;
|
|
70
|
+
builderBlock?: any;
|
|
71
|
+
builderComponents?: any;
|
|
72
|
+
js?: any;
|
|
73
|
+
previewState?: any;
|
|
74
|
+
sendWithJs?: any;
|
|
75
|
+
sendSubmissionsTo?: any;
|
|
76
|
+
action?: any;
|
|
77
|
+
customHeaders?: any;
|
|
78
|
+
contentType?: any;
|
|
79
|
+
sendSubmissionsToEmail?: any;
|
|
80
|
+
method?: any;
|
|
81
|
+
errorMessagePath?: any;
|
|
82
|
+
resetFormOnSubmit?: any;
|
|
83
|
+
successUrl?: any;
|
|
84
|
+
validate?: any;
|
|
85
|
+
errorMessage?: any;
|
|
86
|
+
sendingMessage?: any;
|
|
87
|
+
successMessage?: any;
|
|
88
|
+
}>>>, {
|
|
89
|
+
readonly name?: any;
|
|
90
|
+
readonly builderContext?: any;
|
|
91
|
+
readonly attributes?: any;
|
|
92
|
+
readonly builderLinkComponent?: any;
|
|
93
|
+
readonly builderBlock?: any;
|
|
94
|
+
readonly builderComponents?: any;
|
|
95
|
+
readonly js?: any;
|
|
96
|
+
readonly previewState?: any;
|
|
97
|
+
readonly sendWithJs?: any;
|
|
98
|
+
readonly sendSubmissionsTo?: any;
|
|
99
|
+
readonly action?: any;
|
|
100
|
+
readonly customHeaders?: any;
|
|
101
|
+
readonly contentType?: any;
|
|
102
|
+
readonly sendSubmissionsToEmail?: any;
|
|
103
|
+
readonly method?: any;
|
|
104
|
+
readonly errorMessagePath?: any;
|
|
105
|
+
readonly resetFormOnSubmit?: any;
|
|
106
|
+
readonly successUrl?: any;
|
|
107
|
+
readonly validate?: any;
|
|
108
|
+
readonly errorMessage?: any;
|
|
109
|
+
readonly sendingMessage?: any;
|
|
110
|
+
readonly successMessage?: any;
|
|
111
|
+
}, {}>;
|
|
112
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { isEditing } from "../../../functions/is-editing.js";
|
|
2
|
+
import { filterAttrs } from "../../helpers.js";
|
|
3
|
+
/**
|
|
4
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
5
|
+
*/
|
|
6
|
+
export interface FormInputProps {
|
|
7
|
+
type?: string;
|
|
8
|
+
attributes?: any;
|
|
9
|
+
name?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
16
|
+
name?: any;
|
|
17
|
+
attributes?: any;
|
|
18
|
+
value?: any;
|
|
19
|
+
defaultValue?: any;
|
|
20
|
+
placeholder?: any;
|
|
21
|
+
type?: any;
|
|
22
|
+
required?: any;
|
|
23
|
+
}>, unknown, {
|
|
24
|
+
isEditing: typeof isEditing;
|
|
25
|
+
filterAttrs: typeof filterAttrs;
|
|
26
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
27
|
+
name?: any;
|
|
28
|
+
attributes?: any;
|
|
29
|
+
value?: any;
|
|
30
|
+
defaultValue?: any;
|
|
31
|
+
placeholder?: any;
|
|
32
|
+
type?: any;
|
|
33
|
+
required?: any;
|
|
34
|
+
}>>>, {
|
|
35
|
+
readonly name?: any;
|
|
36
|
+
readonly attributes?: any;
|
|
37
|
+
readonly value?: any;
|
|
38
|
+
readonly defaultValue?: any;
|
|
39
|
+
readonly placeholder?: any;
|
|
40
|
+
readonly type?: any;
|
|
41
|
+
readonly required?: any;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isEditing } from "../../../functions/is-editing.js";
|
|
2
|
+
import { filterAttrs } from "../../helpers.js";
|
|
3
|
+
/**
|
|
4
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
5
|
+
*/
|
|
6
|
+
export interface FormSelectProps {
|
|
7
|
+
options?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
attributes?: any;
|
|
12
|
+
name?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
17
|
+
name?: any;
|
|
18
|
+
attributes?: any;
|
|
19
|
+
value?: any;
|
|
20
|
+
defaultValue?: any;
|
|
21
|
+
options?: any;
|
|
22
|
+
}>, unknown, {
|
|
23
|
+
isEditing: typeof isEditing;
|
|
24
|
+
filterAttrs: typeof filterAttrs;
|
|
25
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
26
|
+
name?: any;
|
|
27
|
+
attributes?: any;
|
|
28
|
+
value?: any;
|
|
29
|
+
defaultValue?: any;
|
|
30
|
+
options?: any;
|
|
31
|
+
}>>>, {
|
|
32
|
+
readonly name?: any;
|
|
33
|
+
readonly attributes?: any;
|
|
34
|
+
readonly value?: any;
|
|
35
|
+
readonly defaultValue?: any;
|
|
36
|
+
readonly options?: any;
|
|
37
|
+
}, {}>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { filterAttrs } from "../../helpers.js";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
attributes?: any;
|
|
7
|
+
text?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
10
|
+
text?: any;
|
|
11
|
+
attributes?: any;
|
|
12
|
+
}>, unknown, {
|
|
13
|
+
filterAttrs: typeof filterAttrs;
|
|
14
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
15
|
+
text?: any;
|
|
16
|
+
attributes?: any;
|
|
17
|
+
}>>>, {
|
|
18
|
+
readonly text?: any;
|
|
19
|
+
readonly attributes?: any;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
@@ -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,19 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export interface DropzoneProps {
|
|
1
|
+
import type { BuilderDataProps } from "../../types/builder-props.js";
|
|
2
|
+
export type DropzoneProps = BuilderDataProps & {
|
|
4
3
|
name: string;
|
|
5
|
-
builderBlock: BuilderBlock;
|
|
6
|
-
builderContext: BuilderContextInterface;
|
|
7
4
|
attributes: any;
|
|
8
|
-
}
|
|
5
|
+
};
|
|
9
6
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
10
7
|
name?: any;
|
|
11
8
|
builderContext?: any;
|
|
12
|
-
|
|
9
|
+
js?: any;
|
|
10
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
13
11
|
name?: any;
|
|
14
12
|
builderContext?: any;
|
|
13
|
+
js?: any;
|
|
15
14
|
}>>>, {
|
|
16
15
|
readonly name?: any;
|
|
17
16
|
readonly builderContext?: any;
|
|
17
|
+
readonly js?: any;
|
|
18
18
|
}, {}>;
|
|
19
19
|
export default _default;
|
|
@@ -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;
|