@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.
package/lib/edge/index.js CHANGED
@@ -119,7 +119,8 @@ var builder_context_default = createContext({
119
119
  componentInfos: {},
120
120
  inheritedStyles: {},
121
121
  BlocksWrapper: "div",
122
- BlocksWrapperProps: {}
122
+ BlocksWrapperProps: {},
123
+ nonce: ""
123
124
  });
124
125
  var components_context_default = createContext({ registeredComponents: {} });
125
126
 
@@ -4006,13 +4007,15 @@ function InlinedStyles(props) {
4006
4007
  return (() => {
4007
4008
  const _el$ = _tmpl$();
4008
4009
  effect((_p$) => {
4009
- const _v$ = props.styles, _v$2 = props.id;
4010
+ const _v$ = props.styles, _v$2 = props.id, _v$3 = props.nonce;
4010
4011
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
4011
4012
  _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
4013
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
4012
4014
  return _p$;
4013
4015
  }, {
4014
4016
  _v$: void 0,
4015
- _v$2: void 0
4017
+ _v$2: void 0,
4018
+ _v$3: void 0
4016
4019
  });
4017
4020
  return _el$;
4018
4021
  })();
@@ -4095,6 +4098,9 @@ function BlockStyles(props) {
4095
4098
  id: "builderio-block",
4096
4099
  get styles() {
4097
4100
  return css();
4101
+ },
4102
+ get nonce() {
4103
+ return props.context.nonce;
4098
4104
  }
4099
4105
  });
4100
4106
  }
