@builder.io/sdk-vue 2.0.0 → 2.0.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 (84) hide show
  1. package/lib/browser/block-styles-Mn6wJduZ.cjs +1 -0
  2. package/lib/browser/{block-styles-cVSrkWog.js → block-styles-sZJR1URf.js} +14 -13
  3. package/lib/browser/{block-wrapper-maIbj8Gi.js → block-wrapper-ody6Sxkr.js} +3 -3
  4. package/lib/browser/{block-wrapper-WsC3tXV8.cjs → block-wrapper-qFFX6RFF.cjs} +1 -1
  5. package/lib/browser/{component-ref-da6lIO9c.cjs → component-ref-DSNF4azA.cjs} +1 -1
  6. package/lib/browser/{component-ref-1N_Kijok.js → component-ref-rf4-wS3o.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-O0W_2V2s.js} +1 -1
  18. package/lib/browser/{get-block-properties-0QNsXkZI.cjs → get-block-properties-trq7EGpq.cjs} +1 -1
  19. package/lib/browser/{index-pDvo-fub.js → index---sv1Dmc.js} +67 -50
  20. package/lib/browser/index-5K25vfnv.cjs +166 -0
  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-4hDqPbdf.js} +2 -2
  24. package/lib/browser/{repeated-block-Z2UnXIU-.cjs → repeated-block-LqvC87RV.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-QLPVQ54j.js} +14 -13
  28. package/lib/edge/block-styles-VkVzS7vd.cjs +1 -0
  29. package/lib/{node/block-wrapper-TveOxTSb.cjs → edge/block-wrapper-C3QWzorc.cjs} +1 -1
  30. package/lib/edge/{block-wrapper-JdVK1HVZ.js → block-wrapper-Lrmvcvj2.js} +3 -3
  31. package/lib/{node/component-ref-KnwCIp0k.js → edge/component-ref-BzjW_J7Z.js} +2 -2
  32. package/lib/{node/component-ref-N8Z1onkW.cjs → edge/component-ref-_MrpnWQq.cjs} +1 -1
  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-hYo7UjjZ.js → get-block-properties-YDq-FuAs.js} +1 -1
  44. package/lib/edge/{get-block-properties-dww-G4lx.cjs → get-block-properties-ZdU2gihP.cjs} +1 -1
  45. package/lib/edge/{index-OtE_7PIE.js → index-8mGnZrt9.js} +185 -168
  46. package/lib/edge/{index-lFidbDeW.cjs → index-tYqLns-6.cjs} +18 -18
  47. package/lib/edge/index.cjs +1 -1
  48. package/lib/edge/index.mjs +1 -1
  49. package/lib/edge/{repeated-block-IMXruThl.cjs → repeated-block-IOMTx4Ek.cjs} +1 -1
  50. package/lib/edge/{repeated-block-vPgWRa-A.js → repeated-block-c9Qq8PaK.js} +2 -2
  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-GqJTbD8X.cjs +1 -0
  54. package/lib/node/{block-styles-JjLwXWt4.js → block-styles-Tyg1fV88.js} +14 -13
  55. package/lib/{edge/block-wrapper-szOQNDWW.cjs → node/block-wrapper-0rr8eTCE.cjs} +1 -1
  56. package/lib/node/{block-wrapper--XSKGCL-.js → block-wrapper-iBhEa5rI.js} +3 -3
  57. package/lib/{edge/component-ref-Ffo8HUWI.js → node/component-ref-FN9Rzqu_.js} +2 -2
  58. package/lib/{edge/component-ref-7HkRGS_l.cjs → node/component-ref-j2PWej8h.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-HOAtHaKD.js} +1 -1
  70. package/lib/node/{get-block-properties-inIHDjNu.cjs → get-block-properties-NZJwLalB.cjs} +1 -1
  71. package/lib/node/{index-EVLuO1iu.js → index-AtsvJZco.js} +273 -256
  72. package/lib/node/index-_k1NN43c.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-Co8byFSc.cjs → repeated-block-Smn39W6t.cjs} +1 -1
  76. package/lib/node/{repeated-block-gAw64HdW.js → repeated-block-ztDvgKZz.js} +2 -2
  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-5K25vfnv.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---sv1Dmc.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,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-O0W_2V2s.js";
