@builder.io/sdk-solid 4.0.9 → 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.js CHANGED
@@ -2486,8 +2486,8 @@ var DEFAULT_INDEX = "default";
2486
2486
  var FILTER_WITH_CUSTOM_TARGETING_SCRIPT_FN_NAME = "filterWithCustomTargeting";
2487
2487
  var BUILDER_IO_PERSONALIZATION_SCRIPT_FN_NAME = "builderIoPersonalization";
2488
2488
  var UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME = "updateVisibilityStylesScript";
2489
- var SDKS_SUPPORTING_PERSONALIZATION = ["react", "vue", "svelte"];
2490
- var SDKS_REQUIRING_RESET_APPROACH = ["vue", "svelte"];
2489
+ var SDKS_SUPPORTING_PERSONALIZATION = ["react", "vue", "svelte", "qwik"];
2490
+ var SDKS_REQUIRING_RESET_APPROACH = ["vue", "svelte", "qwik"];
2491
2491
  function checkShouldRenderVariants(variants, canTrack) {
2492
2492
  const hasVariants = variants && variants.length > 0;
2493
2493
  if (TARGET === "reactNative")
@@ -2745,6 +2745,11 @@ var handleABTesting = async ({
2745
2745
  };
2746
2746
  };
2747
2747
 
2748
+ // src/helpers/no-serialize-wrapper.ts
2749
+ function noSerializeWrapper(fn) {
2750
+ return fn;
2751
+ }
2752
+
2748
2753
  // src/helpers/user-attributes.ts
2749
2754
  var USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
2750
2755
  function createUserAttributesService() {
@@ -2775,18 +2780,32 @@ function createUserAttributesService() {
2775
2780
  canTrack
2776
2781
  }) || "{}");
2777
2782
  },
2778
- subscribeOnUserAttributesChange(callback) {
2783
+ subscribeOnUserAttributesChange(callback, {
2784
+ fireImmediately
2785
+ } = {}) {
2779
2786
  subscribers.add(callback);
2780
- return () => {
2787
+ if (fireImmediately) {
2788
+ callback(this.getUserAttributes());
2789
+ }
2790
+ return noSerializeWrapper(function() {
2781
2791
  subscribers.delete(callback);
2782
- };
2792
+ });
2783
2793
  },
2784
2794
  setCanTrack(value) {
2785
2795
  canTrack = value;
2786
2796
  }
2787
2797
  };
2788
2798
  }
2789
- var userAttributesService = createUserAttributesService();
2799
+ var _userAttributesService;
2800
+ if (isBrowser() && TARGET === "qwik") {
2801
+ if (!window.__BUILDER_USER_ATTRIBUTES_SERVICE__) {
2802
+ window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = createUserAttributesService();
2803
+ }
2804
+ _userAttributesService = window.__BUILDER_USER_ATTRIBUTES_SERVICE__;
2805
+ } else {
2806
+ _userAttributesService = createUserAttributesService();
2807
+ }
2808
+ var userAttributesService = _userAttributesService;
2790
2809
  var setClientUserAttributes = (attributes) => {
2791
2810
  userAttributesService.setUserAttributes(attributes);
2792
2811
  };
