@cervio/plugin-sdk 2.1.0 → 2.1.1
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 +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -98,8 +98,10 @@ by everyone reads records with `listViewRecords` and counts them with
|
|
|
98
98
|
- `me()` and `listEntities()` are answered from the boot payload when the manifest
|
|
99
99
|
declares `GET /api/v1/me` / `GET /api/v1/entities` in `cervio_apis`: no round trip.
|
|
100
100
|
- Declare the calls your plugin makes at start in the manifest `boot_requests`
|
|
101
|
-
(same path + query as the code
|
|
102
|
-
|
|
101
|
+
(same path + query as the code): Cervio starts them while the plugin loads and your
|
|
102
|
+
call gets the response at once. A view id from the settings goes in as
|
|
103
|
+
`{settings.<key>}`: `/api/v1/views/{settings.view_id}/records?limit=50` (the key must
|
|
104
|
+
be one of the manifest `settings`; Cervio fills it in per organization).
|
|
103
105
|
- Call `markReady()` once the first data is on screen:
|
|
104
106
|
|
|
105
107
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cervio/plugin-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "SDK for Cervio plugins: CervioUI client, plugin context, /api/v1 client, theme sync, i18n, PDF viewer (./pdf) and write-gate helpers (./policy).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cervio",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"tsup": "^9.0.0",
|
|
64
64
|
"typescript": "^5.8.3",
|
|
65
65
|
"vitest": "^5.0.5",
|
|
66
|
-
"@cervio/plugin-core": "^1.0
|
|
66
|
+
"@cervio/plugin-core": "^1.2.0"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|