4
+ import { f as m } from "./index---sv1Dmc.js";
5
+ const d = () => import("./index---sv1Dmc.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 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-trq7EGpq.cjs"),n=require("./index-5K25vfnv.cjs"),c=()=>Promise.resolve().then(()=>require("./index-5K25vfnv.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 +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-5K25vfnv.cjs"),a=require("./get-block-properties-trq7EGpq.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---sv1Dmc.js";
4
+ import { a as b, g as R } from "./get-block-properties-O0W_2V2s.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.2";
@@ -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---sv1Dmc.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-5K25vfnv.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;
@@ -112,7 +112,8 @@ const Ct = /* @__PURE__ */ b(vt, [["render", St]]), wt = Symbol(), ce = {
112
112
  componentInfos: {},
113
113
  inheritedStyles: {},
114
114
  BlocksWrapper: "div",
115
- BlocksWrapperProps: {}
115
+ BlocksWrapperProps: {},
116
+ nonce: ""
116
117
  },
117
118
  key: wt
118
119
  }, Tt = Symbol(), Ae = {
@@ -595,22 +596,22 @@ const Ht = ({
595
596
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
596
597
  e
597
598
  ), e;
598
- }), Qt = () => import("./block-styles-cVSrkWog.js").then((e) => e.default).catch((e) => {
599
+ }), Qt = () => import("./block-styles-sZJR1URf.js").then((e) => e.default).catch((e) => {
599
600
  throw console.error(
600
601
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
601
602
  e
602
603
  ), e;
603
- }), Xt = () => import("./block-wrapper-maIbj8Gi.js").then((e) => e.default).catch((e) => {
604
+ }), Xt = () => import("./block-wrapper-ody6Sxkr.js").then((e) => e.default).catch((e) => {
604
605
  throw console.error(
605
606
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
606
607
  e
607
608
  ), e;
608
- }), Zt = () => import("./component-ref-1N_Kijok.js").then((e) => e.default).catch((e) => {
609
+ }), Zt = () => import("./component-ref-rf4-wS3o.js").then((e) => e.default).catch((e) => {
609
610
  throw console.error(
610
611
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
611
612
  e
612
613
  ), e;
613
- }), _t = () => import("./repeated-block-nP-Etgd7.js").then((e) => e.default).catch((e) => {
614
+ }), _t = () => import("./repeated-block-4hDqPbdf.js").then((e) => e.default).catch((e) => {
614
615
  throw console.error(
615
616
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
616
617
  e
@@ -876,11 +877,12 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
876
877
  render() {
877
878
  return xe("style", {
878
879
  innerHTML: this.styles,
879
- "data-id": this.id
880
+ "data-id": this.id,
881
+ nonce: this.nonce
880
882
  });
881
883
  },
882
884
  name: "inlined-styles",
883
- props: ["styles", "id"]
885
+ props: ["styles", "id", "nonce"]
884
886
  }), Ke = {
885
887
  small: {
886
888
  min: 320,
@@ -1066,8 +1068,9 @@ function hn(e, t, n, o, r, i) {
1066
1068
  e.TARGET !== "reactNative" ? (d(), k(s, {
1067
1069
  key: 0,
1068
1070
  id: "builderio-columns",
1069
- styles: e.columnsStyles()
1070
- }, null, 8, ["styles"])) : v("", !0),
1071
+ styles: e.columnsStyles(),
1072
+ nonce: e.builderContext.nonce
1073
+ }, null, 8, ["styles", "nonce"])) : v("", !0),
1071
1074
  (d(!0), p(I, null, N(e.columns, (h, c) => (d(), k(a, {
1072
1075
  key: c,
1073
1076
  TagName: e.getTagName(h),
@@ -1091,7 +1094,7 @@ function hn(e, t, n, o, r, i) {
1091
1094
  }, 1032, ["TagName", "attributes"]))), 128))
1092
1095
  ], 16);
1093
1096
  }
