@saltcorn/builder 1.1.1-beta.5 → 1.1.1-beta.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/builder",
|
|
3
|
-
"version": "1.1.1-beta.
|
|
3
|
+
"version": "1.1.1-beta.7",
|
|
4
4
|
"description": "Drag and drop view builder for Saltcorn, open-source no-code platform",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"homepage": "https://saltcorn.com",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@babel/preset-react": "7.24.7",
|
|
21
21
|
"@craftjs/core": "0.1.0-beta.20",
|
|
22
22
|
"@craftjs/utils": "0.1.0-beta.20",
|
|
23
|
-
"@saltcorn/common-code": "1.1.1-beta.
|
|
23
|
+
"@saltcorn/common-code": "1.1.1-beta.7",
|
|
24
24
|
"saltcorn-craft-layers-noeye": "0.1.0-beta.22",
|
|
25
25
|
"@fonticonpicker/react-fonticonpicker": "1.2.0",
|
|
26
26
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
@@ -98,7 +98,7 @@ const layoutToNodes = (
|
|
|
98
98
|
actions,
|
|
99
99
|
parent = "ROOT",
|
|
100
100
|
options,
|
|
101
|
-
index =
|
|
101
|
+
index = false
|
|
102
102
|
) => {
|
|
103
103
|
//console.log("layoutToNodes", JSON.stringify(layout));
|
|
104
104
|
/**
|
|
@@ -371,7 +371,8 @@ const layoutToNodes = (
|
|
|
371
371
|
* @param {object} parent
|
|
372
372
|
* @returns {void}
|
|
373
373
|
*/
|
|
374
|
-
function go(segment, parent,
|
|
374
|
+
function go(segment, parent, ix0) {
|
|
375
|
+
const ix = typeof ix0 === "number" ? ix0 : undefined;
|
|
375
376
|
if (!segment) return;
|
|
376
377
|
if (segment.above) {
|
|
377
378
|
segment.above.forEach((child) => {
|