@contentful/field-editor-json 3.4.1 → 3.4.3
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.
|
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "JsonInvalidStatus", {
|
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
13
|
const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
|
|
14
|
+
const _core = require("@lingui/core");
|
|
14
15
|
const _emotion = require("emotion");
|
|
15
16
|
function _interop_require_default(obj) {
|
|
16
17
|
return obj && obj.__esModule ? obj : {
|
|
@@ -65,5 +66,8 @@ function JsonInvalidStatus() {
|
|
|
65
66
|
className: (0, _emotion.css)({
|
|
66
67
|
marginTop: _f36tokens.default.spacingS
|
|
67
68
|
})
|
|
68
|
-
}, /*#__PURE__*/ _react.createElement(_f36components.ValidationMessage, null,
|
|
69
|
+
}, /*#__PURE__*/ _react.createElement(_f36components.ValidationMessage, null, _core.i18n._({
|
|
70
|
+
id: "FieldEditors.Json.JsonInvalidStatus.InvalidJsonMessage",
|
|
71
|
+
message: "This is not valid JSON"
|
|
72
|
+
})));
|
|
69
73
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ValidationMessage } from '@contentful/f36-components';
|
|
3
3
|
import tokens from '@contentful/f36-tokens';
|
|
4
|
+
import { i18n as $_i18n } from "@lingui/core";
|
|
4
5
|
import { css } from 'emotion';
|
|
5
6
|
export function JsonInvalidStatus() {
|
|
6
7
|
return /*#__PURE__*/ React.createElement("div", {
|
|
@@ -9,5 +10,8 @@ export function JsonInvalidStatus() {
|
|
|
9
10
|
className: css({
|
|
10
11
|
marginTop: tokens.spacingS
|
|
11
12
|
})
|
|
12
|
-
}, /*#__PURE__*/ React.createElement(ValidationMessage, null,
|
|
13
|
+
}, /*#__PURE__*/ React.createElement(ValidationMessage, null, $_i18n._({
|
|
14
|
+
id: "FieldEditors.Json.JsonInvalidStatus.InvalidJsonMessage",
|
|
15
|
+
message: "This is not valid JSON"
|
|
16
|
+
})));
|
|
13
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-json",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
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.70.0",
|
|
38
38
|
"@contentful/f36-tokens": "^4.0.5",
|
|
39
|
-
"@contentful/field-editor-shared": "^2.
|
|
39
|
+
"@contentful/field-editor-shared": "^2.10.0",
|
|
40
40
|
"@types/react-codemirror": "1.0.11",
|
|
41
41
|
"@uiw/react-codemirror": "^4.11.4",
|
|
42
42
|
"emotion": "^10.0.17",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://npm.pkg.github.com/"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "be09f0d73046834685814d083141f5166cb64457"
|
|
57
57
|
}
|