@saltcorn/builder 1.0.0-rc.2 → 1.0.0-rc.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/builder",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
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.0.0-rc.
|
|
23
|
+
"@saltcorn/common-code": "1.0.0-rc.5",
|
|
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",
|
|
@@ -118,7 +118,7 @@ const Container = ({
|
|
|
118
118
|
htmlElement,
|
|
119
119
|
{
|
|
120
120
|
ref: (dom) => connect(drag(dom)),
|
|
121
|
-
className: `${customClass || ""}
|
|
121
|
+
className: `${customClass || ""} kontainer canvas text-${hAlign} ${
|
|
122
122
|
vAlign === "middle" ? "d-flex align-items-center" : ""
|
|
123
123
|
} ${
|
|
124
124
|
vAlign === "middle" && hAlign === "center" && "justify-content-center"
|
|
@@ -799,7 +799,7 @@ const ConfigField = ({
|
|
|
799
799
|
//pick first value to mimic html form behaviour
|
|
800
800
|
const options = getOptions();
|
|
801
801
|
let o;
|
|
802
|
-
if ((o = options[0]))
|
|
802
|
+
if (options && (o = options[0]))
|
|
803
803
|
useEffect(() => {
|
|
804
804
|
myOnChange(typeof o === "string" ? o : o.value || o.name || o);
|
|
805
805
|
}, []);
|
|
@@ -939,7 +939,7 @@ const ConfigField = ({
|
|
|
939
939
|
onChange={(e) => e.target && myOnChange(e.target.value)}
|
|
940
940
|
onBlur={(e) => e.target && myOnChange(e.target.value)}
|
|
941
941
|
>
|
|
942
|
-
{field.options.map((o, ix) =>
|
|
942
|
+
{(field.options || []).map((o, ix) =>
|
|
943
943
|
o.name && o.label ? (
|
|
944
944
|
<option key={ix} value={o.name}>
|
|
945
945
|
{o.label}
|