@contentful/field-editor-reference 5.27.1 → 5.27.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.
|
@@ -48,6 +48,7 @@ type UseEntityResult<E> = {
|
|
|
48
48
|
status: 'success';
|
|
49
49
|
data: E;
|
|
50
50
|
};
|
|
51
|
+
export type UseEntityStatus = 'idle' | 'loading' | 'error' | 'success';
|
|
51
52
|
type FetchableEntityType = 'Entry' | 'Asset';
|
|
52
53
|
type FetchableEntity = Entry | Asset;
|
|
53
54
|
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 } from './common/EntityStore';
|
|
9
|
+
export type { ResourceInfo, UseEntityStatus } 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.2",
|
|
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": "0d8d60dde84e039189af98d4e746d27588ed10ff"
|
|
71
71
|
}
|