@builder.io/sdk-vue 2.0.0 → 2.0.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 (84) hide show
  1. package/lib/browser/block-styles-Csi42CXj.cjs +1 -0
  2. package/lib/browser/{block-styles-cVSrkWog.js → block-styles-svOVzDaV.js} +14 -13
  3. package/lib/browser/{block-wrapper-WsC3tXV8.cjs → block-wrapper-GE-RFbYp.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-maIbj8Gi.js → block-wrapper-KGQI5yrU.js} +3 -3
  5. package/lib/browser/{component-ref-da6lIO9c.cjs → component-ref-X2UZCaau.cjs} +1 -1
  6. package/lib/browser/{component-ref-1N_Kijok.js → component-ref-k5NF2o_L.js} +2 -2
  7. package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
  8. package/lib/browser/components/content/components/styles.vue.d.ts +3 -0
  9. package/lib/browser/components/content/content.vue.d.ts +4 -0
  10. package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
  11. package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
  12. package/lib/browser/components/inlined-script.vue.d.ts +3 -0
  13. package/lib/browser/components/inlined-styles.vue.d.ts +3 -0
  14. package/lib/browser/constants/sdk-version.d.ts +1 -1
  15. package/lib/browser/context/builder.context.d.ts +1 -0
  16. package/lib/browser/context/types.d.ts +1 -0
  17. package/lib/browser/{get-block-properties-AuDiFohY.js → get-block-properties-1Sn1T_z8.js} +1 -1
  18. package/lib/browser/{get-block-properties-0QNsXkZI.cjs → get-block-properties-lkKJCs4_.cjs} +1 -1
  19. package/lib/browser/index-5WrmkFk4.cjs +166 -0
  20. package/lib/browser/{index-pDvo-fub.js → index-zc0i09p9.js} +47 -30
  21. package/lib/browser/index.cjs +1 -1
  22. package/lib/browser/index.mjs +1 -1
  23. package/lib/browser/{repeated-block-nP-Etgd7.js → repeated-block-BxE-FBVv.js} +2 -2
  24. package/lib/browser/{repeated-block-Z2UnXIU-.cjs → repeated-block-U8EfEnWl.cjs} +1 -1
  25. package/lib/browser/style.css +1 -1
  26. package/lib/browser/types/builder-props.d.ts +3 -0
  27. package/lib/edge/{block-styles--vY4nPqp.js → block-styles-F04q1oh7.js} +14 -13
  28. package/lib/edge/block-styles-fRc_JL86.cjs +1 -0
  29. package/lib/edge/{block-wrapper-JdVK1HVZ.js → block-wrapper-8j2OMXf0.js} +3 -3
  30. package/lib/{node/block-wrapper-TveOxTSb.cjs → edge/block-wrapper-ai3_EF77.cjs} +1 -1
  31. package/lib/{node/component-ref-N8Z1onkW.cjs → edge/component-ref-adfadHtQ.cjs} +1 -1
  32. package/lib/{node/component-ref-KnwCIp0k.js → edge/component-ref-okii_K_0.js} +2 -2
  33. package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
  34. package/lib/edge/components/content/components/styles.vue.d.ts +3 -0
  35. package/lib/edge/components/content/content.vue.d.ts +4 -0
  36. package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
  37. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
  38. package/lib/edge/components/inlined-script.vue.d.ts +3 -0
  39. package/lib/edge/components/inlined-styles.vue.d.ts +3 -0
  40. package/lib/edge/constants/sdk-version.d.ts +1 -1
  41. package/lib/edge/context/builder.context.d.ts +1 -0
  42. package/lib/edge/context/types.d.ts +1 -0
  43. package/lib/edge/{get-block-properties-dww-G4lx.cjs → get-block-properties-T-X8E9sU.cjs} +1 -1
  44. package/lib/edge/{get-block-properties-hYo7UjjZ.js → get-block-properties-aLqPRHin.js} +1 -1
  45. package/lib/edge/{index-OtE_7PIE.js → index-Hw76nggP.js} +165 -148
  46. package/lib/edge/{index-lFidbDeW.cjs → index-kEvRBdly.cjs} +7 -7
  47. package/lib/edge/index.cjs +1 -1
  48. package/lib/edge/index.mjs +1 -1
  49. package/lib/edge/{repeated-block-vPgWRa-A.js → repeated-block-RuwJfamt.js} +2 -2
  50. package/lib/edge/{repeated-block-IMXruThl.cjs → repeated-block-iGJv6g_d.cjs} +1 -1
  51. package/lib/edge/style.css +1 -1
  52. package/lib/edge/types/builder-props.d.ts +3 -0
  53. package/lib/node/{block-styles-JjLwXWt4.js → block-styles-akqgR8wB.js} +14 -13
  54. package/lib/node/block-styles-fnIQFp0q.cjs +1 -0
  55. package/lib/{edge/block-wrapper-szOQNDWW.cjs → node/block-wrapper-x4ztktEw.cjs} +1 -1
  56. package/lib/node/{block-wrapper--XSKGCL-.js → block-wrapper-xIeM4taN.js} +3 -3
  57. package/lib/{edge/component-ref-Ffo8HUWI.js → node/component-ref-SSAGqUU1.js} +2 -2
  58. package/lib/{edge/component-ref-7HkRGS_l.cjs → node/component-ref-Xsv_XmLR.cjs} +1 -1
  59. package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
  60. package/lib/node/components/content/components/styles.vue.d.ts +3 -0
  61. package/lib/node/components/content/content.vue.d.ts +4 -0
  62. package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
  63. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
  64. package/lib/node/components/inlined-script.vue.d.ts +3 -0
  65. package/lib/node/components/inlined-styles.vue.d.ts +3 -0
  66. package/lib/node/constants/sdk-version.d.ts +1 -1
  67. package/lib/node/context/builder.context.d.ts +1 -0
  68. package/lib/node/context/types.d.ts +1 -0
  69. package/lib/node/{get-block-properties-Xr5L4Okr.js → get-block-properties-4897A0cX.js} +1 -1
  70. package/lib/node/{get-block-properties-inIHDjNu.cjs → get-block-properties-gYAacxBD.cjs} +1 -1
  71. package/lib/node/{index-EVLuO1iu.js → index-ZwTY1dOi.js} +47 -30
  72. package/lib/node/index-zlCXfe4Y.cjs +213 -0
  73. package/lib/node/index.cjs +1 -1
  74. package/lib/node/index.mjs +1 -1
  75. package/lib/node/{repeated-block-gAw64HdW.js → repeated-block-hqi2-jn4.js} +2 -2
  76. package/lib/node/{repeated-block-Co8byFSc.cjs → repeated-block-kVVd7Ki5.cjs} +1 -1
  77. package/lib/node/style.css +1 -1
  78. package/lib/node/types/builder-props.d.ts +3 -0
  79. package/package.json +1 -1
  80. package/lib/browser/block-styles-fmMk_gc8.cjs +0 -1
  81. package/lib/browser/index-7PcQ3One.cjs +0 -166
  82. package/lib/edge/block-styles-UnZvcuhz.cjs +0 -1
  83. package/lib/node/block-styles-houtGRpT.cjs +0 -1
  84. package/lib/node/index-QFbjU7Zd.cjs +0 -213
