@builder.io/sdk-vue 0.12.1 → 0.12.2

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.
Files changed (137) hide show
  1. package/lib/browser/{block-styles.0a1c13cc.cjs → block-styles.76e01443.cjs} +1 -1
  2. package/lib/browser/{block-styles.15daad04.js → block-styles.eada5366.js} +2 -2
  3. package/lib/browser/block-wrapper.24b79ff8.cjs +1 -0
  4. package/lib/browser/block-wrapper.9b2bed3c.js +45 -0
  5. package/lib/browser/blocks/button/button.vue.d.ts +1 -3
  6. package/lib/browser/blocks/columns/columns.vue.d.ts +0 -1
  7. package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +1 -3
  8. package/lib/browser/blocks/image/image.vue.d.ts +1 -3
  9. package/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -1
  10. package/lib/browser/{component-ref.35876089.cjs → component-ref.00682bcb.cjs} +1 -1
  11. package/lib/browser/{component-ref.408ec744.js → component-ref.a9dd871c.js} +3 -3
  12. package/lib/browser/components/block/block.helpers.d.ts +0 -1
  13. package/lib/browser/components/block/block.vue.d.ts +0 -1
  14. package/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -7
  15. package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
  16. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
  17. package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -1
  18. package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -1
  19. package/lib/browser/components/content/content.vue.d.ts +3 -0
  20. package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
  21. package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
  22. package/lib/browser/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
  23. package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
  24. package/lib/browser/constants/sdk-version.d.ts +1 -1
  25. package/lib/browser/{css.e56cc923.js → css.58041866.js} +1 -1
  26. package/lib/browser/{css.56c01a0f.cjs → css.93429f3b.cjs} +1 -1
  27. package/lib/browser/dynamic-renderer.587b2b22.cjs +1 -0
  28. package/lib/browser/dynamic-renderer.807ec99c.js +29 -0
  29. package/lib/browser/functions/get-block-properties.d.ts +6 -1
  30. package/lib/browser/functions/is-from-trusted-host.d.ts +3 -0
  31. package/lib/browser/functions/transform-block-properties.d.ts +7 -5
  32. package/lib/browser/get-block-actions.3853c568.cjs +1 -0
  33. package/lib/browser/{get-block-actions.5749164d.js → get-block-actions.7be7f916.js} +21 -30
  34. package/lib/browser/index-helpers/blocks-exports.d.ts +3 -0
  35. package/lib/browser/index.8583dad3.cjs +156 -0
  36. package/lib/browser/{index.1c3cd66d.js → index.b532efb7.js} +438 -510
  37. package/lib/browser/index.cjs +1 -1
  38. package/lib/browser/index.js +1 -1
  39. package/lib/browser/{repeated-block.f3af0b09.cjs → repeated-block.569f57e3.cjs} +1 -1
  40. package/lib/browser/{repeated-block.3aa48114.js → repeated-block.b3746f1a.js} +2 -2
  41. package/lib/browser/scripts/init-editing.d.ts +1 -0
  42. package/lib/edge/{block-styles.baf84624.js → block-styles.a1440ad7.js} +2 -2
  43. package/lib/edge/{block-styles.1d36e17e.cjs → block-styles.f491edc2.cjs} +1 -1
  44. package/lib/edge/block-wrapper.555f21dd.cjs +1 -0
  45. package/lib/edge/block-wrapper.efc7d98a.js +44 -0
  46. package/lib/edge/blocks/button/button.vue.d.ts +1 -3
  47. package/lib/edge/blocks/columns/columns.vue.d.ts +0 -1
  48. package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +1 -3
  49. package/lib/edge/blocks/image/image.vue.d.ts +1 -3
  50. package/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -1
  51. package/lib/edge/{component-ref.b38c0a17.cjs → component-ref.100a10a4.cjs} +1 -1
  52. package/lib/edge/{component-ref.a0bf7c30.js → component-ref.bcafb710.js} +3 -3
  53. package/lib/edge/components/block/block.helpers.d.ts +0 -1
  54. package/lib/edge/components/block/block.vue.d.ts +0 -1
  55. package/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -7
  56. package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
  57. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
  58. package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -1
  59. package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -1
  60. package/lib/edge/components/content/content.vue.d.ts +3 -0
  61. package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
  62. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
  63. package/lib/edge/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
  64. package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
  65. package/lib/edge/constants/sdk-version.d.ts +1 -1
  66. package/lib/{node/css.43e589b6.js → edge/css.0b928f4c.js} +1 -1
  67. package/lib/{node/css.b8f02dce.cjs → edge/css.d6d697ec.cjs} +1 -1
  68. package/lib/edge/dynamic-renderer.1a8c0430.js +28 -0
  69. package/lib/edge/dynamic-renderer.b95a1057.cjs +1 -0
  70. package/lib/edge/functions/get-block-properties.d.ts +6 -1
  71. package/lib/edge/functions/is-from-trusted-host.d.ts +3 -0
  72. package/lib/edge/functions/transform-block-properties.d.ts +7 -5
  73. package/lib/edge/get-block-actions.34ceb0fb.cjs +1 -0
  74. package/lib/edge/get-block-actions.6f8ccd3c.js +75 -0
  75. package/lib/edge/index-helpers/blocks-exports.d.ts +3 -0
  76. package/lib/edge/{index.7f2747c7.cjs → index.332c4c68.cjs} +23 -23
  77. package/lib/edge/index.cjs +1 -1
  78. package/lib/edge/{index.d2eea20b.js → index.ffc9a7bc.js} +708 -780
  79. package/lib/edge/index.js +1 -1
  80. package/lib/edge/{repeated-block.d2e0b56c.js → repeated-block.090029ef.js} +2 -2
  81. package/lib/edge/{repeated-block.d802e6a0.cjs → repeated-block.cefa0bf6.cjs} +1 -1
  82. package/lib/edge/scripts/init-editing.d.ts +1 -0
  83. package/lib/node/{block-styles.9378e041.js → block-styles.136d6f08.js} +2 -2
  84. package/lib/node/{block-styles.544d0fa5.cjs → block-styles.589566b1.cjs} +1 -1
  85. package/lib/node/block-wrapper.18e00652.js +45 -0
  86. package/lib/node/block-wrapper.831b0d92.cjs +1 -0
  87. package/lib/node/blocks/button/button.vue.d.ts +1 -3
  88. package/lib/node/blocks/columns/columns.vue.d.ts +0 -1
  89. package/lib/node/blocks/custom-code/custom-code.vue.d.ts +1 -3
  90. package/lib/node/blocks/image/image.vue.d.ts +1 -3
  91. package/lib/node/blocks/symbol/symbol.vue.d.ts +0 -1
  92. package/lib/node/{component-ref.85cf8aff.js → component-ref.c1216d72.js} +3 -3
  93. package/lib/node/{component-ref.36955ca9.cjs → component-ref.c4fd0511.cjs} +1 -1
  94. package/lib/node/components/block/block.helpers.d.ts +0 -1
  95. package/lib/node/components/block/block.vue.d.ts +0 -1
  96. package/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -7
  97. package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
  98. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +8 -1
  99. package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -1
  100. package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -1
  101. package/lib/node/components/content/content.vue.d.ts +3 -0
  102. package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
  103. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
  104. package/lib/node/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
  105. package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +16 -0
  106. package/lib/node/constants/sdk-version.d.ts +1 -1
  107. package/lib/{edge/css.817ffaca.cjs → node/css.1037a3f7.cjs} +1 -1
  108. package/lib/{edge/css.c9cd980b.js → node/css.dd54b8f6.js} +1 -1
  109. package/lib/node/dynamic-renderer.92a2f84d.cjs +1 -0
  110. package/lib/node/dynamic-renderer.d189611e.js +29 -0
  111. package/lib/node/functions/get-block-properties.d.ts +6 -1
  112. package/lib/node/functions/is-from-trusted-host.d.ts +3 -0
  113. package/lib/node/functions/transform-block-properties.d.ts +7 -5
  114. package/lib/node/get-block-actions.64593134.js +75 -0
  115. package/lib/node/get-block-actions.a79e1825.cjs +1 -0
  116. package/lib/node/index-helpers/blocks-exports.d.ts +3 -0
  117. package/lib/node/{index.73c9ec13.js → index.36c2b72c.js} +75 -147
  118. package/lib/node/index.c18f2b9a.cjs +196 -0
  119. package/lib/node/index.cjs +1 -1
  120. package/lib/node/index.js +1 -1
  121. package/lib/node/{repeated-block.182fc93f.cjs → repeated-block.4e2006fc.cjs} +1 -1
  122. package/lib/node/{repeated-block.6972ade9.js → repeated-block.98cf3e1d.js} +2 -2
  123. package/lib/node/scripts/init-editing.d.ts +1 -0
  124. package/package.json +1 -1
  125. package/lib/browser/block-wrapper.3372ead3.cjs +0 -1
  126. package/lib/browser/block-wrapper.684870c2.js +0 -56
  127. package/lib/browser/get-block-actions.786a0830.cjs +0 -1
  128. package/lib/browser/index.caecdbca.cjs +0 -156
  129. package/lib/edge/block-wrapper.c2e6a717.js +0 -55
  130. package/lib/edge/block-wrapper.e35eb0ba.cjs +0 -1
  131. package/lib/edge/get-block-actions.59e642f2.js +0 -84
  132. package/lib/edge/get-block-actions.c4334ce2.cjs +0 -1
  133. package/lib/node/block-wrapper.20c333af.js +0 -56
  134. package/lib/node/block-wrapper.498bd360.cjs +0 -1
  135. package/lib/node/get-block-actions.9542f4f9.js +0 -84
  136. package/lib/node/get-block-actions.c427b339.cjs +0 -1
  137. package/lib/node/index.52366dfd.cjs +0 -196
