@builder.io/sdk-solid 4.0.6 → 4.0.7

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
@@ -1100,6 +1100,9 @@ var provideBuilderContext = (block, context) => {
1100
1100
  };
1101
1101
  return {};
1102
1102
  };
1103
+ var generateKey = (index) => {
1104
+ return index.toString();
1105
+ };
1103
1106
 
1104
1107
  // src/components/block/components/block-styles.tsx
1105
1108
  import { Show as Show2, createMemo } from "solid-js";
@@ -1407,9 +1410,12 @@ function InteractiveElement(props) {
1407
1410
  })
1408
1411
  } : {};
1409
1412
  });
1413
+ const targetWrapperProps = createMemo2(() => {
1414
+ return props.wrapperProps;
1415
+ });
1410
1416
  return <><Show3
1411
1417
  fallback={<Dynamic2
1412
- {...props.wrapperProps}
1418
+ {...targetWrapperProps()}
1413
1419
  attributes={attributes()}
1414
1420
  component={props.Wrapper}
1415
1421
  >{props.children}</Dynamic2>}
@@ -1505,9 +1511,16 @@ function ComponentRef(props) {
1505
1511
  var Component_ref_default = ComponentRef;
1506
1512
 
1507
1513
  // src/components/block/components/repeated-block.tsx
1508
- import { createSignal as createSignal4 } from "solid-js";
1514
+ import { on as on2, createEffect as createEffect2, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
1509
1515
  function RepeatedBlock(props) {
1510
1516
  const [store, setStore] = createSignal4(props.repeatContext);
1517
+ const onUpdateFn_0_props_repeatContext = createMemo4(
1518
+ () => props.repeatContext
1519
+ );
1520
+ function onUpdateFn_0() {
1521
+ setStore(props.repeatContext);
1522
+ }
1523
+ createEffect2(on2(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
1511
1524
  return <><builder_context_default.Provider value={store()}><Block_default
1512
1525
  block={props.block}
1513
1526
  context={store()}
@@ -1612,7 +1625,7 @@ function Block(props) {
1612
1625
  fallback={<For2 each={repeatItem()}>{(data, _index) => {
1613
1626
  const index = _index();
1614
1627
  return <Repeated_block_default
1615
- key={index}
1628
+ key={generateKey(index)}
1616
1629
  repeatContext={data.context}
1617
1630
  block={data.block}
1618
1631
  registeredComponents={props.registeredComponents}
@@ -1636,7 +1649,7 @@ function Block(props) {
1636
1649
  fallback={<For2 each={repeatItem()}>{(data, _index) => {
1637
1650
  const index = _index();
1638
1651
  return <Repeated_block_default
1639
- key={index}
1652
+ key={generateKey(index)}
1640
1653
  repeatContext={data.context}
1641
1654
  block={data.block}
1642
1655
  registeredComponents={props.registeredComponents}
@@ -1676,7 +1689,7 @@ function Block(props) {
1676
1689
  var Block_default = Block;
1677
1690
 
1678
1691
  // src/components/blocks/blocks-wrapper.tsx
1679
- import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
1692
+ import { onMount as onMount3, on as on4, createEffect as createEffect4, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
1680
1693
  import { Dynamic as Dynamic4 } from "solid-js/web";
1681
1694
  function BlocksWrapper(props) {
1682
1695
  const [shouldUpdate, setShouldUpdate] = createSignal6(false);
@@ -1729,7 +1742,7 @@ function BlocksWrapper(props) {
1729
1742
  const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
1730
1743
  function onUpdateFn_0() {
1731
1744
  }
1732
- createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
1745
+ createEffect4(on4(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
1733
1746
  return <>
1734
1747
  <Dynamic4
1735
1748
  class={className() + " dynamic-023c60f2"}
@@ -1954,7 +1967,7 @@ function FragmentComponent(props) {
1954
1967
  var fragment_default = FragmentComponent;
1955
1968
 
1956
1969
  // src/blocks/image/image.tsx
1957
- import { Show as Show8, createMemo as createMemo8 } from "solid-js";
1970
+ import { Show as Show8, onMount as onMount4, createMemo as createMemo8 } from "solid-js";
1958
1971
 
1959
1972
  // src/blocks/image/image.helpers.ts
1960
1973
  function removeProtocol(path) {
@@ -2044,12 +2057,14 @@ function Image(props) {
2044
2057
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
2045
2058
  return out;
2046
2059
  });
2060
+ onMount4(() => {
2061
+ });
2047
2062
  return <>
2048
2063
  <>
2049
2064
  <picture>
2050
2065
  <Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
2051
2066
  <img
2052
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-040e729e"}
2067
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-5f381e78"}
2053
2068
  loading={props.highPriority ? "eager" : "lazy"}
2054
2069
  fetchpriority={props.highPriority ? "high" : "auto"}
2055
2070
  alt={props.altText}
@@ -2068,22 +2083,22 @@ function Image(props) {
2068
2083
  <Show8
2069
2084
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
2070
2085
  ><div
2071
- class="builder-image-sizer div-040e729e"
2086
+ class="builder-image-sizer div-5f381e78"
2072
2087
  style={{
2073
2088
  "padding-top": props.aspectRatio * 100 + "%"
2074
2089
  }}
2075
2090
  /></Show8>
2076
2091
  <Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
2077
- <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-040e729e-2">{props.children}</div></Show8>
2092
+ <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-5f381e78-2">{props.children}</div></Show8>
2078
2093
  </>
2079
- <style>{`.img-040e729e {
2094
+ <style>{`.img-5f381e78 {
2080
2095
  opacity: 1;
2081
2096
  transition: opacity 0.2s ease-in-out;
2082
- }.div-040e729e {
2097
+ }.div-5f381e78 {
2083
2098
  width: 100%;
2084
2099
  pointer-events: none;
2085
2100
  font-size: 0;
2086
- }.div-040e729e-2 {
2101
+ }.div-5f381e78-2 {
2087
2102
  display: flex;
2088
2103
  flex-direction: column;
2089
2104
  align-items: stretch;
@@ -2119,10 +2134,10 @@ function SectionComponent(props) {
2119
2134
  var section_default = SectionComponent;
2120
2135
 
2121
2136
  // src/blocks/symbol/symbol.tsx
2122
- import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
2137
+ import { onMount as onMount10, on as on8, createEffect as createEffect8, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
2123
2138
 
2124
2139
  // src/components/content-variants/content-variants.tsx
2125
- import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
2140
+ import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
2126
2141
 
2127
2142
  // src/helpers/url.ts
2128
2143
  var getTopLevelDomain = (host) => {
@@ -3104,7 +3119,7 @@ var componentInfo6 = {
3104
3119
  };
3105
3120
 
3106
3121
  // src/blocks/personalization-container/personalization-container.tsx
3107
- import { Show as Show10, For as For6, onMount as onMount4, createSignal as createSignal10, createMemo as createMemo10 } from "solid-js";
3122
+ import { Show as Show10, For as For6, onMount as onMount5, createSignal as createSignal10, createMemo as createMemo10 } from "solid-js";
3108
3123
 
3109
3124
  // src/components/inlined-script.tsx
3110
3125
  function InlinedScript(props) {
@@ -3369,7 +3384,7 @@ function PersonalizationContainer(props) {
3369
3384
  ).join("");
3370
3385
  });
3371
3386
  let rootRef;
3372
- onMount4(() => {
3387
+ onMount5(() => {
3373
3388
  setIsHydrated(true);
3374
3389
  const unsub = userAttributesService.subscribeOnUserAttributesChange(
3375
3390
  (attrs) => {
@@ -3771,10 +3786,10 @@ var tabs_default = Tabs;
3771
3786
 
3772
3787
  // src/blocks/text/component-info.ts
3773
3788
  var componentInfo11 = {
3774
- shouldReceiveBuilderProps: {
3775
- builderBlock: TARGET === "reactNative" ? true : false,
3789
+ shouldReceiveBuilderProps: TARGET === "reactNative" ? {
3790
+ builderBlock: true,
3776
3791
  builderContext: true
3777
- },
3792
+ } : {},
3778
3793
  name: "Text",
3779
3794
  static: true,
3780
3795
  isRSC: true,
@@ -3832,7 +3847,7 @@ var componentInfo12 = {
3832
3847
  };
3833
3848
 
3834
3849
  // src/blocks/custom-code/custom-code.tsx
3835
- import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3850
+ import { onMount as onMount6, on as on5, createEffect as createEffect5, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3836
3851
  function CustomCode(props) {
3837
3852
  const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3838
3853
  const [scriptsRun, setScriptsRun] = createSignal12([]);
@@ -3873,7 +3888,7 @@ function CustomCode(props) {
3873
3888
  }
3874
3889
  }
3875
3890
  let elementRef;
3876
- onMount5(() => {
3891
+ onMount6(() => {
3877
3892
  runScripts();
3878
3893
  });
3879
3894
  const onUpdateFn_0_props_code = createMemo12(() => props.code);
@@ -3882,7 +3897,7 @@ function CustomCode(props) {
3882
3897
  runScripts();
3883
3898
  }
3884
3899
  }
3885
- createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
3900
+ createEffect5(on5(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
3886
3901
  return <><div
3887
3902
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
3888
3903
  ref={elementRef}
@@ -3910,7 +3925,7 @@ var componentInfo13 = {
3910
3925
  };
3911
3926
 
3912
3927
  // src/blocks/embed/embed.tsx
3913
- import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3928
+ import { on as on6, createEffect as createEffect6, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3914
3929
 
3915
3930
  // src/blocks/embed/helpers.ts
3916
3931
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -3952,8 +3967,8 @@ function Embed(props) {
3952
3967
  findAndRunScripts();
3953
3968
  }
3954
3969
  }
3955
- createEffect5(
3956
- on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3970
+ createEffect6(
3971
+ on6(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3957
3972
  );
3958
3973
  return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
3959
3974
  }
@@ -4785,7 +4800,7 @@ var componentInfo20 = {
4785
4800
  };
4786
4801
 
4787
4802
  // src/blocks/video/video.tsx
4788
- import { Show as Show13, onMount as onMount6, createSignal as createSignal15, createMemo as createMemo15 } from "solid-js";
4803
+ import { Show as Show13, onMount as onMount7, createSignal as createSignal15, createMemo as createMemo15 } from "solid-js";
4789
4804
  function Video(props) {
4790
4805
  const [lazyVideoObserver, setLazyVideoObserver] = createSignal15(void 0);
4791
4806
  const videoProps = createMemo15(() => {
@@ -4813,7 +4828,7 @@ function Video(props) {
4813
4828
  };
4814
4829
  });
4815
4830
  let videoRef;
4816
- onMount6(() => {
4831
+ onMount7(() => {
4817
4832
  if (props.lazyLoad) {
4818
4833
  const oberver = new IntersectionObserver(function(entries) {
4819
4834
  entries.forEach(function(entry) {
@@ -5044,9 +5059,9 @@ var getUpdateVariantVisibilityScript = ({
5044
5059
  // src/components/content/components/enable-editor.tsx
5045
5060
  import {
5046
5061
  Show as Show14,
5047
- onMount as onMount7,
5048
- on as on6,
5049
- createEffect as createEffect6,
5062
+ onMount as onMount8,
5063
+ on as on7,
5064
+ createEffect as createEffect7,
5050
5065
  createMemo as createMemo16,
5051
5066
  createSignal as createSignal16
5052
5067
  } from "solid-js";
@@ -5058,7 +5073,7 @@ function getPreviewContent(_searchParams) {
5058
5073
  }
5059
5074
 
5060
5075
  // src/constants/sdk-version.ts
5061
- var SDK_VERSION = "4.0.6";
5076
+ var SDK_VERSION = "4.0.7";
5062
5077
 
5063
5078
  // src/helpers/sdk-headers.ts
5064
5079
  var getSdkHeaders = () => ({
@@ -6069,7 +6084,7 @@ function EnableEditor(props) {
6069
6084
  let elementRef;
6070
6085
  runHttpRequests();
6071
6086
  emitStateUpdate();
6072
- onMount7(() => {
6087
+ onMount8(() => {
6073
6088
  if (isBrowser()) {
6074
6089
  if (isEditing() && !props.isNestedRender) {
6075
6090
  window.addEventListener("message", processMessage);
@@ -6150,15 +6165,15 @@ function EnableEditor(props) {
6150
6165
  mergeNewContent(props.content);
6151
6166
  }
6152
6167
  }
6153
- createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6168
+ createEffect7(on7(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6154
6169
  const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
6155
6170
  () => props.builderContextSignal.rootState
6156
6171
  );
6157
6172
  function onUpdateFn_1() {
6158
6173
  emitStateUpdate();
6159
6174
  }
6160
- createEffect6(
6161
- on6(
6175
+ createEffect7(
6176
+ on7(
6162
6177
  () => [onUpdateFn_1_props_builderContextSignal_rootState()],
6163
6178
  onUpdateFn_1
6164
6179
  )
@@ -6169,7 +6184,7 @@ function EnableEditor(props) {
6169
6184
  mergeNewRootState(props.data);
6170
6185
  }
6171
6186
  }
6172
- createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6187
+ createEffect7(on7(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6173
6188
  const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
6174
6189
  function onUpdateFn_3() {
6175
6190
  if (props.locale) {
@@ -6178,7 +6193,7 @@ function EnableEditor(props) {
6178
6193
  });
6179
6194
  }
6180
6195
  }
6181
- createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
6196
+ createEffect7(on7(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
6182
6197
  return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
6183
6198
  when={props.builderContextSignal.content || needsElementRefDivForEditing()}
6184
6199
  ><Dynamic5
@@ -6420,7 +6435,7 @@ function ContentVariants(props) {
6420
6435
  canTrack: getDefaultCanTrack(props.canTrack)
6421
6436
  });
6422
6437
  });
6423
- onMount8(() => {
6438
+ onMount9(() => {
6424
6439
  setShouldRenderVariants(false);
6425
6440
  });
6426
6441
  return <><>
@@ -6550,13 +6565,13 @@ function Symbol(props) {
6550
6565
  }
6551
6566
  });
6552
6567
  }
6553
- onMount9(() => {
6568
+ onMount10(() => {
6554
6569
  });
6555
6570
  const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
6556
6571
  function onUpdateFn_0() {
6557
6572
  setContent();
6558
6573
  }
6559
- createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6574
+ createEffect8(on8(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6560
6575
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
6561
6576
  nonce={props.builderContext.nonce}
6562
6577
  isNestedRender={true}
package/lib/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, use, Dynamic, memo } from 'solid-js/web';
2
- import { createContext, useContext, Show, For, createMemo, createSignal, onMount, createEffect, on } from 'solid-js';
2
+ import { createContext, useContext, Show, For, createMemo, onMount, createSignal, createEffect, on } from 'solid-js';
3
3
  import { createRequire } from 'node:module';
4
4
 
5
5
  // src/blocks/button/button.tsx
@@ -1096,6 +1096,9 @@ var provideBuilderContext = (block, context) => {
1096
1096
  };
1097
1097
  return {};
1098
1098
  };
1099
+ var generateKey = (index) => {
1100
+ return index.toString();
1101
+ };
1099
1102
 
1100
1103
  // src/constants/device-sizes.ts
1101
1104
  var SIZES = {
@@ -1390,9 +1393,12 @@ function InteractiveElement(props) {
1390
1393
  })
1391
1394
  } : {};
1392
1395
  });
1396
+ const targetWrapperProps = createMemo(() => {
1397
+ return props.wrapperProps;
1398
+ });
1393
1399
  return createComponent(Show, {
1394
1400
  get fallback() {
1395
- return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
1401
+ return createComponent(Dynamic, mergeProps(targetWrapperProps, {
1396
1402
  get attributes() {
1397
1403
  return attributes();
1398
1404
  },
@@ -1522,6 +1528,11 @@ function ComponentRef(props) {
1522
1528
  var component_ref_default = ComponentRef;
1523
1529
  function RepeatedBlock(props) {
1524
1530
  const [store, setStore] = createSignal(props.repeatContext);
1531
+ const onUpdateFn_0_props_repeatContext = createMemo(() => props.repeatContext);
1532
+ function onUpdateFn_0() {
1533
+ setStore(props.repeatContext);
1534
+ }
1535
+ createEffect(on(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
1525
1536
  return createComponent(builder_context_default.Provider, {
1526
1537
  get value() {
1527
1538
  return store();
@@ -1648,7 +1659,9 @@ function Block(props) {
1648
1659
  children: (data, _index) => {
1649
1660
  const index = _index();
1650
1661
  return createComponent(repeated_block_default, {
1651
- key: index,
1662
+ get key() {
1663
+ return generateKey(index);
1664
+ },
1652
1665
  get repeatContext() {
1653
1666
  return data.context;
1654
1667
  },
@@ -1714,7 +1727,9 @@ function Block(props) {
1714
1727
  children: (data, _index) => {
1715
1728
  const index = _index();
1716
1729
  return createComponent(repeated_block_default, {
1717
- key: index,
1730
+ get key() {
1731
+ return generateKey(index);
1732
+ },
1718
1733
  get repeatContext() {
1719
1734
  return data.context;
1720
1735
  },
@@ -2210,16 +2225,16 @@ function getSrcSet(url) {
2210
2225
  // src/blocks/image/image.tsx
2211
2226
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
2212
2227
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
2213
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-040e729e">`);
2214
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-040e729e-2>`);
2215
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-040e729e {
2228
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-5f381e78">`);
2229
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-5f381e78-2>`);
2230
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-5f381e78 {
2216
2231
  opacity: 1;
2217
2232
  transition: opacity 0.2s ease-in-out;
2218
- }.div-040e729e {
2233
+ }.div-5f381e78 {
2219
2234
  width: 100%;
2220
2235
  pointer-events: none;
2221
2236
  font-size: 0;
2222
- }.div-040e729e-2 {
2237
+ }.div-5f381e78-2 {
2223
2238
  display: flex;
2224
2239
  flex-direction: column;
2225
2240
  align-items: stretch;
@@ -2268,6 +2283,8 @@ function Image(props) {
2268
2283
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
2269
2284
  return out;
2270
2285
  });
2286
+ onMount(() => {
2287
+ });
2271
2288
  return [[(() => {
2272
2289
  const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
2273
2290
  insert(_el$, createComponent(Show, {
@@ -2281,7 +2298,7 @@ function Image(props) {
2281
2298
  }
2282
2299
  }), _el$3);
2283
2300
  effect((_p$) => {
2284
- const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-040e729e", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.title, _v$6 = props.altText ? void 0 : "presentation", _v$7 = {
2301
+ const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-5f381e78", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.title, _v$6 = props.altText ? void 0 : "presentation", _v$7 = {
2285
2302
  "object-position": props.backgroundPosition || "center",
2286
2303
  "object-fit": props.backgroundSize || "cover",
2287
2304
  ...aspectRatioCss()
@@ -4116,10 +4133,10 @@ delegateEvents(["click"]);
4116
4133
 
4117
4134
  // src/blocks/text/component-info.ts
4118
4135
  var componentInfo11 = {
4119
- shouldReceiveBuilderProps: {
4120
- builderBlock: TARGET === "reactNative" ? true : false,
4136
+ shouldReceiveBuilderProps: TARGET === "reactNative" ? {
4137
+ builderBlock: true,
4121
4138
  builderContext: true
4122
- },
4139
+ } : {},
4123
4140
  name: "Text",
4124
4141
  static: true,
4125
4142
  isRSC: true,
@@ -5516,7 +5533,7 @@ function getPreviewContent(_searchParams) {
5516
5533
  }
5517
5534
 
5518
5535
  // src/constants/sdk-version.ts
5519
- var SDK_VERSION = "4.0.6";
5536
+ var SDK_VERSION = "4.0.7";
5520
5537
 
5521
5538
  // src/helpers/sdk-headers.ts
5522
5539
  var getSdkHeaders = () => ({