@builder.io/sdk-solid 4.0.4 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/node/index.js CHANGED
@@ -1465,7 +1465,13 @@ var getWrapperProps = ({
1465
1465
 
1466
1466
  // src/components/block/components/component-ref/component-ref.tsx
1467
1467
  function ComponentRef(props) {
1468
+ createSignal(false);
1468
1469
  const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
1470
+ const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
1471
+ const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
1472
+ function onUpdateFn_0() {
1473
+ }
1474
+ createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
1469
1475
  return createComponent(Show, {
1470
1476
  get when() {
1471
1477
  return props.componentRef;
@@ -1949,9 +1955,10 @@ var getColumnsClass = (id) => {
1949
1955
 
1950
1956
  // src/blocks/columns/columns.tsx
1951
1957
  var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
1952
- var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
1958
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
1953
1959
  display: flex;
1954
1960
  line-height: normal;
1961
+ height: 100%;
1955
1962
  }`);
1956
1963
  function Columns(props) {
1957
1964
  const gutterSize = createMemo(() => {
@@ -2078,7 +2085,7 @@ function Columns(props) {
2078
2085
  const _el$ = _tmpl$3();
2079
2086
  spread(_el$, mergeProps({
2080
2087
  get ["class"]() {
2081
- return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
2088
+ return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
2082
2089
  },
2083
2090
  get style() {
2084
2091
  return columnsCssVars();
@@ -5509,7 +5516,7 @@ function getPreviewContent(_searchParams) {
5509
5516
  }
5510
5517
 
5511
5518
  // src/constants/sdk-version.ts
5512
- var SDK_VERSION = "4.0.4";
5519
+ var SDK_VERSION = "4.0.5";
5513
5520
 
5514
5521
  // src/helpers/sdk-headers.ts
5515
5522
  var getSdkHeaders = () => ({
@@ -1360,7 +1360,14 @@ function BlockWrapper(props) {
1360
1360
  var Block_wrapper_default = BlockWrapper;
1361
1361
 
1362
1362
  // src/components/block/components/component-ref/component-ref.tsx
1363
- import { Show as Show4, For, createSignal as createSignal3 } from "solid-js";
1363
+ import {
1364
+ Show as Show4,
1365
+ For,
1366
+ on,
1367
+ createEffect,
1368
+ createMemo as createMemo3,
1369
+ createSignal as createSignal3
1370
+ } from "solid-js";
1364
1371
  import { Dynamic as Dynamic3 } from "solid-js/web";
1365
1372
 
1366
1373
  // src/components/block/components/interactive-element.tsx
@@ -1444,9 +1451,27 @@ var getWrapperProps = ({
1444
1451
 
1445
1452
  // src/components/block/components/component-ref/component-ref.tsx
1446
1453
  function ComponentRef(props) {
1454
+ const [shouldUpdate, setShouldUpdate] = createSignal3(false);
1447
1455
  const [Wrapper, setWrapper] = createSignal3(
1448
1456
  props.isInteractive ? interactive_element_default : props.componentRef
1449
1457
  );
1458
+ const onUpdateFn_0_props_componentOptions = createMemo3(
1459
+ () => props.componentOptions
1460
+ );
1461
+ const onUpdateFn_0_props_blockChildren = createMemo3(
1462
+ () => props.blockChildren
1463
+ );
1464
+ function onUpdateFn_0() {
1465
+ }
1466
+ createEffect(
1467
+ on(
1468
+ () => [
1469
+ onUpdateFn_0_props_componentOptions(),
1470
+ onUpdateFn_0_props_blockChildren()
1471
+ ],
1472
+ onUpdateFn_0
1473
+ )
1474
+ );
1450
1475
  return <><Show4 when={props.componentRef}><Dynamic3
1451
1476
  {...getWrapperProps({
1452
1477
  componentOptions: props.componentOptions,
@@ -1644,7 +1669,7 @@ function Block(props) {
1644
1669
  var Block_default = Block;
1645
1670
 
1646
1671
  // src/components/blocks/blocks-wrapper.tsx
1647
- import { onMount as onMount3, on as on2, createEffect as createEffect2, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
1672
+ import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
1648
1673
  import { Dynamic as Dynamic4 } from "solid-js/web";
1649
1674
  function BlocksWrapper(props) {
1650
1675
  const [shouldUpdate, setShouldUpdate] = createSignal6(false);
@@ -1697,7 +1722,7 @@ function BlocksWrapper(props) {
1697
1722
  const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
1698
1723
  function onUpdateFn_0() {
1699
1724
  }
1700
- createEffect2(on2(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
1725
+ createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
1701
1726
  return <>
1702
1727
  <Dynamic4
1703
1728
  class={className() + " dynamic-023c60f2"}
@@ -1877,7 +1902,7 @@ function Columns(props) {
1877
1902
  }
1878
1903
  return <>
1879
1904
  <div
1880
- class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
1905
+ class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
1881
1906
  style={columnsCssVars()}
1882
1907
  {...{}}
1883
1908
  >
@@ -1906,9 +1931,10 @@ function Columns(props) {
1906
1931
  /></Dynamic_renderer_default>;
1907
1932
  }}</For4>
1908
1933
  </div>
1909
- <style>{`.div-6331dfc5 {
1934
+ <style>{`.div-7612d942 {
1910
1935
  display: flex;
1911
1936
  line-height: normal;
1937
+ height: 100%;
1912
1938
  }`}</style>
1913
1939
  </>;
1914
1940
  }
@@ -2085,7 +2111,7 @@ function SectionComponent(props) {
2085
2111
  var section_default = SectionComponent;
2086
2112
 
2087
2113
  // src/blocks/symbol/symbol.tsx
2088
- import { onMount as onMount9, on as on6, createEffect as createEffect6, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
2114
+ import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
2089
2115
 
2090
2116
  // src/components/content-variants/content-variants.tsx
2091
2117
  import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
@@ -3797,7 +3823,7 @@ var componentInfo12 = {
3797
3823
  };
3798
3824
 
3799
3825
  // src/blocks/custom-code/custom-code.tsx
3800
- import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3826
+ import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3801
3827
  function CustomCode(props) {
3802
3828
  const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3803
3829
  const [scriptsRun, setScriptsRun] = createSignal12([]);
@@ -3847,7 +3873,7 @@ function CustomCode(props) {
3847
3873
  runScripts();
3848
3874
  }
3849
3875
  }
3850
- createEffect3(on3(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
3876
+ createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
3851
3877
  return <><div
3852
3878
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
3853
3879
  ref={elementRef}
@@ -3875,7 +3901,7 @@ var componentInfo13 = {
3875
3901
  };
3876
3902
 
3877
3903
  // src/blocks/embed/embed.tsx
3878
- import { on as on4, createEffect as createEffect4, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3904
+ import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3879
3905
 
3880
3906
  // src/blocks/embed/helpers.ts
3881
3907
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -3917,8 +3943,8 @@ function Embed(props) {
3917
3943
  findAndRunScripts();
3918
3944
  }
3919
3945
  }
3920
- createEffect4(
3921
- on4(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3946
+ createEffect5(
3947
+ on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3922
3948
  );
3923
3949
  return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
3924
3950
  }
@@ -5009,8 +5035,8 @@ var getUpdateVariantVisibilityScript = ({
5009
5035
  import {
5010
5036
  Show as Show14,
5011
5037
  onMount as onMount7,
5012
- on as on5,
5013
- createEffect as createEffect5,
5038
+ on as on6,
5039
+ createEffect as createEffect6,
5014
5040
  createMemo as createMemo16,
5015
5041
  createSignal as createSignal16
5016
5042
  } from "solid-js";
@@ -5022,7 +5048,7 @@ function getPreviewContent(_searchParams) {
5022
5048
  }
5023
5049
 
5024
5050
  // src/constants/sdk-version.ts
5025
- var SDK_VERSION = "4.0.4";
5051
+ var SDK_VERSION = "4.0.5";
5026
5052
 
5027
5053
  // src/helpers/sdk-headers.ts
5028
5054
  var getSdkHeaders = () => ({
@@ -6107,15 +6133,15 @@ function EnableEditor(props) {
6107
6133
  mergeNewContent(props.content);
6108
6134
  }
6109
6135
  }
6110
- createEffect5(on5(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6136
+ createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
6111
6137
  const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
6112
6138
  () => props.builderContextSignal.rootState
6113
6139
  );
6114
6140
  function onUpdateFn_1() {
6115
6141
  emitStateUpdate();
6116
6142
  }
6117
- createEffect5(
6118
- on5(
6143
+ createEffect6(
6144
+ on6(
6119
6145
  () => [onUpdateFn_1_props_builderContextSignal_rootState()],
6120
6146
  onUpdateFn_1
6121
6147
  )
@@ -6126,7 +6152,7 @@ function EnableEditor(props) {
6126
6152
  mergeNewRootState(props.data);
6127
6153
  }
6128
6154
  }
6129
- createEffect5(on5(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6155
+ createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
6130
6156
  const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
6131
6157
  function onUpdateFn_3() {
6132
6158
  if (props.locale) {
@@ -6135,7 +6161,7 @@ function EnableEditor(props) {
6135
6161
  });
6136
6162
  }
6137
6163
  }
6138
- createEffect5(on5(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
6164
+ createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
6139
6165
  return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
6140
6166
  when={props.builderContextSignal.content || needsElementRefDivForEditing()}
6141
6167
  ><Dynamic5
@@ -6513,7 +6539,7 @@ function Symbol(props) {
6513
6539
  function onUpdateFn_0() {
6514
6540
  setContent();
6515
6541
  }
6516
- createEffect6(on6(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6542
+ createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6517
6543
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
6518
6544
  nonce={props.builderContext.nonce}
6519
6545
  isNestedRender={true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",