@builder.io/sdk-vue 0.1.11 → 0.1.12

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 (53) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.a206dd50.js → block-styles.1fddeaa3.js} +3 -3
  3. package/packages/_vue2/dist/{block-styles.3b3ffdbf.cjs → block-styles.d2bf860b.cjs} +1 -1
  4. package/packages/{_vue3/dist/get-processed-block.a59a881a.cjs → _vue2/dist/get-processed-block.a5da75d9.cjs} +1 -1
  5. package/packages/{_vue3/dist/get-processed-block.a35e7862.js → _vue2/dist/get-processed-block.b381a0f8.js} +1 -1
  6. package/packages/_vue2/dist/{index.e8dd60dc.js → index.02b9d9df.js} +214 -188
  7. package/packages/_vue2/dist/index.9cf67370.cjs +30 -0
  8. package/packages/_vue2/dist/{render-block.fd86fb8a.js → render-block.9b751cde.js} +5 -5
  9. package/packages/_vue2/dist/{render-block.065c34a7.cjs → render-block.b35b22c6.cjs} +2 -2
  10. package/packages/_vue2/dist/{render-component.f953c827.js → render-component.f245018a.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.933ccff1.cjs → render-component.ffb3d2c6.cjs} +1 -1
  12. package/packages/_vue2/dist/{render-inlined-styles.fee45ae3.cjs → render-inlined-styles.25f2e4db.cjs} +1 -1
  13. package/packages/_vue2/dist/{render-inlined-styles.9195825e.js → render-inlined-styles.7a493822.js} +1 -1
  14. package/packages/_vue2/dist/{render-repeated-block.7f32ee89.cjs → render-repeated-block.870ca664.cjs} +1 -1
  15. package/packages/_vue2/dist/{render-repeated-block.9721be56.js → render-repeated-block.da052a0e.js} +2 -2
  16. package/packages/_vue2/dist/{render-styles.7f8fcf1c.cjs → render-styles.3f363471.cjs} +2 -2
  17. package/packages/_vue2/dist/{render-styles.c4b6de30.js → render-styles.a04e3469.js} +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/symbol/symbol.vue.d.ts +11 -5
  21. package/packages/_vue2/dist/src/components/render-content/render-content.types.d.ts +2 -0
  22. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +6 -0
  23. package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -0
  24. package/packages/_vue2/dist/src/context/types.d.ts +2 -0
  25. package/packages/_vue2/dist/src/functions/get-content/types.d.ts +6 -0
  26. package/packages/_vue2/dist/src/types/api-version.d.ts +1 -0
  27. package/packages/_vue3/dist/{block-styles.f4b172a6.cjs → block-styles.031c9667.cjs} +1 -1
  28. package/packages/_vue3/dist/{block-styles.dbf81cfb.js → block-styles.aabb6710.js} +3 -3
  29. package/packages/{_vue2/dist/get-processed-block.c3bfda4f.cjs → _vue3/dist/get-processed-block.2a2ed55d.cjs} +1 -1
  30. package/packages/{_vue2/dist/get-processed-block.34a63cf8.js → _vue3/dist/get-processed-block.bbef5e53.js} +1 -1
  31. package/packages/_vue3/dist/{index.2b8fbb3b.cjs → index.07006be4.cjs} +10 -10
  32. package/packages/_vue3/dist/{index.0f0b2b49.js → index.10a2a72a.js} +251 -224
  33. package/packages/_vue3/dist/{render-block.a748ee8b.cjs → render-block.6fa7a4e6.cjs} +2 -2
  34. package/packages/_vue3/dist/{render-block.e3ebf63d.js → render-block.ec594132.js} +5 -5
  35. package/packages/_vue3/dist/{render-component.db71626f.js → render-component.009b30ef.js} +3 -3
  36. package/packages/_vue3/dist/{render-component.3639085a.cjs → render-component.65256ccd.cjs} +1 -1
  37. package/packages/_vue3/dist/{render-inlined-styles.db67e9d8.js → render-inlined-styles.b27ba505.js} +1 -1
  38. package/packages/_vue3/dist/{render-inlined-styles.205733ee.cjs → render-inlined-styles.fd94a00d.cjs} +1 -1
  39. package/packages/_vue3/dist/{render-repeated-block.6086220a.cjs → render-repeated-block.aeaae10c.cjs} +1 -1
  40. package/packages/_vue3/dist/{render-repeated-block.17a00da9.js → render-repeated-block.e6298c37.js} +2 -2
  41. package/packages/_vue3/dist/{render-styles.6fa7962a.js → render-styles.7efeec10.js} +2 -2
  42. package/packages/_vue3/dist/{render-styles.0d3e3a50.cjs → render-styles.a17481e5.cjs} +2 -2
  43. package/packages/_vue3/dist/sdk.cjs +1 -1
  44. package/packages/_vue3/dist/sdk.js +1 -1
  45. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +11 -5
  46. package/packages/_vue3/dist/src/components/render-content/render-content.types.d.ts +2 -0
  47. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +6 -0
  48. package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -0
  49. package/packages/_vue3/dist/src/context/types.d.ts +2 -0
  50. package/packages/_vue3/dist/src/functions/get-content/types.d.ts +6 -0
  51. package/packages/_vue3/dist/src/types/api-version.d.ts +1 -0
  52. package/packages/_vue3/dist/style.css +1 -1
  53. package/packages/_vue2/dist/index.ffa2cf17.cjs +0 -30
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "workspaces": [
5
5
  "packages/*"
6
6
  ],
