@contentful/field-editor-reference 8.3.3-canary.5 → 8.4.1-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,6 +11,7 @@ Object.defineProperty(exports, "FetchingWrappedAssetCard", {
11
11
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
13
  const _fieldeditorshared = require("@contentful/field-editor-shared");
14
+ const _reactquery = require("@contentful/field-editor-shared/react-query");
14
15
  const _EntityStore = require("../../common/EntityStore");
15
16
  const _components = require("../../components");
16
17
  const _WrappedAssetCard = require("./WrappedAssetCard");
@@ -149,7 +150,7 @@ function FetchingWrappedAssetCard(props) {
149
150
  releaseEntityStatus,
150
151
  onAddToRelease
151
152
  };
152
- if (status === 'loading' || status === 'pending') {
153
+ if ((0, _reactquery.isLoadingStatus)(status)) {
153
154
  return props.viewType === 'link' ? /*#__PURE__*/ _react.createElement(_f36components.EntryCard, {
154
155
  size: "small",
155
156
  isLoading: true
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "FetchingWrappedEntryCard", {
11
11
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
12
  const _f36components = require("@contentful/f36-components");
13
13
  const _fieldeditorshared = require("@contentful/field-editor-shared");
14
+ const _reactquery = require("@contentful/field-editor-shared/react-query");
14
15
  const _EntityStore = require("../../common/EntityStore");
15
16
  const _components = require("../../components");
16
17
  const _WrappedEntryCard = require("./WrappedEntryCard");
@@ -150,7 +151,7 @@ function FetchingWrappedEntryCard(props) {
150
151
  }
151
152
  return card;
152
153
  }
153
- if (status === 'loading' || status === 'pending') {
154
+ if ((0, _reactquery.isLoadingStatus)(status)) {
154
155
  return /*#__PURE__*/ _react.createElement(_f36components.EntryCard, {
155
156
  size: size,
156
157
  isLoading: true
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { AssetCard, EntryCard } from '@contentful/f36-components';
3
3
  import { useLocalePublishStatus, useActiveLocales, useReleaseStatus } from '@contentful/field-editor-shared';
4
+ import { isLoadingStatus } from '@contentful/field-editor-shared/react-query';
4
5
  import { useEntity, useEntityLoader } from '../../common/EntityStore';
5
6
  import { MissingAssetCard } from '../../components';
6
7
  import { WrappedAssetCard } from './WrappedAssetCard';
@@ -98,7 +99,7 @@ export function FetchingWrappedAssetCard(props) {
98
99
  releaseEntityStatus,
99
100
  onAddToRelease
100
101
  };
101
- if (status === 'loading' || status === 'pending') {
102
+ if (isLoadingStatus(status)) {
102
103
  return props.viewType === 'link' ? /*#__PURE__*/ React.createElement(EntryCard, {
103
104
  size: "small",
104
105
  isLoading: true
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { EntryCard } from '@contentful/f36-components';
3
3
  import { useLocalePublishStatus, useReleaseStatus } from '@contentful/field-editor-shared';
4
+ import { isLoadingStatus } from '@contentful/field-editor-shared/react-query';
4
5
  import { useEntity, useEntityLoader } from '../../common/EntityStore';
5
6
  import { MissingEntityCard } from '../../components';
6
7
  import { WrappedEntryCard } from './WrappedEntryCard';
@@ -99,7 +100,7 @@ export function FetchingWrappedEntryCard(props) {
99
100
  }
100
101
  return card;
101
102
  }
102
- if (status === 'loading' || status === 'pending') {
103
+ if (isLoadingStatus(status)) {
103
104
  return /*#__PURE__*/ React.createElement(EntryCard, {
104
105
  size: size,
105
106
  isLoading: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "8.3.3-canary.5+ac4c834f",
3
+ "version": "8.4.1-canary.2+060cdf6a",
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": "^6.7.1",
40
40
  "@contentful/f36-icons": "^6.7.1",
41
41
  "@contentful/f36-tokens": "^6.1.2",
42
- "@contentful/field-editor-shared": "^4.4.2-canary.5+ac4c834f",
42
+ "@contentful/field-editor-shared": "^4.5.1-canary.2+060cdf6a",
43
43
  "@contentful/mimetype": "^2.2.29",
44
44
  "@dnd-kit/core": "^6.0.8",
45
45
  "@dnd-kit/sortable": "^8.0.0",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@contentful/app-sdk": "^4.42.0",
59
- "@contentful/field-editor-test-utils": "^3.1.2-canary.5+ac4c834f",
59
+ "@contentful/field-editor-test-utils": "^3.1.2",
60
60
  "@lingui/core": "5.3.0",
61
61
  "@testing-library/react-hooks": "^8.0.1",
62
62
  "@testing-library/user-event": "^13.1.9"
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "registry": "https://npm.pkg.github.com/"
72
72
  },
73
- "gitHead": "ac4c834f5fd7bb4de27e5f87c2ac937e32301f19"
73
+ "gitHead": "060cdf6a8238b1e17edb97c387686eed72ae7141"
74
74
  }