@builder.io/sdk-solid 2.0.3 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/edge/dev.js CHANGED
@@ -3679,6 +3679,9 @@ function assign(target, ..._args) {
3679
3679
  return to;
3680
3680
  }
3681
3681
  function bindAnimations(animations) {
3682
+ if (TARGET === "reactNative") {
3683
+ return;
3684
+ }
3682
3685
  for (const animation of animations) {
3683
3686
  switch (animation.trigger) {
3684
3687
  case "pageLoad":
@@ -4421,7 +4424,7 @@ function Block(props) {
4421
4424
  registeredComponents: props.registeredComponents,
4422
4425
  builderBlock: processedBlock(),
4423
4426
  includeBlockProps: blockComponent()?.noWrap === true,
4424
- isInteractive: !blockComponent()?.isRSC
4427
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
4425
4428
  };
4426
4429
  });
4427
4430
  onMount(() => {
@@ -4955,16 +4958,16 @@ function getSrcSet(url) {
4955
4958
  // src/blocks/image/image.tsx
4956
4959
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
4957
4960
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
4958
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-e3b1053e">`);
4959
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-e3b1053e-2>`);
4960
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-e3b1053e {
4961
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-4512e110">`);
4962
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-4512e110-2>`);
4963
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-4512e110 {
4961
4964
  opacity: 1;
4962
4965
  transition: opacity 0.2s ease-in-out;
4963
- }.div-e3b1053e {
4966
+ }.div-4512e110 {
4964
4967
  width: 100%;
4965
4968
  pointer-events: none;
4966
4969
  font-size: 0;
4967
- }.div-e3b1053e-2 {
4970
+ }.div-4512e110-2 {
4968
4971
  display: flex;
4969
4972
  flex-direction: column;
4970
4973
  align-items: stretch;
@@ -5014,6 +5017,8 @@ function Image(props) {
5014
5017
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
5015
5018
  return out;
5016
5019
  });
5020
+ onMount(() => {
5021
+ });
5017
5022
  return [[(() => {
5018
5023
  const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
5019
5024
  insert(_el$, createComponent(Show, {
@@ -5027,7 +5032,7 @@ function Image(props) {
5027
5032
  }
5028
5033
  }), _el$3);
5029
5034
  effect((_p$) => {
5030
- const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.altText ? void 0 : "presentation", _v$6 = {
5035
+ const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-4512e110", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.altText ? void 0 : "presentation", _v$6 = {
5031
5036
  "object-position": props.backgroundPosition || "center",
5032
5037
  "object-fit": props.backgroundSize || "cover",
5033
5038
  ...aspectRatioCss()
@@ -6398,7 +6403,8 @@ delegateEvents(["click"]);
6398
6403
  // src/blocks/text/component-info.ts
6399
6404
  var componentInfo10 = {
6400
6405
  shouldReceiveBuilderProps: {
6401
- builderBlock: TARGET === "reactNative" ? true : false
6406
+ builderBlock: TARGET === "reactNative" ? true : false,
6407
+ builderContext: true
6402
6408
  },
6403
6409
  name: "Text",
6404
6410
  static: true,
@@ -6420,10 +6426,27 @@ var componentInfo10 = {
6420
6426
  };
6421
6427
  var _tmpl$10 = /* @__PURE__ */ template(`<div class=builder-text>`);
6422
6428
  function Text(props) {
6429
+ const processedText = createMemo(() => {
6430
+ const context = props.builderContext;
6431
+ const {
6432
+ context: contextContext,
6433
+ localState,
6434
+ rootState,
6435
+ rootSetState
6436
+ } = context;
6437
+ return String(props.text?.toString() || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
6438
+ code: group,
6439
+ context: contextContext,
6440
+ localState,
6441
+ rootState,
6442
+ rootSetState,
6443
+ enableCache: false
6444
+ }));
6445
+ });
6423
6446
  return (() => {
6424
6447
  const _el$ = _tmpl$10();
6425
6448
  _el$.style.setProperty("outline", "none");
6426
- effect(() => _el$.innerHTML = props.text?.toString() || "");
6449
+ effect(() => _el$.innerHTML = processedText());
6427
6450
  return _el$;
6428
6451
  })();
6429
6452
  }
@@ -8295,7 +8318,7 @@ function isFromTrustedHost(trustedHosts, e) {
8295
8318
  }
8296
8319
 
8297
8320
  // src/constants/sdk-version.ts
8298
- var SDK_VERSION = "2.0.3";
8321
+ var SDK_VERSION = "2.0.8";
8299
8322
 
8300
8323
  // src/functions/register.ts
8301
8324
  var registry = {};
@@ -9170,7 +9193,7 @@ function ContentVariants(props) {
9170
9193
  },
9171
9194
  children: (variant, _index) => {
9172
9195
  _index();
9173
- return createComponent(content_default, {
9196
+ return createComponent(content_default, mergeProps({
9174
9197
  get isNestedRender() {
9175
9198
  return props.isNestedRender;
9176
9199
  },
@@ -9230,7 +9253,7 @@ function ContentVariants(props) {
9230
9253
  get trustedHosts() {
9231
9254
  return props.trustedHosts;
9232
9255
  }
9233
- });
9256
+ }, {}));
9234
9257
  }
9235
9258
  })];
9236
9259
  }
package/lib/edge/dev.jsx CHANGED
@@ -3668,6 +3668,9 @@ function assign(target, ..._args) {
3668
3668
  return to;
3669
3669
  }
3670
3670
  function bindAnimations(animations) {
3671
+ if (TARGET === "reactNative") {
3672
+ return;
3673
+ }
3671
3674
  for (const animation of animations) {
3672
3675
  switch (animation.trigger) {
3673
3676
  case "pageLoad":
@@ -4370,7 +4373,7 @@ function Block(props) {
4370
4373
  registeredComponents: props.registeredComponents,
4371
4374
  builderBlock: processedBlock(),
4372
4375
  includeBlockProps: blockComponent()?.noWrap === true,
4373
- isInteractive: !blockComponent()?.isRSC
4376
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
4374
4377
  };
4375
4378
  });
4376
4379
  onMount(() => {
@@ -4695,7 +4698,7 @@ function FragmentComponent(props) {
4695
4698
  var fragment_default = FragmentComponent;
4696
4699
 
4697
4700
  // src/blocks/image/image.tsx
4698
- import { Show as Show7, createMemo as createMemo8 } from "solid-js";
4701
+ import { Show as Show7, onMount as onMount2, createMemo as createMemo8 } from "solid-js";
4699
4702
 
4700
4703
  // src/blocks/image/image.helpers.ts
4701
4704
  function removeProtocol(path) {
@@ -4785,12 +4788,14 @@ function Image(props) {
4785
4788
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
4786
4789
  return out;
4787
4790
  });
4791
+ onMount2(() => {
4792
+ });
4788
4793
  return <>
4789
4794
  <>
4790
4795
  <picture>
4791
4796
  <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
4792
4797
  <img
4793
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e"}
4798
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-4512e110"}
4794
4799
  loading={props.highPriority ? "eager" : "lazy"}
4795
4800
  fetchpriority={props.highPriority ? "high" : "auto"}
4796
4801
  alt={props.altText}
@@ -4808,22 +4813,22 @@ function Image(props) {
4808
4813
  <Show7
4809
4814
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
4810
4815
  ><div
4811
- class="builder-image-sizer div-e3b1053e"
4816
+ class="builder-image-sizer div-4512e110"
4812
4817
  style={{
4813
4818
  "padding-top": props.aspectRatio * 100 + "%"
4814
4819
  }}
4815
4820
  /></Show7>
4816
4821
  <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
4817
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-e3b1053e-2">{props.children}</div></Show7>
4822
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-4512e110-2">{props.children}</div></Show7>
4818
4823
  </>
4819
- <style>{`.img-e3b1053e {
4824
+ <style>{`.img-4512e110 {
4820
4825
  opacity: 1;
4821
4826
  transition: opacity 0.2s ease-in-out;
4822
- }.div-e3b1053e {
4827
+ }.div-4512e110 {
4823
4828
  width: 100%;
4824
4829
  pointer-events: none;
4825
4830
  font-size: 0;
4826
- }.div-e3b1053e-2 {
4831
+ }.div-4512e110-2 {
4827
4832
  display: flex;
4828
4833
  flex-direction: column;
4829
4834
  align-items: stretch;
@@ -4859,10 +4864,10 @@ function SectionComponent(props) {
4859
4864
  var section_default = SectionComponent;
4860
4865
 
4861
4866
  // src/blocks/symbol/symbol.tsx
4862
- import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
4867
+ import { onMount as onMount6, on as on3, createEffect as createEffect3, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
4863
4868
 
4864
4869
  // src/components/content-variants/content-variants.tsx
4865
- import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
4870
+ import { Show as Show14, For as For9, onMount as onMount5, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
4866
4871
 
4867
4872
  // src/helpers/url.ts
4868
4873
  var getTopLevelDomain = (host) => {
@@ -5056,7 +5061,7 @@ var handleABTesting = async ({
5056
5061
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
5057
5062
 
5058
5063
  // src/components/content/content.tsx
5059
- import { Show as Show13, createSignal as createSignal17 } from "solid-js";
5064
+ import { Show as Show13, createSignal as createSignal18 } from "solid-js";
5060
5065
 
5061
5066
  // src/blocks/accordion/component-info.ts
5062
5067
  var defaultTitle = {
@@ -6070,7 +6075,8 @@ var tabs_default = Tabs;
6070
6075
  // src/blocks/text/component-info.ts
6071
6076
  var componentInfo10 = {
6072
6077
  shouldReceiveBuilderProps: {
6073
- builderBlock: TARGET === "reactNative" ? true : false
6078
+ builderBlock: TARGET === "reactNative" ? true : false,
6079
+ builderContext: true
6074
6080
  },
6075
6081
  name: "Text",
6076
6082
  static: true,
@@ -6092,10 +6098,31 @@ var componentInfo10 = {
6092
6098
  };
6093
6099
 
6094
6100
  // src/blocks/text/text.tsx
6101
+ import { createMemo as createMemo11 } from "solid-js";
6095
6102
  function Text(props) {
6103
+ const processedText = createMemo11(() => {
6104
+ const context = props.builderContext;
6105
+ const {
6106
+ context: contextContext,
6107
+ localState,
6108
+ rootState,
6109
+ rootSetState
6110
+ } = context;
6111
+ return String(props.text?.toString() || "").replace(
6112
+ /{{([^}]+)}}/g,
6113
+ (match, group) => evaluate({
6114
+ code: group,
6115
+ context: contextContext,
6116
+ localState,
6117
+ rootState,
6118
+ rootSetState,
6119
+ enableCache: false
6120
+ })
6121
+ );
6122
+ });
6096
6123
  return <><div
6097
6124
  class="builder-text"
6098
- innerHTML={props.text?.toString() || ""}
6125
+ innerHTML={processedText()}
6099
6126
  style={{
6100
6127
  outline: "none"
6101
6128
  }}
@@ -6129,12 +6156,12 @@ var componentInfo11 = {
6129
6156
  };
6130
6157
 
6131
6158
  // src/blocks/custom-code/custom-code.tsx
6132
- import { onMount as onMount2, createSignal as createSignal11 } from "solid-js";
6159
+ import { onMount as onMount3, createSignal as createSignal12 } from "solid-js";
6133
6160
  function CustomCode(props) {
6134
- const [scriptsInserted, setScriptsInserted] = createSignal11([]);
6135
- const [scriptsRun, setScriptsRun] = createSignal11([]);
6161
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6162
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
6136
6163
  let elementRef;
6137
- onMount2(() => {
6164
+ onMount3(() => {
6138
6165
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
6139
6166
  return;
6140
6167
  }
@@ -6194,7 +6221,7 @@ var componentInfo12 = {
6194
6221
  };
6195
6222
 
6196
6223
  // src/blocks/embed/embed.tsx
6197
- import { on, createEffect, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6224
+ import { on, createEffect, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6198
6225
 
6199
6226
  // src/blocks/embed/helpers.ts
6200
6227
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -6202,9 +6229,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
6202
6229
 
6203
6230
  // src/blocks/embed/embed.tsx
6204
6231
  function Embed(props) {
6205
- const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6206
- const [scriptsRun, setScriptsRun] = createSignal12([]);
6207
- const [ranInitFn, setRanInitFn] = createSignal12(false);
6232
+ const [scriptsInserted, setScriptsInserted] = createSignal13([]);
6233
+ const [scriptsRun, setScriptsRun] = createSignal13([]);
6234
+ const [ranInitFn, setRanInitFn] = createSignal13(false);
6208
6235
  function findAndRunScripts() {
6209
6236
  if (!elem || !elem.getElementsByTagName)
6210
6237
  return;
@@ -6228,8 +6255,8 @@ function Embed(props) {
6228
6255
  }
6229
6256
  }
6230
6257
  let elem;
6231
- const onUpdateFn_0_elem = createMemo12(() => elem);
6232
- const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
6258
+ const onUpdateFn_0_elem = createMemo13(() => elem);
6259
+ const onUpdateFn_0_ranInitFn__ = createMemo13(() => ranInitFn());
6233
6260
  function onUpdateFn_0() {
6234
6261
  if (elem && !ranInitFn()) {
6235
6262
  setRanInitFn(true);
@@ -6484,7 +6511,7 @@ var componentInfo13 = {
6484
6511
  };
6485
6512
 
6486
6513
  // src/blocks/form/form/form.tsx
6487
- import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
6514
+ import { Show as Show10, For as For7, createSignal as createSignal14 } from "solid-js";
6488
6515
 
6489
6516
  // src/functions/get-env.ts
6490
6517
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -6501,9 +6528,9 @@ var get = (obj, path, defaultValue) => {
6501
6528
 
6502
6529
  // src/blocks/form/form/form.tsx
6503
6530
  function FormComponent(props) {
6504
- const [formState, setFormState] = createSignal13("unsubmitted");
6505
- const [responseData, setResponseData] = createSignal13(null);
6506
- const [formErrorMessage, setFormErrorMessage] = createSignal13("");
6531
+ const [formState, setFormState] = createSignal14("unsubmitted");
6532
+ const [responseData, setResponseData] = createSignal14(null);
6533
+ const [formErrorMessage, setFormErrorMessage] = createSignal14("");
6507
6534
  function mergeNewRootState(newData) {
6508
6535
  const combinedState = {
6509
6536
  ...props.builderContext.rootState,
@@ -7076,9 +7103,9 @@ var componentInfo19 = {
7076
7103
  };
7077
7104
 
7078
7105
  // src/blocks/video/video.tsx
7079
- import { Show as Show11, createMemo as createMemo14 } from "solid-js";
7106
+ import { Show as Show11, createMemo as createMemo15 } from "solid-js";
7080
7107
  function Video(props) {
7081
- const videoProps = createMemo14(() => {
7108
+ const videoProps = createMemo15(() => {
7082
7109
  return {
7083
7110
  ...props.autoPlay === true ? {
7084
7111
  autoPlay: true
@@ -7097,7 +7124,7 @@ function Video(props) {
7097
7124
  } : {}
7098
7125
  };
7099
7126
  });
7100
- const spreadProps = createMemo14(() => {
7127
+ const spreadProps = createMemo15(() => {
7101
7128
  return {
7102
7129
  ...videoProps()
7103
7130
  };
@@ -7303,11 +7330,11 @@ var Inlined_script_default = InlinedScript;
7303
7330
  // src/components/content/components/enable-editor.tsx
7304
7331
  import {
7305
7332
  Show as Show12,
7306
- onMount as onMount3,
7333
+ onMount as onMount4,
7307
7334
  on as on2,
7308
7335
  createEffect as createEffect2,
7309
- createMemo as createMemo15,
7310
- createSignal as createSignal15
7336
+ createMemo as createMemo16,
7337
+ createSignal as createSignal16
7311
7338
  } from "solid-js";
7312
7339
  import { Dynamic as Dynamic5 } from "solid-js/web";
7313
7340
 
@@ -7810,7 +7837,7 @@ function isFromTrustedHost(trustedHosts, e) {
7810
7837
  }
7811
7838
 
7812
7839
  // src/constants/sdk-version.ts
7813
- var SDK_VERSION = "2.0.3";
7840
+ var SDK_VERSION = "2.0.8";
7814
7841
 
7815
7842
  // src/functions/register.ts
7816
7843
  var registry = {};
@@ -8088,12 +8115,12 @@ var getWrapperClassName = (variationId) => {
8088
8115
 
8089
8116
  // src/components/content/components/enable-editor.tsx
8090
8117
  function EnableEditor(props) {
8091
- const [ContentWrapper, setContentWrapper] = createSignal15(
8118
+ const [ContentWrapper, setContentWrapper] = createSignal16(
8092
8119
  props.contentWrapper || "div"
8093
8120
  );
8094
- const [httpReqsData, setHttpReqsData] = createSignal15({});
8095
- const [httpReqsPending, setHttpReqsPending] = createSignal15({});
8096
- const [clicked, setClicked] = createSignal15(false);
8121
+ const [httpReqsData, setHttpReqsData] = createSignal16({});
8122
+ const [httpReqsPending, setHttpReqsPending] = createSignal16({});
8123
+ const [clicked, setClicked] = createSignal16(false);
8097
8124
  function mergeNewRootState(newData) {
8098
8125
  const combinedState = {
8099
8126
  ...props.builderContextSignal.rootState,
@@ -8127,7 +8154,7 @@ function EnableEditor(props) {
8127
8154
  content: newContentValue
8128
8155
  }));
8129
8156
  }
8130
- const showContentProps = createMemo15(() => {
8157
+ const showContentProps = createMemo16(() => {
8131
8158
  return props.showContent ? {} : {
8132
8159
  hidden: true,
8133
8160
  "aria-hidden": true
@@ -8247,7 +8274,7 @@ function EnableEditor(props) {
8247
8274
  }
8248
8275
  }
8249
8276
  let elementRef;
8250
- onMount3(() => {
8277
+ onMount4(() => {
8251
8278
  if (isBrowser()) {
8252
8279
  if (isEditing()) {
8253
8280
  window.addEventListener("message", processMessage);
@@ -8308,7 +8335,7 @@ function EnableEditor(props) {
8308
8335
  }
8309
8336
  }
8310
8337
  });
8311
- onMount3(() => {
8338
+ onMount4(() => {
8312
8339
  if (!props.apiKey) {
8313
8340
  logger.error(
8314
8341
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
@@ -8318,14 +8345,14 @@ function EnableEditor(props) {
8318
8345
  runHttpRequests();
8319
8346
  emitStateUpdate();
8320
8347
  });
8321
- const onUpdateFn_0_props_content = createMemo15(() => props.content);
8348
+ const onUpdateFn_0_props_content = createMemo16(() => props.content);
8322
8349
  function onUpdateFn_0() {
8323
8350
  if (props.content) {
8324
8351
  mergeNewContent(props.content);
8325
8352
  }
8326
8353
  }
8327
8354
  createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
8328
- const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo15(() => props.builderContextSignal.content?.data?.jsCode);
8355
+ const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo16(() => props.builderContextSignal.content?.data?.jsCode);
8329
8356
  function onUpdateFn_1() {
8330
8357
  evaluateJsCode();
8331
8358
  }
@@ -8335,7 +8362,7 @@ function EnableEditor(props) {
8335
8362
  onUpdateFn_1
8336
8363
  )
8337
8364
  );
8338
- const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo15(() => props.builderContextSignal.content?.data?.httpRequests);
8365
+ const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo16(() => props.builderContextSignal.content?.data?.httpRequests);
8339
8366
  function onUpdateFn_2() {
8340
8367
  runHttpRequests();
8341
8368
  }
@@ -8347,7 +8374,7 @@ function EnableEditor(props) {
8347
8374
  onUpdateFn_2
8348
8375
  )
8349
8376
  );
8350
- const onUpdateFn_3_props_builderContextSignal_rootState = createMemo15(
8377
+ const onUpdateFn_3_props_builderContextSignal_rootState = createMemo16(
8351
8378
  () => props.builderContextSignal.rootState
8352
8379
  );
8353
8380
  function onUpdateFn_3() {
@@ -8359,14 +8386,14 @@ function EnableEditor(props) {
8359
8386
  onUpdateFn_3
8360
8387
  )
8361
8388
  );
8362
- const onUpdateFn_4_props_data = createMemo15(() => props.data);
8389
+ const onUpdateFn_4_props_data = createMemo16(() => props.data);
8363
8390
  function onUpdateFn_4() {
8364
8391
  if (props.data) {
8365
8392
  mergeNewRootState(props.data);
8366
8393
  }
8367
8394
  }
8368
8395
  createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
8369
- const onUpdateFn_5_props_locale = createMemo15(() => props.locale);
8396
+ const onUpdateFn_5_props_locale = createMemo16(() => props.locale);
8370
8397
  function onUpdateFn_5() {
8371
8398
  if (props.locale) {
8372
8399
  mergeNewRootState({
@@ -8393,9 +8420,9 @@ function EnableEditor(props) {
8393
8420
  var Enable_editor_default = EnableEditor;
8394
8421
 
8395
8422
  // src/components/content/components/styles.tsx
8396
- import { createSignal as createSignal16 } from "solid-js";
8423
+ import { createSignal as createSignal17 } from "solid-js";
8397
8424
  function ContentStyles(props) {
8398
- const [injectedStyles, setInjectedStyles] = createSignal16(
8425
+ const [injectedStyles, setInjectedStyles] = createSignal17(
8399
8426
  `
8400
8427
  ${getCss({
8401
8428
  cssCode: props.cssCode,
@@ -8453,7 +8480,7 @@ var getContentInitialValue = ({
8453
8480
 
8454
8481
  // src/components/content/content.tsx
8455
8482
  function ContentComponent(props) {
8456
- const [scriptStr, setScriptStr] = createSignal17(
8483
+ const [scriptStr, setScriptStr] = createSignal18(
8457
8484
  getUpdateVariantVisibilityScript({
8458
8485
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
8459
8486
  variationId: props.content?.testVariationId,
@@ -8461,7 +8488,7 @@ function ContentComponent(props) {
8461
8488
  contentId: props.content?.id
8462
8489
  })
8463
8490
  );
8464
- const [registeredComponents, setRegisteredComponents] = createSignal17(
8491
+ const [registeredComponents, setRegisteredComponents] = createSignal18(
8465
8492
  [
8466
8493
  ...getDefaultRegisteredComponents(),
8467
8494
  ...props.customComponents?.filter(({ models }) => {
@@ -8482,7 +8509,7 @@ function ContentComponent(props) {
8482
8509
  {}
8483
8510
  )
8484
8511
  );
8485
- const [builderContextSignal, setBuilderContextSignal] = createSignal17({
8512
+ const [builderContextSignal, setBuilderContextSignal] = createSignal18({
8486
8513
  content: getContentInitialValue({
8487
8514
  content: props.content,
8488
8515
  data: props.data
@@ -8572,13 +8599,13 @@ var Content_default = ContentComponent;
8572
8599
 
8573
8600
  // src/components/content-variants/content-variants.tsx
8574
8601
  function ContentVariants(props) {
8575
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
8602
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
8576
8603
  checkShouldRenderVariants({
8577
8604
  canTrack: getDefaultCanTrack(props.canTrack),
8578
8605
  content: props.content
8579
8606
  })
8580
8607
  );
8581
- const updateCookieAndStylesScriptStr = createMemo18(() => {
8608
+ const updateCookieAndStylesScriptStr = createMemo19(() => {
8582
8609
  return getUpdateCookieAndStylesScript(
8583
8610
  getVariants(props.content).map((value) => ({
8584
8611
  id: value.testVariationId,
@@ -8587,10 +8614,10 @@ function ContentVariants(props) {
8587
8614
  props.content?.id || ""
8588
8615
  );
8589
8616
  });
8590
- const hideVariantsStyleString = createMemo18(() => {
8617
+ const hideVariantsStyleString = createMemo19(() => {
8591
8618
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
8592
8619
  });
8593
- const defaultContent = createMemo18(() => {
8620
+ const defaultContent = createMemo19(() => {
8594
8621
  return shouldRenderVariants() ? {
8595
8622
  ...props.content,
8596
8623
  testVariationId: props.content?.id
@@ -8599,7 +8626,7 @@ function ContentVariants(props) {
8599
8626
  canTrack: getDefaultCanTrack(props.canTrack)
8600
8627
  });
8601
8628
  });
8602
- onMount4(() => {
8629
+ onMount5(() => {
8603
8630
  setShouldRenderVariants(false);
8604
8631
  });
8605
8632
  return <><>
@@ -8643,6 +8670,7 @@ function ContentVariants(props) {
8643
8670
  contentWrapper={props.contentWrapper}
8644
8671
  contentWrapperProps={props.contentWrapperProps}
8645
8672
  trustedHosts={props.trustedHosts}
8673
+ {...{}}
8646
8674
  />;
8647
8675
  }}</For9>
8648
8676
  </Show14>
@@ -8699,14 +8727,14 @@ var fetchSymbolContent = async ({
8699
8727
 
8700
8728
  // src/blocks/symbol/symbol.tsx
8701
8729
  function Symbol2(props) {
8702
- const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
8703
- const blocksWrapper = createMemo19(() => {
8730
+ const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
8731
+ const blocksWrapper = createMemo20(() => {
8704
8732
  return "div";
8705
8733
  });
8706
- const contentWrapper = createMemo19(() => {
8734
+ const contentWrapper = createMemo20(() => {
8707
8735
  return "div";
8708
8736
  });
8709
- const className = createMemo19(() => {
8737
+ const className = createMemo20(() => {
8710
8738
  return [
8711
8739
  ...[props.attributes[getClassPropName()]],
8712
8740
  "builder-symbol",
@@ -8726,9 +8754,9 @@ function Symbol2(props) {
8726
8754
  }
8727
8755
  });
8728
8756
  }
8729
- onMount5(() => {
8757
+ onMount6(() => {
8730
8758
  });
8731
- const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
8759
+ const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
8732
8760
  function onUpdateFn_0() {
8733
8761
  setContent();
8734
8762
  }