@builder.io/sdk-solid 1.0.15 → 1.0.16

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.
@@ -871,7 +871,7 @@ function InlinedStyles(props) {
871
871
  effect((_p$) => {
872
872
  const _v$ = props.styles, _v$2 = props.id;
873
873
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
874
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
874
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
875
875
  return _p$;
876
876
  }, {
877
877
  _v$: void 0,
@@ -942,6 +942,7 @@ function BlockStyles(props) {
942
942
  },
943
943
  get children() {
944
944
  return createComponent(inlined_styles_default, {
945
+ id: "builderio-block",
945
946
  get styles() {
946
947
  return css5();
947
948
  }
@@ -1658,6 +1659,7 @@ function Columns(props) {
1658
1659
  when: TARGET !== "reactNative",
1659
1660
  get children() {
1660
1661
  return createComponent(inlined_styles_default, {
1662
+ id: "builderio-columns",
1661
1663
  get styles() {
1662
1664
  return columnsStyles();
1663
1665
  }
@@ -3929,7 +3931,7 @@ var checkShouldRenderVariants = ({
3929
3931
  };
3930
3932
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
3931
3933
  var isHydrationTarget = getIsHydrationTarget(TARGET);
3932
- var getScriptString = () => `
3934
+ var getInitVariantsFnsScriptString = () => `
3933
3935
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
3934
3936
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
3935
3937
  `;
@@ -3948,9 +3950,9 @@ function InlinedScript(props) {
3948
3950
  return (() => {
3949
3951
  const _el$ = _tmpl$16();
3950
3952
  effect((_p$) => {
3951
- const _v$ = props.scriptStr, _v$2 = props.id || "";
3953
+ const _v$ = props.scriptStr, _v$2 = props.id;
3952
3954
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
3953
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
3955
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
3954
3956
  return _p$;
3955
3957
  }, {
3956
3958
  _v$: void 0,
@@ -4447,7 +4449,7 @@ function isFromTrustedHost(trustedHosts, e) {
4447
4449
  }
4448
4450
 
4449
4451
  // src/constants/sdk-version.ts
4450
- var SDK_VERSION = "1.0.15";
4452
+ var SDK_VERSION = "1.0.16";
4451
4453
 
4452
4454
  // src/functions/register.ts
4453
4455
  var registry = {};
@@ -5029,6 +5031,7 @@ ${getFontCss({
5029
5031
  ${getDefaultStyles(props.isNestedRender)}
5030
5032
  `.trim());
5031
5033
  return createComponent(inlined_styles_default, {
5034
+ id: "builderio-content",
5032
5035
  get styles() {
5033
5036
  return injectedStyles();
5034
5037
  }
@@ -5182,6 +5185,7 @@ function ContentComponent(props) {
5182
5185
  },
5183
5186
  get children() {
5184
5187
  return createComponent(inlined_script_default, {
5188
+ id: "builderio-variant-visibility",
5185
5189
  get scriptStr() {
5186
5190
  return scriptStr();
5187
5191
  }
@@ -5259,8 +5263,9 @@ function ContentVariants(props) {
5259
5263
  },
5260
5264
  get children() {
5261
5265
  return createComponent(inlined_script_default, {
5266
+ id: "builderio-init-variants-fns",
5262
5267
  get scriptStr() {
5263
- return getScriptString();
5268
+ return getInitVariantsFnsScriptString();
5264
5269
  }
5265
5270
  });
5266
5271
  }
@@ -5270,13 +5275,12 @@ function ContentVariants(props) {
5270
5275
  },
5271
5276
  get children() {
5272
5277
  return [createComponent(inlined_styles_default, {
5273
- get id() {
5274
- return `variants-styles-${props.content?.id}`;
5275
- },
5278
+ id: "builderio-variants",
5276
5279
  get styles() {
5277
5280
  return hideVariantsStyleString();
5278
5281
  }
5279
5282
  }), createComponent(inlined_script_default, {
5283
+ id: "builderio-variants-visibility",
5280
5284
  get scriptStr() {
5281
5285
  return updateCookieAndStylesScriptStr();
5282
5286
  }
@@ -857,7 +857,7 @@ var getSizesForBreakpoints = ({
857
857
 
858
858
  // src/components/inlined-styles.tsx
859
859
  function InlinedStyles(props) {
860
- return <style innerHTML={props.styles} id={props.id} />;
860
+ return <style innerHTML={props.styles} data-id={props.id} />;
861
861
  }
862
862
  var Inlined_styles_default = InlinedStyles;
863
863
 
@@ -923,7 +923,7 @@ function BlockStyles(props) {
923
923
  }) : "";
924
924
  return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
925
925
  });
926
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default styles={css5()} /></Show2>;
926
+ return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
927
927
  }
928
928
  var Block_styles_default = BlockStyles;
929
929
 
@@ -1458,7 +1458,10 @@ function Columns(props) {
1458
1458
  style={columnsCssVars()}
1459
1459
  {...{}}
1460
1460
  >
1461
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default styles={columnsStyles()} /></Show6>
1461
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1462
+ id="builderio-columns"
1463
+ styles={columnsStyles()}
1464
+ /></Show6>
1462
1465
  <For4 each={props.columns}>{(column, _index) => {
1463
1466
  const index = _index();
1464
1467
  return <Dynamic_renderer_default
@@ -3512,7 +3515,7 @@ var checkShouldRenderVariants = ({
3512
3515
  };
3513
3516
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
3514
3517
  var isHydrationTarget = getIsHydrationTarget(TARGET);
3515
- var getScriptString = () => `
3518
+ var getInitVariantsFnsScriptString = () => `
3516
3519
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
3517
3520
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
3518
3521
  `;
@@ -3529,7 +3532,7 @@ var getUpdateVariantVisibilityScript = ({
3529
3532
 
3530
3533
  // src/components/inlined-script.tsx
3531
3534
  function InlinedScript(props) {
3532
- return <script innerHTML={props.scriptStr} id={props.id || ""} />;
3535
+ return <script innerHTML={props.scriptStr} data-id={props.id} />;
3533
3536
  }
3534
3537
  var Inlined_script_default = InlinedScript;
3535
3538
 
@@ -4030,7 +4033,7 @@ function isFromTrustedHost(trustedHosts, e) {
4030
4033
  }
4031
4034
 
4032
4035
  // src/constants/sdk-version.ts
4033
- var SDK_VERSION = "1.0.15";
4036
+ var SDK_VERSION = "1.0.16";
4034
4037
 
4035
4038
  // src/functions/register.ts
4036
4039
  var registry = {};
@@ -4624,7 +4627,10 @@ ${getFontCss({
4624
4627
  ${getDefaultStyles(props.isNestedRender)}
4625
4628
  `.trim()
4626
4629
  );
4627
- return <Inlined_styles_default styles={injectedStyles()} />;
4630
+ return <Inlined_styles_default
4631
+ id="builderio-content"
4632
+ styles={injectedStyles()}
4633
+ />;
4628
4634
  }
4629
4635
  var Styles_default = ContentStyles;
4630
4636
 
@@ -4747,7 +4753,10 @@ function ContentComponent(props) {
4747
4753
  setBuilderContextSignal
4748
4754
  }}
4749
4755
  >
4750
- <Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
4756
+ <Show11 when={props.isSsrAbTest}><Inlined_script_default
4757
+ id="builderio-variant-visibility"
4758
+ scriptStr={scriptStr()}
4759
+ /></Show11>
4751
4760
  <Show11 when={TARGET !== "reactNative"}><Styles_default
4752
4761
  isNestedRender={props.isNestedRender}
4753
4762
  contentId={builderContextSignal().content?.id}
@@ -4797,13 +4806,17 @@ function ContentVariants(props) {
4797
4806
  setShouldRenderVariants(false);
4798
4807
  });
4799
4808
  return <>
4800
- <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
4809
+ <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
4810
+ id="builderio-init-variants-fns"
4811
+ scriptStr={getInitVariantsFnsScriptString()}
4812
+ /></Show12>
4801
4813
  <Show12 when={shouldRenderVariants()}>
4802
4814
  <Inlined_styles_default
4803
- id={`variants-styles-${props.content?.id}`}
4815
+ id="builderio-variants"
4804
4816
  styles={hideVariantsStyleString()}
4805
4817
  />
4806
4818
  <Inlined_script_default
4819
+ id="builderio-variants-visibility"
4807
4820
  scriptStr={updateCookieAndStylesScriptStr()}
4808
4821
  />
4809
4822
  <For7 each={getVariants(props.content)}>{(variant, _index) => {
@@ -865,7 +865,7 @@ function InlinedStyles(props) {
865
865
  effect((_p$) => {
866
866
  const _v$ = props.styles, _v$2 = props.id;
867
867
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
868
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
868
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
869
869
  return _p$;
870
870
  }, {
871
871
  _v$: void 0,
@@ -936,6 +936,7 @@ function BlockStyles(props) {
936
936
  },
937
937
  get children() {
938
938
  return createComponent(inlined_styles_default, {
939
+ id: "builderio-block",
939
940
  get styles() {
940
941
  return css5();
941
942
  }
@@ -1652,6 +1653,7 @@ function Columns(props) {
1652
1653
  when: TARGET !== "reactNative",
1653
1654
  get children() {
1654
1655
  return createComponent(inlined_styles_default, {
1656
+ id: "builderio-columns",
1655
1657
  get styles() {
1656
1658
  return columnsStyles();
1657
1659
  }
@@ -3919,7 +3921,7 @@ var checkShouldRenderVariants = ({
3919
3921
  };
3920
3922
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
3921
3923
  var isHydrationTarget = getIsHydrationTarget(TARGET);
3922
- var getScriptString = () => `
3924
+ var getInitVariantsFnsScriptString = () => `
3923
3925
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
3924
3926
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
3925
3927
  `;
@@ -3938,9 +3940,9 @@ function InlinedScript(props) {
3938
3940
  return (() => {
3939
3941
  const _el$ = _tmpl$16();
3940
3942
  effect((_p$) => {
3941
- const _v$ = props.scriptStr, _v$2 = props.id || "";
3943
+ const _v$ = props.scriptStr, _v$2 = props.id;
3942
3944
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
3943
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
3945
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
3944
3946
  return _p$;
3945
3947
  }, {
3946
3948
  _v$: void 0,
@@ -4432,7 +4434,7 @@ function isFromTrustedHost(trustedHosts, e) {
4432
4434
  }
4433
4435
 
4434
4436
  // src/constants/sdk-version.ts
4435
- var SDK_VERSION = "1.0.15";
4437
+ var SDK_VERSION = "1.0.16";
4436
4438
 
4437
4439
  // src/functions/register.ts
4438
4440
  var registry = {};
@@ -5012,6 +5014,7 @@ ${getFontCss({
5012
5014
  ${getDefaultStyles(props.isNestedRender)}
5013
5015
  `.trim());
5014
5016
  return createComponent(inlined_styles_default, {
5017
+ id: "builderio-content",
5015
5018
  get styles() {
5016
5019
  return injectedStyles();
5017
5020
  }
@@ -5165,6 +5168,7 @@ function ContentComponent(props) {
5165
5168
  },
5166
5169
  get children() {
5167
5170
  return createComponent(inlined_script_default, {
5171
+ id: "builderio-variant-visibility",
5168
5172
  get scriptStr() {
5169
5173
  return scriptStr();
5170
5174
  }
@@ -5242,8 +5246,9 @@ function ContentVariants(props) {
5242
5246
  },
5243
5247
  get children() {
5244
5248
  return createComponent(inlined_script_default, {
5249
+ id: "builderio-init-variants-fns",
5245
5250
  get scriptStr() {
5246
- return getScriptString();
5251
+ return getInitVariantsFnsScriptString();
5247
5252
  }
5248
5253
  });
5249
5254
  }
@@ -5253,13 +5258,12 @@ function ContentVariants(props) {
5253
5258
  },
5254
5259
  get children() {
5255
5260
  return [createComponent(inlined_styles_default, {
5256
- get id() {
5257
- return `variants-styles-${props.content?.id}`;
5258
- },
5261
+ id: "builderio-variants",
5259
5262
  get styles() {
5260
5263
  return hideVariantsStyleString();
5261
5264
  }
5262
5265
  }), createComponent(inlined_script_default, {
5266
+ id: "builderio-variants-visibility",
5263
5267
  get scriptStr() {
5264
5268
  return updateCookieAndStylesScriptStr();
5265
5269
  }
@@ -851,7 +851,7 @@ var getSizesForBreakpoints = ({
851
851
 
852
852
  // src/components/inlined-styles.tsx
853
853
  function InlinedStyles(props) {
854
- return <style innerHTML={props.styles} id={props.id} />;
854
+ return <style innerHTML={props.styles} data-id={props.id} />;
855
855
  }
856
856
  var Inlined_styles_default = InlinedStyles;
857
857
 
@@ -917,7 +917,7 @@ function BlockStyles(props) {
917
917
  }) : "";
918
918
  return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
919
919
  });
920
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default styles={css5()} /></Show2>;
920
+ return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
921
921
  }
922
922
  var Block_styles_default = BlockStyles;
923
923
 
@@ -1452,7 +1452,10 @@ function Columns(props) {
1452
1452
  style={columnsCssVars()}
1453
1453
  {...{}}
1454
1454
  >
1455
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default styles={columnsStyles()} /></Show6>
1455
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1456
+ id="builderio-columns"
1457
+ styles={columnsStyles()}
1458
+ /></Show6>
1456
1459
  <For4 each={props.columns}>{(column, _index) => {
1457
1460
  const index = _index();
1458
1461
  return <Dynamic_renderer_default
@@ -3502,7 +3505,7 @@ var checkShouldRenderVariants = ({
3502
3505
  };
3503
3506
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
3504
3507
  var isHydrationTarget = getIsHydrationTarget(TARGET);
3505
- var getScriptString = () => `
3508
+ var getInitVariantsFnsScriptString = () => `
3506
3509
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
3507
3510
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
3508
3511
  `;
@@ -3519,7 +3522,7 @@ var getUpdateVariantVisibilityScript = ({
3519
3522
 
3520
3523
  // src/components/inlined-script.tsx
3521
3524
  function InlinedScript(props) {
3522
- return <script innerHTML={props.scriptStr} id={props.id || ""} />;
3525
+ return <script innerHTML={props.scriptStr} data-id={props.id} />;
3523
3526
  }
3524
3527
  var Inlined_script_default = InlinedScript;
3525
3528
 
@@ -4015,7 +4018,7 @@ function isFromTrustedHost(trustedHosts, e) {
4015
4018
  }
4016
4019
 
4017
4020
  // src/constants/sdk-version.ts
4018
- var SDK_VERSION = "1.0.15";
4021
+ var SDK_VERSION = "1.0.16";
4019
4022
 
4020
4023
  // src/functions/register.ts
4021
4024
  var registry = {};
@@ -4607,7 +4610,10 @@ ${getFontCss({
4607
4610
  ${getDefaultStyles(props.isNestedRender)}
4608
4611
  `.trim()
4609
4612
  );
4610
- return <Inlined_styles_default styles={injectedStyles()} />;
4613
+ return <Inlined_styles_default
4614
+ id="builderio-content"
4615
+ styles={injectedStyles()}
4616
+ />;
4611
4617
  }
4612
4618
  var Styles_default = ContentStyles;
4613
4619
 
@@ -4730,7 +4736,10 @@ function ContentComponent(props) {
4730
4736
  setBuilderContextSignal
4731
4737
  }}
4732
4738
  >
4733
- <Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
4739
+ <Show11 when={props.isSsrAbTest}><Inlined_script_default
4740
+ id="builderio-variant-visibility"
4741
+ scriptStr={scriptStr()}
4742
+ /></Show11>
4734
4743
  <Show11 when={TARGET !== "reactNative"}><Styles_default
4735
4744
  isNestedRender={props.isNestedRender}
4736
4745
  contentId={builderContextSignal().content?.id}
@@ -4780,13 +4789,17 @@ function ContentVariants(props) {
4780
4789
  setShouldRenderVariants(false);
4781
4790
  });
4782
4791
  return <>
4783
- <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
4792
+ <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
4793
+ id="builderio-init-variants-fns"
4794
+ scriptStr={getInitVariantsFnsScriptString()}
4795
+ /></Show12>
4784
4796
  <Show12 when={shouldRenderVariants()}>
4785
4797
  <Inlined_styles_default
4786
- id={`variants-styles-${props.content?.id}`}
4798
+ id="builderio-variants"
4787
4799
  styles={hideVariantsStyleString()}
4788
4800
  />
4789
4801
  <Inlined_script_default
4802
+ id="builderio-variants-visibility"
4790
4803
  scriptStr={updateCookieAndStylesScriptStr()}
4791
4804
  />
4792
4805
  <For7 each={getVariants(props.content)}>{(variant, _index) => {
package/lib/edge/dev.js CHANGED
@@ -4024,7 +4024,7 @@ function InlinedStyles(props) {
4024
4024
  effect((_p$) => {
4025
4025
  const _v$ = props.styles, _v$2 = props.id;
4026
4026
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
4027
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
4027
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
4028
4028
  return _p$;
4029
4029
  }, {
4030
4030
  _v$: void 0,
@@ -4095,6 +4095,7 @@ function BlockStyles(props) {
4095
4095
  },
4096
4096
  get children() {
4097
4097
  return createComponent(inlined_styles_default, {
4098
+ id: "builderio-block",
4098
4099
  get styles() {
4099
4100
  return css5();
4100
4101
  }
@@ -4811,6 +4812,7 @@ function Columns(props) {
4811
4812
  when: TARGET !== "reactNative",
4812
4813
  get children() {
4813
4814
  return createComponent(inlined_styles_default, {
4815
+ id: "builderio-columns",
4814
4816
  get styles() {
4815
4817
  return columnsStyles();
4816
4818
  }
@@ -7082,7 +7084,7 @@ var checkShouldRenderVariants = ({
7082
7084
  };
7083
7085
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
7084
7086
  var isHydrationTarget = getIsHydrationTarget(TARGET);
7085
- var getScriptString = () => `
7087
+ var getInitVariantsFnsScriptString = () => `
7086
7088
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
7087
7089
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
7088
7090
  `;
@@ -7101,9 +7103,9 @@ function InlinedScript(props) {
7101
7103
  return (() => {
7102
7104
  const _el$ = _tmpl$16();
7103
7105
  effect((_p$) => {
7104
- const _v$ = props.scriptStr, _v$2 = props.id || "";
7106
+ const _v$ = props.scriptStr, _v$2 = props.id;
7105
7107
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
7106
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
7108
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
7107
7109
  return _p$;
7108
7110
  }, {
7109
7111
  _v$: void 0,
@@ -7600,7 +7602,7 @@ function isFromTrustedHost(trustedHosts, e) {
7600
7602
  }
7601
7603
 
7602
7604
  // src/constants/sdk-version.ts
7603
- var SDK_VERSION = "1.0.15";
7605
+ var SDK_VERSION = "1.0.16";
7604
7606
 
7605
7607
  // src/functions/register.ts
7606
7608
  var registry = {};
@@ -8182,6 +8184,7 @@ ${getFontCss({
8182
8184
  ${getDefaultStyles(props.isNestedRender)}
8183
8185
  `.trim());
8184
8186
  return createComponent(inlined_styles_default, {
8187
+ id: "builderio-content",
8185
8188
  get styles() {
8186
8189
  return injectedStyles();
8187
8190
  }
@@ -8335,6 +8338,7 @@ function ContentComponent(props) {
8335
8338
  },
8336
8339
  get children() {
8337
8340
  return createComponent(inlined_script_default, {
8341
+ id: "builderio-variant-visibility",
8338
8342
  get scriptStr() {
8339
8343
  return scriptStr();
8340
8344
  }
@@ -8412,8 +8416,9 @@ function ContentVariants(props) {
8412
8416
  },
8413
8417
  get children() {
8414
8418
  return createComponent(inlined_script_default, {
8419
+ id: "builderio-init-variants-fns",
8415
8420
  get scriptStr() {
8416
- return getScriptString();
8421
+ return getInitVariantsFnsScriptString();
8417
8422
  }
8418
8423
  });
8419
8424
  }
@@ -8423,13 +8428,12 @@ function ContentVariants(props) {
8423
8428
  },
8424
8429
  get children() {
8425
8430
  return [createComponent(inlined_styles_default, {
8426
- get id() {
8427
- return `variants-styles-${props.content?.id}`;
8428
- },
8431
+ id: "builderio-variants",
8429
8432
  get styles() {
8430
8433
  return hideVariantsStyleString();
8431
8434
  }
8432
8435
  }), createComponent(inlined_script_default, {
8436
+ id: "builderio-variants-visibility",
8433
8437
  get scriptStr() {
8434
8438
  return updateCookieAndStylesScriptStr();
8435
8439
  }
package/lib/edge/dev.jsx CHANGED
@@ -4012,7 +4012,7 @@ var getSizesForBreakpoints = ({
4012
4012
 
4013
4013
  // src/components/inlined-styles.tsx
4014
4014
  function InlinedStyles(props) {
4015
- return <style innerHTML={props.styles} id={props.id} />;
4015
+ return <style innerHTML={props.styles} data-id={props.id} />;
4016
4016
  }
4017
4017
  var Inlined_styles_default = InlinedStyles;
4018
4018
 
@@ -4078,7 +4078,7 @@ function BlockStyles(props) {
4078
4078
  }) : "";
4079
4079
  return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
4080
4080
  });
4081
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default styles={css5()} /></Show2>;
4081
+ return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
4082
4082
  }
4083
4083
  var Block_styles_default = BlockStyles;
4084
4084
 
@@ -4613,7 +4613,10 @@ function Columns(props) {
4613
4613
  style={columnsCssVars()}
4614
4614
  {...{}}
4615
4615
  >
4616
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default styles={columnsStyles()} /></Show6>
4616
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
4617
+ id="builderio-columns"
4618
+ styles={columnsStyles()}
4619
+ /></Show6>
4617
4620
  <For4 each={props.columns}>{(column, _index) => {
4618
4621
  const index = _index();
4619
4622
  return <Dynamic_renderer_default
@@ -6667,7 +6670,7 @@ var checkShouldRenderVariants = ({
6667
6670
  };
6668
6671
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
6669
6672
  var isHydrationTarget = getIsHydrationTarget(TARGET);
6670
- var getScriptString = () => `
6673
+ var getInitVariantsFnsScriptString = () => `
6671
6674
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
6672
6675
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
6673
6676
  `;
@@ -6684,7 +6687,7 @@ var getUpdateVariantVisibilityScript = ({
6684
6687
 
6685
6688
  // src/components/inlined-script.tsx
6686
6689
  function InlinedScript(props) {
6687
- return <script innerHTML={props.scriptStr} id={props.id || ""} />;
6690
+ return <script innerHTML={props.scriptStr} data-id={props.id} />;
6688
6691
  }
6689
6692
  var Inlined_script_default = InlinedScript;
6690
6693
 
@@ -7185,7 +7188,7 @@ function isFromTrustedHost(trustedHosts, e) {
7185
7188
  }
7186
7189
 
7187
7190
  // src/constants/sdk-version.ts
7188
- var SDK_VERSION = "1.0.15";
7191
+ var SDK_VERSION = "1.0.16";
7189
7192
 
7190
7193
  // src/functions/register.ts
7191
7194
  var registry = {};
@@ -7779,7 +7782,10 @@ ${getFontCss({
7779
7782
  ${getDefaultStyles(props.isNestedRender)}
7780
7783
  `.trim()
7781
7784
  );
7782
- return <Inlined_styles_default styles={injectedStyles()} />;
7785
+ return <Inlined_styles_default
7786
+ id="builderio-content"
7787
+ styles={injectedStyles()}
7788
+ />;
7783
7789
  }
7784
7790
  var Styles_default = ContentStyles;
7785
7791
 
@@ -7902,7 +7908,10 @@ function ContentComponent(props) {
7902
7908
  setBuilderContextSignal
7903
7909
  }}
7904
7910
  >
7905
- <Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
7911
+ <Show11 when={props.isSsrAbTest}><Inlined_script_default
7912
+ id="builderio-variant-visibility"
7913
+ scriptStr={scriptStr()}
7914
+ /></Show11>
7906
7915
  <Show11 when={TARGET !== "reactNative"}><Styles_default
7907
7916
  isNestedRender={props.isNestedRender}
7908
7917
  contentId={builderContextSignal().content?.id}
@@ -7952,13 +7961,17 @@ function ContentVariants(props) {
7952
7961
  setShouldRenderVariants(false);
7953
7962
  });
7954
7963
  return <>
7955
- <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
7964
+ <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
7965
+ id="builderio-init-variants-fns"
7966
+ scriptStr={getInitVariantsFnsScriptString()}
7967
+ /></Show12>
7956
7968
  <Show12 when={shouldRenderVariants()}>
7957
7969
  <Inlined_styles_default
7958
- id={`variants-styles-${props.content?.id}`}
7970
+ id="builderio-variants"
7959
7971
  styles={hideVariantsStyleString()}
7960
7972
  />
7961
7973
  <Inlined_script_default
7974
+ id="builderio-variants-visibility"
7962
7975
  scriptStr={updateCookieAndStylesScriptStr()}
7963
7976
  />
7964
7977
  <For7 each={getVariants(props.content)}>{(variant, _index) => {
package/lib/edge/index.js CHANGED
@@ -4018,7 +4018,7 @@ function InlinedStyles(props) {
4018
4018
  effect((_p$) => {
4019
4019
  const _v$ = props.styles, _v$2 = props.id;
4020
4020
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
4021
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
4021
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
4022
4022
  return _p$;
4023
4023
  }, {
4024
4024
  _v$: void 0,
@@ -4089,6 +4089,7 @@ function BlockStyles(props) {
4089
4089
  },
4090
4090
  get children() {
4091
4091
  return createComponent(inlined_styles_default, {
4092
+ id: "builderio-block",
4092
4093
  get styles() {
4093
4094
  return css5();
4094
4095
  }
@@ -4805,6 +4806,7 @@ function Columns(props) {
4805
4806
  when: TARGET !== "reactNative",
4806
4807
  get children() {
4807
4808
  return createComponent(inlined_styles_default, {
4809
+ id: "builderio-columns",
4808
4810
  get styles() {
4809
4811
  return columnsStyles();
4810
4812
  }
@@ -7072,7 +7074,7 @@ var checkShouldRenderVariants = ({
7072
7074
  };
7073
7075
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
7074
7076
  var isHydrationTarget = getIsHydrationTarget(TARGET);
7075
- var getScriptString = () => `
7077
+ var getInitVariantsFnsScriptString = () => `
7076
7078
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
7077
7079
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
7078
7080
  `;
@@ -7091,9 +7093,9 @@ function InlinedScript(props) {
7091
7093
  return (() => {
7092
7094
  const _el$ = _tmpl$16();
7093
7095
  effect((_p$) => {
7094
- const _v$ = props.scriptStr, _v$2 = props.id || "";
7096
+ const _v$ = props.scriptStr, _v$2 = props.id;
7095
7097
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
7096
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
7098
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
7097
7099
  return _p$;
7098
7100
  }, {
7099
7101
  _v$: void 0,
@@ -7585,7 +7587,7 @@ function isFromTrustedHost(trustedHosts, e) {
7585
7587
  }
7586
7588
 
7587
7589
  // src/constants/sdk-version.ts
7588
- var SDK_VERSION = "1.0.15";
7590
+ var SDK_VERSION = "1.0.16";
7589
7591
 
7590
7592
  // src/functions/register.ts
7591
7593
  var registry = {};
@@ -8165,6 +8167,7 @@ ${getFontCss({
8165
8167
  ${getDefaultStyles(props.isNestedRender)}
8166
8168
  `.trim());
8167
8169
  return createComponent(inlined_styles_default, {
8170
+ id: "builderio-content",
8168
8171
  get styles() {
8169
8172
  return injectedStyles();
8170
8173
  }
@@ -8318,6 +8321,7 @@ function ContentComponent(props) {
8318
8321
  },
8319
8322
  get children() {
8320
8323
  return createComponent(inlined_script_default, {
8324
+ id: "builderio-variant-visibility",
8321
8325
  get scriptStr() {
8322
8326
  return scriptStr();
8323
8327
  }
@@ -8395,8 +8399,9 @@ function ContentVariants(props) {
8395
8399
  },
8396
8400
  get children() {
8397
8401
  return createComponent(inlined_script_default, {
8402
+ id: "builderio-init-variants-fns",
8398
8403
  get scriptStr() {
8399
- return getScriptString();
8404
+ return getInitVariantsFnsScriptString();
8400
8405
  }
8401
8406
  });
8402
8407
  }
@@ -8406,13 +8411,12 @@ function ContentVariants(props) {
8406
8411
  },
8407
8412
  get children() {
8408
8413
  return [createComponent(inlined_styles_default, {
8409
- get id() {
8410
- return `variants-styles-${props.content?.id}`;
8411
- },
8414
+ id: "builderio-variants",
8412
8415
  get styles() {
8413
8416
  return hideVariantsStyleString();
8414
8417
  }
8415
8418
  }), createComponent(inlined_script_default, {
8419
+ id: "builderio-variants-visibility",
8416
8420
  get scriptStr() {
8417
8421
  return updateCookieAndStylesScriptStr();
8418
8422
  }
@@ -4006,7 +4006,7 @@ var getSizesForBreakpoints = ({
4006
4006
 
4007
4007
  // src/components/inlined-styles.tsx
4008
4008
  function InlinedStyles(props) {
4009
- return <style innerHTML={props.styles} id={props.id} />;
4009
+ return <style innerHTML={props.styles} data-id={props.id} />;
4010
4010
  }
4011
4011
  var Inlined_styles_default = InlinedStyles;
4012
4012
 
@@ -4072,7 +4072,7 @@ function BlockStyles(props) {
4072
4072
  }) : "";
4073
4073
  return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
4074
4074
  });
4075
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default styles={css5()} /></Show2>;
4075
+ return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
4076
4076
  }
4077
4077
  var Block_styles_default = BlockStyles;
4078
4078
 
@@ -4607,7 +4607,10 @@ function Columns(props) {
4607
4607
  style={columnsCssVars()}
4608
4608
  {...{}}
4609
4609
  >
4610
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default styles={columnsStyles()} /></Show6>
4610
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
4611
+ id="builderio-columns"
4612
+ styles={columnsStyles()}
4613
+ /></Show6>
4611
4614
  <For4 each={props.columns}>{(column, _index) => {
4612
4615
  const index = _index();
4613
4616
  return <Dynamic_renderer_default
@@ -6657,7 +6660,7 @@ var checkShouldRenderVariants = ({
6657
6660
  };
6658
6661
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
6659
6662
  var isHydrationTarget = getIsHydrationTarget(TARGET);
6660
- var getScriptString = () => `
6663
+ var getInitVariantsFnsScriptString = () => `
6661
6664
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
6662
6665
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
6663
6666
  `;
@@ -6674,7 +6677,7 @@ var getUpdateVariantVisibilityScript = ({
6674
6677
 
6675
6678
  // src/components/inlined-script.tsx
6676
6679
  function InlinedScript(props) {
6677
- return <script innerHTML={props.scriptStr} id={props.id || ""} />;
6680
+ return <script innerHTML={props.scriptStr} data-id={props.id} />;
6678
6681
  }
6679
6682
  var Inlined_script_default = InlinedScript;
6680
6683
 
@@ -7170,7 +7173,7 @@ function isFromTrustedHost(trustedHosts, e) {
7170
7173
  }
7171
7174
 
7172
7175
  // src/constants/sdk-version.ts
7173
- var SDK_VERSION = "1.0.15";
7176
+ var SDK_VERSION = "1.0.16";
7174
7177
 
7175
7178
  // src/functions/register.ts
7176
7179
  var registry = {};
@@ -7762,7 +7765,10 @@ ${getFontCss({
7762
7765
  ${getDefaultStyles(props.isNestedRender)}
7763
7766
  `.trim()
7764
7767
  );
7765
- return <Inlined_styles_default styles={injectedStyles()} />;
7768
+ return <Inlined_styles_default
7769
+ id="builderio-content"
7770
+ styles={injectedStyles()}
7771
+ />;
7766
7772
  }
7767
7773
  var Styles_default = ContentStyles;
7768
7774
 
@@ -7885,7 +7891,10 @@ function ContentComponent(props) {
7885
7891
  setBuilderContextSignal
7886
7892
  }}
7887
7893
  >
7888
- <Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
7894
+ <Show11 when={props.isSsrAbTest}><Inlined_script_default
7895
+ id="builderio-variant-visibility"
7896
+ scriptStr={scriptStr()}
7897
+ /></Show11>
7889
7898
  <Show11 when={TARGET !== "reactNative"}><Styles_default
7890
7899
  isNestedRender={props.isNestedRender}
7891
7900
  contentId={builderContextSignal().content?.id}
@@ -7935,13 +7944,17 @@ function ContentVariants(props) {
7935
7944
  setShouldRenderVariants(false);
7936
7945
  });
7937
7946
  return <>
7938
- <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
7947
+ <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
7948
+ id="builderio-init-variants-fns"
7949
+ scriptStr={getInitVariantsFnsScriptString()}
7950
+ /></Show12>
7939
7951
  <Show12 when={shouldRenderVariants()}>
7940
7952
  <Inlined_styles_default
7941
- id={`variants-styles-${props.content?.id}`}
7953
+ id="builderio-variants"
7942
7954
  styles={hideVariantsStyleString()}
7943
7955
  />
7944
7956
  <Inlined_script_default
7957
+ id="builderio-variants-visibility"
7945
7958
  scriptStr={updateCookieAndStylesScriptStr()}
7946
7959
  />
7947
7960
  <For7 each={getVariants(props.content)}>{(variant, _index) => {
package/lib/node/dev.js CHANGED
@@ -996,7 +996,7 @@ function InlinedStyles(props) {
996
996
  effect((_p$) => {
997
997
  const _v$ = props.styles, _v$2 = props.id;
998
998
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
999
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
999
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
1000
1000
  return _p$;
1001
1001
  }, {
1002
1002
  _v$: void 0,
@@ -1067,6 +1067,7 @@ function BlockStyles(props) {
1067
1067
  },
1068
1068
  get children() {
1069
1069
  return createComponent(inlined_styles_default, {
1070
+ id: "builderio-block",
1070
1071
  get styles() {
1071
1072
  return css5();
1072
1073
  }
@@ -1783,6 +1784,7 @@ function Columns(props) {
1783
1784
  when: TARGET !== "reactNative",
1784
1785
  get children() {
1785
1786
  return createComponent(inlined_styles_default, {
1787
+ id: "builderio-columns",
1786
1788
  get styles() {
1787
1789
  return columnsStyles();
1788
1790
  }
@@ -4054,7 +4056,7 @@ var checkShouldRenderVariants = ({
4054
4056
  };
4055
4057
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
4056
4058
  var isHydrationTarget = getIsHydrationTarget(TARGET);
4057
- var getScriptString = () => `
4059
+ var getInitVariantsFnsScriptString = () => `
4058
4060
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
4059
4061
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
4060
4062
  `;
@@ -4073,9 +4075,9 @@ function InlinedScript(props) {
4073
4075
  return (() => {
4074
4076
  const _el$ = _tmpl$16();
4075
4077
  effect((_p$) => {
4076
- const _v$ = props.scriptStr, _v$2 = props.id || "";
4078
+ const _v$ = props.scriptStr, _v$2 = props.id;
4077
4079
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
4078
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
4080
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
4079
4081
  return _p$;
4080
4082
  }, {
4081
4083
  _v$: void 0,
@@ -4572,7 +4574,7 @@ function isFromTrustedHost(trustedHosts, e) {
4572
4574
  }
4573
4575
 
4574
4576
  // src/constants/sdk-version.ts
4575
- var SDK_VERSION = "1.0.15";
4577
+ var SDK_VERSION = "1.0.16";
4576
4578
 
4577
4579
  // src/functions/register.ts
4578
4580
  var registry = {};
@@ -5154,6 +5156,7 @@ ${getFontCss({
5154
5156
  ${getDefaultStyles(props.isNestedRender)}
5155
5157
  `.trim());
5156
5158
  return createComponent(inlined_styles_default, {
5159
+ id: "builderio-content",
5157
5160
  get styles() {
5158
5161
  return injectedStyles();
5159
5162
  }
@@ -5307,6 +5310,7 @@ function ContentComponent(props) {
5307
5310
  },
5308
5311
  get children() {
5309
5312
  return createComponent(inlined_script_default, {
5313
+ id: "builderio-variant-visibility",
5310
5314
  get scriptStr() {
5311
5315
  return scriptStr();
5312
5316
  }
@@ -5384,8 +5388,9 @@ function ContentVariants(props) {
5384
5388
  },
5385
5389
  get children() {
5386
5390
  return createComponent(inlined_script_default, {
5391
+ id: "builderio-init-variants-fns",
5387
5392
  get scriptStr() {
5388
- return getScriptString();
5393
+ return getInitVariantsFnsScriptString();
5389
5394
  }
5390
5395
  });
5391
5396
  }
@@ -5395,13 +5400,12 @@ function ContentVariants(props) {
5395
5400
  },
5396
5401
  get children() {
5397
5402
  return [createComponent(inlined_styles_default, {
5398
- get id() {
5399
- return `variants-styles-${props.content?.id}`;
5400
- },
5403
+ id: "builderio-variants",
5401
5404
  get styles() {
5402
5405
  return hideVariantsStyleString();
5403
5406
  }
5404
5407
  }), createComponent(inlined_script_default, {
5408
+ id: "builderio-variants-visibility",
5405
5409
  get scriptStr() {
5406
5410
  return updateCookieAndStylesScriptStr();
5407
5411
  }
package/lib/node/dev.jsx CHANGED
@@ -984,7 +984,7 @@ var getSizesForBreakpoints = ({
984
984
 
985
985
  // src/components/inlined-styles.tsx
986
986
  function InlinedStyles(props) {
987
- return <style innerHTML={props.styles} id={props.id} />;
987
+ return <style innerHTML={props.styles} data-id={props.id} />;
988
988
  }
989
989
  var Inlined_styles_default = InlinedStyles;
990
990
 
@@ -1050,7 +1050,7 @@ function BlockStyles(props) {
1050
1050
  }) : "";
1051
1051
  return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
1052
1052
  });
1053
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default styles={css5()} /></Show2>;
1053
+ return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
1054
1054
  }
1055
1055
  var Block_styles_default = BlockStyles;
1056
1056
 
@@ -1585,7 +1585,10 @@ function Columns(props) {
1585
1585
  style={columnsCssVars()}
1586
1586
  {...{}}
1587
1587
  >
1588
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default styles={columnsStyles()} /></Show6>
1588
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1589
+ id="builderio-columns"
1590
+ styles={columnsStyles()}
1591
+ /></Show6>
1589
1592
  <For4 each={props.columns}>{(column, _index) => {
1590
1593
  const index = _index();
1591
1594
  return <Dynamic_renderer_default
@@ -3639,7 +3642,7 @@ var checkShouldRenderVariants = ({
3639
3642
  };
3640
3643
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
3641
3644
  var isHydrationTarget = getIsHydrationTarget(TARGET);
3642
- var getScriptString = () => `
3645
+ var getInitVariantsFnsScriptString = () => `
3643
3646
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
3644
3647
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
3645
3648
  `;
@@ -3656,7 +3659,7 @@ var getUpdateVariantVisibilityScript = ({
3656
3659
 
3657
3660
  // src/components/inlined-script.tsx
3658
3661
  function InlinedScript(props) {
3659
- return <script innerHTML={props.scriptStr} id={props.id || ""} />;
3662
+ return <script innerHTML={props.scriptStr} data-id={props.id} />;
3660
3663
  }
3661
3664
  var Inlined_script_default = InlinedScript;
3662
3665
 
@@ -4157,7 +4160,7 @@ function isFromTrustedHost(trustedHosts, e) {
4157
4160
  }
4158
4161
 
4159
4162
  // src/constants/sdk-version.ts
4160
- var SDK_VERSION = "1.0.15";
4163
+ var SDK_VERSION = "1.0.16";
4161
4164
 
4162
4165
  // src/functions/register.ts
4163
4166
  var registry = {};
@@ -4751,7 +4754,10 @@ ${getFontCss({
4751
4754
  ${getDefaultStyles(props.isNestedRender)}
4752
4755
  `.trim()
4753
4756
  );
4754
- return <Inlined_styles_default styles={injectedStyles()} />;
4757
+ return <Inlined_styles_default
4758
+ id="builderio-content"
4759
+ styles={injectedStyles()}
4760
+ />;
4755
4761
  }
4756
4762
  var Styles_default = ContentStyles;
4757
4763
 
@@ -4874,7 +4880,10 @@ function ContentComponent(props) {
4874
4880
  setBuilderContextSignal
4875
4881
  }}
4876
4882
  >
4877
- <Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
4883
+ <Show11 when={props.isSsrAbTest}><Inlined_script_default
4884
+ id="builderio-variant-visibility"
4885
+ scriptStr={scriptStr()}
4886
+ /></Show11>
4878
4887
  <Show11 when={TARGET !== "reactNative"}><Styles_default
4879
4888
  isNestedRender={props.isNestedRender}
4880
4889
  contentId={builderContextSignal().content?.id}
@@ -4924,13 +4933,17 @@ function ContentVariants(props) {
4924
4933
  setShouldRenderVariants(false);
4925
4934
  });
4926
4935
  return <>
4927
- <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
4936
+ <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
4937
+ id="builderio-init-variants-fns"
4938
+ scriptStr={getInitVariantsFnsScriptString()}
4939
+ /></Show12>
4928
4940
  <Show12 when={shouldRenderVariants()}>
4929
4941
  <Inlined_styles_default
4930
- id={`variants-styles-${props.content?.id}`}
4942
+ id="builderio-variants"
4931
4943
  styles={hideVariantsStyleString()}
4932
4944
  />
4933
4945
  <Inlined_script_default
4946
+ id="builderio-variants-visibility"
4934
4947
  scriptStr={updateCookieAndStylesScriptStr()}
4935
4948
  />
4936
4949
  <For7 each={getVariants(props.content)}>{(variant, _index) => {
package/lib/node/index.js CHANGED
@@ -989,7 +989,7 @@ function InlinedStyles(props) {
989
989
  effect((_p$) => {
990
990
  const _v$ = props.styles, _v$2 = props.id;
991
991
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
992
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
992
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
993
993
  return _p$;
994
994
  }, {
995
995
  _v$: void 0,
@@ -1060,6 +1060,7 @@ function BlockStyles(props) {
1060
1060
  },
1061
1061
  get children() {
1062
1062
  return createComponent(inlined_styles_default, {
1063
+ id: "builderio-block",
1063
1064
  get styles() {
1064
1065
  return css5();
1065
1066
  }
@@ -1776,6 +1777,7 @@ function Columns(props) {
1776
1777
  when: TARGET !== "reactNative",
1777
1778
  get children() {
1778
1779
  return createComponent(inlined_styles_default, {
1780
+ id: "builderio-columns",
1779
1781
  get styles() {
1780
1782
  return columnsStyles();
1781
1783
  }
@@ -4043,7 +4045,7 @@ var checkShouldRenderVariants = ({
4043
4045
  };
4044
4046
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
4045
4047
  var isHydrationTarget = getIsHydrationTarget(TARGET);
4046
- var getScriptString = () => `
4048
+ var getInitVariantsFnsScriptString = () => `
4047
4049
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
4048
4050
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
4049
4051
  `;
@@ -4062,9 +4064,9 @@ function InlinedScript(props) {
4062
4064
  return (() => {
4063
4065
  const _el$ = _tmpl$16();
4064
4066
  effect((_p$) => {
4065
- const _v$ = props.scriptStr, _v$2 = props.id || "";
4067
+ const _v$ = props.scriptStr, _v$2 = props.id;
4066
4068
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
4067
- _v$2 !== _p$._v$2 && setAttribute(_el$, "id", _p$._v$2 = _v$2);
4069
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
4068
4070
  return _p$;
4069
4071
  }, {
4070
4072
  _v$: void 0,
@@ -4556,7 +4558,7 @@ function isFromTrustedHost(trustedHosts, e) {
4556
4558
  }
4557
4559
 
4558
4560
  // src/constants/sdk-version.ts
4559
- var SDK_VERSION = "1.0.15";
4561
+ var SDK_VERSION = "1.0.16";
4560
4562
 
4561
4563
  // src/functions/register.ts
4562
4564
  var registry = {};
@@ -5136,6 +5138,7 @@ ${getFontCss({
5136
5138
  ${getDefaultStyles(props.isNestedRender)}
5137
5139
  `.trim());
5138
5140
  return createComponent(inlined_styles_default, {
5141
+ id: "builderio-content",
5139
5142
  get styles() {
5140
5143
  return injectedStyles();
5141
5144
  }
@@ -5289,6 +5292,7 @@ function ContentComponent(props) {
5289
5292
  },
5290
5293
  get children() {
5291
5294
  return createComponent(inlined_script_default, {
5295
+ id: "builderio-variant-visibility",
5292
5296
  get scriptStr() {
5293
5297
  return scriptStr();
5294
5298
  }
@@ -5366,8 +5370,9 @@ function ContentVariants(props) {
5366
5370
  },
5367
5371
  get children() {
5368
5372
  return createComponent(inlined_script_default, {
5373
+ id: "builderio-init-variants-fns",
5369
5374
  get scriptStr() {
5370
- return getScriptString();
5375
+ return getInitVariantsFnsScriptString();
5371
5376
  }
5372
5377
  });
5373
5378
  }
@@ -5377,13 +5382,12 @@ function ContentVariants(props) {
5377
5382
  },
5378
5383
  get children() {
5379
5384
  return [createComponent(inlined_styles_default, {
5380
- get id() {
5381
- return `variants-styles-${props.content?.id}`;
5382
- },
5385
+ id: "builderio-variants",
5383
5386
  get styles() {
5384
5387
  return hideVariantsStyleString();
5385
5388
  }
5386
5389
  }), createComponent(inlined_script_default, {
5390
+ id: "builderio-variants-visibility",
5387
5391
  get scriptStr() {
5388
5392
  return updateCookieAndStylesScriptStr();
5389
5393
  }
@@ -977,7 +977,7 @@ var getSizesForBreakpoints = ({
977
977
 
978
978
  // src/components/inlined-styles.tsx
979
979
  function InlinedStyles(props) {
980
- return <style innerHTML={props.styles} id={props.id} />;
980
+ return <style innerHTML={props.styles} data-id={props.id} />;
981
981
  }
982
982
  var Inlined_styles_default = InlinedStyles;
983
983
 
@@ -1043,7 +1043,7 @@ function BlockStyles(props) {
1043
1043
  }) : "";
1044
1044
  return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
1045
1045
  });
1046
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default styles={css5()} /></Show2>;
1046
+ return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
1047
1047
  }
1048
1048
  var Block_styles_default = BlockStyles;
1049
1049
 
@@ -1578,7 +1578,10 @@ function Columns(props) {
1578
1578
  style={columnsCssVars()}
1579
1579
  {...{}}
1580
1580
  >
1581
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default styles={columnsStyles()} /></Show6>
1581
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1582
+ id="builderio-columns"
1583
+ styles={columnsStyles()}
1584
+ /></Show6>
1582
1585
  <For4 each={props.columns}>{(column, _index) => {
1583
1586
  const index = _index();
1584
1587
  return <Dynamic_renderer_default
@@ -3628,7 +3631,7 @@ var checkShouldRenderVariants = ({
3628
3631
  };
3629
3632
  var getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
3630
3633
  var isHydrationTarget = getIsHydrationTarget(TARGET);
3631
- var getScriptString = () => `
3634
+ var getInitVariantsFnsScriptString = () => `
3632
3635
  window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
3633
3636
  window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
3634
3637
  `;
@@ -3645,7 +3648,7 @@ var getUpdateVariantVisibilityScript = ({
3645
3648
 
3646
3649
  // src/components/inlined-script.tsx
3647
3650
  function InlinedScript(props) {
3648
- return <script innerHTML={props.scriptStr} id={props.id || ""} />;
3651
+ return <script innerHTML={props.scriptStr} data-id={props.id} />;
3649
3652
  }
3650
3653
  var Inlined_script_default = InlinedScript;
3651
3654
 
@@ -4141,7 +4144,7 @@ function isFromTrustedHost(trustedHosts, e) {
4141
4144
  }
4142
4145
 
4143
4146
  // src/constants/sdk-version.ts
4144
- var SDK_VERSION = "1.0.15";
4147
+ var SDK_VERSION = "1.0.16";
4145
4148
 
4146
4149
  // src/functions/register.ts
4147
4150
  var registry = {};
@@ -4733,7 +4736,10 @@ ${getFontCss({
4733
4736
  ${getDefaultStyles(props.isNestedRender)}
4734
4737
  `.trim()
4735
4738
  );
4736
- return <Inlined_styles_default styles={injectedStyles()} />;
4739
+ return <Inlined_styles_default
4740
+ id="builderio-content"
4741
+ styles={injectedStyles()}
4742
+ />;
4737
4743
  }
4738
4744
  var Styles_default = ContentStyles;
4739
4745
 
@@ -4856,7 +4862,10 @@ function ContentComponent(props) {
4856
4862
  setBuilderContextSignal
4857
4863
  }}
4858
4864
  >
4859
- <Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
4865
+ <Show11 when={props.isSsrAbTest}><Inlined_script_default
4866
+ id="builderio-variant-visibility"
4867
+ scriptStr={scriptStr()}
4868
+ /></Show11>
4860
4869
  <Show11 when={TARGET !== "reactNative"}><Styles_default
4861
4870
  isNestedRender={props.isNestedRender}
4862
4871
  contentId={builderContextSignal().content?.id}
@@ -4906,13 +4915,17 @@ function ContentVariants(props) {
4906
4915
  setShouldRenderVariants(false);
4907
4916
  });
4908
4917
  return <>
4909
- <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
4918
+ <Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
4919
+ id="builderio-init-variants-fns"
4920
+ scriptStr={getInitVariantsFnsScriptString()}
4921
+ /></Show12>
4910
4922
  <Show12 when={shouldRenderVariants()}>
4911
4923
  <Inlined_styles_default
4912
- id={`variants-styles-${props.content?.id}`}
4924
+ id="builderio-variants"
4913
4925
  styles={hideVariantsStyleString()}
4914
4926
  />
4915
4927
  <Inlined_script_default
4928
+ id="builderio-variants-visibility"
4916
4929
  scriptStr={updateCookieAndStylesScriptStr()}
4917
4930
  />
4918
4931
  <For7 each={getVariants(props.content)}>{(variant, _index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",