@builder.io/sdk-vue 0.12.1 → 0.12.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.15daad04.js → block-styles.8d24c282.js} +2 -2
- package/lib/browser/{block-styles.0a1c13cc.cjs → block-styles.a0585e05.cjs} +1 -1
- package/lib/browser/block-wrapper.68d48f7a.cjs +1 -0
- package/lib/browser/block-wrapper.c5dfbc00.js +45 -0
- package/lib/browser/blocks/button/button.vue.d.ts +1 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/browser/blocks/image/image.vue.d.ts +1 -3
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/browser/{component-ref.408ec744.js → component-ref.c3fbfacf.js} +3 -3
- package/lib/browser/{component-ref.35876089.cjs → component-ref.d00ee381.cjs} +1 -1
- package/lib/browser/components/block/block.helpers.d.ts +0 -1
- package/lib/browser/components/block/block.vue.d.ts +0 -1
- package/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{css.56c01a0f.cjs → css.33017a13.cjs} +1 -1
- package/lib/browser/{css.e56cc923.js → css.c99b7535.js} +1 -1
- package/lib/browser/dynamic-renderer.72e99722.js +29 -0
- package/lib/browser/dynamic-renderer.e95e3678.cjs +1 -0
- package/lib/browser/functions/get-block-properties.d.ts +6 -1
- package/lib/browser/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/browser/functions/transform-block-properties.d.ts +7 -5
- package/lib/browser/{get-block-actions.5749164d.js → get-block-actions.351bce86.js} +21 -30
- package/lib/browser/get-block-actions.d7726c65.cjs +1 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/browser/{index.1c3cd66d.js → index.62a4dd7e.js} +445 -513
- package/lib/browser/index.8856c30a.cjs +160 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block.3aa48114.js → repeated-block.610c249f.js} +2 -2
- package/lib/browser/{repeated-block.f3af0b09.cjs → repeated-block.d31def44.cjs} +1 -1
- package/lib/browser/scripts/init-editing.d.ts +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles.baf84624.js → block-styles.4feb92ca.js} +2 -2
- package/lib/edge/{block-styles.1d36e17e.cjs → block-styles.573b7b1b.cjs} +1 -1
- package/lib/edge/block-wrapper.8fa7315b.cjs +1 -0
- package/lib/edge/block-wrapper.94c267ab.js +44 -0
- package/lib/edge/blocks/button/button.vue.d.ts +1 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/edge/blocks/image/image.vue.d.ts +1 -3
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/edge/{component-ref.b38c0a17.cjs → component-ref.25ff38ac.cjs} +1 -1
- package/lib/edge/{component-ref.a0bf7c30.js → component-ref.c15b3af0.js} +3 -3
- package/lib/edge/components/block/block.helpers.d.ts +0 -1
- package/lib/edge/components/block/block.vue.d.ts +0 -1
- package/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/css.43e589b6.js → edge/css.d221cd8e.js} +1 -1
- package/lib/{node/css.b8f02dce.cjs → edge/css.ec6fd2a5.cjs} +1 -1
- package/lib/edge/dynamic-renderer.47f81bbb.js +28 -0
- package/lib/edge/dynamic-renderer.7abdc573.cjs +1 -0
- package/lib/edge/functions/get-block-properties.d.ts +6 -1
- package/lib/edge/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/edge/functions/transform-block-properties.d.ts +7 -5
- package/lib/edge/get-block-actions.4687c8f3.js +75 -0
- package/lib/edge/get-block-actions.ec83f582.cjs +1 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/edge/{index.7f2747c7.cjs → index.5778aa26.cjs} +27 -23
- package/lib/edge/{index.d2eea20b.js → index.6b56947b.js} +755 -823
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block.d802e6a0.cjs → repeated-block.29e381f4.cjs} +1 -1
- package/lib/edge/{repeated-block.d2e0b56c.js → repeated-block.76408127.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +1 -0
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles.544d0fa5.cjs → block-styles.35531025.cjs} +1 -1
- package/lib/node/{block-styles.9378e041.js → block-styles.b73795eb.js} +2 -2
- package/lib/node/block-wrapper.047cda0b.cjs +1 -0
- package/lib/node/block-wrapper.8dcfcfa1.js +45 -0
- package/lib/node/blocks/button/button.vue.d.ts +1 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +0 -1
- package/lib/node/blocks/custom-code/custom-code.vue.d.ts +1 -3
- package/lib/node/blocks/image/image.vue.d.ts +1 -3
- package/lib/node/blocks/symbol/symbol.vue.d.ts +0 -1
- package/lib/node/{component-ref.36955ca9.cjs → component-ref.4ba40051.cjs} +1 -1
- package/lib/node/{component-ref.85cf8aff.js → component-ref.e6e92c8d.js} +3 -3
- package/lib/node/components/block/block.helpers.d.ts +0 -1
- package/lib/node/components/block/block.vue.d.ts +0 -1
- package/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -7
- package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
- package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -1
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/css.817ffaca.cjs → node/css.a76e2f77.cjs} +1 -1
- package/lib/{edge/css.c9cd980b.js → node/css.ed4d90da.js} +1 -1
- package/lib/node/dynamic-renderer.beba4cd5.cjs +1 -0
- package/lib/node/dynamic-renderer.e6ce0b70.js +29 -0
- package/lib/node/functions/get-block-properties.d.ts +6 -1
- package/lib/node/functions/is-from-trusted-host.d.ts +3 -0
- package/lib/node/functions/transform-block-properties.d.ts +7 -5
- package/lib/node/get-block-actions.5e56d085.js +75 -0
- package/lib/node/get-block-actions.899ffab6.cjs +1 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +3 -0
- package/lib/node/{index.73c9ec13.js → index.48b1738e.js} +83 -150
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.f4ffe7ae.cjs +200 -0
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block.182fc93f.cjs → repeated-block.a42031b0.cjs} +1 -1
- package/lib/node/{repeated-block.6972ade9.js → repeated-block.cc0857ed.js} +2 -2
- package/lib/node/scripts/init-editing.d.ts +1 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-wrapper.3372ead3.cjs +0 -1
- package/lib/browser/block-wrapper.684870c2.js +0 -56
- package/lib/browser/get-block-actions.786a0830.cjs +0 -1
- package/lib/browser/index.caecdbca.cjs +0 -156
- package/lib/edge/block-wrapper.c2e6a717.js +0 -55
- package/lib/edge/block-wrapper.e35eb0ba.cjs +0 -1
- package/lib/edge/get-block-actions.59e642f2.js +0 -84
- package/lib/edge/get-block-actions.c4334ce2.cjs +0 -1
- package/lib/node/block-wrapper.20c333af.js +0 -56
- package/lib/node/block-wrapper.498bd360.cjs +0 -1
- package/lib/node/get-block-actions.9542f4f9.js +0 -84
- package/lib/node/get-block-actions.c427b339.cjs +0 -1
- package/lib/node/index.52366dfd.cjs +0 -196
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as k, resolveComponent as y, openBlock as f, createBlock as x, createCommentVNode as b } from "vue";
|
|
3
|
-
import { I as B, T as g, g as m, c as d, a as _, b as u, _ as v } from "./index.
|
|
4
|
-
import { c as r } from "./css.
|
|
3
|
+
import { I as B, T as g, g as m, c as d, a as _, b as u, _ as v } from "./index.62a4dd7e.js";
|
|
4
|
+
import { c as r } from "./css.c99b7535.js";
|
|
5
5
|
const C = k({
|
|
6
6
|
name: "block-styles",
|
|
7
7
|
components: { InlinedStyles: B },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index.
|
|
1
|
+
var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index.8856c30a.cjs"),u=require("./css.33017a13.cjs"),k=o.defineComponent({name:"block-styles",components:{InlinedStyles:s.InlinedStyles},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=s.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var d;const e=s.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),t=e.responsiveStyles,c=this.context.content,r=s.getSizesForBreakpoints(((d=c==null?void 0:c.meta)==null?void 0:d.breakpoints)||{}),a=t==null?void 0:t.large,i=t==null?void 0:t.medium,n=t==null?void 0:t.small,l=e.id;if(!l)return"";const S=a?u.createCssClass({className:l,styles:a}):"",m=i?u.createCssClass({className:l,styles:i,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",h=n?u.createCssClass({className:l,styles:n,mediaQuery:s.getMaxWidthQueryForSize("small",r)}):"";return[S,m,h].join(" ")}}});function p(e,t,c,r,a,i){const n=o.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(n,{key:0,styles:e.css},null,8,["styles"])):o.createCommentVNode("v-if",!0)}const y=s._export_sfc(k,[["render",p],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-styles.vue"]]);exports.default=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-actions.d7726c65.cjs"),n=require("./index.8856c30a.cjs");require("./css.33017a13.cjs");const c=()=>Promise.resolve().then(()=>require("./dynamic-renderer.e95e3678.cjs")).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;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import "./style.css";
|
|
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";
|
|
3
|
+
import { g as s, a as l } from "./get-block-actions.351bce86.js";
|
|
4
|
+
import { _ as m } from "./index.62a4dd7e.js";
|
|
5
|
+
import "./css.c99b7535.js";
|
|
6
|
+
const d = () => import("./dynamic-renderer.72e99722.js").then((e) => e.default).catch((e) => {
|
|
7
|
+
throw console.error(
|
|
8
|
+
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
9
|
+
e
|
|
10
|
+
), e;
|
|
11
|
+
}), u = o({
|
|
12
|
+
name: "block-wrapper",
|
|
13
|
+
components: { DynamicRenderer: r(d) },
|
|
14
|
+
props: ["Wrapper", "block", "context"],
|
|
15
|
+
data() {
|
|
16
|
+
return { getBlockActions: s, getBlockProperties: l };
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
function k(e, b, f, y, g, S) {
|
|
20
|
+
const t = n("dynamic-renderer");
|
|
21
|
+
return a(), c(t, {
|
|
22
|
+
TagName: e.Wrapper,
|
|
23
|
+
attributes: e.getBlockProperties({
|
|
24
|
+
block: e.block,
|
|
25
|
+
context: e.context
|
|
26
|
+
}),
|
|
27
|
+
actionAttributes: e.getBlockActions({
|
|
28
|
+
block: e.block,
|
|
29
|
+
rootState: e.context.rootState,
|
|
30
|
+
rootSetState: e.context.rootSetState,
|
|
31
|
+
localState: e.context.localState,
|
|
32
|
+
context: e.context.context,
|
|
33
|
+
stripPrefix: !0
|
|
34
|
+
})
|
|
35
|
+
}, {
|
|
36
|
+
default: p(() => [
|
|
37
|
+
i(e.$slots, "default")
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 8, ["TagName", "attributes", "actionAttributes"]);
|
|
41
|
+
}
|
|
42
|
+
const v = /* @__PURE__ */ m(u, [["render", k], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-wrapper.vue"]]);
|
|
43
|
+
export {
|
|
44
|
+
v as default
|
|
45
|
+
};
|
|
@@ -6,9 +6,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
openLinkInNewTab?: any;
|
|
7
7
|
}>, unknown, {
|
|
8
8
|
filterAttrs: typeof filterAttrs;
|
|
9
|
-
}, {}, {
|
|
10
|
-
_classStringToObject(str: string): Record<string, boolean>;
|
|
11
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
9
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
12
10
|
text?: any;
|
|
13
11
|
link?: any;
|
|
14
12
|
attributes?: any;
|
|
@@ -32,7 +32,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
32
32
|
}): CSSVal;
|
|
33
33
|
columnCssVars(index: number): Dictionary<string>;
|
|
34
34
|
getWidthForBreakpointSize(size: SizeName): number;
|
|
35
|
-
_classStringToObject(str: string): Record<string, boolean>;
|
|
36
35
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
37
36
|
builderContext?: any;
|
|
38
37
|
columns?: any;
|
|
@@ -8,9 +8,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
8
8
|
}>, unknown, {
|
|
9
9
|
scriptsInserted: never[];
|
|
10
10
|
scriptsRun: never[];
|
|
11
|
-
}, {}, {
|
|
12
|
-
_classStringToObject(str: string): Record<string, boolean>;
|
|
13
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
11
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
14
12
|
code?: any;
|
|
15
13
|
replaceNodes?: any;
|
|
16
14
|
}>>>, {
|
|
@@ -21,9 +21,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
21
21
|
readonly left: "0px";
|
|
22
22
|
readonly top: "0px";
|
|
23
23
|
} | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
_classStringToObject(str: string): Record<string, boolean>;
|
|
26
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
24
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
27
25
|
image?: any;
|
|
28
26
|
className?: any;
|
|
29
27
|
aspectRatio?: any;
|
|
@@ -17,7 +17,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
19
|
setContent(): void;
|
|
20
|
-
_classStringToObject(str: string): Record<string, boolean>;
|
|
21
20
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
22
21
|
symbol?: any;
|
|
23
22
|
builderContext?: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as m, openBlock as r, createBlock as i, resolveDynamicComponent as u, mergeProps as k, withCtx as d, renderSlot as P, resolveComponent as g, normalizeProps as B, createElementBlock as C, Fragment as $, renderList as h, createCommentVNode as w } from "vue";
|
|
3
|
-
import { _ as f, B as S, w as W } from "./index.
|
|
4
|
-
import { g as R, a as b } from "./get-block-actions.
|
|
5
|
-
import "./css.
|
|
3
|
+
import { _ as f, B as S, w as W } from "./index.62a4dd7e.js";
|
|
4
|
+
import { g as R, a as b } from "./get-block-actions.351bce86.js";
|
|
5
|
+
import "./css.c99b7535.js";
|
|
6
6
|
const I = m({
|
|
7
7
|
name: "interactive-element",
|
|
8
8
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.
|
|
1
|
+
var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.8856c30a.cjs"),a=require("./get-block-actions.d7726c65.cjs");require("./css.33017a13.cjs");const k=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 u=c._export_sfc(k,[["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:u},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(u):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,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},null,8,["block","context","registeredComponents"]))),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
1
|
import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
|
|
2
2
|
import type { BuilderBlock } from '../../types/builder-block.js';
|
|
3
3
|
import type { RepeatData } from './types.js';
|
|
4
|
-
export declare const isEmptyHtmlElement: (tagName: unknown) => boolean;
|
|
5
4
|
export declare const getComponent: ({ block, context, registeredComponents }: {
|
|
6
5
|
block: BuilderBlock;
|
|
7
6
|
context: BuilderContextInterface;
|
|
@@ -11,7 +11,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
11
11
|
registeredComponents?: any;
|
|
12
12
|
}>, unknown, {
|
|
13
13
|
childrenContext: any;
|
|
14
|
-
isEmptyHtmlElement: (tagName: unknown) => boolean;
|
|
15
14
|
}, {
|
|
16
15
|
blockComponent(): import("../../context/types.js").RegisteredComponent | null | undefined;
|
|
17
16
|
repeatItem(): import("./types.js").RepeatData[] | undefined;
|
|
@@ -2,16 +2,11 @@ import { getBlockActions } from "../../../functions/get-block-actions.js";
|
|
|
2
2
|
import { getBlockProperties } from "../../../functions/get-block-properties.js";
|
|
3
3
|
/**
|
|
4
4
|
* This component renders a block's wrapper HTML element (from the block's `tagName` property).
|
|
5
|
-
* It reuses the exact same logic as the `InteractiveElement` component, but we need to have 2 separate components for
|
|
6
|
-
* Svelte's sake, as it needs to know at compile-time whether to use:
|
|
7
|
-
* - `<svelte:element>` (for HTML element) or
|
|
8
|
-
* - `<svelte:component>` (for custom components)
|
|
9
5
|
*/
|
|
10
6
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
11
7
|
block?: any;
|
|
12
8
|
context?: any;
|
|
13
9
|
Wrapper?: any;
|
|
14
|
-
hasChildren?: any;
|
|
15
10
|
}>, unknown, {
|
|
16
11
|
getBlockActions: typeof getBlockActions;
|
|
17
12
|
getBlockProperties: typeof getBlockProperties;
|
|
@@ -19,11 +14,9 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
14
|
block?: any;
|
|
20
15
|
context?: any;
|
|
21
16
|
Wrapper?: any;
|
|
22
|
-
hasChildren?: any;
|
|
23
17
|
}>>>, {
|
|
24
18
|
readonly block?: any;
|
|
25
19
|
readonly context?: any;
|
|
26
20
|
readonly Wrapper?: any;
|
|
27
|
-
readonly hasChildren?: any;
|
|
28
21
|
}, {}>;
|
|
29
22
|
export default _default;
|
|
@@ -21,7 +21,14 @@ export interface ComponentProps {
|
|
|
21
21
|
export declare const getWrapperProps: ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }: Omit<ComponentProps, "registeredComponents" | "blockChildren"> & {
|
|
22
22
|
contextValue: BuilderContextInterface;
|
|
23
23
|
}) => InteractiveElementProps | {
|
|
24
|
-
attributes?:
|
|
24
|
+
attributes?: {
|
|
25
|
+
'builder-id': string | undefined;
|
|
26
|
+
style: string | Partial<CSSStyleDeclaration> | undefined;
|
|
27
|
+
class: string;
|
|
28
|
+
href: any;
|
|
29
|
+
} | {
|
|
30
|
+
[index: string]: any;
|
|
31
|
+
} | undefined;
|
|
25
32
|
builderBlock: BuilderBlock;
|
|
26
33
|
builderContext: BuilderContextInterface;
|
|
27
34
|
};
|
|
@@ -13,7 +13,14 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
getWrapperProps: ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }: Omit<ComponentProps, "registeredComponents" | "blockChildren"> & {
|
|
14
14
|
contextValue: import("../../../../context/types.js").BuilderContextInterface;
|
|
15
15
|
}) => import("../interactive-element.vue").InteractiveElementProps | {
|
|
16
|
-
attributes?:
|
|
16
|
+
attributes?: {
|
|
17
|
+
'builder-id': string | undefined;
|
|
18
|
+
style: string | Partial<CSSStyleDeclaration> | undefined;
|
|
19
|
+
class: string;
|
|
20
|
+
href: any;
|
|
21
|
+
} | {
|
|
22
|
+
[index: string]: any;
|
|
23
|
+
} | undefined;
|
|
17
24
|
builderBlock: import("../../../../types/builder-block.js").BuilderBlock;
|
|
18
25
|
builderContext: import("../../../../context/types.js").BuilderContextInterface;
|
|
19
26
|
};
|
|
@@ -25,7 +25,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
25
25
|
}, {
|
|
26
26
|
onClick(): void;
|
|
27
27
|
onMouseEnter(): void;
|
|
28
|
-
_classStringToObject(str: string): Record<string, boolean>;
|
|
29
28
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
30
29
|
path?: any;
|
|
31
30
|
BlocksWrapper?: any;
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
8
8
|
canTrack?: any;
|
|
9
9
|
builderContextSignal?: any;
|
|
10
10
|
contentWrapper?: any;
|
|
11
|
+
trustedHosts?: any;
|
|
11
12
|
model?: any;
|
|
12
13
|
locale?: any;
|
|
13
14
|
includeRefs?: any;
|
|
@@ -76,7 +77,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
76
77
|
emitStateUpdate(): void;
|
|
77
78
|
elementRef_onIniteditingbldr(event: any): void;
|
|
78
79
|
elementRef_onInitpreviewingbldr(event: any): void;
|
|
79
|
-
_classStringToObject(str: string): Record<string, boolean>;
|
|
80
80
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
81
81
|
data?: any;
|
|
82
82
|
content?: any;
|
|
@@ -85,6 +85,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
85
85
|
canTrack?: any;
|
|
86
86
|
builderContextSignal?: any;
|
|
87
87
|
contentWrapper?: any;
|
|
88
|
+
trustedHosts?: any;
|
|
88
89
|
model?: any;
|
|
89
90
|
locale?: any;
|
|
90
91
|
includeRefs?: any;
|
|
@@ -99,6 +100,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
99
100
|
readonly canTrack?: any;
|
|
100
101
|
readonly builderContextSignal?: any;
|
|
101
102
|
readonly contentWrapper?: any;
|
|
103
|
+
readonly trustedHosts?: any;
|
|
102
104
|
readonly model?: any;
|
|
103
105
|
readonly locale?: any;
|
|
104
106
|
readonly includeRefs?: any;
|
|
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
10
10
|
blocksWrapper?: any;
|
|
11
11
|
canTrack?: any;
|
|
12
12
|
contentWrapper?: any;
|
|
13
|
+
trustedHosts?: any;
|
|
13
14
|
model?: any;
|
|
14
15
|
locale?: any;
|
|
15
16
|
includeRefs?: any;
|
|
@@ -49,6 +50,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
49
50
|
blocksWrapper?: any;
|
|
50
51
|
canTrack?: any;
|
|
51
52
|
contentWrapper?: any;
|
|
53
|
+
trustedHosts?: any;
|
|
52
54
|
model?: any;
|
|
53
55
|
locale?: any;
|
|
54
56
|
includeRefs?: any;
|
|
@@ -67,6 +69,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
67
69
|
readonly blocksWrapper?: any;
|
|
68
70
|
readonly canTrack?: any;
|
|
69
71
|
readonly contentWrapper?: any;
|
|
72
|
+
readonly trustedHosts?: any;
|
|
70
73
|
readonly model?: any;
|
|
71
74
|
readonly locale?: any;
|
|
72
75
|
readonly includeRefs?: any;
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
7
7
|
blocksWrapper?: any;
|
|
8
8
|
canTrack?: any;
|
|
9
9
|
contentWrapper?: any;
|
|
10
|
+
trustedHosts?: any;
|
|
10
11
|
model?: any;
|
|
11
12
|
locale?: any;
|
|
12
13
|
includeRefs?: any;
|
|
@@ -56,6 +57,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
56
57
|
blocksWrapper?: any;
|
|
57
58
|
canTrack?: any;
|
|
58
59
|
contentWrapper?: any;
|
|
60
|
+
trustedHosts?: any;
|
|
59
61
|
model?: any;
|
|
60
62
|
locale?: any;
|
|
61
63
|
includeRefs?: any;
|
|
@@ -73,6 +75,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
73
75
|
readonly blocksWrapper?: any;
|
|
74
76
|
readonly canTrack?: any;
|
|
75
77
|
readonly contentWrapper?: any;
|
|
78
|
+
readonly trustedHosts?: any;
|
|
76
79
|
readonly model?: any;
|
|
77
80
|
readonly locale?: any;
|
|
78
81
|
readonly includeRefs?: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isEmptyElement: (tagName: any) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
attributes?: any;
|
|
3
|
+
actionAttributes?: any;
|
|
4
|
+
TagName?: any;
|
|
5
|
+
}>, unknown, {
|
|
6
|
+
isEmptyElement: (tagName: any) => boolean;
|
|
7
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
8
|
+
attributes?: any;
|
|
9
|
+
actionAttributes?: any;
|
|
10
|
+
TagName?: any;
|
|
11
|
+
}>>>, {
|
|
12
|
+
readonly attributes?: any;
|
|
13
|
+
readonly actionAttributes?: any;
|
|
14
|
+
readonly TagName?: any;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.12.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.3";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var l=require("./style.css");const n=require("./index.
|
|
1
|
+
var l=require("./style.css");const n=require("./index.8856c30a.cjs"),o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),c=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${o(r)}: ${s};`}).filter(n.checkIsDefined),a=e=>c(e).join(`
|
|
2
2
|
`),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
3
|
${a(r)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { c as o } from "./index.
|
|
2
|
+
import { c as o } from "./index.62a4dd7e.js";
|
|
3
3
|
const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), n = (s) => Object.entries(s).map(([r, e]) => {
|
|
4
4
|
if (typeof e == "string")
|
|
5
5
|
return `${c(r)}: ${e};`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { defineComponent as m, openBlock as t, createElementBlock as u, Fragment as d, createBlock as r, resolveDynamicComponent as a, mergeProps as n, toHandlers as o, withCtx as s, renderSlot as i } from "vue";
|
|
3
|
+
import { _ as p } from "./index.62a4dd7e.js";
|
|
4
|
+
const l = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), c = (e) => typeof e == "string" && l.has(e.toLowerCase()), f = m({
|
|
5
|
+
name: "dynamic-renderer",
|
|
6
|
+
props: ["attributes", "actionAttributes", "TagName"],
|
|
7
|
+
data() {
|
|
8
|
+
return { isEmptyElement: c };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
function b(e, y, k, g, E, T) {
|
|
12
|
+
return e.isEmptyElement(e.TagName) ? (t(), r(a(e.TagName), n({ key: 1 }, e.attributes, o(e.actionAttributes)), null, 16)) : (t(), u(d, { key: 0 }, [
|
|
13
|
+
typeof e.TagName == "string" ? (t(), r(a(e.TagName), n({ key: 0 }, e.attributes, o(e.actionAttributes)), {
|
|
14
|
+
default: s(() => [
|
|
15
|
+
i(e.$slots, "default")
|
|
16
|
+
]),
|
|
17
|
+
_: 3
|
|
18
|
+
}, 16)) : (t(), r(a(e.TagName), n({ key: 1 }, e.attributes, o(e.actionAttributes)), {
|
|
19
|
+
default: s(() => [
|
|
20
|
+
i(e.$slots, "default")
|
|
21
|
+
]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 16))
|
|
24
|
+
], 64));
|
|
25
|
+
}
|
|
26
|
+
const w = /* @__PURE__ */ p(f, [["render", b], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/dynamic-renderer/dynamic-renderer.vue"]]);
|
|
27
|
+
export {
|
|
28
|
+
w as default
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index.8856c30a.cjs"),n=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),o=r=>typeof r=="string"&&n.has(r.toLowerCase()),a=e.defineComponent({name:"dynamic-renderer",props:["attributes","actionAttributes","TagName"],data(){return{isEmptyElement:o}}});function s(r,l,m,u,c,d){return r.isEmptyElement(r.TagName)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.TagName),e.mergeProps({key:1},r.attributes,e.toHandlers(r.actionAttributes)),null,16)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[typeof r.TagName=="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.TagName),e.mergeProps({key:0},r.attributes,e.toHandlers(r.actionAttributes)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.TagName),e.mergeProps({key:1},r.attributes,e.toHandlers(r.actionAttributes)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16))],64))}const i=t._export_sfc(a,[["render",s],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/dynamic-renderer/dynamic-renderer.vue"]]);exports.default=i;
|
|
@@ -3,4 +3,9 @@ import type { BuilderBlock } from '../types/builder-block.js';
|
|
|
3
3
|
export declare function getBlockProperties({ block, context }: {
|
|
4
4
|
block: BuilderBlock;
|
|
5
5
|
context: BuilderContextInterface;
|
|
6
|
-
}):
|
|
6
|
+
}): {
|
|
7
|
+
'builder-id': string | undefined;
|
|
8
|
+
style: string | Partial<CSSStyleDeclaration> | undefined;
|
|
9
|
+
class: string;
|
|
10
|
+
href: any;
|
|
11
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block';
|
|
3
|
+
export declare function transformBlockProperties<T>({ properties }: {
|
|
4
|
+
properties: T;
|
|
5
|
+
context: BuilderContextInterface;
|
|
6
|
+
block: BuilderBlock;
|
|
7
|
+
}): T;
|
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { T as n, e as i } from "./index.
|
|
3
|
-
import { a as l } from "./css.
|
|
4
|
-
function u(
|
|
5
|
-
const t = {};
|
|
6
|
-
if (typeof e != "string")
|
|
7
|
-
return t;
|
|
8
|
-
const r = e.trim().split(/\\s+/);
|
|
9
|
-
for (const s of r)
|
|
10
|
-
t[s] = !0;
|
|
11
|
-
return t;
|
|
12
|
-
}
|
|
13
|
-
function f({
|
|
2
|
+
import { T as n, e as i } from "./index.62a4dd7e.js";
|
|
3
|
+
import { a as l } from "./css.c99b7535.js";
|
|
4
|
+
function u({
|
|
14
5
|
properties: e
|
|
15
6
|
}) {
|
|
16
|
-
return e
|
|
7
|
+
return e;
|
|
17
8
|
}
|
|
18
|
-
const
|
|
9
|
+
const f = (e) => ({
|
|
19
10
|
href: e.href
|
|
20
11
|
});
|
|
21
12
|
function x({
|
|
22
13
|
block: e,
|
|
23
14
|
context: t
|
|
24
15
|
}) {
|
|
25
|
-
var
|
|
16
|
+
var a;
|
|
26
17
|
const r = {
|
|
27
|
-
...
|
|
18
|
+
...f(e),
|
|
28
19
|
...e.properties,
|
|
29
20
|
"builder-id": e.id,
|
|
30
21
|
style: e.style ? p(e.style) : void 0,
|
|
31
|
-
class: [e.id, "builder-block", e.class, (
|
|
22
|
+
class: [e.id, "builder-block", e.class, (a = e.properties) == null ? void 0 : a.class].filter(Boolean).join(" ")
|
|
32
23
|
};
|
|
33
|
-
return
|
|
24
|
+
return u({
|
|
34
25
|
properties: r,
|
|
35
26
|
context: t,
|
|
36
27
|
block: e
|
|
@@ -49,7 +40,7 @@ function p(e) {
|
|
|
49
40
|
return e;
|
|
50
41
|
}
|
|
51
42
|
}
|
|
52
|
-
const
|
|
43
|
+
const v = (e) => `v-on:${e.toLowerCase()}`, S = (e, t) => (r) => i({
|
|
53
44
|
code: e,
|
|
54
45
|
context: t.context,
|
|
55
46
|
localState: t.localState,
|
|
@@ -58,28 +49,28 @@ const S = (e) => `v-on:${e.toLowerCase()}`, d = (e, t) => (r) => i({
|
|
|
58
49
|
event: r,
|
|
59
50
|
isExpression: !1
|
|
60
51
|
});
|
|
61
|
-
function
|
|
62
|
-
var
|
|
63
|
-
const t = {}, r = (
|
|
64
|
-
for (const
|
|
65
|
-
if (!r.hasOwnProperty(
|
|
52
|
+
function g(e) {
|
|
53
|
+
var a;
|
|
54
|
+
const t = {}, r = (a = e.block.actions) != null ? a : {};
|
|
55
|
+
for (const s in r) {
|
|
56
|
+
if (!r.hasOwnProperty(s))
|
|
66
57
|
continue;
|
|
67
|
-
const c = r[
|
|
68
|
-
let
|
|
58
|
+
const c = r[s];
|
|
59
|
+
let o = v(s);
|
|
69
60
|
if (e.stripPrefix)
|
|
70
61
|
switch (n) {
|
|
71
62
|
case "vue":
|
|
72
|
-
|
|
63
|
+
o = o.replace("v-on:", "");
|
|
73
64
|
break;
|
|
74
65
|
case "svelte":
|
|
75
|
-
|
|
66
|
+
o = o.replace("on:", "");
|
|
76
67
|
break;
|
|
77
68
|
}
|
|
78
|
-
t[
|
|
69
|
+
t[o] = S(c, e);
|
|
79
70
|
}
|
|
80
71
|
return t;
|
|
81
72
|
}
|
|
82
73
|
export {
|
|
83
74
|
x as a,
|
|
84
|
-
|
|
75
|
+
g
|
|
85
76
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var x=require("./style.css");const a=require("./index.8856c30a.cjs"),i=require("./css.33017a13.cjs");function l({properties:e}){return e}const u=e=>({href:e.href});function v({block:e,context:t}){var s;const r={...u(e),...e.properties,"builder-id":e.id,style:e.style?d(e.style):void 0,class:[e.id,"builder-block",e.class,(s=e.properties)==null?void 0:s.class].filter(Boolean).join(" ")};return l({properties:r,context:t,block:e})}function d(e){switch(a.TARGET){case"svelte":case"vue":case"solid":return i.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const f=e=>`v-on:${e.toLowerCase()}`,p=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function S(e){var s;const t={},r=(s=e.block.actions)!=null?s:{};for(const o in r){if(!r.hasOwnProperty(o))continue;const n=r[o];let c=f(o);if(e.stripPrefix)switch(a.TARGET){case"vue":c=c.replace("v-on:","");break;case"svelte":c=c.replace("on:","");break}t[c]=p(n,e)}return t}exports.getBlockActions=S;exports.getBlockProperties=v;
|
|
@@ -46,6 +46,7 @@ export declare const RenderContent: import("vue").DefineComponent<Readonly<{
|
|
|
46
46
|
blocksWrapper?: any;
|
|
47
47
|
canTrack?: any;
|
|
48
48
|
contentWrapper?: any;
|
|
49
|
+
trustedHosts?: any;
|
|
49
50
|
model?: any;
|
|
50
51
|
locale?: any;
|
|
51
52
|
includeRefs?: any;
|
|
@@ -95,6 +96,7 @@ export declare const RenderContent: import("vue").DefineComponent<Readonly<{
|
|
|
95
96
|
blocksWrapper?: any;
|
|
96
97
|
canTrack?: any;
|
|
97
98
|
contentWrapper?: any;
|
|
99
|
+
trustedHosts?: any;
|
|
98
100
|
model?: any;
|
|
99
101
|
locale?: any;
|
|
100
102
|
includeRefs?: any;
|
|
@@ -112,6 +114,7 @@ export declare const RenderContent: import("vue").DefineComponent<Readonly<{
|
|
|
112
114
|
readonly blocksWrapper?: any;
|
|
113
115
|
readonly canTrack?: any;
|
|
114
116
|
readonly contentWrapper?: any;
|
|
117
|
+
readonly trustedHosts?: any;
|
|
115
118
|
readonly model?: any;
|
|
116
119
|
readonly locale?: any;
|
|
117
120
|
readonly includeRefs?: any;
|