@grampro/kit 2.4.0 → 2.4.1

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 (30) hide show
  1. package/CHANGELOG.md +173 -139
  2. package/index.cjs +53 -13
  3. package/package.json +77 -76
  4. package/source/components/accordion/passport.json +1 -1
  5. package/source/components/alert/passport.json +1 -1
  6. package/source/components/avatar/passport.json +1 -1
  7. package/source/components/badge/passport.json +1 -1
  8. package/source/components/breadcrumb/passport.json +1 -1
  9. package/source/components/button/passport.json +1 -1
  10. package/source/components/card/passport.json +1 -1
  11. package/source/components/checkbox/passport.json +1 -1
  12. package/source/components/combobox/passport.json +1 -1
  13. package/source/components/data-grid/passport.json +1 -1
  14. package/source/components/date-picker/passport.json +1 -1
  15. package/source/components/dialog/passport.json +1 -1
  16. package/source/components/file-uploader/passport.json +1 -1
  17. package/source/components/input/passport.json +1 -1
  18. package/source/components/menu/passport.json +1 -1
  19. package/source/components/modal/passport.json +1 -1
  20. package/source/components/number-input/passport.json +1 -1
  21. package/source/components/popover/passport.json +1 -1
  22. package/source/components/progress/passport.json +1 -1
  23. package/source/components/radio-group/passport.json +1 -1
  24. package/source/components/skeleton/passport.json +1 -1
  25. package/source/components/spinner/passport.json +1 -1
  26. package/source/components/switch/passport.json +1 -1
  27. package/source/components/tabs/passport.json +1 -1
  28. package/source/components/textarea/passport.json +1 -1
  29. package/source/components/toaster/passport.json +1 -1
  30. package/source/components/tooltip/passport.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,139 +1,173 @@
