@contentful/field-editor-rich-text 6.3.5 → 6.3.6-canary.0

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.
@@ -62,7 +62,7 @@ function useResourceEntityInfo({ onEntityFetchComplete, target }) {
62
62
  status,
63
63
  onEntityFetchComplete
64
64
  ]);
65
- if (status === 'loading') {
65
+ if (status === 'loading' || status === 'pending') {
66
66
  return `Loading entry...`;
67
67
  }
68
68
  if (!data || error) {
@@ -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.5",
3
+ "version": "6.3.6-canary.0+711ed66b",
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.0",
48
+ "@contentful/field-editor-reference": "^8.3.1-canary.0+711ed66b",
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": "b3a1d791df55536d6de78bb138b97224d6c0c70e"
97
+ "gitHead": "711ed66bf75ab1a1184d16868750a8dda151e149"
98
98
  }