@builder.io/sdk-solid 4.0.10 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/node/dev.jsx CHANGED
@@ -2153,10 +2153,10 @@ function SectionComponent(props) {
2153
2153
  var section_default = SectionComponent;
2154
2154
 
2155
2155
  // src/blocks/symbol/symbol.tsx
2156
- import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
2156
+ import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo21, createSignal as createSignal21 } from "solid-js";
2157
2157
 
2158
2158
  // src/components/content-variants/content-variants.tsx
2159
- import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
2159
+ import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal20, createMemo as createMemo20 } from "solid-js";
2160
2160
 
2161
2161
  // src/blocks/personalization-container/helpers/inlined-fns.ts
2162
2162
  function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
@@ -2579,7 +2579,7 @@ var getDefaultCanTrack = (canTrack) => {
2579
2579
  };
2580
2580
 
2581
2581
  // src/components/content/content.tsx
2582
- import { Show as Show15, createSignal as createSignal18 } from "solid-js";
2582
+ import { Show as Show15, createSignal as createSignal19 } from "solid-js";
2583
2583
 
2584
2584
  // src/blocks/accordion/component-info.ts
2585
2585
  var defaultTitle = {
@@ -4775,8 +4775,20 @@ var componentInfo19 = {
4775
4775
  };
4776
4776
 
4777
4777
  // src/blocks/img/img.tsx
4778
+ import { createMemo as createMemo15 } from "solid-js";
4778
4779
  function ImgComponent(props) {
4780
+ const srcSetToUse = createMemo15(() => {
4781
+ const url = props.imgSrc || props.image;
4782
+ if (!url || typeof url !== "string") {
4783
+ return void 0;
4784
+ }
4785
+ if (!url.match(/builder\.io/)) {
4786
+ return void 0;
4787
+ }
4788
+ return getSrcSet(url);
4789
+ });
4779
4790
  return <><img
4791
+ loading="lazy"
4780
4792
  style={{
4781
4793
  "object-fit": props.backgroundSize || "cover",
4782
4794
  "object-position": props.backgroundPosition || "center"
@@ -4784,6 +4796,7 @@ function ImgComponent(props) {
4784
4796
  key={isEditing() && props.imgSrc || "default-key"}
4785
4797
  alt={props.altText}
4786
4798
  src={props.imgSrc || props.image}
4799
+ srcSet={srcSetToUse()}
4787
4800
  {...{}}
4788
4801
  {...props.attributes}
4789
4802
  /></>;
@@ -4878,10 +4891,10 @@ var componentInfo20 = {
4878
4891
  };
4879
4892
 
4880
4893
  // src/blocks/video/video.tsx
4881
- import { Show as Show13, onMount as onMount7, createSignal as createSignal15, createMemo as createMemo15 } from "solid-js";
4894
+ import { Show as Show13, onMount as onMount7, createSignal as createSignal16, createMemo as createMemo16 } from "solid-js";
4882
4895
  function Video(props) {
4883
- const [lazyVideoObserver, setLazyVideoObserver] = createSignal15(void 0);
4884
- const videoProps = createMemo15(() => {
4896
+ const [lazyVideoObserver, setLazyVideoObserver] = createSignal16(void 0);
4897
+ const videoProps = createMemo16(() => {
4885
4898
  return {
4886
4899
  ...props.autoPlay === true ? {
4887
4900
  autoPlay: true
@@ -4900,7 +4913,7 @@ function Video(props) {
4900
4913
  } : {}
4901
4914
  };
4902
4915
  });
4903
- const spreadProps = createMemo15(() => {
4916
+ const spreadProps = createMemo16(() => {
4904
4917
  return {
4905
4918
  ...videoProps()
4906
4919
  };
@@ -5140,8 +5153,8 @@ import {
5140
5153
  onMount as onMount8,
5141
5154
  on as on8,
5142
5155
  createEffect as createEffect8,
5143
- createMemo as createMemo16,
5144
- createSignal as createSignal16
5156
+ createMemo as createMemo17,
5157
+ createSignal as createSignal17
5145
5158
  } from "solid-js";
5146
5159
  import { Dynamic as Dynamic5 } from "solid-js/web";
5147
5160
 
@@ -5151,7 +5164,7 @@ function getPreviewContent(_searchParams) {
5151
5164
  }
5152
5165
 
5153
5166
  // src/constants/sdk-version.ts
5154
- var SDK_VERSION = "4.0.10";
5167
+ var SDK_VERSION = "4.1.1";
5155
5168
 
5156
5169
  // src/helpers/sdk-headers.ts
5157
5170
  var getSdkHeaders = () => ({
@@ -6012,13 +6025,13 @@ var getWrapperClassName = (variationId) => {
6012
6025
 
6013
6026
  // src/components/content/components/enable-editor.tsx
6014
6027
  function EnableEditor(props) {
6015
- const [hasExecuted, setHasExecuted] = createSignal16(false);
6016
- const [ContentWrapper, setContentWrapper] = createSignal16(
6028
+ const [hasExecuted, setHasExecuted] = createSignal17(false);
6029
+ const [ContentWrapper, setContentWrapper] = createSignal17(
6017
6030
  props.contentWrapper || "div"
6018
6031
  );
6019
- const [httpReqsData, setHttpReqsData] = createSignal16({});
6020
- const [httpReqsPending, setHttpReqsPending] = createSignal16({});
6021
- const [clicked, setClicked] = createSignal16(false);
6032
+ const [httpReqsData, setHttpReqsData] = createSignal17({});
6033
+ const [httpReqsPending, setHttpReqsPending] = createSignal17({});
6034
+ const [clicked, setClicked] = createSignal17(false);
6022
6035
  function mergeNewRootState(newData) {
6023
6036
  const combinedState = {
6024
6037
  ...props.builderContextSignal.rootState,
@@ -6052,7 +6065,7 @@ function EnableEditor(props) {
6052
6065
  content: newContentValue
6053
6066
  }));
6054
6067
  }
6055
- const showContentProps = createMemo16(() => {
6068
+ const showContentProps = createMemo17(() => {
6056
6069
  return props.showContent ? {} : {
6057
6070
  hidden: true,
6058
6071
  "aria-hidden": true
@@ -6237,14 +6250,14 @@ function EnableEditor(props) {
6237
6250
  }
6238
6251
  }
6239
6252
  });
6240
- const onUpdateFn_0_props_content = createMemo16(() => props.content);
6253
+ const onUpdateFn_0_props_content = createMemo17(() => props.content);
6241
6254
  function onUpdateFn_0() {
6242
6255
  if (props.content) {
6243
6256
  mergeNewContent(props.content);
6244
6257
  }
6245
6258
  }
6246
6259
  createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6247
- const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
6260
+ const onUpdateFn_1_props_builderContextSignal_rootState = createMemo17(
6248
6261
  () => props.builderContextSignal.rootState
6249
6262
  );
6250
6263
  function onUpdateFn_1() {
@@ -6256,14 +6269,14 @@ function EnableEditor(props) {
6256
6269
  onUpdateFn_1
6257
6270
  )
6258
6271
  );
6259
- const onUpdateFn_2_props_data = createMemo16(() => props.data);
6272
+ const onUpdateFn_2_props_data = createMemo17(() => props.data);
6260
6273
  function onUpdateFn_2() {
6261
6274
  if (props.data) {
6262
6275
  mergeNewRootState(props.data);
6263
6276
  }
6264
6277
  }
6265
6278
  createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6266
- const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
6279
+ const onUpdateFn_3_props_locale = createMemo17(() => props.locale);
6267
6280
  function onUpdateFn_3() {
6268
6281
  if (props.locale) {
6269
6282
  mergeNewRootState({
@@ -6295,9 +6308,9 @@ function EnableEditor(props) {
6295
6308
  var Enable_editor_default = EnableEditor;
6296
6309
 
6297
6310
  // src/components/content/components/styles.tsx
6298
- import { createSignal as createSignal17 } from "solid-js";
6311
+ import { createSignal as createSignal18 } from "solid-js";
6299
6312
  function ContentStyles(props) {
6300
- const [injectedStyles, setInjectedStyles] = createSignal17(
6313
+ const [injectedStyles, setInjectedStyles] = createSignal18(
6301
6314
  `
6302
6315
  ${getCss({
6303
6316
  cssCode: props.cssCode,
@@ -6355,7 +6368,7 @@ var getContentInitialValue = ({
6355
6368
 
6356
6369
  // src/components/content/content.tsx
6357
6370
  function ContentComponent(props) {
6358
- const [scriptStr, setScriptStr] = createSignal18(
6371
+ const [scriptStr, setScriptStr] = createSignal19(
6359
6372
  getUpdateVariantVisibilityScript({
6360
6373
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
6361
6374
  variationId: props.content?.testVariationId,
@@ -6363,7 +6376,7 @@ function ContentComponent(props) {
6363
6376
  contentId: props.content?.id
6364
6377
  })
6365
6378
  );
6366
- const [registeredComponents, setRegisteredComponents] = createSignal18(
6379
+ const [registeredComponents, setRegisteredComponents] = createSignal19(
6367
6380
  [
6368
6381
  ...getDefaultRegisteredComponents(),
6369
6382
  ...props.customComponents || []
@@ -6378,7 +6391,7 @@ function ContentComponent(props) {
6378
6391
  {}
6379
6392
  )
6380
6393
  );
6381
- const [builderContextSignal, setBuilderContextSignal] = createSignal18({
6394
+ const [builderContextSignal, setBuilderContextSignal] = createSignal19({
6382
6395
  content: getContentInitialValue({
6383
6396
  content: props.content,
6384
6397
  data: props.data
@@ -6486,13 +6499,13 @@ var Content_default = ContentComponent;
6486
6499
 
6487
6500
  // src/components/content-variants/content-variants.tsx
6488
6501
  function ContentVariants(props) {
6489
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
6502
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal20(
6490
6503
  checkShouldRenderVariants2({
6491
6504
  canTrack: getDefaultCanTrack(props.canTrack),
6492
6505
  content: props.content
6493
6506
  })
6494
6507
  );
6495
- const updateCookieAndStylesScriptStr = createMemo19(() => {
6508
+ const updateCookieAndStylesScriptStr = createMemo20(() => {
6496
6509
  return getUpdateCookieAndStylesScript(
6497
6510
  getVariants(props.content).map((value) => ({
6498
6511
  id: value.testVariationId,
@@ -6501,10 +6514,10 @@ function ContentVariants(props) {
6501
6514
  props.content?.id || ""
6502
6515
  );
6503
6516
  });
6504
- const hideVariantsStyleString = createMemo19(() => {
6517
+ const hideVariantsStyleString = createMemo20(() => {
6505
6518
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
6506
6519
  });
6507
- const defaultContent = createMemo19(() => {
6520
+ const defaultContent = createMemo20(() => {
6508
6521
  return shouldRenderVariants() ? {
6509
6522
  ...props.content,
6510
6523
  testVariationId: props.content?.id
@@ -6623,15 +6636,15 @@ var fetchSymbolContent = async ({
6623
6636
 
6624
6637
  // src/blocks/symbol/symbol.tsx
6625
6638
  function Symbol(props) {
6626
- const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
6627
- const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
6628
- const blocksWrapper = createMemo20(() => {
6639
+ const [contentToUse, setContentToUse] = createSignal21(props.symbol?.content);
6640
+ const [symbolEntry, setSymbolEntry] = createSignal21(props.symbol?.entry);
6641
+ const blocksWrapper = createMemo21(() => {
6629
6642
  return "div";
6630
6643
  });
6631
- const contentWrapper = createMemo20(() => {
6644
+ const contentWrapper = createMemo21(() => {
6632
6645
  return "div";
6633
6646
  });
6634
- const className = createMemo20(() => {
6647
+ const className = createMemo21(() => {
6635
6648
  return [
6636
6649
  ...[props.attributes[getClassPropName()]],
6637
6650
  "builder-symbol",
@@ -6654,7 +6667,7 @@ function Symbol(props) {
6654
6667
  }
6655
6668
  onMount10(() => {
6656
6669
  });
6657
- const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
6670
+ const onUpdateFn_0_props_symbol = createMemo21(() => props.symbol);
6658
6671
  function onUpdateFn_0() {
6659
6672
  setContent();
6660
6673
  }
package/lib/node/index.js CHANGED
@@ -5255,8 +5255,18 @@ var componentInfo19 = {
5255
5255
  noWrap: true,
5256
5256
  static: true
5257
5257
  };
5258
- var _tmpl$20 = /* @__PURE__ */ template(`<img>`);
5258
+ var _tmpl$20 = /* @__PURE__ */ template(`<img loading=lazy>`);
5259
5259
  function ImgComponent(props) {
5260
+ const srcSetToUse = createMemo(() => {
5261
+ const url = props.imgSrc || props.image;
5262
+ if (!url || typeof url !== "string") {
5263
+ return void 0;
5264
+ }
5265
+ if (!url.match(/builder\.io/)) {
5266
+ return void 0;
5267
+ }
5268
+ return getSrcSet(url);
5269
+ });
5260
5270
  return (() => {
5261
5271
  const _el$ = _tmpl$20();
5262
5272
  spread(_el$, mergeProps({
@@ -5274,6 +5284,9 @@ function ImgComponent(props) {
5274
5284
  },
5275
5285
  get src() {
5276
5286
  return props.imgSrc || props.image;
5287
+ },
5288
+ get srcSet() {
5289
+ return srcSetToUse();
5277
5290
  }
5278
5291
  }, {}, () => props.attributes), false, false);
5279
5292
  return _el$;
@@ -5644,7 +5657,7 @@ function getPreviewContent(_searchParams) {
5644
5657
  }
5645
5658
 
5646
5659
  // src/constants/sdk-version.ts
5647
- var SDK_VERSION = "4.0.10";
5660
+ var SDK_VERSION = "4.1.1";
5648
5661
 
5649
5662
  // src/helpers/sdk-headers.ts
5650
5663
  var getSdkHeaders = () => ({
@@ -2145,10 +2145,10 @@ function SectionComponent(props) {
2145
2145
  var section_default = SectionComponent;
2146
2146
 
2147
2147
  // src/blocks/symbol/symbol.tsx
2148
- import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
2148
+ import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo21, createSignal as createSignal21 } from "solid-js";
2149
2149
 
2150
2150
  // src/components/content-variants/content-variants.tsx
2151
- import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
2151
+ import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal20, createMemo as createMemo20 } from "solid-js";
2152
2152
 
2153
2153
  // src/blocks/personalization-container/helpers/inlined-fns.ts
2154
2154
  function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
@@ -2571,7 +2571,7 @@ var getDefaultCanTrack = (canTrack) => {
2571
2571
  };
2572
2572
 
2573
2573
  // src/components/content/content.tsx
2574
- import { Show as Show15, createSignal as createSignal18 } from "solid-js";
2574
+ import { Show as Show15, createSignal as createSignal19 } from "solid-js";
2575
2575
 
2576
2576
  // src/blocks/accordion/component-info.ts
2577
2577
  var defaultTitle = {
@@ -4765,8 +4765,20 @@ var componentInfo19 = {
4765
4765
  };
4766
4766
 
4767
4767
  // src/blocks/img/img.tsx
4768
+ import { createMemo as createMemo15 } from "solid-js";
4768
4769
  function ImgComponent(props) {
4770
+ const srcSetToUse = createMemo15(() => {
4771
+ const url = props.imgSrc || props.image;
4772
+ if (!url || typeof url !== "string") {
4773
+ return void 0;
4774
+ }
4775
+ if (!url.match(/builder\.io/)) {
4776
+ return void 0;
4777
+ }
4778
+ return getSrcSet(url);
4779
+ });
4769
4780
  return <><img
4781
+ loading="lazy"
4770
4782
  style={{
4771
4783
  "object-fit": props.backgroundSize || "cover",
4772
4784
  "object-position": props.backgroundPosition || "center"
@@ -4774,6 +4786,7 @@ function ImgComponent(props) {
4774
4786
  key={isEditing() && props.imgSrc || "default-key"}
4775
4787
  alt={props.altText}
4776
4788
  src={props.imgSrc || props.image}
4789
+ srcSet={srcSetToUse()}
4777
4790
  {...{}}
4778
4791
  {...props.attributes}
4779
4792
  /></>;
@@ -4868,10 +4881,10 @@ var componentInfo20 = {
4868
4881
  };
4869
4882
 
4870
4883
  // src/blocks/video/video.tsx
4871
- import { Show as Show13, onMount as onMount7, createSignal as createSignal15, createMemo as createMemo15 } from "solid-js";
4884
+ import { Show as Show13, onMount as onMount7, createSignal as createSignal16, createMemo as createMemo16 } from "solid-js";
4872
4885
  function Video(props) {
4873
- const [lazyVideoObserver, setLazyVideoObserver] = createSignal15(void 0);
4874
- const videoProps = createMemo15(() => {
4886
+ const [lazyVideoObserver, setLazyVideoObserver] = createSignal16(void 0);
4887
+ const videoProps = createMemo16(() => {
4875
4888
  return {
4876
4889
  ...props.autoPlay === true ? {
4877
4890
  autoPlay: true
@@ -4890,7 +4903,7 @@ function Video(props) {
4890
4903
  } : {}
4891
4904
  };
4892
4905
  });
4893
- const spreadProps = createMemo15(() => {
4906
+ const spreadProps = createMemo16(() => {
4894
4907
  return {
4895
4908
  ...videoProps()
4896
4909
  };
@@ -5129,8 +5142,8 @@ import {
5129
5142
  onMount as onMount8,
5130
5143
  on as on8,
5131
5144
  createEffect as createEffect8,
5132
- createMemo as createMemo16,
5133
- createSignal as createSignal16
5145
+ createMemo as createMemo17,
5146
+ createSignal as createSignal17
5134
5147
  } from "solid-js";
5135
5148
  import { Dynamic as Dynamic5 } from "solid-js/web";
5136
5149
 
@@ -5140,7 +5153,7 @@ function getPreviewContent(_searchParams) {
5140
5153
  }
5141
5154
 
5142
5155
  // src/constants/sdk-version.ts
5143
- var SDK_VERSION = "4.0.10";
5156
+ var SDK_VERSION = "4.1.1";
5144
5157
 
5145
5158
  // src/helpers/sdk-headers.ts
5146
5159
  var getSdkHeaders = () => ({
@@ -5995,13 +6008,13 @@ var getWrapperClassName = (variationId) => {
5995
6008
 
5996
6009
  // src/components/content/components/enable-editor.tsx
5997
6010
  function EnableEditor(props) {
5998
- const [hasExecuted, setHasExecuted] = createSignal16(false);
5999
- const [ContentWrapper, setContentWrapper] = createSignal16(
6011
+ const [hasExecuted, setHasExecuted] = createSignal17(false);
6012
+ const [ContentWrapper, setContentWrapper] = createSignal17(
6000
6013
  props.contentWrapper || "div"
6001
6014
  );
6002
- const [httpReqsData, setHttpReqsData] = createSignal16({});
6003
- const [httpReqsPending, setHttpReqsPending] = createSignal16({});
6004
- const [clicked, setClicked] = createSignal16(false);
6015
+ const [httpReqsData, setHttpReqsData] = createSignal17({});
6016
+ const [httpReqsPending, setHttpReqsPending] = createSignal17({});
6017
+ const [clicked, setClicked] = createSignal17(false);
6005
6018
  function mergeNewRootState(newData) {
6006
6019
  const combinedState = {
6007
6020
  ...props.builderContextSignal.rootState,
@@ -6035,7 +6048,7 @@ function EnableEditor(props) {
6035
6048
  content: newContentValue
6036
6049
  }));
6037
6050
  }
6038
- const showContentProps = createMemo16(() => {
6051
+ const showContentProps = createMemo17(() => {
6039
6052
  return props.showContent ? {} : {
6040
6053
  hidden: true,
6041
6054
  "aria-hidden": true
@@ -6219,14 +6232,14 @@ function EnableEditor(props) {
6219
6232
  }
6220
6233
  }
6221
6234
  });
6222
- const onUpdateFn_0_props_content = createMemo16(() => props.content);
6235
+ const onUpdateFn_0_props_content = createMemo17(() => props.content);
6223
6236
  function onUpdateFn_0() {
6224
6237
  if (props.content) {
6225
6238
  mergeNewContent(props.content);
6226
6239
  }
6227
6240
  }
6228
6241
  createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6229
- const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
6242
+ const onUpdateFn_1_props_builderContextSignal_rootState = createMemo17(
6230
6243
  () => props.builderContextSignal.rootState
6231
6244
  );
6232
6245
  function onUpdateFn_1() {
@@ -6238,14 +6251,14 @@ function EnableEditor(props) {
6238
6251
  onUpdateFn_1
6239
6252
  )
6240
6253
  );
6241
- const onUpdateFn_2_props_data = createMemo16(() => props.data);
6254
+ const onUpdateFn_2_props_data = createMemo17(() => props.data);
6242
6255
  function onUpdateFn_2() {
6243
6256
  if (props.data) {
6244
6257
  mergeNewRootState(props.data);
6245
6258
  }
6246
6259
  }
6247
6260
  createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6248
- const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
6261
+ const onUpdateFn_3_props_locale = createMemo17(() => props.locale);
6249
6262
  function onUpdateFn_3() {
6250
6263
  if (props.locale) {
6251
6264
  mergeNewRootState({
@@ -6277,9 +6290,9 @@ function EnableEditor(props) {
6277
6290
  var Enable_editor_default = EnableEditor;
6278
6291
 
6279
6292
  // src/components/content/components/styles.tsx
6280
- import { createSignal as createSignal17 } from "solid-js";
6293
+ import { createSignal as createSignal18 } from "solid-js";
6281
6294
  function ContentStyles(props) {
6282
- const [injectedStyles, setInjectedStyles] = createSignal17(
6295
+ const [injectedStyles, setInjectedStyles] = createSignal18(
6283
6296
  `
6284
6297
  ${getCss({
6285
6298
  cssCode: props.cssCode,
@@ -6337,7 +6350,7 @@ var getContentInitialValue = ({
6337
6350
 
6338
6351
  // src/components/content/content.tsx
6339
6352
  function ContentComponent(props) {
6340
- const [scriptStr, setScriptStr] = createSignal18(
6353
+ const [scriptStr, setScriptStr] = createSignal19(
6341
6354
  getUpdateVariantVisibilityScript({
6342
6355
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
6343
6356
  variationId: props.content?.testVariationId,
@@ -6345,7 +6358,7 @@ function ContentComponent(props) {
6345
6358
  contentId: props.content?.id
6346
6359
  })
6347
6360
  );
6348
- const [registeredComponents, setRegisteredComponents] = createSignal18(
6361
+ const [registeredComponents, setRegisteredComponents] = createSignal19(
6349
6362
  [
6350
6363
  ...getDefaultRegisteredComponents(),
6351
6364
  ...props.customComponents || []
@@ -6360,7 +6373,7 @@ function ContentComponent(props) {
6360
6373
  {}
6361
6374
  )
6362
6375
  );
6363
- const [builderContextSignal, setBuilderContextSignal] = createSignal18({
6376
+ const [builderContextSignal, setBuilderContextSignal] = createSignal19({
6364
6377
  content: getContentInitialValue({
6365
6378
  content: props.content,
6366
6379
  data: props.data
@@ -6468,13 +6481,13 @@ var Content_default = ContentComponent;
6468
6481
 
6469
6482
  // src/components/content-variants/content-variants.tsx
6470
6483
  function ContentVariants(props) {
6471
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
6484
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal20(
6472
6485
  checkShouldRenderVariants2({
6473
6486
  canTrack: getDefaultCanTrack(props.canTrack),
6474
6487
  content: props.content
6475
6488
  })
6476
6489
  );
6477
- const updateCookieAndStylesScriptStr = createMemo19(() => {
6490
+ const updateCookieAndStylesScriptStr = createMemo20(() => {
6478
6491
  return getUpdateCookieAndStylesScript(
6479
6492
  getVariants(props.content).map((value) => ({
6480
6493
  id: value.testVariationId,
@@ -6483,10 +6496,10 @@ function ContentVariants(props) {
6483
6496
  props.content?.id || ""
6484
6497
  );
6485
6498
  });
6486
- const hideVariantsStyleString = createMemo19(() => {
6499
+ const hideVariantsStyleString = createMemo20(() => {
6487
6500
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
6488
6501
  });
6489
- const defaultContent = createMemo19(() => {
6502
+ const defaultContent = createMemo20(() => {
6490
6503
  return shouldRenderVariants() ? {
6491
6504
  ...props.content,
6492
6505
  testVariationId: props.content?.id
@@ -6605,15 +6618,15 @@ var fetchSymbolContent = async ({
6605
6618
 
6606
6619
  // src/blocks/symbol/symbol.tsx
6607
6620
  function Symbol(props) {
6608
- const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
6609
- const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
6610
- const blocksWrapper = createMemo20(() => {
6621
+ const [contentToUse, setContentToUse] = createSignal21(props.symbol?.content);
6622
+ const [symbolEntry, setSymbolEntry] = createSignal21(props.symbol?.entry);
6623
+ const blocksWrapper = createMemo21(() => {
6611
6624
  return "div";
6612
6625
  });
6613
- const contentWrapper = createMemo20(() => {
6626
+ const contentWrapper = createMemo21(() => {
6614
6627
  return "div";
6615
6628
  });
6616
- const className = createMemo20(() => {
6629
+ const className = createMemo21(() => {
6617
6630
  return [
6618
6631
  ...[props.attributes[getClassPropName()]],
6619
6632
  "builder-symbol",
@@ -6636,7 +6649,7 @@ function Symbol(props) {
6636
6649
  }
6637
6650
  onMount10(() => {
6638
6651
  });
6639
- const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
6652
+ const onUpdateFn_0_props_symbol = createMemo21(() => props.symbol);
6640
6653
  function onUpdateFn_0() {
6641
6654
  setContent();
6642
6655
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "4.0.10",
3
+ "version": "4.1.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",