@builder.io/sdk-vue 0.2.0 → 0.2.1

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 (65) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/block-styles.1657b45f.cjs +1 -0
  3. package/packages/_vue2/dist/{block-styles.97de2652.js → block-styles.e14644b9.js} +14 -11
  4. package/packages/_vue2/dist/css.883115fd.cjs +6 -0
  5. package/packages/_vue2/dist/{css.4d4e03cf.js → css.9b722913.js} +1 -1
  6. package/packages/_vue2/dist/{index.346656f6.js → index.af260d16.js} +20 -20
  7. package/packages/_vue2/dist/{index.c72abf65.cjs → index.b9a8defa.cjs} +4 -4
  8. package/packages/_vue2/dist/render-block.73e50e2a.cjs +3 -0
  9. package/packages/_vue2/dist/{render-block.1c1312ce.js → render-block.9394f002.js} +52 -59
  10. package/packages/_vue2/dist/{render-component.de99974e.js → render-component.58fe0189.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.4ed8b740.cjs → render-component.ab9c6751.cjs} +1 -1
  12. package/packages/_vue2/dist/{render-inlined-styles.1c2c5bf9.js → render-inlined-styles.cdf66d21.js} +4 -4
  13. package/packages/_vue2/dist/{render-inlined-styles.3797e28a.cjs → render-inlined-styles.f139e6d2.cjs} +1 -1
  14. package/packages/_vue2/dist/{render-repeated-block.dc48228e.cjs → render-repeated-block.d7008df1.cjs} +1 -1
  15. package/packages/_vue2/dist/{render-repeated-block.d7d1e175.js → render-repeated-block.fd7c9132.js} +2 -2
  16. package/packages/_vue2/dist/{render-styles.a61feef4.js → render-styles.039fcc51.js} +2 -2
  17. package/packages/_vue2/dist/{render-styles.23d118f3.cjs → render-styles.5f902b3b.cjs} +3 -3
  18. package/packages/_vue2/dist/sdk.cjs +1 -1
  19. package/packages/_vue2/dist/sdk.js +1 -1
  20. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +5 -7
  21. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +5 -7
  22. package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
  23. package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
  24. package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +3 -5
  25. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +3 -5
  26. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +3 -5
  27. package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +4 -6
  28. package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
  29. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +5 -7
  30. package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
  31. package/packages/_vue2/dist/style.css +1 -1
  32. package/packages/_vue3/dist/block-styles.02894248.cjs +1 -0
  33. package/packages/_vue3/dist/{block-styles.40e4c9b5.js → block-styles.6e74059d.js} +14 -11
  34. package/packages/_vue3/dist/{css.785b2126.cjs → css.4fc86c7e.cjs} +1 -1
  35. package/packages/_vue3/dist/{css.77c76358.js → css.a2956fb2.js} +1 -1
  36. package/packages/_vue3/dist/{index.9fb3a7e0.cjs → index.501ef5e2.cjs} +3 -3
  37. package/packages/_vue3/dist/{index.4931a4d1.js → index.b87b71f2.js} +6 -6
  38. package/packages/_vue3/dist/{render-block.6fa26228.js → render-block.1a6dc153.js} +85 -92
  39. package/packages/_vue3/dist/render-block.a0bf0cfc.cjs +3 -0
  40. package/packages/_vue3/dist/{render-component.44d63ad3.js → render-component.c1760213.js} +3 -3
  41. package/packages/_vue3/dist/{render-component.2721bc0c.cjs → render-component.ce1da9f7.cjs} +1 -1
  42. package/packages/_vue3/dist/{render-inlined-styles.dccd4787.js → render-inlined-styles.1e4cf51b.js} +4 -4
  43. package/packages/_vue3/dist/{render-inlined-styles.b1441d2d.cjs → render-inlined-styles.4e769566.cjs} +1 -1
  44. package/packages/_vue3/dist/{render-repeated-block.1360a469.cjs → render-repeated-block.607b20dd.cjs} +1 -1
  45. package/packages/_vue3/dist/{render-repeated-block.e5d7da62.js → render-repeated-block.bc4f1130.js} +2 -2
  46. package/packages/_vue3/dist/{render-styles.850fddb0.js → render-styles.86b7cc7d.js} +2 -2
  47. package/packages/_vue3/dist/{render-styles.e1959d28.cjs → render-styles.efd8cf3d.cjs} +2 -2
  48. package/packages/_vue3/dist/sdk.cjs +1 -1
  49. package/packages/_vue3/dist/sdk.js +1 -1
  50. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +2 -2
  51. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +2 -2
  52. package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
  53. package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
  54. package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -1
  55. package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
  56. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +2 -2
  57. package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
  58. package/packages/_vue3/dist/style.css +1 -1
  59. package/packages/_vue2/dist/block-styles.ef03a37e.cjs +0 -1
  60. package/packages/_vue2/dist/css.75f390cc.cjs +0 -6
  61. package/packages/_vue2/dist/render-block.2880ad6e.cjs +0 -3
  62. package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +0 -3
  63. package/packages/_vue3/dist/block-styles.32155e57.cjs +0 -1
  64. package/packages/_vue3/dist/render-block.cfb6d51a.cjs +0 -3
  65. package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +0 -3
