@builder.io/sdk-vue 0.12.3 → 0.12.4
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.02ba52b2.cjs +1 -0
- package/lib/{edge/block-styles.4feb92ca.js → browser/block-styles.53c7f508.js} +5 -5
- package/lib/browser/block-wrapper.9fa9b402.cjs +1 -0
- package/lib/{edge/block-wrapper.94c267ab.js → browser/block-wrapper.eee0672a.js} +4 -4
- package/lib/browser/blocks/button/button.types.d.ts +2 -1
- package/lib/browser/blocks/button/button.vue.d.ts +4 -0
- package/lib/browser/blocks/columns/columns.types.d.ts +3 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +9 -3
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/browser/{component-ref.c3fbfacf.js → component-ref.413e00a0.js} +26 -24
- package/lib/browser/component-ref.7152f073.cjs +1 -0
- package/lib/browser/components/block/block.vue.d.ts +8 -3
- package/lib/browser/components/block/components/block-styles.vue.d.ts +3 -3
- package/lib/browser/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +4 -2
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/browser/components/block/components/repeated-block.vue.d.ts +3 -0
- package/lib/browser/components/blocks/blocks.types.d.ts +1 -0
- package/lib/browser/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +6 -2
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-block-properties.d.ts +1 -2
- package/lib/browser/functions/get-class-prop-name.d.ts +1 -0
- package/lib/browser/functions/get-style.d.ts +12 -0
- package/lib/browser/functions/transform-block-properties.d.ts +2 -2
- package/lib/browser/functions/transform-style-property.d.ts +7 -0
- package/lib/browser/get-block-properties.977a77b8.js +65 -0
- package/lib/browser/get-block-properties.af78bde3.cjs +1 -0
- package/lib/browser/helpers/omit.d.ts +1 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +6 -0
- package/lib/browser/{index.62a4dd7e.js → index.125c730f.js} +781 -637
- package/lib/browser/index.50f38496.cjs +165 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +8 -8
- package/lib/browser/repeated-block.0c50662b.cjs +1 -0
- package/lib/browser/repeated-block.bc26d02d.js +35 -0
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-block.d.ts +1 -0
- package/lib/browser/types/builder-props.d.ts +3 -0
- package/lib/edge/block-styles.a5af3df2.cjs +1 -0
- package/lib/{browser/block-styles.8d24c282.js → edge/block-styles.fee0d2aa.js} +11 -13
- package/lib/{browser/block-wrapper.c5dfbc00.js → edge/block-wrapper.637d7df2.js} +5 -7
- package/lib/edge/block-wrapper.6bdfca76.cjs +1 -0
- package/lib/edge/blocks/button/button.types.d.ts +2 -1
- package/lib/edge/blocks/button/button.vue.d.ts +4 -0
- package/lib/edge/blocks/columns/columns.types.d.ts +3 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +9 -3
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/edge/component-ref.369810a4.cjs +1 -0
- package/lib/edge/{component-ref.c15b3af0.js → component-ref.41811af5.js} +26 -24
- package/lib/edge/components/block/block.vue.d.ts +8 -3
- package/lib/edge/components/block/components/block-styles.vue.d.ts +3 -3
- package/lib/edge/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +4 -2
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/edge/components/block/components/repeated-block.vue.d.ts +3 -0
- package/lib/edge/components/blocks/blocks.types.d.ts +1 -0
- package/lib/edge/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +6 -2
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-block-properties.d.ts +1 -2
- package/lib/edge/functions/get-class-prop-name.d.ts +1 -0
- package/lib/edge/functions/get-style.d.ts +12 -0
- package/lib/edge/functions/transform-block-properties.d.ts +2 -2
- package/lib/edge/functions/transform-style-property.d.ts +7 -0
- package/lib/edge/get-block-properties.8c9ec377.cjs +1 -0
- package/lib/edge/get-block-properties.d9e1b7db.js +64 -0
- package/lib/edge/helpers/omit.d.ts +1 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +6 -0
- package/lib/edge/{index.6b56947b.js → index.0e671c32.js} +1545 -1401
- package/lib/edge/index.202adcba.cjs +185 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +8 -8
- package/lib/edge/repeated-block.05059f8a.cjs +1 -0
- package/lib/edge/{repeated-block.76408127.js → repeated-block.f8d5be9a.js} +11 -10
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-block.d.ts +1 -0
- package/lib/edge/types/builder-props.d.ts +3 -0
- package/lib/node/{block-styles.b73795eb.js → block-styles.bb5f14b0.js} +11 -12
- package/lib/node/block-styles.c9083d49.cjs +1 -0
- package/lib/node/{block-wrapper.8dcfcfa1.js → block-wrapper.7aa2ef9c.js} +5 -6
- package/lib/node/block-wrapper.7d82a700.cjs +1 -0
- package/lib/node/blocks/button/button.types.d.ts +2 -1
- package/lib/node/blocks/button/button.vue.d.ts +4 -0
- package/lib/node/blocks/columns/columns.types.d.ts +3 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +9 -3
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/node/{component-ref.e6e92c8d.js → component-ref.32bc874a.js} +26 -24
- package/lib/node/component-ref.3748ed2f.cjs +1 -0
- package/lib/node/components/block/block.vue.d.ts +8 -3
- package/lib/node/components/block/components/block-styles.vue.d.ts +3 -3
- package/lib/node/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +4 -2
- package/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/node/components/block/components/repeated-block.vue.d.ts +3 -0
- package/lib/node/components/blocks/blocks.types.d.ts +1 -0
- package/lib/node/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +6 -2
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-block-properties.d.ts +1 -2
- package/lib/node/functions/get-class-prop-name.d.ts +1 -0
- package/lib/node/functions/get-style.d.ts +12 -0
- package/lib/node/functions/transform-block-properties.d.ts +2 -2
- package/lib/node/functions/transform-style-property.d.ts +7 -0
- package/lib/node/get-block-properties.4076202f.cjs +1 -0
- package/lib/node/get-block-properties.4e3171b7.js +64 -0
- package/lib/node/helpers/omit.d.ts +1 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +6 -0
- package/lib/node/{index.48b1738e.js → index.0d7a2ca2.js} +327 -183
- package/lib/node/index.a0856b34.cjs +205 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +8 -8
- package/lib/node/repeated-block.05cbf677.js +35 -0
- package/lib/node/repeated-block.d07e6280.cjs +1 -0
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-block.d.ts +1 -0
- package/lib/node/types/builder-props.d.ts +3 -0
- package/package.json +1 -1
- package/lib/browser/block-styles.a0585e05.cjs +0 -1
- package/lib/browser/block-wrapper.68d48f7a.cjs +0 -1
- package/lib/browser/component-ref.d00ee381.cjs +0 -1
- package/lib/browser/css.33017a13.cjs +0 -6
- package/lib/browser/css.c99b7535.js +0 -22
- package/lib/browser/dynamic-renderer.72e99722.js +0 -29
- package/lib/browser/dynamic-renderer.e95e3678.cjs +0 -1
- package/lib/browser/get-block-actions.351bce86.js +0 -76
- package/lib/browser/get-block-actions.d7726c65.cjs +0 -1
- package/lib/browser/index.8856c30a.cjs +0 -160
- package/lib/browser/repeated-block.610c249f.js +0 -34
- package/lib/browser/repeated-block.d31def44.cjs +0 -1
- package/lib/edge/block-styles.573b7b1b.cjs +0 -1
- package/lib/edge/block-wrapper.8fa7315b.cjs +0 -1
- package/lib/edge/component-ref.25ff38ac.cjs +0 -1
- package/lib/edge/css.d221cd8e.js +0 -21
- package/lib/edge/css.ec6fd2a5.cjs +0 -6
- package/lib/edge/dynamic-renderer.47f81bbb.js +0 -28
- package/lib/edge/dynamic-renderer.7abdc573.cjs +0 -1
- package/lib/edge/get-block-actions.4687c8f3.js +0 -75
- package/lib/edge/get-block-actions.ec83f582.cjs +0 -1
- package/lib/edge/index.5778aa26.cjs +0 -180
- package/lib/edge/repeated-block.29e381f4.cjs +0 -1
- package/lib/node/block-styles.35531025.cjs +0 -1
- package/lib/node/block-wrapper.047cda0b.cjs +0 -1
- package/lib/node/component-ref.4ba40051.cjs +0 -1
- package/lib/node/css.a76e2f77.cjs +0 -6
- package/lib/node/css.ed4d90da.js +0 -21
- package/lib/node/dynamic-renderer.beba4cd5.cjs +0 -1
- package/lib/node/dynamic-renderer.e6ce0b70.js +0 -29
- package/lib/node/get-block-actions.5e56d085.js +0 -75
- package/lib/node/get-block-actions.899ffab6.cjs +0 -1
- package/lib/node/index.f4ffe7ae.cjs +0 -200
- package/lib/node/repeated-block.a42031b0.cjs +0 -1
- package/lib/node/repeated-block.cc0857ed.js +0 -34
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import type { SizeName } from "../../constants/device-sizes.js";
|
|
2
|
+
import { mapStyleObjToStrIfNeeded } from "../../functions/get-style.js";
|
|
2
3
|
import type { Dictionary } from "../../types/typescript.js";
|
|
3
4
|
type CSSVal = string | number;
|
|
4
5
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
5
6
|
builderContext?: any;
|
|
7
|
+
builderLinkComponent?: any;
|
|
6
8
|
columns?: any;
|
|
7
9
|
builderBlock?: any;
|
|
8
10
|
builderComponents?: any;
|
|
9
|
-
js?: any;
|
|
10
11
|
space?: any;
|
|
11
12
|
stackColumnsAt?: any;
|
|
12
13
|
reverseColumnsWhenStacked?: any;
|
|
14
|
+
js?: any;
|
|
13
15
|
}>, unknown, {
|
|
14
16
|
gutterSize: number;
|
|
15
17
|
cols: any;
|
|
16
18
|
stackAt: any;
|
|
17
19
|
flexDir: string;
|
|
18
20
|
TARGET: import("../../types/targets").Target;
|
|
21
|
+
getClassPropName: () => "className" | "class";
|
|
22
|
+
mapStyleObjToStrIfNeeded: typeof mapStyleObjToStrIfNeeded;
|
|
19
23
|
}, {
|
|
20
24
|
columnsCssVars(): Dictionary<string>;
|
|
21
25
|
columnsStyles(): string;
|
|
@@ -34,21 +38,23 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
34
38
|
getWidthForBreakpointSize(size: SizeName): number;
|
|
35
39
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
36
40
|
builderContext?: any;
|
|
41
|
+
builderLinkComponent?: any;
|
|
37
42
|
columns?: any;
|
|
38
43
|
builderBlock?: any;
|
|
39
44
|
builderComponents?: any;
|
|
40
|
-
js?: any;
|
|
41
45
|
space?: any;
|
|
42
46
|
stackColumnsAt?: any;
|
|
43
47
|
reverseColumnsWhenStacked?: any;
|
|
48
|
+
js?: any;
|
|
44
49
|
}>>>, {
|
|
45
50
|
readonly builderContext?: any;
|
|
51
|
+
readonly builderLinkComponent?: any;
|
|
46
52
|
readonly columns?: any;
|
|
47
53
|
readonly builderBlock?: any;
|
|
48
54
|
readonly builderComponents?: any;
|
|
49
|
-
readonly js?: any;
|
|
50
55
|
readonly space?: any;
|
|
51
56
|
readonly stackColumnsAt?: any;
|
|
52
57
|
readonly reverseColumnsWhenStacked?: any;
|
|
58
|
+
readonly js?: any;
|
|
53
59
|
}, {}>;
|
|
54
60
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BuilderContent } from '../../types/builder-content.js';
|
|
2
|
-
import type { BuilderComponentsProp } from '../../types/builder-props.js';
|
|
2
|
+
import type { BuilderComponentsProp, 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 {
|
|
11
|
+
export interface SymbolProps extends BuilderComponentsProp, BuilderLinkComponentProp {
|
|
12
12
|
symbol?: SymbolInfo;
|
|
13
13
|
dataOnly?: boolean;
|
|
14
14
|
dynamic?: boolean;
|
|
@@ -3,6 +3,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
3
3
|
symbol?: any;
|
|
4
4
|
builderContext?: any;
|
|
5
5
|
attributes?: any;
|
|
6
|
+
builderLinkComponent?: any;
|
|
6
7
|
builderBlock?: any;
|
|
7
8
|
builderComponents?: any;
|
|
8
9
|
js?: any;
|
|
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
21
22
|
symbol?: any;
|
|
22
23
|
builderContext?: any;
|
|
23
24
|
attributes?: any;
|
|
25
|
+
builderLinkComponent?: any;
|
|
24
26
|
builderBlock?: any;
|
|
25
27
|
builderComponents?: any;
|
|
26
28
|
js?: any;
|
|
@@ -29,6 +31,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
29
31
|
readonly symbol?: any;
|
|
30
32
|
readonly builderContext?: any;
|
|
31
33
|
readonly attributes?: any;
|
|
34
|
+
readonly builderLinkComponent?: any;
|
|
32
35
|
readonly builderBlock?: any;
|
|
33
36
|
readonly builderComponents?: any;
|
|
34
37
|
readonly js?: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.202adcba.cjs"),a=require("./get-block-properties.8c9ec377.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,p,s,n,l){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=c._export_sfc(u,[["render",d],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/interactive-element.vue"]]),b=({componentOptions:e,builderBlock:t,context:p,componentRef:s,includeBlockProps:n,isInteractive:l,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return l?{Wrapper:s,block:t,context:p,wrapperProps:e,includeBlockProps:n}:r},f=o.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:k},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(k):this.componentRef,getWrapperProps:b}}});function B(e,t,p,s,n,l){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("v-if",!0)}const g=c._export_sfc(f,[["render",B],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/component-ref/component-ref.vue"]]);exports.default=g;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as r, createBlock as
|
|
2
|
-
import { _ as f, B as S, w as W } from "./index.
|
|
3
|
-
import { g as R, a as b } from "./get-block-
|
|
4
|
-
import "./css.d221cd8e.js";
|
|
1
|
+
import { defineComponent as m, openBlock as r, createBlock as i, resolveDynamicComponent as k, mergeProps as u, withCtx as d, renderSlot as v, resolveComponent as P, normalizeProps as g, createElementBlock as B, Fragment as $, renderList as h, createCommentVNode as w } from "vue";
|
|
2
|
+
import { _ as f, B as S, w as W } from "./index.0e671c32.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties.d9e1b7db.js";
|
|
5
4
|
const I = m({
|
|
6
5
|
name: "interactive-element",
|
|
7
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -9,8 +8,8 @@ const I = m({
|
|
|
9
8
|
return { getBlockActions: R, getBlockProperties: b };
|
|
10
9
|
}
|
|
11
10
|
});
|
|
12
|
-
function E(e, o, p,
|
|
13
|
-
return r(),
|
|
11
|
+
function E(e, o, p, s, t, c) {
|
|
12
|
+
return r(), i(k(e.Wrapper), u({
|
|
14
13
|
attributes: e.includeBlockProps ? {
|
|
15
14
|
...e.getBlockProperties({
|
|
16
15
|
block: e.block,
|
|
@@ -26,31 +25,31 @@ function E(e, o, p, c, t, s) {
|
|
|
26
25
|
} : {}
|
|
27
26
|
}, e.wrapperProps), {
|
|
28
27
|
default: d(() => [
|
|
29
|
-
|
|
28
|
+
v(e.$slots, "default")
|
|
30
29
|
]),
|
|
31
30
|
_: 3
|
|
32
31
|
}, 16, ["attributes"]);
|
|
33
32
|
}
|
|
34
|
-
const
|
|
33
|
+
const a = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/interactive-element.vue"]]), y = ({
|
|
35
34
|
componentOptions: e,
|
|
36
35
|
builderBlock: o,
|
|
37
36
|
context: p,
|
|
38
|
-
componentRef:
|
|
37
|
+
componentRef: s,
|
|
39
38
|
includeBlockProps: t,
|
|
40
|
-
isInteractive:
|
|
41
|
-
contextValue:
|
|
39
|
+
isInteractive: c,
|
|
40
|
+
contextValue: l
|
|
42
41
|
}) => {
|
|
43
42
|
const n = {
|
|
44
43
|
...e,
|
|
45
44
|
...t ? {
|
|
46
45
|
attributes: b({
|
|
47
46
|
block: o,
|
|
48
|
-
context:
|
|
47
|
+
context: l
|
|
49
48
|
})
|
|
50
49
|
} : {}
|
|
51
50
|
};
|
|
52
|
-
return
|
|
53
|
-
Wrapper:
|
|
51
|
+
return c ? {
|
|
52
|
+
Wrapper: s,
|
|
54
53
|
block: o,
|
|
55
54
|
context: p,
|
|
56
55
|
wrapperProps: e,
|
|
@@ -58,50 +57,53 @@ const i = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/bui
|
|
|
58
57
|
} : n;
|
|
59
58
|
}, A = m({
|
|
60
59
|
name: "component-ref",
|
|
61
|
-
components: { Block: S, InteractiveElement:
|
|
60
|
+
components: { Block: S, InteractiveElement: a },
|
|
62
61
|
props: [
|
|
63
62
|
"isInteractive",
|
|
64
63
|
"componentRef",
|
|
65
64
|
"componentOptions",
|
|
66
65
|
"builderBlock",
|
|
67
66
|
"context",
|
|
67
|
+
"linkComponent",
|
|
68
68
|
"includeBlockProps",
|
|
69
69
|
"blockChildren",
|
|
70
70
|
"registeredComponents"
|
|
71
71
|
],
|
|
72
72
|
data() {
|
|
73
73
|
return {
|
|
74
|
-
Wrapper: this.isInteractive ? W(
|
|
74
|
+
Wrapper: this.isInteractive ? W(a) : this.componentRef,
|
|
75
75
|
getWrapperProps: y
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
function O(e, o, p,
|
|
80
|
-
const
|
|
81
|
-
return e.componentRef ? (r(),
|
|
79
|
+
function O(e, o, p, s, t, c) {
|
|
80
|
+
const l = P("block");
|
|
81
|
+
return e.componentRef ? (r(), i(k(e.Wrapper), g(u(
|
|
82
82
|
{ key: 0 },
|
|
83
83
|
e.getWrapperProps({
|
|
84
84
|
componentOptions: e.componentOptions,
|
|
85
85
|
builderBlock: e.builderBlock,
|
|
86
86
|
context: e.context,
|
|
87
87
|
componentRef: e.componentRef,
|
|
88
|
+
linkComponent: e.linkComponent,
|
|
88
89
|
includeBlockProps: e.includeBlockProps,
|
|
89
90
|
isInteractive: e.isInteractive,
|
|
90
91
|
contextValue: e.context
|
|
91
92
|
})
|
|
92
93
|
)), {
|
|
93
94
|
default: d(() => [
|
|
94
|
-
(r(!0),
|
|
95
|
+
(r(!0), B($, null, h(e.blockChildren, (n, C) => (r(), i(l, {
|
|
95
96
|
key: n.id,
|
|
96
97
|
block: n,
|
|
97
98
|
context: e.context,
|
|
98
|
-
registeredComponents: e.registeredComponents
|
|
99
|
-
|
|
99
|
+
registeredComponents: e.registeredComponents,
|
|
100
|
+
linkComponent: e.linkComponent
|
|
101
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
100
102
|
]),
|
|
101
103
|
_: 1
|
|
102
104
|
}, 16)) : w("v-if", !0);
|
|
103
105
|
}
|
|
104
|
-
const
|
|
106
|
+
const F = /* @__PURE__ */ f(A, [["render", O], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/component-ref/component-ref.vue"]]);
|
|
105
107
|
export {
|
|
106
|
-
|
|
108
|
+
F as default
|
|
107
109
|
};
|
|
@@ -4,11 +4,13 @@ export type BlockProps = {
|
|
|
4
4
|
block: BuilderBlock;
|
|
5
5
|
context: BuilderContextInterface;
|
|
6
6
|
registeredComponents: RegisteredComponents;
|
|
7
|
+
linkComponent: any;
|
|
7
8
|
};
|
|
8
9
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
9
|
-
block?: any;
|
|
10
10
|
context?: any;
|
|
11
|
+
block?: any;
|
|
11
12
|
registeredComponents?: any;
|
|
13
|
+
linkComponent?: any;
|
|
12
14
|
}>, unknown, {
|
|
13
15
|
childrenContext: any;
|
|
14
16
|
}, {
|
|
@@ -23,18 +25,21 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
23
25
|
componentRef: any;
|
|
24
26
|
componentOptions: any;
|
|
25
27
|
context: any;
|
|
28
|
+
linkComponent: any;
|
|
26
29
|
registeredComponents: any;
|
|
27
30
|
builderBlock: any;
|
|
28
31
|
includeBlockProps: boolean;
|
|
29
32
|
isInteractive: boolean;
|
|
30
33
|
};
|
|
31
34
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
32
|
-
block?: any;
|
|
33
35
|
context?: any;
|
|
36
|
+
block?: any;
|
|
34
37
|
registeredComponents?: any;
|
|
38
|
+
linkComponent?: any;
|
|
35
39
|
}>>>, {
|
|
36
|
-
readonly block?: any;
|
|
37
40
|
readonly context?: any;
|
|
41
|
+
readonly block?: any;
|
|
38
42
|
readonly registeredComponents?: any;
|
|
43
|
+
readonly linkComponent?: any;
|
|
39
44
|
}, {}>;
|
|
40
45
|
export default _default;
|
|
@@ -5,18 +5,18 @@ export type BlockStylesProps = {
|
|
|
5
5
|
context: BuilderContextInterface;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
8
|
-
block?: any;
|
|
9
8
|
context?: any;
|
|
9
|
+
block?: any;
|
|
10
10
|
}>, unknown, {
|
|
11
11
|
TARGET: import("../../../types/targets.js").Target;
|
|
12
12
|
}, {
|
|
13
13
|
canShowBlock(): boolean;
|
|
14
14
|
css(): string;
|
|
15
15
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
16
|
-
block?: any;
|
|
17
16
|
context?: any;
|
|
17
|
+
block?: any;
|
|
18
18
|
}>>>, {
|
|
19
|
-
readonly block?: any;
|
|
20
19
|
readonly context?: any;
|
|
20
|
+
readonly block?: any;
|
|
21
21
|
}, {}>;
|
|
22
22
|
export default _default;
|
|
@@ -4,19 +4,19 @@ import { getBlockProperties } from "../../../functions/get-block-properties.js";
|
|
|
4
4
|
* This component renders a block's wrapper HTML element (from the block's `tagName` property).
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
7
|
-
block?: any;
|
|
8
7
|
context?: any;
|
|
8
|
+
block?: any;
|
|
9
9
|
Wrapper?: any;
|
|
10
10
|
}>, unknown, {
|
|
11
11
|
getBlockActions: typeof getBlockActions;
|
|
12
12
|
getBlockProperties: typeof getBlockProperties;
|
|
13
13
|
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
14
|
-
block?: any;
|
|
15
14
|
context?: any;
|
|
15
|
+
block?: any;
|
|
16
16
|
Wrapper?: any;
|
|
17
17
|
}>>>, {
|
|
18
|
-
readonly block?: any;
|
|
19
18
|
readonly context?: any;
|
|
19
|
+
readonly block?: any;
|
|
20
20
|
readonly Wrapper?: any;
|
|
21
21
|
}, {}>;
|
|
22
22
|
export default _default;
|
|
@@ -14,6 +14,7 @@ export interface ComponentProps {
|
|
|
14
14
|
blockChildren: BuilderBlock[];
|
|
15
15
|
context: BuilderContextInterface;
|
|
16
16
|
registeredComponents: RegisteredComponents;
|
|
17
|
+
linkComponent: any;
|
|
17
18
|
builderBlock: BuilderBlock;
|
|
18
19
|
includeBlockProps: boolean;
|
|
19
20
|
isInteractive: boolean | undefined;
|
|
@@ -23,8 +24,7 @@ export declare const getWrapperProps: ({ componentOptions, builderBlock, context
|
|
|
23
24
|
}) => InteractiveElementProps | {
|
|
24
25
|
attributes?: {
|
|
25
26
|
'builder-id': string | undefined;
|
|
26
|
-
style: string | Partial<CSSStyleDeclaration
|
|
27
|
-
class: string;
|
|
27
|
+
style: string | Partial<CSSStyleDeclaration>;
|
|
28
28
|
href: any;
|
|
29
29
|
} | {
|
|
30
30
|
[index: string]: any;
|
|
@@ -6,6 +6,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
blockChildren?: any;
|
|
7
7
|
componentRef?: any;
|
|
8
8
|
componentOptions?: any;
|
|
9
|
+
linkComponent?: any;
|
|
9
10
|
builderBlock?: any;
|
|
10
11
|
isInteractive?: any;
|
|
11
12
|
}>, unknown, {
|
|
@@ -15,8 +16,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
15
16
|
}) => import("../interactive-element.vue").InteractiveElementProps | {
|
|
16
17
|
attributes?: {
|
|
17
18
|
'builder-id': string | undefined;
|
|
18
|
-
style: string | Partial<CSSStyleDeclaration
|
|
19
|
-
class: string;
|
|
19
|
+
style: string | Partial<CSSStyleDeclaration>;
|
|
20
20
|
href: any;
|
|
21
21
|
} | {
|
|
22
22
|
[index: string]: any;
|
|
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
31
31
|
blockChildren?: any;
|
|
32
32
|
componentRef?: any;
|
|
33
33
|
componentOptions?: any;
|
|
34
|
+
linkComponent?: any;
|
|
34
35
|
builderBlock?: any;
|
|
35
36
|
isInteractive?: any;
|
|
36
37
|
}>>>, {
|
|
@@ -40,6 +41,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
40
41
|
readonly blockChildren?: any;
|
|
41
42
|
readonly componentRef?: any;
|
|
42
43
|
readonly componentOptions?: any;
|
|
44
|
+
readonly linkComponent?: any;
|
|
43
45
|
readonly builderBlock?: any;
|
|
44
46
|
readonly isInteractive?: any;
|
|
45
47
|
}, {}>;
|
|
@@ -11,8 +11,8 @@ export type InteractiveElementProps = {
|
|
|
11
11
|
includeBlockProps: boolean;
|
|
12
12
|
};
|
|
13
13
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
14
|
-
block?: any;
|
|
15
14
|
context?: any;
|
|
15
|
+
block?: any;
|
|
16
16
|
wrapperProps?: any;
|
|
17
17
|
includeBlockProps?: any;
|
|
18
18
|
Wrapper?: any;
|
|
@@ -20,14 +20,14 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
20
20
|
getBlockActions: typeof getBlockActions;
|
|
21
21
|
getBlockProperties: typeof getBlockProperties;
|
|
22
22
|
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
23
|
-
block?: any;
|
|
24
23
|
context?: any;
|
|
24
|
+
block?: any;
|
|
25
25
|
wrapperProps?: any;
|
|
26
26
|
includeBlockProps?: any;
|
|
27
27
|
Wrapper?: any;
|
|
28
28
|
}>>>, {
|
|
29
|
-
readonly block?: any;
|
|
30
29
|
readonly context?: any;
|
|
30
|
+
readonly block?: any;
|
|
31
31
|
readonly wrapperProps?: any;
|
|
32
32
|
readonly includeBlockProps?: any;
|
|
33
33
|
readonly Wrapper?: any;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
2
|
block?: any;
|
|
3
3
|
registeredComponents?: any;
|
|
4
|
+
linkComponent?: any;
|
|
4
5
|
repeatContext?: any;
|
|
5
6
|
}>, unknown, {
|
|
6
7
|
store: any;
|
|
7
8
|
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
8
9
|
block?: any;
|
|
9
10
|
registeredComponents?: any;
|
|
11
|
+
linkComponent?: any;
|
|
10
12
|
repeatContext?: any;
|
|
11
13
|
}>>>, {
|
|
12
14
|
readonly block?: any;
|
|
13
15
|
readonly registeredComponents?: any;
|
|
16
|
+
readonly linkComponent?: any;
|
|
14
17
|
readonly repeatContext?: any;
|
|
15
18
|
}, {}>;
|
|
16
19
|
export default _default;
|
|
@@ -3,4 +3,5 @@ import type { BlocksWrapperProps } from './blocks-wrapper.vue';
|
|
|
3
3
|
export type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>> & {
|
|
4
4
|
context?: BuilderContextInterface;
|
|
5
5
|
registeredComponents?: RegisteredComponents;
|
|
6
|
+
linkComponent?: any;
|
|
6
7
|
};
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
5
5
|
styleProp?: any;
|
|
6
6
|
context?: any;
|
|
7
7
|
registeredComponents?: any;
|
|
8
|
+
linkComponent?: any;
|
|
8
9
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
9
10
|
path?: any;
|
|
10
11
|
blocks?: any;
|
|
@@ -12,6 +13,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
12
13
|
styleProp?: any;
|
|
13
14
|
context?: any;
|
|
14
15
|
registeredComponents?: any;
|
|
16
|
+
linkComponent?: any;
|
|
15
17
|
}>>>, {
|
|
16
18
|
readonly path?: any;
|
|
17
19
|
readonly blocks?: any;
|
|
@@ -19,5 +21,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
21
|
readonly styleProp?: any;
|
|
20
22
|
readonly context?: any;
|
|
21
23
|
readonly registeredComponents?: any;
|
|
24
|
+
readonly linkComponent?: any;
|
|
22
25
|
}, {}>;
|
|
23
26
|
export default _default;
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
7
7
|
context?: any;
|
|
8
8
|
apiKey?: any;
|
|
9
9
|
apiVersion?: any;
|
|
10
|
+
linkComponent?: any;
|
|
10
11
|
blocksWrapper?: any;
|
|
11
12
|
canTrack?: any;
|
|
12
13
|
contentWrapper?: any;
|
|
@@ -47,6 +48,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
47
48
|
context?: any;
|
|
48
49
|
apiKey?: any;
|
|
49
50
|
apiVersion?: any;
|
|
51
|
+
linkComponent?: any;
|
|
50
52
|
blocksWrapper?: any;
|
|
51
53
|
canTrack?: any;
|
|
52
54
|
contentWrapper?: any;
|
|
@@ -66,6 +68,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
66
68
|
readonly context?: any;
|
|
67
69
|
readonly apiKey?: any;
|
|
68
70
|
readonly apiVersion?: any;
|
|
71
|
+
readonly linkComponent?: any;
|
|
69
72
|
readonly blocksWrapper?: any;
|
|
70
73
|
readonly canTrack?: any;
|
|
71
74
|
readonly contentWrapper?: any;
|
|
@@ -30,6 +30,10 @@ export interface ContentVariantsPrps {
|
|
|
30
30
|
* An array of custom components to register (optional).
|
|
31
31
|
*/
|
|
32
32
|
customComponents?: RegisteredComponent[];
|
|
33
|
+
/**
|
|
34
|
+
* The component to use for rendering links. Defaults to anchor element `<a>`.
|
|
35
|
+
*/
|
|
36
|
+
linkComponent?: any;
|
|
33
37
|
/**
|
|
34
38
|
* A boolean to enable or disable tracking (optional). Defaults to `true`.
|
|
35
39
|
*/
|
|
@@ -47,7 +51,7 @@ export interface ContentVariantsPrps {
|
|
|
47
51
|
*/
|
|
48
52
|
enrich?: boolean;
|
|
49
53
|
/**
|
|
50
|
-
* The element that wraps your content. Defaults to
|
|
54
|
+
* The element that wraps your content. Defaults to `<div>` ('ScrollView' in React Native).
|
|
51
55
|
*/
|
|
52
56
|
contentWrapper?: any;
|
|
53
57
|
/**
|
|
@@ -55,7 +59,7 @@ export interface ContentVariantsPrps {
|
|
|
55
59
|
*/
|
|
56
60
|
contentWrapperProps?: any;
|
|
57
61
|
/**
|
|
58
|
-
* The element that wraps your blocks. Defaults to
|
|
62
|
+
* The element that wraps your blocks. Defaults to `<div>` ('ScrollView' in React Native).
|
|
59
63
|
*/
|
|
60
64
|
blocksWrapper?: any;
|
|
61
65
|
/**
|
|
@@ -4,6 +4,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
4
4
|
context?: any;
|
|
5
5
|
apiKey?: any;
|
|
6
6
|
apiVersion?: any;
|
|
7
|
+
linkComponent?: any;
|
|
7
8
|
blocksWrapper?: any;
|
|
8
9
|
canTrack?: any;
|
|
9
10
|
contentWrapper?: any;
|
|
@@ -54,6 +55,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
54
55
|
context?: any;
|
|
55
56
|
apiKey?: any;
|
|
56
57
|
apiVersion?: any;
|
|
58
|
+
linkComponent?: any;
|
|
57
59
|
blocksWrapper?: any;
|
|
58
60
|
canTrack?: any;
|
|
59
61
|
contentWrapper?: any;
|
|
@@ -72,6 +74,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
72
74
|
readonly context?: any;
|
|
73
75
|
readonly apiKey?: any;
|
|
74
76
|
readonly apiVersion?: any;
|
|
77
|
+
readonly linkComponent?: any;
|
|
75
78
|
readonly blocksWrapper?: any;
|
|
76
79
|
readonly canTrack?: any;
|
|
77
80
|
readonly contentWrapper?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.12.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.4";
|
|
@@ -5,7 +5,6 @@ export declare function getBlockProperties({ block, context }: {
|
|
|
5
5
|
context: BuilderContextInterface;
|
|
6
6
|
}): {
|
|
7
7
|
'builder-id': string | undefined;
|
|
8
|
-
style: string | Partial<CSSStyleDeclaration
|
|
9
|
-
class: string;
|
|
8
|
+
style: string | Partial<CSSStyleDeclaration>;
|
|
10
9
|
href: any;
|
|
11
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getClassPropName: () => "className" | "class";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
+
export declare const getStyle: ({ block, context }: {
|
|
4
|
+
block: BuilderBlock;
|
|
5
|
+
context: BuilderContextInterface;
|
|
6
|
+
}) => string | Partial<CSSStyleDeclaration>;
|
|
7
|
+
/**
|
|
8
|
+
* Svelte does not support style attribute as an object so we need to flatten it.
|
|
9
|
+
*
|
|
10
|
+
* Additionally, Svelte, Vue and other frameworks use kebab-case styles, so we need to convert them.
|
|
11
|
+
*/
|
|
12
|
+
export declare function mapStyleObjToStrIfNeeded(style: Partial<CSSStyleDeclaration>): string | Partial<CSSStyleDeclaration>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types';
|
|
2
|
-
import type { BuilderBlock } from '../types/builder-block';
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
3
|
export declare function transformBlockProperties<T>({ properties }: {
|
|
4
4
|
properties: T;
|
|
5
5
|
context: BuilderContextInterface;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
+
export declare function transformStyleProperty({ style }: {
|
|
4
|
+
style: Partial<CSSStyleDeclaration>;
|
|
5
|
+
context: BuilderContextInterface;
|
|
6
|
+
block: BuilderBlock;
|
|
7
|
+
}): Partial<CSSStyleDeclaration>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./index.202adcba.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function u(e){var o;const t={},r=(o=e.block.actions)!=null?o:{};for(const s in r){if(!r.hasOwnProperty(s))continue;const c=r[s];let n=i(s);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(c,e)}return t}function d({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:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return d({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=p;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { e as c, T as i, f as l, h as f } from "./index.0e671c32.js";
|
|
2
|
+
const p = (e) => `v-on:${e.toLowerCase()}`, u = (e, t) => (r) => c({
|
|
3
|
+
code: e,
|
|
4
|
+
context: t.context,
|
|
5
|
+
localState: t.localState,
|
|
6
|
+
rootState: t.rootState,
|
|
7
|
+
rootSetState: t.rootSetState,
|
|
8
|
+
event: r,
|
|
9
|
+
isExpression: !1
|
|
10
|
+
});
|
|
11
|
+
function g(e) {
|
|
12
|
+
var o;
|
|
13
|
+
const t = {}, r = (o = e.block.actions) != null ? o : {};
|
|
14
|
+
for (const s in r) {
|
|
15
|
+
if (!r.hasOwnProperty(s))
|
|
16
|
+
continue;
|
|
17
|
+
const n = r[s];
|
|
18
|
+
let a = p(s);
|
|
19
|
+
if (e.stripPrefix)
|
|
20
|
+
switch (i) {
|
|
21
|
+
case "vue":
|
|
22
|
+
a = a.replace("v-on:", "");
|
|
23
|
+
break;
|
|
24
|
+
case "svelte":
|
|
25
|
+
a = a.replace("on:", "");
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
t[a] = u(n, e);
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
function v({
|
|
33
|
+
properties: e
|
|
34
|
+
}) {
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
const d = (e) => ({
|
|
38
|
+
href: e.href
|
|
39
|
+
});
|
|
40
|
+
function m({
|
|
41
|
+
block: e,
|
|
42
|
+
context: t
|
|
43
|
+
}) {
|
|
44
|
+
var o;
|
|
45
|
+
const r = {
|
|
46
|
+
...d(e),
|
|
47
|
+
...e.properties,
|
|
48
|
+
"builder-id": e.id,
|
|
49
|
+
style: l({
|
|
50
|
+
block: e,
|
|
51
|
+
context: t
|
|
52
|
+
}),
|
|
53
|
+
[f()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
54
|
+
};
|
|
55
|
+
return v({
|
|
56
|
+
properties: r,
|
|
57
|
+
context: t,
|
|
58
|
+
block: e
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
m as a,
|
|
63
|
+
g
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function omit<T extends object>(obj: T, ...values: (keyof T)[]): Partial<T>;
|