@builder.io/sdk-solid 2.0.3 → 2.0.5

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.
@@ -518,6 +518,9 @@ function assign(target, ..._args) {
518
518
  return to;
519
519
  }
520
520
  function bindAnimations(animations) {
521
+ if (TARGET === "reactNative") {
522
+ return;
523
+ }
521
524
  for (const animation of animations) {
522
525
  switch (animation.trigger) {
523
526
  case "pageLoad":
@@ -1541,7 +1544,7 @@ function FragmentComponent(props) {
1541
1544
  var fragment_default = FragmentComponent;
1542
1545
 
1543
1546
  // src/blocks/image/image.tsx
1544
- import { Show as Show7, createMemo as createMemo8 } from "solid-js";
1547
+ import { Show as Show7, onMount as onMount2, createMemo as createMemo8 } from "solid-js";
1545
1548
 
1546
1549
  // src/blocks/image/image.helpers.ts
1547
1550
  function removeProtocol(path) {
@@ -1630,12 +1633,14 @@ function Image(props) {
1630
1633
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
1631
1634
  return out;
1632
1635
  });
1636
+ onMount2(() => {
1637
+ });
1633
1638
  return <>
1634
1639
  <>
1635
1640
  <picture>
1636
1641
  <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
1637
1642
  <img
1638
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e"}
1643
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-4512e110"}
1639
1644
  loading={props.highPriority ? "eager" : "lazy"}
1640
1645
  fetchpriority={props.highPriority ? "high" : "auto"}
1641
1646
  alt={props.altText}
@@ -1653,22 +1658,22 @@ function Image(props) {
1653
1658
  <Show7
1654
1659
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1655
1660
  ><div
1656
- class="builder-image-sizer div-e3b1053e"
1661
+ class="builder-image-sizer div-4512e110"
1657
1662
  style={{
1658
1663
  "padding-top": props.aspectRatio * 100 + "%"
1659
1664
  }}
1660
1665
  /></Show7>
1661
1666
  <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
1662
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-e3b1053e-2">{props.children}</div></Show7>
1667
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-4512e110-2">{props.children}</div></Show7>
1663
1668
  </>
1664
- <style>{`.img-e3b1053e {
1669
+ <style>{`.img-4512e110 {
1665
1670
  opacity: 1;
1666
1671
  transition: opacity 0.2s ease-in-out;
1667
- }.div-e3b1053e {
1672
+ }.div-4512e110 {
1668
1673
  width: 100%;
1669
1674
  pointer-events: none;
1670
1675
  font-size: 0;
1671
- }.div-e3b1053e-2 {
1676
+ }.div-4512e110-2 {
1672
1677
  display: flex;
1673
1678
  flex-direction: column;
1674
1679
  align-items: stretch;
@@ -1704,10 +1709,10 @@ function SectionComponent(props) {
1704
1709
  var section_default = SectionComponent;
1705
1710
 
1706
1711
  // src/blocks/symbol/symbol.tsx
1707
- import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1712
+ import { onMount as onMount6, on as on3, createEffect as createEffect3, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
1708
1713
 
1709
1714
  // src/components/content-variants/content-variants.tsx
1710
- import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
1715
+ import { Show as Show14, For as For9, onMount as onMount5, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
1711
1716
 
1712
1717
  // src/helpers/url.ts
1713
1718
  var getTopLevelDomain = (host) => {
@@ -1901,7 +1906,7 @@ var handleABTesting = async ({
1901
1906
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
1902
1907
 
1903
1908
  // src/components/content/content.tsx
1904
- import { Show as Show13, createSignal as createSignal17 } from "solid-js";
1909
+ import { Show as Show13, createSignal as createSignal18 } from "solid-js";
1905
1910
 
1906
1911
  // src/blocks/accordion/component-info.ts
1907
1912
  var defaultTitle = {
@@ -2914,7 +2919,8 @@ var tabs_default = Tabs;
2914
2919
  // src/blocks/text/component-info.ts
2915
2920
  var componentInfo10 = {
2916
2921
  shouldReceiveBuilderProps: {
2917
- builderBlock: TARGET === "reactNative" ? true : false
2922
+ builderBlock: TARGET === "reactNative" ? true : false,
2923
+ builderContext: true
2918
2924
  },
2919
2925
  name: "Text",
2920
2926
  static: true,
@@ -2936,10 +2942,31 @@ var componentInfo10 = {
2936
2942
  };
2937
2943
 
2938
2944
  // src/blocks/text/text.tsx
2945
+ import { createMemo as createMemo11 } from "solid-js";
2939
2946
  function Text(props) {
2947
+ const processedText = createMemo11(() => {
2948
+ const context = props.builderContext;
2949
+ const {
2950
+ context: contextContext,
2951
+ localState,
2952
+ rootState,
2953
+ rootSetState
2954
+ } = context;
2955
+ return String(props.text?.toString() || "").replace(
2956
+ /{{([^}]+)}}/g,
2957
+ (match, group) => evaluate({
2958
+ code: group,
2959
+ context: contextContext,
2960
+ localState,
2961
+ rootState,
2962
+ rootSetState,
2963
+ enableCache: false
2964
+ })
2965
+ );
2966
+ });
2940
2967
  return <><div
2941
2968
  class="builder-text"
2942
- innerHTML={props.text?.toString() || ""}
2969
+ innerHTML={processedText()}
2943
2970
  style={{
2944
2971
  outline: "none"
2945
2972
  }}
@@ -2973,12 +3000,12 @@ var componentInfo11 = {
2973
3000
  };
2974
3001
 
2975
3002
  // src/blocks/custom-code/custom-code.tsx
2976
- import { onMount as onMount2, createSignal as createSignal11 } from "solid-js";
3003
+ import { onMount as onMount3, createSignal as createSignal12 } from "solid-js";
2977
3004
  function CustomCode(props) {
2978
- const [scriptsInserted, setScriptsInserted] = createSignal11([]);
2979
- const [scriptsRun, setScriptsRun] = createSignal11([]);
3005
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3006
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
2980
3007
  let elementRef;
2981
- onMount2(() => {
3008
+ onMount3(() => {
2982
3009
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
2983
3010
  return;
2984
3011
  }
@@ -3037,7 +3064,7 @@ var componentInfo12 = {
3037
3064
  };
3038
3065
 
3039
3066
  // src/blocks/embed/embed.tsx
3040
- import { on, createEffect, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3067
+ import { on, createEffect, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3041
3068
 
3042
3069
  // src/blocks/embed/helpers.ts
3043
3070
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -3045,9 +3072,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
3045
3072
 
3046
3073
  // src/blocks/embed/embed.tsx
3047
3074
  function Embed(props) {
3048
- const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3049
- const [scriptsRun, setScriptsRun] = createSignal12([]);
3050
- const [ranInitFn, setRanInitFn] = createSignal12(false);
3075
+ const [scriptsInserted, setScriptsInserted] = createSignal13([]);
3076
+ const [scriptsRun, setScriptsRun] = createSignal13([]);
3077
+ const [ranInitFn, setRanInitFn] = createSignal13(false);
3051
3078
  function findAndRunScripts() {
3052
3079
  if (!elem || !elem.getElementsByTagName)
3053
3080
  return;
@@ -3070,8 +3097,8 @@ function Embed(props) {
3070
3097
  }
3071
3098
  }
3072
3099
  let elem;
3073
- const onUpdateFn_0_elem = createMemo12(() => elem);
3074
- const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
3100
+ const onUpdateFn_0_elem = createMemo13(() => elem);
3101
+ const onUpdateFn_0_ranInitFn__ = createMemo13(() => ranInitFn());
3075
3102
  function onUpdateFn_0() {
3076
3103
  if (elem && !ranInitFn()) {
3077
3104
  setRanInitFn(true);
@@ -3326,7 +3353,7 @@ var componentInfo13 = {
3326
3353
  };
3327
3354
 
3328
3355
  // src/blocks/form/form/form.tsx
3329
- import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
3356
+ import { Show as Show10, For as For7, createSignal as createSignal14 } from "solid-js";
3330
3357
 
3331
3358
  // src/functions/get-env.ts
3332
3359
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3343,9 +3370,9 @@ var get = (obj, path, defaultValue) => {
3343
3370
 
3344
3371
  // src/blocks/form/form/form.tsx
3345
3372
  function FormComponent(props) {
3346
- const [formState, setFormState] = createSignal13("unsubmitted");
3347
- const [responseData, setResponseData] = createSignal13(null);
3348
- const [formErrorMessage, setFormErrorMessage] = createSignal13("");
3373
+ const [formState, setFormState] = createSignal14("unsubmitted");
3374
+ const [responseData, setResponseData] = createSignal14(null);
3375
+ const [formErrorMessage, setFormErrorMessage] = createSignal14("");
3349
3376
  function mergeNewRootState(newData) {
3350
3377
  const combinedState = {
3351
3378
  ...props.builderContext.rootState,
@@ -3918,9 +3945,9 @@ var componentInfo19 = {
3918
3945
  };
3919
3946
 
3920
3947
  // src/blocks/video/video.tsx
3921
- import { Show as Show11, createMemo as createMemo14 } from "solid-js";
3948
+ import { Show as Show11, createMemo as createMemo15 } from "solid-js";
3922
3949
  function Video(props) {
3923
- const videoProps = createMemo14(() => {
3950
+ const videoProps = createMemo15(() => {
3924
3951
  return {
3925
3952
  ...props.autoPlay === true ? {
3926
3953
  autoPlay: true
@@ -3939,7 +3966,7 @@ function Video(props) {
3939
3966
  } : {}
3940
3967
  };
3941
3968
  });
3942
- const spreadProps = createMemo14(() => {
3969
+ const spreadProps = createMemo15(() => {
3943
3970
  return {
3944
3971
  ...videoProps()
3945
3972
  };
@@ -4145,11 +4172,11 @@ var Inlined_script_default = InlinedScript;
4145
4172
  // src/components/content/components/enable-editor.tsx
4146
4173
  import {
4147
4174
  Show as Show12,
4148
- onMount as onMount3,
4175
+ onMount as onMount4,
4149
4176
  on as on2,
4150
4177
  createEffect as createEffect2,
4151
- createMemo as createMemo15,
4152
- createSignal as createSignal15
4178
+ createMemo as createMemo16,
4179
+ createSignal as createSignal16
4153
4180
  } from "solid-js";
4154
4181
  import { Dynamic as Dynamic5 } from "solid-js/web";
4155
4182
 
@@ -4647,7 +4674,7 @@ function isFromTrustedHost(trustedHosts, e) {
4647
4674
  }
4648
4675
 
4649
4676
  // src/constants/sdk-version.ts
4650
- var SDK_VERSION = "2.0.3";
4677
+ var SDK_VERSION = "2.0.5";
4651
4678
 
4652
4679
  // src/functions/register.ts
4653
4680
  var registry = {};
@@ -4924,12 +4951,12 @@ var getWrapperClassName = (variationId) => {
4924
4951
 
4925
4952
  // src/components/content/components/enable-editor.tsx
4926
4953
  function EnableEditor(props) {
4927
- const [ContentWrapper, setContentWrapper] = createSignal15(
4954
+ const [ContentWrapper, setContentWrapper] = createSignal16(
4928
4955
  props.contentWrapper || "div"
4929
4956
  );
4930
- const [httpReqsData, setHttpReqsData] = createSignal15({});
4931
- const [httpReqsPending, setHttpReqsPending] = createSignal15({});
4932
- const [clicked, setClicked] = createSignal15(false);
4957
+ const [httpReqsData, setHttpReqsData] = createSignal16({});
4958
+ const [httpReqsPending, setHttpReqsPending] = createSignal16({});
4959
+ const [clicked, setClicked] = createSignal16(false);
4933
4960
  function mergeNewRootState(newData) {
4934
4961
  const combinedState = {
4935
4962
  ...props.builderContextSignal.rootState,
@@ -4963,7 +4990,7 @@ function EnableEditor(props) {
4963
4990
  content: newContentValue
4964
4991
  }));
4965
4992
  }
4966
- const showContentProps = createMemo15(() => {
4993
+ const showContentProps = createMemo16(() => {
4967
4994
  return props.showContent ? {} : {
4968
4995
  hidden: true,
4969
4996
  "aria-hidden": true
@@ -5082,7 +5109,7 @@ function EnableEditor(props) {
5082
5109
  }
5083
5110
  }
5084
5111
  let elementRef;
5085
- onMount3(() => {
5112
+ onMount4(() => {
5086
5113
  if (isBrowser()) {
5087
5114
  if (isEditing()) {
5088
5115
  window.addEventListener("message", processMessage);
@@ -5143,7 +5170,7 @@ function EnableEditor(props) {
5143
5170
  }
5144
5171
  }
5145
5172
  });
5146
- onMount3(() => {
5173
+ onMount4(() => {
5147
5174
  if (!props.apiKey) {
5148
5175
  logger.error(
5149
5176
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
@@ -5153,14 +5180,14 @@ function EnableEditor(props) {
5153
5180
  runHttpRequests();
5154
5181
  emitStateUpdate();
5155
5182
  });
5156
- const onUpdateFn_0_props_content = createMemo15(() => props.content);
5183
+ const onUpdateFn_0_props_content = createMemo16(() => props.content);
5157
5184
  function onUpdateFn_0() {
5158
5185
  if (props.content) {
5159
5186
  mergeNewContent(props.content);
5160
5187
  }
5161
5188
  }
5162
5189
  createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
5163
- const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo15(() => props.builderContextSignal.content?.data?.jsCode);
5190
+ const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo16(() => props.builderContextSignal.content?.data?.jsCode);
5164
5191
  function onUpdateFn_1() {
5165
5192
  evaluateJsCode();
5166
5193
  }
@@ -5170,7 +5197,7 @@ function EnableEditor(props) {
5170
5197
  onUpdateFn_1
5171
5198
  )
5172
5199
  );
5173
- const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo15(() => props.builderContextSignal.content?.data?.httpRequests);
5200
+ const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo16(() => props.builderContextSignal.content?.data?.httpRequests);
5174
5201
  function onUpdateFn_2() {
5175
5202
  runHttpRequests();
5176
5203
  }
@@ -5182,7 +5209,7 @@ function EnableEditor(props) {
5182
5209
  onUpdateFn_2
5183
5210
  )
5184
5211
  );
5185
- const onUpdateFn_3_props_builderContextSignal_rootState = createMemo15(
5212
+ const onUpdateFn_3_props_builderContextSignal_rootState = createMemo16(
5186
5213
  () => props.builderContextSignal.rootState
5187
5214
  );
5188
5215
  function onUpdateFn_3() {
@@ -5194,14 +5221,14 @@ function EnableEditor(props) {
5194
5221
  onUpdateFn_3
5195
5222
  )
5196
5223
  );
5197
- const onUpdateFn_4_props_data = createMemo15(() => props.data);
5224
+ const onUpdateFn_4_props_data = createMemo16(() => props.data);
5198
5225
  function onUpdateFn_4() {
5199
5226
  if (props.data) {
5200
5227
  mergeNewRootState(props.data);
5201
5228
  }
5202
5229
  }
5203
5230
  createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
5204
- const onUpdateFn_5_props_locale = createMemo15(() => props.locale);
5231
+ const onUpdateFn_5_props_locale = createMemo16(() => props.locale);
5205
5232
  function onUpdateFn_5() {
5206
5233
  if (props.locale) {
5207
5234
  mergeNewRootState({
@@ -5228,9 +5255,9 @@ function EnableEditor(props) {
5228
5255
  var Enable_editor_default = EnableEditor;
5229
5256
 
5230
5257
  // src/components/content/components/styles.tsx
5231
- import { createSignal as createSignal16 } from "solid-js";
5258
+ import { createSignal as createSignal17 } from "solid-js";
5232
5259
  function ContentStyles(props) {
5233
- const [injectedStyles, setInjectedStyles] = createSignal16(
5260
+ const [injectedStyles, setInjectedStyles] = createSignal17(
5234
5261
  `
5235
5262
  ${getCss({
5236
5263
  cssCode: props.cssCode,
@@ -5288,7 +5315,7 @@ var getContentInitialValue = ({
5288
5315
 
5289
5316
  // src/components/content/content.tsx
5290
5317
  function ContentComponent(props) {
5291
- const [scriptStr, setScriptStr] = createSignal17(
5318
+ const [scriptStr, setScriptStr] = createSignal18(
5292
5319
  getUpdateVariantVisibilityScript({
5293
5320
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5294
5321
  variationId: props.content?.testVariationId,
@@ -5296,7 +5323,7 @@ function ContentComponent(props) {
5296
5323
  contentId: props.content?.id
5297
5324
  })
5298
5325
  );
5299
- const [registeredComponents, setRegisteredComponents] = createSignal17(
5326
+ const [registeredComponents, setRegisteredComponents] = createSignal18(
5300
5327
  [
5301
5328
  ...getDefaultRegisteredComponents(),
5302
5329
  ...props.customComponents?.filter(({ models }) => {
@@ -5317,7 +5344,7 @@ function ContentComponent(props) {
5317
5344
  {}
5318
5345
  )
5319
5346
  );
5320
- const [builderContextSignal, setBuilderContextSignal] = createSignal17({
5347
+ const [builderContextSignal, setBuilderContextSignal] = createSignal18({
5321
5348
  content: getContentInitialValue({
5322
5349
  content: props.content,
5323
5350
  data: props.data
@@ -5407,13 +5434,13 @@ var Content_default = ContentComponent;
5407
5434
 
5408
5435
  // src/components/content-variants/content-variants.tsx
5409
5436
  function ContentVariants(props) {
5410
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
5437
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
5411
5438
  checkShouldRenderVariants({
5412
5439
  canTrack: getDefaultCanTrack(props.canTrack),
5413
5440
  content: props.content
5414
5441
  })
5415
5442
  );
5416
- const updateCookieAndStylesScriptStr = createMemo18(() => {
5443
+ const updateCookieAndStylesScriptStr = createMemo19(() => {
5417
5444
  return getUpdateCookieAndStylesScript(
5418
5445
  getVariants(props.content).map((value) => ({
5419
5446
  id: value.testVariationId,
@@ -5422,10 +5449,10 @@ function ContentVariants(props) {
5422
5449
  props.content?.id || ""
5423
5450
  );
5424
5451
  });
5425
- const hideVariantsStyleString = createMemo18(() => {
5452
+ const hideVariantsStyleString = createMemo19(() => {
5426
5453
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
5427
5454
  });
5428
- const defaultContent = createMemo18(() => {
5455
+ const defaultContent = createMemo19(() => {
5429
5456
  return shouldRenderVariants() ? {
5430
5457
  ...props.content,
5431
5458
  testVariationId: props.content?.id
@@ -5434,7 +5461,7 @@ function ContentVariants(props) {
5434
5461
  canTrack: getDefaultCanTrack(props.canTrack)
5435
5462
  });
5436
5463
  });
5437
- onMount4(() => {
5464
+ onMount5(() => {
5438
5465
  setShouldRenderVariants(false);
5439
5466
  });
5440
5467
  return <><>
@@ -5534,14 +5561,14 @@ var fetchSymbolContent = async ({
5534
5561
 
5535
5562
  // src/blocks/symbol/symbol.tsx
5536
5563
  function Symbol(props) {
5537
- const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
5538
- const blocksWrapper = createMemo19(() => {
5564
+ const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
5565
+ const blocksWrapper = createMemo20(() => {
5539
5566
  return "div";
5540
5567
  });
5541
- const contentWrapper = createMemo19(() => {
5568
+ const contentWrapper = createMemo20(() => {
5542
5569
  return "div";
5543
5570
  });
5544
- const className = createMemo19(() => {
5571
+ const className = createMemo20(() => {
5545
5572
  return [
5546
5573
  ...[props.attributes[getClassPropName()]],
5547
5574
  "builder-symbol",
@@ -5561,9 +5588,9 @@ function Symbol(props) {
5561
5588
  }
5562
5589
  });
5563
5590
  }
5564
- onMount5(() => {
5591
+ onMount6(() => {
5565
5592
  });
5566
- const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
5593
+ const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
5567
5594
  function onUpdateFn_0() {
5568
5595
  setContent();
5569
5596
  }
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":
@@ -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.5";
8299
8322
 
8300
8323
  // src/functions/register.ts
8301
8324
  var registry = {};