1
- # Changelog
2
-
3
- ## 2.4.0
4
-
5
- The first release published as **`@grampro/kit`**. `gbs-add-block` keeps
6
- working for now and installs the same components, but new work happens here.
7
-
8
- ### The package has a new name
9
-
10
- ```bash
11
- npx @grampro/kit add DataGrid
12
- ```
13
-
14
- `npx gbs-add-block` still resolves, and the `gbs-add-block` binary is still
15
- installed, so existing scripts keep running. Both will stay for a few
16
- releases before the old name is deprecated.
17
-
18
- ### Commands read as commands
19
-
20
- `add`, `list`, `skill` and `passport` are verbs now:
21
-
22
- ```bash
23
- npx @grampro/kit add Button DataGrid
24
- npx @grampro/kit list
25
- npx @grampro/kit skill --for claude
26
- npx @grampro/kit passport --check
27
- ```
28
-
29
- The old flag spellings (`-a Button`, `-skill`, `-passport`) still work and
30
- print the new spelling once. `--legacy` reaches the 1.x component set, which
31
- is where `--beta` went: it used to opt *in* to the current components, and
32
- there is nothing left to opt into.
33
-
34
- ### You choose where components land
35
-
36
- The destination was fixed at `component-lib/` in the directory you ran the
37
- command from, which put it beside `src/` rather than inside it for most
38
- projects. Now:
39
-
40
- - `--dest <path>` puts them wherever you want.
41
- - Failing that, an install already in the project wins, so a second `add`
42
- lands beside the first. That is how a custom `--dest` is remembered; no
43
- config file is written into your project.
44
- - Failing that, a project with a `src/` folder gets `src/component-lib/`,
45
- and everything else keeps `component-lib/` at the root.
46
-
47
- Nothing moves on its own: if you already have `component-lib/`, that is
48
- still where components go.
49
-
50
- The stylesheet import printed after an install now names the path the files
51
- actually landed at, relative to your project root.
52
-
53
- ### Fixed
54
-
55
- - `add Button --dest app/ui` tried to install a component called `app/ui`.
56
- A flag's value was being read as a component name; the same was true of
57
- `--for`.
58
-
59
- ### Internal
60
-
61
- The library source moved from `source/beta-components` to
62
- `source/components`, and the 1.x set from `source/components` to
63
- `source/legacy-components`. This changes nothing for installed components —
64
- the files you receive and their import paths are identical — but every
65
- `passport.json` has a new `sourceHash`, because that hash covers
66
- repo-relative paths.
67
-
68
- ## 2.3.0
69
-
70
- Published as a minor, but **it contains one breaking change to styling**. Read
71
- the upgrade note below before updating.
72
-
73
- ### Breaking: component CSS is no longer in a cascade layer
74
-
75
- Component rules used to live in `@layer gbs`, and 2.1.0 asked Tailwind v4
76
- projects to add `@layer gbs, utilities;` to their global CSS. Both are gone.
77
-
78
- A cascade layer loses to *any* unlayered stylesheet regardless of specificity,
79
- and Tailwind v3's preflight and Bootstrap's Reboot are both unlayered. Measured
80
- on 2.2.0: under Tailwind v3 the components rendered with `border: 0` and
81
- `padding-left: 0`; under Bootstrap every button was square. No host-side
82
- declaration could fix either, because nothing layered can outrank unlayered CSS.
83
-
84
- Component CSS now ships unlayered and wins on ordinary specificity, so Tailwind
85
- v3, Bootstrap and framework-free projects work with no setup at all.
86
-
87
- **What to change:**
88
-
89
- - Delete any `@layer gbs, utilities;` (or similar) line you added for 2.1.0.
90
- - Import the generated barrel instead of individual stylesheets:
91
- `@import "./component-lib/gbs.css";`
92
- - **Tailwind v4 only** — import it after the framework and into its components
93
- layer, or utilities stop overriding component rules:
94
- ```css
95
- @import "tailwindcss";
96
- @import "./component-lib/gbs.css" layer(components);
97
- ```
98
-
99
- The installer detects which line you need and prints it.
100
-
101
- ### Added
102
-
103
- - **`<DataGrid ai />`** — a natural-language input above the grid, driven by an
104
- adapter the application supplies through `<GramproAIProvider>`. No model is
105
- bundled, downloaded or named, and with no provider the prop renders nothing.
106
- - **WebMCP** — `registerGridTool(agent)` exposes one tool, `operate_grid`, to a
107
- browser agent. Its schema is generated from the live grid. Needs no model.
108
- - **Generated stylesheet barrel** — the CLI writes `component-lib/gbs.css` on
109
- every install, so the import list stays correct as you add components.
110
- - **Thin scrollbars** across every scrolling surface, themeable from `:root`
111
- via `--gbs-scrollbar-width`, `--gbs-scrollbar-thumb`,
112
- `--gbs-scrollbar-thumb-hover` and `--gbs-scrollbar-track`. Add
113
- `class="gbs-scroll"` to your own scroll areas to match. Scroll containers the
114
- kit does not own are left alone.
115
-
116
- ### Security
117
-
118
- - Pinned `dompurify` to `^3.4.16` via `overrides`, clearing two DOM XSS
119
- advisories reachable through `@grampro/headless-helpers → jspdf`. The 2.0 beta
120
- components never used that chain. `npm audit` is now clean.
121
- - Removed the `path` dependency. `require("path")` resolves to Node's built-in,
122
- so the npm package was inert — a deprecated userland shim sitting in the
123
- dependency tree for no reason.
124
-
125
- ### Documentation
126
-
127
- - Documented what leaves the page with a remote AI adapter: the runtime contract
128
- carries real values from low-cardinality columns. Mark personal columns
129
- `semantics: { email: { pii: true } }` — a PII column is denied *and* never
130
- summarised — or pass `stats: false`. Note that `policy.denyFilter` governs what
131
- may be *done* with a column, not whether it may be *described*.
132
- - Corrected the agent skill's install instructions, which still told agents to
133
- import each stylesheet individually with no `layer()`.
134
-
135
- ### Packaging
136
-
137
- - Test files are no longer published (35 files, 233 KB). They were filtered out
138
- at install time anyway.
139
- - Added `repository`, `homepage` and `bugs` metadata.
1
+ # Changelog
2
+
3
+ ## 2.4.1
4
+
5
+ ### Fixed
6
+
7
+ **The stylesheet import printed after an install is now one you can paste.**
8
+
9
+ 2.4.0 could put the components under `src/`, and printed the path to the
10
+ barrel from the project root -- which is correct from nowhere in particular.
11
+ In a Next.js app it read:
12
+
13
+ ```css
14
+ @import "./src/component-lib/gbs.css" layer(components);
15
+ ```
16
+
17
+ while the file to edit was `src/app/globals.css`, two directories away. You
18
+ had to work out the `../` yourself.
19
+
20
+ The installer now finds your global stylesheet in the usual places
21
+ (`src/app/globals.css`, `app/globals.css`, `src/styles/globals.css`,
22
+ `src/index.css` and friends), names it, and writes the path from there:
23
+
24
+ ```
25
+ Add this to src/app/globals.css:
26
+
27
+ @import "tailwindcss";
28
+ @import "../component-lib/gbs.css" layer(components);
29
+ ```
30
+
31
+ Where no stylesheet is found it falls back to the path from the project root,
32
+ as before. The header inside the generated `gbs.css` follows the same rule.
33
+
34
+ Nothing about the installed components changed; this is the installer's
35
+ output only.
36
+
37
+ ## 2.4.0
38
+
39
+ The first release published as **`@grampro/kit`**. `gbs-add-block` keeps
40
+ working for now and installs the same components, but new work happens here.
41
+
42
+ ### The package has a new name
43
+
44
+ ```bash
45
+ npx @grampro/kit add DataGrid
46
+ ```
47
+
48
+ `npx gbs-add-block` still resolves, and the `gbs-add-block` binary is still
49
+ installed, so existing scripts keep running. Both will stay for a few
50
+ releases before the old name is deprecated.
51
+
52
+ ### Commands read as commands
53
+
54
+ `add`, `list`, `skill` and `passport` are verbs now:
55
+
56
+ ```bash
57
+ npx @grampro/kit add Button DataGrid
58
+ npx @grampro/kit list
59
+ npx @grampro/kit skill --for claude
60
+ npx @grampro/kit passport --check
61
+ ```
62
+
63
+ The old flag spellings (`-a Button`, `-skill`, `-passport`) still work and
64
+ print the new spelling once. `--legacy` reaches the 1.x component set, which
65
+ is where `--beta` went: it used to opt *in* to the current components, and
66
+ there is nothing left to opt into.
67
+
68
+ ### You choose where components land
69
+
70
+ The destination was fixed at `component-lib/` in the directory you ran the
71
+ command from, which put it beside `src/` rather than inside it for most
72
+ projects. Now:
73
+
74
+ - `--dest <path>` puts them wherever you want.
75
+ - Failing that, an install already in the project wins, so a second `add`
76
+ lands beside the first. That is how a custom `--dest` is remembered; no
77
+ config file is written into your project.
78
+ - Failing that, a project with a `src/` folder gets `src/component-lib/`,
79
+ and everything else keeps `component-lib/` at the root.
80
+
81
+ Nothing moves on its own: if you already have `component-lib/`, that is
82
+ still where components go.
83
+
84
+ The stylesheet import printed after an install now names the path the files
85
+ actually landed at, relative to your project root.
86
+
87
+ ### Fixed
88
+
89
+ - `add Button --dest app/ui` tried to install a component called `app/ui`.
90
+ A flag's value was being read as a component name; the same was true of
91
+ `--for`.
92
+
93
+ ### Internal
94
+
95
+ The library source moved from `source/beta-components` to
96
+ `source/components`, and the 1.x set from `source/components` to
97
+ `source/legacy-components`. This changes nothing for installed components —
98
+ the files you receive and their import paths are identical — but every
99
+ `passport.json` has a new `sourceHash`, because that hash covers
100
+ repo-relative paths.
101
+
102
+ ## 2.3.0
103
+
104
+ Published as a minor, but **it contains one breaking change to styling**. Read
105
+ the upgrade note below before updating.
106
+
107
+ ### Breaking: component CSS is no longer in a cascade layer
108
+
109
+ Component rules used to live in `@layer gbs`, and 2.1.0 asked Tailwind v4
110
+ projects to add `@layer gbs, utilities;` to their global CSS. Both are gone.
111
+
112
+ A cascade layer loses to *any* unlayered stylesheet regardless of specificity,
113
+ and Tailwind v3's preflight and Bootstrap's Reboot are both unlayered. Measured
114
+ on 2.2.0: under Tailwind v3 the components rendered with `border: 0` and
115
+ `padding-left: 0`; under Bootstrap every button was square. No host-side
116
+ declaration could fix either, because nothing layered can outrank unlayered CSS.
117
+
118
+ Component CSS now ships unlayered and wins on ordinary specificity, so Tailwind
119
+ v3, Bootstrap and framework-free projects work with no setup at all.
120
+
121
+ **What to change:**
122
+
123
+ - Delete any `@layer gbs, utilities;` (or similar) line you added for 2.1.0.
124
+ - Import the generated barrel instead of individual stylesheets:
125
+ `@import "./component-lib/gbs.css";`
126
+ - **Tailwind v4 only** — import it after the framework and into its components
127
+ layer, or utilities stop overriding component rules:
128
+ ```css
129
+ @import "tailwindcss";
130
+ @import "./component-lib/gbs.css" layer(components);
131
+ ```
132
+
133
+ The installer detects which line you need and prints it.
134
+
135
+ ### Added
136
+
137
+ - **`<DataGrid ai />`** — a natural-language input above the grid, driven by an
138
+ adapter the application supplies through `<GramproAIProvider>`. No model is
139
+ bundled, downloaded or named, and with no provider the prop renders nothing.
140
+ - **WebMCP** — `registerGridTool(agent)` exposes one tool, `operate_grid`, to a
141
+ browser agent. Its schema is generated from the live grid. Needs no model.
142
+ - **Generated stylesheet barrel** — the CLI writes `component-lib/gbs.css` on
143
+ every install, so the import list stays correct as you add components.
144
+ - **Thin scrollbars** across every scrolling surface, themeable from `:root`
145
+ via `--gbs-scrollbar-width`, `--gbs-scrollbar-thumb`,
146
+ `--gbs-scrollbar-thumb-hover` and `--gbs-scrollbar-track`. Add
147
+ `class="gbs-scroll"` to your own scroll areas to match. Scroll containers the
148
+ kit does not own are left alone.
149
+
150
+ ### Security
151
+
152
+ - Pinned `dompurify` to `^3.4.16` via `overrides`, clearing two DOM XSS
153
+ advisories reachable through `@grampro/headless-helpers → jspdf`. The 2.0 beta
154
+ components never used that chain. `npm audit` is now clean.
155
+ - Removed the `path` dependency. `require("path")` resolves to Node's built-in,
156
+ so the npm package was inert — a deprecated userland shim sitting in the
157
+ dependency tree for no reason.
158
+
159
+ ### Documentation
160
+
161
+ - Documented what leaves the page with a remote AI adapter: the runtime contract
162
+ carries real values from low-cardinality columns. Mark personal columns
163
+ `semantics: { email: { pii: true } }` — a PII column is denied *and* never
164
+ summarised — or pass `stats: false`. Note that `policy.denyFilter` governs what
165
+ may be *done* with a column, not whether it may be *described*.
166
+ - Corrected the agent skill's install instructions, which still told agents to
167
+ import each stylesheet individually with no `layer()`.
168
+
169
+ ### Packaging
170
+
171
+ - Test files are no longer published (35 files, 233 KB). They were filtered out
172
+ at install time anyway.
173
+ - Added `repository`, `homepage` and `bugs` metadata.
package/index.cjs CHANGED
@@ -222,6 +222,36 @@ const folderFor = (component, beta = false) =>
222
222
  * imports this inside Tailwind's `components` layer, after the framework,
