@contentful/field-editor-validation-errors 1.6.1 → 1.6.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,9 +11,15 @@ Object.defineProperty(exports, "ValidationErrors", {
11
11
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
13
  const _f36icons = require("@contentful/f36-icons");
14
+ const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
14
15
  const _fieldeditorshared = require("@contentful/field-editor-shared");
15
16
  const _core = require("@lingui/core");
16
17
  const _styles = /*#__PURE__*/ _interop_require_wildcard(require("./styles"));
18
+ function _interop_require_default(obj) {
19
+ return obj && obj.__esModule ? obj : {
20
+ default: obj
21
+ };
22
+ }
17
23
  function _getRequireWildcardCache(nodeInterop) {
18
24
  if (typeof WeakMap !== "function") return null;
19
25
  var cacheBabelInterop = new WeakMap();
@@ -126,7 +132,7 @@ function UniquenessError(props) {
126
132
  })) : state.entries.map((entry)=>/*#__PURE__*/ _react.createElement(_f36components.TextLink, {
127
133
  key: entry.id,
128
134
  href: entry.href,
129
- icon: /*#__PURE__*/ _react.createElement(_f36icons.ExternalLinkIcon, null),
135
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.ArrowSquareOutIcon, null),
130
136
  alignIcon: "end",
131
137
  variant: "negative",
132
138
  target: "_blank",
@@ -156,8 +162,8 @@ function ValidationErrors(props) {
156
162
  "aria-roledescription": "field-locale-schema",
157
163
  "data-error-code": `entry.schema.${error.name}`,
158
164
  className: _styles.errorItem
159
- }, /*#__PURE__*/ _react.createElement(_f36icons.InfoCircleIcon, {
160
- variant: "negative"
165
+ }, /*#__PURE__*/ _react.createElement(_f36icons.InfoIcon, {
166
+ color: _f36tokens.default.colorNegative
161
167
  }), /*#__PURE__*/ _react.createElement("div", {
162
168
  className: _styles.errorMessage
163
169
  }, props.errorMessageOverride?.(error.message) ?? error.message, error.name === 'unique' && /*#__PURE__*/ _react.createElement(UniquenessError, {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { List, ListItem, TextLink } from '@contentful/f36-components';
3
- import { ExternalLinkIcon, InfoCircleIcon } from '@contentful/f36-icons';
3
+ import { ArrowSquareOutIcon, InfoIcon } from '@contentful/f36-icons';
4
+ import tokens from '@contentful/f36-tokens';
4
5
  import { entityHelpers } from '@contentful/field-editor-shared';
5
6
  import { i18n as $_i18n } from "@lingui/core";
6
7
  import * as styles from './styles';
@@ -75,7 +76,7 @@ function UniquenessError(props) {
75
76
  })) : state.entries.map((entry)=>/*#__PURE__*/ React.createElement(TextLink, {
76
77
  key: entry.id,
77
78
  href: entry.href,
78
- icon: /*#__PURE__*/ React.createElement(ExternalLinkIcon, null),
79
+ icon: /*#__PURE__*/ React.createElement(ArrowSquareOutIcon, null),
79
80
  alignIcon: "end",
80
81
  variant: "negative",
81
82
  target: "_blank",
@@ -105,8 +106,8 @@ export function ValidationErrors(props) {
105
106
  "aria-roledescription": "field-locale-schema",
106
107
  "data-error-code": `entry.schema.${error.name}`,
107
108
  className: styles.errorItem
108
- }, /*#__PURE__*/ React.createElement(InfoCircleIcon, {
109
- variant: "negative"
109
+ }, /*#__PURE__*/ React.createElement(InfoIcon, {
110
+ color: tokens.colorNegative
110
111
  }), /*#__PURE__*/ React.createElement("div", {
111
112
  className: styles.errorMessage
112
113
  }, props.errorMessageOverride?.(error.message) ?? error.message, error.name === 'unique' && /*#__PURE__*/ React.createElement(UniquenessError, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-validation-errors",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -36,14 +36,14 @@
36
36
  "tsc": "tsc -p ./ --noEmit"
37
37
  },
38
38
  "dependencies": {
39
- "@contentful/f36-components": "^4.70.0",
40
- "@contentful/f36-icons": "^4.29.0",
41
- "@contentful/f36-tokens": "^4.0.5",
42
- "@contentful/field-editor-shared": "^2.11.1",
39
+ "@contentful/f36-components": "5.1.1",
40
+ "@contentful/f36-icons": "5.1.1",
41
+ "@contentful/f36-tokens": "5.1.0",
42
+ "@contentful/field-editor-shared": "^2.11.2",
43
43
  "emotion": "^10.0.17"
44
44
  },
45
45
  "devDependencies": {
46
- "@contentful/field-editor-test-utils": "^1.6.0",
46
+ "@contentful/field-editor-test-utils": "^1.6.1",
47
47
  "@lingui/core": "5.3.0"
48
48
  },
49
49
  "peerDependencies": {
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "registry": "https://npm.pkg.github.com/"
55
55
  },
56
- "gitHead": "9456bac33e2d0d4f05cadc302ba4a25f2de6e034"
56
+ "gitHead": "8ab6bd7a3ce2979634ab53673c6b122a6b1b5efb"
57
57
  }