@contentful/field-editor-json 3.3.6 → 3.3.8
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { FieldAPI } from '@contentful/field-editor-shared';
|
|
3
3
|
export interface JsonEditorProps {
|
|
4
4
|
/**
|
|
@@ -10,7 +10,7 @@ export interface JsonEditorProps {
|
|
|
10
10
|
*/
|
|
11
11
|
field: FieldAPI;
|
|
12
12
|
}
|
|
13
|
-
declare function JsonEditor(props: JsonEditorProps):
|
|
13
|
+
declare function JsonEditor(props: JsonEditorProps): JSX.Element;
|
|
14
14
|
declare namespace JsonEditor {
|
|
15
15
|
var tabWidth: number;
|
|
16
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type JsonEditorFieldProps = {
|
|
3
3
|
isDisabled: boolean;
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (value: string) => void;
|
|
6
6
|
};
|
|
7
|
-
export declare function JsonEditorField(props: JsonEditorFieldProps):
|
|
7
|
+
export declare function JsonEditorField(props: JsonEditorFieldProps): JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type JsonEditorToolbarProps = {
|
|
3
3
|
isUndoDisabled: boolean;
|
|
4
4
|
isRedoDisabled: boolean;
|
|
5
5
|
onRedo: () => void;
|
|
6
6
|
onUndo: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare function JsonEditorToolbar(props: JsonEditorToolbarProps):
|
|
8
|
+
export declare function JsonEditorToolbar(props: JsonEditorToolbarProps): JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function JsonInvalidStatus():
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function JsonInvalidStatus(): JSX.Element;
|
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.8",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
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.4.
|
|
39
|
+
"@contentful/field-editor-shared": "^1.4.4",
|
|
40
40
|
"@types/deep-equal": "1.0.1",
|
|
41
41
|
"@types/react-codemirror": "1.0.3",
|
|
42
42
|
"@uiw/react-codemirror": "^4.11.4",
|
|
@@ -45,10 +45,13 @@
|
|
|
45
45
|
"lodash": "^4.17.15"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@contentful/field-editor-test-utils": "^1.4.
|
|
48
|
+
"@contentful/field-editor-test-utils": "^1.4.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=16.8.0"
|
|
52
52
|
},
|
|
53
|
-
"
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://npm.pkg.github.com/"
|
|
55
|
+
},
|
|
56
|
+
"gitHead": "b1f62d6b934520b6d4dc328921dd500381d1e22c"
|
|
54
57
|
}
|