@qkix/strapi-plugin-chartkit 0.1.0 → 0.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.
Files changed (2) hide show
  1. package/README.md +16 -2
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -108,8 +108,22 @@ would be an offer to overwrite it.
108
108
  Chartkit is two surfaces over one editor. If you use
109
109
  [Better Blocks](https://www.npmjs.com/package/@qkix/strapi-plugin-better-blocks),
110
110
  charts can live inside a rich-text document as a block instead of, or as well
111
- as, in a field of their own — see `@qkix/chartkit-core`'s `chartBlock` and the
112
- `registerBlock` API.
111
+ as, in a field of their own. Register it from your app's `src/admin/app.tsx`:
112
+
113
+ ```ts
114
+ import { registerBlock } from '@qkix/strapi-plugin-better-blocks/strapi-admin';
115
+ import { chartBlockDefinition } from '@qkix/chartkit-editor/block';
116
+
117
+ export default {
118
+ register() {
119
+ registerBlock(chartBlockDefinition({ locale: 'en-US' }));
120
+ },
121
+ };
122
+ ```
123
+
124
+ The front end needs its own half — `chartBlockPlugin` from whichever renderer
125
+ you use — or a chart authored in a document is stored correctly and drawn as
126
+ nothing.
113
127
 
114
128
  ## Packages
115
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qkix/strapi-plugin-chartkit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Charts for Strapi v5, rendered as server-side SVG with no client-side JavaScript",
5
5
  "strapi": {
6
6
  "kind": "plugin",
@@ -43,8 +43,8 @@
43
43
  "dist"
44
44
  ],
45
45
  "dependencies": {
46
- "@qkix/chartkit-core": "^0.2.0",
47
- "@qkix/chartkit-editor": "^0.1.1"
46
+ "@qkix/chartkit-editor": "^0.1.2",
47
+ "@qkix/chartkit-core": "^0.2.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@strapi/sdk-plugin": "^5.3.2",
@@ -59,8 +59,8 @@
59
59
  "styled-components": "^6.1.17",
60
60
  "typescript": "^5.8.3",
61
61
  "vitest": "^3.2.4",
62
- "@qkix/tsconfig": "0.0.0",
63
- "@qkix/eslint-config": "0.0.0"
62
+ "@qkix/eslint-config": "0.0.0",
63
+ "@qkix/tsconfig": "0.0.0"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@strapi/admin": "^5.0.0",