@onehat/ui 0.3.335 → 0.3.336

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": "@onehat/ui",
3
- "version": "0.3.335",
3
+ "version": "0.3.336",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -400,6 +400,7 @@ function Form(props) {
400
400
  title,
401
401
  name,
402
402
  isEditable = true,
403
+ isEditingEnabledInPlainEditor,
403
404
  label,
404
405
  items,
405
406
  onChange: onEditorChange,
@@ -425,6 +426,10 @@ function Form(props) {
425
426
  if (propertyDef?.isEditingDisabled && checkIsEditingDisabled) {
426
427
  isEditable = false;
427
428
  }
429
+ if (isEditingEnabledInPlainEditor && editorType === EDITOR_TYPE__PLAIN) {
430
+ // If this is a plain editor, allow the field to be editable, even if it's not editable in other editor types
431
+ isEditable = true;
432
+ }
428
433
  if (!type) {
429
434
  if (isEditable) {
430
435
  const