angel-table 0.1.2 → 0.1.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 +0 -36
- package/package.json +20 -10
package/README.md
CHANGED
|
@@ -331,39 +331,3 @@ import { Table } from 'angel-table';
|
|
|
331
331
|
## License
|
|
332
332
|
|
|
333
333
|
Mit
|
|
334
|
-
|
|
335
|
-
# React + TypeScript + Vite
|
|
336
|
-
|
|
337
|
-
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
|
|
338
|
-
|
|
339
|
-
Currently, two official plugins are available:
|
|
340
|
-
|
|
341
|
-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
|
342
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
|
343
|
-
|
|
344
|
-
## React Compiler
|
|
345
|
-
|
|
346
|
-
The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.
|
|
347
|
-
|
|
348
|
-
Note: This will impact Vite dev & build performances.
|
|
349
|
-
You can also try [the experimental native React Compiler support in plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md#rust-react-compiler) by using `compiler: true` in the plugin options instead of using the Babel plugin.
|
|
350
|
-
|
|
351
|
-
## Expanding the Oxlint configuration
|
|
352
|
-
|
|
353
|
-
If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:
|
|
354
|
-
|
|
355
|
-
```json
|
|
356
|
-
{
|
|
357
|
-
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
358
|
-
"plugins": ["react", "typescript", "oxc"],
|
|
359
|
-
"options": {
|
|
360
|
-
"typeAware": true
|
|
361
|
-
},
|
|
362
|
-
"rules": {
|
|
363
|
-
"react/rules-of-hooks": "error",
|
|
364
|
-
"react/only-export-components": ["warn", { "allowConstantExport": true }]
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angel-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "A flexible and customizable React Table component",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"files": [
|
|
6
7
|
"dist",
|
|
@@ -8,24 +9,31 @@
|
|
|
8
9
|
],
|
|
9
10
|
"main": "./dist/angel-table.umd.cjs",
|
|
10
11
|
"module": "./dist/angel-table.js",
|
|
12
|
+
"types": "./dist/lib/main.d.ts",
|
|
13
|
+
"style": "./dist/style.css",
|
|
11
14
|
"exports": {
|
|
12
15
|
".": {
|
|
16
|
+
"types": "./dist/lib/main.d.ts",
|
|
13
17
|
"import": "./dist/angel-table.js",
|
|
14
18
|
"require": "./dist/angel-table.umd.cjs"
|
|
15
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"./style.css": "./dist/style.css"
|
|
16
21
|
},
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css"
|
|
24
|
+
],
|
|
17
25
|
"scripts": {
|
|
18
26
|
"dev": "vite",
|
|
19
27
|
"prebuild": "rm -rf dist",
|
|
20
28
|
"build": "tsc -b && vite build",
|
|
21
29
|
"lint": "oxlint",
|
|
22
30
|
"preview": "vite preview",
|
|
23
|
-
"
|
|
31
|
+
"prepublishOnly": "npm run build",
|
|
32
|
+
"publish": "npm publish"
|
|
24
33
|
},
|
|
25
|
-
"
|
|
26
|
-
"react": "
|
|
27
|
-
"react-dom": "
|
|
28
|
-
"vite-plugin-dts": "^5.1.2"
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": ">=18.0.0",
|
|
36
|
+
"react-dom": ">=18.0.0"
|
|
29
37
|
},
|
|
30
38
|
"devDependencies": {
|
|
31
39
|
"@babel/core": "^7.29.7",
|
|
@@ -34,11 +42,13 @@
|
|
|
34
42
|
"@types/node": "^24.19.2",
|
|
35
43
|
"@types/react": "^19.3.0",
|
|
36
44
|
"@types/react-dom": "^19.3.0",
|
|
37
|
-
"@typescript/typescript6": "^6.0.2",
|
|
38
45
|
"@vitejs/plugin-react": "^6.1.2",
|
|
39
46
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
40
47
|
"oxlint": "^1.90.0",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
48
|
+
"react": "^19.3.1",
|
|
49
|
+
"react-dom": "^19.3.1",
|
|
50
|
+
"typescript": "^6.0.3",
|
|
51
|
+
"vite": "^8.3.6",
|
|
52
|
+
"vite-plugin-dts": "^5.1.2"
|
|
43
53
|
}
|
|
44
54
|
}
|