@@ -3642,6 +3661,8 @@ function PersonalizationContainer(props) {
3642
3661
  setShouldResetVariants(true);
3643
3662
  const unsub = userAttributesService.subscribeOnUserAttributesChange((attrs2) => {
3644
3663
  setUserAttributes(attrs2);
3664
+ }, {
3665
+ fireImmediately: TARGET === "qwik"
3645
3666
  });
3646
3667
  if (!(isEditing() || isPreviewing())) {
3647
3668
  const variant = filteredVariants()[0];
@@ -4659,9 +4680,9 @@ function logFetch(url) {
4659
4680
  }
4660
4681
 
4661
4682
  // src/blocks/form/form/form.tsx
4662
- var _tmpl$15 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
4683
+ var _tmpl$15 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-7430044e">`);
4663
4684
  var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
4664
- var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
4685
+ var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-7430044e {
4665
4686
  padding: 10px;
4666
4687
  color: red;
4667
4688
  text-align: center;
@@ -4773,6 +4794,15 @@ function FormComponent(props) {
4773
4794
  }
4774
4795
  }
4775
4796
  setFormState("sending");
4797
+ if (props.sendSubmissionsTo === "email" && (props.sendSubmissionsToEmail === "your@email.com" || !props.sendSubmissionsToEmail)) {
4798
+ const message = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
4799
+ console.error(message);
4800
+ setFormState("error");
4801
+ mergeNewRootState({
4802
+ formErrorMessage: message
4803
+ });
4804
+ return;
4805
+ }
4776
4806
  const formUrl = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${props.builderContext.apiKey}&to=${btoa(props.sendSubmissionsToEmail || "")}&name=${encodeURIComponent(props.name || "")}`;
4777
4807
  const url = props.sendSubmissionsTo === "email" ? formUrl : props.action;
4778
4808
  logFetch(url);
@@ -4788,17 +4818,30 @@ function FormComponent(props) {
4788
4818
  } else {
4789
4819
  body2 = await res.text();
4790
4820
  }
4791
- if (!res.ok && props.errorMessagePath) {
4792
- let message = get(body2, props.errorMessagePath);
4793
- if (message) {
4794
- if (typeof message !== "string") {
4795
- message = JSON.stringify(message);
4821
+ if (!res.ok) {
4822
+ const submitErrorEvent = new CustomEvent("submit:error", {
4823
+ detail: {
4824
+ error: body2,
4825
+ status: res.status
4826
+ }
4827
+ });
4828
+ if (formRef?.nativeElement) {
4829
+ formRef?.nativeElement.dispatchEvent(submitErrorEvent);
4830
+ if (submitErrorEvent.defaultPrevented) {
4831
+ return;
4796
4832
  }
4797
- setFormErrorMessage(message);
4798
- mergeNewRootState({
4799
- formErrorMessage: message
4800
- });
4801
4833
  }
4834
+ setResponseData(body2);
4835
+ setFormState("error");
4836
+ let message = props.errorMessagePath ? get(body2, props.errorMessagePath) : body2.message || body2.error || body2;
4837
+ if (typeof message !== "string") {
4838
+ message = JSON.stringify(message);
4839
+ }
4840
+ setFormErrorMessage(message);
4841
+ mergeNewRootState({
4842
+ formErrorMessage: message
4843
+ });
4844
+ return;
4802
4845
  }
4803
4846
  setResponseData(body2);
4804
4847
  setFormState(res.ok ? "success" : "error");
@@ -5226,6 +5269,16 @@ var componentInfo19 = {
5226
5269
  };
5227
5270
  var _tmpl$20 = /* @__PURE__ */ template(`<img>`);
5228
5271
  function ImgComponent(props) {
5272
+ const srcSetToUse = createMemo(() => {
5273
+ const url = props.imgSrc || props.image;
5274
+ if (!url || typeof url !== "string") {
5275
+ return void 0;
5276
+ }
5277
+ if (!url.match(/builder\.io/)) {
5278
+ return void 0;
5279
+ }
5280
+ return getSrcSet(url);
5281
+ });
5229
5282
  return (() => {
5230
5283
  const _el$ = _tmpl$20();
5231
5284
  spread(_el$, mergeProps({
@@ -5243,6 +5296,9 @@ function ImgComponent(props) {
5243
5296
  },
5244
5297
  get src() {
5245
5298
  return props.imgSrc || props.image;
5299
+ },
5300
+ get srcSet() {
5301
+ return srcSetToUse();
5246
5302
  }
5247
5303
  }, {}, () => props.attributes), false, false);
5248
5304
  return _el$;
@@ -5614,7 +5670,7 @@ function getPreviewContent(_searchParams) {
5614
5670
  }
5615
5671
 
5616
5672
  // src/constants/sdk-version.ts
5617
- var SDK_VERSION = "4.0.9";
5673
+ var SDK_VERSION = "4.1.0";
5618
5674
 
5619
5675
  // src/helpers/sdk-headers.ts
5620
5676
  var getSdkHeaders = () => ({
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) {
@@ -2247,8 +2247,8 @@ var DEFAULT_INDEX = "default";
2247
2247
  var FILTER_WITH_CUSTOM_TARGETING_SCRIPT_FN_NAME = "filterWithCustomTargeting";
2248
2248
  var BUILDER_IO_PERSONALIZATION_SCRIPT_FN_NAME = "builderIoPersonalization";
2249
2249
  var UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME = "updateVisibilityStylesScript";
2250
- var SDKS_SUPPORTING_PERSONALIZATION = ["react", "vue", "svelte"];
2251
- var SDKS_REQUIRING_RESET_APPROACH = ["vue", "svelte"];
2250
+ var SDKS_SUPPORTING_PERSONALIZATION = ["react", "vue", "svelte", "qwik"];
2251
+ var SDKS_REQUIRING_RESET_APPROACH = ["vue", "svelte", "qwik"];
2252
2252
  function checkShouldRenderVariants(variants, canTrack) {
2253
2253
  const hasVariants = variants && variants.length > 0;
2254
2254
  if (TARGET === "reactNative")
@@ -2506,6 +2506,11 @@ var handleABTesting = async ({
2506
2506
  };
2507
2507
  };
2508
2508
 
2509
+ // src/helpers/no-serialize-wrapper.ts
2510
+ function noSerializeWrapper(fn) {
2511
+ return fn;
2512
+ }
2513
+
2509
2514
  // src/helpers/user-attributes.ts
2510
2515
  var USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
2511
2516
  function createUserAttributesService() {
@@ -2536,18 +2541,32 @@ function createUserAttributesService() {
2536
2541
  canTrack
2537
2542
  }) || "{}");
2538
2543
  },
2539
- subscribeOnUserAttributesChange(callback) {
2544
+ subscribeOnUserAttributesChange(callback, {
2545
+ fireImmediately
2546
+ } = {}) {
2540
2547
  subscribers.add(callback);
2541
- return () => {
2548
+ if (fireImmediately) {
2549
+ callback(this.getUserAttributes());
2550
+ }
2551
+ return noSerializeWrapper(function() {
2542
2552
  subscribers.delete(callback);
2543
- };
2553
+ });
2544
2554
  },
2545
2555
  setCanTrack(value) {
2546
2556
  canTrack = value;
2547
2557
  }
2548
2558
  };
2549
2559
  }
2550
- var userAttributesService = createUserAttributesService();
2560
+ var _userAttributesService;
2561
+ if (isBrowser() && TARGET === "qwik") {
2562
+ if (!window.__BUILDER_USER_ATTRIBUTES_SERVICE__) {
2563
+ window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = createUserAttributesService();
2564
+ }
2565
+ _userAttributesService = window.__BUILDER_USER_ATTRIBUTES_SERVICE__;
2566
+ } else {
2567
+ _userAttributesService = createUserAttributesService();
2568
+ }
2569
+ var userAttributesService = _userAttributesService;
2551
2570
  var setClientUserAttributes = (attributes) => {
2552
2571
  userAttributesService.setUserAttributes(attributes);
2553
2572
  };
@@ -2560,7 +2579,7 @@ var getDefaultCanTrack = (canTrack) => {
2560
2579
  };
2561
2580
 
2562
2581
  // src/components/content/content.tsx
2563
- import { Show as Show15, createSignal as createSignal18 } from "solid-js";
2582
+ import { Show as Show15, createSignal as createSignal19 } from "solid-js";
2564
2583
 
2565
2584
  // src/blocks/accordion/component-info.ts
2566
2585
  var defaultTitle = {
@@ -3390,6 +3409,9 @@ function PersonalizationContainer(props) {
3390
3409
  const unsub = userAttributesService.subscribeOnUserAttributesChange(
3391
3410
  (attrs2) => {
3392
3411
  setUserAttributes(attrs2);
3412
+ },
3413
+ {
3414
+ fireImmediately: TARGET === "qwik"
3393
3415
  }
3394
3416
  );
3395
3417
  if (!(isEditing() || isPreviewing())) {
@@ -4370,6 +4392,15 @@ function FormComponent(props) {
4370
4392
  }
4371
4393
  }
4372
4394
  setFormState("sending");
4395
+ if (props.sendSubmissionsTo === "email" && (props.sendSubmissionsToEmail === "your@email.com" || !props.sendSubmissionsToEmail)) {
4396
+ const message = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
4397
+ console.error(message);
4398
+ setFormState("error");
4399
+ mergeNewRootState({
4400
+ formErrorMessage: message
4401
+ });
4402
+ return;
4403
+ }
4373
4404
  const formUrl = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${props.builderContext.apiKey}&to=${btoa(
4374
4405
  props.sendSubmissionsToEmail || ""
4375
4406
  )}&name=${encodeURIComponent(props.name || "")}`;
@@ -4388,17 +4419,30 @@ function FormComponent(props) {
4388
4419
  } else {
4389
4420
  body2 = await res.text();
4390
4421
  }
4391
- if (!res.ok && props.errorMessagePath) {
4392
- let message = get(body2, props.errorMessagePath);
4393
- if (message) {
4394
- if (typeof message !== "string") {
4395
- message = JSON.stringify(message);
4422
+ if (!res.ok) {
4423
+ const submitErrorEvent = new CustomEvent("submit:error", {
4424
+ detail: {
4425
+ error: body2,
4426
+ status: res.status
4427
+ }
4428
+ });
4429
+ if (formRef?.nativeElement) {
4430
+ formRef?.nativeElement.dispatchEvent(submitErrorEvent);
4431
+ if (submitErrorEvent.defaultPrevented) {
4432
+ return;
4396
4433
  }
4397
- setFormErrorMessage(message);
4398
- mergeNewRootState({
4399
- formErrorMessage: message
4400
- });
4401
4434
  }
4435
+ setResponseData(body2);
4436
+ setFormState("error");
4437
+ let message = props.errorMessagePath ? get(body2, props.errorMessagePath) : body2.message || body2.error || body2;
4438
+ if (typeof message !== "string") {
4439
+ message = JSON.stringify(message);
4440
+ }
4441
+ setFormErrorMessage(message);
4442
+ mergeNewRootState({
4443
+ formErrorMessage: message
4444
+ });
4445
+ return;
4402
4446
  }
4403
4447
  setResponseData(body2);
4404
4448
  setFormState(res.ok ? "success" : "error");
@@ -4477,14 +4521,14 @@ function FormComponent(props) {
4477
4521
  blocks={props.sendingMessage}
4478
4522
  context={props.builderContext}
4479
4523
  /></Show12>
4480
- <Show12 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-04a43b72">{JSON.stringify(responseData(), null, 2)}</pre></Show12>
4524
+ <Show12 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-7430044e">{JSON.stringify(responseData(), null, 2)}</pre></Show12>
4481
4525
  <Show12 when={submissionState() === "success"}><Blocks_default
4482
4526
  path="successMessage"
4483
4527
  blocks={props.successMessage}
4484
4528
  context={props.builderContext}
4485
4529
  /></Show12>
4486
4530
  </form>
4487
- <style>{`.pre-04a43b72 {
4531
+ <style>{`.pre-7430044e {
4488
4532
  padding: 10px;
4489
4533
  color: red;
4490
4534
  text-align: center;
@@ -4731,7 +4775,18 @@ var componentInfo19 = {
4731
4775
  };
4732
4776
 
4733
4777
  // src/blocks/img/img.tsx
4778
+ import { createMemo as createMemo15 } from "solid-js";
4734
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
+ });
4735
4790
  return <><img
4736
4791
  style={{
4737
4792
  "object-fit": props.backgroundSize || "cover",
@@ -4740,6 +4795,7 @@ function ImgComponent(props) {
4740
4795
  key={isEditing() && props.imgSrc || "default-key"}
4741
4796
  alt={props.altText}
4742
4797
  src={props.imgSrc || props.image}
4798
+ srcSet={srcSetToUse()}
4743
4799
  {...{}}
4744
4800
  {...props.attributes}
4745
4801
  /></>;
@@ -4834,10 +4890,10 @@ var componentInfo20 = {
4834
4890
  };
4835
4891
 
4836
4892
  // src/blocks/video/video.tsx
4837
- 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";
4838
4894
  function Video(props) {
4839
- const [lazyVideoObserver, setLazyVideoObserver] = createSignal15(void 0);
4840
- const videoProps = createMemo15(() => {
4895
+ const [lazyVideoObserver, setLazyVideoObserver] = createSignal16(void 0);
4896
+ const videoProps = createMemo16(() => {
4841
4897
  return {
4842
4898
  ...props.autoPlay === true ? {
4843
4899
  autoPlay: true
@@ -4856,7 +4912,7 @@ function Video(props) {
4856
4912
  } : {}
4857
4913
  };
4858
4914
  });
4859
- const spreadProps = createMemo15(() => {
4915
+ const spreadProps = createMemo16(() => {
4860
4916
  return {
4861
4917
  ...videoProps()
4862
4918
  };
@@ -5096,8 +5152,8 @@ import {
5096
5152
  onMount as onMount8,
5097
5153
  on as on8,
5098
5154
  createEffect as createEffect8,
5099
- createMemo as createMemo16,
5100
- createSignal as createSignal16
5155
+ createMemo as createMemo17,
5156
+ createSignal as createSignal17
5101
5157
  } from "solid-js";
5102
5158
  import { Dynamic as Dynamic5 } from "solid-js/web";
5103
5159
 
@@ -5107,7 +5163,7 @@ function getPreviewContent(_searchParams) {
5107
5163
  }
5108
5164
 
5109
5165
  // src/constants/sdk-version.ts
5110
- var SDK_VERSION = "4.0.9";
5166
+ var SDK_VERSION = "4.1.0";
5111
5167
 
5112
5168
  // src/helpers/sdk-headers.ts
5113
5169
  var getSdkHeaders = () => ({
@@ -5968,13 +6024,13 @@ var getWrapperClassName = (variationId) => {
5968
6024
 
5969
6025
  // src/components/content/components/enable-editor.tsx
5970
6026
  function EnableEditor(props) {
5971
- const [hasExecuted, setHasExecuted] = createSignal16(false);
5972
- const [ContentWrapper, setContentWrapper] = createSignal16(
6027
+ const [hasExecuted, setHasExecuted] = createSignal17(false);
6028
+ const [ContentWrapper, setContentWrapper] = createSignal17(
5973
6029
  props.contentWrapper || "div"
5974
6030
  );
5975
- const [httpReqsData, setHttpReqsData] = createSignal16({});
5976
- const [httpReqsPending, setHttpReqsPending] = createSignal16({});
5977
- const [clicked, setClicked] = createSignal16(false);
6031
+ const [httpReqsData, setHttpReqsData] = createSignal17({});
6032
+ const [httpReqsPending, setHttpReqsPending] = createSignal17({});
6033
+ const [clicked, setClicked] = createSignal17(false);
5978
6034
  function mergeNewRootState(newData) {
5979
6035
  const combinedState = {
5980
6036
  ...props.builderContextSignal.rootState,
@@ -6008,7 +6064,7 @@ function EnableEditor(props) {
6008
6064
  content: newContentValue
6009
6065
  }));
6010
6066
  }
6011
- const showContentProps = createMemo16(() => {
6067
+ const showContentProps = createMemo17(() => {
6012
6068
  return props.showContent ? {} : {
6013
6069
  hidden: true,
6014
6070
  "aria-hidden": true
@@ -6193,14 +6249,14 @@ function EnableEditor(props) {
6193
6249
  }
6194
6250
  }
6195
6251
  });
6196
- const onUpdateFn_0_props_content = createMemo16(() => props.content);
6252
+ const onUpdateFn_0_props_content = createMemo17(() => props.content);
6197
6253
  function onUpdateFn_0() {
6198
6254
  if (props.content) {
6199
6255
  mergeNewContent(props.content);
6200
6256
  }
6201
6257
  }
6202
6258
  createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6203
- const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
6259
+ const onUpdateFn_1_props_builderContextSignal_rootState = createMemo17(
6204
6260
  () => props.builderContextSignal.rootState
6205
6261
  );
6206
6262
  function onUpdateFn_1() {
@@ -6212,14 +6268,14 @@ function EnableEditor(props) {
6212
6268
  onUpdateFn_1
6213
6269
  )
6214
6270
  );
6215
- const onUpdateFn_2_props_data = createMemo16(() => props.data);
6271
+ const onUpdateFn_2_props_data = createMemo17(() => props.data);
6216
6272
  function onUpdateFn_2() {
6217
6273
  if (props.data) {
6218
6274
  mergeNewRootState(props.data);
6219
6275
  }
6220
6276
  }
6221
6277
  createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6222
- const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
6278
+ const onUpdateFn_3_props_locale = createMemo17(() => props.locale);
6223
6279
  function onUpdateFn_3() {
6224
6280
  if (props.locale) {
6225
6281
  mergeNewRootState({
@@ -6251,9 +6307,9 @@ function EnableEditor(props) {
6251
6307
  var Enable_editor_default = EnableEditor;
6252
6308
 
6253
6309
  // src/components/content/components/styles.tsx
6254
- import { createSignal as createSignal17 } from "solid-js";
6310
+ import { createSignal as createSignal18 } from "solid-js";
6255
6311
  function ContentStyles(props) {
6256
- const [injectedStyles, setInjectedStyles] = createSignal17(
6312
+ const [injectedStyles, setInjectedStyles] = createSignal18(
6257
6313
  `
6258
6314
  ${getCss({
6259
6315
  cssCode: props.cssCode,
@@ -6311,7 +6367,7 @@ var getContentInitialValue = ({
6311
6367
 
6312
6368
  // src/components/content/content.tsx
6313
6369
  function ContentComponent(props) {
6314
- const [scriptStr, setScriptStr] = createSignal18(
6370
+ const [scriptStr, setScriptStr] = createSignal19(
6315
6371
  getUpdateVariantVisibilityScript({
6316
6372
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
6317
6373
  variationId: props.content?.testVariationId,
@@ -6319,7 +6375,7 @@ function ContentComponent(props) {
6319
6375
  contentId: props.content?.id
6320
6376
  })
6321
6377
  );
6322
- const [registeredComponents, setRegisteredComponents] = createSignal18(
6378
+ const [registeredComponents, setRegisteredComponents] = createSignal19(
6323
6379
  [
6324
6380
  ...getDefaultRegisteredComponents(),
6325
6381
  ...props.customComponents || []
@@ -6334,7 +6390,7 @@ function ContentComponent(props) {
6334
6390
  {}
6335
6391
  )
6336
6392
  );
6337
- const [builderContextSignal, setBuilderContextSignal] = createSignal18({
6393
+ const [builderContextSignal, setBuilderContextSignal] = createSignal19({
6338
6394
  content: getContentInitialValue({
6339
6395
  content: props.content,
6340
6396
  data: props.data
@@ -6442,13 +6498,13 @@ var Content_default = ContentComponent;
6442
6498
 
6443
6499
  // src/components/content-variants/content-variants.tsx
6444
6500
  function ContentVariants(props) {
6445
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
6501
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal20(
6446
6502
  checkShouldRenderVariants2({
6447
6503
  canTrack: getDefaultCanTrack(props.canTrack),
6448
6504
  content: props.content
6449
6505
  })
6450
6506
  );
6451
- const updateCookieAndStylesScriptStr = createMemo19(() => {
6507
+ const updateCookieAndStylesScriptStr = createMemo20(() => {
6452
6508
  return getUpdateCookieAndStylesScript(
6453
6509
  getVariants(props.content).map((value) => ({
6454
6510
  id: value.testVariationId,
@@ -6457,10 +6513,10 @@ function ContentVariants(props) {
6457
6513
  props.content?.id || ""
6458
6514
  );
6459
6515
  });
6460
- const hideVariantsStyleString = createMemo19(() => {
6516
+ const hideVariantsStyleString = createMemo20(() => {
6461
6517
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
6462
6518
  });
6463
- const defaultContent = createMemo19(() => {
6519
+ const defaultContent = createMemo20(() => {
6464
6520
  return shouldRenderVariants() ? {
6465
6521
  ...props.content,
6466
6522
  testVariationId: props.content?.id
@@ -6579,15 +6635,15 @@ var fetchSymbolContent = async ({
6579
6635
 
6580
6636
  // src/blocks/symbol/symbol.tsx
6581
6637
  function Symbol(props) {
6582
- const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
6583
- const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
6584
- const blocksWrapper = createMemo20(() => {
6638
+ const [contentToUse, setContentToUse] = createSignal21(props.symbol?.content);
6639
+ const [symbolEntry, setSymbolEntry] = createSignal21(props.symbol?.entry);
6640
+ const blocksWrapper = createMemo21(() => {
6585
6641
  return "div";
6586
6642
  });
6587
- const contentWrapper = createMemo20(() => {
6643
+ const contentWrapper = createMemo21(() => {
6588
6644
  return "div";
6589
6645
  });
6590
- const className = createMemo20(() => {
6646
+ const className = createMemo21(() => {
6591
6647
  return [
6592
6648
  ...[props.attributes[getClassPropName()]],
6593
6649
  "builder-symbol",
@@ -6610,7 +6666,7 @@ function Symbol(props) {
6610
6666
  }
6611
6667
  onMount10(() => {
6612
6668
  });
6613
- const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
6669
+ const onUpdateFn_0_props_symbol = createMemo21(() => props.symbol);
6614
6670
  function onUpdateFn_0() {
6615
6671
  setContent();
6616
6672
  }