@useago/sdk 0.4.6 → 0.4.7
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/{AgoClient-rvTz2thR.js → AgoClient-BrYhSO5M.js} +32 -26
- package/dist/AgoClient-CPqPT5s6.cjs +6 -0
- package/dist/angular.cjs +1 -1
- package/dist/angular.d.cts +5 -0
- package/dist/angular.d.ts +5 -0
- package/dist/angular.js +1 -1
- package/dist/{createConversationSession-DGcM_Z3f.cjs → createConversationSession-CGRO0bs2.cjs} +1 -1
- package/dist/{createConversationSession-D-eq8VIo.js → createConversationSession-Dmqd80DX.js} +1 -1
- package/dist/{createFormCollector-DON4vdJV.js → createFormCollector-CPS2phYq.js} +51 -50
- package/dist/createFormCollector-DaWZsBsI.cjs +1 -0
- package/dist/devtools.cjs +3 -3
- package/dist/devtools.d.cts +7 -2
- package/dist/devtools.d.ts +7 -2
- package/dist/devtools.js +41 -35
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +3 -3
- package/dist/react.cjs +19 -19
- package/dist/react.d.cts +16 -0
- package/dist/react.d.ts +16 -0
- package/dist/react.js +1516 -1490
- package/dist/vue.cjs +1 -1
- package/dist/vue.d.cts +5 -0
- package/dist/vue.d.ts +5 -0
- package/dist/vue.js +1 -1
- package/dist/widget.cjs +4 -4
- package/dist/widget.d.cts +5 -0
- package/dist/widget.d.ts +5 -0
- package/dist/widget.js +300 -286
- package/package.json +1 -1
- package/dist/AgoClient-D4EL6nva.cjs +0 -6
- package/dist/createFormCollector-IO6bfPQx.cjs +0 -1
package/dist/react.d.cts
CHANGED
|
@@ -218,6 +218,11 @@ declare interface AgoClientEvents {
|
|
|
218
218
|
conversationId: string;
|
|
219
219
|
messageId: string;
|
|
220
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* The main answer text is done (backend emitted `status: "DONE"`), but follow-up
|
|
223
|
+
* replies may still be pending. Fires once, before `message:complete`.
|
|
224
|
+
*/
|
|
225
|
+
"message:answer-complete": AgoMessage;
|
|
221
226
|
"message:complete": AgoMessage;
|
|
222
227
|
"message:error": {
|
|
223
228
|
error: string;
|
|
@@ -697,6 +702,17 @@ export declare interface MessageProps {
|
|
|
697
702
|
className?: string;
|
|
698
703
|
/** Show the agent name above assistant messages. Defaults to `false`. */
|
|
699
704
|
showAgentName?: boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Whether this is the last message in the list. Follow-up suggestions only
|
|
707
|
+
* render on the last message. Defaults to `false`.
|
|
708
|
+
*/
|
|
709
|
+
isLast?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* The main answer is done but its follow-up replies are still being generated.
|
|
712
|
+
* On the last message this renders the "..." indicator in the follow-up slot
|
|
713
|
+
* until the suggestions arrive. Defaults to `false`.
|
|
714
|
+
*/
|
|
715
|
+
isAwaitingFollowUps?: boolean;
|
|
700
716
|
/**
|
|
701
717
|
* Called when the user clicks a suggested follow-up reply. When omitted the
|
|
702
718
|
* follow-up buttons render but are not interactive (backwards-compatible).
|
package/dist/react.d.ts
CHANGED
|
@@ -218,6 +218,11 @@ declare interface AgoClientEvents {
|
|
|
218
218
|
conversationId: string;
|
|
219
219
|
messageId: string;
|
|
220
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* The main answer text is done (backend emitted `status: "DONE"`), but follow-up
|
|
223
|
+
* replies may still be pending. Fires once, before `message:complete`.
|
|
224
|
+
*/
|
|
225
|
+
"message:answer-complete": AgoMessage;
|
|
221
226
|
"message:complete": AgoMessage;
|
|
222
227
|
"message:error": {
|
|
223
228
|
error: string;
|
|
@@ -697,6 +702,17 @@ export declare interface MessageProps {
|
|
|
697
702
|
className?: string;
|
|
698
703
|
/** Show the agent name above assistant messages. Defaults to `false`. */
|
|
699
704
|
showAgentName?: boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Whether this is the last message in the list. Follow-up suggestions only
|
|
707
|
+
* render on the last message. Defaults to `false`.
|
|
708
|
+
*/
|
|
709
|
+
isLast?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* The main answer is done but its follow-up replies are still being generated.
|
|
712
|
+
* On the last message this renders the "..." indicator in the follow-up slot
|
|
713
|
+
* until the suggestions arrive. Defaults to `false`.
|
|
714
|
+
*/
|
|
715
|
+
isAwaitingFollowUps?: boolean;
|
|
700
716
|
/**
|
|
701
717
|
* Called when the user clicks a suggested follow-up reply. When omitted the
|
|
702
718
|
* follow-up buttons render but are not interactive (backwards-compatible).
|