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.cjs
CHANGED
@@ -3567,6 +3567,9 @@ var NumberField = function NumberField(_ref3) {
|
|
3567
3567
|
var ContentEditor = function ContentEditor(_ref) {
|
3568
3568
|
var content = _ref.content,
|
3569
3569
|
filter = _ref.filter,
|
3570
|
+
_ref$outlined = _ref.outlined,
|
3571
|
+
outlined = _ref$outlined === void 0 ? true : _ref$outlined,
|
3572
|
+
className = _ref.className,
|
3570
3573
|
onChange = _ref.onChange;
|
3571
3574
|
|
3572
3575
|
function change(id, value) {
|
@@ -3578,7 +3581,7 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
3578
3581
|
|
3579
3582
|
var sections = content.sections();
|
3580
3583
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3581
|
-
className: "content-editor"
|
3584
|
+
className: "content-editor " + className
|
3582
3585
|
}, sections.map(function (section) {
|
3583
3586
|
var title = section.title,
|
3584
3587
|
fields = section.fields;
|
@@ -3594,7 +3597,7 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
3594
3597
|
key: field.id,
|
3595
3598
|
field: field,
|
3596
3599
|
onChange: change,
|
3597
|
-
outlined:
|
3600
|
+
outlined: outlined,
|
3598
3601
|
content: content
|
3599
3602
|
});
|
3600
3603
|
}))) : null;
|
@@ -3952,7 +3955,7 @@ var StringEditor = function StringEditor(_ref6) {
|
|
3952
3955
|
}
|
3953
3956
|
|
3954
3957
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3955
|
-
className: "field-editor string-editor"
|
3958
|
+
className: "field-editor string-editor " + id
|
3956
3959
|
}, renderFormat(format, options));
|
3957
3960
|
};
|
3958
3961
|
/**
|