@@ -4697,7 +4703,7 @@ var getColumnsClass = (id2) => {
4697
4703
 
4698
4704
  // src/blocks/columns/columns.tsx
4699
4705
  var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
4700
- var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-710294c2 {
4706
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-5b8fb3ac {
4701
4707
  display: flex;
4702
4708
  line-height: normal;
4703
4709
  }`);
@@ -4817,7 +4823,7 @@ function Columns(props) {
4817
4823
  const _el$ = _tmpl$3();
4818
4824
  spread(_el$, mergeProps({
4819
4825
  get ["class"]() {
4820
- return getColumnsClass(props.builderBlock?.id) + " div-710294c2";
4826
+ return getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac";
4821
4827
  },
4822
4828
  get style() {
4823
4829
  return columnsCssVars();
@@ -4830,6 +4836,9 @@ function Columns(props) {
4830
4836
  id: "builderio-columns",
4831
4837
  get styles() {
4832
4838
  return columnsStyles();
4839
+ },
4840
+ get nonce() {
4841
+ return props.builderContext.nonce;
4833
4842
  }
4834
4843
  });
4835
4844
  }
@@ -4939,16 +4948,16 @@ function getSrcSet(url) {
4939
4948
  // src/blocks/image/image.tsx
4940
4949
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
4941
4950
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
4942
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-54b38751">`);
4943
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-54b38751-2>`);
4944
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-54b38751 {
4951
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-e3b1053e">`);
4952
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-e3b1053e-2>`);
4953
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-e3b1053e {
4945
4954
  opacity: 1;
4946
4955
  transition: opacity 0.2s ease-in-out;
4947
- }.div-54b38751 {
4956
+ }.div-e3b1053e {
4948
4957
  width: 100%;
4949
4958
  pointer-events: none;
4950
4959
  font-size: 0;
4951
- }.div-54b38751-2 {
4960
+ }.div-e3b1053e-2 {
4952
4961
  display: flex;
4953
4962
  flex-direction: column;
4954
4963
  align-items: stretch;
@@ -4967,6 +4976,9 @@ function Image(props) {
4967
4976
  !(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/))) {
4968
4977
  return props.srcset;
4969
4978
  }
4979
+ if (props.noWebp) {
4980
+ return void 0;
4981
+ }
4970
4982
  if (props.srcset && props.image?.includes("builder.io/api/v1/image")) {
4971
4983
  if (!props.srcset.includes(props.image.split("?")[0])) {
4972
4984
  return getSrcSet(url);
@@ -5007,7 +5019,7 @@ function Image(props) {
5007
5019
  }
5008
5020
  }), _el$3);
5009
5021
  effect((_p$) => {
5010
- 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 = {
5022
+ 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 = {
5011
5023
  "object-position": props.backgroundPosition || "center",
5012
5024
  "object-fit": props.backgroundSize || "cover",
5013
5025
  ...aspectRatioCss()
@@ -7761,13 +7773,15 @@ function InlinedScript(props) {
7761
7773
  return (() => {
7762
7774
  const _el$ = _tmpl$20();
7763
7775
  effect((_p$) => {
7764
- const _v$ = props.scriptStr, _v$2 = props.id;
7776
+ const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
7765
7777
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
7766
7778
  _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
7779
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
7767
7780
  return _p$;
7768
7781
  }, {
7769
7782
  _v$: void 0,
7770
- _v$2: void 0
7783
+ _v$2: void 0,
7784
+ _v$3: void 0
7771
7785
  });
7772
7786
  return _el$;
7773
7787
  })();
@@ -8268,7 +8282,7 @@ function isFromTrustedHost(trustedHosts, e) {
8268
8282
  }
8269
8283
 
8270
8284
  // src/constants/sdk-version.ts
8271
- var SDK_VERSION = "2.0.0";
8285
+ var SDK_VERSION = "2.0.2";
8272
8286
 
8273
8287
  // src/functions/register.ts
8274
8288
  var registry = {};
@@ -8849,6 +8863,9 @@ ${getDefaultStyles(props.isNestedRender)}
8849
8863
  id: "builderio-content",
8850
8864
  get styles() {
8851
8865
  return injectedStyles();
8866
+ },
8867
+ get nonce() {
8868
+ return props.nonce;
8852
8869
  }
8853
8870
  });
8854
8871
  }
@@ -8898,7 +8915,15 @@ function ContentComponent(props) {
8898
8915
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
8899
8916
  contentId: props.content?.id
8900
8917
  }));
8901
- const [registeredComponents, setRegisteredComponents] = createSignal([...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
8918
+ const [registeredComponents, setRegisteredComponents] = createSignal([...getDefaultRegisteredComponents(), ...props.customComponents?.filter(({
8919
+ models
8920
+ }) => {
8921
+ if (!models?.length)
8922
+ return true;
8923
+ if (!props.model)
8924
+ return true;
8925
+ return models.includes(props.model);
8926
+ }) || []].reduce((acc, {
8902
8927
  component,
8903
8928
  ...info
8904
8929
  }) => ({
@@ -8924,7 +8949,15 @@ function ContentComponent(props) {
8924
8949
  canTrack: props.canTrack,
8925
8950
  apiKey: props.apiKey,
8926
8951
  apiVersion: props.apiVersion,
8927
- componentInfos: [...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
8952
+ componentInfos: [...getDefaultRegisteredComponents(), ...props.customComponents?.filter(({
8953
+ models
8954
+ }) => {
8955
+ if (!models?.length)
8956
+ return true;
8957
+ if (!props.model)
8958
+ return true;
8959
+ return models.includes(props.model);
8960
+ }) || []].reduce((acc, {
8928
8961
  component: _,
8929
8962
  ...info
8930
8963
  }) => ({
@@ -8933,7 +8966,8 @@ function ContentComponent(props) {
8933
8966
  }), {}),
8934
8967
  inheritedStyles: {},
8935
8968
  BlocksWrapper: props.blocksWrapper || "div",
8936
- BlocksWrapperProps: props.blocksWrapperProps || {}
8969
+ BlocksWrapperProps: props.blocksWrapperProps || {},
8970
+ nonce: props.nonce || ""
8937
8971
  });
8938
8972
  function contentSetState(newRootState) {
8939
8973
  setBuilderContextSignal((PREVIOUS_VALUE) => ({
@@ -8949,6 +8983,9 @@ function ContentComponent(props) {
8949
8983
  },
8950
8984
  get children() {
8951
8985
  return createComponent(enable_editor_default, mergeProps({
8986
+ get nonce() {
8987
+ return props.nonce;
8988
+ },
8952
8989
  get content() {
8953
8990
  return props.content;
8954
8991
  },
@@ -9001,6 +9038,9 @@ function ContentComponent(props) {
9001
9038
  id: "builderio-variant-visibility",
9002
9039
  get scriptStr() {
9003
9040
  return scriptStr();
9041
+ },
9042
+ get nonce() {
9043
+ return props.nonce || "";
9004
9044
  }
9005
9045
  });
9006
9046
  }
@@ -9008,6 +9048,9 @@ function ContentComponent(props) {
9008
9048
  when: TARGET !== "reactNative",
9009
9049
  get children() {
9010
9050
  return createComponent(styles_default, {
9051
+ get nonce() {
9052
+ return props.nonce || "";
9053
+ },
9011
9054
  get isNestedRender() {
9012
9055
  return props.isNestedRender;
9013
9056
  },
@@ -9079,6 +9122,9 @@ function ContentVariants(props) {
9079
9122
  id: "builderio-init-variants-fns",
9080
9123
  get scriptStr() {
9081
9124
  return getInitVariantsFnsScriptString();
9125
+ },
9126
+ get nonce() {
9127
+ return props.nonce || "";
9082
9128
  }
9083
9129
  });
9084
9130
  }
@@ -9091,11 +9137,17 @@ function ContentVariants(props) {
9091
9137
  id: "builderio-variants",
9092
9138
  get styles() {
9093
9139
  return hideVariantsStyleString();
9140
+ },
9141
+ get nonce() {
9142
+ return props.nonce || "";
9094
9143
  }
9095
9144
  }), createComponent(inlined_script_default, {
9096
9145
  id: "builderio-variants-visibility",
9097
9146
  get scriptStr() {
9098
9147
  return updateCookieAndStylesScriptStr();
9148
+ },
9149
+ get nonce() {
9150
+ return props.nonce || "";
9099
9151
  }
9100
9152
  }), createComponent(For, {
9101
9153
  get each() {
@@ -9110,6 +9162,9 @@ function ContentVariants(props) {
9110
9162
  get key() {
9111
9163
  return variant.testVariationId;
9112
9164
  },
9165
+ get nonce() {
9166
+ return props.nonce;
9167
+ },
9113
9168
  content: variant,
9114
9169
  showContent: false,
9115
9170
  get model() {
@@ -9165,6 +9220,9 @@ function ContentVariants(props) {
9165
9220
  })];
9166
9221
  }
9167
9222
  }), createComponent(content_default, mergeProps({
9223
+ get nonce() {
9224
+ return props.nonce;
9225
+ },
9168
9226
  get isNestedRender() {
9169
9227
  return props.isNestedRender;
9170
9228
  }
@@ -9289,6 +9347,9 @@ function Symbol2(props) {
9289
9347
  }
9290
9348
  }, {}, () => props.attributes, {}), false, true);
9291
9349
  insert(_el$, createComponent(content_variants_default, {
9350
+ get nonce() {
9351
+ return props.builderContext.nonce;
9352
+ },
9292
9353
  isNestedRender: true,
9293
9354
  get apiVersion() {
9294
9355
  return props.builderContext.apiVersion;
@@ -102,7 +102,8 @@ var builder_context_default = createContext({
102
102
  componentInfos: {},
103
103
  inheritedStyles: {},
104
104
  BlocksWrapper: "div",
105
- BlocksWrapperProps: {}
105
+ BlocksWrapperProps: {},
106
+ nonce: ""
106
107
  });
107
108
 
108
109
  // src/context/components.context.ts
@@ -3996,7 +3997,11 @@ var getSizesForBreakpoints = ({
3996
3997
 
3997
3998
  // src/components/inlined-styles.tsx
3998
3999
  function InlinedStyles(props) {
3999
- return <><style innerHTML={props.styles} data-id={props.id} /></>;
4000
+ return <><style
4001
+ innerHTML={props.styles}
4002
+ data-id={props.id}
4003
+ nonce={props.nonce}
4004
+ /></>;
4000
4005
  }
4001
4006
  var Inlined_styles_default = InlinedStyles;
4002
4007
 
@@ -4082,7 +4087,11 @@ function BlockStyles(props) {
4082
4087
  hoverStylesClass
4083
4088
  ].join(" ");
4084
4089
  });
4085
- return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css()} /></Show2></>;
4090
+ return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
4091
+ id="builderio-block"
4092
+ styles={css()}
4093
+ nonce={props.context.nonce}
4094
+ /></Show2></>;
4086
4095
  }
4087
4096
  var Block_styles_default = BlockStyles;
4088
4097
 
@@ -4635,13 +4644,14 @@ function Columns(props) {
4635
4644
  }
4636
4645
  return <>
4637
4646
  <div
4638
- class={getColumnsClass(props.builderBlock?.id) + " div-710294c2"}
4647
+ class={getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac"}
4639
4648
  style={columnsCssVars()}
4640
4649
  {...{}}
4641
4650
  >
4642
4651
  <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
4643
4652
  id="builderio-columns"
4644
4653
  styles={columnsStyles()}
4654
+ nonce={props.builderContext.nonce}
4645
4655
  /></Show6>
4646
4656
  <For4 each={props.columns}>{(column, _index) => {
4647
4657
  const index = _index();
@@ -4663,7 +4673,7 @@ function Columns(props) {
4663
4673
  /></Dynamic_renderer_default>;
4664
4674
  }}</For4>
4665
4675
  </div>
4666
- <style>{`.div-710294c2 {
4676
+ <style>{`.div-5b8fb3ac {
4667
4677
  display: flex;
4668
4678
  line-height: normal;
4669
4679
  }`}</style>
@@ -4737,6 +4747,9 @@ function Image(props) {
4737
4747
  !(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/))) {
4738
4748
  return props.srcset;
4739
4749
  }
