@builder.io/sdk-solid 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.
@@ -113,7 +113,8 @@ var builder_context_default = createContext({
113
113
  componentInfos: {},
114
114
  inheritedStyles: {},
115
115
  BlocksWrapper: "div",
116
- BlocksWrapperProps: {}
116
+ BlocksWrapperProps: {},
117
+ nonce: ""
117
118
  });
118
119
  var components_context_default = createContext({ registeredComponents: {} });
119
120
 
@@ -860,13 +861,15 @@ function InlinedStyles(props) {
860
861
  return (() => {
861
862
  const _el$ = _tmpl$();
862
863
  effect((_p$) => {
863
- const _v$ = props.styles, _v$2 = props.id;
864
+ const _v$ = props.styles, _v$2 = props.id, _v$3 = props.nonce;
864
865
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
865
866
  _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
867
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
866
868
  return _p$;
867
869
  }, {
868
870
  _v$: void 0,
869
- _v$2: void 0
871
+ _v$2: void 0,
872
+ _v$3: void 0
870
873
  });
871
874
  return _el$;
872
875
  })();
@@ -949,6 +952,9 @@ function BlockStyles(props) {
949
952
  id: "builderio-block",
950
953
  get styles() {
951
954
  return css();
955
+ },
956
+ get nonce() {
957
+ return props.context.nonce;
952
958
  }
953
959
  });
954
960
  }
