ywana-core8 0.0.178 → 0.0.182
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/__reactpreview__/Wrapper.tsx +14 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/reactpreview.config.js +37 -0
- package/src/domain/ContentEditor.js +8 -3
- package/src/html/button.js +16 -2
- package/src/html/button.tsx +38 -0
- package/src/test.js +5 -0
package/dist/index.modern.js
CHANGED
@@ -2709,6 +2709,7 @@ var TabbedContentEditor = function TabbedContentEditor(_ref2) {
|
|
2709
2709
|
}
|
2710
2710
|
|
2711
2711
|
var sections = content.sections();
|
2712
|
+
console.log("TabbedContentEditor", sections);
|
2712
2713
|
return /*#__PURE__*/React.createElement("div", {
|
2713
2714
|
className: "content-editor tabbed"
|
2714
2715
|
}, /*#__PURE__*/React.createElement(Tabs, {
|
@@ -2843,7 +2844,7 @@ var FieldEditor = function FieldEditor(_ref4) {
|
|
2843
2844
|
}
|
2844
2845
|
|
2845
2846
|
function renderField() {
|
2846
|
-
var value1 = field.value ? field.value : field["default"];
|
2847
|
+
var value1 = field.value || field.value === "" ? field.value : field["default"];
|
2847
2848
|
var isHidden = CHECK['isFunction'](hidden) ? hidden(field, value1) : hidden;
|
2848
2849
|
|
2849
2850
|
if (isHidden) {
|
@@ -3023,7 +3024,7 @@ var NumberEditor = function NumberEditor(_ref7) {
|
|
3023
3024
|
if (onChange) onChange(id, value);
|
3024
3025
|
}
|
3025
3026
|
|
3026
|
-
var val = value || field["default"];
|
3027
|
+
var val = value || value === "" ? value : field["default"];
|
3027
3028
|
var min = field.min;
|
3028
3029
|
var max = field.max;
|
3029
3030
|
var disabled = !editable;
|