@@ -1,13 +1,13 @@
1
- import { e as u, T as m, c as l, n as d } from "./index.346656f6.js";
2
- import { a as h, g as p } from "./css.4d4e03cf.js";
3
- const k = (e) => `v-on:${e.toLowerCase()}`, f = (e, t) => (n) => u({
1
+ import { e as p, T as m, c as l, n as d } from "./index.af260d16.js";
2
+ import { a as h, g as u } from "./css.9b722913.js";
3
+ const k = (e) => `v-on:${e.toLowerCase()}`, f = (e, t) => (n) => p({
4
4
  code: e,
5
5
  context: t.context,
6
6
  state: t.state,
7
7
  event: n,
8
8
  isExpression: !1
9
9
  });
10
- function x(e) {
10
+ function y(e) {
11
11
  var r;
12
12
  const t = {}, n = (r = e.block.actions) != null ? r : {};
13
13
  for (const o in n) {
@@ -18,7 +18,7 @@ function x(e) {
18
18
  }
19
19
  return t;
20
20
  }
21
- function y(e) {
21
+ function b(e) {
22
22
  var t;
23
23
  return {
24
24
  ...(t = e.component) == null ? void 0 : t.options,
@@ -26,7 +26,7 @@ function y(e) {
26
26
  builderBlock: e
27
27
  };
28
28
  }
29
- function b(e) {
29
+ function x(e) {
30
30
  const t = {};
31
31
  if (typeof e != "string")
32
32
  return t;
@@ -36,19 +36,19 @@ function b(e) {
36
36
  return t;
37
37
  }
38
38
  function g(e) {
39
- return e.class = b(e.class), e;
39
+ return e.class = x(e.class), e;
40
40
  }
41
- function B(e) {
41
+ function v(e) {
42
42
  var n;
43
43
  const t = {
44
44
  ...e.properties,
45
45
  "builder-id": e.id,
46
- style: v(e.style),
46
+ style: B(e.style),
47
47
  class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
48
48
  };
49
49
  return g(t);
50
50
  }
51
- function v(e) {
51
+ function B(e) {
52
52
  if (!!e)
53
53
  switch (m) {
54
54
  case "svelte":
@@ -62,10 +62,7 @@ function v(e) {
62
62
  return e;
63
63
  }
64
64
  }
65
- function C(e) {
66
- return e.tagName || "div";
67
- }
68
- const _ = [
65
+ const C = [
69
66
  "area",
70
67
  "base",
71
68
  "br",
@@ -81,12 +78,12 @@ const _ = [
81
78
  "source",
82
79
  "track",
83
80
  "wbr"
84
- ], w = (e) => typeof e == "string" && _.includes(e.toLowerCase()), S = ({
81
+ ], _ = (e) => typeof e == "string" && C.includes(e.toLowerCase()), S = ({
85
82
  block: e,
86
83
  context: t
87
84
  }) => {
88
85
  var o;
89
- const n = (o = p({
86
+ const n = (o = u({
90
87
  block: e,
91
88
  state: t.state,
92
89
  context: t.context,
@@ -100,14 +97,14 @@ const _ = [
100
97
  console.warn(`
101
98
  Could not find a registered component named "${n}".
102
99
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
103
- }, E = ({
100
+ }, w = ({
104
101
  block: e,
105
102
  context: t
106
103
  }) => {
107
104
  const { repeat: n, ...r } = e;
108
105
  if (!(n != null && n.collection))
109
106
  return;
110
- const o = u({
107
+ const o = p({
111
108
  code: n.collection,
112
109
  state: t.state,
113
110
  context: t.context
@@ -128,17 +125,24 @@ const _ = [
128
125
  },
129
126
  block: r
130
127
  }));
131
- }, P = () => import("./block-styles.97de2652.js").then((e) => e.default).catch((e) => {
128
+ }, E = (e) => typeof Proxy > "u" ? (console.error(
129
+ "no Proxy available in this environment, cannot proxy state."
130
+ ), e.state) : new Proxy(e.state, {
131
+ set: (n, r, o) => {
132
+ var s;
133
+ return n[r] = o, (s = e.setState) == null || s.call(e, n), !0;
134
+ }
135
+ }), P = () => import("./block-styles.e14644b9.js").then((e) => e.default).catch((e) => {
132
136
  throw console.error(
133
137
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
134
138
  e
135
139
  ), e;
136
- }), R = () => import("./render-repeated-block.d7d1e175.js").then((e) => e.default).catch((e) => {
140
+ }), R = () => import("./render-repeated-block.fd7c9132.js").then((e) => e.default).catch((e) => {
137
141
  throw console.error(
138
142
  "Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
139
143
  e
140
144
  ), e;
141
- }), I = () => import("./render-component.de99974e.js").then((e) => e.default).catch((e) => {
145
+ }), I = () => import("./render-component.58fe0189.js").then((e) => e.default).catch((e) => {
142
146
  throw console.error(
143
147
  "Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
144
148
  e
@@ -157,19 +161,18 @@ const _ = [
157
161
  block: this.block,
158
162
  context: this.context
159
163
  }),
160
- repeatItemData: E({
164
+ repeatItemData: w({
161
165
  block: this.block,
162
166
  context: this.context
163
167
  }),
164
- isEmptyHtmlElement: w
168
+ tag: this.block.tagName || "div",
169
+ proxyState: E(this.context),
170
+ isEmptyHtmlElement: _
165
171
  };
166
172
  },
167
173
  computed: {
168
- tag() {
169
- return C(this.useBlock);
170
- },
171
174
  useBlock() {
172
- return this.repeatItemData ? this.block : p({
175
+ return this.repeatItemData ? this.block : u({
173
176
  block: this.block,
174
177
  state: this.context.state,
175
178
  context: this.context.context,
@@ -179,18 +182,8 @@ const _ = [
179
182
  canShowBlock() {
180
183
  return l(this.useBlock.hide) ? !this.useBlock.hide : l(this.useBlock.show) ? this.useBlock.show : !0;
181
184
  },
182
- proxyState() {
183
- return typeof Proxy > "u" ? (console.error(
184
- "no Proxy available in this environment, cannot proxy state."
185
- ), this.context.state) : new Proxy(this.context.state, {
186
- set: (t, n, r) => {
187
- var o, s;
188
- return t[n] = r, (s = (o = this.context).setState) == null || s.call(o, t), !0;
189
- }
190
- });
191
- },
192
185
  actions() {
193
- return x({
186
+ return y({
194
187
  block: this.useBlock,
195
188
  state: this.proxyState,
196
189
  context: this.context.context
@@ -198,24 +191,7 @@ const _ = [
198
191
  },
199
192
  attributes() {
200
193
  return {
201
- ...B(this.useBlock)
202
- };
203
- },
204
- renderComponentProps() {
205
- var e, t, n;
206
- return {
207
- blockChildren: (e = this.useBlock.children) != null ? e : [],
208
- componentRef: (t = this.component) == null ? void 0 : t.component,
209
- componentOptions: {
210
- ...y(this.useBlock),
211
- ...(n = this.component) != null && n.noWrap ? {
212
- attributes: {
213
- ...this.attributes,
214
- ...this.actions
215
- }
216
- } : {}
217
- },
218
- context: this.childrenContext
194
+ ...v(this.useBlock)
219
195
  };
220
196
  },
221
197
  childrenWithoutParentComponent() {
@@ -234,6 +210,23 @@ const _ = [
234
210
  registeredComponents: this.context.registeredComponents,
235
211
  inheritedStyles: e()
236
212
  };
213
+ },
214
+ renderComponentProps() {
215
+ var e, t, n;
216
+ return {
217
+ blockChildren: (e = this.useBlock.children) != null ? e : [],
218
+ componentRef: (t = this.component) == null ? void 0 : t.component,
219
+ componentOptions: {
220
+ ...b(this.useBlock),
221
+ ...(n = this.component) != null && n.noWrap ? {
222
+ attributes: {
223
+ ...this.attributes,
224
+ ...this.actions
225
+ }
226
+ } : {}
227
+ },
228
+ context: this.childrenContext
229
+ };
237
230
  }
238
231
  },
239
232
  methods: {
@@ -248,7 +241,7 @@ const _ = [
248
241
  }
249
242
  }
250
243
  };
251
- var T = function() {
244
+ var A = function() {
252
245
  var r;
253
246
  var t = this, n = t._self._c;
254
247
  return !Boolean(!((r = t.component) != null && r.noWrap)) && t.canShowBlock ? n("render-component", t._b({}, "render-component", t.renderComponentProps, !1)) : t.isEmptyHtmlElement(t.tag) && t.canShowBlock ? n(t.tag, t._g(t._b({ tag: "component" }, "component", t.attributes, !1), t.stripVOn(t.actions))) : !t.isEmptyHtmlElement(t.tag) && t.repeatItemData && t.canShowBlock ? n("div", { staticClass: "vue2-root-element-workaround" }, t._l(t.repeatItemData, function(o, s) {
@@ -258,10 +251,10 @@ var T = function() {
258
251
  }), t._l(t.childrenWithoutParentComponent, function(o, s) {
259
252
  return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.childrenContext } });
260
253
  })], 2) : t._e();
261
- }, A = [], N = /* @__PURE__ */ d(
254
+ }, T = [], N = /* @__PURE__ */ d(
262
255
  O,
263
- T,
264
256
  A,
257
+ T,
265
258
  !1,
266
259
  null,
267
260
  null,
@@ -1,10 +1,10 @@
1
- import { n as c } from "./index.346656f6.js";
2
- const l = () => import("./block-styles.97de2652.js").then((o) => o.default).catch((o) => {
1
+ import { n as c } from "./index.af260d16.js";
2
+ const l = () => import("./block-styles.e14644b9.js").then((o) => o.default).catch((o) => {
3
3
  throw console.error(
4
4
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
5
5
  o
6
6
  ), o;
7
- }), s = () => import("./render-block.1c1312ce.js").then((o) => o.default).catch((o) => {
7
+ }), s = () => import("./render-block.9394f002.js").then((o) => o.default).catch((o) => {
8
8
  throw console.error(
9
9
  "Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
10
10
  o
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.c72abf65.cjs"),l=()=>Promise.resolve().then(()=>require("./block-styles.ef03a37e.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",n),n}),s=()=>Promise.resolve().then(()=>require("./render-block.2880ad6e.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",n),n}),i={name:"render-component",components:{RenderBlock:s,BlockStyles:l},props:["componentRef","componentOptions","blockChildren","context"]};var a=function(){var e=this,t=e._self._c;return e.componentRef?t(e.componentRef,e._b({tag:"component"},"component",e.componentOptions,!1),[e._l(e.blockChildren,function(o,r){return t("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.context}})}),e._l(e.blockChildren,function(o,r){return t("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},m=[],d=c.normalizeComponent(i,a,m,!1,null,null,null,null);const p=d.exports;exports.default=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.b9a8defa.cjs"),l=()=>Promise.resolve().then(()=>require("./block-styles.1657b45f.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",n),n}),s=()=>Promise.resolve().then(()=>require("./render-block.73e50e2a.cjs")).then(n=>n.default).catch(n=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",n),n}),i={name:"render-component",components:{RenderBlock:s,BlockStyles:l},props:["componentRef","componentOptions","blockChildren","context"]};var a=function(){var e=this,t=e._self._c;return e.componentRef?t(e.componentRef,e._b({tag:"component"},"component",e.componentOptions,!1),[e._l(e.blockChildren,function(o,r){return t("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.context}})}),e._l(e.blockChildren,function(o,r){return t("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},m=[],d=c.normalizeComponent(i,a,m,!1,null,null,null,null);const p=d.exports;exports.default=p;
@@ -1,4 +1,4 @@
1
- import { T as n, n as s } from "./index.346656f6.js";
1
+ import { T as n, n as s } from "./index.af260d16.js";
2
2
  const r = {
3
3
  name: "render-inlined-styles",
4
4
  props: ["styles"],
@@ -6,11 +6,11 @@ const r = {
6
6
  return { TARGET: n };
7
7
  },
8
8
  computed: {
9
- injectedStyleScript() {
10
- return `<${this.tag}>${this.styles}</${this.tag}>`;
11
- },
12
9
  tag() {
13
10
  return "style";
11
+ },
12
+ injectedStyleScript() {
13
+ return `<${this.tag}>${this.styles}</${this.tag}>`;
14
14
  }
15
15
  }
16
16
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.c72abf65.cjs"),s={name:"render-inlined-styles",props:["styles"],data(){return{TARGET:n.TARGET}},computed:{injectedStyleScript(){return`<${this.tag}>${this.styles}</${this.tag}>`},tag(){return"style"}}};var r=function(){var e=this,t=e._self._c;return e.TARGET==="svelte"||e.TARGET==="qwik"?t(e.tag,{tag:"component",domProps:{innerHTML:e._s(e.styles)}}):t(e.tag,{tag:"component"},[e._v(e._s(e.styles))])},l=[],a=n.normalizeComponent(s,r,l,!1,null,null,null,null);const o=a.exports;exports.default=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.b9a8defa.cjs"),s={name:"render-inlined-styles",props:["styles"],data(){return{TARGET:n.TARGET}},computed:{tag(){return"style"},injectedStyleScript(){return`<${this.tag}>${this.styles}</${this.tag}>`}}};var r=function(){var e=this,t=e._self._c;return e.TARGET==="svelte"||e.TARGET==="qwik"?t(e.tag,{tag:"component",domProps:{innerHTML:e._s(e.styles)}}):t(e.tag,{tag:"component"},[e._v(e._s(e.styles))])},l=[],a=n.normalizeComponent(s,r,l,!1,null,null,null,null);const o=a.exports;exports.default=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.c72abf65.cjs"),o=()=>Promise.resolve().then(()=>require("./render-block.2880ad6e.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",e),e}),c={name:"render-repeated-block",components:{RenderBlock:o},props:["block","repeatContext"],provide(){const e=this;return{[n.BuilderContext.key]:{content:e.repeatContext.content,state:e.repeatContext.state,setState:e.repeatContext.setState,context:e.repeatContext.context,apiKey:e.repeatContext.apiKey,registeredComponents:e.repeatContext.registeredComponents,inheritedStyles:e.repeatContext.inheritedStyles}}}};var a=function(){var t=this,r=t._self._c;return r("render-block",{attrs:{block:t.block,context:t.repeatContext}})},s=[],l=n.normalizeComponent(c,a,s,!1,null,null,null,null);const i=l.exports;exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.b9a8defa.cjs"),o=()=>Promise.resolve().then(()=>require("./render-block.73e50e2a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",e),e}),a={name:"render-repeated-block",components:{RenderBlock:o},props:["block","repeatContext"],provide(){const e=this;return{[n.BuilderContext.key]:{content:e.repeatContext.content,state:e.repeatContext.state,setState:e.repeatContext.setState,context:e.repeatContext.context,apiKey:e.repeatContext.apiKey,registeredComponents:e.repeatContext.registeredComponents,inheritedStyles:e.repeatContext.inheritedStyles}}}};var c=function(){var t=this,r=t._self._c;return r("render-block",{attrs:{block:t.block,context:t.repeatContext}})},s=[],l=n.normalizeComponent(a,c,s,!1,null,null,null,null);const i=l.exports;exports.default=i;
@@ -1,5 +1,5 @@
1
- import { B as o, n as r } from "./index.346656f6.js";
2
- const a = () => import("./render-block.1c1312ce.js").then((e) => e.default).catch((e) => {
1
+ import { B as o, n as r } from "./index.af260d16.js";
2
+ const a = () => import("./render-block.9394f002.js").then((e) => e.default).catch((e) => {
3
3
  throw console.error(
4
4
  "Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
5
5
  e
@@ -1,4 +1,4 @@
1
- import { n as c } from "./index.346656f6.js";
1
+ import { n as c } from "./index.af260d16.js";
2
2
  const f = (e) => {
3
3
  var a, o;
4
4
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
@@ -31,7 +31,7 @@ font-weight: ${n};
31
31
  }, u = ({
32
32
  cssCode: e,
33
33
  contentId: t
34
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", m = () => import("./render-inlined-styles.1c2c5bf9.js").then((e) => e.default).catch((e) => {
34
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", m = () => import("./render-inlined-styles.cdf66d21.js").then((e) => e.default).catch((e) => {
35
35
  throw console.error(
36
36
  "Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
37
37
  e
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.c72abf65.cjs"),f=e=>{var a,o;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],i=(o=e.fileUrl)!=null?o:(a=e==null?void 0:e.files)==null?void 0:a.regular;let l="";if(i&&t&&r&&(l+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.b9a8defa.cjs"),d=e=>{var a,o;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],i=(o=e.fileUrl)!=null?o:(a=e==null?void 0:e.files)==null?void 0:a.regular;let l="";if(i&&t&&r&&(l+=`
2
2
  @font-face {
3
3
  font-family: "${t}";
4
4
  src: local("${r}"), url('${i}') format('woff2');
@@ -12,9 +12,9 @@ src: url('${s}') format('woff2');
12
12
  font-display: fallback;
13
13
  font-weight: ${n};
14
14
  }
15
- `.trim())}return l},d=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>f(r)))==null?void 0:t.join(" "))||""},u=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",m=()=>Promise.resolve().then(()=>require("./render-inlined-styles.3797e28a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",e),e}),h={name:"render-content-styles",components:{RenderInlinedStyles:m},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
15
+ `.trim())}return l},f=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>d(r)))==null?void 0:t.join(" "))||""},u=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",m=()=>Promise.resolve().then(()=>require("./render-inlined-styles.f139e6d2.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",e),e}),h={name:"render-content-styles",components:{RenderInlinedStyles:m},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
16
16
  ${u({cssCode:this.cssCode,contentId:this.contentId})}
17
- ${d({customFonts:this.customFonts})}
17
+ ${f({customFonts:this.customFonts})}
18
18
 
19
19
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
20
20
  margin: 0;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.c72abf65.cjs");exports.Button=e.Button;exports.Columns=e.Columns;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.renderBlocks;exports.RenderContent=e.renderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports.components=e.components;exports.convertSearchParamsToQueryObject=e.convertSearchParamsToQueryObject;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getBuilderSearchParamsFromWindow=e.getBuilderSearchParamsFromWindow;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.normalizeSearchParams=e.normalizeSearchParams;exports.register=e.register;exports.registerComponent=e.registerComponent;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.b9a8defa.cjs");exports.Button=e.Button;exports.Columns=e.Columns;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.renderBlocks;exports.RenderContent=e.renderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports.components=e.components;exports.convertSearchParamsToQueryObject=e.convertSearchParamsToQueryObject;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getBuilderSearchParamsFromWindow=e.getBuilderSearchParamsFromWindow;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.normalizeSearchParams=e.normalizeSearchParams;exports.register=e.register;exports.registerComponent=e.registerComponent;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;
@@ -1,4 +1,4 @@
1
- import { b as s, C as t, F as r, I as n, r as o, d as i, S as m, h as g, i as c, V as d, l, v as S, o as C, u, w as h, x as p, q as P, j as B, k as b, y as k, p as v, m as w, s as x, t as y } from "./index.346656f6.js";
1
+ import { b as s, C as t, F as r, I as n, r as o, d as i, S as m, h as g, i as c, V as d, l, v as S, o as C, u, w as h, x as p, q as P, j as B, k as b, y as k, p as v, m as w, s as x, t as y } from "./index.af260d16.js";
2
2
  export {
3
3
  s as Button,
4
4
  t as Columns,
@@ -23,8 +23,8 @@ declare const _sfc_main: {
23
23
  TARGET: string;
24
24
  };
25
25
  computed: {
26
- injectedStyleScript(): any;
27
26
  tag(): string;
27
+ injectedStyleScript(): any;
28
28
  };
29
29
  }>;
30
30
  RenderBlocks: () => Promise<{
@@ -47,8 +47,8 @@ declare const _sfc_main: {
47
47
  TARGET: string;
48
48
  };
49
49
  computed: {
50
- injectedStyleScript(): any;
51
50
  tag(): string;
51
+ injectedStyleScript(): any;
52
52
  };
53
53
  }>;
54
54
  };
@@ -83,8 +83,8 @@ declare const _sfc_main: {
83
83
  TARGET: string;
84
84
  };
85
85
  computed: {
86
- injectedStyleScript(): any;
87
86
  tag(): string;
87
+ injectedStyleScript(): any;
88
88
  };
89
89
  }>;
90
90
  };
@@ -102,15 +102,13 @@ declare const _sfc_main: {
102
102
  props: string[];
103
103
  data(): any;
104
104
  computed: {
105
- tag(): any;
106
105
  useBlock(): any;
107
106
  canShowBlock(): any;
108
- proxyState(): any;
109
107
  actions(): any;
110
108
  attributes(): any;
111
- renderComponentProps(): any;
112
109
  childrenWithoutParentComponent(): any;
113
110
  childrenContext(): any;
111
+ renderComponentProps(): any;
114
112
  };
115
113
  methods: {
116
114
  stripVOn: (actions?: {}) => {};
@@ -126,8 +124,8 @@ declare const _sfc_main: {
126
124
  TARGET: string;
127
125
  };
128
126
  computed: {
129
- injectedStyleScript(): any;
130
127
  tag(): string;
128
+ injectedStyleScript(): any;
131
129
  };
132
130
  }>;
133
131
  };
@@ -32,8 +32,8 @@ declare const _sfc_main: {
32
32
  TARGET: string;
33
33
  };
34
34
  computed: {
35
- injectedStyleScript(): any;
36
35
  tag(): string;
36
+ injectedStyleScript(): any;
37
37
  };
38
38
  }>;
39
39
  };
@@ -60,8 +60,8 @@ declare const _sfc_main: {
60
60
  TARGET: string;
61
61
  };
62
62
  computed: {
63
- injectedStyleScript(): any;
64
63
  tag(): string;
64
+ injectedStyleScript(): any;
65
65
  };
66
66
  }>;
67
67
  };
@@ -96,8 +96,8 @@ declare const _sfc_main: {
96
96
  TARGET: string;
97
97
  };
98
98
  computed: {
99
- injectedStyleScript(): any;
100
99
  tag(): string;
100
+ injectedStyleScript(): any;
101
101
  };
102
102
  }>;
103
103
  };
@@ -115,15 +115,13 @@ declare const _sfc_main: {
115
115
  props: string[];
116
116
  data(): any;
117
117
  computed: {
118
- tag(): any;
119
118
  useBlock(): any;
120
119
  canShowBlock(): any;
121
- proxyState(): any;
122
120
  actions(): any;
123
121
  attributes(): any;
124
- renderComponentProps(): any;
125
122
  childrenWithoutParentComponent(): any;
126
123
  childrenContext(): any;
124
+ renderComponentProps(): any;
127
125
  };
128
126
  methods: {
129
127
  stripVOn: (actions?: {}) => {};
@@ -139,8 +137,8 @@ declare const _sfc_main: {
139
137
  TARGET: string;
140
138
  };
141
139
  computed: {
142
- injectedStyleScript(): any;
143
140
  tag(): string;
141
+ injectedStyleScript(): any;
144
142
  };
145
143
  }>;
146
144
  };
@@ -14,8 +14,8 @@ declare const _sfc_main: {
14
14
  TARGET: string;
15
15
  };
16
16
  computed: {
17
- injectedStyleScript(): any;
18
17
  tag(): string;
18
+ injectedStyleScript(): any;
19
19
  };
20
20
  }>;
21
21
  };
@@ -10,3 +10,4 @@ export declare const getRepeatItemData: ({ block, context, }: {
10
10
  block: BuilderBlock;
11
11
  context: BuilderContextInterface;
12
12
  }) => RepeatData[] | undefined;
13
+ export declare const getProxyState: (context: BuilderContextInterface) => BuilderContextInterface['state'];
@@ -21,8 +21,8 @@ declare const _sfc_main: {
21
21
  TARGET: string;
22
22
  };
23
23
  computed: {
24
- injectedStyleScript(): any;
25
24
  tag(): string;
25
+ injectedStyleScript(): any;
26
26
  };
27
27
  }>;
28
28
  };
@@ -57,8 +57,8 @@ declare const _sfc_main: {
57
57
  TARGET: string;
58
58
  };
59
59
  computed: {
60
- injectedStyleScript(): any;
61
60
  tag(): string;
61
+ injectedStyleScript(): any;
62
62
  };
63
63
  }>;
64
64
  };
