@builder.io/sdk-solid 2.0.26 → 2.0.29
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 +36 -19
- package/lib/browser/dev.jsx +36 -23
- package/lib/browser/index.js +36 -19
- package/lib/browser/index.jsx +36 -23
- package/lib/edge/dev.js +36 -19
- package/lib/edge/dev.jsx +36 -23
- package/lib/edge/index.js +36 -19
- package/lib/edge/index.jsx +36 -23
- package/lib/node/dev.js +39 -23
- package/lib/node/dev.jsx +39 -27
- package/lib/node/index.js +39 -23
- package/lib/node/index.jsx +39 -27
- package/package.json +1 -1
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,
|
|
@@ -1691,7 +1690,7 @@ function Block(props) {
|
|
|
1691
1690
|
});
|
|
1692
1691
|
}
|
|
1693
1692
|
var block_default = Block;
|
|
1694
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-
|
|
1693
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-5b6a86b6 {
|
|
1695
1694
|
display: flex;
|
|
1696
1695
|
flex-direction: column;
|
|
1697
1696
|
align-items: stretch;
|
|
@@ -1700,13 +1699,20 @@ function BlocksWrapper(props) {
|
|
|
1700
1699
|
const className = createMemo(() => {
|
|
1701
1700
|
return ["builder-blocks", !props.blocks?.length ? "no-blocks" : "", props.classNameProp].filter(Boolean).join(" ");
|
|
1702
1701
|
});
|
|
1702
|
+
const dataPath = createMemo(() => {
|
|
1703
|
+
if (!props.path) {
|
|
1704
|
+
return void 0;
|
|
1705
|
+
}
|
|
1706
|
+
const pathPrefix = "component.options.";
|
|
1707
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
1708
|
+
});
|
|
1703
1709
|
function onClick() {
|
|
1704
1710
|
if (isEditing() && !props.blocks?.length) {
|
|
1705
1711
|
window.parent?.postMessage({
|
|
1706
1712
|
type: "builder.clickEmptyBlocks",
|
|
1707
1713
|
data: {
|
|
1708
1714
|
parentElementId: props.parent,
|
|
1709
|
-
dataPath:
|
|
1715
|
+
dataPath: dataPath()
|
|
1710
1716
|
}
|
|
1711
1717
|
}, "*");
|
|
1712
1718
|
}
|
|
@@ -1717,7 +1723,7 @@ function BlocksWrapper(props) {
|
|
|
1717
1723
|
type: "builder.hoverEmptyBlocks",
|
|
1718
1724
|
data: {
|
|
1719
1725
|
parentElementId: props.parent,
|
|
1720
|
-
dataPath:
|
|
1726
|
+
dataPath: dataPath()
|
|
1721
1727
|
}
|
|
1722
1728
|
}, "*");
|
|
1723
1729
|
}
|
|
@@ -1727,14 +1733,14 @@ function BlocksWrapper(props) {
|
|
|
1727
1733
|
});
|
|
1728
1734
|
return [createComponent(Dynamic, mergeProps({
|
|
1729
1735
|
get ["class"]() {
|
|
1730
|
-
return className() + " dynamic-
|
|
1736
|
+
return className() + " dynamic-5b6a86b6";
|
|
1731
1737
|
},
|
|
1732
1738
|
ref(r$) {
|
|
1733
1739
|
const _ref$ = blocksWrapperRef;
|
|
1734
1740
|
typeof _ref$ === "function" ? _ref$(r$) : blocksWrapperRef = r$;
|
|
1735
1741
|
},
|
|
1736
1742
|
get ["builder-path"]() {
|
|
1737
|
-
return
|
|
1743
|
+
return dataPath();
|
|
1738
1744
|
},
|
|
1739
1745
|
get ["builder-parent-id"]() {
|
|
1740
1746
|
return props.parent;
|
|
@@ -1826,15 +1832,20 @@ var getColumnsClass = (id) => {
|
|
|
1826
1832
|
|
|
1827
1833
|
// src/blocks/columns/columns.tsx
|
|
1828
1834
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1829
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1835
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-2ac94efa {
|
|
1830
1836
|
display: flex;
|
|
1831
1837
|
line-height: normal;
|
|
1832
1838
|
}`);
|
|
1833
1839
|
function Columns(props) {
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
const
|
|
1840
|
+
const gutterSize = createMemo(() => {
|
|
1841
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1842
|
+
});
|
|
1843
|
+
const cols = createMemo(() => {
|
|
1844
|
+
return props.columns || [];
|
|
1845
|
+
});
|
|
1846
|
+
const stackAt = createMemo(() => {
|
|
1847
|
+
return props.stackColumnsAt || "tablet";
|
|
1848
|
+
});
|
|
1838
1849
|
function getTagName(column) {
|
|
1839
1850
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1840
1851
|
}
|
|
@@ -1858,6 +1869,9 @@ function Columns(props) {
|
|
|
1858
1869
|
}) {
|
|
1859
1870
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1860
1871
|
}
|
|
1872
|
+
const flexDir = createMemo(() => {
|
|
1873
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1874
|
+
});
|
|
1861
1875
|
function columnsCssVars() {
|
|
1862
1876
|
return {
|
|
1863
1877
|
"--flex-dir": flexDir(),
|
|
@@ -1947,7 +1961,7 @@ function Columns(props) {
|
|
|
1947
1961
|
const _el$ = _tmpl$3();
|
|
1948
1962
|
spread(_el$, mergeProps({
|
|
1949
1963
|
get ["class"]() {
|
|
1950
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1964
|
+
return getColumnsClass(props.builderBlock?.id) + " div-2ac94efa";
|
|
1951
1965
|
},
|
|
1952
1966
|
get style() {
|
|
1953
1967
|
return columnsCssVars();
|
|
@@ -1984,7 +1998,7 @@ function Columns(props) {
|
|
|
1984
1998
|
},
|
|
1985
1999
|
get children() {
|
|
1986
2000
|
return createComponent(blocks_default, {
|
|
1987
|
-
path: `
|
|
2001
|
+
path: `columns.${index}.blocks`,
|
|
1988
2002
|
get parent() {
|
|
1989
2003
|
return props.builderBlock.id;
|
|
1990
2004
|
},
|
|
@@ -2678,9 +2692,11 @@ function Accordion(props) {
|
|
|
2678
2692
|
effect((_p$) => {
|
|
2679
2693
|
const _v$ = getAccordionTitleClassName(index), _v$2 = {
|
|
2680
2694
|
...accordionTitleStyles(),
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2695
|
+
...props.grid && {
|
|
2696
|
+
width: props.gridRowWidth,
|
|
2697
|
+
...{
|
|
2698
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
2699
|
+
}
|
|
2684
2700
|
}
|
|
2685
2701
|
};
|
|
2686
2702
|
_v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
|
|
@@ -3453,7 +3469,7 @@ function Tabs(props) {
|
|
|
3453
3469
|
get parent() {
|
|
3454
3470
|
return props.builderBlock.id;
|
|
3455
3471
|
},
|
|
3456
|
-
path: `
|
|
3472
|
+
path: `tabs.${index}.label`,
|
|
3457
3473
|
get blocks() {
|
|
3458
3474
|
return tab.label;
|
|
3459
3475
|
},
|
|
@@ -3493,7 +3509,7 @@ function Tabs(props) {
|
|
|
3493
3509
|
return props.builderBlock.id;
|
|
3494
3510
|
},
|
|
3495
3511
|
get path() {
|
|
3496
|
-
return `
|
|
3512
|
+
return `tabs.${activeTab()}.content`;
|
|
3497
3513
|
},
|
|
3498
3514
|
get blocks() {
|
|
3499
3515
|
return activeTabContent(activeTab());
|
|
@@ -4936,7 +4952,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4936
4952
|
}
|
|
4937
4953
|
|
|
4938
4954
|
// src/constants/sdk-version.ts
|
|
4939
|
-
var SDK_VERSION = "2.0.
|
|
4955
|
+
var SDK_VERSION = "2.0.29";
|
|
4940
4956
|
|
|
4941
4957
|
// src/helpers/sdk-headers.ts
|
|
4942
4958
|
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,
|
|
@@ -1535,6 +1534,13 @@ function BlocksWrapper(props) {
|
|
|
1535
1534
|
props.classNameProp
|
|
1536
1535
|
].filter(Boolean).join(" ");
|
|
1537
1536
|
});
|
|
1537
|
+
const dataPath = createMemo6(() => {
|
|
1538
|
+
if (!props.path) {
|
|
1539
|
+
return void 0;
|
|
1540
|
+
}
|
|
1541
|
+
const pathPrefix = "component.options.";
|
|
1542
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
1543
|
+
});
|
|
1538
1544
|
function onClick() {
|
|
1539
1545
|
if (isEditing() && !props.blocks?.length) {
|
|
1540
1546
|
window.parent?.postMessage(
|
|
@@ -1542,7 +1548,7 @@ function BlocksWrapper(props) {
|
|
|
1542
1548
|
type: "builder.clickEmptyBlocks",
|
|
1543
1549
|
data: {
|
|
1544
1550
|
parentElementId: props.parent,
|
|
1545
|
-
dataPath:
|
|
1551
|
+
dataPath: dataPath()
|
|
1546
1552
|
}
|
|
1547
1553
|
},
|
|
1548
1554
|
"*"
|
|
@@ -1556,7 +1562,7 @@ function BlocksWrapper(props) {
|
|
|
1556
1562
|
type: "builder.hoverEmptyBlocks",
|
|
1557
1563
|
data: {
|
|
1558
1564
|
parentElementId: props.parent,
|
|
1559
|
-
dataPath:
|
|
1565
|
+
dataPath: dataPath()
|
|
1560
1566
|
}
|
|
1561
1567
|
},
|
|
1562
1568
|
"*"
|
|
@@ -1568,9 +1574,9 @@ function BlocksWrapper(props) {
|
|
|
1568
1574
|
});
|
|
1569
1575
|
return <>
|
|
1570
1576
|
<Dynamic4
|
|
1571
|
-
class={className() + " dynamic-
|
|
1577
|
+
class={className() + " dynamic-5b6a86b6"}
|
|
1572
1578
|
ref={blocksWrapperRef}
|
|
1573
|
-
builder-path={
|
|
1579
|
+
builder-path={dataPath()}
|
|
1574
1580
|
builder-parent-id={props.parent}
|
|
1575
1581
|
{...{}}
|
|
1576
1582
|
style={props.styleProp}
|
|
@@ -1580,7 +1586,7 @@ function BlocksWrapper(props) {
|
|
|
1580
1586
|
{...props.BlocksWrapperProps}
|
|
1581
1587
|
component={props.BlocksWrapper}
|
|
1582
1588
|
>{props.children}</Dynamic4>
|
|
1583
|
-
<style>{`.dynamic-
|
|
1589
|
+
<style>{`.dynamic-5b6a86b6 {
|
|
1584
1590
|
display: flex;
|
|
1585
1591
|
flex-direction: column;
|
|
1586
1592
|
align-items: stretch;
|
|
@@ -1621,14 +1627,15 @@ var getColumnsClass = (id) => {
|
|
|
1621
1627
|
|
|
1622
1628
|
// src/blocks/columns/columns.tsx
|
|
1623
1629
|
function Columns(props) {
|
|
1624
|
-
const
|
|
1625
|
-
typeof props.space === "number" ? props.space || 0 : 20
|
|
1626
|
-
);
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1630
|
+
const gutterSize = createMemo7(() => {
|
|
1631
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1632
|
+
});
|
|
1633
|
+
const cols = createMemo7(() => {
|
|
1634
|
+
return props.columns || [];
|
|
1635
|
+
});
|
|
1636
|
+
const stackAt = createMemo7(() => {
|
|
1637
|
+
return props.stackColumnsAt || "tablet";
|
|
1638
|
+
});
|
|
1632
1639
|
function getTagName(column) {
|
|
1633
1640
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1634
1641
|
}
|
|
@@ -1652,6 +1659,9 @@ function Columns(props) {
|
|
|
1652
1659
|
}) {
|
|
1653
1660
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1654
1661
|
}
|
|
1662
|
+
const flexDir = createMemo7(() => {
|
|
1663
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1664
|
+
});
|
|
1655
1665
|
function columnsCssVars() {
|
|
1656
1666
|
return {
|
|
1657
1667
|
"--flex-dir": flexDir(),
|
|
@@ -1741,7 +1751,7 @@ function Columns(props) {
|
|
|
1741
1751
|
}
|
|
1742
1752
|
return <>
|
|
1743
1753
|
<div
|
|
1744
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1754
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-2ac94efa"}
|
|
1745
1755
|
style={columnsCssVars()}
|
|
1746
1756
|
{...{}}
|
|
1747
1757
|
>
|
|
@@ -1758,7 +1768,7 @@ function Columns(props) {
|
|
|
1758
1768
|
actionAttributes={{}}
|
|
1759
1769
|
attributes={getAttributes(column, index)}
|
|
1760
1770
|
><Blocks_default
|
|
1761
|
-
path={`
|
|
1771
|
+
path={`columns.${index}.blocks`}
|
|
1762
1772
|
parent={props.builderBlock.id}
|
|
1763
1773
|
styleProp={{
|
|
1764
1774
|
flexGrow: "1"
|
|
@@ -1770,7 +1780,7 @@ function Columns(props) {
|
|
|
1770
1780
|
/></Dynamic_renderer_default>;
|
|
1771
1781
|
}}</For4>
|
|
1772
1782
|
</div>
|
|
1773
|
-
<style>{`.div-
|
|
1783
|
+
<style>{`.div-2ac94efa {
|
|
1774
1784
|
display: flex;
|
|
1775
1785
|
line-height: normal;
|
|
1776
1786
|
}`}</style>
|
|
@@ -2401,9 +2411,11 @@ function Accordion(props) {
|
|
|
2401
2411
|
class={getAccordionTitleClassName(index)}
|
|
2402
2412
|
style={{
|
|
2403
2413
|
...accordionTitleStyles(),
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2414
|
+
...props.grid && {
|
|
2415
|
+
width: props.gridRowWidth,
|
|
2416
|
+
...{
|
|
2417
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
2418
|
+
}
|
|
2407
2419
|
}
|
|
2408
2420
|
}}
|
|
2409
2421
|
data-index={index}
|
|
@@ -3142,7 +3154,7 @@ function Tabs(props) {
|
|
|
3142
3154
|
onClick={(event) => onClick(index)}
|
|
3143
3155
|
><Blocks_default
|
|
3144
3156
|
parent={props.builderBlock.id}
|
|
3145
|
-
path={`
|
|
3157
|
+
path={`tabs.${index}.label`}
|
|
3146
3158
|
blocks={tab.label}
|
|
3147
3159
|
context={props.builderContext}
|
|
3148
3160
|
registeredComponents={props.builderComponents}
|
|
@@ -3151,7 +3163,7 @@ function Tabs(props) {
|
|
|
3151
3163
|
}}</For6></div>
|
|
3152
3164
|
<Show10 when={activeTabContent(activeTab())}><div><Blocks_default
|
|
3153
3165
|
parent={props.builderBlock.id}
|
|
3154
|
-
path={`
|
|
3166
|
+
path={`tabs.${activeTab()}.content`}
|
|
3155
3167
|
blocks={activeTabContent(activeTab())}
|
|
3156
3168
|
context={props.builderContext}
|
|
3157
3169
|
registeredComponents={props.builderComponents}
|
|
@@ -4426,7 +4438,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4426
4438
|
}
|
|
4427
4439
|
|
|
4428
4440
|
// src/constants/sdk-version.ts
|
|
4429
|
-
var SDK_VERSION = "2.0.
|
|
4441
|
+
var SDK_VERSION = "2.0.29";
|
|
4430
4442
|
|
|
4431
4443
|
// src/helpers/sdk-headers.ts
|
|
4432
4444
|
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,
|
|
@@ -1685,7 +1684,7 @@ function Block(props) {
|
|
|
1685
1684
|
});
|
|
1686
1685
|
}
|
|
1687
1686
|
var block_default = Block;
|
|
1688
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-
|
|
1687
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-5b6a86b6 {
|
|
1689
1688
|
display: flex;
|
|
1690
1689
|
flex-direction: column;
|
|
1691
1690
|
align-items: stretch;
|
|
@@ -1694,13 +1693,20 @@ function BlocksWrapper(props) {
|
|
|
1694
1693
|
const className = createMemo(() => {
|
|
1695
1694
|
return ["builder-blocks", !props.blocks?.length ? "no-blocks" : "", props.classNameProp].filter(Boolean).join(" ");
|
|
1696
1695
|
});
|
|
1696
|
+
const dataPath = createMemo(() => {
|
|
1697
|
+
if (!props.path) {
|
|
1698
|
+
return void 0;
|
|
1699
|
+
}
|
|
1700
|
+
const pathPrefix = "component.options.";
|
|
1701
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
1702
|
+
});
|
|
1697
1703
|
function onClick() {
|
|
1698
1704
|
if (isEditing() && !props.blocks?.length) {
|
|
1699
1705
|
window.parent?.postMessage({
|
|
1700
1706
|
type: "builder.clickEmptyBlocks",
|
|
1701
1707
|
data: {
|
|
1702
1708
|
parentElementId: props.parent,
|
|
1703
|
-
dataPath:
|
|
1709
|
+
dataPath: dataPath()
|
|
1704
1710
|
}
|
|
1705
1711
|
}, "*");
|
|
1706
1712
|
}
|
|
@@ -1711,7 +1717,7 @@ function BlocksWrapper(props) {
|
|
|
1711
1717
|
type: "builder.hoverEmptyBlocks",
|
|
1712
1718
|
data: {
|
|
1713
1719
|
parentElementId: props.parent,
|
|
1714
|
-
dataPath:
|
|
1720
|
+
dataPath: dataPath()
|
|
1715
1721
|
}
|
|
1716
1722
|
}, "*");
|
|
1717
1723
|
}
|
|
@@ -1721,14 +1727,14 @@ function BlocksWrapper(props) {
|
|
|
1721
1727
|
});
|
|
1722
1728
|
return [createComponent(Dynamic, mergeProps({
|
|
1723
1729
|
get ["class"]() {
|
|
1724
|
-
return className() + " dynamic-
|
|
1730
|
+
return className() + " dynamic-5b6a86b6";
|
|
1725
1731
|
},
|
|
1726
1732
|
ref(r$) {
|
|
1727
1733
|
const _ref$ = blocksWrapperRef;
|
|
1728
1734
|
typeof _ref$ === "function" ? _ref$(r$) : blocksWrapperRef = r$;
|
|
1729
1735
|
},
|
|
1730
1736
|
get ["builder-path"]() {
|
|
1731
|
-
return
|
|
1737
|
+
return dataPath();
|
|
1732
1738
|
},
|
|
1733
1739
|
get ["builder-parent-id"]() {
|
|
1734
1740
|
return props.parent;
|
|
@@ -1820,15 +1826,20 @@ var getColumnsClass = (id) => {
|
|
|
1820
1826
|
|
|
1821
1827
|
// src/blocks/columns/columns.tsx
|
|
1822
1828
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1823
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1829
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-2ac94efa {
|
|
1824
1830
|
display: flex;
|
|
1825
1831
|
line-height: normal;
|
|
1826
1832
|
}`);
|
|
1827
1833
|
function Columns(props) {
|
|
1828
|
-
const
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
const
|
|
1834
|
+
const gutterSize = createMemo(() => {
|
|
1835
|
+
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
1836
|
+
});
|
|
1837
|
+
const cols = createMemo(() => {
|
|
1838
|
+
return props.columns || [];
|
|
1839
|
+
});
|
|
1840
|
+
const stackAt = createMemo(() => {
|
|
1841
|
+
return props.stackColumnsAt || "tablet";
|
|
1842
|
+
});
|
|
1832
1843
|
function getTagName(column) {
|
|
1833
1844
|
return column.link ? props.builderLinkComponent || "a" : "div";
|
|
1834
1845
|
}
|
|
@@ -1852,6 +1863,9 @@ function Columns(props) {
|
|
|
1852
1863
|
}) {
|
|
1853
1864
|
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
1854
1865
|
}
|
|
1866
|
+
const flexDir = createMemo(() => {
|
|
1867
|
+
return props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1868
|
+
});
|
|
1855
1869
|
function columnsCssVars() {
|
|
1856
1870
|
return {
|
|
1857
1871
|
"--flex-dir": flexDir(),
|
|
@@ -1941,7 +1955,7 @@ function Columns(props) {
|
|
|
1941
1955
|
const _el$ = _tmpl$3();
|
|
1942
1956
|
spread(_el$, mergeProps({
|
|
1943
1957
|
get ["class"]() {
|
|
1944
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1958
|
+
return getColumnsClass(props.builderBlock?.id) + " div-2ac94efa";
|
|
1945
1959
|
},
|
|
1946
1960
|
get style() {
|
|
1947
1961
|
return columnsCssVars();
|
|
@@ -1978,7 +1992,7 @@ function Columns(props) {
|
|
|
1978
1992
|
},
|
|
1979
1993
|
get children() {
|
|
1980
1994
|
return createComponent(blocks_default, {
|
|
1981
|
-
path: `
|
|
1995
|
+
path: `columns.${index}.blocks`,
|
|
1982
1996
|
get parent() {
|
|
1983
1997
|
return props.builderBlock.id;
|
|
1984
1998
|
},
|
|
@@ -2671,9 +2685,11 @@ function Accordion(props) {
|
|
|
2671
2685
|
effect((_p$) => {
|
|
2672
2686
|
const _v$ = getAccordionTitleClassName(index), _v$2 = {
|
|
2673
2687
|
...accordionTitleStyles(),
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2688
|
+
...props.grid && {
|
|
2689
|
+
width: props.gridRowWidth,
|
|
2690
|
+
...{
|
|
2691
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
2692
|
+
}
|
|
2677
2693
|
}
|
|
2678
2694
|
};
|
|
2679
2695
|
_v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
|
|
@@ -3445,7 +3461,7 @@ function Tabs(props) {
|
|
|
3445
3461
|
get parent() {
|
|
3446
3462
|
return props.builderBlock.id;
|
|
3447
3463
|
},
|
|
3448
|
-
path: `
|
|
3464
|
+
path: `tabs.${index}.label`,
|
|
3449
3465
|
get blocks() {
|
|
3450
3466
|
return tab.label;
|
|
3451
3467
|
},
|
|
@@ -3485,7 +3501,7 @@ function Tabs(props) {
|
|
|
3485
3501
|
return props.builderBlock.id;
|
|
3486
3502
|
},
|
|
3487
3503
|
get path() {
|
|
3488
|
-
return `
|
|
3504
|
+
return `tabs.${activeTab()}.content`;
|
|
3489
3505
|
},
|
|
3490
3506
|
get blocks() {
|
|
3491
3507
|
return activeTabContent(activeTab());
|
|
@@ -4926,7 +4942,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4926
4942
|
}
|
|
4927
4943
|
|
|
4928
4944
|
// src/constants/sdk-version.ts
|
|
4929
|
-
var SDK_VERSION = "2.0.
|
|
4945
|
+
var SDK_VERSION = "2.0.29";
|
|
4930
4946
|
|
|
4931
4947
|
// src/helpers/sdk-headers.ts
|
|
4932
4948
|
var getSdkHeaders = () => ({
|