@ash-cloud/ash-ai 0.1.17 → 0.1.19
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/index.cjs +593 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +222 -12
- package/dist/index.d.ts +222 -12
- package/dist/index.js +592 -81
- package/dist/index.js.map +1 -1
- package/dist/playground/components/NormalizedMessageList.d.ts +7 -1
- package/dist/playground/components/NormalizedMessageList.d.ts.map +1 -1
- package/dist/playground.js +1241 -1181
- package/dist/{schema-dr_7pxIB.d.cts → schema-CAoHu2Rx.d.cts} +21 -2
- package/dist/{schema-dr_7pxIB.d.ts → schema-CAoHu2Rx.d.ts} +21 -2
- package/dist/schema.cjs +11 -0
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +11 -1
- package/dist/schema.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,12 +8,18 @@ export interface NormalizedMessageListProps {
|
|
|
8
8
|
streamingContent?: string;
|
|
9
9
|
/** Callback when user selects an option from assistant message */
|
|
10
10
|
onOptionSelect?: (optionText: string) => void;
|
|
11
|
+
/** Called when user scrolls near the top to load older messages */
|
|
12
|
+
onLoadMore?: () => void;
|
|
13
|
+
/** Whether more messages exist above */
|
|
14
|
+
hasMore?: boolean;
|
|
15
|
+
/** Whether older messages are currently being fetched */
|
|
16
|
+
isLoadingMore?: boolean;
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
19
|
* NormalizedMessageList - Display normalized entries using new AI SDK Elements components
|
|
14
20
|
*
|
|
15
21
|
* Converts NormalizedEntry format to the new Conversation/Message components.
|
|
16
22
|
*/
|
|
17
|
-
export declare function NormalizedMessageList({ entries, loading, streamingContent, onOptionSelect, }: NormalizedMessageListProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function NormalizedMessageList({ entries, loading, streamingContent, onOptionSelect, onLoadMore, hasMore, isLoadingMore, }: NormalizedMessageListProps): import("react/jsx-runtime").JSX.Element;
|
|
18
24
|
export default NormalizedMessageList;
|
|
19
25
|
//# sourceMappingURL=NormalizedMessageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NormalizedMessageList.d.ts","sourceRoot":"","sources":["../../../src/playground/components/NormalizedMessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NormalizedMessageList.d.ts","sourceRoot":"","sources":["../../../src/playground/components/NormalizedMessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,eAAe,EACrB,MAAM,mBAAmB,CAAC;AAM3B,MAAM,WAAW,0BAA0B;IACzC,iDAAiD;IACjD,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,wCAAwC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAMD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,OAAO,EACP,aAAa,GACd,EAAE,0BAA0B,2CAwE5B;AAED,eAAe,qBAAqB,CAAC"}
|