@@ -76,15 +76,13 @@ declare const _sfc_main: {
76
76
  props: string[];
77
77
  data(): any;
78
78
  computed: {
79
- tag(): any;
80
79
  useBlock(): any;
81
80
  canShowBlock(): any;
82
- proxyState(): any;
83
81
  actions(): any;
84
82
  attributes(): any;
85
- renderComponentProps(): any;
86
83
  childrenWithoutParentComponent(): any;
87
84
  childrenContext(): any;
85
+ renderComponentProps(): any;
88
86
  };
89
87
  methods: {
90
88
  stripVOn: (actions?: {}) => {};
@@ -37,8 +37,8 @@ declare const _sfc_main: {
37
37
  TARGET: string;
38
38
  };
39
39
  computed: {
40
- injectedStyleScript(): any;
41
40
  tag(): string;
41
+ injectedStyleScript(): any;
42
42
  };
43
43
  }>;
44
44
  };
@@ -56,15 +56,13 @@ declare const _sfc_main: {
56
56
  props: string[];
57
57
  data(): any;
58
58
  computed: {
59
- tag(): any;
60
59
  useBlock(): any;
61
60
  canShowBlock(): any;
62
- proxyState(): any;
63
61
  actions(): any;
64
62
  attributes(): any;
65
- renderComponentProps(): any;
66
63
  childrenWithoutParentComponent(): any;
67
64
  childrenContext(): any;
65
+ renderComponentProps(): any;
68
66
  };
69
67
  methods: {
70
68
  stripVOn: (actions?: {}) => {};
@@ -80,8 +78,8 @@ declare const _sfc_main: {
80
78
  TARGET: string;
81
79
  };
82
80
  computed: {
83
- injectedStyleScript(): any;
84
81
  tag(): string;
82
+ injectedStyleScript(): any;
85
83
  };
86
84
  }>;
87
85
  };
