@kanunilabs/pivotgrid-react 1.0.2 → 1.0.3
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 +19 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -76,10 +76,25 @@ function App() {
|
|
|
76
76
|
|
|
77
77
|
That's it — aggregation starts in a Web Worker and the grid renders with drag-and-drop, filtering, sorting and export enabled.
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
### Bundler note: the Web Worker
|
|
80
|
+
|
|
81
|
+
The engine resolves its worker via `import.meta.url`, which some bundlers can't
|
|
82
|
+
follow into `node_modules`. If the grid renders but never shows data, pass the
|
|
83
|
+
`workerUrl` prop:
|
|
84
|
+
|
|
85
|
+
**Vite** — import the worker as an asset URL (no manual copying, survives
|
|
86
|
+
`npm update`):
|
|
87
|
+
|
|
88
|
+
```jsx
|
|
89
|
+
import workerUrl from '@kanunilabs/pivotgrid-core/dist/pivot.worker.js?url';
|
|
90
|
+
|
|
91
|
+
<BasePivotGrid workerUrl={workerUrl} /* ... */ />
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Next.js / other bundlers** — copy
|
|
95
|
+
`@kanunilabs/pivotgrid-core/dist/pivot.worker.js` into a served path (e.g.
|
|
96
|
+
`public/kanunilabs/`) and pass `workerUrl="/kanunilabs/pivot.worker.js"`. See
|
|
97
|
+
the [Next.js setup guide](https://www.kanunilabs.com/docs/pivotgrid/nextjs).
|
|
83
98
|
|
|
84
99
|
## Enterprise edition
|
|
85
100
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanunilabs/pivotgrid-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "High-performance React pivot table with a Web Worker engine — drag-and-drop pivoting, filtering, sorting, theming and export",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@kanunilabs/pivotgrid-core": "1.0.
|
|
63
|
+
"@kanunilabs/pivotgrid-core": "1.0.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@tailwindcss/postcss": "^4.3.0",
|