@builder.io/sdk-solid 1.0.33 → 1.0.36

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;
@@ -4092,6 +4086,9 @@ function SelectComponent(props) {
4092
4086
  },
4093
4087
  get name() {
4094
4088
  return props.name;
4089
+ },
4090
+ get required() {
4091
+ return props.required;
4095
4092
  }
4096
4093
  }), false, true);
4097
4094
  insert(_el$, createComponent(For, {
@@ -4101,7 +4098,7 @@ function SelectComponent(props) {
4101
4098
  children: (option, _index) => {
4102
4099
  const index = _index();
4103
4100
  return (() => {
4104
- const _el$2 = _tmpl$26();
4101
+ const _el$2 = _tmpl$27();
4105
4102
  insert(_el$2, () => option.name || option.value);
4106
4103
  effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
4107
4104
  effect(() => _el$2.value = option.value);
@@ -4141,10 +4138,10 @@ var componentInfo16 = {
4141
4138
  // TODO: defaultChildren
4142
4139
  // canHaveChildren: true,
4143
4140
  };
4144
- var _tmpl$15 = /* @__PURE__ */ template(`<button type=submit>`);
4141
+ var _tmpl$16 = /* @__PURE__ */ template(`<button type=submit>`);
4145
4142
  function SubmitButton(props) {
4146
4143
  return (() => {
4147
- const _el$ = _tmpl$15();
4144
+ const _el$ = _tmpl$16();
4148
4145
  spread(_el$, mergeProps({}, () => props.attributes), false, true);
4149
4146
  insert(_el$, () => props.text);
4150
4147
  return _el$;
@@ -4152,8 +4149,72 @@ function SubmitButton(props) {
4152
4149
  }
4153
4150
  var submit_button_default = SubmitButton;
4154
4151
 
4155
- // src/blocks/img/component-info.ts
4152
+ // src/blocks/form/textarea/component-info.ts
4156
4153
  var componentInfo17 = {
4154
+ name: "Form:TextArea",
4155
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4156
+ inputs: [{
4157
+ advanced: true,
4158
+ name: "value",
4159
+ type: "string"
4160
+ }, {
4161
+ name: "name",
4162
+ type: "string",
4163
+ required: true,
4164
+ helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
4165
+ }, {
4166
+ name: "defaultValue",
4167
+ type: "string"
4168
+ }, {
4169
+ name: "placeholder",
4170
+ type: "string",
4171
+ defaultValue: "Hello there"
4172
+ }, {
4173
+ name: "required",
4174
+ type: "boolean",
4175
+ defaultValue: false
4176
+ }],
4177
+ defaultStyles: {
4178
+ paddingTop: "10px",
4179
+ paddingBottom: "10px",
4180
+ paddingLeft: "10px",
4181
+ paddingRight: "10px",
4182
+ borderRadius: "3px",
4183
+ borderWidth: "1px",
4184
+ borderStyle: "solid",
4185
+ borderColor: "#ccc"
4186
+ },
4187
+ static: true,
4188
+ noWrap: true
4189
+ };
4190
+ var _tmpl$17 = /* @__PURE__ */ template(`<textarea>`);
4191
+ function Textarea(props) {
4192
+ return (() => {
4193
+ const _el$ = _tmpl$17();
4194
+ spread(_el$, mergeProps({}, () => props.attributes, {
4195
+ get placeholder() {
4196
+ return props.placeholder;
4197
+ },
4198
+ get name() {
4199
+ return props.name;
4200
+ },
4201
+ get value() {
4202
+ return props.value;
4203
+ },
4204
+ get defaultValue() {
4205
+ return props.defaultValue;
4206
+ },
4207
+ get required() {
4208
+ return props.required;
4209
+ }
4210
+ }), false, false);
4211
+ return _el$;
4212
+ })();
4213
+ }
4214
+ var textarea_default = Textarea;
4215
+
4216
+ // src/blocks/img/component-info.ts
4217
+ var componentInfo18 = {
4157
4218
  // friendlyName?
4158
4219
  name: "Raw:Img",
4159
4220
  hideFromInsertMenu: true,
@@ -4168,10 +4229,10 @@ var componentInfo17 = {
4168
4229
  noWrap: true,
4169
4230
  static: true
4170
4231
  };
4171
- var _tmpl$16 = /* @__PURE__ */ template(`<img>`);
4232
+ var _tmpl$18 = /* @__PURE__ */ template(`<img>`);
4172
4233
  function ImgComponent(props) {
4173
4234
  return (() => {
4174
- const _el$ = _tmpl$16();
4235
+ const _el$ = _tmpl$18();
4175
4236
  spread(_el$, mergeProps({
4176
4237
  get style() {
4177
4238
  return {
@@ -4195,7 +4256,7 @@ function ImgComponent(props) {
4195
4256
  var img_default = ImgComponent;
4196
4257
 
4197
4258
  // src/blocks/video/component-info.ts
4198
- var componentInfo18 = {
4259
+ var componentInfo19 = {
4199
4260
  name: "Video",
4200
4261
  canHaveChildren: true,
4201
4262
  defaultStyles: {
@@ -4277,9 +4338,9 @@ var componentInfo18 = {
4277
4338
  advanced: true
4278
4339
  }]
4279
4340
  };
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>`);
4341
+ var _tmpl$19 = /* @__PURE__ */ template(`<source type=video/mp4>`);
4342
+ var _tmpl$28 = /* @__PURE__ */ template(`<div>`);
4343
+ var _tmpl$35 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
4283
4344
  function Video(props) {
4284
4345
  const videoProps = createMemo(() => {
4285
4346
  return {
@@ -4306,7 +4367,7 @@ function Video(props) {
4306
4367
  };
4307
4368
  });
4308
4369
  return (() => {
4309
- const _el$ = _tmpl$34(), _el$2 = _el$.firstChild;
4370
+ const _el$ = _tmpl$35(), _el$2 = _el$.firstChild;
4310
4371
  _el$.style.setProperty("position", "relative");
4311
4372
  spread(_el$2, mergeProps(spreadProps, {
4312
4373
  get preload() {
@@ -4340,7 +4401,7 @@ function Video(props) {
4340
4401
  return !props.lazyLoad;
4341
4402
  },
4342
4403
  get children() {
4343
- const _el$3 = _tmpl$17();
4404
+ const _el$3 = _tmpl$19();
4344
4405
  effect(() => setAttribute(_el$3, "src", props.video));
4345
4406
  return _el$3;
4346
4407
  }
@@ -4350,7 +4411,7 @@ function Video(props) {
4350
4411
  return props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length);
4351
4412
  },
4352
4413
  get children() {
4353
- const _el$4 = _tmpl$27();
4414
+ const _el$4 = _tmpl$28();
4354
4415
  _el$4.style.setProperty("width", "100%");
4355
4416
  _el$4.style.setProperty("pointer-events", "none");
4356
4417
  _el$4.style.setProperty("font-size", "0px");
@@ -4363,7 +4424,7 @@ function Video(props) {
4363
4424
  return props.builderBlock?.children?.length && props.fitContent;
4364
4425
  },
4365
4426
  get children() {
4366
- const _el$5 = _tmpl$27();
4427
+ const _el$5 = _tmpl$28();
4367
4428
  _el$5.style.setProperty("display", "flex");
4368
4429
  _el$5.style.setProperty("flex-direction", "column");
4369
4430
  _el$5.style.setProperty("align-items", "stretch");
@@ -4376,7 +4437,7 @@ function Video(props) {
4376
4437
  return props.builderBlock?.children?.length && !props.fitContent;
4377
4438
  },
4378
4439
  get children() {
4379
- const _el$6 = _tmpl$27();
4440
+ const _el$6 = _tmpl$28();
4380
4441
  _el$6.style.setProperty("pointer-events", "none");
4381
4442
  _el$6.style.setProperty("display", "flex");
4382
4443
  _el$6.style.setProperty("flex-direction", "column");
@@ -4414,12 +4475,15 @@ var getExtraComponents = () => [{
4414
4475
  }, {
4415
4476
  component: select_default,
4416
4477
  ...componentInfo15
4478
+ }, {
4479
+ component: textarea_default,
4480
+ ...componentInfo17
4417
4481
  }], {
4418
4482
  component: img_default,
4419
- ...componentInfo17
4483
+ ...componentInfo18
4420
4484
  }, {
4421
4485
  component: video_default,
4422
- ...componentInfo18
4486
+ ...componentInfo19
4423
4487
  }];
4424
4488
 
4425
4489
  // src/constants/builder-registered-components.ts
@@ -4522,10 +4586,10 @@ var getUpdateVariantVisibilityScript = ({
4522
4586
  }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
4523
4587
  "${variationId}", "${contentId}", ${isHydrationTarget}
4524
4588
  )`;
4525
- var _tmpl$18 = /* @__PURE__ */ template(`<script>`);
4589
+ var _tmpl$20 = /* @__PURE__ */ template(`<script>`);
4526
4590
  function InlinedScript(props) {
4527
4591
  return (() => {
4528
- const _el$ = _tmpl$18();
4592
+ const _el$ = _tmpl$20();
4529
4593
  effect((_p$) => {
4530
4594
  const _v$ = props.scriptStr, _v$2 = props.id;
4531
4595
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
@@ -5039,7 +5103,7 @@ function isFromTrustedHost(trustedHosts, e) {
5039
5103
  }
5040
5104
 
5041
5105
  // src/constants/sdk-version.ts
5042
- var SDK_VERSION = "1.0.33";
5106
+ var SDK_VERSION = "1.0.36";
5043
5107
 
5044
5108
  // src/functions/register.ts
5045
5109
  var registry = {};
@@ -6023,7 +6087,7 @@ var fetchSymbolContent = async ({
6023
6087
  };
6024
6088
 
6025
6089
  // src/blocks/symbol/symbol.tsx
6026
- var _tmpl$19 = /* @__PURE__ */ template(`<div>`);
6090
+ var _tmpl$21 = /* @__PURE__ */ template(`<div>`);
6027
6091
  function Symbol(props) {
6028
6092
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
6029
6093
  const blocksWrapper = createMemo(() => {
@@ -6055,7 +6119,7 @@ function Symbol(props) {
6055
6119
  }
6056
6120
  createEffect(on(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6057
6121
  return (() => {
6058
- const _el$ = _tmpl$19();
6122
+ const _el$ = _tmpl$21();
6059
6123
  spread(_el$, mergeProps({
6060
6124
  get ["class"]() {
6061
6125
  return className();