@builder.io/sdk-solid 2.0.26 → 2.0.28
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/browser/dev.js +16 -8
- package/lib/browser/dev.jsx +16 -12
- package/lib/browser/index.js +16 -8
- package/lib/browser/index.jsx +16 -12
- package/lib/edge/dev.js +16 -8
- package/lib/edge/dev.jsx +16 -12
- package/lib/edge/index.js +16 -8
- package/lib/edge/index.jsx +16 -12
- package/lib/node/dev.js +19 -12
- package/lib/node/dev.jsx +19 -16
- package/lib/node/index.js +19 -12
- package/lib/node/index.jsx +19 -16
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For,
|
|
2
|
+
import { createContext, useContext, Show, For, createMemo, onMount, createSignal, createEffect, on } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
// src/blocks/button/button.tsx
|
|
5
5
|
|
|
@@ -1656,15 +1656,20 @@ var getColumnsClass = (id) => {
|
|
|
1656
1656
|
|
|
1657
1657
|
// src/blocks/columns/columns.tsx
|
|
1658
1658
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1659
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1659
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-a1dad3b8 {
|
|
1660
1660
|
display: flex;
|
|
1661
1661
|
line-height: normal;
|
|
1662
1662
|
}`);
|
|
1663
1663
|
function Columns(props) {
|
|
1664
|
-
const
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
const
|
|
1664
|
+
const gutterSize = createMemo(() => {
|
|
1665
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1666
|
+
});
|
|
1667
|
+
const cols = createMemo(() => {
|
|
1668
|
+
return props.columns || [];
|
|
1669
|
+
});
|
|
1670
|
+
const stackAt = createMemo(() => {
|
|
1671
|
+
return props.stackColumnsAt || "tablet";
|
|
1672
|
+
});
|
|
1668
1673
|
function getTagName(column) {
|
|
1669
1674
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1670
1675
|
}
|
|
@@ -1688,6 +1693,9 @@ function Columns(props) {
|
|
|
1688
1693
|
}) {
|
|
1689
1694
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1690
1695
|
}
|
|
1696
|
+
const flexDir = createMemo(() => {
|
|
1697
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1698
|
+
});
|
|
1691
1699
|
function columnsCssVars() {
|
|
1692
1700
|
return {
|
|
1693
1701
|
"--flex-dir": flexDir(),
|
|
@@ -1777,7 +1785,7 @@ function Columns(props) {
|
|
|
1777
1785
|
const _el$ = _tmpl$3();
|
|
1778
1786
|
spread(_el$, mergeProps({
|
|
1779
1787
|
get ["class"]() {
|
|
1780
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1788
|
+
return getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8";
|
|
1781
1789
|
},
|
|
1782
1790
|
get style() {
|
|
1783
1791
|
return columnsCssVars();
|
|
@@ -4766,7 +4774,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4766
4774
|
}
|
|
4767
4775
|
|
|
4768
4776
|
// src/constants/sdk-version.ts
|
|
4769
|
-
var SDK_VERSION = "2.0.
|
|
4777
|
+
var SDK_VERSION = "2.0.28";
|
|
4770
4778
|
|
|
4771
4779
|
// src/helpers/sdk-headers.ts
|
|
4772
4780
|
var getSdkHeaders = () => ({
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -75,7 +75,7 @@ function Button(props) {
|
|
|
75
75
|
var button_default = Button;
|
|
76
76
|
|
|
77
77
|
// src/blocks/columns/columns.tsx
|
|
78
|
-
import { Show as Show7, For as For4,
|
|
78
|
+
import { Show as Show7, For as For4, createMemo as createMemo7 } from "solid-js";
|
|
79
79
|
|
|
80
80
|
// src/components/blocks/blocks.tsx
|
|
81
81
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -1449,14 +1449,15 @@ var getColumnsClass = (id) => {
|
|
|
1449
1449
|
|
|
1450
1450
|
// src/blocks/columns/columns.tsx
|
|
1451
1451
|
function Columns(props) {
|
|
1452
|
-
const
|
|
1453
|
-
typeof props.space === "number" ? props.space || 0 : 20
|
|
1454
|
-
);
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1452
|
+
const gutterSize = createMemo7(() => {
|
|
1453
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1454
|
+
});
|
|
1455
|
+
const cols = createMemo7(() => {
|
|
1456
|
+
return props.columns || [];
|
|
1457
|
+
});
|
|
1458
|
+
const stackAt = createMemo7(() => {
|
|
1459
|
+
return props.stackColumnsAt || "tablet";
|
|
1460
|
+
});
|
|
1460
1461
|
function getTagName(column) {
|
|
1461
1462
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1462
1463
|
}
|
|
@@ -1480,6 +1481,9 @@ function Columns(props) {
|
|
|
1480
1481
|
}) {
|
|
1481
1482
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1482
1483
|
}
|
|
1484
|
+
const flexDir = createMemo7(() => {
|
|
1485
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1486
|
+
});
|
|
1483
1487
|
function columnsCssVars() {
|
|
1484
1488
|
return {
|
|
1485
1489
|
"--flex-dir": flexDir(),
|
|
@@ -1569,7 +1573,7 @@ function Columns(props) {
|
|
|
1569
1573
|
}
|
|
1570
1574
|
return <>
|
|
1571
1575
|
<div
|
|
1572
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1576
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8"}
|
|
1573
1577
|
style={columnsCssVars()}
|
|
1574
1578
|
{...{}}
|
|
1575
1579
|
>
|
|
@@ -1598,7 +1602,7 @@ function Columns(props) {
|
|
|
1598
1602
|
/></Dynamic_renderer_default>;
|
|
1599
1603
|
}}</For4>
|
|
1600
1604
|
</div>
|
|
1601
|
-
<style>{`.div-
|
|
1605
|
+
<style>{`.div-a1dad3b8 {
|
|
1602
1606
|
display: flex;
|
|
1603
1607
|
line-height: normal;
|
|
1604
1608
|
}`}</style>
|
|
@@ -4254,7 +4258,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4254
4258
|
}
|
|
4255
4259
|
|
|
4256
4260
|
// src/constants/sdk-version.ts
|
|
4257
|
-
var SDK_VERSION = "2.0.
|
|
4261
|
+
var SDK_VERSION = "2.0.28";
|
|
4258
4262
|
|
|
4259
4263
|
// src/helpers/sdk-headers.ts
|
|
4260
4264
|
var getSdkHeaders = () => ({
|
package/lib/browser/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For,
|
|
2
|
+
import { createContext, useContext, Show, For, createMemo, onMount, createSignal, createEffect, on } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
// src/blocks/button/button.tsx
|
|
5
5
|
|
|
@@ -1650,15 +1650,20 @@ var getColumnsClass = (id) => {
|
|
|
1650
1650
|
|
|
1651
1651
|
// src/blocks/columns/columns.tsx
|
|
1652
1652
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1653
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1653
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-a1dad3b8 {
|
|
1654
1654
|
display: flex;
|
|
1655
1655
|
line-height: normal;
|
|
1656
1656
|
}`);
|
|
1657
1657
|
function Columns(props) {
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
const
|
|
1658
|
+
const gutterSize = createMemo(() => {
|
|
1659
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1660
|
+
});
|
|
1661
|
+
const cols = createMemo(() => {
|
|
1662
|
+
return props.columns || [];
|
|
1663
|
+
});
|
|
1664
|
+
const stackAt = createMemo(() => {
|
|
1665
|
+
return props.stackColumnsAt || "tablet";
|
|
1666
|
+
});
|
|
1662
1667
|
function getTagName(column) {
|
|
1663
1668
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1664
1669
|
}
|
|
@@ -1682,6 +1687,9 @@ function Columns(props) {
|
|
|
1682
1687
|
}) {
|
|
1683
1688
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1684
1689
|
}
|
|
1690
|
+
const flexDir = createMemo(() => {
|
|
1691
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1692
|
+
});
|
|
1685
1693
|
function columnsCssVars() {
|
|
1686
1694
|
return {
|
|
1687
1695
|
"--flex-dir": flexDir(),
|
|
@@ -1771,7 +1779,7 @@ function Columns(props) {
|
|
|
1771
1779
|
const _el$ = _tmpl$3();
|
|
1772
1780
|
spread(_el$, mergeProps({
|
|
1773
1781
|
get ["class"]() {
|
|
1774
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1782
|
+
return getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8";
|
|
1775
1783
|
},
|
|
1776
1784
|
get style() {
|
|
1777
1785
|
return columnsCssVars();
|
|
@@ -4756,7 +4764,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4756
4764
|
}
|
|
4757
4765
|
|
|
4758
4766
|
// src/constants/sdk-version.ts
|
|
4759
|
-
var SDK_VERSION = "2.0.
|
|
4767
|
+
var SDK_VERSION = "2.0.28";
|
|
4760
4768
|
|
|
4761
4769
|
// src/helpers/sdk-headers.ts
|
|
4762
4770
|
var getSdkHeaders = () => ({
|
package/lib/browser/index.jsx
CHANGED
|
@@ -75,7 +75,7 @@ function Button(props) {
|
|
|
75
75
|
var button_default = Button;
|
|
76
76
|
|
|
77
77
|
// src/blocks/columns/columns.tsx
|
|
78
|
-
import { Show as Show7, For as For4,
|
|
78
|
+
import { Show as Show7, For as For4, createMemo as createMemo7 } from "solid-js";
|
|
79
79
|
|
|
80
80
|
// src/components/blocks/blocks.tsx
|
|
81
81
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -1443,14 +1443,15 @@ var getColumnsClass = (id) => {
|
|
|
1443
1443
|
|
|
1444
1444
|
// src/blocks/columns/columns.tsx
|
|
1445
1445
|
function Columns(props) {
|
|
1446
|
-
const
|
|
1447
|
-
typeof props.space === "number" ? props.space || 0 : 20
|
|
1448
|
-
);
|
|
1449
|
-
const
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1446
|
+
const gutterSize = createMemo7(() => {
|
|
1447
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1448
|
+
});
|
|
1449
|
+
const cols = createMemo7(() => {
|
|
1450
|
+
return props.columns || [];
|
|
1451
|
+
});
|
|
1452
|
+
const stackAt = createMemo7(() => {
|
|
1453
|
+
return props.stackColumnsAt || "tablet";
|
|
1454
|
+
});
|
|
1454
1455
|
function getTagName(column) {
|
|
1455
1456
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1456
1457
|
}
|
|
@@ -1474,6 +1475,9 @@ function Columns(props) {
|
|
|
1474
1475
|
}) {
|
|
1475
1476
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1476
1477
|
}
|
|
1478
|
+
const flexDir = createMemo7(() => {
|
|
1479
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1480
|
+
});
|
|
1477
1481
|
function columnsCssVars() {
|
|
1478
1482
|
return {
|
|
1479
1483
|
"--flex-dir": flexDir(),
|
|
@@ -1563,7 +1567,7 @@ function Columns(props) {
|
|
|
1563
1567
|
}
|
|
1564
1568
|
return <>
|
|
1565
1569
|
<div
|
|
1566
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1570
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8"}
|
|
1567
1571
|
style={columnsCssVars()}
|
|
1568
1572
|
{...{}}
|
|
1569
1573
|
>
|
|
@@ -1592,7 +1596,7 @@ function Columns(props) {
|
|
|
1592
1596
|
/></Dynamic_renderer_default>;
|
|
1593
1597
|
}}</For4>
|
|
1594
1598
|
</div>
|
|
1595
|
-
<style>{`.div-
|
|
1599
|
+
<style>{`.div-a1dad3b8 {
|
|
1596
1600
|
display: flex;
|
|
1597
1601
|
line-height: normal;
|
|
1598
1602
|
}`}</style>
|
|
@@ -4244,7 +4248,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4244
4248
|
}
|
|
4245
4249
|
|
|
4246
4250
|
// src/constants/sdk-version.ts
|
|
4247
|
-
var SDK_VERSION = "2.0.
|
|
4251
|
+
var SDK_VERSION = "2.0.28";
|
|
4248
4252
|
|
|
4249
4253
|
// src/helpers/sdk-headers.ts
|
|
4250
4254
|
var getSdkHeaders = () => ({
|
package/lib/edge/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For,
|
|
2
|
+
import { createContext, useContext, Show, For, createMemo, onMount, createSignal, createEffect, on } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
5
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
@@ -4839,15 +4839,20 @@ var getColumnsClass = (id2) => {
|
|
|
4839
4839
|
|
|
4840
4840
|
// src/blocks/columns/columns.tsx
|
|
4841
4841
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
4842
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
4842
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-a1dad3b8 {
|
|
4843
4843
|
display: flex;
|
|
4844
4844
|
line-height: normal;
|
|
4845
4845
|
}`);
|
|
4846
4846
|
function Columns(props) {
|
|
4847
|
-
const
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
const
|
|
4847
|
+
const gutterSize = createMemo(() => {
|
|
4848
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
4849
|
+
});
|
|
4850
|
+
const cols = createMemo(() => {
|
|
4851
|
+
return props.columns || [];
|
|
4852
|
+
});
|
|
4853
|
+
const stackAt = createMemo(() => {
|
|
4854
|
+
return props.stackColumnsAt || "tablet";
|
|
4855
|
+
});
|
|
4851
4856
|
function getTagName(column) {
|
|
4852
4857
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
4853
4858
|
}
|
|
@@ -4871,6 +4876,9 @@ function Columns(props) {
|
|
|
4871
4876
|
}) {
|
|
4872
4877
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
4873
4878
|
}
|
|
4879
|
+
const flexDir = createMemo(() => {
|
|
4880
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
4881
|
+
});
|
|
4874
4882
|
function columnsCssVars() {
|
|
4875
4883
|
return {
|
|
4876
4884
|
"--flex-dir": flexDir(),
|
|
@@ -4960,7 +4968,7 @@ function Columns(props) {
|
|
|
4960
4968
|
const _el$ = _tmpl$3();
|
|
4961
4969
|
spread(_el$, mergeProps({
|
|
4962
4970
|
get ["class"]() {
|
|
4963
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
4971
|
+
return getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8";
|
|
4964
4972
|
},
|
|
4965
4973
|
get style() {
|
|
4966
4974
|
return columnsCssVars();
|
|
@@ -7949,7 +7957,7 @@ function getPreviewContent(_searchParams) {
|
|
|
7949
7957
|
}
|
|
7950
7958
|
|
|
7951
7959
|
// src/constants/sdk-version.ts
|
|
7952
|
-
var SDK_VERSION = "2.0.
|
|
7960
|
+
var SDK_VERSION = "2.0.28";
|
|
7953
7961
|
|
|
7954
7962
|
// src/helpers/sdk-headers.ts
|
|
7955
7963
|
var getSdkHeaders = () => ({
|
package/lib/edge/dev.jsx
CHANGED
|
@@ -83,7 +83,7 @@ function Button(props) {
|
|
|
83
83
|
var button_default = Button;
|
|
84
84
|
|
|
85
85
|
// src/blocks/columns/columns.tsx
|
|
86
|
-
import { Show as Show7, For as For4,
|
|
86
|
+
import { Show as Show7, For as For4, createMemo as createMemo7 } from "solid-js";
|
|
87
87
|
|
|
88
88
|
// src/components/blocks/blocks.tsx
|
|
89
89
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -4634,14 +4634,15 @@ var getColumnsClass = (id2) => {
|
|
|
4634
4634
|
|
|
4635
4635
|
// src/blocks/columns/columns.tsx
|
|
4636
4636
|
function Columns(props) {
|
|
4637
|
-
const
|
|
4638
|
-
typeof props.space === "number" ? props.space || 0 : 20
|
|
4639
|
-
);
|
|
4640
|
-
const
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4637
|
+
const gutterSize = createMemo7(() => {
|
|
4638
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
4639
|
+
});
|
|
4640
|
+
const cols = createMemo7(() => {
|
|
4641
|
+
return props.columns || [];
|
|
4642
|
+
});
|
|
4643
|
+
const stackAt = createMemo7(() => {
|
|
4644
|
+
return props.stackColumnsAt || "tablet";
|
|
4645
|
+
});
|
|
4645
4646
|
function getTagName(column) {
|
|
4646
4647
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
4647
4648
|
}
|
|
@@ -4665,6 +4666,9 @@ function Columns(props) {
|
|
|
4665
4666
|
}) {
|
|
4666
4667
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
4667
4668
|
}
|
|
4669
|
+
const flexDir = createMemo7(() => {
|
|
4670
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
4671
|
+
});
|
|
4668
4672
|
function columnsCssVars() {
|
|
4669
4673
|
return {
|
|
4670
4674
|
"--flex-dir": flexDir(),
|
|
@@ -4754,7 +4758,7 @@ function Columns(props) {
|
|
|
4754
4758
|
}
|
|
4755
4759
|
return <>
|
|
4756
4760
|
<div
|
|
4757
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
4761
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8"}
|
|
4758
4762
|
style={columnsCssVars()}
|
|
4759
4763
|
{...{}}
|
|
4760
4764
|
>
|
|
@@ -4783,7 +4787,7 @@ function Columns(props) {
|
|
|
4783
4787
|
/></Dynamic_renderer_default>;
|
|
4784
4788
|
}}</For4>
|
|
4785
4789
|
</div>
|
|
4786
|
-
<style>{`.div-
|
|
4790
|
+
<style>{`.div-a1dad3b8 {
|
|
4787
4791
|
display: flex;
|
|
4788
4792
|
line-height: normal;
|
|
4789
4793
|
}`}</style>
|
|
@@ -7439,7 +7443,7 @@ function getPreviewContent(_searchParams) {
|
|
|
7439
7443
|
}
|
|
7440
7444
|
|
|
7441
7445
|
// src/constants/sdk-version.ts
|
|
7442
|
-
var SDK_VERSION = "2.0.
|
|
7446
|
+
var SDK_VERSION = "2.0.28";
|
|
7443
7447
|
|
|
7444
7448
|
// src/helpers/sdk-headers.ts
|
|
7445
7449
|
var getSdkHeaders = () => ({
|
package/lib/edge/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For,
|
|
2
|
+
import { createContext, useContext, Show, For, createMemo, onMount, createSignal, createEffect, on } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
5
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
@@ -4833,15 +4833,20 @@ var getColumnsClass = (id2) => {
|
|
|
4833
4833
|
|
|
4834
4834
|
// src/blocks/columns/columns.tsx
|
|
4835
4835
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
4836
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
4836
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-a1dad3b8 {
|
|
4837
4837
|
display: flex;
|
|
4838
4838
|
line-height: normal;
|
|
4839
4839
|
}`);
|
|
4840
4840
|
function Columns(props) {
|
|
4841
|
-
const
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
const
|
|
4841
|
+
const gutterSize = createMemo(() => {
|
|
4842
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
4843
|
+
});
|
|
4844
|
+
const cols = createMemo(() => {
|
|
4845
|
+
return props.columns || [];
|
|
4846
|
+
});
|
|
4847
|
+
const stackAt = createMemo(() => {
|
|
4848
|
+
return props.stackColumnsAt || "tablet";
|
|
4849
|
+
});
|
|
4845
4850
|
function getTagName(column) {
|
|
4846
4851
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
4847
4852
|
}
|
|
@@ -4865,6 +4870,9 @@ function Columns(props) {
|
|
|
4865
4870
|
}) {
|
|
4866
4871
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
4867
4872
|
}
|
|
4873
|
+
const flexDir = createMemo(() => {
|
|
4874
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
4875
|
+
});
|
|
4868
4876
|
function columnsCssVars() {
|
|
4869
4877
|
return {
|
|
4870
4878
|
"--flex-dir": flexDir(),
|
|
@@ -4954,7 +4962,7 @@ function Columns(props) {
|
|
|
4954
4962
|
const _el$ = _tmpl$3();
|
|
4955
4963
|
spread(_el$, mergeProps({
|
|
4956
4964
|
get ["class"]() {
|
|
4957
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
4965
|
+
return getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8";
|
|
4958
4966
|
},
|
|
4959
4967
|
get style() {
|
|
4960
4968
|
return columnsCssVars();
|
|
@@ -7939,7 +7947,7 @@ function getPreviewContent(_searchParams) {
|
|
|
7939
7947
|
}
|
|
7940
7948
|
|
|
7941
7949
|
// src/constants/sdk-version.ts
|
|
7942
|
-
var SDK_VERSION = "2.0.
|
|
7950
|
+
var SDK_VERSION = "2.0.28";
|
|
7943
7951
|
|
|
7944
7952
|
// src/helpers/sdk-headers.ts
|
|
7945
7953
|
var getSdkHeaders = () => ({
|
package/lib/edge/index.jsx
CHANGED
|
@@ -83,7 +83,7 @@ function Button(props) {
|
|
|
83
83
|
var button_default = Button;
|
|
84
84
|
|
|
85
85
|
// src/blocks/columns/columns.tsx
|
|
86
|
-
import { Show as Show7, For as For4,
|
|
86
|
+
import { Show as Show7, For as For4, createMemo as createMemo7 } from "solid-js";
|
|
87
87
|
|
|
88
88
|
// src/components/blocks/blocks.tsx
|
|
89
89
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -4628,14 +4628,15 @@ var getColumnsClass = (id2) => {
|
|
|
4628
4628
|
|
|
4629
4629
|
// src/blocks/columns/columns.tsx
|
|
4630
4630
|
function Columns(props) {
|
|
4631
|
-
const
|
|
4632
|
-
typeof props.space === "number" ? props.space || 0 : 20
|
|
4633
|
-
);
|
|
4634
|
-
const
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4631
|
+
const gutterSize = createMemo7(() => {
|
|
4632
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
4633
|
+
});
|
|
4634
|
+
const cols = createMemo7(() => {
|
|
4635
|
+
return props.columns || [];
|
|
4636
|
+
});
|
|
4637
|
+
const stackAt = createMemo7(() => {
|
|
4638
|
+
return props.stackColumnsAt || "tablet";
|
|
4639
|
+
});
|
|
4639
4640
|
function getTagName(column) {
|
|
4640
4641
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
4641
4642
|
}
|
|
@@ -4659,6 +4660,9 @@ function Columns(props) {
|
|
|
4659
4660
|
}) {
|
|
4660
4661
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
4661
4662
|
}
|
|
4663
|
+
const flexDir = createMemo7(() => {
|
|
4664
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
4665
|
+
});
|
|
4662
4666
|
function columnsCssVars() {
|
|
4663
4667
|
return {
|
|
4664
4668
|
"--flex-dir": flexDir(),
|
|
@@ -4748,7 +4752,7 @@ function Columns(props) {
|
|
|
4748
4752
|
}
|
|
4749
4753
|
return <>
|
|
4750
4754
|
<div
|
|
4751
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
4755
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8"}
|
|
4752
4756
|
style={columnsCssVars()}
|
|
4753
4757
|
{...{}}
|
|
4754
4758
|
>
|
|
@@ -4777,7 +4781,7 @@ function Columns(props) {
|
|
|
4777
4781
|
/></Dynamic_renderer_default>;
|
|
4778
4782
|
}}</For4>
|
|
4779
4783
|
</div>
|
|
4780
|
-
<style>{`.div-
|
|
4784
|
+
<style>{`.div-a1dad3b8 {
|
|
4781
4785
|
display: flex;
|
|
4782
4786
|
line-height: normal;
|
|
4783
4787
|
}`}</style>
|
|
@@ -7429,7 +7433,7 @@ function getPreviewContent(_searchParams) {
|
|
|
7429
7433
|
}
|
|
7430
7434
|
|
|
7431
7435
|
// src/constants/sdk-version.ts
|
|
7432
|
-
var SDK_VERSION = "2.0.
|
|
7436
|
+
var SDK_VERSION = "2.0.28";
|
|
7433
7437
|
|
|
7434
7438
|
// src/helpers/sdk-headers.ts
|
|
7435
7439
|
var getSdkHeaders = () => ({
|
package/lib/node/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For,
|
|
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
|
|
@@ -436,6 +436,8 @@ var getIvm = () => {
|
|
|
436
436
|
function setIsolateContext(options = {
|
|
437
437
|
memoryLimit: 128
|
|
438
438
|
}) {
|
|
439
|
+
if (IVM_CONTEXT)
|
|
440
|
+
return IVM_CONTEXT;
|
|
439
441
|
const ivm = getIvm();
|
|
440
442
|
const isolate = new ivm.Isolate(options);
|
|
441
443
|
const context = isolate.createContextSync();
|
|
@@ -449,10 +451,7 @@ function setIsolateContext(options = {
|
|
|
449
451
|
return context;
|
|
450
452
|
}
|
|
451
453
|
var getIsolateContext = () => {
|
|
452
|
-
|
|
453
|
-
return IVM_CONTEXT;
|
|
454
|
-
const context = setIsolateContext();
|
|
455
|
-
return context;
|
|
454
|
+
return setIsolateContext();
|
|
456
455
|
};
|
|
457
456
|
var runInNode = ({
|
|
458
457
|
code,
|
|
@@ -1826,15 +1825,20 @@ var getColumnsClass = (id) => {
|
|
|
1826
1825
|
|
|
1827
1826
|
// src/blocks/columns/columns.tsx
|
|
1828
1827
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1829
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1828
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-a1dad3b8 {
|
|
1830
1829
|
display: flex;
|
|
1831
1830
|
line-height: normal;
|
|
1832
1831
|
}`);
|
|
1833
1832
|
function Columns(props) {
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
const
|
|
1833
|
+
const gutterSize = createMemo(() => {
|
|
1834
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1835
|
+
});
|
|
1836
|
+
const cols = createMemo(() => {
|
|
1837
|
+
return props.columns || [];
|
|
1838
|
+
});
|
|
1839
|
+
const stackAt = createMemo(() => {
|
|
1840
|
+
return props.stackColumnsAt || "tablet";
|
|
1841
|
+
});
|
|
1838
1842
|
function getTagName(column) {
|
|
1839
1843
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1840
1844
|
}
|
|
@@ -1858,6 +1862,9 @@ function Columns(props) {
|
|
|
1858
1862
|
}) {
|
|
1859
1863
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1860
1864
|
}
|
|
1865
|
+
const flexDir = createMemo(() => {
|
|
1866
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1867
|
+
});
|
|
1861
1868
|
function columnsCssVars() {
|
|
1862
1869
|
return {
|
|
1863
1870
|
"--flex-dir": flexDir(),
|
|
@@ -1947,7 +1954,7 @@ function Columns(props) {
|
|
|
1947
1954
|
const _el$ = _tmpl$3();
|
|
1948
1955
|
spread(_el$, mergeProps({
|
|
1949
1956
|
get ["class"]() {
|
|
1950
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1957
|
+
return getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8";
|
|
1951
1958
|
},
|
|
1952
1959
|
get style() {
|
|
1953
1960
|
return columnsCssVars();
|
|
@@ -4936,7 +4943,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4936
4943
|
}
|
|
4937
4944
|
|
|
4938
4945
|
// src/constants/sdk-version.ts
|
|
4939
|
-
var SDK_VERSION = "2.0.
|
|
4946
|
+
var SDK_VERSION = "2.0.28";
|
|
4940
4947
|
|
|
4941
4948
|
// src/helpers/sdk-headers.ts
|
|
4942
4949
|
var getSdkHeaders = () => ({
|
package/lib/node/dev.jsx
CHANGED
|
@@ -75,7 +75,7 @@ function Button(props) {
|
|
|
75
75
|
var button_default = Button;
|
|
76
76
|
|
|
77
77
|
// src/blocks/columns/columns.tsx
|
|
78
|
-
import { Show as Show7, For as For4,
|
|
78
|
+
import { Show as Show7, For as For4, createMemo as createMemo7 } from "solid-js";
|
|
79
79
|
|
|
80
80
|
// src/components/blocks/blocks.tsx
|
|
81
81
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -431,6 +431,8 @@ var getIvm = () => {
|
|
|
431
431
|
function setIsolateContext(options = {
|
|
432
432
|
memoryLimit: 128
|
|
433
433
|
}) {
|
|
434
|
+
if (IVM_CONTEXT)
|
|
435
|
+
return IVM_CONTEXT;
|
|
434
436
|
const ivm = getIvm();
|
|
435
437
|
const isolate = new ivm.Isolate(options);
|
|
436
438
|
const context = isolate.createContextSync();
|
|
@@ -444,10 +446,7 @@ function setIsolateContext(options = {
|
|
|
444
446
|
return context;
|
|
445
447
|
}
|
|
446
448
|
var getIsolateContext = () => {
|
|
447
|
-
|
|
448
|
-
return IVM_CONTEXT;
|
|
449
|
-
const context = setIsolateContext();
|
|
450
|
-
return context;
|
|
449
|
+
return setIsolateContext();
|
|
451
450
|
};
|
|
452
451
|
var runInNode = ({
|
|
453
452
|
code,
|
|
@@ -1621,14 +1620,15 @@ var getColumnsClass = (id) => {
|
|
|
1621
1620
|
|
|
1622
1621
|
// src/blocks/columns/columns.tsx
|
|
1623
1622
|
function Columns(props) {
|
|
1624
|
-
const
|
|
1625
|
-
typeof props.space === "number" ? props.space || 0 : 20
|
|
1626
|
-
);
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1623
|
+
const gutterSize = createMemo7(() => {
|
|
1624
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1625
|
+
});
|
|
1626
|
+
const cols = createMemo7(() => {
|
|
1627
|
+
return props.columns || [];
|
|
1628
|
+
});
|
|
1629
|
+
const stackAt = createMemo7(() => {
|
|
1630
|
+
return props.stackColumnsAt || "tablet";
|
|
1631
|
+
});
|
|
1632
1632
|
function getTagName(column) {
|
|
1633
1633
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1634
1634
|
}
|
|
@@ -1652,6 +1652,9 @@ function Columns(props) {
|
|
|
1652
1652
|
}) {
|
|
1653
1653
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1654
1654
|
}
|
|
1655
|
+
const flexDir = createMemo7(() => {
|
|
1656
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1657
|
+
});
|
|
1655
1658
|
function columnsCssVars() {
|
|
1656
1659
|
return {
|
|
1657
1660
|
"--flex-dir": flexDir(),
|
|
@@ -1741,7 +1744,7 @@ function Columns(props) {
|
|
|
1741
1744
|
}
|
|
1742
1745
|
return <>
|
|
1743
1746
|
<div
|
|
1744
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1747
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8"}
|
|
1745
1748
|
style={columnsCssVars()}
|
|
1746
1749
|
{...{}}
|
|
1747
1750
|
>
|
|
@@ -1770,7 +1773,7 @@ function Columns(props) {
|
|
|
1770
1773
|
/></Dynamic_renderer_default>;
|
|
1771
1774
|
}}</For4>
|
|
1772
1775
|
</div>
|
|
1773
|
-
<style>{`.div-
|
|
1776
|
+
<style>{`.div-a1dad3b8 {
|
|
1774
1777
|
display: flex;
|
|
1775
1778
|
line-height: normal;
|
|
1776
1779
|
}`}</style>
|
|
@@ -4426,7 +4429,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4426
4429
|
}
|
|
4427
4430
|
|
|
4428
4431
|
// src/constants/sdk-version.ts
|
|
4429
|
-
var SDK_VERSION = "2.0.
|
|
4432
|
+
var SDK_VERSION = "2.0.28";
|
|
4430
4433
|
|
|
4431
4434
|
// src/helpers/sdk-headers.ts
|
|
4432
4435
|
var getSdkHeaders = () => ({
|
package/lib/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For,
|
|
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
|
|
@@ -435,6 +435,8 @@ var getIvm = () => {
|
|
|
435
435
|
function setIsolateContext(options = {
|
|
436
436
|
memoryLimit: 128
|
|
437
437
|
}) {
|
|
438
|
+
if (IVM_CONTEXT)
|
|
439
|
+
return IVM_CONTEXT;
|
|
438
440
|
const ivm = getIvm();
|
|
439
441
|
const isolate = new ivm.Isolate(options);
|
|
440
442
|
const context = isolate.createContextSync();
|
|
@@ -447,10 +449,7 @@ function setIsolateContext(options = {
|
|
|
447
449
|
return context;
|
|
448
450
|
}
|
|
449
451
|
var getIsolateContext = () => {
|
|
450
|
-
|
|
451
|
-
return IVM_CONTEXT;
|
|
452
|
-
const context = setIsolateContext();
|
|
453
|
-
return context;
|
|
452
|
+
return setIsolateContext();
|
|
454
453
|
};
|
|
455
454
|
var runInNode = ({
|
|
456
455
|
code,
|
|
@@ -1820,15 +1819,20 @@ var getColumnsClass = (id) => {
|
|
|
1820
1819
|
|
|
1821
1820
|
// src/blocks/columns/columns.tsx
|
|
1822
1821
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1823
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1822
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-a1dad3b8 {
|
|
1824
1823
|
display: flex;
|
|
1825
1824
|
line-height: normal;
|
|
1826
1825
|
}`);
|
|
1827
1826
|
function Columns(props) {
|
|
1828
|
-
const
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
const
|
|
1827
|
+
const gutterSize = createMemo(() => {
|
|
1828
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1829
|
+
});
|
|
1830
|
+
const cols = createMemo(() => {
|
|
1831
|
+
return props.columns || [];
|
|
1832
|
+
});
|
|
1833
|
+
const stackAt = createMemo(() => {
|
|
1834
|
+
return props.stackColumnsAt || "tablet";
|
|
1835
|
+
});
|
|
1832
1836
|
function getTagName(column) {
|
|
1833
1837
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1834
1838
|
}
|
|
@@ -1852,6 +1856,9 @@ function Columns(props) {
|
|
|
1852
1856
|
}) {
|
|
1853
1857
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1854
1858
|
}
|
|
1859
|
+
const flexDir = createMemo(() => {
|
|
1860
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1861
|
+
});
|
|
1855
1862
|
function columnsCssVars() {
|
|
1856
1863
|
return {
|
|
1857
1864
|
"--flex-dir": flexDir(),
|
|
@@ -1941,7 +1948,7 @@ function Columns(props) {
|
|
|
1941
1948
|
const _el$ = _tmpl$3();
|
|
1942
1949
|
spread(_el$, mergeProps({
|
|
1943
1950
|
get ["class"]() {
|
|
1944
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1951
|
+
return getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8";
|
|
1945
1952
|
},
|
|
1946
1953
|
get style() {
|
|
1947
1954
|
return columnsCssVars();
|
|
@@ -4926,7 +4933,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4926
4933
|
}
|
|
4927
4934
|
|
|
4928
4935
|
// src/constants/sdk-version.ts
|
|
4929
|
-
var SDK_VERSION = "2.0.
|
|
4936
|
+
var SDK_VERSION = "2.0.28";
|
|
4930
4937
|
|
|
4931
4938
|
// src/helpers/sdk-headers.ts
|
|
4932
4939
|
var getSdkHeaders = () => ({
|
package/lib/node/index.jsx
CHANGED
|
@@ -75,7 +75,7 @@ function Button(props) {
|
|
|
75
75
|
var button_default = Button;
|
|
76
76
|
|
|
77
77
|
// src/blocks/columns/columns.tsx
|
|
78
|
-
import { Show as Show7, For as For4,
|
|
78
|
+
import { Show as Show7, For as For4, createMemo as createMemo7 } from "solid-js";
|
|
79
79
|
|
|
80
80
|
// src/components/blocks/blocks.tsx
|
|
81
81
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -430,6 +430,8 @@ var getIvm = () => {
|
|
|
430
430
|
function setIsolateContext(options = {
|
|
431
431
|
memoryLimit: 128
|
|
432
432
|
}) {
|
|
433
|
+
if (IVM_CONTEXT)
|
|
434
|
+
return IVM_CONTEXT;
|
|
433
435
|
const ivm = getIvm();
|
|
434
436
|
const isolate = new ivm.Isolate(options);
|
|
435
437
|
const context = isolate.createContextSync();
|
|
@@ -442,10 +444,7 @@ function setIsolateContext(options = {
|
|
|
442
444
|
return context;
|
|
443
445
|
}
|
|
444
446
|
var getIsolateContext = () => {
|
|
445
|
-
|
|
446
|
-
return IVM_CONTEXT;
|
|
447
|
-
const context = setIsolateContext();
|
|
448
|
-
return context;
|
|
447
|
+
return setIsolateContext();
|
|
449
448
|
};
|
|
450
449
|
var runInNode = ({
|
|
451
450
|
code,
|
|
@@ -1615,14 +1614,15 @@ var getColumnsClass = (id) => {
|
|
|
1615
1614
|
|
|
1616
1615
|
// src/blocks/columns/columns.tsx
|
|
1617
1616
|
function Columns(props) {
|
|
1618
|
-
const
|
|
1619
|
-
typeof props.space === "number" ? props.space || 0 : 20
|
|
1620
|
-
);
|
|
1621
|
-
const
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1617
|
+
const gutterSize = createMemo7(() => {
|
|
1618
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1619
|
+
});
|
|
1620
|
+
const cols = createMemo7(() => {
|
|
1621
|
+
return props.columns || [];
|
|
1622
|
+
});
|
|
1623
|
+
const stackAt = createMemo7(() => {
|
|
1624
|
+
return props.stackColumnsAt || "tablet";
|
|
1625
|
+
});
|
|
1626
1626
|
function getTagName(column) {
|
|
1627
1627
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1628
1628
|
}
|
|
@@ -1646,6 +1646,9 @@ function Columns(props) {
|
|
|
1646
1646
|
}) {
|
|
1647
1647
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1648
1648
|
}
|
|
1649
|
+
const flexDir = createMemo7(() => {
|
|
1650
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1651
|
+
});
|
|
1649
1652
|
function columnsCssVars() {
|
|
1650
1653
|
return {
|
|
1651
1654
|
"--flex-dir": flexDir(),
|
|
@@ -1735,7 +1738,7 @@ function Columns(props) {
|
|
|
1735
1738
|
}
|
|
1736
1739
|
return <>
|
|
1737
1740
|
<div
|
|
1738
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1741
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-a1dad3b8"}
|
|
1739
1742
|
style={columnsCssVars()}
|
|
1740
1743
|
{...{}}
|
|
1741
1744
|
>
|
|
@@ -1764,7 +1767,7 @@ function Columns(props) {
|
|
|
1764
1767
|
/></Dynamic_renderer_default>;
|
|
1765
1768
|
}}</For4>
|
|
1766
1769
|
</div>
|
|
1767
|
-
<style>{`.div-
|
|
1770
|
+
<style>{`.div-a1dad3b8 {
|
|
1768
1771
|
display: flex;
|
|
1769
1772
|
line-height: normal;
|
|
1770
1773
|
}`}</style>
|
|
@@ -4416,7 +4419,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4416
4419
|
}
|
|
4417
4420
|
|
|
4418
4421
|
// src/constants/sdk-version.ts
|
|
4419
|
-
var SDK_VERSION = "2.0.
|
|
4422
|
+
var SDK_VERSION = "2.0.28";
|
|
4420
4423
|
|
|
4421
4424
|
// src/helpers/sdk-headers.ts
|
|
4422
4425
|
var getSdkHeaders = () => ({
|