Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
=======================================
Coverage 92.64% 92.64%
=======================================
Files 85 85
Lines 1481 1481
Branches 222 222
=======================================
Hits 1372 1372
Misses 91 91
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
docs/guide/providers.md
Outdated
| Define a plugin function that integrates DataGrid with Chartlets. | ||
|
|
||
| ```typescript | ||
| import { DataGrid } from "chartlets/packages/lib/src/plugins/mui/DataGrid"; |
There was a problem hiding this comment.
I am just not sure about this import line. When I tested it in xcube-viewer, it was imported like the following:
import { DataGrid } from "../../../chartlets/chartlets.js/packages/lib/src/plugins/mui/DataGrid";
What do you think?
There was a problem hiding this comment.
Oh right, overlooked it. This wont work!
| "module": "./dist/vega-plugin.js", | ||
| "require": "./dist/vega-plugin.cjs" | ||
| }, | ||
| "./datagrid": { |
There was a problem hiding this comment.
| "./datagrid": { | |
| "./mui/datagrid": { |
| Define a plugin function that integrates DataGrid with Chartlets. | ||
|
|
||
| ```typescript | ||
| import { DataGrid } from "chartlets/DataGrid"; |
There was a problem hiding this comment.
Components should be default export:
| import { DataGrid } from "chartlets/DataGrid"; | |
| import DataGrid from "chartlets/DataGrid"; |
| chartlets: resolve(__dirname, "src/index.ts"), | ||
| "mui-plugin": resolve(__dirname, "src/plugins/mui/index.ts"), | ||
| "vega-plugin": resolve(__dirname, "src/plugins/vega/index.ts"), | ||
| datagrid: resolve(__dirname, "src/plugins/mui/DataGrid.tsx"), |
There was a problem hiding this comment.
| datagrid: resolve(__dirname, "src/plugins/mui/DataGrid.tsx"), | |
| "mui-plugin-datagrid": resolve(__dirname, "src/plugins/mui/DataGrid.tsx"), |
|
Let's further discuss tomorrow! |
|
Closing this PR as discussed that we are currently fine with the few extra MBs of this library. We can re-open a new PR when it starts becoming an issue. |
This PR removes the
@mui/x-data-gridfrompeerDependenciesas it is quite large and it can be installed by the user if required as a plugin. The Provider's guide is also updated in this PR showing the user how to use DataGrid.