@contentful/field-editor-json 3.3.16 → 3.3.18
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/cjs/JsonEditor.js +3 -9
- package/dist/esm/JsonEditor.js +3 -9
- package/package.json +3 -5
package/dist/cjs/JsonEditor.js
CHANGED
|
@@ -10,7 +10,6 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
});
|
|
11
11
|
const _react = _interop_require_wildcard(require("react"));
|
|
12
12
|
const _fieldeditorshared = require("@contentful/field-editor-shared");
|
|
13
|
-
const _deepequal = _interop_require_default(require("deep-equal"));
|
|
14
13
|
const _throttle = _interop_require_default(require("lodash/throttle"));
|
|
15
14
|
const _JsonEditorField = require("./JsonEditorField");
|
|
16
15
|
const _JsonEditorToolbar = require("./JsonEditorToolbar");
|
|
@@ -181,17 +180,12 @@ _define_property(ConnectedJsonEditor, "defaultProps", {
|
|
|
181
180
|
function JsonEditor(props) {
|
|
182
181
|
return _react.createElement(_fieldeditorshared.FieldConnector, {
|
|
183
182
|
field: props.field,
|
|
184
|
-
isInitiallyDisabled: props.isInitiallyDisabled
|
|
185
|
-
|
|
186
|
-
return (0, _deepequal.default)(value1, value2);
|
|
187
|
-
}
|
|
188
|
-
}, ({ value, disabled, setValue, externalReset })=>{
|
|
189
|
-
return _react.createElement(ConnectedJsonEditor, {
|
|
183
|
+
isInitiallyDisabled: props.isInitiallyDisabled
|
|
184
|
+
}, ({ value, disabled, setValue, externalReset })=>_react.createElement(ConnectedJsonEditor, {
|
|
190
185
|
key: `json-editor-${externalReset}`,
|
|
191
186
|
initialValue: value,
|
|
192
187
|
disabled: disabled,
|
|
193
188
|
setValue: setValue
|
|
194
|
-
});
|
|
195
|
-
});
|
|
189
|
+
}));
|
|
196
190
|
}
|
|
197
191
|
JsonEditor.tabWidth = _utils.SPACE_INDENT_COUNT;
|
package/dist/esm/JsonEditor.js
CHANGED
|
@@ -13,7 +13,6 @@ function _define_property(obj, key, value) {
|
|
|
13
13
|
}
|
|
14
14
|
import * as React from 'react';
|
|
15
15
|
import { FieldConnector } from '@contentful/field-editor-shared';
|
|
16
|
-
import deepEqual from 'deep-equal';
|
|
17
16
|
import throttle from 'lodash/throttle';
|
|
18
17
|
import { JsonEditorField } from './JsonEditorField';
|
|
19
18
|
import { JsonEditorToolbar } from './JsonEditorToolbar';
|
|
@@ -125,17 +124,12 @@ _define_property(ConnectedJsonEditor, "defaultProps", {
|
|
|
125
124
|
export default function JsonEditor(props) {
|
|
126
125
|
return React.createElement(FieldConnector, {
|
|
127
126
|
field: props.field,
|
|
128
|
-
isInitiallyDisabled: props.isInitiallyDisabled
|
|
129
|
-
|
|
130
|
-
return deepEqual(value1, value2);
|
|
131
|
-
}
|
|
132
|
-
}, ({ value, disabled, setValue, externalReset })=>{
|
|
133
|
-
return React.createElement(ConnectedJsonEditor, {
|
|
127
|
+
isInitiallyDisabled: props.isInitiallyDisabled
|
|
128
|
+
}, ({ value, disabled, setValue, externalReset })=>React.createElement(ConnectedJsonEditor, {
|
|
134
129
|
key: `json-editor-${externalReset}`,
|
|
135
130
|
initialValue: value,
|
|
136
131
|
disabled: disabled,
|
|
137
132
|
setValue: setValue
|
|
138
|
-
});
|
|
139
|
-
});
|
|
133
|
+
}));
|
|
140
134
|
}
|
|
141
135
|
JsonEditor.tabWidth = SPACE_INDENT_COUNT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-json",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.18",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -36,11 +36,9 @@
|
|
|
36
36
|
"@codemirror/lang-json": "^6.0.0",
|
|
37
37
|
"@contentful/f36-components": "^4.0.27",
|
|
38
38
|
"@contentful/f36-tokens": "^4.0.0",
|
|
39
|
-
"@contentful/field-editor-shared": "^1.5.
|
|
40
|
-
"@types/deep-equal": "1.0.1",
|
|
39
|
+
"@contentful/field-editor-shared": "^1.5.4",
|
|
41
40
|
"@types/react-codemirror": "1.0.3",
|
|
42
41
|
"@uiw/react-codemirror": "^4.11.4",
|
|
43
|
-
"deep-equal": "2.2.2",
|
|
44
42
|
"emotion": "^10.0.17",
|
|
45
43
|
"lodash": "^4.17.15"
|
|
46
44
|
},
|
|
@@ -53,5 +51,5 @@
|
|
|
53
51
|
"publishConfig": {
|
|
54
52
|
"registry": "https://npm.pkg.github.com/"
|
|
55
53
|
},
|
|
56
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "f9d4036890841b8d459dd92912f2d410a8ee72f6"
|
|
57
55
|
}
|