@@ -0,0 +1 @@
1
+ var b=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),t=require("./index-5WrmkFk4.cjs"),f=c.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{canShowBlock(){const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return t.checkIsDefined(e.hide)?!e.hide:t.checkIsDefined(e.show)?e.show:!0},css(){var m,h,y;const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=e.responsiveStyles,a=this.context.content,r=t.getSizesForBreakpoints(((m=a==null?void 0:a.meta)==null?void 0:m.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=e.id;if(!n)return"";const p=i?t.createCssClass({className:n,styles:i}):"",k=d?t.createCssClass({className:n,styles:d,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",C=l?t.createCssClass({className:n,styles:l,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"",o=e.animations&&e.animations.find(u=>u.trigger==="hover");let S="";if(o){const u=((y=(h=o.steps)==null?void 0:h[1])==null?void 0:y.styles)||{};S=t.createCssClass({className:`${n}:hover`,styles:{...u,transition:`all ${o.duration}s ${t.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[p,k,C,S].join(" ")}}});function g(e,s,a,r,i,d){const l=c.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(c.openBlock(),c.createBlock(l,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):c.createCommentVNode("",!0)}const x=t._export_sfc(f,[["render",g]]);exports.default=x;
@@ -1,9 +1,9 @@
1
1
  import "./style.css";
2
- import { defineComponent as g, resolveComponent as B, openBlock as v, createBlock as C, createCommentVNode as _ } from "vue";
3
- import { _ as $, T, g as p, c as y, a as w, b as l, d as k, e as E, f as I } from "./index-pDvo-fub.js";
2
+ import { defineComponent as g, resolveComponent as B, openBlock as v, createBlock as C, createCommentVNode as $ } from "vue";
3
+ import { _, T, g as p, c as y, a as w, b as c, d as k, e as E, f as I } from "./index-zc0i09p9.js";
4
4
  const N = g({
5
5
  name: "block-styles",
6
- components: { InlinedStyles: $ },
6
+ components: { InlinedStyles: _ },
7
7
  props: ["block", "context"],
8
8
  data() {
9
9
  return { TARGET: T };
@@ -29,33 +29,33 @@ const N = g({
29
29
  rootSetState: this.context.rootSetState,
30
30
  context: this.context.context,
31
31
  shouldEvaluateBindings: !0
32
- }), e = t.responsiveStyles, n = this.context.content, c = w(
32
+ }), e = t.responsiveStyles, n = this.context.content, l = w(
33
33
  ((S = n == null ? void 0 : n.meta) == null ? void 0 : S.breakpoints) || {}
34
34
  ), r = e == null ? void 0 : e.large, i = e == null ? void 0 : e.medium, a = e == null ? void 0 : e.small, o = t.id;
35
35
  if (!o)
36
36
  return "";
37
- const f = r ? l({
37
+ const f = r ? c({
38
38
  className: o,
39
39
  styles: r
40
- }) : "", x = i ? l({
40
+ }) : "", x = i ? c({
41
41
  className: o,
42
42
  styles: i,
43
43
  mediaQuery: k(
44
44
  "medium",
45
- c
45
+ l
46
46
  )
47
- }) : "", b = a ? l({
47
+ }) : "", b = a ? c({
48
48
  className: o,
49
49
  styles: a,
50
50
  mediaQuery: k(
51
51
  "small",
52
- c
52
+ l
53
53
  )
54
54
  }) : "", s = t.animations && t.animations.find((d) => d.trigger === "hover");
55
55
  let m = "";
56
56
  if (s) {
57
57
  const d = ((h = (u = s.steps) == null ? void 0 : u[1]) == null ? void 0 : h.styles) || {};
58
- m = l({
58
+ m = c({
59
59
  className: `${o}:hover`,
60
60
  styles: {
61
61
  ...d,
@@ -75,13 +75,14 @@ const N = g({
75
75
  }
76
76
  }
77
77
  });
78
- function z(t, e, n, c, r, i) {
78
+ function z(t, e, n, l, r, i) {
79
79
  const a = B("InlinedStyles");
80
80
  return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (v(), C(a, {
81
81
  key: 0,
82
82
  id: "builderio-block",
83
- styles: t.css
84
- }, null, 8, ["styles"])) : _("", !0);
83
+ styles: t.css,
84
+ nonce: t.context.nonce
85
+ }, null, 8, ["styles", "nonce"])) : $("", !0);
85
86
  }
86
87
  const F = /* @__PURE__ */ I(N, [["render", z]]);
87
88
  export {
@@ -1 +1 @@
1
- var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-0QNsXkZI.cjs"),n=require("./index-7PcQ3One.cjs"),c=()=>Promise.resolve().then(()=>require("./index-7PcQ3One.cjs")).then(e=>e.dynamicRenderer).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,m,u){const r=t.resolveComponent("DynamicRenderer");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]]);exports.default=s;
1
+ var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-lkKJCs4_.cjs"),n=require("./index-5WrmkFk4.cjs"),c=()=>Promise.resolve().then(()=>require("./index-5WrmkFk4.cjs")).then(e=>e.dynamicRenderer).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,m,u){const r=t.resolveComponent("DynamicRenderer");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]]);exports.default=s;
@@ -1,8 +1,8 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
3
- import { g as s, a as l } from "./get-block-properties-AuDiFohY.js";
4
- import { f as m } from "./index-pDvo-fub.js";
5
- const d = () => import("./index-pDvo-fub.js").then((e) => e.G).then((e) => e.default).catch((e) => {
3
+ import { g as s, a as l } from "./get-block-properties-1Sn1T_z8.js";
4
+ import { f as m } from "./index-zc0i09p9.js";
5
+ const d = () => import("./index-zc0i09p9.js").then((e) => e.G).then((e) => e.default).catch((e) => {
6
6
  throw console.error(
7
7
  "Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
8
8
  e
@@ -1 +1 @@
1
- var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-7PcQ3One.cjs"),a=require("./get-block-properties-0QNsXkZI.cjs"),u=t.defineComponent({name:"interactive-element",props:["includeBlockProps","block","context","wrapperProps","Wrapper"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function d(e,o,p,s,n,i){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=c._export_sfc(u,[["render",d]]),f=({componentOptions:e,builderBlock:o,context:p,componentRef:s,includeBlockProps:n,isInteractive:i,contextValue:l})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:o,context:l})}:{}};return i?{Wrapper:s,block:o,context:p,wrapperProps:e,includeBlockProps:n}:r},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:f}}});function b(e,o,p,s,n,i){const l=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(r,k)=>(t.openBlock(),t.createBlock(l,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const C=c._export_sfc(B,[["render",b]]);exports.default=C;
1
+ var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-5WrmkFk4.cjs"),a=require("./get-block-properties-lkKJCs4_.cjs"),u=t.defineComponent({name:"interactive-element",props:["includeBlockProps","block","context","wrapperProps","Wrapper"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function d(e,o,p,s,n,i){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=c._export_sfc(u,[["render",d]]),f=({componentOptions:e,builderBlock:o,context:p,componentRef:s,includeBlockProps:n,isInteractive:i,contextValue:l})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:o,context:l})}:{}};return i?{Wrapper:s,block:o,context:p,wrapperProps:e,includeBlockProps:n}:r},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:f}}});function b(e,o,p,s,n,i){const l=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(r,k)=>(t.openBlock(),t.createBlock(l,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const C=c._export_sfc(B,[["render",b]]);exports.default=C;
@@ -1,7 +1,7 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as m, openBlock as r, createBlock as a, resolveDynamicComponent as k, mergeProps as u, withCtx as d, renderSlot as h, resolveComponent as B, normalizeProps as P, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as S } from "vue";
3
- import { f, B as W, w } from "./index-pDvo-fub.js";
4
- import { a as b, g as R } from "./get-block-properties-AuDiFohY.js";
3
+ import { f, B as W, w } from "./index-zc0i09p9.js";
4
+ import { a as b, g as R } from "./get-block-properties-1Sn1T_z8.js";
5
5
  const x = m({
6
6
  name: "interactive-element",
7
7
  props: ["includeBlockProps", "block", "context", "wrapperProps", "Wrapper"],
@@ -32,6 +32,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
32
32
  inheritedStyles: {};
33
33
  BlocksWrapper: string;
34
34
  BlocksWrapperProps: {};
35
+ nonce: string;
35
36
  };
36
37
  key: symbol;
37
38
  };
@@ -1,4 +1,5 @@
1
1
  declare const _default: import("vue").DefineComponent<Readonly<{
2
+ nonce?: any;
2
3
  contentId?: any;
3
4
  cssCode?: any;
4
5
  customFonts?: any;
@@ -6,11 +7,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
6
7
  }>, unknown, {
7
8
  injectedStyles: string;
8
9
  }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
10
+ nonce?: any;
9
11
  contentId?: any;
10
12
  cssCode?: any;
11
13
  customFonts?: any;
12
14
  isNestedRender?: any;
13
15
  }>>>, {
16
+ readonly nonce?: any;
14
17
  readonly contentId?: any;
15
18
  readonly cssCode?: any;
16
19
  readonly customFonts?: any;
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
7
7
  content?: any;
8
8
  apiKey?: any;
9
9
  apiVersion?: any;
10
+ nonce?: any;
10
11
  canTrack?: any;
11
12
  linkComponent?: any;
12
13
  locale?: any;
@@ -39,6 +40,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
39
40
  inheritedStyles: {};
40
41
  BlocksWrapper: any;
41
42
  BlocksWrapperProps: any;
43
+ nonce: any;
42
44
  };
43
45
  TARGET: import("../../types/targets").Target;
44
46
  }, {}, {
@@ -49,6 +51,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
49
51
  content?: any;
50
52
  apiKey?: any;
51
53
  apiVersion?: any;
54
+ nonce?: any;
52
55
  canTrack?: any;
53
56
  linkComponent?: any;
54
57
  locale?: any;
@@ -69,6 +72,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
69
72
  readonly content?: any;
70
73
  readonly apiKey?: any;
71
74
  readonly apiVersion?: any;
75
+ readonly nonce?: any;
72
76
  readonly canTrack?: any;
73
77
  readonly linkComponent?: any;
74
78
  readonly locale?: any;
@@ -68,4 +68,8 @@ export interface ContentVariantsPrps {
68
68
  * List of hosts to allow editing content from.
69
69
  */
70
70
  trustedHosts?: string[];
71
+ /**
72
+ * A CSP nonce to use for the SDK's inlined `<script>` and `<style>` tags.
73
+ */
74
+ nonce?: string;
71
75
  }
@@ -4,6 +4,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
4
4
  content?: any;
5
5
  apiKey?: any;
6
6
  apiVersion?: any;
7
+ nonce?: any;
7
8
  canTrack?: any;
8
9
  linkComponent?: any;
9
10
  locale?: any;
@@ -54,6 +55,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
54
55
  content?: any;
55
56
  apiKey?: any;
56
57
  apiVersion?: any;
58
+ nonce?: any;
57
59
  canTrack?: any;
58
60
  linkComponent?: any;
59
61
  locale?: any;
@@ -72,6 +74,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
72
74
  readonly content?: any;
73
75
  readonly apiKey?: any;
74
76
  readonly apiVersion?: any;
77
+ readonly nonce?: any;
75
78
  readonly canTrack?: any;
76
79
  readonly linkComponent?: any;
77
80
  readonly locale?: any;
@@ -1,10 +1,13 @@
1
1
  declare const _default: import("vue").DefineComponent<Readonly<{
2
+ nonce?: any;
2
3
  id?: any;
3
4
  scriptStr?: any;
4
5
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
6
+ nonce?: any;
5
7
  id?: any;
6
8
  scriptStr?: any;
7
9
  }>>>, {
10
+ readonly nonce?: any;
8
11
  readonly id?: any;
9
12
  readonly scriptStr?: any;
10
13
  }, {}>;
@@ -1,10 +1,13 @@
1
1
  declare const _default: import("vue").DefineComponent<Readonly<{
2
+ nonce?: any;
2
3
  styles?: any;
3
4
  id?: any;
4
5
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
6
+ nonce?: any;
5
7
  styles?: any;
6
8
  id?: any;
7
9
  }>>>, {
10
+ readonly nonce?: any;
8
11
  readonly styles?: any;
9
12
  readonly id?: any;
10
13
  }, {}>;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.0";
1
+ export declare const SDK_VERSION = "2.0.1";
@@ -11,6 +11,7 @@ declare const _default: {
11
11
  inheritedStyles: {};
12
12
  BlocksWrapper: string;
13
13
  BlocksWrapperProps: {};
14
+ nonce: string;
14
15
  };
15
16
  key: symbol;
16
17
  };
@@ -33,5 +33,6 @@ export interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'Block
33
33
  apiVersion: ApiVersion | undefined;
34
34
  componentInfos: Dictionary<ComponentInfo>;
35
35
  inheritedStyles: Record<string, unknown>;
36
+ nonce: string;
36
37
  canTrack?: boolean;
37
38
  }
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { h as s, T as c, i, j as l } from "./index-pDvo-fub.js";
2
+ import { h as s, T as c, i, j as l } from "./index-zc0i09p9.js";
3
3
  const p = (e) => `v-on:${e.toLowerCase()}`, u = (e, t) => (r) => s({
4
4
  code: e,
5
5
  context: t.context,
@@ -1 +1 @@
1
- var d=require("./style.css");const a=require("./index-7PcQ3One.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=f;
1
+ var d=require("./style.css");const a=require("./index-5WrmkFk4.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=f;