@builder.io/sdk-vue 0.2.1 → 0.2.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 (62) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.e14644b9.js → block-styles.4667431d.js} +3 -3
  3. package/packages/_vue2/dist/{block-styles.1657b45f.cjs → block-styles.7c2a87df.cjs} +1 -1
  4. package/packages/{_vue3/dist/css.a2956fb2.js → _vue2/dist/css.468435de.js} +1 -1
  5. package/packages/_vue2/dist/{css.883115fd.cjs → css.dce6e4eb.cjs} +1 -1
  6. package/packages/_vue2/dist/index.78ba6586.cjs +29 -0
  7. package/packages/_vue2/dist/{index.af260d16.js → index.eb91dc82.js} +340 -325
  8. package/packages/_vue2/dist/render-block.67e4dd65.cjs +3 -0
  9. package/packages/_vue2/dist/{render-block.9394f002.js → render-block.6f9a607a.js} +28 -26
  10. package/packages/_vue2/dist/{render-component.58fe0189.js → render-component.10d6c8d2.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.ab9c6751.cjs → render-component.3578089b.cjs} +1 -1
  12. package/packages/_vue2/dist/{render-inlined-styles.f139e6d2.cjs → render-inlined-styles.56373d13.cjs} +1 -1
  13. package/packages/_vue2/dist/{render-inlined-styles.cdf66d21.js → render-inlined-styles.942eb38d.js} +1 -1
  14. package/packages/_vue2/dist/{render-repeated-block.d7008df1.cjs → render-repeated-block.18d7fc6e.cjs} +1 -1
  15. package/packages/_vue2/dist/{render-repeated-block.fd7c9132.js → render-repeated-block.1bb5c2fb.js} +2 -2
  16. package/packages/_vue2/dist/{render-styles.039fcc51.js → render-styles.0d1f8872.js} +2 -2
  17. package/packages/_vue2/dist/{render-styles.5f902b3b.cjs → render-styles.de7287b6.cjs} +2 -2
  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 +1 -1
  21. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +1 -1
  22. package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +1 -1
  23. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +1 -1
  24. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +1 -1
  25. package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +1 -1
  26. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +1 -1
  27. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +1 -1
  28. package/packages/_vue2/dist/src/helpers/logger.d.ts +5 -0
  29. package/packages/_vue2/dist/src/types/builder-content.d.ts +1 -1
  30. package/packages/_vue2/dist/src/types/components.d.ts +1 -72
  31. package/packages/_vue2/dist/src/types/input.d.ts +121 -0
  32. package/packages/_vue2/dist/style.css +1 -1
  33. package/packages/_vue3/dist/{block-styles.02894248.cjs → block-styles.09955b0c.cjs} +1 -1
  34. package/packages/_vue3/dist/{block-styles.6e74059d.js → block-styles.6bd36a5a.js} +3 -3
  35. package/packages/_vue3/dist/css.3241302b.cjs +6 -0
  36. package/packages/{_vue2/dist/css.9b722913.js → _vue3/dist/css.81a21c5a.js} +1 -1
  37. package/packages/_vue3/dist/{index.b87b71f2.js → index.45ab85e5.js} +506 -491
  38. package/packages/_vue3/dist/index.cca81180.cjs +29 -0
  39. package/packages/_vue3/dist/render-block.33cc5768.cjs +3 -0
  40. package/packages/_vue3/dist/{render-block.1a6dc153.js → render-block.ec4c1913.js} +27 -25
  41. package/packages/_vue3/dist/{render-component.c1760213.js → render-component.3bd8dc76.js} +3 -3
  42. package/packages/_vue3/dist/{render-component.ce1da9f7.cjs → render-component.c0d5e797.cjs} +1 -1
  43. package/packages/_vue3/dist/{render-inlined-styles.1e4cf51b.js → render-inlined-styles.952d2fff.js} +1 -1
  44. package/packages/_vue3/dist/{render-inlined-styles.4e769566.cjs → render-inlined-styles.b55b6667.cjs} +1 -1
  45. package/packages/_vue3/dist/{render-repeated-block.bc4f1130.js → render-repeated-block.263f0cec.js} +2 -2
  46. package/packages/_vue3/dist/{render-repeated-block.607b20dd.cjs → render-repeated-block.c3c9e926.cjs} +1 -1
  47. package/packages/_vue3/dist/{render-styles.86b7cc7d.js → render-styles.cf6faa29.js} +2 -2
  48. package/packages/_vue3/dist/{render-styles.efd8cf3d.cjs → render-styles.d1ac3a18.cjs} +2 -2
  49. package/packages/_vue3/dist/sdk.cjs +1 -1
  50. package/packages/_vue3/dist/sdk.js +1 -1
  51. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +0 -9
  52. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +1 -1
  53. package/packages/_vue3/dist/src/helpers/logger.d.ts +5 -0
  54. package/packages/_vue3/dist/src/types/builder-content.d.ts +1 -1
  55. package/packages/_vue3/dist/src/types/components.d.ts +1 -72
  56. package/packages/_vue3/dist/src/types/input.d.ts +121 -0
  57. package/packages/_vue3/dist/style.css +1 -1
  58. package/packages/_vue2/dist/index.b9a8defa.cjs +0 -29
  59. package/packages/_vue2/dist/render-block.73e50e2a.cjs +0 -3
  60. package/packages/_vue3/dist/css.4fc86c7e.cjs +0 -6
  61. package/packages/_vue3/dist/index.501ef5e2.cjs +0 -29
  62. package/packages/_vue3/dist/render-block.a0bf0cfc.cjs +0 -3
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.78ba6586.cjs"),i=require("./css.dce6e4eb.cjs"),p=t=>`v-on:${t.toLowerCase()}`,d=(t,e)=>n=>c.evaluate({code:t,context:e.context,state:e.state,event:n,isExpression:!1});function m(t){var r;const e={},n=(r=t.block.actions)!=null?r:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];e[p(o)]=d(s,t)}return e}function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}function k(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\\s+/);for(const r of n)e[r]=!0;return e}function f(t){return t.class=k(t.class),t}const b=t=>({href:t.href});function y(t){var n;const e={...b(t),...t.properties,"builder-id":t.id,style:x(t.style),class:[t.id,"builder-block",t.class,(n=t.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return f(e)}function x(t){if(!!t)switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return i.convertStyleMapToCSSArray(t).join(" ");case"qwik":case"reactNative":case"react":return t}}const g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],v=t=>typeof t=="string"&&g.includes(t.toLowerCase()),B=({block:t,context:e})=>{var o;const n=(o=i.getProcessedBlock({block:t,state:e.state,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:o.name;if(!n)return null;const r=e.registeredComponents[n];if(r)return r;console.warn(`
2
+ Could not find a registered component named "${n}".
3
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},C=({block:t,context:e})=>{const{repeat:n,...r}=t;if(!(n!=null&&n.collection))return;const o=c.evaluate({code:n.collection,state:e.state,context:e.context});if(!Array.isArray(o))return;const s=n.collection.split(".").pop(),a=n.itemName||(s?s+"Item":"item");return o.map((l,u)=>({context:{...e,state:{...e.state,$index:u,$item:l,[a]:l,[`$${a}Index`]:u}},block:r}))},_=t=>typeof Proxy>"u"?(console.error("no Proxy available in this environment, cannot proxy state."),t.state):new Proxy(t.state,{set:(n,r,o)=>{var s;return n[r]=o,(s=t.setState)==null||s.call(t,n),!0}}),S=()=>Promise.resolve().then(()=>require("./block-styles.7c2a87df.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",t),t}),P=()=>Promise.resolve().then(()=>require("./render-repeated-block.18d7fc6e.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",t),t}),w=()=>Promise.resolve().then(()=>require("./render-component.3578089b.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",t),t}),E={name:"render-block",components:{RenderComponent:w,RenderRepeatedBlock:P,BlockStyles:S},props:["block","context"],data(){return{component:B({block:this.block,context:this.context}),repeatItemData:C({block:this.block,context:this.context}),tag:this.block.tagName||"div",proxyState:_(this.context),isEmptyHtmlElement:v}},computed:{useBlock(){return this.repeatItemData?this.block:i.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return"hide"in this.useBlock?!this.useBlock.hide:"show"in this.useBlock?this.useBlock.show:!0},actions(){return m({block:this.useBlock,state:this.proxyState,context:this.context.context})},attributes(){return{...y(this.useBlock)}},childrenWithoutParentComponent(){var e,n;return!((e=this.component)!=null&&e.component)&&!this.repeatItemData?(n=this.useBlock.children)!=null?n:[]:[]},childrenContext(){const t=()=>({});return{apiKey:this.context.apiKey,apiVersion:this.context.apiVersion,state:this.context.state,content:this.context.content,context:this.context.context,setState:this.context.setState,registeredComponents:this.context.registeredComponents,inheritedStyles:t()}},renderComponentProps(){var t,e,n;return{blockChildren:(t=this.useBlock.children)!=null?t:[],componentRef:(e=this.component)==null?void 0:e.component,componentOptions:{...h(this.useBlock),...(n=this.component)!=null&&n.noWrap?{attributes:{...this.attributes,...this.actions}}:{}},context:this.childrenContext}}},methods:{stripVOn:function(e={}){return Object.keys(e).reduce((n,r)=>({...n,[r.replace("v-on:","")]:e[r]}),{})}}};var R=function(){var r;var e=this,n=e._self._c;return!Boolean(!((r=e.component)!=null&&r.noWrap))&&e.canShowBlock?n("render-component",e._b({},"render-component",e.renderComponentProps,!1)):e.isEmptyHtmlElement(e.tag)&&e.canShowBlock?n(e.tag,e._g(e._b({tag:"component"},"component",e.attributes,!1),e.stripVOn(e.actions))):!e.isEmptyHtmlElement(e.tag)&&e.repeatItemData&&e.canShowBlock?n("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItemData,function(o,s){return n("render-repeated-block",{key:s,attrs:{repeatContext:o.context,block:o.block}})}),1):e.canShowBlock?n(e.tag,e._g(e._b({tag:"component"},"component",e.attributes,!1),e.stripVOn(e.actions)),[n("render-component",e._b({},"render-component",e.renderComponentProps,!1)),e._l(e.childrenWithoutParentComponent,function(o,s){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.childrenContext}})}),e._l(e.childrenWithoutParentComponent,function(o,s){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.childrenContext}})})],2):e._e()},O=[],j=c.normalizeComponent(E,R,O,!1,null,null,null,null);const A=j.exports;exports.default=A;
@@ -1,24 +1,24 @@
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({
1
+ import { e as l, T as u, n as m } from "./index.eb91dc82.js";
2
+ import { a as d, g as p } from "./css.468435de.js";
3
+ const h = (e) => `v-on:${e.toLowerCase()}`, k = (e, t) => (n) => l({
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 y(e) {
10
+ function f(e) {
11
11
  var r;
12
12
  const t = {}, n = (r = e.block.actions) != null ? r : {};
13
13
  for (const o in n) {
14
14
  if (!n.hasOwnProperty(o))
15
15
  continue;
16
16
  const s = n[o];
17
- t[k(o)] = f(s, e);
17
+ t[h(o)] = k(s, e);
18
18
  }
19
19
  return t;
20
20
  }
21
- function b(e) {
21
+ function y(e) {
22
22
  var t;
23
23
  return {
24
24
  ...(t = e.component) == null ? void 0 : t.options,
@@ -26,7 +26,7 @@ function b(e) {
26
26
  builderBlock: e
27
27
  };
28
28
  }
29
- function x(e) {
29
+ function b(e) {
30
30
  const t = {};
31
31
  if (typeof e != "string")
32
32
  return t;
@@ -35,27 +35,29 @@ function x(e) {
35
35
  t[r] = !0;
36
36
  return t;
37
37
  }
38
- function g(e) {
39
- return e.class = x(e.class), e;
38
+ function x(e) {
39
+ return e.class = b(e.class), e;
40
40
  }
41
+ const g = (e) => ({ href: e.href });
41
42
  function v(e) {
42
43
  var n;
43
44
  const t = {
45
+ ...g(e),
44
46
  ...e.properties,
45
47
  "builder-id": e.id,
46
48
  style: B(e.style),
47
49
  class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
48
50
  };
49
- return g(t);
51
+ return x(t);
50
52
  }
51
53
  function B(e) {
52
54
  if (!!e)
53
- switch (m) {
55
+ switch (u) {
54
56
  case "svelte":
55
57
  case "vue2":
56
58
  case "vue3":
57
59
  case "solid":
58
- return h(e).join(" ");
60
+ return d(e).join(" ");
59
61
  case "qwik":
60
62
  case "reactNative":
61
63
  case "react":
@@ -83,7 +85,7 @@ const C = [
83
85
  context: t
84
86
  }) => {
85
87
  var o;
86
- const n = (o = u({
88
+ const n = (o = p({
87
89
  block: e,
88
90
  state: t.state,
89
91
  context: t.context,
@@ -104,7 +106,7 @@ const C = [
104
106
  const { repeat: n, ...r } = e;
105
107
  if (!(n != null && n.collection))
106
108
  return;
107
- const o = p({
109
+ const o = l({
108
110
  code: n.collection,
109
111
  state: t.state,
110
112
  context: t.context
@@ -132,25 +134,25 @@ const C = [
132
134
  var s;
133
135
  return n[r] = o, (s = e.setState) == null || s.call(e, n), !0;
134
136
  }
135
- }), P = () => import("./block-styles.e14644b9.js").then((e) => e.default).catch((e) => {
137
+ }), P = () => import("./block-styles.4667431d.js").then((e) => e.default).catch((e) => {
136
138
  throw console.error(
137
139
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
138
140
  e
139
141
  ), e;
140
- }), R = () => import("./render-repeated-block.fd7c9132.js").then((e) => e.default).catch((e) => {
142
+ }), R = () => import("./render-repeated-block.1bb5c2fb.js").then((e) => e.default).catch((e) => {
141
143
  throw console.error(
142
144
  "Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
143
145
  e
144
146
  ), e;
145
- }), I = () => import("./render-component.58fe0189.js").then((e) => e.default).catch((e) => {
147
+ }), O = () => import("./render-component.10d6c8d2.js").then((e) => e.default).catch((e) => {
146
148
  throw console.error(
147
149
  "Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
148
150
  e
149
151
  ), e;
150
- }), O = {
152
+ }), A = {
151
153
  name: "render-block",
152
154
  components: {
153
- RenderComponent: I,
155
+ RenderComponent: O,
154
156
  RenderRepeatedBlock: R,
155
157
  BlockStyles: P
156
158
  },
@@ -172,7 +174,7 @@ const C = [
172
174
  },
173
175
  computed: {
174
176
  useBlock() {
175
- return this.repeatItemData ? this.block : u({
177
+ return this.repeatItemData ? this.block : p({
176
178
  block: this.block,
177
179
  state: this.context.state,
178
180
  context: this.context.context,
@@ -180,10 +182,10 @@ const C = [
180
182
  });
181
183
  },
182
184
  canShowBlock() {
183
- return l(this.useBlock.hide) ? !this.useBlock.hide : l(this.useBlock.show) ? this.useBlock.show : !0;
185
+ return "hide" in this.useBlock ? !this.useBlock.hide : "show" in this.useBlock ? this.useBlock.show : !0;
184
186
  },
185
187
  actions() {
186
- return y({
188
+ return f({
187
189
  block: this.useBlock,
188
190
  state: this.proxyState,
189
191
  context: this.context.context
@@ -217,7 +219,7 @@ const C = [
217
219
  blockChildren: (e = this.useBlock.children) != null ? e : [],
218
220
  componentRef: (t = this.component) == null ? void 0 : t.component,
219
221
  componentOptions: {
220
- ...b(this.useBlock),
222
+ ...y(this.useBlock),
221
223
  ...(n = this.component) != null && n.noWrap ? {
222
224
  attributes: {
223
225
  ...this.attributes,
@@ -241,7 +243,7 @@ const C = [
241
243
  }
242
244
  }
243
245
  };
244
- var A = function() {
246
+ var I = function() {
245
247
  var r;
246
248
  var t = this, n = t._self._c;
247
249
  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) {
@@ -251,9 +253,9 @@ var A = function() {
251
253
  }), t._l(t.childrenWithoutParentComponent, function(o, s) {
252
254
  return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.childrenContext } });
253
255
  })], 2) : t._e();
254
- }, T = [], N = /* @__PURE__ */ d(
255
- O,
256
+ }, T = [], N = /* @__PURE__ */ m(
256
257
  A,
258
+ I,
257
259
  T,
258
260
  !1,
259
261
  null,
@@ -1,10 +1,10 @@
1
- import { n as c } from "./index.af260d16.js";
2
- const l = () => import("./block-styles.e14644b9.js").then((o) => o.default).catch((o) => {
1
+ import { n as c } from "./index.eb91dc82.js";
2
+ const l = () => import("./block-styles.4667431d.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.9394f002.js").then((o) => o.default).catch((o) => {
7
+ }), s = () => import("./render-block.6f9a607a.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.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.78ba6586.cjs"),l=()=>Promise.resolve().then(()=>require("./block-styles.7c2a87df.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.67e4dd65.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()},d=[],m=c.normalizeComponent(i,a,d,!1,null,null,null,null);const p=m.exports;exports.default=p;
@@ -1 +1 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.78ba6586.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,4 +1,4 @@
1
- import { T as n, n as s } from "./index.af260d16.js";
1
+ import { T as n, n as s } from "./index.eb91dc82.js";
2
2
  const r = {
3
3
  name: "render-inlined-styles",
4
4
  props: ["styles"],
@@ -1 +1 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.78ba6586.cjs"),o=()=>Promise.resolve().then(()=>require("./render-block.67e4dd65.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,5 +1,5 @@
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) => {
1
+ import { B as o, n as r } from "./index.eb91dc82.js";
2
+ const a = () => import("./render-block.6f9a607a.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.af260d16.js";
1
+ import { n as c } from "./index.eb91dc82.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.cdf66d21.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.942eb38d.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.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+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.78ba6586.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,7 +12,7 @@ src: url('${s}') format('woff2');
12
12
  font-display: fallback;
13
13
  font-weight: ${n};
14
14
  }
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:`
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.56373d13.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
17
  ${f({customFonts:this.customFonts})}
18
18
 
@@ -1 +1 @@
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
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.78ba6586.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.af260d16.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.eb91dc82.js";
2
2
  export {
3
3
  s as Button,
4
4
  t as Columns,
@@ -103,7 +103,7 @@ declare const _sfc_main: {
103
103
  data(): any;
104
104
  computed: {
105
105
  useBlock(): any;
106
- canShowBlock(): any;
106
+ canShowBlock(): unknown;
107
107
  actions(): any;
108
108
  attributes(): any;
109
109
  childrenWithoutParentComponent(): any;
@@ -116,7 +116,7 @@ declare const _sfc_main: {
116
116
  data(): any;
117
117
  computed: {
118
118
  useBlock(): any;
119
- canShowBlock(): any;
119
+ canShowBlock(): unknown;
120
120
  actions(): any;
121
121
  attributes(): any;
122
122
  childrenWithoutParentComponent(): any;
@@ -77,7 +77,7 @@ declare const _sfc_main: {
77
77
  data(): any;
78
78
  computed: {
79
79
  useBlock(): any;
80
- canShowBlock(): any;
80
+ canShowBlock(): unknown;
81
81
  actions(): any;
82
82
  attributes(): any;
83
83
  childrenWithoutParentComponent(): any;
@@ -57,7 +57,7 @@ declare const _sfc_main: {
57
57
  data(): any;
58
58
  computed: {
59
59
  useBlock(): any;
60
- canShowBlock(): any;
60
+ canShowBlock(): unknown;
61
61
  actions(): any;
62
62
  attributes(): any;
63
63
  childrenWithoutParentComponent(): any;
@@ -67,7 +67,7 @@ declare const _sfc_main: {
67
67
  data(): any;
68
68
  computed: {
69
69
  useBlock(): any;
70
- canShowBlock(): any;
70
+ canShowBlock(): unknown;
71
71
  actions(): any;
72
72
  attributes(): any;
73
73
  childrenWithoutParentComponent(): any;
@@ -81,7 +81,7 @@ declare const _sfc_main: {
81
81
  data(): any;
82
82
  computed: {
83
83
  useBlock(): any;
84
- canShowBlock(): any;
84
+ canShowBlock(): unknown;
85
85
  actions(): any;
86
86
  attributes(): any;
87
87
  childrenWithoutParentComponent(): any;
@@ -98,7 +98,7 @@ declare const _sfc_main: {
98
98
  data(): any;
99
99
  computed: {
100
100
  useBlock(): any;
101
- canShowBlock(): any;
101
+ canShowBlock(): unknown;
102
102
  actions(): any;
103
103
  attributes(): any;
104
104
  childrenWithoutParentComponent(): any;
@@ -7,5 +7,5 @@ type ContentResponse = {
7
7
  status: number;
8
8
  message: string;
9
9
  };
10
- export declare function getAllContent(options: GetContentOptions): Promise<ContentResponse>;
10
+ export declare function getAllContent(options: GetContentOptions): Promise<ContentResponse | null>;
11
11
  export {};
@@ -0,0 +1,5 @@
1
+ export declare const logger: {
2
+ log: (...message: any[]) => void;
3
+ error: (...message: any[]) => void;
4
+ warn: (...message: any[]) => void;
5
+ };
@@ -1,5 +1,5 @@
1
1
  import type { BuilderBlock } from './builder-block.js';
2
- import type { Input } from './components.js';
2
+ import type { Input } from './input.js';
3
3
  import type { Nullable } from './typescript.js';
4
4
  export interface Breakpoints {
5
5
  small: number;
@@ -1,76 +1,5 @@
1
1
  import type { BuilderElement } from './element';
2
- export interface Input {
3
- name: string;
4
- friendlyName?: string;
5
- description?: string;
6
- defaultValue?: any;
7
- type: string;
8
- valueType?: {
9
- type?: string;
10
- };
11
- required?: boolean;
12
- autoFocus?: boolean;
13
- subFields?: Input[];
14
- helperText?: string;
15
- allowedFileTypes?: string[];
16
- imageHeight?: number;
17
- imageWidth?: number;
18
- mediaHeight?: number;
19
- mediaWidth?: number;
20
- hideFromUI?: boolean;
21
- modelId?: string;
22
- /**
23
- * Number field type validation maximum accepted input
24
- */
25
- max?: number;
26
- /**
27
- * Number field type validation minimum accepted input
28
- */
29
- min?: number;
30
- /**
31
- * Number field type step size when using arrows
32
- */
33
- step?: number;
34
- /**
35
- * Set this to `true` to show the editor for this input when
36
- * children of this component are selected. This is useful for things
37
- * like Tabs, such that users may not always select the Tabs component
38
- * directly but will still be looking for how to add additional tabs
39
- */
40
- broadcast?: boolean;
41
- /**
42
- * Set this to `true` to show the editor for this input when
43
- * group locked parents of this component are selected. This is useful
44
- * to bubble up important inputs for locked groups, like text and images
45
- */
46
- bubble?: boolean;
47
- options?: {
48
- [key: string]: any;
49
- };
50
- enum?: string[] | {
51
- label: string;
52
- value: any;
53
- helperText?: string;
54
- }[];
55
- /** Regex field validation for all string types (text, longText, html, url, etc) */
56
- regex?: {
57
- /** pattern to test, like "^\/[a-z]$" */
58
- pattern: string;
59
- /** flags for the RegExp constructor, e.g. "gi" */
60
- options?: string;
61
- /**
62
- * Friendly message to display to end-users if the regex fails, e.g.
63
- * "You must use a relative url starting with '/...' "
64
- */
65
- message: string;
66
- };
67
- advanced?: boolean;
68
- onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
69
- code?: boolean;
70
- richText?: boolean;
71
- showIf?: ((options: Map<string, any>) => boolean) | string;
72
- copyOnAdd?: boolean;
73
- }
2
+ import type { Input } from './input';
74
3
  export interface ComponentInfo {
75
4
  /**
76
5
  * Name your component something unique, e.g. 'MyButton'. You can override built-in components
@@ -0,0 +1,121 @@
1
+ export interface Input {
2
+ /** This is the name of the component prop this input represents */
3
+ name: string;
4
+ /** A friendlier name to show in the UI if the component prop name is not ideal for end users */
5
+ friendlyName?: string;
6
+ /** @hidden @deprecated */
7
+ description?: string;
8
+ /** A default value to use */
9
+ defaultValue?: any;
10
+ /**
11
+ * The type of input to use, such as 'text'
12
+ *
13
+ * See all available inputs [here](https://www.builder.io/c/docs/custom-react-components#input-types)
14
+ * and you can create your own custom input types and associated editor UIs with [plugins](https://www.builder.io/c/docs/extending/plugins)
15
+ */
16
+ type: string;
17
+ /** Is this input mandatory or not */
18
+ required?: boolean;
19
+ /** @hidden */
20
+ autoFocus?: boolean;
21
+ subFields?: Input[];
22
+ /**
23
+ * Additional text to render in the UI to give guidance on how to use this
24
+ *
25
+ * @example
26
+ * ```js
27
+ * helperText: 'Be sure to use a proper URL, starting with "https://"'
28
+ * 111
29
+ */
30
+ helperText?: string;
31
+ /** @hidden */
32
+ allowedFileTypes?: string[];
33
+ /** @hidden */
34
+ imageHeight?: number;
35
+ /** @hidden */
36
+ imageWidth?: number;
37
+ /** @hidden */
38
+ mediaHeight?: number;
39
+ /** @hidden */
40
+ mediaWidth?: number;
41
+ /** @hidden */
42
+ hideFromUI?: boolean;
43
+ /** @hidden */
44
+ modelId?: string;
45
+ /**
46
+ * Number field type validation maximum accepted input
47
+ */
48
+ max?: number;
49
+ /**
50
+ * Number field type validation minimum accepted input
51
+ */
52
+ min?: number;
53
+ /**
54
+ * Number field type step size when using arrows
55
+ */
56
+ step?: number;
57
+ /**
58
+ * Set this to `true` to show the editor for this input when
59
+ * children of this component are selected. This is useful for things
60
+ * like Tabs, such that users may not always select the Tabs component
61
+ * directly but will still be looking for how to add additional tabs
62
+ */
63
+ broadcast?: boolean;
64
+ /**
65
+ * Set this to `true` to show the editor for this input when
66
+ * group locked parents of this component are selected. This is useful
67
+ * to bubble up important inputs for locked groups, like text and images
68
+ */
69
+ bubble?: boolean;
70
+ /**
71
+ * Set this to `true` if you want this component to be translatable
72
+ */
73
+ localized?: boolean;
74
+ /** @hidden */
75
+ options?: {
76
+ [key: string]: any;
77
+ };
78
+ /**
79
+ * For "text" input type, specifying an enum will show a dropdown of options instead
80
+ */
81
+ enum?: string[] | {
82
+ label: string;
83
+ value: any;
84
+ helperText?: string;
85
+ }[];
86
+ /** Regex field validation for all string types (text, longText, html, url, etc) */
87
+ regex?: {
88
+ /** pattern to test, like "^\/[a-z]$" */
89
+ pattern: string;
90
+ /** flags for the RegExp constructor, e.g. "gi" */
91
+ options?: string;
92
+ /**
93
+ * Friendly message to display to end-users if the regex fails, e.g.
94
+ * "You must use a relative url starting with '/...' "
95
+ */
96
+ message: string;
97
+ };
98
+ /**
99
+ * Set this to `true` to put this under the "show more" section of
100
+ * the options editor. Useful for things that are more advanced
101
+ * or more rarely used and don't need to be too prominent
102
+ */
103
+ advanced?: boolean;
104
+ /** @hidden */
105
+ /** @hidden */
106
+ code?: boolean;
107
+ /** @hidden */
108
+ richText?: boolean;
109
+ /** @hidden */
110
+ showIf?: ((options: Map<string, any>) => boolean) | string;
111
+ /** @hidden */
112
+ copyOnAdd?: boolean;
113
+ /**
114
+ * Use optionally with inputs of type `reference`. Restricts the content entry picker to a specific model by name.
115
+ */
116
+ model?: string;
117
+ valueType?: {
118
+ type?: string;
119
+ };
120
+ onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
121
+ }
@@ -1 +1 @@
1
- .button-2fnk003dqad[data-v-65a02987]{all:unset}.div-t9spj7joih[data-v-2bb878ea]{display:flex;line-height:normal}.div-t9spj7joih-2[data-v-2bb878ea]{display:flex;flex-direction:column;align-items:stretch}.img-1pl23ac79ld[data-v-b5206874]{opacity:1;transition:opacity .2s ease-in-out}.div-1pl23ac79ld[data-v-b5206874]{width:100%;pointer-events:none;font-size:0}.div-1pl23ac79ld-2[data-v-b5206874]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.div-21azgz5avex[data-v-57df98d3]{display:flex;flex-direction:column;align-items:stretch}
1
+ .button-2fnk003dqad[data-v-a8305dd0]{all:unset}.div-t9spj7joih[data-v-2bb878ea]{display:flex;line-height:normal}.div-t9spj7joih-2[data-v-2bb878ea]{display:flex;flex-direction:column;align-items:stretch}.img-1pl23ac79ld[data-v-b5206874]{opacity:1;transition:opacity .2s ease-in-out}.div-1pl23ac79ld[data-v-b5206874]{width:100%;pointer-events:none;font-size:0}.div-1pl23ac79ld-2[data-v-b5206874]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.div-21azgz5avex[data-v-57df98d3]{display:flex;flex-direction:column;align-items:stretch}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),s=require("./index.501ef5e2.cjs"),l=require("./css.4fc86c7e.cjs"),y=()=>Promise.resolve().then(()=>require("./render-inlined-styles.4e769566.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}),k={name:"block-styles",components:{RenderInlinedStyles:c.defineAsyncComponent(y)},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{useBlock(){return l.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return s.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:s.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var d;const e=this.useBlock.responsiveStyles,o=this.context.content,i=s.getSizesForBreakpoints(((d=o==null?void 0:o.meta)==null?void 0:d.breakpoints)||{}),a=e==null?void 0:e.large,r=e==null?void 0:e.medium,t=e==null?void 0:e.small,n=this.useBlock.id;if(!n)return"";const u=a?l.createCssClass({className:n,styles:a}):"",m=r?l.createCssClass({className:n,styles:r,mediaQuery:s.getMaxWidthQueryForSize("medium",i)}):"",h=t?l.createCssClass({className:n,styles:t,mediaQuery:s.getMaxWidthQueryForSize("small",i)}):"";return[u,m,h].join(" ")}}};function p(e,o,i,a,r,t){const n=c.resolveComponent("render-inlined-styles");return r.TARGET!=="reactNative"&&t.css&&t.canShowBlock?(c.openBlock(),c.createBlock(n,{key:0,styles:t.css},null,8,["styles"])):c.createCommentVNode("",!0)}const S=s._export_sfc(k,[["render",p]]);exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),s=require("./index.cca81180.cjs"),l=require("./css.3241302b.cjs"),y=()=>Promise.resolve().then(()=>require("./render-inlined-styles.b55b6667.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}),k={name:"block-styles",components:{RenderInlinedStyles:c.defineAsyncComponent(y)},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{useBlock(){return l.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return s.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:s.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var d;const e=this.useBlock.responsiveStyles,o=this.context.content,i=s.getSizesForBreakpoints(((d=o==null?void 0:o.meta)==null?void 0:d.breakpoints)||{}),a=e==null?void 0:e.large,r=e==null?void 0:e.medium,t=e==null?void 0:e.small,n=this.useBlock.id;if(!n)return"";const u=a?l.createCssClass({className:n,styles:a}):"",m=r?l.createCssClass({className:n,styles:r,mediaQuery:s.getMaxWidthQueryForSize("medium",i)}):"",h=t?l.createCssClass({className:n,styles:t,mediaQuery:s.getMaxWidthQueryForSize("small",i)}):"";return[u,m,h].join(" ")}}};function p(e,o,i,a,r,t){const n=c.resolveComponent("render-inlined-styles");return r.TARGET!=="reactNative"&&t.css&&t.canShowBlock?(c.openBlock(),c.createBlock(n,{key:0,styles:t.css},null,8,["styles"])):c.createCommentVNode("",!0)}const S=s._export_sfc(k,[["render",p]]);exports.default=S;
@@ -1,7 +1,7 @@
1
1
  import { defineAsyncComponent as p, resolveComponent as k, openBlock as y, createBlock as B, createCommentVNode as S } from "vue";
2
- import { T as f, c as a, g as _, a as d, _ as g } from "./index.b87b71f2.js";
3
- import { g as x, c as l } from "./css.a2956fb2.js";
4
- const C = () => import("./render-inlined-styles.1e4cf51b.js").then((e) => e.default).catch((e) => {
2
+ import { T as f, c as a, g as _, a as d, _ as g } from "./index.45ab85e5.js";
3
+ import { g as x, c as l } from "./css.81a21c5a.js";
4
+ const C = () => import("./render-inlined-styles.952d2fff.js").then((e) => e.default).catch((e) => {
5
5
  throw console.error(
6
6
  "Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
7
7
  e
@@ -0,0 +1,6 @@
1
+ "use strict";const i=require("./index.cca81180.cjs"),l=(e,t,r)=>{if(Object(e)!==e)return e;const s=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return s.slice(0,-1).reduce((n,c,o)=>Object(n[c])===n[c]?n[c]:n[c]=Math.abs(Number(s[o+1]))>>0===+s[o+1]?[]:{},e)[s[s.length-1]]=r,e};const d=({block:e,context:t,state:r})=>{if(!e.bindings)return e;const s=i.fastClone(e),n={...s,properties:{...s.properties},actions:{...s.actions}};for(const c in e.bindings){const o=e.bindings[c],u=i.evaluate({code:o,state:r,context:t});l(n,c,u)}return n};function f({block:e,context:t,shouldEvaluateBindings:r,state:s}){const n=e;return r?d({block:n,state:s,context:t}):n}const p=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),a=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${p(r)}: ${s};`}).filter(i.checkIsDefined),g=e=>a(e).join(`
2
+ `),C=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
3
+ ${g(r)}
4
+ }`;return e?`${e} {
5
+ ${s}
6
+ }`:s};exports.convertStyleMapToCSSArray=a;exports.createCssClass=C;exports.getProcessedBlock=f;
@@ -1,4 +1,4 @@
1
- import { f as a, e as u, c as f } from "./index.af260d16.js";
1
+ import { f as a, e as u, c as f } from "./index.45ab85e5.js";
2
2
  const l = (e, t, r) => {
3
3
  if (Object(e) !== e)
4
4
  return e;