@builder.io/sdk-vue 0.12.3 → 0.12.5
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/{edge/block-styles.4feb92ca.js → browser/block-styles.4b421b83.js} +5 -5
- package/lib/browser/block-styles.a73376ed.cjs +1 -0
- package/lib/browser/block-wrapper.531592ac.cjs +1 -0
- package/lib/{edge/block-wrapper.94c267ab.js → browser/block-wrapper.68a2b10b.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.a006af2a.cjs +1 -0
- package/lib/browser/{component-ref.c3fbfacf.js → component-ref.aeb58ed2.js} +26 -24
- 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/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- 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.c632735e.js +65 -0
- package/lib/browser/get-block-properties.cb447ec3.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.6d8f74eb.cjs +165 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/{index.62a4dd7e.js → index.dae5ffb2.js} +794 -639
- package/lib/browser/index.js +8 -8
- package/lib/browser/repeated-block.19e40e3c.cjs +1 -0
- package/lib/browser/repeated-block.1daedcf0.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.d6a137a2.cjs +1 -0
- package/lib/{browser/block-styles.8d24c282.js → edge/block-styles.ff4e7cca.js} +11 -13
- package/lib/edge/block-wrapper.7680c30d.cjs +1 -0
- package/lib/{browser/block-wrapper.c5dfbc00.js → edge/block-wrapper.e888bded.js} +5 -7
- 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.c15b3af0.js → component-ref.0085cff9.js} +26 -24
- package/lib/edge/component-ref.b8948e48.cjs +1 -0
- 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/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- 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.72a3dc12.js +64 -0
- package/lib/edge/get-block-properties.d45ba61d.cjs +1 -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.0a0c8c92.cjs +185 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/{index.6b56947b.js → index.e6d5cab7.js} +1570 -1415
- package/lib/edge/index.js +8 -8
- package/lib/edge/repeated-block.05f807ba.cjs +1 -0
- package/lib/edge/{repeated-block.76408127.js → repeated-block.2b5cb112.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.29394399.cjs +1 -0
- package/lib/node/{block-styles.b73795eb.js → block-styles.ca6e546f.js} +11 -12
- package/lib/node/{block-wrapper.8dcfcfa1.js → block-wrapper.2d100320.js} +5 -6
- package/lib/node/block-wrapper.475ef393.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.8ce368f0.js} +26 -24
- package/lib/node/component-ref.e97c8def.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/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- 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.617528c9.js +64 -0
- package/lib/node/get-block-properties.8f5406b6.cjs +1 -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.a0eb0257.js} +471 -316
- package/lib/node/index.c1e6d3e4.cjs +205 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +8 -8
- package/lib/node/repeated-block.7e31abfb.js +35 -0
- package/lib/node/repeated-block.c8bbbf33.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,6 +1,6 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as k, resolveComponent as y, openBlock as f, createBlock as x, createCommentVNode as b } from "vue";
|
|
2
|
-
import { I as B, T as g, g as d, c as
|
|
3
|
-
import { c as r } from "./css.d221cd8e.js";
|
|
3
|
+
import { I as B, T as g, g as d, c as u, a as _, b as r, d as m, _ as v } from "./index.dae5ffb2.js";
|
|
4
4
|
const C = k({
|
|
5
5
|
name: "block-styles",
|
|
6
6
|
components: { InlinedStyles: B },
|
|
@@ -18,7 +18,7 @@ const C = k({
|
|
|
18
18
|
context: this.context.context,
|
|
19
19
|
shouldEvaluateBindings: !0
|
|
20
20
|
});
|
|
21
|
-
return
|
|
21
|
+
return u(t.hide) ? !t.hide : u(t.show) ? t.show : !0;
|
|
22
22
|
},
|
|
23
23
|
css() {
|
|
24
24
|
var i;
|
|
@@ -40,14 +40,14 @@ const C = k({
|
|
|
40
40
|
}) : "", p = l ? r({
|
|
41
41
|
className: n,
|
|
42
42
|
styles: l,
|
|
43
|
-
mediaQuery:
|
|
43
|
+
mediaQuery: m(
|
|
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: m(
|
|
51
51
|
"small",
|
|
52
52
|
c
|
|
53
53
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),e=require("./index.6d8f74eb.cjs"),h=o.defineComponent({name:"block-styles",components:{InlinedStyles:e.InlinedStyles},props:["block","context"],data(){return{TARGET:e.TARGET}},computed:{canShowBlock(){const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return e.checkIsDefined(t.hide)?!t.hide:e.checkIsDefined(t.show)?t.show:!0},css(){var d;const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=t.responsiveStyles,n=this.context.content,r=e.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=t.id;if(!l)return"";const u=a?e.createCssClass({className:l,styles:a}):"",S=i?e.createCssClass({className:l,styles:i,mediaQuery:e.getMaxWidthQueryForSize("medium",r)}):"",m=c?e.createCssClass({className:l,styles:c,mediaQuery:e.getMaxWidthQueryForSize("small",r)}):"";return[u,S,m].join(" ")}}});function k(t,s,n,r,a,i){const c=o.resolveComponent("inlined-styles");return t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,styles:t.css},null,8,["styles"])):o.createCommentVNode("v-if",!0)}const p=e._export_sfc(h,[["render",k],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-styles.vue"]]);exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties.cb447ec3.cjs"),n=require("./index.6d8f74eb.cjs"),c=()=>Promise.resolve().then(()=>require("./index.6d8f74eb.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,u,m){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],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-wrapper.vue"]]);exports.default=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as p, renderSlot as i } from "vue";
|
|
2
|
-
import { g as s, a as l } from "./get-block-
|
|
3
|
-
import { _ as m } from "./index.
|
|
4
|
-
import
|
|
5
|
-
const d = () => import("./dynamic-renderer.47f81bbb.js").then((e) => e.default).catch((e) => {
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties.c632735e.js";
|
|
4
|
+
import { _ as m } from "./index.dae5ffb2.js";
|
|
5
|
+
const d = () => import("./index.dae5ffb2.js").then((e) => e.H).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
|
|
@@ -4,17 +4,21 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
4
4
|
link?: any;
|
|
5
5
|
attributes?: any;
|
|
6
6
|
openLinkInNewTab?: any;
|
|
7
|
+
builderLinkComponent?: any;
|
|
7
8
|
}>, unknown, {
|
|
9
|
+
getClassPropName: () => "className" | "class";
|
|
8
10
|
filterAttrs: typeof filterAttrs;
|
|
9
11
|
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
10
12
|
text?: any;
|
|
11
13
|
link?: any;
|
|
12
14
|
attributes?: any;
|
|
13
15
|
openLinkInNewTab?: any;
|
|
16
|
+
builderLinkComponent?: any;
|
|
14
17
|
}>>>, {
|
|
15
18
|
readonly text?: any;
|
|
16
19
|
readonly link?: any;
|
|
17
20
|
readonly attributes?: any;
|
|
18
21
|
readonly openLinkInNewTab?: any;
|
|
22
|
+
readonly builderLinkComponent?: any;
|
|
19
23
|
}, {}>;
|
|
20
24
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { BuilderBlock } from '../../types/builder-block.js';
|
|
2
|
-
import type { BuilderComponentsProp } from '../../types/builder-props.js';
|
|
2
|
+
import type { BuilderComponentsProp, BuilderLinkComponentProp } from '../../types/builder-props.js';
|
|
3
3
|
type Column = {
|
|
4
4
|
blocks: BuilderBlock[];
|
|
5
5
|
width?: number;
|
|
6
|
+
link?: string;
|
|
6
7
|
};
|
|
7
8
|
type StackColumnsAt = 'tablet' | 'mobile' | 'never';
|
|
8
|
-
export interface ColumnProps extends BuilderComponentsProp {
|
|
9
|
+
export interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp {
|
|
9
10
|
columns?: Column[];
|
|
10
|
-
builderBlock: BuilderBlock;
|
|
11
11
|
space?: number;
|
|
12
12
|
stackColumnsAt?: StackColumnsAt;
|
|
13
13
|
reverseColumnsWhenStacked?: boolean;
|
|
@@ -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
|
+
var C=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.6d8f74eb.cjs"),a=require("./get-block-properties.cb447ec3.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 m=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:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):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,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("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,8 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as m, openBlock as r, createBlock as i, resolveDynamicComponent as
|
|
3
|
-
import { _ as f, B as S, w as W } from "./index.
|
|
4
|
-
import { g as R, a as b } from "./get-block-
|
|
5
|
-
import "./css.c99b7535.js";
|
|
2
|
+
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";
|
|
3
|
+
import { _ as f, B as S, w as W } from "./index.dae5ffb2.js";
|
|
4
|
+
import { g as R, a as b } from "./get-block-properties.c632735e.js";
|
|
6
5
|
const I = m({
|
|
7
6
|
name: "interactive-element",
|
|
8
7
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -10,8 +9,8 @@ const I = m({
|
|
|
10
9
|
return { getBlockActions: R, getBlockProperties: b };
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
|
-
function E(e, o, p,
|
|
14
|
-
return r(), i(
|
|
12
|
+
function E(e, o, p, s, t, c) {
|
|
13
|
+
return r(), i(k(e.Wrapper), u({
|
|
15
14
|
attributes: e.includeBlockProps ? {
|
|
16
15
|
...e.getBlockProperties({
|
|
17
16
|
block: e.block,
|
|
@@ -27,31 +26,31 @@ function E(e, o, p, c, t, s) {
|
|
|
27
26
|
} : {}
|
|
28
27
|
}, e.wrapperProps), {
|
|
29
28
|
default: d(() => [
|
|
30
|
-
|
|
29
|
+
v(e.$slots, "default")
|
|
31
30
|
]),
|
|
32
31
|
_: 3
|
|
33
32
|
}, 16, ["attributes"]);
|
|
34
33
|
}
|
|
35
|
-
const
|
|
34
|
+
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 = ({
|
|
36
35
|
componentOptions: e,
|
|
37
36
|
builderBlock: o,
|
|
38
37
|
context: p,
|
|
39
|
-
componentRef:
|
|
38
|
+
componentRef: s,
|
|
40
39
|
includeBlockProps: t,
|
|
41
|
-
isInteractive:
|
|
42
|
-
contextValue:
|
|
40
|
+
isInteractive: c,
|
|
41
|
+
contextValue: l
|
|
43
42
|
}) => {
|
|
44
43
|
const n = {
|
|
45
44
|
...e,
|
|
46
45
|
...t ? {
|
|
47
46
|
attributes: b({
|
|
48
47
|
block: o,
|
|
49
|
-
context:
|
|
48
|
+
context: l
|
|
50
49
|
})
|
|
51
50
|
} : {}
|
|
52
51
|
};
|
|
53
|
-
return
|
|
54
|
-
Wrapper:
|
|
52
|
+
return c ? {
|
|
53
|
+
Wrapper: s,
|
|
55
54
|
block: o,
|
|
56
55
|
context: p,
|
|
57
56
|
wrapperProps: e,
|
|
@@ -59,50 +58,53 @@ const l = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/bui
|
|
|
59
58
|
} : n;
|
|
60
59
|
}, A = m({
|
|
61
60
|
name: "component-ref",
|
|
62
|
-
components: { Block: S, InteractiveElement:
|
|
61
|
+
components: { Block: S, InteractiveElement: a },
|
|
63
62
|
props: [
|
|
64
63
|
"isInteractive",
|
|
65
64
|
"componentRef",
|
|
66
65
|
"componentOptions",
|
|
67
66
|
"builderBlock",
|
|
68
67
|
"context",
|
|
68
|
+
"linkComponent",
|
|
69
69
|
"includeBlockProps",
|
|
70
70
|
"blockChildren",
|
|
71
71
|
"registeredComponents"
|
|
72
72
|
],
|
|
73
73
|
data() {
|
|
74
74
|
return {
|
|
75
|
-
Wrapper: this.isInteractive ? W(
|
|
75
|
+
Wrapper: this.isInteractive ? W(a) : this.componentRef,
|
|
76
76
|
getWrapperProps: y
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
function O(e, o, p,
|
|
81
|
-
const
|
|
82
|
-
return e.componentRef ? (r(), i(
|
|
80
|
+
function O(e, o, p, s, t, c) {
|
|
81
|
+
const l = P("block");
|
|
82
|
+
return e.componentRef ? (r(), i(k(e.Wrapper), g(u(
|
|
83
83
|
{ key: 0 },
|
|
84
84
|
e.getWrapperProps({
|
|
85
85
|
componentOptions: e.componentOptions,
|
|
86
86
|
builderBlock: e.builderBlock,
|
|
87
87
|
context: e.context,
|
|
88
88
|
componentRef: e.componentRef,
|
|
89
|
+
linkComponent: e.linkComponent,
|
|
89
90
|
includeBlockProps: e.includeBlockProps,
|
|
90
91
|
isInteractive: e.isInteractive,
|
|
91
92
|
contextValue: e.context
|
|
92
93
|
})
|
|
93
94
|
)), {
|
|
94
95
|
default: d(() => [
|
|
95
|
-
(r(!0),
|
|
96
|
+
(r(!0), B($, null, h(e.blockChildren, (n, C) => (r(), i(l, {
|
|
96
97
|
key: n.id,
|
|
97
98
|
block: n,
|
|
98
99
|
context: e.context,
|
|
99
|
-
registeredComponents: e.registeredComponents
|
|
100
|
-
|
|
100
|
+
registeredComponents: e.registeredComponents,
|
|
101
|
+
linkComponent: e.linkComponent
|
|
102
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
101
103
|
]),
|
|
102
104
|
_: 1
|
|
103
105
|
}, 16)) : w("v-if", !0);
|
|
104
106
|
}
|
|
105
|
-
const
|
|
107
|
+
const L = /* @__PURE__ */ f(A, [["render", O], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/component-ref/component-ref.vue"]]);
|
|
106
108
|
export {
|
|
107
|
-
|
|
109
|
+
L as default
|
|
108
110
|
};
|
|
@@ -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.5";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shouldForceBrowserRuntimeInNode: () => boolean;
|
|
@@ -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
|
};
|