@@ -18,8 +18,8 @@ declare const _sfc_main: {
18
18
  TARGET: string;
19
19
  };
20
20
  computed: {
21
- injectedStyleScript(): any;
22
21
  tag(): string;
22
+ injectedStyleScript(): any;
23
23
  };
24
24
  }>;
25
25
  };
@@ -47,8 +47,8 @@ declare const _sfc_main: {
47
47
  TARGET: string;
48
48
  };
49
49
  computed: {
50
- injectedStyleScript(): any;
51
50
  tag(): string;
51
+ injectedStyleScript(): any;
52
52
  };
53
53
  }>;
54
54
  };
@@ -66,15 +66,13 @@ declare const _sfc_main: {
66
66
  props: string[];
67
67
  data(): any;
68
68
  computed: {
69
- tag(): any;
70
69
  useBlock(): any;
71
70
  canShowBlock(): any;
72
- proxyState(): any;
73
71
  actions(): any;
74
72
  attributes(): any;
75
- renderComponentProps(): any;
76
73
  childrenWithoutParentComponent(): any;
77
74
  childrenContext(): any;
75
+ renderComponentProps(): any;
78
76
  };
79
77
  methods: {
80
78
  stripVOn: (actions?: {}) => {};
@@ -25,8 +25,8 @@ declare const _sfc_main: {
25
25
  TARGET: string;
26
26
  };
27
27
  computed: {
28
- injectedStyleScript(): any;
29
28
  tag(): string;
29
+ injectedStyleScript(): any;
30
30
  };
31
31
  }>;
32
32
  };
