@contentful/field-editor-reference 8.4.0 → 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.
- package/dist/cjs/assets/WrappedAssetCard/FetchingWrappedAssetCard.js +2 -1
- package/dist/cjs/entries/WrappedEntryCard/FetchingWrappedEntryCard.js +2 -1
- package/dist/esm/assets/WrappedAssetCard/FetchingWrappedAssetCard.js +2 -1
- package/dist/esm/entries/WrappedEntryCard/FetchingWrappedEntryCard.js +2 -1
- package/package.json +3 -3
|
@@ -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 (
|
|
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 (
|
|
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
|
|
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
|
|
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.4.
|
|
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.5.
|
|
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",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"registry": "https://npm.pkg.github.com/"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "060cdf6a8238b1e17edb97c387686eed72ae7141"
|
|
74
74
|
}
|