223
223
  * which is the standard way to place third-party CSS.
224
224
  */
225
+ /**
226
+ * The stylesheet a project imports globally, in the usual places.
227
+ *
228
+ * Ordered so the framework conventions come first: whichever exists is the
229
+ * file the printed import line is written relative to, so it can be pasted
230
+ * as-is rather than counting `../` by hand.
231
+ */
232
+ const GLOBAL_CSS_CANDIDATES = [
233
+ "src/app/globals.css",
234
+ "app/globals.css",
235
+ "src/styles/globals.css",
236
+ "styles/globals.css",
237
+ "src/app/global.css",
238
+ "src/index.css",
239
+ "src/main.css",
240
+ "src/global.css",
241
+ ];
242
+
243
+ const findGlobalStylesheet = () =>
244
+ GLOBAL_CSS_CANDIDATES.map((rel) => path.join(process.cwd(), rel)).find((file) =>
245
+ fs.existsSync(file),
246
+ ) ?? null;
247
+
248
+ /** The folder's path as written from inside `file`, posix-style. */
249
+ const relativeFrom = (file, dir) => {
250
+ const rel = path.relative(path.dirname(file), dir).split(path.sep).join("/");
251
+ if (!rel) return ".";
252
+ return rel.startsWith(".") ? rel : "./" + rel;
253
+ };
254
+
225
255
  const writeStyleBarrel = async (destPath, beta) => {
226
256
  if (!beta) return null;
227
257
 
@@ -234,28 +264,27 @@ const writeStyleBarrel = async (destPath, beta) => {
234
264
  .filter((folder) => fs.existsSync(path.join(destPath, folder, "styles.css")))
235
265
  .sort();
236
266
 
237
- // The path from the project root, not just the folder name: with the
238
- // components under src/ the bare name would point somewhere they are not.
239
- const dir =
267
+ const fromRoot =
240
268
  path.relative(process.cwd(), destPath).split(path.sep).join("/") ||
241
269
  path.basename(destPath);
270
+ const globalCss = findGlobalStylesheet();
271
+ const dir = globalCss ? relativeFrom(globalCss, destPath) : fromRoot;
242
272
  const lines = [
243
273
  "/*",
244
274
  " * Generated by @grampro/kit. Rewritten on every install.",
245
275
  " *",
246
- " * Import this once in your global CSS. The paths below are written from",
247
- " * the project root, so adjust them if your global CSS sits deeper.",
276
+ " * Import this once in your global CSS:",
248
277
  " *",
249
278
  " * With Tailwind v4, import it after the framework and inside its",
250
279
  " * components layer:",
251
280
  " *",
252
281
  ' * @import "tailwindcss";',
253
- ' * @import "./' + dir + '/gbs.css" layer(components);',
282
+ ' * @import "' + dir + '/gbs.css" layer(components);',
254
283
  " *",
255
284
  " * With Tailwind v3, Bootstrap, or no framework, the plain import is all",
256
285
  " * you need:",
257
286
  " *",
258
- ' * @import "./' + dir + '/gbs.css";',
287
+ ' * @import "' + dir + '/gbs.css";',
259
288
  " *",
260
289
  " * A component with no styles.css is not listed, which is normal - not",
261
290
  " * every component ships CSS.",
@@ -281,7 +310,14 @@ const writeStyleBarrel = async (destPath, beta) => {
281
310
  /* No package.json, or unreadable: fall through to showing both. */
282
311
  }
283
312
 
284
- return { count: folders.length, dir, tailwindMajor };
313
+ return {
314
+ count: folders.length,
315
+ dir,
316
+ tailwindMajor,
317
+ globalCss: globalCss
318
+ ? path.relative(process.cwd(), globalCss).split(path.sep).join("/")
319
+ : null,
320
+ };
285
321
  };
286
322
 
287
323
  /** Printed after an install, so the one manual step is impossible to miss. */
@@ -290,16 +326,20 @@ const reportStyleBarrel = (barrel) => {
290
326
  console.log(
291
327
  NL + "Styles: wrote gbs.css, importing " + barrel.count + " stylesheet(s).",
292
328
  );
293
- console.log("Add this to your global CSS (paths from the project root):");
329
+ console.log(
330
+ barrel.globalCss
331
+ ? "Add this to " + barrel.globalCss + ":"
332
+ : "Add this to your global CSS (paths from the project root):",
333
+ );
294
334
 
295
335
  if (barrel.tailwindMajor === null) {
296
- console.log(NL + " @import \"./" + barrel.dir + "/gbs.css\";");
336
+ console.log(NL + " @import \"" + barrel.dir + "/gbs.css\";");
297
337
  console.log(
298
338
  NL + " With Tailwind v4, put it after the framework and in its layer:",
299
339
  );
300
340
  console.log(" @import \"tailwindcss\";");
301
341
  console.log(
302
- " @import \"./" + barrel.dir + "/gbs.css\" layer(components);",
342
+ " @import \"" + barrel.dir + "/gbs.css\" layer(components);",
303
343
  );
304
344
  return;
305
345
  }
@@ -307,7 +347,7 @@ const reportStyleBarrel = (barrel) => {
307
347
  if (barrel.tailwindMajor >= 4) {
308
348
  console.log(NL + " @import \"tailwindcss\";");
309
349
  console.log(
310
- " @import \"./" + barrel.dir + "/gbs.css\" layer(components);",
350
+ " @import \"" + barrel.dir + "/gbs.css\" layer(components);",
311
351
  );
312
352
  console.log(
313
353
  NL + " (after the framework, and in its components layer - Tailwind v4" +
@@ -316,7 +356,7 @@ const reportStyleBarrel = (barrel) => {
316
356
  return;
317
357
  }
318
358
 
319
- console.log(NL + " @import \"./" + barrel.dir + "/gbs.css\";");
359
+ console.log(NL + " @import \"" + barrel.dir + "/gbs.css\";");
320
360
  console.log(NL + " (Tailwind v" + barrel.tailwindMajor + ": nothing else to do)");
321
361
  };
322
362
 
package/package.json CHANGED
@@ -1,76 +1,77 @@
1
- {
2
- "name": "@grampro/kit",
3
- "version": "2.4.0",
4
- "description": "GramproKit \u2014 an agent-native UI runtime for React. Copy-in components you own, each publishing a contract that software can read.",
5
- "type": "module",
6
- "files": [
7
- "index.cjs",
8
- "source",
9
- ".gbs",
10
- "tools",
11
- "schema",
12
- "!tools/eval",
13
- "!source/**/__tests__",
14
- "!**/*.test.ts",
15
- "!**/*.test.tsx",
16
- "CHANGELOG.md"
17
- ],
18
- "engines": {
19
- "node": ">=17"
20
- },
21
- "bin": {
22
- "grampro-kit": "index.cjs",
23
- "gbs-add-block": "index.cjs"
24
- },
25
- "scripts": {
26
- "prepublishOnly": "npm test && npm run passport:check",
27
- "test": "pnpm -C playground test",
28
- "passport": "node tools/passport/cli.cjs",
29
- "passport:check": "node tools/passport/cli.cjs --check",
30
- "eval:grid": "node tools/eval/grid/cli.cjs"
31
- },
32
- "keywords": [
33
- "react",
34
- "react-19",
35
- "component-library",
36
- "agent-native",
37
- "ui-runtime",
38
- "ai-agents",
39
- "webmcp",
40
- "data-grid",
41
- "copy-in",
42
- "accessibility"
43
- ],
44
- "author": "Anandhu Remanan",
45
- "license": "ISC",
46
- "dependencies": {
47
- "@grampro/headless-helpers": "^1.0.21",
48
- "fs-extra": "^11.0.4",
49
- "tailwind-merge": "^3.6.0",
50
- "yargs": "^17.7.2"
51
- },
52
- "devDependencies": {
53
- "@huggingface/transformers": "^4.3.1",
54
- "@huggingface/transformers-structured-output": "^4.3.1",
55
- "@types/fs-extra": "^11.0.4",
56
- "typescript": "^6.0.3"
57
- },
58
- "peerDependencies": {
59
- "react": "^19.0.0",
60
- "react-dom": "^19.0.0"
61
- },
62
- "overrides": {
63
- "dompurify": "^3.4.16"
64
- },
65
- "repository": {
66
- "type": "git",
67
- "url": "git+https://github.com/gramproindia/kit.git"
68
- },
69
- "homepage": "https://kit.gramproindia.com",
70
- "bugs": {
71
- "url": "https://github.com/gramproindia/kit/issues"
72
- },
73
- "publishConfig": {
74
- "access": "public"
75
- }
76
- }
1
+ {
2
+ "name": "@grampro/kit",
3
+ "version": "2.4.1",
4
+ "description": "GramproKit \u2014 an agent-native UI runtime for React. Copy-in components you own, each publishing a contract that software can read.",
5
+ "type": "module",
6
+ "files": [
7
+ "index.cjs",
8
+ "source",
9
+ ".gbs",
10
+ "tools",
11
+ "schema",
12
+ "!tools/eval",
13
+ "!source/**/__tests__",
14
+ "!**/*.test.ts",
15
+ "!**/*.test.tsx",
16
+ "CHANGELOG.md"
17
+ ],
18
+ "engines": {
19
+ "node": ">=17"
20
+ },
21
+ "bin": {
22
+ "grampro-kit": "index.cjs",
23
+ "gbs-add-block": "index.cjs"
24
+ },
25
+ "scripts": {
26
+ "prepublishOnly": "npm test && npm run passport:check",
27
+ "version": "npm run passport && git add -A source",
28
+ "test": "pnpm -C playground test",
29
+ "passport": "node tools/passport/cli.cjs",
30
+ "passport:check": "node tools/passport/cli.cjs --check",
31
+ "eval:grid": "node tools/eval/grid/cli.cjs"
32
+ },
33
+ "keywords": [
34
+ "react",
35
+ "react-19",
36
+ "component-library",
37
+ "agent-native",
38
+ "ui-runtime",
39
+ "ai-agents",
40
+ "webmcp",
41
+ "data-grid",
42
+ "copy-in",
43
+ "accessibility"
44
+ ],
45
+ "author": "Anandhu Remanan",
46
+ "license": "ISC",
47
+ "dependencies": {
48
+ "@grampro/headless-helpers": "^1.0.21",
49
+ "fs-extra": "^11.0.4",
50
+ "tailwind-merge": "^3.6.0",
51
+ "yargs": "^17.7.2"
52
+ },
53
+ "devDependencies": {
54
+ "@huggingface/transformers": "^4.3.1",
55
+ "@huggingface/transformers-structured-output": "^4.3.1",
56
+ "@types/fs-extra": "^11.0.4",
57
+ "typescript": "^6.0.3"
58
+ },
59
+ "peerDependencies": {
60
+ "react": "^19.0.0",
61
+ "react-dom": "^19.0.0"
62
+ },
63
+ "overrides": {
64
+ "dompurify": "^3.4.16"
65
+ },
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "git+https://github.com/gramproindia/kit.git"
69
+ },
70
+ "homepage": "https://kit.gramproindia.com",
71
+ "bugs": {
72
+ "url": "https://github.com/gramproindia/kit/issues"
73
+ },
74
+ "publishConfig": {
75
+ "access": "public"
76
+ }
77
+ }
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  },
12
12
  "source": {
13
- "libraryVersion": "2.4.0",
13
+ "libraryVersion": "2.4.1",
14
14
  "files": [
15
15
  "core/index.ts",
16
16
  "core/open.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/index.ts",
14
14
  "core/live.ts",
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "source": {
12
- "libraryVersion": "2.4.0",
12
+ "libraryVersion": "2.4.1",
13
13
  "files": [
14
14
  "core/identity.ts",
15
15
  "core/index.ts",
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "source": {
12
- "libraryVersion": "2.4.0",
12
+ "libraryVersion": "2.4.1",
13
13
  "files": [
14
14
  "core/count.ts",
15
15
  "core/index.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/index.ts",
14
14
  "core/trail.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/index.ts",
14
14
  "core/state.ts",
@@ -12,7 +12,7 @@
12
12
  ]
13
13
  },
14
14
  "source": {
15
- "libraryVersion": "2.4.0",
15
+ "libraryVersion": "2.4.1",
16
16
  "files": [
17
17
  "core/index.ts",
18
18
  "core/trend.ts",
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  },
12
12
  "source": {
13
- "libraryVersion": "2.4.0",
13
+ "libraryVersion": "2.4.1",
14
14
  "files": [
15
15
  "core/group.ts",
16
16
  "core/index.ts",
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "source": {
12
- "libraryVersion": "2.4.0",
12
+ "libraryVersion": "2.4.1",
13
13
  "files": [
14
14
  "core/filter.ts",
15
15
  "core/index.ts",
@@ -14,7 +14,7 @@
14
14
  ]
15
15
  },
16
16
  "source": {
17
- "libraryVersion": "2.4.0",
17
+ "libraryVersion": "2.4.1",
18
18
  "files": [
19
19
  "agent/coerce.ts",
20
20
  "agent/contract.ts",
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  },
12
12
  "source": {
13
- "libraryVersion": "2.4.0",
13
+ "libraryVersion": "2.4.1",
14
14
  "files": [
15
15
  "core/calendar.ts",
16
16
  "core/format.ts",
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "source": {
12
- "libraryVersion": "2.4.0",
12
+ "libraryVersion": "2.4.1",
13
13
  "files": [
14
14
  "core/api.ts",
15
15
  "core/dialog.ts",
@@ -13,7 +13,7 @@
13
13
  ]
14
14
  },
15
15
  "source": {
16
- "libraryVersion": "2.4.0",
16
+ "libraryVersion": "2.4.1",
17
17
  "files": [
18
18
  "core/format.ts",
19
19
  "core/index.ts",
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "source": {
12
- "libraryVersion": "2.4.0",
12
+ "libraryVersion": "2.4.1",
13
13
  "files": [
14
14
  "core/count.ts",
15
15
  "core/index.ts",
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "source": {
19
- "libraryVersion": "2.4.0",
19
+ "libraryVersion": "2.4.1",
20
20
  "files": [
21
21
  "core/index.ts",
22
22
  "core/navigation.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/dismiss.ts",
14
14
  "core/index.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/format.ts",
14
14
  "core/index.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/index.ts",
14
14
  "core/types.ts",
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "source": {
12
- "libraryVersion": "2.4.0",
12
+ "libraryVersion": "2.4.1",
13
13
  "files": [
14
14
  "core/index.ts",
15
15
  "core/progress.ts",
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  },
12
12
  "source": {
13
- "libraryVersion": "2.4.0",
13
+ "libraryVersion": "2.4.1",
14
14
  "files": [
15
15
  "core/group.ts",
16
16
  "core/index.ts",
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "source": {
12
- "libraryVersion": "2.4.0",
12
+ "libraryVersion": "2.4.1",
13
13
  "files": [
14
14
  "core/index.ts",
15
15
  "core/lines.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/index.ts",
14
14
  "core/types.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/index.ts",
14
14
  "core/toggle.ts",
@@ -12,7 +12,7 @@
12
12
  ]
13
13
  },
14
14
  "source": {
15
- "libraryVersion": "2.4.0",
15
+ "libraryVersion": "2.4.1",
16
16
  "files": [
17
17
  "core/index.ts",
18
18
  "core/navigation.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/count.ts",
14
14
  "core/index.ts",
@@ -11,7 +11,7 @@
11
11
  ]
12
12
  },
13
13
  "source": {
14
- "libraryVersion": "2.4.0",
14
+ "libraryVersion": "2.4.1",
15
15
  "files": [
16
16
  "core/api.ts",
17
17
  "core/index.ts",
@@ -8,7 +8,7 @@
8
8
  ]
9
9
  },
10
10
  "source": {
11
- "libraryVersion": "2.4.0",
11
+ "libraryVersion": "2.4.1",
12
12
  "files": [
13
13
  "core/index.ts",
14
14
  "core/types.ts",