@builder.io/sdk-solid 2.0.28 → 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 +23 -14
- package/lib/browser/dev.jsx +23 -14
- package/lib/browser/index.js +23 -14
- package/lib/browser/index.jsx +23 -14
- package/lib/edge/dev.js +23 -14
- package/lib/edge/dev.jsx +23 -14
- package/lib/edge/index.js +23 -14
- package/lib/edge/index.jsx +23 -14
- package/lib/node/dev.js +23 -14
- package/lib/node/dev.jsx +23 -14
- package/lib/node/index.js +23 -14
- package/lib/node/index.jsx +23 -14
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -1521,7 +1521,7 @@ function Block(props) {
|
|
|
1521
1521
|
});
|
|
1522
1522
|
}
|
|
1523
1523
|
var block_default = Block;
|
|
1524
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-
|
|
1524
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-5b6a86b6 {
|
|
1525
1525
|
display: flex;
|
|
1526
1526
|
flex-direction: column;
|
|
1527
1527
|
align-items: stretch;
|
|
@@ -1530,13 +1530,20 @@ function BlocksWrapper(props) {
|
|
|
1530
1530
|
const className = createMemo(() => {
|
|
1531
1531
|
return ["builder-blocks", !props.blocks?.length ? "no-blocks" : "", props.classNameProp].filter(Boolean).join(" ");
|
|
1532
1532
|
});
|
|
1533
|
+
const dataPath = createMemo(() => {
|
|
1534
|
+
if (!props.path) {
|
|
1535
|
+
return void 0;
|
|
1536
|
+
}
|
|
1537
|
+
const pathPrefix = "component.options.";
|
|
1538
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
1539
|
+
});
|
|
1533
1540
|
function onClick() {
|
|
1534
1541
|
if (isEditing() && !props.blocks?.length) {
|
|
1535
1542
|
window.parent?.postMessage({
|
|
1536
1543
|
type: "builder.clickEmptyBlocks",
|
|
1537
1544
|
data: {
|
|
1538
1545
|
parentElementId: props.parent,
|
|
1539
|
-
dataPath:
|
|
1546
|
+
dataPath: dataPath()
|
|
1540
1547
|
}
|
|
1541
1548
|
}, "*");
|
|
1542
1549
|
}
|
|
@@ -1547,7 +1554,7 @@ function BlocksWrapper(props) {
|
|
|
1547
1554
|
type: "builder.hoverEmptyBlocks",
|
|
1548
1555
|
data: {
|
|
1549
1556
|
parentElementId: props.parent,
|
|
1550
|
-
dataPath:
|
|
1557
|
+
dataPath: dataPath()
|
|
1551
1558
|
}
|
|
1552
1559
|
}, "*");
|
|
1553
1560
|
}
|
|
@@ -1557,14 +1564,14 @@ function BlocksWrapper(props) {
|
|
|
1557
1564
|
});
|
|
1558
1565
|
return [createComponent(Dynamic, mergeProps({
|
|
1559
1566
|
get ["class"]() {
|
|
1560
|
-
return className() + " dynamic-
|
|
1567
|
+
return className() + " dynamic-5b6a86b6";
|
|
1561
1568
|
},
|
|
1562
1569
|
ref(r$) {
|
|
1563
1570
|
const _ref$ = blocksWrapperRef;
|
|
1564
1571
|
typeof _ref$ === "function" ? _ref$(r$) : blocksWrapperRef = r$;
|
|
1565
1572
|
},
|
|
1566
1573
|
get ["builder-path"]() {
|
|
1567
|
-
return
|
|
1574
|
+
return dataPath();
|
|
1568
1575
|
},
|
|
1569
1576
|
get ["builder-parent-id"]() {
|
|
1570
1577
|
return props.parent;
|
|
@@ -1656,7 +1663,7 @@ var getColumnsClass = (id) => {
|
|
|
1656
1663
|
|
|
1657
1664
|
// src/blocks/columns/columns.tsx
|
|
1658
1665
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1659
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1666
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-2ac94efa {
|
|
1660
1667
|
display: flex;
|
|
1661
1668
|
line-height: normal;
|
|
1662
1669
|
}`);
|
|
@@ -1785,7 +1792,7 @@ function Columns(props) {
|
|
|
1785
1792
|
const _el$ = _tmpl$3();
|
|
1786
1793
|
spread(_el$, mergeProps({
|
|
1787
1794
|
get ["class"]() {
|
|
1788
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1795
|
+
return getColumnsClass(props.builderBlock?.id) + " div-2ac94efa";
|
|
1789
1796
|
},
|
|
1790
1797
|
get style() {
|
|
1791
1798
|
return columnsCssVars();
|
|
@@ -1822,7 +1829,7 @@ function Columns(props) {
|
|
|
1822
1829
|
},
|
|
1823
1830
|
get children() {
|
|
1824
1831
|
return createComponent(blocks_default, {
|
|
1825
|
-
path: `
|
|
1832
|
+
path: `columns.${index}.blocks`,
|
|
1826
1833
|
get parent() {
|
|
1827
1834
|
return props.builderBlock.id;
|
|
1828
1835
|
},
|
|
@@ -2516,9 +2523,11 @@ function Accordion(props) {
|
|
|
2516
2523
|
effect((_p$) => {
|
|
2517
2524
|
const _v$ = getAccordionTitleClassName(index), _v$2 = {
|
|
2518
2525
|
...accordionTitleStyles(),
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2526
|
+
...props.grid && {
|
|
2527
|
+
width: props.gridRowWidth,
|
|
2528
|
+
...{
|
|
2529
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
2530
|
+
}
|
|
2522
2531
|
}
|
|
2523
2532
|
};
|
|
2524
2533
|
_v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
|
|
@@ -3291,7 +3300,7 @@ function Tabs(props) {
|
|
|
3291
3300
|
get parent() {
|
|
3292
3301
|
return props.builderBlock.id;
|
|
3293
3302
|
},
|
|
3294
|
-
path: `
|
|
3303
|
+
path: `tabs.${index}.label`,
|
|
3295
3304
|
get blocks() {
|
|
3296
3305
|
return tab.label;
|
|
3297
3306
|
},
|
|
@@ -3331,7 +3340,7 @@ function Tabs(props) {
|
|
|
3331
3340
|
return props.builderBlock.id;
|
|
3332
3341
|
},
|
|
3333
3342
|
get path() {
|
|
3334
|
-
return `
|
|
3343
|
+
return `tabs.${activeTab()}.content`;
|
|
3335
3344
|
},
|
|
3336
3345
|
get blocks() {
|
|
3337
3346
|
return activeTabContent(activeTab());
|
|
@@ -4774,7 +4783,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4774
4783
|
}
|
|
4775
4784
|
|
|
4776
4785
|
// src/constants/sdk-version.ts
|
|
4777
|
-
var SDK_VERSION = "2.0.
|
|
4786
|
+
var SDK_VERSION = "2.0.29";
|
|
4778
4787
|
|
|
4779
4788
|
// src/helpers/sdk-headers.ts
|
|
4780
4789
|
var getSdkHeaders = () => ({
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -1363,6 +1363,13 @@ function BlocksWrapper(props) {
|
|
|
1363
1363
|
props.classNameProp
|
|
1364
1364
|
].filter(Boolean).join(" ");
|
|
1365
1365
|
});
|
|
1366
|
+
const dataPath = createMemo6(() => {
|
|
1367
|
+
if (!props.path) {
|
|
1368
|
+
return void 0;
|
|
1369
|
+
}
|
|
1370
|
+
const pathPrefix = "component.options.";
|
|
1371
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
1372
|
+
});
|
|
1366
1373
|
function onClick() {
|
|
1367
1374
|
if (isEditing() && !props.blocks?.length) {
|
|
1368
1375
|
window.parent?.postMessage(
|
|
@@ -1370,7 +1377,7 @@ function BlocksWrapper(props) {
|
|
|
1370
1377
|
type: "builder.clickEmptyBlocks",
|
|
1371
1378
|
data: {
|
|
1372
1379
|
parentElementId: props.parent,
|
|
1373
|
-
dataPath:
|
|
1380
|
+
dataPath: dataPath()
|
|
1374
1381
|
}
|
|
1375
1382
|
},
|
|
1376
1383
|
"*"
|
|
@@ -1384,7 +1391,7 @@ function BlocksWrapper(props) {
|
|
|
1384
1391
|
type: "builder.hoverEmptyBlocks",
|
|
1385
1392
|
data: {
|
|
1386
1393
|
parentElementId: props.parent,
|
|
1387
|
-
dataPath:
|
|
1394
|
+
dataPath: dataPath()
|
|
1388
1395
|
}
|
|
1389
1396
|
},
|
|
1390
1397
|
"*"
|
|
@@ -1396,9 +1403,9 @@ function BlocksWrapper(props) {
|
|
|
1396
1403
|
});
|
|
1397
1404
|
return <>
|
|
1398
1405
|
<Dynamic4
|
|
1399
|
-
class={className() + " dynamic-
|
|
1406
|
+
class={className() + " dynamic-5b6a86b6"}
|
|
1400
1407
|
ref={blocksWrapperRef}
|
|
1401
|
-
builder-path={
|
|
1408
|
+
builder-path={dataPath()}
|
|
1402
1409
|
builder-parent-id={props.parent}
|
|
1403
1410
|
{...{}}
|
|
1404
1411
|
style={props.styleProp}
|
|
@@ -1408,7 +1415,7 @@ function BlocksWrapper(props) {
|
|
|
1408
1415
|
{...props.BlocksWrapperProps}
|
|
1409
1416
|
component={props.BlocksWrapper}
|
|
1410
1417
|
>{props.children}</Dynamic4>
|
|
1411
|
-
<style>{`.dynamic-
|
|
1418
|
+
<style>{`.dynamic-5b6a86b6 {
|
|
1412
1419
|
display: flex;
|
|
1413
1420
|
flex-direction: column;
|
|
1414
1421
|
align-items: stretch;
|
|
@@ -1573,7 +1580,7 @@ function Columns(props) {
|
|
|
1573
1580
|
}
|
|
1574
1581
|
return <>
|
|
1575
1582
|
<div
|
|
1576
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1583
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-2ac94efa"}
|
|
1577
1584
|
style={columnsCssVars()}
|
|
1578
1585
|
{...{}}
|
|
1579
1586
|
>
|
|
@@ -1590,7 +1597,7 @@ function Columns(props) {
|
|
|
1590
1597
|
actionAttributes={{}}
|
|
1591
1598
|
attributes={getAttributes(column, index)}
|
|
1592
1599
|
><Blocks_default
|
|
1593
|
-
path={`
|
|
1600
|
+
path={`columns.${index}.blocks`}
|
|
1594
1601
|
parent={props.builderBlock.id}
|
|
1595
1602
|
styleProp={{
|
|
1596
1603
|
flexGrow: "1"
|
|
@@ -1602,7 +1609,7 @@ function Columns(props) {
|
|
|
1602
1609
|
/></Dynamic_renderer_default>;
|
|
1603
1610
|
}}</For4>
|
|
1604
1611
|
</div>
|
|
1605
|
-
<style>{`.div-
|
|
1612
|
+
<style>{`.div-2ac94efa {
|
|
1606
1613
|
display: flex;
|
|
1607
1614
|
line-height: normal;
|
|
1608
1615
|
}`}</style>
|
|
@@ -2233,9 +2240,11 @@ function Accordion(props) {
|
|
|
2233
2240
|
class={getAccordionTitleClassName(index)}
|
|
2234
2241
|
style={{
|
|
2235
2242
|
...accordionTitleStyles(),
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2243
|
+
...props.grid && {
|
|
2244
|
+
width: props.gridRowWidth,
|
|
2245
|
+
...{
|
|
2246
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
2247
|
+
}
|
|
2239
2248
|
}
|
|
2240
2249
|
}}
|
|
2241
2250
|
data-index={index}
|
|
@@ -2974,7 +2983,7 @@ function Tabs(props) {
|
|
|
2974
2983
|
onClick={(event) => onClick(index)}
|
|
2975
2984
|
><Blocks_default
|
|
2976
2985
|
parent={props.builderBlock.id}
|
|
2977
|
-
path={`
|
|
2986
|
+
path={`tabs.${index}.label`}
|
|
2978
2987
|
blocks={tab.label}
|
|
2979
2988
|
context={props.builderContext}
|
|
2980
2989
|
registeredComponents={props.builderComponents}
|
|
@@ -2983,7 +2992,7 @@ function Tabs(props) {
|
|
|
2983
2992
|
}}</For6></div>
|
|
2984
2993
|
<Show10 when={activeTabContent(activeTab())}><div><Blocks_default
|
|
2985
2994
|
parent={props.builderBlock.id}
|
|
2986
|
-
path={`
|
|
2995
|
+
path={`tabs.${activeTab()}.content`}
|
|
2987
2996
|
blocks={activeTabContent(activeTab())}
|
|
2988
2997
|
context={props.builderContext}
|
|
2989
2998
|
registeredComponents={props.builderComponents}
|
|
@@ -4258,7 +4267,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4258
4267
|
}
|
|
4259
4268
|
|
|
4260
4269
|
// src/constants/sdk-version.ts
|
|
4261
|
-
var SDK_VERSION = "2.0.
|
|
4270
|
+
var SDK_VERSION = "2.0.29";
|
|
4262
4271
|
|
|
4263
4272
|
// src/helpers/sdk-headers.ts
|
|
4264
4273
|
var getSdkHeaders = () => ({
|
package/lib/browser/index.js
CHANGED
|
@@ -1515,7 +1515,7 @@ function Block(props) {
|
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
1517
1517
|
var block_default = Block;
|
|
1518
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-
|
|
1518
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-5b6a86b6 {
|
|
1519
1519
|
display: flex;
|
|
1520
1520
|
flex-direction: column;
|
|
1521
1521
|
align-items: stretch;
|
|
@@ -1524,13 +1524,20 @@ function BlocksWrapper(props) {
|
|
|
1524
1524
|
const className = createMemo(() => {
|
|
1525
1525
|
return ["builder-blocks", !props.blocks?.length ? "no-blocks" : "", props.classNameProp].filter(Boolean).join(" ");
|
|
1526
1526
|
});
|
|
1527
|
+
const dataPath = createMemo(() => {
|
|
1528
|
+
if (!props.path) {
|
|
1529
|
+
return void 0;
|
|
1530
|
+
}
|
|
1531
|
+
const pathPrefix = "component.options.";
|
|
1532
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
1533
|
+
});
|
|
1527
1534
|
function onClick() {
|
|
1528
1535
|
if (isEditing() && !props.blocks?.length) {
|
|
1529
1536
|
window.parent?.postMessage({
|
|
1530
1537
|
type: "builder.clickEmptyBlocks",
|
|
1531
1538
|
data: {
|
|
1532
1539
|
parentElementId: props.parent,
|
|
1533
|
-
dataPath:
|
|
1540
|
+
dataPath: dataPath()
|
|
1534
1541
|
}
|
|
1535
1542
|
}, "*");
|
|
1536
1543
|
}
|
|
@@ -1541,7 +1548,7 @@ function BlocksWrapper(props) {
|
|
|
1541
1548
|
type: "builder.hoverEmptyBlocks",
|
|
1542
1549
|
data: {
|
|
1543
1550
|
parentElementId: props.parent,
|
|
1544
|
-
dataPath:
|
|
1551
|
+
dataPath: dataPath()
|
|
1545
1552
|
}
|
|
1546
1553
|
}, "*");
|
|
1547
1554
|
}
|
|
@@ -1551,14 +1558,14 @@ function BlocksWrapper(props) {
|
|
|
1551
1558
|
});
|
|
1552
1559
|
return [createComponent(Dynamic, mergeProps({
|
|
1553
1560
|
get ["class"]() {
|
|
1554
|
-
return className() + " dynamic-
|
|
1561
|
+
return className() + " dynamic-5b6a86b6";
|
|
1555
1562
|
},
|
|
1556
1563
|
ref(r$) {
|
|
1557
1564
|
const _ref$ = blocksWrapperRef;
|
|
1558
1565
|
typeof _ref$ === "function" ? _ref$(r$) : blocksWrapperRef = r$;
|
|
1559
1566
|
},
|
|
1560
1567
|
get ["builder-path"]() {
|
|
1561
|
-
return
|
|
1568
|
+
return dataPath();
|
|
1562
1569
|
},
|
|
1563
1570
|
get ["builder-parent-id"]() {
|
|
1564
1571
|
return props.parent;
|
|
@@ -1650,7 +1657,7 @@ var getColumnsClass = (id) => {
|
|
|
1650
1657
|
|
|
1651
1658
|
// src/blocks/columns/columns.tsx
|
|
1652
1659
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1653
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1660
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-2ac94efa {
|
|
1654
1661
|
display: flex;
|
|
1655
1662
|
line-height: normal;
|
|
1656
1663
|
}`);
|
|
@@ -1779,7 +1786,7 @@ function Columns(props) {
|
|
|
1779
1786
|
const _el$ = _tmpl$3();
|
|
1780
1787
|
spread(_el$, mergeProps({
|
|
1781
1788
|
get ["class"]() {
|
|
1782
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1789
|
+
return getColumnsClass(props.builderBlock?.id) + " div-2ac94efa";
|
|
1783
1790
|
},
|
|
1784
1791
|
get style() {
|
|
1785
1792
|
return columnsCssVars();
|
|
@@ -1816,7 +1823,7 @@ function Columns(props) {
|
|
|
1816
1823
|
},
|
|
1817
1824
|
get children() {
|
|
1818
1825
|
return createComponent(blocks_default, {
|
|
1819
|
-
path: `
|
|
1826
|
+
path: `columns.${index}.blocks`,
|
|
1820
1827
|
get parent() {
|
|
1821
1828
|
return props.builderBlock.id;
|
|
1822
1829
|
},
|
|
@@ -2509,9 +2516,11 @@ function Accordion(props) {
|
|
|
2509
2516
|
effect((_p$) => {
|
|
2510
2517
|
const _v$ = getAccordionTitleClassName(index), _v$2 = {
|
|
2511
2518
|
...accordionTitleStyles(),
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2519
|
+
...props.grid && {
|
|
2520
|
+
width: props.gridRowWidth,
|
|
2521
|
+
...{
|
|
2522
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
2523
|
+
}
|
|
2515
2524
|
}
|
|
2516
2525
|
};
|
|
2517
2526
|
_v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
|
|
@@ -3283,7 +3292,7 @@ function Tabs(props) {
|
|
|
3283
3292
|
get parent() {
|
|
3284
3293
|
return props.builderBlock.id;
|
|
3285
3294
|
},
|
|
3286
|
-
path: `
|
|
3295
|
+
path: `tabs.${index}.label`,
|
|
3287
3296
|
get blocks() {
|
|
3288
3297
|
return tab.label;
|
|
3289
3298
|
},
|
|
@@ -3323,7 +3332,7 @@ function Tabs(props) {
|
|
|
3323
3332
|
return props.builderBlock.id;
|
|
3324
3333
|
},
|
|
3325
3334
|
get path() {
|
|
3326
|
-
return `
|
|
3335
|
+
return `tabs.${activeTab()}.content`;
|
|
3327
3336
|
},
|
|
3328
3337
|
get blocks() {
|
|
3329
3338
|
return activeTabContent(activeTab());
|
|
@@ -4764,7 +4773,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4764
4773
|
}
|
|
4765
4774
|
|
|
4766
4775
|
// src/constants/sdk-version.ts
|
|
4767
|
-
var SDK_VERSION = "2.0.
|
|
4776
|
+
var SDK_VERSION = "2.0.29";
|
|
4768
4777
|
|
|
4769
4778
|
// src/helpers/sdk-headers.ts
|
|
4770
4779
|
var getSdkHeaders = () => ({
|
package/lib/browser/index.jsx
CHANGED
|
@@ -1357,6 +1357,13 @@ function BlocksWrapper(props) {
|
|
|
1357
1357
|
props.classNameProp
|
|
1358
1358
|
].filter(Boolean).join(" ");
|
|
1359
1359
|
});
|
|
1360
|
+
const dataPath = createMemo6(() => {
|
|
1361
|
+
if (!props.path) {
|
|
1362
|
+
return void 0;
|
|
1363
|
+
}
|
|
1364
|
+
const pathPrefix = "component.options.";
|
|
1365
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
1366
|
+
});
|
|
1360
1367
|
function onClick() {
|
|
1361
1368
|
if (isEditing() && !props.blocks?.length) {
|
|
1362
1369
|
window.parent?.postMessage(
|
|
@@ -1364,7 +1371,7 @@ function BlocksWrapper(props) {
|
|
|
1364
1371
|
type: "builder.clickEmptyBlocks",
|
|
1365
1372
|
data: {
|
|
1366
1373
|
parentElementId: props.parent,
|
|
1367
|
-
dataPath:
|
|
1374
|
+
dataPath: dataPath()
|
|
1368
1375
|
}
|
|
1369
1376
|
},
|
|
1370
1377
|
"*"
|
|
@@ -1378,7 +1385,7 @@ function BlocksWrapper(props) {
|
|
|
1378
1385
|
type: "builder.hoverEmptyBlocks",
|
|
1379
1386
|
data: {
|
|
1380
1387
|
parentElementId: props.parent,
|
|
1381
|
-
dataPath:
|
|
1388
|
+
dataPath: dataPath()
|
|
1382
1389
|
}
|
|
1383
1390
|
},
|
|
1384
1391
|
"*"
|
|
@@ -1390,9 +1397,9 @@ function BlocksWrapper(props) {
|
|
|
1390
1397
|
});
|
|
1391
1398
|
return <>
|
|
1392
1399
|
<Dynamic4
|
|
1393
|
-
class={className() + " dynamic-
|
|
1400
|
+
class={className() + " dynamic-5b6a86b6"}
|
|
1394
1401
|
ref={blocksWrapperRef}
|
|
1395
|
-
builder-path={
|
|
1402
|
+
builder-path={dataPath()}
|
|
1396
1403
|
builder-parent-id={props.parent}
|
|
1397
1404
|
{...{}}
|
|
1398
1405
|
style={props.styleProp}
|
|
@@ -1402,7 +1409,7 @@ function BlocksWrapper(props) {
|
|
|
1402
1409
|
{...props.BlocksWrapperProps}
|
|
1403
1410
|
component={props.BlocksWrapper}
|
|
1404
1411
|
>{props.children}</Dynamic4>
|
|
1405
|
-
<style>{`.dynamic-
|
|
1412
|
+
<style>{`.dynamic-5b6a86b6 {
|
|
1406
1413
|
display: flex;
|
|
1407
1414
|
flex-direction: column;
|
|
1408
1415
|
align-items: stretch;
|
|
@@ -1567,7 +1574,7 @@ function Columns(props) {
|
|
|
1567
1574
|
}
|
|
1568
1575
|
return <>
|
|
1569
1576
|
<div
|
|
1570
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1577
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-2ac94efa"}
|
|
1571
1578
|
style={columnsCssVars()}
|
|
1572
1579
|
{...{}}
|
|
1573
1580
|
>
|
|
@@ -1584,7 +1591,7 @@ function Columns(props) {
|
|
|
1584
1591
|
actionAttributes={{}}
|
|
1585
1592
|
attributes={getAttributes(column, index)}
|
|
1586
1593
|
><Blocks_default
|
|
1587
|
-
path={`
|
|
1594
|
+
path={`columns.${index}.blocks`}
|
|
1588
1595
|
parent={props.builderBlock.id}
|
|
1589
1596
|
styleProp={{
|
|
1590
1597
|
flexGrow: "1"
|
|
@@ -1596,7 +1603,7 @@ function Columns(props) {
|
|
|
1596
1603
|
/></Dynamic_renderer_default>;
|
|
1597
1604
|
}}</For4>
|
|
1598
1605
|
</div>
|
|
1599
|
-
<style>{`.div-
|
|
1606
|
+
<style>{`.div-2ac94efa {
|
|
1600
1607
|
display: flex;
|
|
1601
1608
|
line-height: normal;
|
|
1602
1609
|
}`}</style>
|
|
@@ -2226,9 +2233,11 @@ function Accordion(props) {
|
|
|
2226
2233
|
class={getAccordionTitleClassName(index)}
|
|
2227
2234
|
style={{
|
|
2228
2235
|
...accordionTitleStyles(),
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2236
|
+
...props.grid && {
|
|
2237
|
+
width: props.gridRowWidth,
|
|
2238
|
+
...{
|
|
2239
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
2240
|
+
}
|
|
2232
2241
|
}
|
|
2233
2242
|
}}
|
|
2234
2243
|
data-index={index}
|
|
@@ -2966,7 +2975,7 @@ function Tabs(props) {
|
|
|
2966
2975
|
onClick={(event) => onClick(index)}
|
|
2967
2976
|
><Blocks_default
|
|
2968
2977
|
parent={props.builderBlock.id}
|
|
2969
|
-
path={`
|
|
2978
|
+
path={`tabs.${index}.label`}
|
|
2970
2979
|
blocks={tab.label}
|
|
2971
2980
|
context={props.builderContext}
|
|
2972
2981
|
registeredComponents={props.builderComponents}
|
|
@@ -2975,7 +2984,7 @@ function Tabs(props) {
|
|
|
2975
2984
|
}}</For6></div>
|
|
2976
2985
|
<Show10 when={activeTabContent(activeTab())}><div><Blocks_default
|
|
2977
2986
|
parent={props.builderBlock.id}
|
|
2978
|
-
path={`
|
|
2987
|
+
path={`tabs.${activeTab()}.content`}
|
|
2979
2988
|
blocks={activeTabContent(activeTab())}
|
|
2980
2989
|
context={props.builderContext}
|
|
2981
2990
|
registeredComponents={props.builderComponents}
|
|
@@ -4248,7 +4257,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4248
4257
|
}
|
|
4249
4258
|
|
|
4250
4259
|
// src/constants/sdk-version.ts
|
|
4251
|
-
var SDK_VERSION = "2.0.
|
|
4260
|
+
var SDK_VERSION = "2.0.29";
|
|
4252
4261
|
|
|
4253
4262
|
// src/helpers/sdk-headers.ts
|
|
4254
4263
|
var getSdkHeaders = () => ({
|
package/lib/edge/dev.js
CHANGED
|
@@ -4704,7 +4704,7 @@ function Block(props) {
|
|
|
4704
4704
|
});
|
|
4705
4705
|
}
|
|
4706
4706
|
var block_default = Block;
|
|
4707
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-
|
|
4707
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-5b6a86b6 {
|
|
4708
4708
|
display: flex;
|
|
4709
4709
|
flex-direction: column;
|
|
4710
4710
|
align-items: stretch;
|
|
@@ -4713,13 +4713,20 @@ function BlocksWrapper(props) {
|
|
|
4713
4713
|
const className = createMemo(() => {
|
|
4714
4714
|
return ["builder-blocks", !props.blocks?.length ? "no-blocks" : "", props.classNameProp].filter(Boolean).join(" ");
|
|
4715
4715
|
});
|
|
4716
|
+
const dataPath = createMemo(() => {
|
|
4717
|
+
if (!props.path) {
|
|
4718
|
+
return void 0;
|
|
4719
|
+
}
|
|
4720
|
+
const pathPrefix = "component.options.";
|
|
4721
|
+
return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
|
|
4722
|
+
});
|
|
4716
4723
|
function onClick() {
|
|
4717
4724
|
if (isEditing() && !props.blocks?.length) {
|
|
4718
4725
|
window.parent?.postMessage({
|
|
4719
4726
|
type: "builder.clickEmptyBlocks",
|
|
4720
4727
|
data: {
|
|
4721
4728
|
parentElementId: props.parent,
|
|
4722
|
-
dataPath:
|
|
4729
|
+
dataPath: dataPath()
|
|
4723
4730
|
}
|
|
4724
4731
|
}, "*");
|
|
4725
4732
|
}
|
|
@@ -4730,7 +4737,7 @@ function BlocksWrapper(props) {
|
|
|
4730
4737
|
type: "builder.hoverEmptyBlocks",
|
|
4731
4738
|
data: {
|
|
4732
4739
|
parentElementId: props.parent,
|
|
4733
|
-
dataPath:
|
|
4740
|
+
dataPath: dataPath()
|
|
4734
4741
|
}
|
|
4735
4742
|
}, "*");
|
|
4736
4743
|
}
|
|
@@ -4740,14 +4747,14 @@ function BlocksWrapper(props) {
|
|
|
4740
4747
|
});
|
|
4741
4748
|
return [createComponent(Dynamic, mergeProps({
|
|
4742
4749
|
get ["class"]() {
|
|
4743
|
-
return className() + " dynamic-
|
|
4750
|
+
return className() + " dynamic-5b6a86b6";
|
|
4744
4751
|
},
|
|
4745
4752
|
ref(r$) {
|
|
4746
4753
|
const _ref$ = blocksWrapperRef;
|
|
4747
4754
|
typeof _ref$ === "function" ? _ref$(r$) : blocksWrapperRef = r$;
|
|
4748
4755
|
},
|
|
4749
4756
|
get ["builder-path"]() {
|
|
4750
|
-
return
|
|
4757
|
+
return dataPath();
|
|
4751
4758
|
},
|
|
4752
4759
|
get ["builder-parent-id"]() {
|
|
4753
4760
|
return props.parent;
|
|
@@ -4839,7 +4846,7 @@ var getColumnsClass = (id2) => {
|
|
|
4839
4846
|
|
|
4840
4847
|
// src/blocks/columns/columns.tsx
|
|
4841
4848
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
4842
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
4849
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-2ac94efa {
|
|
4843
4850
|
display: flex;
|
|
4844
4851
|
line-height: normal;
|
|
4845
4852
|
}`);
|
|
@@ -4968,7 +4975,7 @@ function Columns(props) {
|
|
|
4968
4975
|
const _el$ = _tmpl$3();
|
|
4969
4976
|
spread(_el$, mergeProps({
|
|
4970
4977
|
get ["class"]() {
|
|
4971
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
4978
|
+
return getColumnsClass(props.builderBlock?.id) + " div-2ac94efa";
|
|
4972
4979
|
},
|
|
4973
4980
|
get style() {
|
|
4974
4981
|
return columnsCssVars();
|
|
@@ -5005,7 +5012,7 @@ function Columns(props) {
|
|
|
5005
5012
|
},
|
|
5006
5013
|
get children() {
|
|
5007
5014
|
return createComponent(blocks_default, {
|
|
5008
|
-
path: `
|
|
5015
|
+
path: `columns.${index}.blocks`,
|
|
5009
5016
|
get parent() {
|
|
5010
5017
|
return props.builderBlock.id;
|
|
5011
5018
|
},
|
|
@@ -5699,9 +5706,11 @@ function Accordion(props) {
|
|
|
5699
5706
|
effect((_p$) => {
|
|
5700
5707
|
const _v$ = getAccordionTitleClassName(index), _v$2 = {
|
|
5701
5708
|
...accordionTitleStyles(),
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5709
|
+
...props.grid && {
|
|
5710
|
+
width: props.gridRowWidth,
|
|
5711
|
+
...{
|
|
5712
|
+
order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
|
|
5713
|
+
}
|
|
5705
5714
|
}
|
|
5706
5715
|
};
|
|
5707
5716
|
_v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
|
|
@@ -6474,7 +6483,7 @@ function Tabs(props) {
|
|
|
6474
6483
|
get parent() {
|
|
6475
6484
|
return props.builderBlock.id;
|
|
6476
6485
|
},
|
|
6477
|
-
path: `
|
|
6486
|
+
path: `tabs.${index}.label`,
|
|
6478
6487
|
get blocks() {
|
|
6479
6488
|
return tab.label;
|
|
6480
6489
|
},
|
|
@@ -6514,7 +6523,7 @@ function Tabs(props) {
|
|
|
6514
6523
|
return props.builderBlock.id;
|
|
6515
6524
|
},
|
|
6516
6525
|
get path() {
|
|
6517
|
-
return `
|
|
6526
|
+
return `tabs.${activeTab()}.content`;
|
|
6518
6527
|
},
|
|
6519
6528
|
get blocks() {
|
|
6520
6529
|
return activeTabContent(activeTab());
|
|
@@ -7957,7 +7966,7 @@ function getPreviewContent(_searchParams) {
|
|
|
7957
7966
|
}
|
|
7958
7967
|
|
|
7959
7968
|
// src/constants/sdk-version.ts
|
|
7960
|
-
var SDK_VERSION = "2.0.
|
|
7969
|
+
var SDK_VERSION = "2.0.29";
|
|
7961
7970
|
|
|
7962
7971
|
// src/helpers/sdk-headers.ts
|
|
7963
7972
|
var getSdkHeaders = () => ({
|