7
- "version": "0.1.11",
7
+ "version": "0.1.12",
8
8
  "main": "./packages/_vue2/dist/sdk.js",
9
9
  "module": "./packages/_vue2/dist/sdk.js",
10
10
  "type": "module",
@@ -1,6 +1,6 @@
1
- import { T as k, c as i, g as p, a as o, b as u, n as y } from "./index.e8dd60dc.js";
2
- import { g as _ } from "./get-processed-block.34a63cf8.js";
3
- const S = () => import("./render-inlined-styles.9195825e.js").then((e) => e.default).catch((e) => {
1
+ import { T as k, c as i, g as p, a as o, b as u, n as y } from "./index.02b9d9df.js";
2
+ import { g as _ } from "./get-processed-block.b381a0f8.js";
3
+ const S = () => import("./render-inlined-styles.7a493822.js").then((e) => e.default).catch((e) => {
4
4
  throw console.error(
5
5
  "Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
6
6
  e
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.ffa2cf17.cjs"),m=require("./get-processed-block.c3bfda4f.cjs"),h=()=>Promise.resolve().then(()=>require("./render-inlined-styles.fee45ae3.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:h},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{useBlock(){return m.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return t.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:t.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var i;const e=this.useBlock.responsiveStyles,s=this.context.content,n=t.getSizesForBreakpoints(((i=s==null?void 0:s.meta)==null?void 0:i.breakpoints)||{}),c=e==null?void 0:e.large,l=e==null?void 0:e.medium,r=e==null?void 0:e.small,o=this.useBlock.id,a=c?t.createCssClass({className:o,styles:c}):"",d=l?t.createCssClass({className:o,styles:l,mediaQuery:t.getMaxWidthQueryForSize("medium",n)}):"",u=r?t.createCssClass({className:o,styles:r,mediaQuery:t.getMaxWidthQueryForSize("small",n)}):"";return[a,d,u].join(" ")}}};var y=function(){var s=this,n=s._self._c;return s.TARGET!=="reactNative"&&s.css&&s.canShowBlock?n("render-inlined-styles",{attrs:{styles:s.css}}):s._e()},f=[],p=t.normalizeComponent(k,y,f,!1,null,null,null,null);const S=p.exports;exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.9cf67370.cjs"),m=require("./get-processed-block.a5da75d9.cjs"),h=()=>Promise.resolve().then(()=>require("./render-inlined-styles.25f2e4db.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:h},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{useBlock(){return m.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return t.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:t.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var i;const e=this.useBlock.responsiveStyles,s=this.context.content,n=t.getSizesForBreakpoints(((i=s==null?void 0:s.meta)==null?void 0:i.breakpoints)||{}),c=e==null?void 0:e.large,l=e==null?void 0:e.medium,r=e==null?void 0:e.small,o=this.useBlock.id,a=c?t.createCssClass({className:o,styles:c}):"",d=l?t.createCssClass({className:o,styles:l,mediaQuery:t.getMaxWidthQueryForSize("medium",n)}):"",u=r?t.createCssClass({className:o,styles:r,mediaQuery:t.getMaxWidthQueryForSize("small",n)}):"";return[a,d,u].join(" ")}}};var y=function(){var s=this,n=s._self._c;return s.TARGET!=="reactNative"&&s.css&&s.canShowBlock?n("render-inlined-styles",{attrs:{styles:s.css}}):s._e()},p=[],S=t.normalizeComponent(k,y,p,!1,null,null,null,null);const f=S.exports;exports.default=f;
@@ -1 +1 @@
1
- "use strict";const o=require("./index.2b8fbb3b.cjs"),d=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const a=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n=o.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const s in e.bindings){const c=e.bindings[s],u=o.evaluate({code:c,state:i,context:r});d(t,s,u)}return t};function f({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?a({block:t,state:n,context:r}):t}exports.getProcessedBlock=f;
1
+ "use strict";const o=require("./index.9cf67370.cjs"),d=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const a=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n=o.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const s in e.bindings){const c=e.bindings[s],u=o.evaluate({code:c,state:i,context:r});d(t,s,u)}return t};function f({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?a({block:t,state:n,context:r}):t}exports.getProcessedBlock=f;
@@ -1,4 +1,4 @@
1
- import { f as a, e as u } from "./index.0f0b2b49.js";
1
+ import { f as a, e as u } from "./index.02b9d9df.js";
2
2
  const f = (n, r, i) => {
3
3
  if (Object(n) !== n)
4
4
  return n;