tsgrid-ui 1.0.1 → 2.1.0
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/CHANGELOG.md +72 -0
- package/MIGRATION_v2.md +178 -0
- package/dist/tsgrid-ui.css +2 -2
- package/dist/tsgrid-ui.d.ts +136 -112
- package/dist/tsgrid-ui.es6.js +11281 -10752
- package/dist/tsgrid-ui.js +11285 -10756
- package/dist/tsgrid-ui.min.css +2 -2
- package/package.json +22 -21
- package/{README.md → readme.md} +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsgrid-ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"./dist/tsgrid-ui.css",
|
|
6
6
|
"./dist/tsgrid-ui.min.css"
|
|
@@ -47,8 +47,27 @@
|
|
|
47
47
|
"LICENSE",
|
|
48
48
|
"README.md",
|
|
49
49
|
"CHANGELOG.md",
|
|
50
|
-
"MIGRATION-FROM-W2UI.md"
|
|
50
|
+
"MIGRATION-FROM-W2UI.md",
|
|
51
|
+
"MIGRATION_v2.md"
|
|
51
52
|
],
|
|
53
|
+
"scripts": {
|
|
54
|
+
"start": "run-script-os",
|
|
55
|
+
"start:win32": "start http://localhost:3500 & python -m http.server 3500",
|
|
56
|
+
"start:nix": "open http://localhost:3500; python3 -m http.server 3500",
|
|
57
|
+
"lint": "eslint src --ext .js,.ts",
|
|
58
|
+
"typecheck": "tsc --noEmit",
|
|
59
|
+
"build:css": "gulp less && gulp icons",
|
|
60
|
+
"build:js": "tsup --config tsup.config.ts && node scripts/wrap-legacy.mjs",
|
|
61
|
+
"build": "pnpm build:css && pnpm build:js",
|
|
62
|
+
"smoke": "playwright test",
|
|
63
|
+
"smoke:update": "playwright test --update-snapshots",
|
|
64
|
+
"consumer-smoke": "tsc --noEmit --project test/tsconfig.json",
|
|
65
|
+
"test:unit": "vitest run --passWithNoTests",
|
|
66
|
+
"test:unit:watch": "vitest",
|
|
67
|
+
"verify": "pnpm lint && pnpm typecheck && pnpm consumer-smoke && pnpm test:unit && pnpm smoke",
|
|
68
|
+
"test": "pnpm lint && pnpm typecheck",
|
|
69
|
+
"dev": "tsup --watch"
|
|
70
|
+
},
|
|
52
71
|
"devDependencies": {
|
|
53
72
|
"@playwright/test": "^1.59.1",
|
|
54
73
|
"@types/node": "^25.6.2",
|
|
@@ -70,23 +89,5 @@
|
|
|
70
89
|
"tsup": "^8.5.1",
|
|
71
90
|
"typescript": "^5.9.3",
|
|
72
91
|
"vitest": "^4.1.5"
|
|
73
|
-
},
|
|
74
|
-
"scripts": {
|
|
75
|
-
"start": "run-script-os",
|
|
76
|
-
"start:win32": "start http://localhost:3500 & python -m http.server 3500",
|
|
77
|
-
"start:nix": "open http://localhost:3500; python3 -m http.server 3500",
|
|
78
|
-
"lint": "eslint src --ext .js,.ts",
|
|
79
|
-
"typecheck": "tsc --noEmit",
|
|
80
|
-
"build:css": "gulp less && gulp icons",
|
|
81
|
-
"build:js": "tsup --config tsup.config.ts && node scripts/wrap-legacy.mjs",
|
|
82
|
-
"build": "pnpm build:css && pnpm build:js",
|
|
83
|
-
"smoke": "playwright test",
|
|
84
|
-
"smoke:update": "playwright test --update-snapshots",
|
|
85
|
-
"consumer-smoke": "tsc --noEmit --project test/tsconfig.json",
|
|
86
|
-
"test:unit": "vitest run --passWithNoTests",
|
|
87
|
-
"test:unit:watch": "vitest",
|
|
88
|
-
"verify": "pnpm lint && pnpm typecheck && pnpm consumer-smoke && pnpm test:unit && pnpm smoke",
|
|
89
|
-
"test": "pnpm lint && pnpm typecheck",
|
|
90
|
-
"dev": "tsup --watch"
|
|
91
92
|
}
|
|
92
|
-
}
|
|
93
|
+
}
|
package/{README.md → readme.md}
RENAMED
|
@@ -7,6 +7,13 @@ TypeScript-native UI component library: data grid, forms, fields, layout, sideba
|
|
|
7
7
|
[](https://www.npmjs.com/package/tsgrid-ui)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
10
|
+
> **v2.0 is a breaking release.** Event handler types changed (`CustomEvent` →
|
|
11
|
+
> `TsEventPayload`) and the internal `src/tsgrid.ts` has been decomposed into 8 sibling
|
|
12
|
+
> modules. The public API is unchanged — barrel consumers need no updates. Consumers who
|
|
13
|
+
> explicitly annotated handlers with `CustomEvent` must apply a one-line codemod. No bundle
|
|
14
|
+
> reduction is claimed. See [MIGRATION_v2.md](MIGRATION_v2.md) for the codemod regex,
|
|
15
|
+
> full migration guide, and release checklist.
|
|
16
|
+
|
|
10
17
|
## Install
|
|
11
18
|
|
|
12
19
|
```bash
|