@contentful/react-apps-toolkit 1.2.15 → 1.2.16
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/README.md +1 -0
- package/dist/useCMA.d.ts +2 -0
- package/dist/useCMA.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -67,6 +67,7 @@ function App() {
|
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
### useCMA
|
|
70
|
+
> :warning: **DEPRECATED** If you are using App SDK v4.20 or greater use `sdk.cma` instead.
|
|
70
71
|
|
|
71
72
|
`useCMA` returns an initialized [client for the Contentful Management API](https://www.npmjs.com/package/contentful-management). This can be used immediately to communicate with the environment the app is rendered in. [Contentful Management API docs](/developers/docs/references/content-management-api/).
|
|
72
73
|
|
package/dist/useCMA.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { PlainClientAPI } from 'contentful-management';
|
|
|
2
2
|
import type { CMAClient } from '@contentful/app-sdk';
|
|
3
3
|
type UseCMAReturnValue = (CMAClient extends never ? true : false) extends false ? CMAClient : PlainClientAPI;
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated if on App SDK v4.20 or greater use `sdk.cma` instead.
|
|
6
|
+
*
|
|
5
7
|
* React hook returning a CMA plain client instance.
|
|
6
8
|
* Must be used in the `SDKProvider` component. Will throw error, if called outside of `SDKProvider`.
|
|
7
9
|
*/
|
package/dist/useCMA.js
CHANGED
|
@@ -5,6 +5,8 @@ var contentful_management_1 = require("contentful-management");
|
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
var useSDK_1 = require("./useSDK");
|
|
7
7
|
/**
|
|
8
|
+
* @deprecated if on App SDK v4.20 or greater use `sdk.cma` instead.
|
|
9
|
+
*
|
|
8
10
|
* React hook returning a CMA plain client instance.
|
|
9
11
|
* Must be used in the `SDKProvider` component. Will throw error, if called outside of `SDKProvider`.
|
|
10
12
|
*/
|
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.16",
|
|
4
4
|
"description": "Toolkit for building a Contentful app in React",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Contentful GmbH",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"contentful-management": ">=7.30.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "9f69cc5e13fe10bd03949111580a3de55f5a28c7"
|
|
56
56
|
}
|