@contentful/field-editor-validation-errors 2.1.0 → 2.1.1-canary.19

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,6 +13,7 @@ const _f36components = require("@contentful/f36-components");
13
13
  const _f36icons = require("@contentful/f36-icons");
14
14
  const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
15
15
  const _fieldeditorshared = require("@contentful/field-editor-shared");
16
+ const _reactquery = require("@contentful/field-editor-shared/react-query");
16
17
  const _core = require("@lingui/core");
17
18
  const _styles = /*#__PURE__*/ _interop_require_wildcard(require("./styles"));
18
19
  function _interop_require_default(obj) {
@@ -66,7 +67,7 @@ function UniquenessError({ error, cma, localeCode, defaultLocaleCode, getEntryUR
66
67
  loading: true,
67
68
  entries: []
68
69
  });
69
- const { contentTypes: allContentTypes } = (0, _fieldeditorshared.useContentTypes)(cma);
70
+ const { contentTypes: allContentTypes } = (0, _reactquery.useContentTypes)(cma);
70
71
  const contentTypesById = _react.useMemo(()=>allContentTypes.reduce((prev, ct)=>({
71
72
  ...prev,
72
73
  [ct.sys.id]: ct
@@ -186,5 +187,5 @@ function ValidationErrorsInternal({ field, cma, locales, errorMessageOverride, g
186
187
  }));
187
188
  }
188
189
  function ValidationErrors(props) {
189
- return /*#__PURE__*/ _react.createElement(_fieldeditorshared.SharedQueryClientProvider, null, /*#__PURE__*/ _react.createElement(ValidationErrorsInternal, props));
190
+ return /*#__PURE__*/ _react.createElement(_reactquery.SharedQueryClientProvider, null, /*#__PURE__*/ _react.createElement(ValidationErrorsInternal, props));
190
191
  }
@@ -2,7 +2,8 @@ import * as React from 'react';
2
2
  import { List, ListItem, TextLink } from '@contentful/f36-components';
3
3
  import { ArrowSquareOutIcon, InfoIcon } from '@contentful/f36-icons';
4
4
  import tokens from '@contentful/f36-tokens';
5
- import { entityHelpers, useContentTypes, SharedQueryClientProvider } from '@contentful/field-editor-shared';
5
+ import { entityHelpers } from '@contentful/field-editor-shared';
6
+ import { SharedQueryClientProvider, useContentTypes } from '@contentful/field-editor-shared/react-query';
6
7
  import { i18n as $_i18n } from "@lingui/core";
7
8
  import * as styles from './styles';
8
9
  function UniquenessError({ error, cma, localeCode, defaultLocaleCode, getEntryURL }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-validation-errors",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-canary.19+e61c9c06",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "@contentful/f36-components": "^5.4.1",
40
40
  "@contentful/f36-icons": "^5.4.1",
41
41
  "@contentful/f36-tokens": "^5.1.0",
42
- "@contentful/field-editor-shared": "^2.18.0",
42
+ "@contentful/field-editor-shared": "^2.18.1-canary.19+e61c9c06",
43
43
  "emotion": "^10.0.17"
44
44
  },
45
45
  "devDependencies": {
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "registry": "https://npm.pkg.github.com/"
55
55
  },
56
- "gitHead": "9ca9d6fdd740e02809b4492fbcace4cbf3746d28"
56
+ "gitHead": "e61c9c06570d672a3eeef5d455dd0a1dee9cfcd1"
57
57
  }