@adapttable/ai-react 0.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 +71 -0
- package/LICENSE +21 -0
- package/README.md +45 -0
- package/dist/index.cjs +1098 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +317 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +317 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1094 -0
- package/dist/index.js.map +1 -0
- package/package.json +76 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# @adapttable/ai-react
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9b310ab: Introduce `@adapttable/ai-react`, the React integration for the
|
|
8
|
+
framework-neutral `@adapttable/ai` package.
|
|
9
|
+
|
|
10
|
+
`tableAgent` connects a table's live capabilities, columns, source and host
|
|
11
|
+
callbacks to an agent session. `useTableAssistant` connects the headless
|
|
12
|
+
conversation controller to React. Cell, row and batch editing are exposed
|
|
13
|
+
through their wired editing channels.
|
|
14
|
+
|
|
15
|
+
React DOM 18 or 19 is a peer dependency. Binding-owned view changes are
|
|
16
|
+
committed before returning their execution revision, so sequential commands
|
|
17
|
+
can follow their own updates without accepting unrelated reader changes.
|
|
18
|
+
|
|
19
|
+
The bridge can publish the session, view inputs, approvals and remembered
|
|
20
|
+
allowances to a panel mounted outside the table. Pass the published
|
|
21
|
+
`contextInputs` and `alwaysAllow` state to `useTableAssistant` when the
|
|
22
|
+
panel cannot read the table's feature state directly.
|
|
23
|
+
|
|
24
|
+
`tableAgent` samples the columns whose author set `ai.sample`, once per
|
|
25
|
+
contract, and hands the values into the context — a model then filters on the
|
|
26
|
+
spelling the table stores rather than guessing one.
|
|
27
|
+
|
|
28
|
+
`useTableAssistant` takes `messages` and `onMessagesChange` for a host that
|
|
29
|
+
owns the transcript, and `conversation` for how much of it is sent with each
|
|
30
|
+
turn.
|
|
31
|
+
|
|
32
|
+
`useTableAssistant` returns `resume`, `interrupted` and `resumable` for a
|
|
33
|
+
connection that went while the work carried on, and `progress` for a
|
|
34
|
+
capability that says how far it has got. `onDetach` and `resumeHandle` are
|
|
35
|
+
where a host keeps that work across a page reload. `tableAgent` publishes
|
|
36
|
+
progress through `bridge.progress` and the table's own state.
|
|
37
|
+
|
|
38
|
+
Use an optional native widget from `@adapttable/<kit>/assistant`, or build
|
|
39
|
+
your own UI and transport. This is the package's initial release; no migration
|
|
40
|
+
from an earlier AdaptTable AI React package is required.
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- 28b3c3d: Pass hide and column order to the assistant the same way pin already is, and advertise the Started date filter on the AI demo.
|
|
45
|
+
- 7159258: Send the table's real aggregation ids and page sizes to the model, repair a refused call twice before showing it, and apply a page move after a restated size so setLimit cannot wipe it.
|
|
46
|
+
- e2e22c3: Publish exact AdaptTable runtime dependency versions rather than major-caret
|
|
47
|
+
ranges. Each package resolves the sibling versions it was released with;
|
|
48
|
+
consumers do not need to align package version numbers manually.
|
|
49
|
+
- Updated dependencies [38c2e79]
|
|
50
|
+
- Updated dependencies [28b3c3d]
|
|
51
|
+
- Updated dependencies [7159258]
|
|
52
|
+
- Updated dependencies [e2e22c3]
|
|
53
|
+
- Updated dependencies [65fcbed]
|
|
54
|
+
- Updated dependencies [278a6d5]
|
|
55
|
+
- Updated dependencies [3b3de11]
|
|
56
|
+
- Updated dependencies [cd45219]
|
|
57
|
+
- Updated dependencies [4d05d7b]
|
|
58
|
+
- Updated dependencies [cd45219]
|
|
59
|
+
- Updated dependencies [4d05d7b]
|
|
60
|
+
- @adapttable/ai@0.1.0
|
|
61
|
+
- @adapttable/react@1.0.0
|
|
62
|
+
- @adapttable/core@3.0.0
|
|
63
|
+
|
|
64
|
+
## 0.1.0
|
|
65
|
+
|
|
66
|
+
### Minor Changes
|
|
67
|
+
|
|
68
|
+
- Bind an AdaptTable AI session from a React table. `tableAgent` publishes
|
|
69
|
+
the live manifest. `useTableAssistant` owns the conversation.
|
|
70
|
+
`@adapttable/ai` stays React-free. Kit widgets stay on
|
|
71
|
+
`@adapttable/<kit>/assistant`.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Orwa Mahmoud
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# `@adapttable/ai-react`
|
|
2
|
+
|
|
3
|
+
[](https://orwa-mahmoud.github.io/adapttable/demo/mantine/ai/)
|
|
4
|
+
|
|
5
|
+
React bindings for AdaptTable AI. `tableAgent` publishes a live capability
|
|
6
|
+
manifest from a table. `useTableAssistant` owns the conversation.
|
|
7
|
+
|
|
8
|
+
Use these bindings with any model/backend bridge. A ready chat surface lives
|
|
9
|
+
in each kit's optional `@adapttable/<kit>/assistant` subpath; it is not required.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { tableAgent, useTableAssistant } from "@adapttable/ai-react";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`@adapttable/ai` is installed transitively. Add it as a direct dependency only
|
|
16
|
+
when your application imports its provider-neutral helpers itself.
|
|
17
|
+
|
|
18
|
+
`@adapttable/ai` stays React-free. Kit widgets stay on
|
|
19
|
+
`@adapttable/<kit>/assistant`.
|
|
20
|
+
|
|
21
|
+
Requires React and React DOM **18 or 19**.
|
|
22
|
+
Requires Node.js **22.12.0 or newer**; packed releases are tested on Node 22.12 and Node 24.
|
|
23
|
+
|
|
24
|
+
## See it work
|
|
25
|
+
|
|
26
|
+
`tableAgent` plus the kit assistant — same clips as `@adapttable/ai`.
|
|
27
|
+
|
|
28
|
+
**Filter, sort, and page size** — active people, salary high first, then 10 rows a page
|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
**Group and aggregate** — group by team, average then min salary, then only active
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
**Date range** — only rows that started between 2020 and 2022
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
**Column management** — hide Person, show it again, Status first, then pin it
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
[Integration guide](https://orwa-mahmoud.github.io/adapttable/ai-integrations/) ·
|
|
45
|
+
[API reference](https://orwa-mahmoud.github.io/adapttable/ai/)
|