@contentful/field-editor-json 3.6.5 → 3.6.6-canary.24
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.
|
@@ -13,8 +13,8 @@ const _langjson = require("@codemirror/lang-json");
|
|
|
13
13
|
const _language = require("@codemirror/language");
|
|
14
14
|
const _view = require("@codemirror/view");
|
|
15
15
|
const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
|
|
16
|
+
const _css = require("@emotion/css");
|
|
16
17
|
const _reactcodemirror = /*#__PURE__*/ _interop_require_default(require("@uiw/react-codemirror"));
|
|
17
|
-
const _emotion = require("emotion");
|
|
18
18
|
const _utils = require("./utils");
|
|
19
19
|
function _interop_require_default(obj) {
|
|
20
20
|
return obj && obj.__esModule ? obj : {
|
|
@@ -63,7 +63,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
63
63
|
return newObj;
|
|
64
64
|
}
|
|
65
65
|
const styles = {
|
|
66
|
-
root: (0,
|
|
66
|
+
root: (0, _css.css)({
|
|
67
67
|
cursor: 'text',
|
|
68
68
|
padding: _f36tokens.default.spacingS,
|
|
69
69
|
border: `1px solid ${_f36tokens.default.gray200}`,
|
|
@@ -102,7 +102,7 @@ const styles = {
|
|
|
102
102
|
};
|
|
103
103
|
function JsonEditorField(props) {
|
|
104
104
|
return /*#__PURE__*/ _react.createElement("div", {
|
|
105
|
-
className: (0,
|
|
105
|
+
className: (0, _css.cx)(styles.root, {
|
|
106
106
|
disabled: props.isDisabled
|
|
107
107
|
}),
|
|
108
108
|
"data-test-id": "json-editor-code-mirror"
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "JsonEditorToolbar", {
|
|
|
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
|
|
14
|
+
const _css = require("@emotion/css");
|
|
15
15
|
function _interop_require_default(obj) {
|
|
16
16
|
return obj && obj.__esModule ? obj : {
|
|
17
17
|
default: obj
|
|
@@ -59,7 +59,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
59
59
|
return newObj;
|
|
60
60
|
}
|
|
61
61
|
const styles = {
|
|
62
|
-
toolbar: (0,
|
|
62
|
+
toolbar: (0, _css.css)({
|
|
63
63
|
display: 'flex',
|
|
64
64
|
alignItems: 'center',
|
|
65
65
|
padding: _f36tokens.default.spacingXs,
|
|
@@ -70,12 +70,12 @@ const styles = {
|
|
|
70
70
|
borderTopRightRadius: _f36tokens.default.borderRadiusSmall,
|
|
71
71
|
borderBottom: 'none'
|
|
72
72
|
}),
|
|
73
|
-
title: (0,
|
|
73
|
+
title: (0, _css.css)({
|
|
74
74
|
fontFamily: _f36tokens.default.fontStackPrimary,
|
|
75
75
|
fontSize: _f36tokens.default.fontSizeM,
|
|
76
76
|
color: _f36tokens.default.gray600
|
|
77
77
|
}),
|
|
78
|
-
actions: (0,
|
|
78
|
+
actions: (0, _css.css)({
|
|
79
79
|
button: {
|
|
80
80
|
marginLeft: _f36tokens.default.spacingS
|
|
81
81
|
}
|
|
@@ -11,8 +11,8 @@ 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 _css = require("@emotion/css");
|
|
14
15
|
const _core = require("@lingui/core");
|
|
15
|
-
const _emotion = require("emotion");
|
|
16
16
|
function _interop_require_default(obj) {
|
|
17
17
|
return obj && obj.__esModule ? obj : {
|
|
18
18
|
default: obj
|
|
@@ -63,7 +63,7 @@ function JsonInvalidStatus() {
|
|
|
63
63
|
return /*#__PURE__*/ _react.createElement("div", {
|
|
64
64
|
role: "status",
|
|
65
65
|
"data-test-id": "json-editor.invalid-json",
|
|
66
|
-
className: (0,
|
|
66
|
+
className: (0, _css.css)({
|
|
67
67
|
marginTop: _f36tokens.default.spacingS
|
|
68
68
|
})
|
|
69
69
|
}, /*#__PURE__*/ _react.createElement(_f36components.ValidationMessage, null, _core.i18n._({
|
|
@@ -3,8 +3,8 @@ import { json } from '@codemirror/lang-json';
|
|
|
3
3
|
import { indentUnit } from '@codemirror/language';
|
|
4
4
|
import { EditorView } from '@codemirror/view';
|
|
5
5
|
import tokens from '@contentful/f36-tokens';
|
|
6
|
+
import { css, cx } from '@emotion/css';
|
|
6
7
|
import CodeMirror from '@uiw/react-codemirror';
|
|
7
|
-
import { css, cx } from 'emotion';
|
|
8
8
|
import { SPACE_INDENT_COUNT } from './utils';
|
|
9
9
|
const styles = {
|
|
10
10
|
root: css({
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { css } from '@emotion/css';
|
|
4
5
|
import { i18n as $_i18n } from "@lingui/core";
|
|
5
|
-
import { css } from 'emotion';
|
|
6
6
|
export function JsonInvalidStatus() {
|
|
7
7
|
return /*#__PURE__*/ React.createElement("div", {
|
|
8
8
|
role: "status",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-json",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6-canary.24+23aabe26",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"@codemirror/lang-json": "^6.0.0",
|
|
38
38
|
"@codemirror/language": "^6.0.0",
|
|
39
39
|
"@codemirror/view": "^6.0.0",
|
|
40
|
-
"@contentful/f36-components": "^
|
|
41
|
-
"@contentful/f36-tokens": "^
|
|
40
|
+
"@contentful/f36-components": "^6.7.1",
|
|
41
|
+
"@contentful/f36-tokens": "^6.1.2",
|
|
42
42
|
"@contentful/field-editor-shared": "^3.0.0",
|
|
43
|
+
"@emotion/css": "^11.13.5",
|
|
43
44
|
"@types/react-codemirror": "1.0.11",
|
|
44
45
|
"@uiw/react-codemirror": "^4.11.4",
|
|
45
|
-
"emotion": "^10.0.17",
|
|
46
46
|
"lodash": "^4.17.15"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@lingui/core": "^5.3.0",
|
|
54
|
-
"react": ">=
|
|
54
|
+
"react": ">=18.3.1"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"registry": "https://npm.pkg.github.com/"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "23aabe2634ab28c17aa7535c5d46f664a9627617"
|
|
60
60
|
}
|