@alxxsck/ai-assistant 2.20.0 → 2.22.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/README.md +6 -4
- package/dist/{Avatar-CVZ2cJ7u.js → Avatar-dWTFgZy_.js} +1 -1
- package/dist/{ChatWidgetContent-BXTCDzRy.js → ChatWidgetContent-CgQsGcbu.js} +1550 -1476
- package/dist/api/messages.api.d.ts +11 -5
- package/dist/api/messages.api.types.d.ts +4 -0
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/domain/message/cable/widget-frame.d.ts +1 -1
- package/dist/domain/message/chat-experience.d.ts +0 -9
- package/dist/domain/message/message.store.d.ts +18 -9
- package/dist/domain/support-presentation/PresentationAvatarResolver.d.ts +2 -0
- package/dist/domain/support-presentation/support-presentation.reconciliation.d.ts +13 -0
- package/dist/domain/support-presentation/support-presentation.types.d.ts +15 -6
- package/dist/i18n/messages.d.ts +0 -1
- package/dist/{index-BVQY-1rm.js → index-C4NZpmiX.js} +6453 -4813
- package/dist/ui/components/ChatResponderIdentity.d.ts +2 -2
- package/dist/ui/components/PresentationAvatar.d.ts +4 -5
- package/dist/ui/hooks/usePresentedResponderPresentation.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ResponderDisplayModel } from "@/ui/hooks/usePresentedResponderPresentation";
|
|
2
2
|
type ChatResponderIdentityProps = {
|
|
3
3
|
conversationId: string;
|
|
4
|
-
presentation:
|
|
4
|
+
presentation: ResponderDisplayModel;
|
|
5
5
|
};
|
|
6
6
|
export declare function ChatResponderIdentity({ conversationId, presentation, }: ChatResponderIdentityProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MessageAuthorPresentation, SafeResponderPresentation } from "@/domain/support-presentation/support-presentation.types";
|
|
2
2
|
export type PresentationFallbackKind = "LOLA" | "HUMAN" | "SUPPORT" | "SYSTEM";
|
|
3
3
|
type PresentationAvatarProps = {
|
|
4
4
|
conversationId: string;
|
|
5
5
|
displayName: string;
|
|
6
6
|
fallbackKind: PresentationFallbackKind;
|
|
7
|
-
presentation: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} | null;
|
|
7
|
+
presentation: Pick<MessageAuthorPresentation, "contractState" | "avatarAsset" | "legacyAvatarUrl"> | (Pick<SafeResponderPresentation, "contractState" | "avatarAsset"> & {
|
|
8
|
+
legacyAvatarUrl?: never;
|
|
9
|
+
}) | null;
|
|
11
10
|
size: "message" | "header";
|
|
12
11
|
className?: string;
|
|
13
12
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SafeResponderPresentation } from "@/domain/support-presentation/support-presentation.types";
|
|
2
|
+
export declare const ROUTING_PRESENTATION_DELAY_MS = 200;
|
|
3
|
+
export type ResponderDisplayModel = Pick<SafeResponderPresentation, "contractState" | "humanSupport" | "ai" | "identity" | "displayName" | "avatarAsset" | "presentationVersion">;
|
|
4
|
+
/**
|
|
5
|
+
* Keeps authoritative responder state immediate everywhere except the first
|
|
6
|
+
* visible NONE -> ROUTING transition. That short presentation delay avoids a
|
|
7
|
+
* routing flash when an assignment follows immediately; it never delays the
|
|
8
|
+
* store or a later state transition.
|
|
9
|
+
*/
|
|
10
|
+
export declare function usePresentedResponderPresentation(conversationId: string | undefined, presentation: SafeResponderPresentation): ResponderDisplayModel;
|