@cntyclub/agent-react 0.16.0 → 0.17.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/dist/components/agent-panel.d.ts.map +1 -1
- package/dist/components/message-item.d.ts +5 -1
- package/dist/components/message-item.d.ts.map +1 -1
- package/dist/components/thinking-indicator.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +174 -120
- package/dist/index.js.map +1 -1
- package/dist/use-smooth-text.d.ts +17 -0
- package/dist/use-smooth-text.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A smooth "typewriter" over streamed text.
|
|
3
|
+
*
|
|
4
|
+
* Given the full text accumulated so far (`target`) and whether this message is
|
|
5
|
+
* the live one (`animate`), returns the slice that should currently be shown.
|
|
6
|
+
* The displayed length eases toward `target.length` on each animation frame —
|
|
7
|
+
* fast, but soft enough that chunks don't pop in all at once.
|
|
8
|
+
*
|
|
9
|
+
* - Historical / non-live messages (`animate` false) render in full instantly.
|
|
10
|
+
* - Once a message has started animating it keeps draining to the end even
|
|
11
|
+
* after `animate` flips false (stream finished), so the tail never snaps.
|
|
12
|
+
* - `target` is treated as append-only (streamed text only grows); a shrink
|
|
13
|
+
* clamps the cursor down rather than re-typing.
|
|
14
|
+
* - Honors `prefers-reduced-motion` (renders in full, no animation).
|
|
15
|
+
*/
|
|
16
|
+
export declare function useSmoothText(target: string, animate: boolean): string;
|
|
17
|
+
//# sourceMappingURL=use-smooth-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-smooth-text.d.ts","sourceRoot":"","sources":["../src/use-smooth-text.ts"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CA0CtE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntyclub/agent-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Embeddable AI agent chat widget for Country Club dashboards — floating button, popup panel, fullscreen Agent Mode, MCP tool approvals, and paginated result tables. Built exclusively on @cntyclub/ui-react.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"motion": "^12.42.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@cntyclub/ui-react": ">=0.
|
|
28
|
+
"@cntyclub/ui-react": ">=0.13.0",
|
|
29
29
|
"react": "^19.0.0",
|
|
30
30
|
"react-dom": "^19.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@cntyclub/ui-react": "^0.
|
|
33
|
+
"@cntyclub/ui-react": "^0.13.0",
|
|
34
34
|
"@types/react": "^19.2.13",
|
|
35
35
|
"@types/react-dom": "^19.2.3",
|
|
36
36
|
"openapi-typescript": "^7.13.0",
|