@builder.io/sdk-solid 1.0.33 → 1.0.35

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.
@@ -1,6 +1,5 @@
1
1
  import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
2
2
  import { createContext, useContext, Show, For, createSignal, createMemo, onMount, createEffect, on } from 'solid-js';
3
- import { css } from 'solid-styled-components';
4
3
 
5
4
  // src/blocks/button/button.tsx
6
5
 
@@ -891,7 +890,7 @@ function BlockStyles(props) {
891
890
  }
892
891
  return true;
893
892
  });
894
- const css5 = createMemo(() => {
893
+ const css = createMemo(() => {
895
894
  const processedBlock = getProcessedBlock({
896
895
  block: props.block,
897
896
  localState: props.context.localState,
@@ -941,13 +940,13 @@ function BlockStyles(props) {
941
940
  });
942
941
  return createComponent(Show, {
943
942
  get when() {
944
- return memo(() => !!(TARGET !== "reactNative" && css5()))() && canShowBlock();
943
+ return memo(() => !!(TARGET !== "reactNative" && css()))() && canShowBlock();
945
944
  },
946
945
  get children() {
947
946
  return createComponent(inlined_styles_default, {
948
947
  id: "builderio-block",
949
948
  get styles() {
950
- return css5();
949
+ return css();
951
950
  }
952
951
  });
953
952
  }
@@ -1425,6 +1424,11 @@ function Block(props) {
1425
1424
  });
1426
1425
  }
1427
1426
  var block_default = Block;
1427
+ var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-1bb6a3a2 {
1428
+ display: flex;
1429
+ flex-direction: column;
1430
+ align-items: stretch;
1431
+ }`);
1428
1432
  function BlocksWrapper(props) {
1429
1433
  const className = createMemo(() => {
1430
1434
  return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
@@ -1451,13 +1455,9 @@ function BlocksWrapper(props) {
1451
1455
  }, "*");
1452
1456
  }
1453
1457
  }
1454
- return createComponent(Dynamic, mergeProps({
1458
+ return [createComponent(Dynamic, mergeProps({
1455
1459
  get ["class"]() {
1456
- return className() + " " + css({
1457
- display: "flex",
1458
- flexDirection: "column",
1459
- alignItems: "stretch"
1460
- });
1460
+ return className() + " dynamic-1bb6a3a2";
1461
1461
  },
1462
1462
  get ["builder-path"]() {
1463
1463
  return props.path;
@@ -1479,7 +1479,7 @@ function BlocksWrapper(props) {
1479
1479
  get children() {
1480
1480
  return props.children;
1481
1481
  }
1482
- }));
1482
+ })), _tmpl$2()];
1483
1483
  }
1484
1484
  var blocks_wrapper_default = BlocksWrapper;
1485
1485
 
@@ -1548,7 +1548,11 @@ var getColumnsClass = (id) => {
1548
1548
  };
1549
1549
 
1550
1550
  // src/blocks/columns/columns.tsx
1551
- var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
1551
+ var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
1552
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-f2f53158 {
1553
+ display: flex;
1554
+ line-height: normal;
1555
+ }`);
1552
1556
  function Columns(props) {
1553
1557
  const [gutterSize, setGutterSize] = createSignal(typeof props.space === "number" ? props.space || 0 : 20);
1554
1558
  const [cols, setCols] = createSignal(props.columns || []);
@@ -1660,14 +1664,11 @@ function Columns(props) {
1660
1664
  style: mapStyleObjToStrIfNeeded(columnCssVars(index))
1661
1665
  };
1662
1666
  }
1663
- return (() => {
1664
- const _el$ = _tmpl$2();
1667
+ return [(() => {
1668
+ const _el$ = _tmpl$3();
1665
1669
  spread(_el$, mergeProps({
1666
1670
  get ["class"]() {
1667
- return getColumnsClass(props.builderBlock?.id) + " " + css({
1668
- display: "flex",
1669
- lineHeight: "normal"
1670
- });
1671
+ return getColumnsClass(props.builderBlock?.id) + " div-f2f53158";
1671
1672
  },
1672
1673
  get style() {
1673
1674
  return columnsCssVars();
@@ -1726,13 +1727,13 @@ function Columns(props) {
1726
1727
  }
1727
1728
  }), null);
1728
1729
  return _el$;
1729
- })();
1730
+ })(), _tmpl$22()];
1730
1731
  }
1731
1732
  var columns_default = Columns;
1732
- var _tmpl$3 = /* @__PURE__ */ template(`<span>`);
1733
+ var _tmpl$4 = /* @__PURE__ */ template(`<span>`);
1733
1734
  function FragmentComponent(props) {
1734
1735
  return (() => {
1735
- const _el$ = _tmpl$3();
1736
+ const _el$ = _tmpl$4();
1736
1737
  insert(_el$, () => props.children);
1737
1738
  return _el$;
1738
1739
  })();
@@ -1787,9 +1788,27 @@ function getSrcSet(url) {
1787
1788
  }
1788
1789
 
1789
1790
  // src/blocks/image/image.tsx
1790
- var _tmpl$4 = /* @__PURE__ */ template(`<source type=image/webp>`);
1791
- var _tmpl$22 = /* @__PURE__ */ template(`<picture><img>`);
1792
- var _tmpl$32 = /* @__PURE__ */ template(`<div>`);
1791
+ var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
1792
+ var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
1793
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-54b38751">`);
1794
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-54b38751-2>`);
1795
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-54b38751 {
1796
+ opacity: 1;
1797
+ transition: opacity 0.2s ease-in-out;
1798
+ }.div-54b38751 {
1799
+ width: 100%;
1800
+ pointer-events: none;
1801
+ font-size: 0;
1802
+ }.div-54b38751-2 {
1803
+ display: flex;
1804
+ flex-direction: column;
1805
+ align-items: stretch;
1806
+ position: absolute;
1807
+ top: 0;
1808
+ left: 0;
1809
+ width: 100%;
1810
+ height: 100%;
1811
+ }`);
1793
1812
  function Image(props) {
1794
1813
  const srcSetToUse = createMemo(() => {
1795
1814
  const imageToUse = props.image || props.src;
@@ -1827,23 +1846,20 @@ function Image(props) {
1827
1846
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
1828
1847
  return out;
1829
1848
  });
1830
- return [(() => {
1831
- const _el$ = _tmpl$22(), _el$3 = _el$.firstChild;
1849
+ return [[(() => {
1850
+ const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
1832
1851
  insert(_el$, createComponent(Show, {
1833
1852
  get when() {
1834
1853
  return webpSrcSet();
1835
1854
  },
1836
1855
  get children() {
1837
- const _el$2 = _tmpl$4();
1856
+ const _el$2 = _tmpl$5();
1838
1857
  effect(() => setAttribute(_el$2, "srcset", webpSrcSet()));
1839
1858
  return _el$2;
1840
1859
  }
1841
1860
  }), _el$3);
1842
1861
  effect((_p$) => {
1843
- const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " " + css({
1844
- opacity: "1",
1845
- transition: "opacity 0.2s ease-in-out"
1846
- }), _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 = {
1862
+ const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-54b38751", _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 = {
1847
1863
  "object-position": props.backgroundPosition || "center",
1848
1864
  "object-fit": props.backgroundSize || "cover",
1849
1865
  ...aspectRatioCss()
@@ -1876,19 +1892,7 @@ function Image(props) {
1876
1892
  },
1877
1893
  get children() {
1878
1894
  const _el$4 = _tmpl$32();
1879
- effect((_p$) => {
1880
- const _v$10 = "builder-image-sizer " + css({
1881
- width: "100%",
1882
- pointerEvents: "none",
1883
- fontSize: "0"
1884
- }), _v$11 = props.aspectRatio * 100 + "%";
1885
- _v$10 !== _p$._v$10 && className(_el$4, _p$._v$10 = _v$10);
1886
- _v$11 !== _p$._v$11 && ((_p$._v$11 = _v$11) != null ? _el$4.style.setProperty("padding-top", _v$11) : _el$4.style.removeProperty("padding-top"));
1887
- return _p$;
1888
- }, {
1889
- _v$10: void 0,
1890
- _v$11: void 0
1891
- });
1895
+ effect(() => props.aspectRatio * 100 + "%" != null ? _el$4.style.setProperty("padding-top", props.aspectRatio * 100 + "%") : _el$4.style.removeProperty("padding-top"));
1892
1896
  return _el$4;
1893
1897
  }
1894
1898
  }), createComponent(Show, {
@@ -1903,27 +1907,17 @@ function Image(props) {
1903
1907
  return !props.fitContent && props.builderBlock?.children?.length;
1904
1908
  },
1905
1909
  get children() {
1906
- const _el$5 = _tmpl$32();
1910
+ const _el$5 = _tmpl$42();
1907
1911
  insert(_el$5, () => props.children);
1908
- effect(() => className(_el$5, css({
1909
- display: "flex",
1910
- flexDirection: "column",
1911
- alignItems: "stretch",
1912
- position: "absolute",
1913
- top: "0",
1914
- left: "0",
1915
- width: "100%",
1916
- height: "100%"
1917
- })));
1918
1912
  return _el$5;
1919
1913
  }
1920
- })];
1914
+ })], _tmpl$52()];
1921
1915
  }
1922
1916
  var image_default = Image;
1923
- var _tmpl$5 = /* @__PURE__ */ template(`<section>`);
1917
+ var _tmpl$6 = /* @__PURE__ */ template(`<section>`);
1924
1918
  function SectionComponent(props) {
1925
1919
  return (() => {
1926
- const _el$ = _tmpl$5();
1920
+ const _el$ = _tmpl$6();
1927
1921
  spread(_el$, mergeProps({}, () => props.attributes, {
1928
1922
  get style() {
1929
1923
  return {
@@ -2268,8 +2262,8 @@ var convertOrderNumberToString = (order) => {
2268
2262
  };
2269
2263
 
2270
2264
  // src/blocks/accordion/accordion.tsx
2271
- var _tmpl$6 = /* @__PURE__ */ template(`<div class=builder-accordion>`);
2272
- var _tmpl$23 = /* @__PURE__ */ template(`<div>`);
2265
+ var _tmpl$7 = /* @__PURE__ */ template(`<div class=builder-accordion>`);
2266
+ var _tmpl$24 = /* @__PURE__ */ template(`<div>`);
2273
2267
  function Accordion(props) {
2274
2268
  const [open, setOpen] = createSignal([]);
2275
2269
  const onlyOneAtATime = createMemo(() => {
@@ -2359,7 +2353,7 @@ function Accordion(props) {
2359
2353
  }
2360
2354
  }
2361
2355
  return (() => {
2362
- const _el$ = _tmpl$6();
2356
+ const _el$ = _tmpl$7();
2363
2357
  insert(_el$, createComponent(For, {
2364
2358
  get each() {
2365
2359
  return props.items;
@@ -2367,7 +2361,7 @@ function Accordion(props) {
2367
2361
  children: (item, _index) => {
2368
2362
  const index = _index();
2369
2363
  return [(() => {
2370
- const _el$2 = _tmpl$23();
2364
+ const _el$2 = _tmpl$24();
2371
2365
  _el$2.$$click = (event) => onClick(index);
2372
2366
  setAttribute(_el$2, "data-index", index);
2373
2367
  insert(_el$2, createComponent(blocks_default, {
@@ -2409,7 +2403,7 @@ function Accordion(props) {
2409
2403
  return open().includes(index);
2410
2404
  },
2411
2405
  get children() {
2412
- const _el$3 = _tmpl$23();
2406
+ const _el$3 = _tmpl$24();
2413
2407
  insert(_el$3, createComponent(blocks_default, {
2414
2408
  get blocks() {
2415
2409
  return item.detail;
@@ -2730,7 +2724,7 @@ var componentInfo5 = {
2730
2724
  name: "image",
2731
2725
  type: "file",
2732
2726
  bubble: true,
2733
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
2727
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
2734
2728
  required: true,
2735
2729
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2736
2730
  onChange: (options) => {
@@ -2899,10 +2893,10 @@ var componentInfo7 = {
2899
2893
  defaultValue: "children"
2900
2894
  }]
2901
2895
  };
2902
- var _tmpl$7 = /* @__PURE__ */ template(`<div>`);
2896
+ var _tmpl$8 = /* @__PURE__ */ template(`<div>`);
2903
2897
  function Slot(props) {
2904
2898
  return (() => {
2905
- const _el$ = _tmpl$7();
2899
+ const _el$ = _tmpl$8();
2906
2900
  _el$.style.setProperty("pointer-events", "auto");
2907
2901
  spread(_el$, mergeProps(() => !props.builderContext.context?.symbolId && {
2908
2902
  "builder-slot": props.name
@@ -3101,8 +3095,8 @@ var componentInfo9 = {
3101
3095
  }]
3102
3096
  }]
3103
3097
  };
3104
- var _tmpl$8 = /* @__PURE__ */ template(`<div>`);
3105
- var _tmpl$24 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
3098
+ var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
3099
+ var _tmpl$25 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
3106
3100
  var _tmpl$33 = /* @__PURE__ */ template(`<span>`);
3107
3101
  function Tabs(props) {
3108
3102
  const [activeTab, setActiveTab] = createSignal(props.defaultActiveTab ? props.defaultActiveTab - 1 : 0);
@@ -3117,7 +3111,7 @@ function Tabs(props) {
3117
3111
  }
3118
3112
  }
3119
3113
  return (() => {
3120
- const _el$ = _tmpl$24(), _el$2 = _el$.firstChild;
3114
+ const _el$ = _tmpl$25(), _el$2 = _el$.firstChild;
3121
3115
  _el$2.style.setProperty("display", "flex");
3122
3116
  _el$2.style.setProperty("flex-direction", "row");
3123
3117
  _el$2.style.setProperty("overflow", "auto");
@@ -3169,7 +3163,7 @@ function Tabs(props) {
3169
3163
  return activeTabContent(activeTab());
3170
3164
  },
3171
3165
  get children() {
3172
- const _el$3 = _tmpl$8();
3166
+ const _el$3 = _tmpl$9();
3173
3167
  insert(_el$3, createComponent(blocks_default, {
3174
3168
  get parent() {
3175
3169
  return props.builderBlock.id;
@@ -3220,10 +3214,10 @@ var componentInfo10 = {
3220
3214
  textAlign: "center"
3221
3215
  }
3222
3216
  };
3223
- var _tmpl$9 = /* @__PURE__ */ template(`<div class=builder-text>`);
3217
+ var _tmpl$10 = /* @__PURE__ */ template(`<div class=builder-text>`);
3224
3218
  function Text(props) {
3225
3219
  return (() => {
3226
- const _el$ = _tmpl$9();
3220
+ const _el$ = _tmpl$10();
3227
3221
  _el$.style.setProperty("outline", "none");
3228
3222
  effect(() => _el$.innerHTML = props.text?.toString() || "");
3229
3223
  return _el$;
@@ -3255,7 +3249,7 @@ var componentInfo11 = {
3255
3249
  advanced: true
3256
3250
  }]
3257
3251
  };
3258
- var _tmpl$10 = /* @__PURE__ */ template(`<div>`);
3252
+ var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
3259
3253
  function CustomCode(props) {
3260
3254
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
3261
3255
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -3290,7 +3284,7 @@ function CustomCode(props) {
3290
3284
  }
3291
3285
  });
3292
3286
  return (() => {
3293
- const _el$ = _tmpl$10();
3287
+ const _el$ = _tmpl$11();
3294
3288
  const _ref$ = elementRef;
3295
3289
  typeof _ref$ === "function" ? use(_ref$, _el$) : elementRef = _el$;
3296
3290
  effect((_p$) => {
@@ -3321,7 +3315,7 @@ var componentInfo12 = {
3321
3315
  const url = options.get("url");
3322
3316
  if (url) {
3323
3317
  options.set("content", "Loading...");
3324
- const apiKey = "ae0e60e78201a3f2b0de4b";
3318
+ const apiKey = _iframelyApiKey;
3325
3319
  return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
3326
3320
  if (options.get("url") === url) {
3327
3321
  if (data.html) {
@@ -3350,7 +3344,7 @@ var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "applicati
3350
3344
  var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
3351
3345
 
3352
3346
  // src/blocks/embed/embed.tsx
3353
- var _tmpl$11 = /* @__PURE__ */ template(`<div class=builder-embed>`);
3347
+ var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-embed>`);
3354
3348
  function Embed(props) {
3355
3349
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
3356
3350
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -3388,7 +3382,7 @@ function Embed(props) {
3388
3382
  }
3389
3383
  createEffect(on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0));
3390
3384
  return (() => {
3391
- const _el$ = _tmpl$11();
3385
+ const _el$ = _tmpl$12();
3392
3386
  const _ref$ = elem;
3393
3387
  typeof _ref$ === "function" ? use(_ref$, _el$) : elem = _el$;
3394
3388
  effect(() => _el$.innerHTML = props.content);
@@ -3645,8 +3639,13 @@ var get = (obj, path, defaultValue) => {
3645
3639
  };
3646
3640
 
3647
3641
  // src/blocks/form/form/form.tsx
3648
- var _tmpl$12 = /* @__PURE__ */ template(`<pre>`);
3649
- var _tmpl$25 = /* @__PURE__ */ template(`<form>`);
3642
+ var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-2e825338">`);
3643
+ var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
3644
+ var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-2e825338 {
3645
+ padding: 10px;
3646
+ color: red;
3647
+ text-align: center;
3648
+ }`);
3650
3649
  function FormComponent(props) {
3651
3650
  const [formState, setFormState] = createSignal("unsubmitted");
3652
3651
  const [responseData, setResponseData] = createSignal(null);
@@ -3831,8 +3830,8 @@ function FormComponent(props) {
3831
3830
  }
3832
3831
  }
3833
3832
  let formRef;
3834
- return (() => {
3835
- const _el$ = _tmpl$25();
3833
+ return [(() => {
3834
+ const _el$ = _tmpl$26();
3836
3835
  _el$.addEventListener("submit", (event) => onSubmit(event));
3837
3836
  const _ref$ = formRef;
3838
3837
  typeof _ref$ === "function" ? use(_ref$, _el$) : formRef = _el$;
@@ -3915,13 +3914,8 @@ function FormComponent(props) {
3915
3914
  return memo(() => submissionState() === "error")() && responseData();
3916
3915
  },
3917
3916
  get children() {
3918
- const _el$2 = _tmpl$12();
3917
+ const _el$2 = _tmpl$13();
3919
3918
  insert(_el$2, () => JSON.stringify(responseData(), null, 2));
3920
- effect(() => className(_el$2, "builder-form-error-text " + css({
3921
- padding: "10px",
3922
- color: "red",
3923
- textAlign: "center"
3924
- })));
3925
3919
  return _el$2;
3926
3920
  }
3927
3921
  }), null);
@@ -3942,7 +3936,7 @@ function FormComponent(props) {
3942
3936
  }
3943
3937
  }), null);
3944
3938
  return _el$;
3945
- })();
3939
+ })(), _tmpl$34()];
3946
3940
  }
3947
3941
  var form_default = FormComponent;
3948
3942
 
@@ -3999,10 +3993,10 @@ var componentInfo14 = {
3999
3993
  borderColor: "#ccc"
4000
3994
  }
4001
3995
  };
4002
- var _tmpl$13 = /* @__PURE__ */ template(`<input>`);
3996
+ var _tmpl$14 = /* @__PURE__ */ template(`<input>`);
4003
3997
  function FormInputComponent(props) {
4004
3998
  return (() => {
4005
- const _el$ = _tmpl$13();
3999
+ const _el$ = _tmpl$14();
4006
4000
  spread(_el$, mergeProps({}, () => props.attributes, {
4007
4001
  get key() {
4008
4002
  return isEditing() && props.defaultValue ? props.defaultValue : "default-key";
@@ -4075,11 +4069,11 @@ var componentInfo15 = {
4075
4069
  static: true,
4076
4070
  noWrap: true
4077
4071
  };
4078
- var _tmpl$14 = /* @__PURE__ */ template(`<select>`);
4079
- var _tmpl$26 = /* @__PURE__ */ template(`<option>`);
4072
+ var _tmpl$15 = /* @__PURE__ */ template(`<select>`);
4073
+ var _tmpl$27 = /* @__PURE__ */ template(`<option>`);
4080
4074
  function SelectComponent(props) {
4081
4075
  return (() => {
4082
- const _el$ = _tmpl$14();
4076
+ const _el$ = _tmpl$15();
4083
4077
  spread(_el$, mergeProps({}, () => props.attributes, {
4084
4078
  get value() {
4085
4079
  return props.value;
@@ -4101,7 +4095,7 @@ function SelectComponent(props) {
4101
4095
  children: (option, _index) => {
4102
4096
  const index = _index();
4103
4097
  return (() => {
4104
- const _el$2 = _tmpl$26();
4098
+ const _el$2 = _tmpl$27();
4105
4099
  insert(_el$2, () => option.name || option.value);
4106
4100
  effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
4107
4101
  effect(() => _el$2.value = option.value);
@@ -4141,10 +4135,10 @@ var componentInfo16 = {
4141
4135
  // TODO: defaultChildren
4142
4136
  // canHaveChildren: true,
4143
4137
  };
4144
- var _tmpl$15 = /* @__PURE__ */ template(`<button type=submit>`);
4138
+ var _tmpl$16 = /* @__PURE__ */ template(`<button type=submit>`);
4145
4139
  function SubmitButton(props) {
4146
4140
  return (() => {
4147
- const _el$ = _tmpl$15();
4141
+ const _el$ = _tmpl$16();
4148
4142
  spread(_el$, mergeProps({}, () => props.attributes), false, true);
4149
4143
  insert(_el$, () => props.text);
4150
4144
  return _el$;
@@ -4168,10 +4162,10 @@ var componentInfo17 = {
4168
4162
  noWrap: true,
4169
4163
  static: true
4170
4164
  };
4171
- var _tmpl$16 = /* @__PURE__ */ template(`<img>`);
4165
+ var _tmpl$17 = /* @__PURE__ */ template(`<img>`);
4172
4166
  function ImgComponent(props) {
4173
4167
  return (() => {
4174
- const _el$ = _tmpl$16();
4168
+ const _el$ = _tmpl$17();
4175
4169
  spread(_el$, mergeProps({
4176
4170
  get style() {
4177
4171
  return {
@@ -4277,9 +4271,9 @@ var componentInfo18 = {
4277
4271
  advanced: true
4278
4272
  }]
4279
4273
  };
4280
- var _tmpl$17 = /* @__PURE__ */ template(`<source type=video/mp4>`);
4281
- var _tmpl$27 = /* @__PURE__ */ template(`<div>`);
4282
- var _tmpl$34 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
4274
+ var _tmpl$18 = /* @__PURE__ */ template(`<source type=video/mp4>`);
4275
+ var _tmpl$28 = /* @__PURE__ */ template(`<div>`);
4276
+ var _tmpl$35 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
4283
4277
  function Video(props) {
4284
4278
  const videoProps = createMemo(() => {
4285
4279
  return {
@@ -4306,7 +4300,7 @@ function Video(props) {
4306
4300
  };
4307
4301
  });
4308
4302
  return (() => {
4309
- const _el$ = _tmpl$34(), _el$2 = _el$.firstChild;
4303
+ const _el$ = _tmpl$35(), _el$2 = _el$.firstChild;
4310
4304
  _el$.style.setProperty("position", "relative");
4311
4305
  spread(_el$2, mergeProps(spreadProps, {
4312
4306
  get preload() {
@@ -4340,7 +4334,7 @@ function Video(props) {
4340
4334
  return !props.lazyLoad;
4341
4335
  },
4342
4336
  get children() {
4343
- const _el$3 = _tmpl$17();
4337
+ const _el$3 = _tmpl$18();
4344
4338
  effect(() => setAttribute(_el$3, "src", props.video));
4345
4339
  return _el$3;
4346
4340
  }
@@ -4350,7 +4344,7 @@ function Video(props) {
4350
4344
  return props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length);
4351
4345
  },
4352
4346
  get children() {
4353
- const _el$4 = _tmpl$27();
4347
+ const _el$4 = _tmpl$28();
4354
4348
  _el$4.style.setProperty("width", "100%");
4355
4349
  _el$4.style.setProperty("pointer-events", "none");
4356
4350
  _el$4.style.setProperty("font-size", "0px");
@@ -4363,7 +4357,7 @@ function Video(props) {
4363
4357
  return props.builderBlock?.children?.length && props.fitContent;
4364
4358
  },
4365
4359
  get children() {
4366
- const _el$5 = _tmpl$27();
4360
+ const _el$5 = _tmpl$28();
4367
4361
  _el$5.style.setProperty("display", "flex");
4368
4362
  _el$5.style.setProperty("flex-direction", "column");
4369
4363
  _el$5.style.setProperty("align-items", "stretch");
@@ -4376,7 +4370,7 @@ function Video(props) {
4376
4370
  return props.builderBlock?.children?.length && !props.fitContent;
4377
4371
  },
4378
4372
  get children() {
4379
- const _el$6 = _tmpl$27();
4373
+ const _el$6 = _tmpl$28();
4380
4374
  _el$6.style.setProperty("pointer-events", "none");
4381
4375
  _el$6.style.setProperty("display", "flex");
4382
4376
  _el$6.style.setProperty("flex-direction", "column");
@@ -4522,10 +4516,10 @@ var getUpdateVariantVisibilityScript = ({
4522
4516
  }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
4523
4517
  "${variationId}", "${contentId}", ${isHydrationTarget}
4524
4518
  )`;
4525
- var _tmpl$18 = /* @__PURE__ */ template(`<script>`);
4519
+ var _tmpl$19 = /* @__PURE__ */ template(`<script>`);
4526
4520
  function InlinedScript(props) {
4527
4521
  return (() => {
4528
- const _el$ = _tmpl$18();
4522
+ const _el$ = _tmpl$19();
4529
4523
  effect((_p$) => {
4530
4524
  const _v$ = props.scriptStr, _v$2 = props.id;
4531
4525
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
@@ -5039,7 +5033,7 @@ function isFromTrustedHost(trustedHosts, e) {
5039
5033
  }
5040
5034
 
5041
5035
  // src/constants/sdk-version.ts
5042
- var SDK_VERSION = "1.0.33";
5036
+ var SDK_VERSION = "1.0.35";
5043
5037
 
5044
5038
  // src/functions/register.ts
5045
5039
  var registry = {};
@@ -6023,7 +6017,7 @@ var fetchSymbolContent = async ({
6023
6017
  };
6024
6018
 
6025
6019
  // src/blocks/symbol/symbol.tsx
6026
- var _tmpl$19 = /* @__PURE__ */ template(`<div>`);
6020
+ var _tmpl$20 = /* @__PURE__ */ template(`<div>`);
6027
6021
  function Symbol(props) {
6028
6022
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
6029
6023
  const blocksWrapper = createMemo(() => {
@@ -6055,7 +6049,7 @@ function Symbol(props) {
6055
6049
  }
6056
6050
  createEffect(on(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6057
6051
  return (() => {
6058
- const _el$ = _tmpl$19();
6052
+ const _el$ = _tmpl$20();
6059
6053
  spread(_el$, mergeProps({
6060
6054
  get ["class"]() {
6061
6055
  return className();