@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
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as r, createBlock as
|
|
2
|
-
import {
|
|
3
|
-
import { g as R, a as b } from "./get-block-properties.
|
|
4
|
-
import "node:module";
|
|
1
|
+
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";
|
|
2
|
+
import { e as f, B as h, w } from "./index-TgZujUqz.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-LsQPb5mK.js";
|
|
5
4
|
const I = m({
|
|
6
5
|
name: "interactive-element",
|
|
7
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -10,7 +9,7 @@ const I = m({
|
|
|
10
9
|
}
|
|
11
10
|
});
|
|
12
11
|
function E(e, o, p, s, t, c) {
|
|
13
|
-
return r(),
|
|
12
|
+
return r(), l(k(e.Wrapper), d({
|
|
14
13
|
attributes: e.includeBlockProps ? {
|
|
15
14
|
...e.getBlockProperties({
|
|
16
15
|
block: e.block,
|
|
@@ -25,27 +24,31 @@ function E(e, o, p, s, t, c) {
|
|
|
25
24
|
})
|
|
26
25
|
} : {}
|
|
27
26
|
}, e.wrapperProps), {
|
|
28
|
-
default:
|
|
29
|
-
|
|
27
|
+
default: u(() => [
|
|
28
|
+
P(e.$slots, "default")
|
|
30
29
|
]),
|
|
31
30
|
_: 3
|
|
32
31
|
}, 16, ["attributes"]);
|
|
33
32
|
}
|
|
34
|
-
const
|
|
33
|
+
const i = /* @__PURE__ */ f(I, [["render", E]]), y = ({
|
|
35
34
|
componentOptions: e,
|
|
36
35
|
builderBlock: o,
|
|
37
36
|
context: p,
|
|
38
37
|
componentRef: s,
|
|
39
38
|
includeBlockProps: t,
|
|
40
39
|
isInteractive: c,
|
|
41
|
-
contextValue:
|
|
40
|
+
contextValue: a
|
|
42
41
|
}) => {
|
|
43
42
|
const n = {
|
|
44
43
|
...e,
|
|
44
|
+
/**
|
|
45
|
+
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
46
|
+
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
47
|
+
*/
|
|
45
48
|
...t ? {
|
|
46
49
|
attributes: b({
|
|
47
50
|
block: o,
|
|
48
|
-
context:
|
|
51
|
+
context: a
|
|
49
52
|
})
|
|
50
53
|
} : {}
|
|
51
54
|
};
|
|
@@ -58,7 +61,7 @@ const a = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/bui
|
|
|
58
61
|
} : n;
|
|
59
62
|
}, A = m({
|
|
60
63
|
name: "component-ref",
|
|
61
|
-
components: { Block:
|
|
64
|
+
components: { Block: h, InteractiveElement: i },
|
|
62
65
|
props: [
|
|
63
66
|
"isInteractive",
|
|
64
67
|
"componentRef",
|
|
@@ -72,14 +75,14 @@ const a = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/bui
|
|
|
72
75
|
],
|
|
73
76
|
data() {
|
|
74
77
|
return {
|
|
75
|
-
Wrapper: this.isInteractive ?
|
|
78
|
+
Wrapper: this.isInteractive ? w(i) : this.componentRef,
|
|
76
79
|
getWrapperProps: y
|
|
77
80
|
};
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
function O(e, o, p, s, t, c) {
|
|
81
|
-
const
|
|
82
|
-
return e.componentRef ? (r(),
|
|
84
|
+
const a = B("block");
|
|
85
|
+
return e.componentRef ? (r(), l(k(e.Wrapper), g(d(
|
|
83
86
|
{ key: 0 },
|
|
84
87
|
e.getWrapperProps({
|
|
85
88
|
componentOptions: e.componentOptions,
|
|
@@ -92,8 +95,8 @@ function O(e, o, p, s, t, c) {
|
|
|
92
95
|
contextValue: e.context
|
|
93
96
|
})
|
|
94
97
|
)), {
|
|
95
|
-
default:
|
|
96
|
-
(r(!0),
|
|
98
|
+
default: u(() => [
|
|
99
|
+
(r(!0), $(v, null, S(e.blockChildren, (n, C) => (r(), l(a, {
|
|
97
100
|
key: n.id,
|
|
98
101
|
block: n,
|
|
99
102
|
context: e.context,
|
|
@@ -102,9 +105,9 @@ function O(e, o, p, s, t, c) {
|
|
|
102
105
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
103
106
|
]),
|
|
104
107
|
_: 1
|
|
105
|
-
}, 16)) :
|
|
108
|
+
}, 16)) : W("", !0);
|
|
106
109
|
}
|
|
107
|
-
const
|
|
110
|
+
const F = /* @__PURE__ */ f(A, [["render", O]]);
|
|
108
111
|
export {
|
|
109
|
-
|
|
112
|
+
F as default
|
|
110
113
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-mB-x2rNA.cjs"),a=require("./get-block-properties-saGQjgeQ.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 k=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:k},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(k):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,m)=>(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;
|
|
@@ -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;
|
|
@@ -9,6 +9,7 @@ export type InteractiveElementProps = {
|
|
|
9
9
|
context: BuilderContextInterface;
|
|
10
10
|
wrapperProps: Dictionary<any>;
|
|
11
11
|
includeBlockProps: boolean;
|
|
12
|
+
children?: any;
|
|
12
13
|
};
|
|
13
14
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
14
15
|
context?: any;
|
|
@@ -19,7 +20,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
20
|
}>, unknown, {
|
|
20
21
|
getBlockActions: typeof getBlockActions;
|
|
21
22
|
getBlockProperties: typeof getBlockProperties;
|
|
22
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
23
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
23
24
|
context?: any;
|
|
24
25
|
block?: any;
|
|
25
26
|
wrapperProps?: any;
|
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
5
5
|
repeatContext?: any;
|
|
6
6
|
}>, unknown, {
|
|
7
7
|
store: any;
|
|
8
|
-
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
8
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
9
9
|
block?: any;
|
|
10
10
|
registeredComponents?: any;
|
|
11
11
|
linkComponent?: any;
|
|
@@ -12,6 +12,7 @@ export type BlocksWrapperProps = {
|
|
|
12
12
|
* Additonal props to pass to `blocksWrapper`. Defaults to `{}`.
|
|
13
13
|
*/
|
|
14
14
|
BlocksWrapperProps: any;
|
|
15
|
+
children?: any;
|
|
15
16
|
};
|
|
16
17
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
17
18
|
path?: any;
|
|
@@ -25,7 +26,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
25
26
|
}, {
|
|
26
27
|
onClick(): void;
|
|
27
28
|
onMouseEnter(): void;
|
|
28
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
29
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
29
30
|
path?: any;
|
|
30
31
|
BlocksWrapper?: any;
|
|
31
32
|
blocks?: any;
|
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
context?: any;
|
|
7
7
|
registeredComponents?: any;
|
|
8
8
|
linkComponent?: any;
|
|
9
|
-
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
9
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
10
10
|
path?: any;
|
|
11
11
|
blocks?: any;
|
|
12
12
|
parent?: any;
|
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
76
76
|
emitStateUpdate(): void;
|
|
77
77
|
elementRef_onIniteditingbldr(event: any): void;
|
|
78
78
|
elementRef_onInitpreviewingbldr(event: any): void;
|
|
79
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
79
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
80
80
|
data?: any;
|
|
81
81
|
content?: any;
|
|
82
82
|
context?: any;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
4
4
|
customFonts?: any;
|
|
5
5
|
}>, unknown, {
|
|
6
6
|
injectedStyles: string;
|
|
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
|
contentId?: any;
|
|
9
9
|
cssCode?: any;
|
|
10
10
|
customFonts?: any;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { BuilderRenderState } from '../../context/types.js';
|
|
2
|
-
|
|
3
|
-
import type { ContentVariantsPrps } from '../content-variants/content-variants.types.js';
|
|
4
|
-
interface InternalRenderProps {
|
|
5
|
-
showContent: boolean;
|
|
6
|
-
isSsrAbTest: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsPrps>;
|
|
2
|
+
export type { ContentProps } from './contentProps.types.js';
|
|
9
3
|
export interface BuilderComponentStateChange {
|
|
10
4
|
state: BuilderRenderState;
|
|
11
5
|
ref: {
|
|
@@ -17,4 +11,3 @@ export interface BuilderComponentStateChange {
|
|
|
17
11
|
};
|
|
18
12
|
};
|
|
19
13
|
}
|
|
20
|
-
export {};
|
|
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
42
42
|
TARGET: import("../../types/targets.js").Target;
|
|
43
43
|
}, {}, {
|
|
44
44
|
contentSetState(newRootState: BuilderRenderState): void;
|
|
45
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
45
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
46
46
|
data?: any;
|
|
47
47
|
content?: any;
|
|
48
48
|
context?: any;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
49
49
|
updateCookieAndStylesScriptStr(): string;
|
|
50
50
|
hideVariantsStyleString(): string;
|
|
51
51
|
defaultContent(): any;
|
|
52
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
52
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
53
53
|
data?: any;
|
|
54
54
|
content?: any;
|
|
55
55
|
context?: any;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
export interface DynamicRendererProps {
|
|
2
|
+
children?: any;
|
|
3
|
+
TagName: any;
|
|
4
|
+
attributes: any;
|
|
5
|
+
actionAttributes: any;
|
|
6
|
+
}
|
|
1
7
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
8
|
attributes?: any;
|
|
3
9
|
actionAttributes?: any;
|
|
4
10
|
TagName?: any;
|
|
5
11
|
}>, unknown, {
|
|
6
12
|
isEmptyElement: (tagName: any) => boolean;
|
|
7
|
-
}, {}, {}, 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<{
|
|
8
14
|
attributes?: any;
|
|
9
15
|
actionAttributes?: any;
|
|
10
16
|
TagName?: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
2
|
id?: any;
|
|
3
3
|
scriptStr?: any;
|
|
4
|
-
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
4
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
5
5
|
id?: any;
|
|
6
6
|
scriptStr?: any;
|
|
7
7
|
}>>>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
2
|
styles?: any;
|
|
3
3
|
id?: any;
|
|
4
|
-
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
4
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
5
5
|
styles?: any;
|
|
6
6
|
id?: any;
|
|
7
7
|
}>>>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.13.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.3";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { f as n, T as c, h as i, i as l } from "./index-TgZujUqz.js";
|
|
2
|
+
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => n({
|
|
3
3
|
code: e,
|
|
4
4
|
context: t.context,
|
|
5
5
|
localState: t.localState,
|
|
@@ -8,16 +8,15 @@ const p = (e) => `v-on:${e.toLowerCase()}`, u = (e, t) => (r) => c({
|
|
|
8
8
|
event: r,
|
|
9
9
|
isExpression: !1
|
|
10
10
|
});
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
if (!r.hasOwnProperty(s))
|
|
11
|
+
function S(e) {
|
|
12
|
+
const t = {}, r = e.block.actions ?? {};
|
|
13
|
+
for (const o in r) {
|
|
14
|
+
if (!r.hasOwnProperty(o))
|
|
16
15
|
continue;
|
|
17
|
-
const
|
|
18
|
-
let a =
|
|
16
|
+
const s = r[o];
|
|
17
|
+
let a = f(o);
|
|
19
18
|
if (e.stripPrefix)
|
|
20
|
-
switch (
|
|
19
|
+
switch (c) {
|
|
21
20
|
case "vue":
|
|
22
21
|
a = a.replace("v-on:", "");
|
|
23
22
|
break;
|
|
@@ -25,40 +24,40 @@ function g(e) {
|
|
|
25
24
|
a = a.replace("on:", "");
|
|
26
25
|
break;
|
|
27
26
|
}
|
|
28
|
-
t[a] =
|
|
27
|
+
t[a] = p(s, e);
|
|
29
28
|
}
|
|
30
29
|
return t;
|
|
31
30
|
}
|
|
32
|
-
function
|
|
31
|
+
function u({
|
|
33
32
|
properties: e
|
|
34
33
|
}) {
|
|
35
34
|
return e;
|
|
36
35
|
}
|
|
37
|
-
const
|
|
36
|
+
const v = (e) => ({
|
|
38
37
|
href: e.href
|
|
39
38
|
});
|
|
40
|
-
function
|
|
39
|
+
function g({
|
|
41
40
|
block: e,
|
|
42
41
|
context: t
|
|
43
42
|
}) {
|
|
44
43
|
var o;
|
|
45
44
|
const r = {
|
|
46
|
-
...
|
|
45
|
+
...v(e),
|
|
47
46
|
...e.properties,
|
|
48
47
|
"builder-id": e.id,
|
|
49
|
-
style:
|
|
48
|
+
style: i({
|
|
50
49
|
block: e,
|
|
51
50
|
context: t
|
|
52
51
|
}),
|
|
53
|
-
[
|
|
52
|
+
[l()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
54
53
|
};
|
|
55
|
-
return
|
|
54
|
+
return u({
|
|
56
55
|
properties: r,
|
|
57
56
|
context: t,
|
|
58
57
|
block: e
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
export {
|
|
62
|
-
|
|
63
|
-
g
|
|
61
|
+
g as a,
|
|
62
|
+
S as g
|
|
64
63
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./index-mB-x2rNA.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=c(o);if(e.stripPrefix)switch(s.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(a,e)}return t}function u({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:s.getStyle({block:e,context:t}),[s.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
|