@contentful/field-editor-rich-text 6.3.5 → 6.3.6
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/plugins/Hyperlink/useResourceEntityInfo.js +1 -1
- package/dist/cjs/plugins/shared/FetchingWrappedAssetCard.js +1 -1
- package/dist/cjs/plugins/shared/FetchingWrappedEntryCard.js +1 -1
- package/dist/cjs/plugins/shared/FetchingWrappedResourceCard.js +1 -1
- package/dist/esm/plugins/Hyperlink/useResourceEntityInfo.js +1 -1
- package/dist/esm/plugins/shared/FetchingWrappedAssetCard.js +1 -1
- package/dist/esm/plugins/shared/FetchingWrappedEntryCard.js +1 -1
- package/dist/esm/plugins/shared/FetchingWrappedResourceCard.js +1 -1
- package/package.json +3 -3
|
@@ -109,7 +109,7 @@ function FetchingWrappedAssetCard(props) {
|
|
|
109
109
|
onEntityFetchComplete,
|
|
110
110
|
status
|
|
111
111
|
]);
|
|
112
|
-
if (status === 'loading' || status === 'idle') {
|
|
112
|
+
if (status === 'loading' || status === 'idle' || status === 'pending') {
|
|
113
113
|
return /*#__PURE__*/ _react.createElement(_f36components.AssetCard, {
|
|
114
114
|
size: "default",
|
|
115
115
|
isLoading: true
|
|
@@ -118,7 +118,7 @@ const InternalFetchingWrappedEntryCard = (props)=>{
|
|
|
118
118
|
onEntityFetchComplete,
|
|
119
119
|
status
|
|
120
120
|
]);
|
|
121
|
-
if (status === 'loading' || status === 'idle') {
|
|
121
|
+
if (status === 'loading' || status === 'idle' || status === 'pending') {
|
|
122
122
|
return /*#__PURE__*/ _react.createElement(_f36components.EntryCard, {
|
|
123
123
|
isLoading: true
|
|
124
124
|
});
|
|
@@ -59,7 +59,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
59
59
|
return newObj;
|
|
60
60
|
}
|
|
61
61
|
const InternalEntryCard = /*#__PURE__*/ _react.memo((props)=>{
|
|
62
|
-
if (props.data === undefined || props.status === 'loading') {
|
|
62
|
+
if (props.data === undefined || props.status === 'loading' || props.status === 'pending') {
|
|
63
63
|
return /*#__PURE__*/ _react.createElement(_f36components.EntryCard, {
|
|
64
64
|
isLoading: true
|
|
65
65
|
});
|
|
@@ -11,7 +11,7 @@ export function useResourceEntityInfo({ onEntityFetchComplete, target }) {
|
|
|
11
11
|
status,
|
|
12
12
|
onEntityFetchComplete
|
|
13
13
|
]);
|
|
14
|
-
if (status === 'loading') {
|
|
14
|
+
if (status === 'loading' || status === 'pending') {
|
|
15
15
|
return `Loading entry...`;
|
|
16
16
|
}
|
|
17
17
|
if (!data || error) {
|
|
@@ -53,7 +53,7 @@ export function FetchingWrappedAssetCard(props) {
|
|
|
53
53
|
onEntityFetchComplete,
|
|
54
54
|
status
|
|
55
55
|
]);
|
|
56
|
-
if (status === 'loading' || status === 'idle') {
|
|
56
|
+
if (status === 'loading' || status === 'idle' || status === 'pending') {
|
|
57
57
|
return /*#__PURE__*/ React.createElement(AssetCard, {
|
|
58
58
|
size: "default",
|
|
59
59
|
isLoading: true
|
|
@@ -62,7 +62,7 @@ const InternalFetchingWrappedEntryCard = (props)=>{
|
|
|
62
62
|
onEntityFetchComplete,
|
|
63
63
|
status
|
|
64
64
|
]);
|
|
65
|
-
if (status === 'loading' || status === 'idle') {
|
|
65
|
+
if (status === 'loading' || status === 'idle' || status === 'pending') {
|
|
66
66
|
return /*#__PURE__*/ React.createElement(EntryCard, {
|
|
67
67
|
isLoading: true
|
|
68
68
|
});
|
|
@@ -3,7 +3,7 @@ import { DragHandle, EntryCard } from '@contentful/f36-components';
|
|
|
3
3
|
import { ResourceEntityErrorCard, WrappedEntryCard, useResource } from '@contentful/field-editor-reference';
|
|
4
4
|
import areEqual from 'fast-deep-equal';
|
|
5
5
|
const InternalEntryCard = /*#__PURE__*/ React.memo((props)=>{
|
|
6
|
-
if (props.data === undefined || props.status === 'loading') {
|
|
6
|
+
if (props.data === undefined || props.status === 'loading' || props.status === 'pending') {
|
|
7
7
|
return /*#__PURE__*/ React.createElement(EntryCard, {
|
|
8
8
|
isLoading: true
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.6",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@contentful/f36-icons": "^6.7.1",
|
|
46
46
|
"@contentful/f36-tokens": "^6.1.2",
|
|
47
47
|
"@contentful/f36-utils": "^6.1.0",
|
|
48
|
-
"@contentful/field-editor-reference": "^8.3.
|
|
48
|
+
"@contentful/field-editor-reference": "^8.3.1",
|
|
49
49
|
"@contentful/field-editor-shared": "^4.4.0",
|
|
50
50
|
"@contentful/rich-text-plain-text-renderer": "^17.0.0",
|
|
51
51
|
"@contentful/rich-text-types": "^17.2.5",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"registry": "https://npm.pkg.github.com/"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "7e70d445ddd02c7f445baacf138fad822d7ab09f"
|
|
98
98
|
}
|