@contentful/field-editor-reference 5.27.2 → 5.27.4
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.
|
@@ -20,6 +20,7 @@ function MissingEntityCard(props) {
|
|
|
20
20
|
const providerName = props.providerName ?? 'Source';
|
|
21
21
|
const description = props.customMessage ?? 'Content missing or inaccessible';
|
|
22
22
|
function CustomActionButton() {
|
|
23
|
+
if (props.isDisabled || !props.onRemove) return null;
|
|
23
24
|
return _react.default.createElement(_f36components.IconButton, {
|
|
24
25
|
"aria-label": "Actions",
|
|
25
26
|
icon: _react.default.createElement(_f36icons.CloseIcon, {
|
|
@@ -5,6 +5,7 @@ export function MissingEntityCard(props) {
|
|
|
5
5
|
const providerName = props.providerName ?? 'Source';
|
|
6
6
|
const description = props.customMessage ?? 'Content missing or inaccessible';
|
|
7
7
|
function CustomActionButton() {
|
|
8
|
+
if (props.isDisabled || !props.onRemove) return null;
|
|
8
9
|
return React.createElement(IconButton, {
|
|
9
10
|
"aria-label": "Actions",
|
|
10
11
|
icon: React.createElement(CloseIcon, {
|
|
@@ -48,7 +48,6 @@ type UseEntityResult<E> = {
|
|
|
48
48
|
status: 'success';
|
|
49
49
|
data: E;
|
|
50
50
|
};
|
|
51
|
-
export type UseEntityStatus = 'idle' | 'loading' | 'error' | 'success';
|
|
52
51
|
type FetchableEntityType = 'Entry' | 'Asset';
|
|
53
52
|
type FetchableEntity = Entry | Asset;
|
|
54
53
|
export declare class UnsupportedError extends Error {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export type { CustomEntityCardProps, DefaultCardRenderer, MissingEntityCardProps
|
|
|
6
6
|
export { SortableLinkList } from './common/SortableLinkList';
|
|
7
7
|
export { EntityProvider, useEntityLoader, useEntity, useResource } from './common/EntityStore';
|
|
8
8
|
export { SharedQueryClientProvider as EntityCacheProvider } from './common/queryClient';
|
|
9
|
-
export type { ResourceInfo
|
|
9
|
+
export type { ResourceInfo } from './common/EntityStore';
|
|
10
10
|
export { SingleResourceReferenceEditor, MultipleResourceReferenceEditor, ExternalResourceCard, } from './resources';
|
|
11
11
|
export * from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-reference",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.4",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"registry": "https://npm.pkg.github.com/"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "3e2095de775d850158da94887d11d4b7d4fbaea3"
|
|
71
71
|
}
|