@contember/react-client 0.8.0-alpha.1 → 0.8.0-alpha.2.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.
Files changed (1) hide show
  1. package/package.json +4 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/react-client",
3
3
  "license": "Apache-2.0",
4
- "version": "0.8.0-alpha.1",
4
+ "version": "0.8.0-alpha.2.2",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/production/index.js",
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "typings": "./dist/react-client.d.ts",
20
20
  "dependencies": {
21
- "@contember/client": "0.8.0-alpha.1"
21
+ "@contember/client": "0.8.0-alpha.2.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^17"
@@ -27,5 +27,6 @@
27
27
  "build": "vite build --mode development && vite build --mode production",
28
28
  "build:api:dev": "api-extractor run --local",
29
29
  "build:api:prod": "api-extractor run"
30
- }
30
+ },
31
+ "readme": "# `@contember/react-client`\n\n## Usage\nIf you wish to communicate with any Contember API, wrap your code with the `ContemberClient` component:\n```tsx\nimport { ContemberClient } from '@contember/react-client'\n\n<ContemberClient\n\tapiBaseUrl=\"https://api.example.com\"\n\tproject=\"PROJECT-SLUG\"\n\tsessionToken=\"SESSION-TOKEN\"\n\tstage=\"STAGE-SLUG\"\n>\n ...\n</ContemberClient>\n```\n\n## Notable APIs\nYou'll have to look at the code for now, sorry.\n- `<RichTextRenderer />`\n- `useFileUpload`\n- `useContentApiRequest` / `useTenantApiRequest` / `useSystemApiRequest`\n"
31
32
  }