@@ -1551,7 +1557,7 @@ var getColumnsClass = (id) => {
1551
1557
 
1552
1558
  // src/blocks/columns/columns.tsx
1553
1559
  var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
1554
- var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-710294c2 {
1560
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-5b8fb3ac {
1555
1561
  display: flex;
1556
1562
  line-height: normal;
1557
1563
  }`);
@@ -1671,7 +1677,7 @@ function Columns(props) {
1671
1677
  const _el$ = _tmpl$3();
1672
1678
  spread(_el$, mergeProps({
1673
1679
  get ["class"]() {
1674
- return getColumnsClass(props.builderBlock?.id) + " div-710294c2";
1680
+ return getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac";
1675
1681
  },
1676
1682
  get style() {
1677
1683
  return columnsCssVars();
@@ -1684,6 +1690,9 @@ function Columns(props) {
1684
1690
  id: "builderio-columns",
1685
1691
  get styles() {
1686
1692
  return columnsStyles();
1693
+ },
1694
+ get nonce() {
1695
+ return props.builderContext.nonce;
1687
1696
  }
1688
1697
  });
1689
1698
  }
@@ -1793,16 +1802,16 @@ function getSrcSet(url) {
1793
1802
  // src/blocks/image/image.tsx
1794
1803
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
1795
1804
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
1796
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-54b38751">`);
1797
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-54b38751-2>`);
1798
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-54b38751 {
1805
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-e3b1053e">`);
1806
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-e3b1053e-2>`);
1807
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-e3b1053e {
1799
1808
  opacity: 1;
1800
1809
  transition: opacity 0.2s ease-in-out;
1801
- }.div-54b38751 {
1810
+ }.div-e3b1053e {
1802
1811
  width: 100%;
1803
1812
  pointer-events: none;
1804
1813
  font-size: 0;
1805
- }.div-54b38751-2 {
1814
+ }.div-e3b1053e-2 {
1806
1815
  display: flex;
1807
1816
  flex-direction: column;
1808
1817
  align-items: stretch;
@@ -1821,6 +1830,9 @@ function Image(props) {
1821
1830
  !(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/))) {
1822
1831
  return props.srcset;
1823
1832
  }
1833
+ if (props.noWebp) {
1834
+ return void 0;
1835
+ }
1824
1836
  if (props.srcset && props.image?.includes("builder.io/api/v1/image")) {
1825
1837
  if (!props.srcset.includes(props.image.split("?")[0])) {
1826
1838
  return getSrcSet(url);
@@ -1861,7 +1873,7 @@ function Image(props) {
1861
1873
  }
1862
1874
  }), _el$3);
1863
1875
  effect((_p$) => {
1864
- const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-54b38751", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.altText ? void 0 : "presentation", _v$6 = {
1876
+ const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.altText ? void 0 : "presentation", _v$6 = {
1865
1877
  "object-position": props.backgroundPosition || "center",
1866
1878
  "object-fit": props.backgroundSize || "cover",
1867
1879
  ...aspectRatioCss()
@@ -4615,13 +4627,15 @@ function InlinedScript(props) {
4615
4627
  return (() => {
4616
4628
  const _el$ = _tmpl$20();
4617
4629
  effect((_p$) => {
4618
- const _v$ = props.scriptStr, _v$2 = props.id;
4630
+ const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
4619
4631
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
4620
4632
  _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
4633
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
4621
4634
  return _p$;
4622
4635
  }, {
4623
4636
  _v$: void 0,
4624
- _v$2: void 0
4637
+ _v$2: void 0,
4638
+ _v$3: void 0
4625
4639
  });
4626
4640
  return _el$;
4627
4641
  })();
@@ -5122,7 +5136,7 @@ function isFromTrustedHost(trustedHosts, e) {
5122
5136
  }
5123
5137
 
5124
5138
  // src/constants/sdk-version.ts
5125
- var SDK_VERSION = "2.0.0";
5139
+ var SDK_VERSION = "2.0.2";
5126
5140
 
5127
5141
  // src/functions/register.ts
5128
5142
  var registry = {};
@@ -5703,6 +5717,9 @@ ${getDefaultStyles(props.isNestedRender)}
5703
5717
  id: "builderio-content",
5704
5718
  get styles() {
5705
5719
  return injectedStyles();
5720
+ },
5721
+ get nonce() {
5722
+ return props.nonce;
5706
5723
  }
5707
5724
  });
5708
5725
  }
@@ -5752,7 +5769,15 @@ function ContentComponent(props) {
5752
5769
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5753
5770
  contentId: props.content?.id
5754
5771
  }));
5755
- const [registeredComponents, setRegisteredComponents] = createSignal([...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
5772
+ const [registeredComponents, setRegisteredComponents] = createSignal([...getDefaultRegisteredComponents(), ...props.customComponents?.filter(({
5773
+ models
5774
+ }) => {
5775
+ if (!models?.length)
5776
+ return true;
5777
+ if (!props.model)
5778
+ return true;
5779
+ return models.includes(props.model);
5780
+ }) || []].reduce((acc, {
5756
5781
  component,
5757
5782
  ...info
5758
5783
  }) => ({
@@ -5778,7 +5803,15 @@ function ContentComponent(props) {
5778
5803
  canTrack: props.canTrack,
5779
5804
  apiKey: props.apiKey,
5780
5805
  apiVersion: props.apiVersion,
5781
- componentInfos: [...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
5806
+ componentInfos: [...getDefaultRegisteredComponents(), ...props.customComponents?.filter(({
5807
+ models
5808
+ }) => {
5809
+ if (!models?.length)
5810
+ return true;
5811
+ if (!props.model)
5812
+ return true;
5813
+ return models.includes(props.model);
5814
+ }) || []].reduce((acc, {
5782
5815
  component: _,
5783
5816
  ...info
5784
5817
  }) => ({
@@ -5787,7 +5820,8 @@ function ContentComponent(props) {
5787
5820
  }), {}),
5788
5821
  inheritedStyles: {},
5789
5822
  BlocksWrapper: props.blocksWrapper || "div",
5790
- BlocksWrapperProps: props.blocksWrapperProps || {}
5823
+ BlocksWrapperProps: props.blocksWrapperProps || {},
5824
+ nonce: props.nonce || ""
5791
5825
  });
5792
5826
  function contentSetState(newRootState) {
5793
5827
  setBuilderContextSignal((PREVIOUS_VALUE) => ({
@@ -5803,6 +5837,9 @@ function ContentComponent(props) {
5803
5837
  },
5804
5838
  get children() {
5805
5839
  return createComponent(enable_editor_default, mergeProps({
5840
+ get nonce() {
5841
+ return props.nonce;
5842
+ },
5806
5843
  get content() {
5807
5844
  return props.content;
5808
5845
  },
@@ -5855,6 +5892,9 @@ function ContentComponent(props) {
5855
5892
  id: "builderio-variant-visibility",
5856
5893
  get scriptStr() {
5857
5894
  return scriptStr();
5895
+ },
5896
+ get nonce() {
5897
+ return props.nonce || "";
5858
5898
  }
5859
5899
  });
5860
5900
  }
@@ -5862,6 +5902,9 @@ function ContentComponent(props) {
5862
5902
  when: TARGET !== "reactNative",
5863
5903
  get children() {
5864
5904
  return createComponent(styles_default, {
5905
+ get nonce() {
5906
+ return props.nonce || "";
5907
+ },
5865
5908
  get isNestedRender() {
5866
5909
  return props.isNestedRender;
5867
5910
  },
@@ -5933,6 +5976,9 @@ function ContentVariants(props) {
5933
5976
  id: "builderio-init-variants-fns",
5934
5977
  get scriptStr() {
5935
5978
  return getInitVariantsFnsScriptString();
5979
+ },
5980
+ get nonce() {
5981
+ return props.nonce || "";
5936
5982
  }
5937
5983
  });
5938
5984
  }
@@ -5945,11 +5991,17 @@ function ContentVariants(props) {
5945
5991
  id: "builderio-variants",
5946
5992
  get styles() {
5947
5993
  return hideVariantsStyleString();
5994
+ },
5995
+ get nonce() {
5996
+ return props.nonce || "";
5948
5997
  }
5949
5998
  }), createComponent(inlined_script_default, {
5950
5999
  id: "builderio-variants-visibility",
5951
6000
  get scriptStr() {
5952
6001
  return updateCookieAndStylesScriptStr();
6002
+ },
6003
+ get nonce() {
6004
+ return props.nonce || "";
5953
6005
  }
5954
6006
  }), createComponent(For, {
5955
6007
  get each() {
@@ -5964,6 +6016,9 @@ function ContentVariants(props) {
5964
6016
  get key() {
5965
6017
  return variant.testVariationId;
5966
6018
  },
6019
+ get nonce() {
6020
+ return props.nonce;
6021
+ },
5967
6022
  content: variant,
5968
6023
  showContent: false,
5969
6024
  get model() {
@@ -6019,6 +6074,9 @@ function ContentVariants(props) {
6019
6074
  })];
6020
6075
  }
6021
6076
  }), createComponent(content_default, mergeProps({
6077
+ get nonce() {
6078
+ return props.nonce;
6079
+ },
6022
6080
  get isNestedRender() {
6023
6081
  return props.isNestedRender;
6024
6082
  }
@@ -6143,6 +6201,9 @@ function Symbol(props) {
6143
6201
  }
6144
6202
  }, {}, () => props.attributes, {}), false, true);
6145
6203
  insert(_el$, createComponent(content_variants_default, {
6204
+ get nonce() {
6205
+ return props.builderContext.nonce;
6206
+ },
6146
6207
  isNestedRender: true,
6147
6208
  get apiVersion() {
6148
6209
  return props.builderContext.apiVersion;
@@ -94,7 +94,8 @@ var builder_context_default = createContext({
94
94
  componentInfos: {},
95
95
  inheritedStyles: {},
96
96
  BlocksWrapper: "div",
97
- BlocksWrapperProps: {}
97
+ BlocksWrapperProps: {},
98
+ nonce: ""
98
99
  });
99
100
 
100
101
  // src/context/components.context.ts
@@ -848,7 +849,11 @@ var getSizesForBreakpoints = ({
848
849
 
849
850
  // src/components/inlined-styles.tsx
850
851
  function InlinedStyles(props) {
851
- return <><style innerHTML={props.styles} data-id={props.id} /></>;
852
+ return <><style
853
+ innerHTML={props.styles}
854
+ data-id={props.id}
855
+ nonce={props.nonce}
856
+ /></>;
852
857
  }
853
858
  var Inlined_styles_default = InlinedStyles;
854
859
 
@@ -934,7 +939,11 @@ function BlockStyles(props) {
934
939
  hoverStylesClass
935
940
  ].join(" ");
936
941
  });
937
- return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css()} /></Show2></>;
942
+ return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
943
+ id="builderio-block"
944
+ styles={css()}
945
+ nonce={props.context.nonce}
946
+ /></Show2></>;
938
947
  }
939
948
  var Block_styles_default = BlockStyles;
940
949
 
@@ -1487,13 +1496,14 @@ function Columns(props) {
1487
1496
  }
1488
1497
  return <>
1489
1498
  <div
1490
- class={getColumnsClass(props.builderBlock?.id) + " div-710294c2"}
1499
+ class={getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac"}
1491
1500
  style={columnsCssVars()}
1492
1501
  {...{}}
1493
1502
  >
1494
1503
  <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1495
1504
  id="builderio-columns"
1496
1505
  styles={columnsStyles()}
1506
+ nonce={props.builderContext.nonce}
1497
1507
  /></Show6>
1498
1508
  <For4 each={props.columns}>{(column, _index) => {
1499
1509
  const index = _index();
@@ -1515,7 +1525,7 @@ function Columns(props) {
1515
1525
  /></Dynamic_renderer_default>;
1516
1526
  }}</For4>
1517
1527
  </div>
1518
- <style>{`.div-710294c2 {
1528
+ <style>{`.div-5b8fb3ac {
1519
1529
  display: flex;
1520
1530
  line-height: normal;
1521
1531
  }`}</style>
@@ -1589,6 +1599,9 @@ function Image(props) {
1589
1599
  !(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/))) {
1590
1600
  return props.srcset;
1591
1601
  }
