ywana-core8 0.0.801 → 0.0.802
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +2 -2
package/package.json
CHANGED
@@ -219,7 +219,7 @@ export const FieldEditor = ({ field, onChange, content, outlined = false, onRelo
|
|
219
219
|
* Entity Editor
|
220
220
|
*/
|
221
221
|
const EntityEditor = ({ field, value = {}, onChange }) => {
|
222
|
-
const { id, item, label } = field
|
222
|
+
const { id, item, label, outlined=false } = field
|
223
223
|
const content = new Content(item, value)
|
224
224
|
|
225
225
|
function change(fid, value) {
|
@@ -258,7 +258,7 @@ const EntityEditor = ({ field, value = {}, onChange }) => {
|
|
258
258
|
<section key={title}>
|
259
259
|
{title && title.length > 0 ? <header>{title}</header> : null}
|
260
260
|
<main>
|
261
|
-
{filtered.map((field) => <FieldEditor key={field.id} field={field} onChange={change} outlined={
|
261
|
+
{filtered.map((field) => <FieldEditor key={field.id} field={field} onChange={change} outlined={outlined} content={content} />)}
|
262
262
|
</main>
|
263
263
|
</section>
|
264
264
|
) : null
|