@@ -1 +1 @@
1
- var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index.caecdbca.cjs"),d=require("./css.56c01a0f.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 u;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(((u=c==null?void 0:c.meta)==null?void 0:u.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?d.createCssClass({className:l,styles:a}):"",m=i?d.createCssClass({className:l,styles:i,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",h=n?d.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;
1
+ var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index.8583dad3.cjs"),d=require("./css.93429f3b.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 u;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(((u=c==null?void 0:c.meta)==null?void 0:u.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?d.createCssClass({className:l,styles:a}):"",m=i?d.createCssClass({className:l,styles:i,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",h=n?d.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;
@@ -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.1c3cd66d.js";
4
- import { c as r } from "./css.e56cc923.js";
3
+ import { I as B, T as g, g as m, c as d, a as _, b as u, _ as v } from "./index.b532efb7.js";
4
+ import { c as r } from "./css.58041866.js";
5
5
  const C = k({
6
6
  name: "block-styles",
7
7
  components: { InlinedStyles: B },
@@ -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.3853c568.cjs"),n=require("./index.8583dad3.cjs");require("./css.93429f3b.cjs");const c=()=>Promise.resolve().then(()=>require("./dynamic-renderer.587b2b22.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.7be7f916.js";
4
+ import { _ as m } from "./index.b532efb7.js";
5
+ import "./css.58041866.js";
6
+ const d = () => import("./dynamic-renderer.807ec99c.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 +1 @@
1
- var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.caecdbca.cjs"),a=require("./get-block-actions.786a0830.cjs");require("./css.56c01a0f.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
+ var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.8583dad3.cjs"),a=require("./get-block-actions.3853c568.cjs");require("./css.93429f3b.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,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.1c3cd66d.js";
4
- import { g as R, a as b } from "./get-block-actions.5749164d.js";
5
- import "./css.e56cc923.js";
3
+ import { _ as f, B as S, w as W } from "./index.b532efb7.js";
4
+ import { g as R, a as b } from "./get-block-actions.7be7f916.js";
5
+ import "./css.58041866.js";
6
6
  const I = m({
7
7
  name: "interactive-element",
8
8
  props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
@@ -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?: any;
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?: any;
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;
@@ -62,4 +62,8 @@ export interface ContentVariantsPrps {
62
62
  * Additonal props to pass to `blocksWrapper`. Defaults to `{}`.
63
63
  */
64
64
  blocksWrapperProps?: any;
65
+ /**
66
+ * List of hosts to allow editing content from.
67
+ */
68
+ trustedHosts?: string[];
65
69
  }
@@ -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";
1
+ export declare const SDK_VERSION = "0.12.2";
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { c as o } from "./index.1c3cd66d.js";
2
+ import { c as o } from "./index.b532efb7.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};`;
@@ -1,4 +1,4 @@
1
- var l=require("./style.css");const n=require("./index.caecdbca.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(`
1
+ var l=require("./style.css");const n=require("./index.8583dad3.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} {
@@ -0,0 +1 @@
1
+ var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index.8583dad3.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,d,c){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;
@@ -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.b532efb7.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
+ };
@@ -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
- }): any;
6
+ }): {
7
+ 'builder-id': string | undefined;
8
+ style: string | Partial<CSSStyleDeclaration> | undefined;
9
+ class: string;
10
+ href: any;
11
+ };
@@ -0,0 +1,3 @@
1
+ export declare function isFromTrustedHost(trustedHosts: string[] | undefined, e: {
2
+ origin: string;
3
+ }): boolean;
@@ -1,5 +1,7 @@
1
- export declare function transformBlockProperties({ properties, }: {
2
- properties: any;
3
- block: any;
4
- context: any;
5
- }): any;
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;
@@ -0,0 +1 @@
1
+ var x=require("./style.css");const n=require("./index.8583dad3.cjs"),i=require("./css.93429f3b.cjs");function l({properties:e}){return e}const u=e=>({href:e.href});function d({block:e,context:t}){var s;const r={...u(e),...e.properties,"builder-id":e.id,style:e.style?v(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 v(e){switch(n.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=>n.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 c in r){if(!r.hasOwnProperty(c))continue;const a=r[c];let o=f(c);if(e.stripPrefix)switch(n.TARGET){case"vue":o=o.replace("v-on:","");break;case"svelte":o=o.replace("on:","");break}t[o]=p(a,e)}return t}exports.getBlockActions=S;exports.getBlockProperties=d;
@@ -1,36 +1,27 @@
1
1
  import "./style.css";
2
- import { T as n, e as i } from "./index.1c3cd66d.js";
3
- import { a as l } from "./css.e56cc923.js";
4
- function u(e) {
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.b532efb7.js";
3
+ import { a as l } from "./css.58041866.js";
4
+ function u({
14
5
  properties: e
15
6
  }) {
16
- return e.class = u(e.class), e;
7
+ return e;
17
8
  }
18
- const v = (e) => ({
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 s;
16
+ var a;
26
17
  const r = {
27
- ...v(e),
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, (s = e.properties) == null ? void 0 : s.class].filter(Boolean).join(" ")
22
+ class: [e.id, "builder-block", e.class, (a = e.properties) == null ? void 0 : a.class].filter(Boolean).join(" ")
32
23
  };
33
- return f({
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 S = (e) => `v-on:${e.toLowerCase()}`, d = (e, t) => (r) => i({
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 h(e) {
62
- var s;
63
- const t = {}, r = (s = e.block.actions) != null ? s : {};
64
- for (const o in r) {
65
- if (!r.hasOwnProperty(o))
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[o];
68
- let a = S(o);
58
+ const c = r[s];
59
+ let o = v(s);
69
60
  if (e.stripPrefix)
70
61
  switch (n) {
71
62
  case "vue":
72
- a = a.replace("v-on:", "");
63
+ o = o.replace("v-on:", "");
73
64
  break;
74
65
  case "svelte":
75
- a = a.replace("on:", "");
66
+ o = o.replace("on:", "");
76
67
  break;
77
68
  }
78
- t[a] = d(c, e);
69
+ t[o] = S(c, e);
79
70
  }
80
71
  return t;
81
72
  }
82
73
  export {
83
74
  x as a,
84
- h as g
75
+ g
85
76
  };
@@ -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;