@40rty/ams-ui 0.5.3 → 0.5.4
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/types/conversation/ClosingQuestion.d.ts +13 -0
- package/dist/types/conversation/ConversationCanvas.d.ts +11 -0
- package/dist/types/conversation/PageComposer.d.ts +12 -0
- package/dist/types/conversation/ResultSheet.d.ts +9 -0
- package/dist/types/conversation/TurnCanvas.d.ts +12 -0
- package/dist/types/conversation/TurnHeader.d.ts +9 -0
- package/dist/types/conversation/activity-line.d.ts +3 -0
- package/dist/types/conversation/blocks/ProductTile.d.ts +31 -0
- package/dist/types/conversation/blocks/blocks.d.ts +27 -0
- package/dist/types/conversation/blocks/index.d.ts +7 -0
- package/dist/types/conversation/blocks/product-blocks.d.ts +3 -0
- package/dist/types/conversation/blocks/schemas.d.ts +4322 -0
- package/dist/types/conversation/index.d.ts +11 -0
- package/dist/types/conversation/presence-parts.d.ts +15 -0
- package/dist/types/conversation/turn-text.d.ts +31 -0
- package/dist/types/conversation/use-page-products.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { ConversationCanvas } from './ConversationCanvas';
|
|
2
|
+
export { PageComposer, PAGE_COMPOSER_INPUT_ID } from './PageComposer';
|
|
3
|
+
export { TurnHeader } from './TurnHeader';
|
|
4
|
+
export { ResultSheet } from './ResultSheet';
|
|
5
|
+
export { TurnCanvas } from './TurnCanvas';
|
|
6
|
+
export { ClosingQuestion } from './ClosingQuestion';
|
|
7
|
+
export { Facts, ThinkingBand, BentoSkeleton } from './presence-parts';
|
|
8
|
+
export { Rich, RisingWords, crumbLabel, productNamed } from './turn-text';
|
|
9
|
+
export { useActivityLine } from './activity-line';
|
|
10
|
+
export { usePageProducts } from './use-page-products';
|
|
11
|
+
export * from './blocks';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ConversationFact } from '@40rty/ams-sdk';
|
|
3
|
+
export declare const EASE: [number, number, number, number];
|
|
4
|
+
/** What the agent knows; with `onForget`, each fact can be cleared (and all of them at once). */
|
|
5
|
+
export declare function Facts({ facts, onForget }: {
|
|
6
|
+
facts: ConversationFact[];
|
|
7
|
+
onForget?: (fact: ConversationFact) => void;
|
|
8
|
+
}): React.ReactElement;
|
|
9
|
+
/** The agent at work, in the page: what it knows, what it is doing, what it is reading. */
|
|
10
|
+
export declare function ThinkingBand({ facts, status }: {
|
|
11
|
+
facts: ConversationFact[];
|
|
12
|
+
status: string;
|
|
13
|
+
}): React.ReactElement;
|
|
14
|
+
/** Where the answer's blocks will land, held while the turn composes (an 8+4 row, then a full one). */
|
|
15
|
+
export declare function BentoSkeleton(): React.ReactElement;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type Product } from '@40rty/ams-sdk';
|
|
3
|
+
/** A breadcrumb for a turn, from the visitor's own words (no per-turn title exists). */
|
|
4
|
+
export declare function crumbLabel(visitorText: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* The product a name in the prose refers to: the one whose title carries the
|
|
7
|
+
* name as whole words ("Global Travel Pack" in "35L Global Travel Pack"). A name no product carries, or that several do,
|
|
8
|
+
* refers to none — a link that might open the wrong product is not offered.
|
|
9
|
+
*/
|
|
10
|
+
export declare function productNamed(name: string, products: readonly Product[]): Product | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* `**bold**` in the agent's prose, rendered; everything else is plain text.
|
|
13
|
+
* A bold run that names one of `products` is a link to it. `products` is left
|
|
14
|
+
* out where the text already sits inside a control (the folded turn's toggle).
|
|
15
|
+
*/
|
|
16
|
+
export declare function Rich({ text, products }: {
|
|
17
|
+
text: string;
|
|
18
|
+
products?: readonly Product[];
|
|
19
|
+
}): React.ReactElement;
|
|
20
|
+
/**
|
|
21
|
+
* Text whose words rise into place out of a blur, one after another — the
|
|
22
|
+
* design's headline reveal. Streaming-safe: a word that was already shown
|
|
23
|
+
* never re-animates; words arriving together cascade from where the last
|
|
24
|
+
* batch ended. `**bold**` is honoured, and a bold run that names one of
|
|
25
|
+
* `products` is a link to it.
|
|
26
|
+
*/
|
|
27
|
+
export declare function RisingWords({ text, products, delayS }: {
|
|
28
|
+
text: string;
|
|
29
|
+
products: readonly Product[];
|
|
30
|
+
delayS?: number;
|
|
31
|
+
}): React.ReactElement;
|
package/package.json
CHANGED
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"zod": "^3.23.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@40rty/ams-sdk": "0.5.
|
|
79
|
+
"@40rty/ams-sdk": "0.5.4",
|
|
80
80
|
"lucide-react": ">=0.400.0",
|
|
81
81
|
"react": ">=18.0.0",
|
|
82
82
|
"react-dom": ">=18.0.0"
|
|
83
83
|
},
|
|
84
|
-
"version": "0.5.
|
|
84
|
+
"version": "0.5.4",
|
|
85
85
|
"homepage": "https://docs.40rty.ai",
|
|
86
86
|
"license": "UNLICENSED",
|
|
87
87
|
"engines": {
|