4750
+ if (props.noWebp) {
4751
+ return void 0;
4752
+ }
4740
4753
  if (props.srcset && props.image?.includes("builder.io/api/v1/image")) {
4741
4754
  if (!props.srcset.includes(props.image.split("?")[0])) {
4742
4755
  return getSrcSet(url);
@@ -4769,7 +4782,7 @@ function Image(props) {
4769
4782
  <picture>
4770
4783
  <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
4771
4784
  <img
4772
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-54b38751"}
4785
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e"}
4773
4786
  loading={props.highPriority ? "eager" : "lazy"}
4774
4787
  fetchpriority={props.highPriority ? "high" : "auto"}
4775
4788
  alt={props.altText}
@@ -4787,22 +4800,22 @@ function Image(props) {
4787
4800
  <Show7
4788
4801
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
4789
4802
  ><div
4790
- class="builder-image-sizer div-54b38751"
4803
+ class="builder-image-sizer div-e3b1053e"
4791
4804
  style={{
4792
4805
  "padding-top": props.aspectRatio * 100 + "%"
4793
4806
  }}
4794
4807
  /></Show7>
4795
4808
  <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
4796
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-54b38751-2">{props.children}</div></Show7>
4809
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-e3b1053e-2">{props.children}</div></Show7>
4797
4810
  </>
4798
- <style>{`.img-54b38751 {
4811
+ <style>{`.img-e3b1053e {
4799
4812
  opacity: 1;
4800
4813
  transition: opacity 0.2s ease-in-out;
4801
- }.div-54b38751 {
4814
+ }.div-e3b1053e {
4802
4815
  width: 100%;
4803
4816
  pointer-events: none;
4804
4817
  font-size: 0;
4805
- }.div-54b38751-2 {
4818
+ }.div-e3b1053e-2 {
4806
4819
  display: flex;
4807
4820
  flex-direction: column;
4808
4821
  align-items: stretch;
@@ -4838,16 +4851,10 @@ function SectionComponent(props) {
4838
4851
  var section_default = SectionComponent;
4839
4852
 
4840
4853
  // src/blocks/symbol/symbol.tsx
4841
- import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
4854
+ import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
4842
4855
 
4843
4856
  // src/components/content-variants/content-variants.tsx
4844
- import {
4845
- Show as Show14,
4846
- For as For9,
4847
- onMount as onMount4,
4848
- createMemo as createMemo18,
4849
- createSignal as createSignal18
4850
- } from "solid-js";
4857
+ import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
4851
4858
 
4852
4859
  // src/helpers/url.ts
4853
4860
  var getTopLevelDomain = (host) => {
@@ -7277,7 +7284,11 @@ var getUpdateVariantVisibilityScript = ({
7277
7284
 
7278
7285
  // src/components/inlined-script.tsx
7279
7286
  function InlinedScript(props) {
7280
- return <><script innerHTML={props.scriptStr} data-id={props.id} /></>;
7287
+ return <><script
7288
+ innerHTML={props.scriptStr}
7289
+ data-id={props.id}
7290
+ nonce={props.nonce || ""}
7291
+ /></>;
7281
7292
  }
7282
7293
  var Inlined_script_default = InlinedScript;
7283
7294
 
@@ -7786,7 +7797,7 @@ function isFromTrustedHost(trustedHosts, e) {
7786
7797
  }
7787
7798
 
7788
7799
  // src/constants/sdk-version.ts
7789
- var SDK_VERSION = "2.0.0";
7800
+ var SDK_VERSION = "2.0.2";
7790
7801
 
7791
7802
  // src/functions/register.ts
7792
7803
  var registry = {};
@@ -8384,6 +8395,7 @@ ${getDefaultStyles(props.isNestedRender)}
8384
8395
  return <><Inlined_styles_default
8385
8396
  id="builderio-content"
8386
8397
  styles={injectedStyles()}
8398
+ nonce={props.nonce}
8387
8399
  /></>;
8388
8400
  }
8389
8401
  var Styles_default = ContentStyles;
@@ -8437,7 +8449,13 @@ function ContentComponent(props) {
8437
8449
  const [registeredComponents, setRegisteredComponents] = createSignal17(
8438
8450
  [
8439
8451
  ...getDefaultRegisteredComponents(),
8440
- ...props.customComponents || []
8452
+ ...props.customComponents?.filter(({ models }) => {
8453
+ if (!models?.length)
8454
+ return true;
8455
+ if (!props.model)
8456
+ return true;
8457
+ return models.includes(props.model);
8458
+ }) || []
8441
8459
  ].reduce(
8442
8460
  (acc, { component, ...info }) => ({
8443
8461
  ...acc,
@@ -8467,7 +8485,13 @@ function ContentComponent(props) {
8467
8485
  apiVersion: props.apiVersion,
8468
8486
  componentInfos: [
8469
8487
  ...getDefaultRegisteredComponents(),
8470
- ...props.customComponents || []
8488
+ ...props.customComponents?.filter(({ models }) => {
8489
+ if (!models?.length)
8490
+ return true;
8491
+ if (!props.model)
8492
+ return true;
8493
+ return models.includes(props.model);
8494
+ }) || []
8471
8495
  ].reduce(
8472
8496
  (acc, { component: _, ...info }) => ({
8473
8497
  ...acc,
@@ -8477,7 +8501,8 @@ function ContentComponent(props) {
8477
8501
  ),
8478
8502
  inheritedStyles: {},
8479
8503
  BlocksWrapper: props.blocksWrapper || "div",
8480
- BlocksWrapperProps: props.blocksWrapperProps || {}
8504
+ BlocksWrapperProps: props.blocksWrapperProps || {},
8505
+ nonce: props.nonce || ""
8481
8506
  });
8482
8507
  function contentSetState(newRootState) {
8483
8508
  setBuilderContextSignal((PREVIOUS_VALUE) => ({
@@ -8490,6 +8515,7 @@ function ContentComponent(props) {
8490
8515
  registeredComponents: registeredComponents()
8491
8516
  }}
8492
8517
  ><Enable_editor_default
8518
+ nonce={props.nonce}
8493
8519
  content={props.content}
8494
8520
  data={props.data}
8495
8521
  model={props.model}
@@ -8510,8 +8536,10 @@ function ContentComponent(props) {
8510
8536
  <Show13 when={props.isSsrAbTest}><Inlined_script_default
8511
8537
  id="builderio-variant-visibility"
8512
8538
  scriptStr={scriptStr()}
8539
+ nonce={props.nonce || ""}
8513
8540
  /></Show13>
8514
8541
  <Show13 when={TARGET !== "reactNative"}><Styles_default
8542
+ nonce={props.nonce || ""}
8515
8543
  isNestedRender={props.isNestedRender}
8516
8544
  contentId={builderContextSignal().content?.id}
8517
8545
  cssCode={builderContextSignal().content?.data?.cssCode}
@@ -8563,21 +8591,25 @@ function ContentVariants(props) {
8563
8591
  <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
8564
8592
  id="builderio-init-variants-fns"
8565
8593
  scriptStr={getInitVariantsFnsScriptString()}
8594
+ nonce={props.nonce || ""}
8566
8595
  /></Show14>
8567
8596
  <Show14 when={shouldRenderVariants()}>
8568
8597
  <Inlined_styles_default
8569
8598
  id="builderio-variants"
8570
8599
  styles={hideVariantsStyleString()}
8600
+ nonce={props.nonce || ""}
8571
8601
  />
8572
8602
  <Inlined_script_default
8573
8603
  id="builderio-variants-visibility"
8574
8604
  scriptStr={updateCookieAndStylesScriptStr()}
8605
+ nonce={props.nonce || ""}
8575
8606
  />
8576
8607
  <For9 each={getVariants(props.content)}>{(variant, _index) => {
8577
8608
  const index = _index();
8578
8609
  return <Content_default
8579
8610
  isNestedRender={props.isNestedRender}
8580
8611
  key={variant.testVariationId}
8612
+ nonce={props.nonce}
8581
8613
  content={variant}
8582
8614
  showContent={false}
8583
8615
  model={props.model}
@@ -8600,6 +8632,7 @@ function ContentVariants(props) {
8600
8632
  }}</For9>
8601
8633
  </Show14>
8602
8634
  <Content_default
8635
+ nonce={props.nonce}
8603
8636
  isNestedRender={props.isNestedRender}
8604
8637
  {...{}}
8605
8638
  content={defaultContent()}
@@ -8684,8 +8717,9 @@ function Symbol2(props) {
8684
8717
  function onUpdateFn_0() {
8685
8718
  setContent();
8686
8719
  }
8687
- createEffect4(on4(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
8720
+ createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
8688
8721
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
8722
+ nonce={props.builderContext.nonce}
8689
8723
  isNestedRender={true}
8690
8724
  apiVersion={props.builderContext.apiVersion}
8691
8725
  apiKey={props.builderContext.apiKey}