@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.
- package/README.md +16 -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
|
|
112
|
-
|
|
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.
|
|
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-
|
|
47
|
-
"@qkix/chartkit-
|
|
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/
|
|
63
|
-
"@qkix/
|
|
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",
|