1094
- const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-5320212d"]]), bn = f({
1097
+ const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-975347d5"]]), bn = f({
1095
1098
  name: "builder-fragment-component",
1096
1099
  props: []
1097
1100
  });
@@ -1156,12 +1159,14 @@ const Sn = f({
1156
1159
  // images, otherwise you can supply this prop manually
1157
1160
  !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
1158
1161
  return this.srcset;
1159
- if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1160
- if (!this.srcset.includes(this.image.split("?")[0]))
1161
- return console.debug("Removed given srcset"), re(t);
1162
- } else if (this.image && !this.srcset)
1162
+ if (!this.noWebp) {
1163
+ if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1164
+ if (!this.srcset.includes(this.image.split("?")[0]))
1165
+ return console.debug("Removed given srcset"), re(t);
1166
+ } else if (this.image && !this.srcset)
1167
+ return re(t);
1163
1168
  return re(t);
1164
- return re(t);
1169
+ }
1165
1170
  },
1166
1171
  webpSrcSet() {
1167
1172
  var e;
@@ -1222,7 +1227,7 @@ function In(e, t, n, o, r, i) {
1222
1227
  ])) : v("", !0)
1223
1228
  ], 64);
1224
1229
  }
1225
- const $n = /* @__PURE__ */ b(Sn, [["render", In], ["__scopeId", "data-v-0d528855"]]), Rn = f({
1230
+ const $n = /* @__PURE__ */ b(Sn, [["render", In], ["__scopeId", "data-v-ce62b8d6"]]), Rn = f({
1226
1231
  name: "builder-section-component",
1227
1232
  props: ["attributes", "maxWidth"],
1228
1233
  data() {
@@ -3593,11 +3598,12 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3593
3598
  render() {
3594
3599
  return xe("script", {
3595
3600
  innerHTML: this.scriptStr,
3596
- "data-id": this.id
3601
+ "data-id": this.id,
3602
+ nonce: this.nonce
3597
3603
  });
3598
3604
  },
3599
3605
  name: "inlined-script",
3600
- props: ["scriptStr", "id"]
3606
+ props: ["scriptStr", "id", "nonce"]
3601
3607
  });
3602
3608
  function Rr() {
3603
3609
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
@@ -3923,7 +3929,7 @@ function lt(e, t) {
3923
3929
  const n = new URL(t.origin), o = n.hostname;
3924
3930
  return (e || Xr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3925
3931
  }
3926
- const Zr = "2.0.0", Be = {};
3932
+ const Zr = "2.0.2", Be = {};
3927
3933
  function _r(e, t) {
3928
3934
  let n = Be[e];
3929
3935
  if (n || (n = Be[e] = []), n.push(t), T()) {
@@ -4451,7 +4457,7 @@ function li(e, t, n, o, r, i) {
4451
4457
  const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = f({
4452
4458
  name: "content-styles",
4453
4459
  components: { InlinedStyles: be },
4454
- props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
4460
+ props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4455
4461
  data() {
4456
4462
  return {
4457
4463
  injectedStyles: `
@@ -4471,8 +4477,9 @@ function ui(e, t, n, o, r, i) {
4471
4477
  const s = g("InlinedStyles");
4472
4478
  return d(), k(s, {
4473
4479
  id: "builderio-content",
4474
- styles: e.injectedStyles
4475
- }, null, 8, ["styles"]);
4480
+ styles: e.injectedStyles,
4481
+ nonce: e.nonce
4482
+ }, null, 8, ["styles", "nonce"]);
4476
4483
  }
4477
4484
  const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4478
4485
  content: e,
@@ -4513,6 +4520,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4513
4520
  props: [
4514
4521
  "content",
4515
4522
  "customComponents",
4523
+ "model",
4516
4524
  "data",
4517
4525
  "locale",
4518
4526
  "context",
@@ -4521,7 +4529,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4521
4529
  "apiVersion",
4522
4530
  "blocksWrapper",
4523
4531
  "blocksWrapperProps",
4524
- "model",
4532
+ "nonce",
4525
4533
  "enrich",
4526
4534
  "showContent",
4527
4535
  "contentWrapper",
@@ -4532,7 +4540,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4532
4540
  "linkComponent"
4533
4541
  ],
4534
4542
  data() {
4535
- var e, t;
4543
+ var e, t, n, o;
4536
4544
  return {
4537
4545
  scriptStr: $r({
4538
4546
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4542,13 +4550,13 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4542
4550
  }),
4543
4551
  registeredComponents: [
4544
4552
  ...we(),
4545
- ...this.customComponents || []
4553
+ ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4546
4554
  ].reduce(
4547
- (n, { component: o, ...r }) => ({
4548
- ...n,
4549
- [r.name]: {
4550
- component: fi(o),
4551
- ...de(r)
4555
+ (r, { component: i, ...s }) => ({
4556
+ ...r,
4557
+ [s.name]: {
4558
+ component: fi(i),
4559
+ ...de(s)
4552
4560
  }
4553
4561
  }),
4554
4562
  {}
@@ -4571,17 +4579,18 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4571
4579
  apiVersion: this.apiVersion,
4572
4580
  componentInfos: [
4573
4581
  ...we(),
4574
- ...this.customComponents || []
4582
+ ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4575
4583
  ].reduce(
4576
- (n, { component: o, ...r }) => ({
4577
- ...n,
4578
- [r.name]: de(r)
4584
+ (r, { component: i, ...s }) => ({
4585
+ ...r,
4586
+ [s.name]: de(s)
4579
4587
  }),
4580
4588
  {}
4581
4589
  ),
4582
4590
  inheritedStyles: {},
4583
4591
  BlocksWrapper: this.blocksWrapper || "div",
4584
- BlocksWrapperProps: this.blocksWrapperProps || {}
4592
+ BlocksWrapperProps: this.blocksWrapperProps || {},
4593
+ nonce: this.nonce || ""
4585
4594
  },
4586
4595
  TARGET: A
4587
4596
  };
@@ -4603,6 +4612,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4603
4612
  function gi(e, t, n, o, r, i) {
4604
4613
  const s = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
4605
4614
  return d(), k(u, C({
4615
+ nonce: e.nonce,
4606
4616
  content: e.content,
4607
4617
  data: e.data,
4608
4618
  model: e.model,
@@ -4623,15 +4633,17 @@ function gi(e, t, n, o, r, i) {
4623
4633
  e.isSsrAbTest ? (d(), k(s, {
4624
4634
  key: 0,
4625
4635
  id: "builderio-variant-visibility",
4626
- scriptStr: e.scriptStr
4627
- }, null, 8, ["scriptStr"])) : v("", !0),
4636
+ scriptStr: e.scriptStr,
4637
+ nonce: e.nonce || ""
4638
+ }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4628
4639
  e.TARGET !== "reactNative" ? (d(), k(l, {
4629
4640
  key: 1,
4641
+ nonce: e.nonce || "",
4630
4642
  isNestedRender: e.isNestedRender,
4631
4643
  contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4632
4644
  cssCode: (m = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
4633
4645
  customFonts: (y = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : y.customFonts
4634
- }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4646
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4635
4647
  $(a, {
4636
4648
  blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4637
4649
  context: e.builderContextSignal,
@@ -4641,7 +4653,7 @@ function gi(e, t, n, o, r, i) {
4641
4653
  ];
4642
4654
  }),
4643
4655
  _: 1
4644
- }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4656
+ }, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4645
4657
  }
4646
4658
  const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4647
4659
  name: "content-variants",
@@ -4654,6 +4666,7 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4654
4666
  "canTrack",
4655
4667
  "content",
4656
4668
  "isNestedRender",
4669
+ "nonce",
4657
4670
  "model",
4658
4671
  "data",
4659
4672
  "context",
@@ -4682,8 +4695,6 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4682
4695
  },
4683
4696
  mounted() {
4684
4697
  },
4685
- updated() {
4686
- },
4687
4698
  computed: {
4688
4699
  updateCookieAndStylesScriptStr() {
4689
4700
  var e;
@@ -4716,20 +4727,24 @@ function vi(e, t, n, o, r, i) {
4716
4727
  !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
4717
4728
  key: 0,
4718
4729
  id: "builderio-init-variants-fns",
4719
- scriptStr: e.getInitVariantsFnsScriptString()
4720
- }, null, 8, ["scriptStr"])) : v("", !0),
4730
+ scriptStr: e.getInitVariantsFnsScriptString(),
4731
+ nonce: e.nonce || ""
4732
+ }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4721
4733
  e.shouldRenderVariants ? (d(), p(I, { key: 1 }, [
4722
4734
  $(l, {
4723
4735
  id: "builderio-variants",
4724
- styles: e.hideVariantsStyleString
4725
- }, null, 8, ["styles"]),
4736
+ styles: e.hideVariantsStyleString,
4737
+ nonce: e.nonce || ""
4738
+ }, null, 8, ["styles", "nonce"]),
4726
4739
  $(s, {
4727
4740
  id: "builderio-variants-visibility",
4728
- scriptStr: e.updateCookieAndStylesScriptStr
4729
- }, null, 8, ["scriptStr"]),
4741
+ scriptStr: e.updateCookieAndStylesScriptStr,
4742
+ nonce: e.nonce || ""
4743
+ }, null, 8, ["scriptStr", "nonce"]),
4730
4744
  (d(!0), p(I, null, N(e.getVariants(e.content), (u, h) => (d(), k(a, {
4731
4745
  key: u.testVariationId,
4732
4746
  isNestedRender: e.isNestedRender,
4747
+ nonce: e.nonce,
4733
4748
  content: u,
4734
4749
  showContent: !1,
4735
4750
  model: e.model,
@@ -4748,9 +4763,10 @@ function vi(e, t, n, o, r, i) {
4748
4763
  contentWrapper: e.contentWrapper,
4749
4764
  contentWrapperProps: e.contentWrapperProps,
4750
4765
  trustedHosts: e.trustedHosts
4751
- }, null, 8, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4766
+ }, null, 8, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4752
4767
  ], 64)) : v("", !0),
4753
4768
  $(a, C({
4769
+ nonce: e.nonce,
4754
4770
  isNestedRender: e.isNestedRender,
4755
4771
  content: e.defaultContent,
4756
4772
  showContent: !0,
@@ -4772,7 +4788,7 @@ function vi(e, t, n, o, r, i) {
4772
4788
  trustedHosts: e.trustedHosts
4773
4789
  }, {
4774
4790
  key: e.shouldRenderVariants.toString()
4775
- }), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4791
+ }), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4776
4792
  ], 64);
4777
4793
  }
4778
4794
  const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
@@ -4858,6 +4874,7 @@ function Ti(e, t, n, o, r, i) {
4858
4874
  const s = g("ContentVariants");
4859
4875
  return d(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4860
4876
  $(s, {
4877
+ nonce: e.builderContext.nonce,
4861
4878
  isNestedRender: !0,
4862
4879
  apiVersion: e.builderContext.apiVersion,
4863
4880
  apiKey: e.builderContext.apiKey,
@@ -4877,7 +4894,7 @@ function Ti(e, t, n, o, r, i) {
4877
4894
  linkComponent: e.builderLinkComponent,
4878
4895
  blocksWrapper: e.blocksWrapper,
4879
4896
  contentWrapper: e.contentWrapper
4880
- }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4897
+ }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4881
4898
  ], 16);
4882
4899
  }
4883
4900
  const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), Ee = {};