@dataloop-ai/components 0.18.30 → 0.18.32

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": "@dataloop-ai/components",
3
- "version": "0.18.30",
3
+ "version": "0.18.32",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -115,7 +115,8 @@ export default defineComponent({
115
115
  const initialAttrs: JSONEditorPropsOptional = {
116
116
  onChange: debouncedHandleJSONChange,
117
117
  indentation: indentation.value,
118
- mode: Mode.text,
118
+ mode: mode.value,
119
+ readOnly: readonly.value || mode.value === Mode.tree,
119
120
  mainMenuBar: false,
120
121
  navigationBar: false,
121
122
  statusBar: false
@@ -138,7 +139,7 @@ export default defineComponent({
138
139
 
139
140
  watch(readonly, (val) => {
140
141
  jsonEditor.value?.updateProps({
141
- readOnly: val
142
+ readOnly: val || mode.value === Mode.tree
142
143
  })
143
144
  })
144
145