@revolist/react-datagrid 4.8.0 → 4.8.2

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 +52 -24
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 🚨 Repository Notice 🚨
2
+
3
+ This repo is read-only and will be **deprecated** in v5+ in favor of monorepos. Post issues [here](https://github.com/revolist/revogrid). Happy coding! 🖥️💻
4
+
5
+ ---
6
+
1
7
  <p align="center">
2
8
  <a href="https://rv-grid.com">
3
9
  <img src="./assets/logo.svg" alt="RevoGrid" height="150" />
@@ -104,7 +110,7 @@ Support Millions of cells and thousands of columns easy and efficiently for fast
104
110
 
105
111
 
106
112
 
107
- ### Usage React [Example](https://codesandbox.io/s/data-vue-test-3wkzi?file=/src/App.vue)
113
+ ### Usage React
108
114
 
109
115
  With NPM:
110
116
 
@@ -120,21 +126,13 @@ yarn add @revolist/react-datagrid;
120
126
 
121
127
  ```tsx
122
128
  // App.tsx
123
- import { RevoGrid, Template, Editor, type EditorType } from '@revolist/react-datagrid';
124
- import { ColumnDataSchemaModel, Editors } from '@revolist/revogrid';
125
- import { createContext, useContext } from 'react';
126
-
127
- /**
128
- * Showcase
129
- */
130
- export const LevelContext = createContext('My custom context to pass to cell');
129
+ import { RevoGrid, Template, Editor, type EditorType, type ColumnDataSchemaModel, type Editors } from '@revolist/react-datagrid';
131
130
 
132
131
  /**
133
132
  * Custom cell component
134
133
  */
135
- const Cell = ({ model, prop }: ColumnDataSchemaModel) => {
136
- const level = useContext(LevelContext);
137
- return <div><strong title={level}>{model[prop]}</strong></div>;
134
+ const Cell = ({ model, prop, value }: ColumnDataSchemaModel) => {
135
+ return <div><strong>{value}</strong></div>;
138
136
  };
139
137
 
140
138
  /**
@@ -180,28 +178,58 @@ export default App
180
178
 
181
179
  ```
182
180
 
183
-
184
- ## Versions
185
-
186
- - **2.0+**: Introduced the plugin system, grouping, sorting, and filtering.
187
- - **3.0+**: Breaking changes introduced. See the [migration guide](./docs/guide/migration.md).
188
- This version features new component loading, ESM modules, Bootstrap support, and much [more](./docs/guide/migration.md).
189
- - **4.0+**: Breaking changes introduced. See the [migration guide](./docs/guide/migration.md). In this version, we rethought our framework approach, updated typings, fixed major issues, updated core and significantly improved overall performance. The grid is now much faster, with better plugin support and full framework support for Angular, React, and Vue, along with partial support for Ember and Svelte. Redesigned the documentation, and added more examples.
181
+ [Example and guide](https://rv-grid.com/guide/react/)
190
182
 
191
183
 
192
184
 
193
- ## Sponsors
194
-
195
- We would like to extend our heartfelt gratitude to our sponsor for their generous support. Their contributions help us maintain and develop RevoGrid, ensuring continuous improvements and updates. If you are using RevoGrid in your project and would like to support its development, consider becoming a sponsor.
185
+ ## Versions
196
186
 
197
- ### Our Sponsors
187
+ - **2.0+**: Introduced the plugin system, grouping, sorting, and filtering.
188
+ - **3.0+**: Breaking changes introduced:
189
+ - Removed the redundant viewport component.
190
+ - Renamed classes to support Bootstrap and other libraries:
191
+ - `row` -> `rgRow`
192
+ - `col` -> `rgCol`
193
+ - `data-cell` -> `rgCell`
194
+ - `data-header-cell` -> `rgHeaderCell`
195
+ - Migrated all method names to lowercase to align with modern event naming conventions. For example, `afterEdit` is now `afteredit`. Check the API for details.
196
+ - Added support for pure ESM modules to enable the use of the grid in all modern frontend tooling like Vite, Parcel, etc. You can now import custom elements without lazy loading. Note that you are responsible for polyfills.
197
+
198
+
199
+ - **4.0+**: Breaking changes introduced. See the [migration guide](https://rv-grid.com/guide/migration).
200
+
201
+ - Redesigned type support:
202
+ - Removed deprecated namespaces:
203
+ - **Before**: `RevoGrid.ColumnDataSchemaRegular`
204
+ - **Now**: `ColumnDataSchemaRegular`;
205
+ - Improved type import:
206
+ - **Before**: `import { RevoGrid } from '@revolist/revogrid/dist/types/interfaces'`
207
+ - **Now**: `import { ColumnDataSchemaRegular } from '@revolist/revogrid'`.
208
+ - Changed viewport type names everywhere. For example, before: `rowDefinitions: [{ type: "row", index: 0, size: 145 }]`, after: `rowDefinitions: [{ type: "rgRow", index: 0, size: 145 }]`.
209
+ - Updated [event](https://rv-grid.com/guide/api/revoGrid.html#Events) naming convention. Review your [event](https://rv-grid.com/guide/api/revoGrid.html#Events) usage. [Event names](https://rv-grid.com/guide/api/revoGrid.html#Events) are all lowercase now and are aligned with modern event naming conventions. For example, `afterEdit` -> `afteredit`.
210
+
211
+ - **Major improvements**:
212
+ - Rethought the entire framework approach. Introduced Pro version with advance support and pro features.
213
+ - Introduced slot support.
214
+ - Updated scrolling system for better mobile support.
215
+ - Advance template support. Introduced `additionalData` for templates and editors. `Prop` gives access to parent/root app context.
216
+ - Redesigned the documentation.
217
+ - Fixed major issues and significantly improved overall performance, making the grid multiple time faster.
218
+ - Enhanced plugin support - now with full access to grid providers.
219
+ - Updated documentation.
220
+ - Provided full framework support and native render for Angular, React, Svelte and Vue.
221
+
222
+
223
+ ## Our Sponsors
224
+
225
+ We would like to extend our heartfelt gratitude to our sponsors for their generous support. Their contributions help us maintain and develop RevoGrid, ensuring continuous improvements and updates.
198
226
 
199
227
  [![Altruistiq](https://cdn.prod.website-files.com/62cd69e08130a1a33f5ef900/6310b4d500e971695db5e9c3_615b5db69ce8931a276e5ed2_Social_Icons_AQ_3_32x32.png)](https://altruistiq.com)
200
228
 
201
229
 
202
230
  ### Become a Sponsor
203
231
 
204
- If you or your company would like to support the ongoing development of RevoGrid, please consider becoming a sponsor. Your support will help us continue to improve the project and provide the best possible tool for the community.
232
+ If you or your company would like to support the ongoing development of RevoGrid, please consider becoming a sponsor or use or [Pro version](https://rv-grid.com/pro/). Your support will help us continue to improve the project and provide the best possible tool for the community.
205
233
 
206
234
  [![Sponsor Us](https://img.shields.io/badge/Sponsor%20Us-%F0%9F%92%96-brightgreen)](https://opencollective.com/revogrid)
207
235
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@revolist/react-datagrid",
3
3
  "sideEffects": false,
4
- "version": "4.8.0",
4
+ "version": "4.8.2",
5
5
  "description": "React DataGrid Spreadsheet component with native cell render support",
6
6
  "main": "./dist/react-datagrid.umd.cjs",
7
7
  "module": "./dist/react-datagrid.js",
@@ -64,7 +64,7 @@
64
64
  "homepage": "https://github.com/revolist/revogrid#readme",
65
65
  "license": "MIT",
66
66
  "dependencies": {
67
- "@revolist/revogrid": "4.8.0"
67
+ "@revolist/revogrid": "4.8.2"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/react": "^18.3.2",