@builder.io/sdk-solid 1.0.32 → 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.
package/lib/edge/dev.js CHANGED
@@ -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
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
6
5
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -4037,7 +4036,7 @@ function BlockStyles(props) {
4037
4036
  }
4038
4037
  return true;
4039
4038
  });
4040
- const css5 = createMemo(() => {
4039
+ const css = createMemo(() => {
4041
4040
  const processedBlock = getProcessedBlock({
4042
4041
  block: props.block,
4043
4042
  localState: props.context.localState,
@@ -4087,13 +4086,13 @@ function BlockStyles(props) {
4087
4086
  });
4088
4087
  return createComponent(Show, {
4089
4088
  get when() {
4090
- return memo(() => !!(TARGET !== "reactNative" && css5()))() && canShowBlock();
4089
+ return memo(() => !!(TARGET !== "reactNative" && css()))() && canShowBlock();
4091
4090
  },
4092
4091
  get children() {
4093
4092
  return createComponent(inlined_styles_default, {
4094
4093
  id: "builderio-block",
4095
4094
  get styles() {
4096
- return css5();
4095
+ return css();
4097
4096
  }
4098
4097
  });
4099
4098
  }
@@ -4571,6 +4570,11 @@ function Block(props) {
4571
4570
  });
4572
4571
  }
4573
4572
  var block_default = Block;
4573
+ var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-1bb6a3a2 {
4574
+ display: flex;
4575
+ flex-direction: column;
4576
+ align-items: stretch;
4577
+ }`);
4574
4578
  function BlocksWrapper(props) {
4575
4579
  const className = createMemo(() => {
4576
4580
  return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
@@ -4597,13 +4601,9 @@ function BlocksWrapper(props) {
4597
4601
  }, "*");
4598
4602
  }
4599
4603
  }
4600
- return createComponent(Dynamic, mergeProps({
4604
+ return [createComponent(Dynamic, mergeProps({
4601
4605
  get ["class"]() {
4602
- return className() + " " + css({
4603
- display: "flex",
4604
- flexDirection: "column",
4605
- alignItems: "stretch"
4606
- });
4606
+ return className() + " dynamic-1bb6a3a2";
4607
4607
  },
4608
4608
  get ["builder-path"]() {
4609
4609
  return props.path;
@@ -4625,7 +4625,7 @@ function BlocksWrapper(props) {
4625
4625
  get children() {
4626
4626
  return props.children;
4627
4627
  }
4628
- }));
4628
+ })), _tmpl$2()];
4629
4629
  }
4630
4630
  var blocks_wrapper_default = BlocksWrapper;
4631
4631
 
@@ -4694,7 +4694,11 @@ var getColumnsClass = (id2) => {
4694
4694
  };
4695
4695
 
4696
4696
  // src/blocks/columns/columns.tsx
4697
- var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
4697
+ var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
4698
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-f2f53158 {
4699
+ display: flex;
4700
+ line-height: normal;
4701
+ }`);
4698
4702
  function Columns(props) {
4699
4703
  const [gutterSize, setGutterSize] = createSignal(typeof props.space === "number" ? props.space || 0 : 20);
4700
4704
  const [cols, setCols] = createSignal(props.columns || []);
@@ -4806,14 +4810,11 @@ function Columns(props) {
4806
4810
  style: mapStyleObjToStrIfNeeded(columnCssVars(index))
4807
4811
  };
4808
4812
  }
4809
- return (() => {
4810
- const _el$ = _tmpl$2();
4813
+ return [(() => {
4814
+ const _el$ = _tmpl$3();
4811
4815
  spread(_el$, mergeProps({
4812
4816
  get ["class"]() {
4813
- return getColumnsClass(props.builderBlock?.id) + " " + css({
4814
- display: "flex",
4815
- lineHeight: "normal"
4816
- });
4817
+ return getColumnsClass(props.builderBlock?.id) + " div-f2f53158";
4817
4818
  },
4818
4819
  get style() {
4819
4820
  return columnsCssVars();
@@ -4872,13 +4873,13 @@ function Columns(props) {
4872
4873
  }
4873
4874
  }), null);
4874
4875
  return _el$;
4875
- })();
4876
+ })(), _tmpl$22()];
4876
4877
  }
4877
4878
  var columns_default = Columns;
4878
- var _tmpl$3 = /* @__PURE__ */ template(`<span>`);
4879
+ var _tmpl$4 = /* @__PURE__ */ template(`<span>`);
4879
4880
  function FragmentComponent(props) {
4880
4881
  return (() => {
4881
- const _el$ = _tmpl$3();
4882
+ const _el$ = _tmpl$4();
4882
4883
  insert(_el$, () => props.children);
4883
4884
  return _el$;
4884
4885
  })();
@@ -4933,9 +4934,27 @@ function getSrcSet(url) {
4933
4934
  }
4934
4935
 
4935
4936
  // src/blocks/image/image.tsx
4936
- var _tmpl$4 = /* @__PURE__ */ template(`<source type=image/webp>`);
4937
- var _tmpl$22 = /* @__PURE__ */ template(`<picture><img>`);
4938
- var _tmpl$32 = /* @__PURE__ */ template(`<div>`);
4937
+ var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
4938
+ var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
4939
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-54b38751">`);
4940
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-54b38751-2>`);
4941
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-54b38751 {
4942
+ opacity: 1;
4943
+ transition: opacity 0.2s ease-in-out;
4944
+ }.div-54b38751 {
4945
+ width: 100%;
4946
+ pointer-events: none;
4947
+ font-size: 0;
4948
+ }.div-54b38751-2 {
4949
+ display: flex;
4950
+ flex-direction: column;
4951
+ align-items: stretch;
4952
+ position: absolute;
4953
+ top: 0;
4954
+ left: 0;
4955
+ width: 100%;
4956
+ height: 100%;
4957
+ }`);
4939
4958
  function Image(props) {
4940
4959
  const srcSetToUse = createMemo(() => {
4941
4960
  const imageToUse = props.image || props.src;
@@ -4973,23 +4992,20 @@ function Image(props) {
4973
4992
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
4974
4993
  return out;
4975
4994
  });
4976
- return [(() => {
4977
- const _el$ = _tmpl$22(), _el$3 = _el$.firstChild;
4995
+ return [[(() => {
4996
+ const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
4978
4997
  insert(_el$, createComponent(Show, {
4979
4998
  get when() {
4980
4999
  return webpSrcSet();
4981
5000
  },
4982
5001
  get children() {
4983
- const _el$2 = _tmpl$4();
5002
+ const _el$2 = _tmpl$5();
4984
5003
  effect(() => setAttribute(_el$2, "srcset", webpSrcSet()));
4985
5004
  return _el$2;
4986
5005
  }
4987
5006
  }), _el$3);
4988
5007
  effect((_p$) => {
4989
- const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " " + css({
4990
- opacity: "1",
4991
- transition: "opacity 0.2s ease-in-out"
4992
- }), _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 = {
5008
+ 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 = {
4993
5009
  "object-position": props.backgroundPosition || "center",
4994
5010
  "object-fit": props.backgroundSize || "cover",
4995
5011
  ...aspectRatioCss()
@@ -5022,19 +5038,7 @@ function Image(props) {
5022
5038
  },
5023
5039
  get children() {
5024
5040
  const _el$4 = _tmpl$32();
5025
- effect((_p$) => {
5026
- const _v$10 = "builder-image-sizer " + css({
5027
- width: "100%",
5028
- pointerEvents: "none",
5029
- fontSize: "0"
5030
- }), _v$11 = props.aspectRatio * 100 + "%";
5031
- _v$10 !== _p$._v$10 && className(_el$4, _p$._v$10 = _v$10);
5032
- _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"));
5033
- return _p$;
5034
- }, {
5035
- _v$10: void 0,
5036
- _v$11: void 0
5037
- });
5041
+ effect(() => props.aspectRatio * 100 + "%" != null ? _el$4.style.setProperty("padding-top", props.aspectRatio * 100 + "%") : _el$4.style.removeProperty("padding-top"));
5038
5042
  return _el$4;
5039
5043
  }
5040
5044
  }), createComponent(Show, {
@@ -5049,27 +5053,17 @@ function Image(props) {
5049
5053
  return !props.fitContent && props.builderBlock?.children?.length;
5050
5054
  },
5051
5055
  get children() {
5052
- const _el$5 = _tmpl$32();
5056
+ const _el$5 = _tmpl$42();
5053
5057
  insert(_el$5, () => props.children);
5054
- effect(() => className(_el$5, css({
5055
- display: "flex",
5056
- flexDirection: "column",
5057
- alignItems: "stretch",
5058
- position: "absolute",
5059
- top: "0",
5060
- left: "0",
5061
- width: "100%",
5062
- height: "100%"
5063
- })));
5064
5058
  return _el$5;
5065
5059
  }
5066
- })];
5060
+ })], _tmpl$52()];
5067
5061
  }
5068
5062
  var image_default = Image;
5069
- var _tmpl$5 = /* @__PURE__ */ template(`<section>`);
5063
+ var _tmpl$6 = /* @__PURE__ */ template(`<section>`);
5070
5064
  function SectionComponent(props) {
5071
5065
  return (() => {
5072
- const _el$ = _tmpl$5();
5066
+ const _el$ = _tmpl$6();
5073
5067
  spread(_el$, mergeProps({}, () => props.attributes, {
5074
5068
  get style() {
5075
5069
  return {
@@ -5414,8 +5408,8 @@ var convertOrderNumberToString = (order) => {
5414
5408
  };
5415
5409
 
5416
5410
  // src/blocks/accordion/accordion.tsx
5417
- var _tmpl$6 = /* @__PURE__ */ template(`<div class=builder-accordion>`);
5418
- var _tmpl$23 = /* @__PURE__ */ template(`<div>`);
5411
+ var _tmpl$7 = /* @__PURE__ */ template(`<div class=builder-accordion>`);
5412
+ var _tmpl$24 = /* @__PURE__ */ template(`<div>`);
5419
5413
  function Accordion(props) {
5420
5414
  const [open, setOpen] = createSignal([]);
5421
5415
  const onlyOneAtATime = createMemo(() => {
@@ -5505,7 +5499,7 @@ function Accordion(props) {
5505
5499
  }
5506
5500
  }
5507
5501
  return (() => {
5508
- const _el$ = _tmpl$6();
5502
+ const _el$ = _tmpl$7();
5509
5503
  insert(_el$, createComponent(For, {
5510
5504
  get each() {
5511
5505
  return props.items;
@@ -5513,7 +5507,7 @@ function Accordion(props) {
5513
5507
  children: (item, _index) => {
5514
5508
  const index = _index();
5515
5509
  return [(() => {
5516
- const _el$2 = _tmpl$23();
5510
+ const _el$2 = _tmpl$24();
5517
5511
  _el$2.$$click = (event) => onClick(index);
5518
5512
  setAttribute(_el$2, "data-index", index);
5519
5513
  insert(_el$2, createComponent(blocks_default, {
@@ -5555,7 +5549,7 @@ function Accordion(props) {
5555
5549
  return open().includes(index);
5556
5550
  },
5557
5551
  get children() {
5558
- const _el$3 = _tmpl$23();
5552
+ const _el$3 = _tmpl$24();
5559
5553
  insert(_el$3, createComponent(blocks_default, {
5560
5554
  get blocks() {
5561
5555
  return item.detail;
@@ -5876,7 +5870,7 @@ var componentInfo5 = {
5876
5870
  name: "image",
5877
5871
  type: "file",
5878
5872
  bubble: true,
5879
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
5873
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
5880
5874
  required: true,
5881
5875
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
5882
5876
  onChange: (options) => {
@@ -6045,10 +6039,10 @@ var componentInfo7 = {
6045
6039
  defaultValue: "children"
6046
6040
  }]
6047
6041
  };
6048
- var _tmpl$7 = /* @__PURE__ */ template(`<div>`);
6042
+ var _tmpl$8 = /* @__PURE__ */ template(`<div>`);
6049
6043
  function Slot(props) {
6050
6044
  return (() => {
6051
- const _el$ = _tmpl$7();
6045
+ const _el$ = _tmpl$8();
6052
6046
  _el$.style.setProperty("pointer-events", "auto");
6053
6047
  spread(_el$, mergeProps(() => !props.builderContext.context?.symbolId && {
6054
6048
  "builder-slot": props.name
@@ -6247,8 +6241,8 @@ var componentInfo9 = {
6247
6241
  }]
6248
6242
  }]
6249
6243
  };
6250
- var _tmpl$8 = /* @__PURE__ */ template(`<div>`);
6251
- var _tmpl$24 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
6244
+ var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
6245
+ var _tmpl$25 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
6252
6246
  var _tmpl$33 = /* @__PURE__ */ template(`<span>`);
6253
6247
  function Tabs(props) {
6254
6248
  const [activeTab, setActiveTab] = createSignal(props.defaultActiveTab ? props.defaultActiveTab - 1 : 0);
@@ -6263,7 +6257,7 @@ function Tabs(props) {
6263
6257
  }
6264
6258
  }
6265
6259
  return (() => {
6266
- const _el$ = _tmpl$24(), _el$2 = _el$.firstChild;
6260
+ const _el$ = _tmpl$25(), _el$2 = _el$.firstChild;
6267
6261
  _el$2.style.setProperty("display", "flex");
6268
6262
  _el$2.style.setProperty("flex-direction", "row");
6269
6263
  _el$2.style.setProperty("overflow", "auto");
@@ -6315,7 +6309,7 @@ function Tabs(props) {
6315
6309
  return activeTabContent(activeTab());
6316
6310
  },
6317
6311
  get children() {
6318
- const _el$3 = _tmpl$8();
6312
+ const _el$3 = _tmpl$9();
6319
6313
  insert(_el$3, createComponent(blocks_default, {
6320
6314
  get parent() {
6321
6315
  return props.builderBlock.id;
@@ -6366,10 +6360,10 @@ var componentInfo10 = {
6366
6360
  textAlign: "center"
6367
6361
  }
6368
6362
  };
6369
- var _tmpl$9 = /* @__PURE__ */ template(`<div class=builder-text>`);
6363
+ var _tmpl$10 = /* @__PURE__ */ template(`<div class=builder-text>`);
6370
6364
  function Text(props) {
6371
6365
  return (() => {
6372
- const _el$ = _tmpl$9();
6366
+ const _el$ = _tmpl$10();
6373
6367
  _el$.style.setProperty("outline", "none");
6374
6368
  effect(() => _el$.innerHTML = props.text?.toString() || "");
6375
6369
  return _el$;
@@ -6401,7 +6395,7 @@ var componentInfo11 = {
6401
6395
  advanced: true
6402
6396
  }]
6403
6397
  };
6404
- var _tmpl$10 = /* @__PURE__ */ template(`<div>`);
6398
+ var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
6405
6399
  function CustomCode(props) {
6406
6400
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
6407
6401
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -6436,7 +6430,7 @@ function CustomCode(props) {
6436
6430
  }
6437
6431
  });
6438
6432
  return (() => {
6439
- const _el$ = _tmpl$10();
6433
+ const _el$ = _tmpl$11();
6440
6434
  const _ref$ = elementRef;
6441
6435
  typeof _ref$ === "function" ? use(_ref$, _el$) : elementRef = _el$;
6442
6436
  effect((_p$) => {
@@ -6467,7 +6461,7 @@ var componentInfo12 = {
6467
6461
  const url = options.get("url");
6468
6462
  if (url) {
6469
6463
  options.set("content", "Loading...");
6470
- const apiKey = "ae0e60e78201a3f2b0de4b";
6464
+ const apiKey = _iframelyApiKey;
6471
6465
  return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
6472
6466
  if (options.get("url") === url) {
6473
6467
  if (data.html) {
@@ -6496,7 +6490,7 @@ var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "applicati
6496
6490
  var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
6497
6491
 
6498
6492
  // src/blocks/embed/embed.tsx
6499
- var _tmpl$11 = /* @__PURE__ */ template(`<div class=builder-embed>`);
6493
+ var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-embed>`);
6500
6494
  function Embed(props) {
6501
6495
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
6502
6496
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -6534,7 +6528,7 @@ function Embed(props) {
6534
6528
  }
6535
6529
  createEffect(on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0));
6536
6530
  return (() => {
6537
- const _el$ = _tmpl$11();
6531
+ const _el$ = _tmpl$12();
6538
6532
  const _ref$ = elem;
6539
6533
  typeof _ref$ === "function" ? use(_ref$, _el$) : elem = _el$;
6540
6534
  effect(() => _el$.innerHTML = props.content);
@@ -6791,8 +6785,13 @@ var get = (obj, path, defaultValue) => {
6791
6785
  };
6792
6786
 
6793
6787
  // src/blocks/form/form/form.tsx
6794
- var _tmpl$12 = /* @__PURE__ */ template(`<pre>`);
6795
- var _tmpl$25 = /* @__PURE__ */ template(`<form>`);
6788
+ var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-2e825338">`);
6789
+ var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
6790
+ var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-2e825338 {
6791
+ padding: 10px;
6792
+ color: red;
6793
+ text-align: center;
6794
+ }`);
6796
6795
  function FormComponent(props) {
6797
6796
  const [formState, setFormState] = createSignal("unsubmitted");
6798
6797
  const [responseData, setResponseData] = createSignal(null);
@@ -6977,8 +6976,8 @@ function FormComponent(props) {
6977
6976
  }
6978
6977
  }
6979
6978
  let formRef;
6980
- return (() => {
6981
- const _el$ = _tmpl$25();
6979
+ return [(() => {
6980
+ const _el$ = _tmpl$26();
6982
6981
  _el$.addEventListener("submit", (event) => onSubmit(event));
6983
6982
  const _ref$ = formRef;
6984
6983
  typeof _ref$ === "function" ? use(_ref$, _el$) : formRef = _el$;
@@ -7061,13 +7060,8 @@ function FormComponent(props) {
7061
7060
  return memo(() => submissionState() === "error")() && responseData();
7062
7061
  },
7063
7062
  get children() {
7064
- const _el$2 = _tmpl$12();
7063
+ const _el$2 = _tmpl$13();
7065
7064
  insert(_el$2, () => JSON.stringify(responseData(), null, 2));
7066
- effect(() => className(_el$2, "builder-form-error-text " + css({
7067
- padding: "10px",
7068
- color: "red",
7069
- textAlign: "center"
7070
- })));
7071
7065
  return _el$2;
7072
7066
  }
7073
7067
  }), null);
@@ -7088,7 +7082,7 @@ function FormComponent(props) {
7088
7082
  }
7089
7083
  }), null);
7090
7084
  return _el$;
7091
- })();
7085
+ })(), _tmpl$34()];
7092
7086
  }
7093
7087
  var form_default = FormComponent;
7094
7088
 
@@ -7145,10 +7139,10 @@ var componentInfo14 = {
7145
7139
  borderColor: "#ccc"
7146
7140
  }
7147
7141
  };
7148
- var _tmpl$13 = /* @__PURE__ */ template(`<input>`);
7142
+ var _tmpl$14 = /* @__PURE__ */ template(`<input>`);
7149
7143
  function FormInputComponent(props) {
7150
7144
  return (() => {
7151
- const _el$ = _tmpl$13();
7145
+ const _el$ = _tmpl$14();
7152
7146
  spread(_el$, mergeProps({}, () => props.attributes, {
7153
7147
  get key() {
7154
7148
  return isEditing() && props.defaultValue ? props.defaultValue : "default-key";
@@ -7221,11 +7215,11 @@ var componentInfo15 = {
7221
7215
  static: true,
7222
7216
  noWrap: true
7223
7217
  };
7224
- var _tmpl$14 = /* @__PURE__ */ template(`<select>`);
7225
- var _tmpl$26 = /* @__PURE__ */ template(`<option>`);
7218
+ var _tmpl$15 = /* @__PURE__ */ template(`<select>`);
7219
+ var _tmpl$27 = /* @__PURE__ */ template(`<option>`);
7226
7220
  function SelectComponent(props) {
7227
7221
  return (() => {
7228
- const _el$ = _tmpl$14();
7222
+ const _el$ = _tmpl$15();
7229
7223
  spread(_el$, mergeProps({}, () => props.attributes, {
7230
7224
  get value() {
7231
7225
  return props.value;
@@ -7247,7 +7241,7 @@ function SelectComponent(props) {
7247
7241
  children: (option, _index) => {
7248
7242
  const index = _index();
7249
7243
  return (() => {
7250
- const _el$2 = _tmpl$26();
7244
+ const _el$2 = _tmpl$27();
7251
7245
  insert(_el$2, () => option.name || option.value);
7252
7246
  effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
7253
7247
  effect(() => _el$2.value = option.value);
@@ -7287,10 +7281,10 @@ var componentInfo16 = {
7287
7281
  // TODO: defaultChildren
7288
7282
  // canHaveChildren: true,
7289
7283
  };
7290
- var _tmpl$15 = /* @__PURE__ */ template(`<button type=submit>`);
7284
+ var _tmpl$16 = /* @__PURE__ */ template(`<button type=submit>`);
7291
7285
  function SubmitButton(props) {
7292
7286
  return (() => {
7293
- const _el$ = _tmpl$15();
7287
+ const _el$ = _tmpl$16();
7294
7288
  spread(_el$, mergeProps({}, () => props.attributes), false, true);
7295
7289
  insert(_el$, () => props.text);
7296
7290
  return _el$;
@@ -7314,10 +7308,10 @@ var componentInfo17 = {
7314
7308
  noWrap: true,
7315
7309
  static: true
7316
7310
  };
7317
- var _tmpl$16 = /* @__PURE__ */ template(`<img>`);
7311
+ var _tmpl$17 = /* @__PURE__ */ template(`<img>`);
7318
7312
  function ImgComponent(props) {
7319
7313
  return (() => {
7320
- const _el$ = _tmpl$16();
7314
+ const _el$ = _tmpl$17();
7321
7315
  spread(_el$, mergeProps({
7322
7316
  get style() {
7323
7317
  return {
@@ -7423,9 +7417,9 @@ var componentInfo18 = {
7423
7417
  advanced: true
7424
7418
  }]
7425
7419
  };
7426
- var _tmpl$17 = /* @__PURE__ */ template(`<source type=video/mp4>`);
7427
- var _tmpl$27 = /* @__PURE__ */ template(`<div>`);
7428
- var _tmpl$34 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
7420
+ var _tmpl$18 = /* @__PURE__ */ template(`<source type=video/mp4>`);
7421
+ var _tmpl$28 = /* @__PURE__ */ template(`<div>`);
7422
+ var _tmpl$35 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
7429
7423
  function Video(props) {
7430
7424
  const videoProps = createMemo(() => {
7431
7425
  return {
@@ -7452,7 +7446,7 @@ function Video(props) {
7452
7446
  };
7453
7447
  });
7454
7448
  return (() => {
7455
- const _el$ = _tmpl$34(), _el$2 = _el$.firstChild;
7449
+ const _el$ = _tmpl$35(), _el$2 = _el$.firstChild;
7456
7450
  _el$.style.setProperty("position", "relative");
7457
7451
  spread(_el$2, mergeProps(spreadProps, {
7458
7452
  get preload() {
@@ -7486,7 +7480,7 @@ function Video(props) {
7486
7480
  return !props.lazyLoad;
7487
7481
  },
7488
7482
  get children() {
7489
- const _el$3 = _tmpl$17();
7483
+ const _el$3 = _tmpl$18();
7490
7484
  effect(() => setAttribute(_el$3, "src", props.video));
7491
7485
  return _el$3;
7492
7486
  }
@@ -7496,7 +7490,7 @@ function Video(props) {
7496
7490
  return props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length);
7497
7491
  },
7498
7492
  get children() {
7499
- const _el$4 = _tmpl$27();
7493
+ const _el$4 = _tmpl$28();
7500
7494
  _el$4.style.setProperty("width", "100%");
7501
7495
  _el$4.style.setProperty("pointer-events", "none");
7502
7496
  _el$4.style.setProperty("font-size", "0px");
@@ -7509,7 +7503,7 @@ function Video(props) {
7509
7503
  return props.builderBlock?.children?.length && props.fitContent;
7510
7504
  },
7511
7505
  get children() {
7512
- const _el$5 = _tmpl$27();
7506
+ const _el$5 = _tmpl$28();
7513
7507
  _el$5.style.setProperty("display", "flex");
7514
7508
  _el$5.style.setProperty("flex-direction", "column");
7515
7509
  _el$5.style.setProperty("align-items", "stretch");
@@ -7522,7 +7516,7 @@ function Video(props) {
7522
7516
  return props.builderBlock?.children?.length && !props.fitContent;
7523
7517
  },
7524
7518
  get children() {
7525
- const _el$6 = _tmpl$27();
7519
+ const _el$6 = _tmpl$28();
7526
7520
  _el$6.style.setProperty("pointer-events", "none");
7527
7521
  _el$6.style.setProperty("display", "flex");
7528
7522
  _el$6.style.setProperty("flex-direction", "column");
@@ -7668,10 +7662,10 @@ var getUpdateVariantVisibilityScript = ({
7668
7662
  }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
7669
7663
  "${variationId}", "${contentId}", ${isHydrationTarget}
7670
7664
  )`;
7671
- var _tmpl$18 = /* @__PURE__ */ template(`<script>`);
7665
+ var _tmpl$19 = /* @__PURE__ */ template(`<script>`);
7672
7666
  function InlinedScript(props) {
7673
7667
  return (() => {
7674
- const _el$ = _tmpl$18();
7668
+ const _el$ = _tmpl$19();
7675
7669
  effect((_p$) => {
7676
7670
  const _v$ = props.scriptStr, _v$2 = props.id;
7677
7671
  _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
@@ -8177,12 +8171,15 @@ var getInteractionPropertiesForEvent = (event) => {
8177
8171
  // src/functions/is-from-trusted-host.ts
8178
8172
  var DEFAULT_TRUSTED_HOSTS = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
8179
8173
  function isFromTrustedHost(trustedHosts, e) {
8174
+ if (!e.origin.startsWith("http") && !e.origin.startsWith("https")) {
8175
+ return false;
8176
+ }
8180
8177
  const url = new URL(e.origin), hostname = url.hostname;
8181
8178
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
8182
8179
  }
8183
8180
 
8184
8181
  // src/constants/sdk-version.ts
8185
- var SDK_VERSION = "1.0.32";
8182
+ var SDK_VERSION = "1.0.35";
8186
8183
 
8187
8184
  // src/functions/register.ts
8188
8185
  var registry = {};
@@ -9166,7 +9163,7 @@ var fetchSymbolContent = async ({
9166
9163
  };
9167
9164
 
9168
9165
  // src/blocks/symbol/symbol.tsx
9169
- var _tmpl$19 = /* @__PURE__ */ template(`<div>`);
9166
+ var _tmpl$20 = /* @__PURE__ */ template(`<div>`);
9170
9167
  function Symbol2(props) {
9171
9168
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
9172
9169
  const blocksWrapper = createMemo(() => {
@@ -9198,7 +9195,7 @@ function Symbol2(props) {
9198
9195
  }
9199
9196
  createEffect(on(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9200
9197
  return (() => {
9201
- const _el$ = _tmpl$19();
9198
+ const _el$ = _tmpl$20();
9202
9199
  spread(_el$, mergeProps({
9203
9200
  get ["class"]() {
9204
9201
  return className();