@contentful/react-apps-toolkit 1.2.10 → 1.2.14
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/useCMA.d.ts +4 -1
- package/package.json +3 -3
package/dist/useCMA.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { PlainClientAPI } from 'contentful-management';
|
|
2
|
+
import type { CMAClient } from '@contentful/app-sdk';
|
|
3
|
+
type UseCMAReturnValue = (CMAClient extends never ? true : false) extends false ? CMAClient : PlainClientAPI;
|
|
2
4
|
/**
|
|
3
5
|
* React hook returning a CMA plain client instance.
|
|
4
6
|
* Must be used in the `SDKProvider` component. Will throw error, if called outside of `SDKProvider`.
|
|
5
7
|
*/
|
|
6
|
-
export declare function useCMA():
|
|
8
|
+
export declare function useCMA(): UseCMAReturnValue;
|
|
9
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/react-apps-toolkit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
4
4
|
"description": "Toolkit for building a Contentful app in React",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Contentful GmbH",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react": "17.0.2",
|
|
45
45
|
"react-dom": "17.0.2",
|
|
46
46
|
"ts-jest": "27.1.3",
|
|
47
|
-
"typescript": "4.9.
|
|
47
|
+
"typescript": "4.9.4"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"contentful-management": ">=7.30.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c3c538d5dd1769cd49efa31ba26e345f91980832"
|
|
56
56
|
}
|