1602
+ if (props.noWebp) {
1603
+ return void 0;
1604
+ }
1592
1605
  if (props.srcset && props.image?.includes("builder.io/api/v1/image")) {
1593
1606
  if (!props.srcset.includes(props.image.split("?")[0])) {
1594
1607
  return getSrcSet(url);
@@ -1621,7 +1634,7 @@ function Image(props) {
1621
1634
  <picture>
1622
1635
  <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
1623
1636
  <img
1624
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-54b38751"}
1637
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e"}
1625
1638
  loading={props.highPriority ? "eager" : "lazy"}
1626
1639
  fetchpriority={props.highPriority ? "high" : "auto"}
1627
1640
  alt={props.altText}
@@ -1639,22 +1652,22 @@ function Image(props) {
1639
1652
  <Show7
1640
1653
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1641
1654
  ><div
1642
- class="builder-image-sizer div-54b38751"
1655
+ class="builder-image-sizer div-e3b1053e"
1643
1656
  style={{
1644
1657
  "padding-top": props.aspectRatio * 100 + "%"
1645
1658
  }}
1646
1659
  /></Show7>
1647
1660
  <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
1648
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-54b38751-2">{props.children}</div></Show7>
1661
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-e3b1053e-2">{props.children}</div></Show7>
1649
1662
  </>
1650
- <style>{`.img-54b38751 {
1663
+ <style>{`.img-e3b1053e {
1651
1664
  opacity: 1;
1652
1665
  transition: opacity 0.2s ease-in-out;
1653
- }.div-54b38751 {
1666
+ }.div-e3b1053e {
1654
1667
  width: 100%;
1655
1668
  pointer-events: none;
1656
1669
  font-size: 0;
1657
- }.div-54b38751-2 {
1670
+ }.div-e3b1053e-2 {
1658
1671
  display: flex;
1659
1672
  flex-direction: column;
1660
1673
  align-items: stretch;
@@ -1690,16 +1703,10 @@ function SectionComponent(props) {
1690
1703
  var section_default = SectionComponent;
1691
1704
 
1692
1705
  // src/blocks/symbol/symbol.tsx
1693
- import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1706
+ import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1694
1707
 
1695
1708
  // src/components/content-variants/content-variants.tsx
1696
- import {
1697
- Show as Show14,
1698
- For as For9,
1699
- onMount as onMount4,
1700
- createMemo as createMemo18,
1701
- createSignal as createSignal18
1702
- } from "solid-js";
1709
+ import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
1703
1710
 
1704
1711
  // src/helpers/url.ts
1705
1712
  var getTopLevelDomain = (host) => {
@@ -4129,7 +4136,11 @@ var getUpdateVariantVisibilityScript = ({
4129
4136
 
4130
4137
  // src/components/inlined-script.tsx
4131
4138
  function InlinedScript(props) {
4132
- return <><script innerHTML={props.scriptStr} data-id={props.id} /></>;
4139
+ return <><script
4140
+ innerHTML={props.scriptStr}
4141
+ data-id={props.id}
4142
+ nonce={props.nonce || ""}
4143
+ /></>;
4133
4144
  }
4134
4145
  var Inlined_script_default = InlinedScript;
4135
4146
 
@@ -4638,7 +4649,7 @@ function isFromTrustedHost(trustedHosts, e) {
4638
4649
  }
4639
4650
 
4640
4651
  // src/constants/sdk-version.ts
4641
- var SDK_VERSION = "2.0.0";
4652
+ var SDK_VERSION = "2.0.2";
4642
4653
 
4643
4654
  // src/functions/register.ts
4644
4655
  var registry = {};
@@ -5236,6 +5247,7 @@ ${getDefaultStyles(props.isNestedRender)}
5236
5247
  return <><Inlined_styles_default
5237
5248
  id="builderio-content"
5238
5249
  styles={injectedStyles()}
5250
+ nonce={props.nonce}
5239
5251
  /></>;
5240
5252
  }
5241
5253
  var Styles_default = ContentStyles;
@@ -5289,7 +5301,13 @@ function ContentComponent(props) {
5289
5301
  const [registeredComponents, setRegisteredComponents] = createSignal17(
5290
5302
  [
5291
5303
  ...getDefaultRegisteredComponents(),
5292
- ...props.customComponents || []
5304
+ ...props.customComponents?.filter(({ models }) => {
5305
+ if (!models?.length)
5306
+ return true;
5307
+ if (!props.model)
5308
+ return true;
5309
+ return models.includes(props.model);
5310
+ }) || []
5293
5311
  ].reduce(
5294
5312
  (acc, { component, ...info }) => ({
5295
5313
  ...acc,
@@ -5319,7 +5337,13 @@ function ContentComponent(props) {
5319
5337
  apiVersion: props.apiVersion,
5320
5338
  componentInfos: [
5321
5339
  ...getDefaultRegisteredComponents(),
5322
- ...props.customComponents || []
5340
+ ...props.customComponents?.filter(({ models }) => {
5341
+ if (!models?.length)
5342
+ return true;
5343
+ if (!props.model)
5344
+ return true;
5345
+ return models.includes(props.model);
5346
+ }) || []
5323
5347
  ].reduce(
5324
5348
  (acc, { component: _, ...info }) => ({
5325
5349
  ...acc,
@@ -5329,7 +5353,8 @@ function ContentComponent(props) {
5329
5353
  ),
5330
5354
  inheritedStyles: {},
5331
5355
  BlocksWrapper: props.blocksWrapper || "div",
5332
- BlocksWrapperProps: props.blocksWrapperProps || {}
5356
+ BlocksWrapperProps: props.blocksWrapperProps || {},
5357
+ nonce: props.nonce || ""
5333
5358
  });
5334
5359
  function contentSetState(newRootState) {
5335
5360
  setBuilderContextSignal((PREVIOUS_VALUE) => ({
@@ -5342,6 +5367,7 @@ function ContentComponent(props) {
5342
5367
  registeredComponents: registeredComponents()
5343
5368
  }}
5344
5369
  ><Enable_editor_default
5370
+ nonce={props.nonce}
5345
5371
  content={props.content}
5346
5372
  data={props.data}
5347
5373
  model={props.model}
@@ -5362,8 +5388,10 @@ function ContentComponent(props) {
5362
5388
  <Show13 when={props.isSsrAbTest}><Inlined_script_default
5363
5389
  id="builderio-variant-visibility"
5364
5390
  scriptStr={scriptStr()}
5391
+ nonce={props.nonce || ""}
5365
5392
  /></Show13>
5366
5393
  <Show13 when={TARGET !== "reactNative"}><Styles_default
5394
+ nonce={props.nonce || ""}
5367
5395
  isNestedRender={props.isNestedRender}
5368
5396
  contentId={builderContextSignal().content?.id}
5369
5397
  cssCode={builderContextSignal().content?.data?.cssCode}
@@ -5415,21 +5443,25 @@ function ContentVariants(props) {
5415
5443
  <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
5416
5444
  id="builderio-init-variants-fns"
5417
5445
  scriptStr={getInitVariantsFnsScriptString()}
5446
+ nonce={props.nonce || ""}
5418
5447
  /></Show14>
5419
5448
  <Show14 when={shouldRenderVariants()}>
5420
5449
  <Inlined_styles_default
5421
5450
  id="builderio-variants"
5422
5451
  styles={hideVariantsStyleString()}
5452
+ nonce={props.nonce || ""}
5423
5453
  />
5424
5454
  <Inlined_script_default
5425
5455
  id="builderio-variants-visibility"
5426
5456
  scriptStr={updateCookieAndStylesScriptStr()}
5457
+ nonce={props.nonce || ""}
5427
5458
  />
5428
5459
  <For9 each={getVariants(props.content)}>{(variant, _index) => {
5429
5460
  const index = _index();
5430
5461
  return <Content_default
5431
5462
  isNestedRender={props.isNestedRender}
5432
5463
  key={variant.testVariationId}
5464
+ nonce={props.nonce}
5433
5465
  content={variant}
5434
5466
  showContent={false}
5435
5467
  model={props.model}
@@ -5452,6 +5484,7 @@ function ContentVariants(props) {
5452
5484
  }}</For9>
5453
5485
  </Show14>
5454
5486
  <Content_default
5487
+ nonce={props.nonce}
5455
5488
  isNestedRender={props.isNestedRender}
5456
5489
  {...{}}
5457
5490
  content={defaultContent()}
@@ -5536,8 +5569,9 @@ function Symbol(props) {
5536
5569
  function onUpdateFn_0() {
5537
5570
  setContent();
5538
5571
  }
5539
- createEffect4(on4(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
5572
+ createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
5540
5573
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
5574
+ nonce={props.builderContext.nonce}
5541
5575
  isNestedRender={true}
5542
5576
  apiVersion={props.builderContext.apiVersion}
5543
5577
  apiKey={props.builderContext.apiKey}