@@ -61,8 +61,8 @@ declare const _sfc_main: {
61
61
  TARGET: string;
62
62
  };
63
63
  computed: {
64
- injectedStyleScript(): any;
65
64
  tag(): string;
65
+ injectedStyleScript(): any;
66
66
  };
67
67
  }>;
68
68
  };
@@ -80,15 +80,13 @@ declare const _sfc_main: {
80
80
  props: string[];
81
81
  data(): any;
82
82
  computed: {
83
- tag(): any;
84
83
  useBlock(): any;
85
84
  canShowBlock(): any;
86
- proxyState(): any;
87
85
  actions(): any;
88
86
  attributes(): any;
89
- renderComponentProps(): any;
90
87
  childrenWithoutParentComponent(): any;
91
88
  childrenContext(): any;
89
+ renderComponentProps(): any;
92
90
  };
93
91
  methods: {
94
92
  stripVOn: (actions?: {}) => {};
@@ -104,8 +102,8 @@ declare const _sfc_main: {
104
102
  TARGET: string;
105
103
  };
106
104
  computed: {
107
- injectedStyleScript(): any;
108
105
  tag(): string;
106
+ injectedStyleScript(): any;
109
107
  };
110
108
  }>;
111
109
  };
@@ -8,8 +8,8 @@ declare const _sfc_main: {
8
8
  TARGET: string;
9
9
  };
10
10
  computed: {
11
- injectedStyleScript(): any;
12
11
  tag(): string;
12
+ injectedStyleScript(): any;
13
13
  };
14
14
  }>;
15
15
  };