@builder.io/sdk-solid 4.0.10 → 4.1.0

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,7 +4775,18 @@ 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
4780
4791
  style={{
4781
4792
  "object-fit": props.backgroundSize || "cover",
@@ -4784,6 +4795,7 @@ function ImgComponent(props) {
4784
4795
  key={isEditing() && props.imgSrc || "default-key"}
4785
4796
  alt={props.altText}
4786
4797
  src={props.imgSrc || props.image}
4798
+ srcSet={srcSetToUse()}
4787
4799
  {...{}}
4788
4800
  {...props.attributes}
4789
4801
  /></>;
@@ -4878,10 +4890,10 @@ var componentInfo20 = {
4878
4890
  };
4879
4891
 
4880
4892
  // src/blocks/video/video.tsx
4881
- import { Show as Show13, onMount as onMount7, createSignal as createSignal15, createMemo as createMemo15 } from "solid-js";
4893
+ import { Show as Show13, onMount as onMount7, createSignal as createSignal16, createMemo as createMemo16 } from "solid-js";
4882
4894
  function Video(props) {
4883
- const [lazyVideoObserver, setLazyVideoObserver] = createSignal15(void 0);
4884
- const videoProps = createMemo15(() => {
4895
+ const [lazyVideoObserver, setLazyVideoObserver] = createSignal16(void 0);
4896
+ const videoProps = createMemo16(() => {
4885
4897
  return {
4886
4898
  ...props.autoPlay === true ? {
4887
4899
  autoPlay: true
@@ -4900,7 +4912,7 @@ function Video(props) {
4900
4912
  } : {}
4901
4913
  };
4902
4914
  });
4903
- const spreadProps = createMemo15(() => {
4915
+ const spreadProps = createMemo16(() => {
4904
4916
  return {
4905
4917
  ...videoProps()
4906
4918
  };
@@ -5140,8 +5152,8 @@ import {
5140
5152
  onMount as onMount8,
5141
5153
  on as on8,
5142
5154
  createEffect as createEffect8,
5143
- createMemo as createMemo16,
5144
- createSignal as createSignal16
5155
+ createMemo as createMemo17,
5156
+ createSignal as createSignal17
5145
5157
  } from "solid-js";
5146
5158
  import { Dynamic as Dynamic5 } from "solid-js/web";
5147
5159
 
@@ -5151,7 +5163,7 @@ function getPreviewContent(_searchParams) {
5151
5163
  }
5152
5164
 
5153
5165
  // src/constants/sdk-version.ts
5154
- var SDK_VERSION = "4.0.10";
5166
+ var SDK_VERSION = "4.1.0";
5155
5167
 
5156
5168
  // src/helpers/sdk-headers.ts
5157
5169
  var getSdkHeaders = () => ({
@@ -6012,13 +6024,13 @@ var getWrapperClassName = (variationId) => {
6012
6024
 
6013
6025
  // src/components/content/components/enable-editor.tsx
6014
6026
  function EnableEditor(props) {
6015
- const [hasExecuted, setHasExecuted] = createSignal16(false);
6016
- const [ContentWrapper, setContentWrapper] = createSignal16(
6027
+ const [hasExecuted, setHasExecuted] = createSignal17(false);
6028
+ const [ContentWrapper, setContentWrapper] = createSignal17(
6017
6029
  props.contentWrapper || "div"
6018
6030
  );
6019
- const [httpReqsData, setHttpReqsData] = createSignal16({});
6020
- const [httpReqsPending, setHttpReqsPending] = createSignal16({});
6021
- const [clicked, setClicked] = createSignal16(false);
6031
+ const [httpReqsData, setHttpReqsData] = createSignal17({});
6032
+ const [httpReqsPending, setHttpReqsPending] = createSignal17({});
6033
+ const [clicked, setClicked] = createSignal17(false);
6022
6034
  function mergeNewRootState(newData) {
6023
6035
  const combinedState = {
6024
6036
  ...props.builderContextSignal.rootState,
@@ -6052,7 +6064,7 @@ function EnableEditor(props) {
6052
6064
  content: newContentValue
6053
6065
  }));
6054
6066
  }
6055
- const showContentProps = createMemo16(() => {
6067
+ const showContentProps = createMemo17(() => {
6056
6068
  return props.showContent ? {} : {
6057
6069
  hidden: true,
6058
6070
  "aria-hidden": true
@@ -6237,14 +6249,14 @@ function EnableEditor(props) {
6237
6249
  }
6238
6250
  }
6239
6251
  });
6240
- const onUpdateFn_0_props_content = createMemo16(() => props.content);
6252
+ const onUpdateFn_0_props_content = createMemo17(() => props.content);
6241
6253
  function onUpdateFn_0() {
6242
6254
  if (props.content) {
6243
6255
  mergeNewContent(props.content);
6244
6256
  }
6245
6257
  }
6246
6258
  createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6247
- const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
6259
+ const onUpdateFn_1_props_builderContextSignal_rootState = createMemo17(
6248
6260
  () => props.builderContextSignal.rootState
6249
6261
  );
6250
6262
  function onUpdateFn_1() {
@@ -6256,14 +6268,14 @@ function EnableEditor(props) {
6256
6268
  onUpdateFn_1
6257
6269
  )
6258
6270
  );
6259
- const onUpdateFn_2_props_data = createMemo16(() => props.data);
6271
+ const onUpdateFn_2_props_data = createMemo17(() => props.data);
6260
6272
  function onUpdateFn_2() {
6261
6273
  if (props.data) {
6262
6274
  mergeNewRootState(props.data);
6263
6275
  }
6264
6276
  }
6265
6277
  createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6266
- const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
6278
+ const onUpdateFn_3_props_locale = createMemo17(() => props.locale);
6267
6279
  function onUpdateFn_3() {
6268
6280
  if (props.locale) {
6269
6281
  mergeNewRootState({
@@ -6295,9 +6307,9 @@ function EnableEditor(props) {
6295
6307
  var Enable_editor_default = EnableEditor;
6296
6308
 
6297
6309
  // src/components/content/components/styles.tsx
6298
- import { createSignal as createSignal17 } from "solid-js";
6310
+ import { createSignal as createSignal18 } from "solid-js";
6299
6311
  function ContentStyles(props) {
6300
- const [injectedStyles, setInjectedStyles] = createSignal17(
6312
+ const [injectedStyles, setInjectedStyles] = createSignal18(
6301
6313
  `
6302
6314
  ${getCss({
6303
6315
  cssCode: props.cssCode,
@@ -6355,7 +6367,7 @@ var getContentInitialValue = ({
6355
6367
 
6356
6368
  // src/components/content/content.tsx
6357
6369
  function ContentComponent(props) {
6358
- const [scriptStr, setScriptStr] = createSignal18(
6370
+ const [scriptStr, setScriptStr] = createSignal19(
6359
6371
  getUpdateVariantVisibilityScript({
6360
6372
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
6361
6373
  variationId: props.content?.testVariationId,
@@ -6363,7 +6375,7 @@ function ContentComponent(props) {
6363
6375
  contentId: props.content?.id
6364
6376
  })
6365
6377
  );
6366
- const [registeredComponents, setRegisteredComponents] = createSignal18(
6378
+ const [registeredComponents, setRegisteredComponents] = createSignal19(
6367
6379
  [
6368
6380
  ...getDefaultRegisteredComponents(),
6369
6381
  ...props.customComponents || []
@@ -6378,7 +6390,7 @@ function ContentComponent(props) {
6378
6390
  {}
6379
6391
  )
6380
6392
  );
6381
- const [builderContextSignal, setBuilderContextSignal] = createSignal18({
6393
+ const [builderContextSignal, setBuilderContextSignal] = createSignal19({
6382
6394
  content: getContentInitialValue({
6383
6395
  content: props.content,
6384
6396
  data: props.data
@@ -6486,13 +6498,13 @@ var Content_default = ContentComponent;
6486
6498
 
6487
6499
  // src/components/content-variants/content-variants.tsx
6488
6500
  function ContentVariants(props) {
6489
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
6501
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal20(
6490
6502
  checkShouldRenderVariants2({
6491
6503
  canTrack: getDefaultCanTrack(props.canTrack),
6492
6504
  content: props.content
6493
6505
  })
6494
6506
  );
6495
- const updateCookieAndStylesScriptStr = createMemo19(() => {
6507
+ const updateCookieAndStylesScriptStr = createMemo20(() => {
6496
6508
  return getUpdateCookieAndStylesScript(
6497
6509
  getVariants(props.content).map((value) => ({
6498
6510
  id: value.testVariationId,
@@ -6501,10 +6513,10 @@ function ContentVariants(props) {
6501
6513
  props.content?.id || ""
6502
6514
  );
6503
6515
  });
6504
- const hideVariantsStyleString = createMemo19(() => {
6516
+ const hideVariantsStyleString = createMemo20(() => {
6505
6517
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
6506
6518
  });
6507
- const defaultContent = createMemo19(() => {
6519
+ const defaultContent = createMemo20(() => {
6508
6520
  return shouldRenderVariants() ? {
6509
6521
  ...props.content,
6510
6522
  testVariationId: props.content?.id
@@ -6623,15 +6635,15 @@ var fetchSymbolContent = async ({
6623
6635
 
6624
6636
  // src/blocks/symbol/symbol.tsx
6625
6637
  function Symbol(props) {
6626
- const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
6627
- const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
6628
- const blocksWrapper = createMemo20(() => {
6638
+ const [contentToUse, setContentToUse] = createSignal21(props.symbol?.content);
6639
+ const [symbolEntry, setSymbolEntry] = createSignal21(props.symbol?.entry);
6640
+ const blocksWrapper = createMemo21(() => {
6629
6641
  return "div";
6630
6642
  });
6631
- const contentWrapper = createMemo20(() => {
6643
+ const contentWrapper = createMemo21(() => {
6632
6644
  return "div";
6633
6645
  });
6634
- const className = createMemo20(() => {
6646
+ const className = createMemo21(() => {
6635
6647
  return [
6636
6648
  ...[props.attributes[getClassPropName()]],
6637
6649
  "builder-symbol",
@@ -6654,7 +6666,7 @@ function Symbol(props) {
6654
6666
  }
6655
6667
  onMount10(() => {
6656
6668
  });
6657
- const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
6669
+ const onUpdateFn_0_props_symbol = createMemo21(() => props.symbol);
6658
6670
  function onUpdateFn_0() {
6659
6671
  setContent();
6660
6672
  }
package/lib/node/index.js CHANGED
@@ -5257,6 +5257,16 @@ var componentInfo19 = {
5257
5257
  };
5258
5258
  var _tmpl$20 = /* @__PURE__ */ template(`<img>`);
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.0";
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,7 +4765,18 @@ 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
4770
4781
  style={{
4771
4782
  "object-fit": props.backgroundSize || "cover",
@@ -4774,6 +4785,7 @@ function ImgComponent(props) {
4774
4785
  key={isEditing() && props.imgSrc || "default-key"}
4775
4786
  alt={props.altText}
4776
4787
  src={props.imgSrc || props.image}
4788
+ srcSet={srcSetToUse()}
4777
4789
  {...{}}
4778
4790
  {...props.attributes}
4779
4791
  /></>;
@@ -4868,10 +4880,10 @@ var componentInfo20 = {
4868
4880
  };
4869
4881
 
4870
4882
  // src/blocks/video/video.tsx
4871
- import { Show as Show13, onMount as onMount7, createSignal as createSignal15, createMemo as createMemo15 } from "solid-js";
4883
+ import { Show as Show13, onMount as onMount7, createSignal as createSignal16, createMemo as createMemo16 } from "solid-js";
4872
4884
  function Video(props) {
4873
- const [lazyVideoObserver, setLazyVideoObserver] = createSignal15(void 0);
4874
- const videoProps = createMemo15(() => {
4885
+ const [lazyVideoObserver, setLazyVideoObserver] = createSignal16(void 0);
4886
+ const videoProps = createMemo16(() => {
4875
4887
  return {
4876
4888
  ...props.autoPlay === true ? {
4877
4889
  autoPlay: true
@@ -4890,7 +4902,7 @@ function Video(props) {
4890
4902
  } : {}
4891
4903
  };
4892
4904
  });
4893
- const spreadProps = createMemo15(() => {
4905
+ const spreadProps = createMemo16(() => {
4894
4906
  return {
4895
4907
  ...videoProps()
4896
4908
  };
@@ -5129,8 +5141,8 @@ import {
5129
5141
  onMount as onMount8,
5130
5142
  on as on8,
5131
5143
  createEffect as createEffect8,
5132
- createMemo as createMemo16,
5133
- createSignal as createSignal16
5144
+ createMemo as createMemo17,
5145
+ createSignal as createSignal17
5134
5146
  } from "solid-js";
5135
5147
  import { Dynamic as Dynamic5 } from "solid-js/web";
5136
5148
 
@@ -5140,7 +5152,7 @@ function getPreviewContent(_searchParams) {
5140
5152
  }
5141
5153
 
5142
5154
  // src/constants/sdk-version.ts
5143
- var SDK_VERSION = "4.0.10";
5155
+ var SDK_VERSION = "4.1.0";
5144
5156
 
5145
5157
  // src/helpers/sdk-headers.ts
5146
5158
  var getSdkHeaders = () => ({
@@ -5995,13 +6007,13 @@ var getWrapperClassName = (variationId) => {
5995
6007
 
5996
6008
  // src/components/content/components/enable-editor.tsx
5997
6009
  function EnableEditor(props) {
5998
- const [hasExecuted, setHasExecuted] = createSignal16(false);
5999
- const [ContentWrapper, setContentWrapper] = createSignal16(
6010
+ const [hasExecuted, setHasExecuted] = createSignal17(false);
6011
+ const [ContentWrapper, setContentWrapper] = createSignal17(
6000
6012
  props.contentWrapper || "div"
6001
6013
  );
6002
- const [httpReqsData, setHttpReqsData] = createSignal16({});
6003
- const [httpReqsPending, setHttpReqsPending] = createSignal16({});
6004
- const [clicked, setClicked] = createSignal16(false);
6014
+ const [httpReqsData, setHttpReqsData] = createSignal17({});
6015
+ const [httpReqsPending, setHttpReqsPending] = createSignal17({});
6016
+ const [clicked, setClicked] = createSignal17(false);
6005
6017
  function mergeNewRootState(newData) {
6006
6018
  const combinedState = {
6007
6019
  ...props.builderContextSignal.rootState,
@@ -6035,7 +6047,7 @@ function EnableEditor(props) {
6035
6047
  content: newContentValue
6036
6048
  }));
6037
6049
  }
6038
- const showContentProps = createMemo16(() => {
6050
+ const showContentProps = createMemo17(() => {
6039
6051
  return props.showContent ? {} : {
6040
6052
  hidden: true,
6041
6053
  "aria-hidden": true
@@ -6219,14 +6231,14 @@ function EnableEditor(props) {
6219
6231
  }
6220
6232
  }
6221
6233
  });
6222
- const onUpdateFn_0_props_content = createMemo16(() => props.content);
6234
+ const onUpdateFn_0_props_content = createMemo17(() => props.content);
6223
6235
  function onUpdateFn_0() {
6224
6236
  if (props.content) {
6225
6237
  mergeNewContent(props.content);
6226
6238
  }
6227
6239
  }
6228
6240
  createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6229
- const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
6241
+ const onUpdateFn_1_props_builderContextSignal_rootState = createMemo17(
6230
6242
  () => props.builderContextSignal.rootState
6231
6243
  );
6232
6244
  function onUpdateFn_1() {
@@ -6238,14 +6250,14 @@ function EnableEditor(props) {
6238
6250
  onUpdateFn_1
6239
6251
  )
6240
6252
  );
6241
- const onUpdateFn_2_props_data = createMemo16(() => props.data);
6253
+ const onUpdateFn_2_props_data = createMemo17(() => props.data);
6242
6254
  function onUpdateFn_2() {
6243
6255
  if (props.data) {
6244
6256
  mergeNewRootState(props.data);
6245
6257
  }
6246
6258
  }
6247
6259
  createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6248
- const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
6260
+ const onUpdateFn_3_props_locale = createMemo17(() => props.locale);
6249
6261
  function onUpdateFn_3() {
6250
6262
  if (props.locale) {
6251
6263
  mergeNewRootState({
@@ -6277,9 +6289,9 @@ function EnableEditor(props) {
6277
6289
  var Enable_editor_default = EnableEditor;
6278
6290
 
6279
6291
  // src/components/content/components/styles.tsx
6280
- import { createSignal as createSignal17 } from "solid-js";
6292
+ import { createSignal as createSignal18 } from "solid-js";
6281
6293
  function ContentStyles(props) {
6282
- const [injectedStyles, setInjectedStyles] = createSignal17(
6294
+ const [injectedStyles, setInjectedStyles] = createSignal18(
6283
6295
  `
6284
6296
  ${getCss({
6285
6297
  cssCode: props.cssCode,
@@ -6337,7 +6349,7 @@ var getContentInitialValue = ({
6337
6349
 
6338
6350
  // src/components/content/content.tsx
6339
6351
  function ContentComponent(props) {
6340
- const [scriptStr, setScriptStr] = createSignal18(
6352
+ const [scriptStr, setScriptStr] = createSignal19(
6341
6353
  getUpdateVariantVisibilityScript({
6342
6354
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
6343
6355
  variationId: props.content?.testVariationId,
@@ -6345,7 +6357,7 @@ function ContentComponent(props) {
6345
6357
  contentId: props.content?.id
6346
6358
  })
6347
6359
  );
6348
- const [registeredComponents, setRegisteredComponents] = createSignal18(
6360
+ const [registeredComponents, setRegisteredComponents] = createSignal19(
6349
6361
  [
6350
6362
  ...getDefaultRegisteredComponents(),
6351
6363
  ...props.customComponents || []
@@ -6360,7 +6372,7 @@ function ContentComponent(props) {
6360
6372
  {}
6361
6373
  )
6362
6374
  );
6363
- const [builderContextSignal, setBuilderContextSignal] = createSignal18({
6375
+ const [builderContextSignal, setBuilderContextSignal] = createSignal19({
6364
6376
  content: getContentInitialValue({
6365
6377
  content: props.content,
6366
6378
  data: props.data
@@ -6468,13 +6480,13 @@ var Content_default = ContentComponent;
6468
6480
 
6469
6481
  // src/components/content-variants/content-variants.tsx
6470
6482
  function ContentVariants(props) {
6471
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
6483
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal20(
6472
6484
  checkShouldRenderVariants2({
6473
6485
  canTrack: getDefaultCanTrack(props.canTrack),
6474
6486
  content: props.content
6475
6487
  })
6476
6488
  );
6477
- const updateCookieAndStylesScriptStr = createMemo19(() => {
6489
+ const updateCookieAndStylesScriptStr = createMemo20(() => {
6478
6490
  return getUpdateCookieAndStylesScript(
6479
6491
  getVariants(props.content).map((value) => ({
6480
6492
  id: value.testVariationId,
@@ -6483,10 +6495,10 @@ function ContentVariants(props) {
6483
6495
  props.content?.id || ""
6484
6496
  );
6485
6497
  });
6486
- const hideVariantsStyleString = createMemo19(() => {
6498
+ const hideVariantsStyleString = createMemo20(() => {
6487
6499
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
6488
6500
  });
6489
- const defaultContent = createMemo19(() => {
6501
+ const defaultContent = createMemo20(() => {
6490
6502
  return shouldRenderVariants() ? {
6491
6503
  ...props.content,
6492
6504
  testVariationId: props.content?.id
@@ -6605,15 +6617,15 @@ var fetchSymbolContent = async ({
6605
6617
 
6606
6618
  // src/blocks/symbol/symbol.tsx
6607
6619
  function Symbol(props) {
6608
- const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
6609
- const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
6610
- const blocksWrapper = createMemo20(() => {
6620
+ const [contentToUse, setContentToUse] = createSignal21(props.symbol?.content);
6621
+ const [symbolEntry, setSymbolEntry] = createSignal21(props.symbol?.entry);
6622
+ const blocksWrapper = createMemo21(() => {
6611
6623
  return "div";
6612
6624
  });
6613
- const contentWrapper = createMemo20(() => {
6625
+ const contentWrapper = createMemo21(() => {
6614
6626
  return "div";
6615
6627
  });
6616
- const className = createMemo20(() => {
6628
+ const className = createMemo21(() => {
6617
6629
  return [
6618
6630
  ...[props.attributes[getClassPropName()]],
6619
6631
  "builder-symbol",
@@ -6636,7 +6648,7 @@ function Symbol(props) {
6636
6648
  }
6637
6649
  onMount10(() => {
6638
6650
  });
6639
- const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
6651
+ const onUpdateFn_0_props_symbol = createMemo21(() => props.symbol);
6640
6652
  function onUpdateFn_0() {
6641
6653
  setContent();
6642
6654
  }
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.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",