ywana-core8 0.0.343 → 0.0.344
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/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +19 -21
- package/src/domain/ContentEditor.test.css +24 -0
- package/src/domain/ContentEditor.test.js +31 -0
package/dist/index.modern.js
CHANGED
@@ -3559,6 +3559,9 @@ var NumberField = function NumberField(_ref3) {
|
|
3559
3559
|
var ContentEditor = function ContentEditor(_ref) {
|
3560
3560
|
var content = _ref.content,
|
3561
3561
|
filter = _ref.filter,
|
3562
|
+
_ref$outlined = _ref.outlined,
|
3563
|
+
outlined = _ref$outlined === void 0 ? true : _ref$outlined,
|
3564
|
+
className = _ref.className,
|
3562
3565
|
onChange = _ref.onChange;
|
3563
3566
|
|
3564
3567
|
function change(id, value) {
|
@@ -3570,7 +3573,7 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
3570
3573
|
|
3571
3574
|
var sections = content.sections();
|
3572
3575
|
return /*#__PURE__*/React.createElement("div", {
|
3573
|
-
className: "content-editor"
|
3576
|
+
className: "content-editor " + className
|
3574
3577
|
}, sections.map(function (section) {
|
3575
3578
|
var title = section.title,
|
3576
3579
|
fields = section.fields;
|
@@ -3586,7 +3589,7 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
3586
3589
|
key: field.id,
|
3587
3590
|
field: field,
|
3588
3591
|
onChange: change,
|
3589
|
-
outlined:
|
3592
|
+
outlined: outlined,
|
3590
3593
|
content: content
|
3591
3594
|
});
|
3592
3595
|
}))) : null;
|
@@ -3944,7 +3947,7 @@ var StringEditor = function StringEditor(_ref6) {
|
|
3944
3947
|
}
|
3945
3948
|
|
3946
3949
|
return /*#__PURE__*/React.createElement("div", {
|
3947
|
-
className: "field-editor string-editor"
|
3950
|
+
className: "field-editor string-editor " + id
|
3948
3951
|
}, renderFormat(format, options));
|
3949
3952
|
};
|
3950
3953
|
/**
|