@contentful/default-field-editors 2.2.20-canary.1 → 2.2.20-canary.2

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,7 +11,7 @@ Object.defineProperty(exports, "FieldWrapper", {
11
11
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
13
  const _fieldeditorvalidationerrors = require("@contentful/field-editor-validation-errors");
14
- const _emotion = require("emotion");
14
+ const _css = require("@emotion/css");
15
15
  const _FieldWrapperstyles = require("./FieldWrapper.styles");
16
16
  function _getRequireWildcardCache(nodeInterop) {
17
17
  if (typeof WeakMap !== "function") return null;
@@ -77,7 +77,7 @@ const FieldWrapper = function(props) {
77
77
  id: fieldControlId,
78
78
  testId: "entity-field-controls",
79
79
  "data-test-id": "entity-field-controls",
80
- className: (0, _emotion.cx)(showFocusBar && _FieldWrapperstyles.styles.withFocusBar, className),
80
+ className: (0, _css.cx)(showFocusBar && _FieldWrapperstyles.styles.withFocusBar, className),
81
81
  "aria-invalid": hasErrors,
82
82
  isRequired: field.required
83
83
  }, renderHeading ? renderHeading(name) : /*#__PURE__*/ _react.createElement(_f36components.FormControl.Label, {
@@ -9,14 +9,14 @@ Object.defineProperty(exports, "styles", {
9
9
  }
10
10
  });
11
11
  const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
12
- const _emotion = require("emotion");
12
+ const _css = require("@emotion/css");
13
13
  function _interop_require_default(obj) {
14
14
  return obj && obj.__esModule ? obj : {
15
15
  default: obj
16
16
  };
17
17
  }
18
18
  const styles = {
19
- withFocusBar: (0, _emotion.css)({
19
+ withFocusBar: (0, _css.css)({
20
20
  marginLeft: _f36tokens.default.spacingL,
21
21
  marginRight: _f36tokens.default.spacingL,
22
22
  marginBottom: '29px',
@@ -31,7 +31,7 @@ const styles = {
31
31
  borderLeftColor: _f36tokens.default.red500
32
32
  }
33
33
  }),
34
- label: (0, _emotion.css)({
34
+ label: (0, _css.css)({
35
35
  display: 'flex',
36
36
  width: '100%',
37
37
  maxWidth: '800px',
@@ -41,7 +41,7 @@ const styles = {
41
41
  lineHeight: _f36tokens.default.lineHeightDefault,
42
42
  whiteSpace: 'pre-wrap'
43
43
  }),
44
- helpText: (0, _emotion.css)({
44
+ helpText: (0, _css.css)({
45
45
  margin: `${_f36tokens.default.spacingXs} 0`,
46
46
  fontStyle: 'italic'
47
47
  })
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { FormControl } from '@contentful/f36-components';
3
3
  import { ValidationErrors } from '@contentful/field-editor-validation-errors';
4
- import { cx } from 'emotion';
4
+ import { cx } from '@emotion/css';
5
5
  import { styles } from './FieldWrapper.styles';
6
6
  export const FieldWrapper = function(props) {
7
7
  const { ids } = props.sdk;
@@ -1,5 +1,5 @@
1
1
  import tokens from '@contentful/f36-tokens';
2
- import { css } from 'emotion';
2
+ import { css } from '@emotion/css';
3
3
  export const styles = {
4
4
  withFocusBar: css({
5
5
  marginLeft: tokens.spacingL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/default-field-editors",
3
- "version": "2.2.20-canary.1+db546ec1",
3
+ "version": "2.2.20-canary.2+f668c2a7",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -36,9 +36,9 @@
36
36
  "tsc": "tsc -p ./ --noEmit"
37
37
  },
38
38
  "dependencies": {
39
- "@contentful/f36-components": "^5.4.1",
40
- "@contentful/f36-icons": "^5.4.1",
41
- "@contentful/f36-tokens": "^5.1.0",
39
+ "@contentful/f36-components": "^6.7.1",
40
+ "@contentful/f36-icons": "^6.7.1",
41
+ "@contentful/f36-tokens": "^6.1.2",
42
42
  "@contentful/field-editor-boolean": "^1.10.1",
43
43
  "@contentful/field-editor-checkbox": "^1.7.5",
44
44
  "@contentful/field-editor-date": "^1.9.25",
@@ -52,24 +52,24 @@
52
52
  "@contentful/field-editor-radio": "^1.8.5",
53
53
  "@contentful/field-editor-rating": "^1.7.6",
54
54
  "@contentful/field-editor-reference": "^6.22.3",
55
- "@contentful/field-editor-rich-text": "^4.20.13-canary.1+db546ec1",
55
+ "@contentful/field-editor-rich-text": "^4.20.13-canary.2+f668c2a7",
56
56
  "@contentful/field-editor-shared": "^3.0.0",
57
57
  "@contentful/field-editor-single-line": "^1.9.5",
58
58
  "@contentful/field-editor-slug": "^2.2.4",
59
59
  "@contentful/field-editor-tags": "^1.8.5",
60
60
  "@contentful/field-editor-url": "^1.6.5",
61
61
  "@contentful/field-editor-validation-errors": "^2.1.2",
62
- "contentful-management": "^11.0.0",
63
- "emotion": "^10.0.27"
62
+ "@emotion/css": "^11.13.5",
63
+ "contentful-management": "^11.0.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@contentful/field-editor-test-utils": "^1.8.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "react": ">=16.8.0"
69
+ "react": ">=18.3.1"
70
70
  },
71
71
  "publishConfig": {
72
72
  "registry": "https://npm.pkg.github.com/"
73
73
  },
74
- "gitHead": "db546ec124ac6b6ae0b06c557b08a188b1b09813"
74
+ "gitHead": "f668c2a7806750bfb176bf8ce7b0eb5ef0f89ca8"
75
75
  }