@alxxsck/ai-assistant 2.13.0 → 2.14.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 +32 -0
- package/dist/{Avatar-C3jiPjI_.js → Avatar-AEwqxR_0.js} +1 -1
- package/dist/{ChatWidgetContent-CEsq_0Pe.js → ChatWidgetContent-Ccpx5zah.js} +2486 -2260
- package/dist/api/messages.api.d.ts +3 -2
- package/dist/api/messages.api.types.d.ts +43 -1
- package/dist/bridge-ai-chat-widget.es.js +6 -5
- package/dist/domain/message/cable/AnyCable.service.d.ts +4 -0
- package/dist/domain/message/cable/widget-frame.d.ts +1 -1
- package/dist/domain/message/chat-experience.d.ts +44 -0
- package/dist/domain/message/message.store.d.ts +14 -2
- package/dist/{index-C7FJIuWE.js → index-mn1rW9m7.js} +2358 -2192
- package/dist/index.d.ts +2 -0
- package/dist/index.types.d.ts +14 -0
- package/dist/ui/components/ChatAttachmentList.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export type { ExternallyAvailableActions } from "./avatar/publicAnimations";
|
|
|
8
8
|
export type { TrackEvent } from "./domain/tracking/LolaEventTracker";
|
|
9
9
|
export type { SupportedLocale } from "./i18n/i18n";
|
|
10
10
|
export { SUPPORTED_LOCALES } from "./i18n/i18n";
|
|
11
|
+
export { createMockAttachmentTransport } from "./domain/message/chat-experience";
|
|
12
|
+
export type { ChatAttachment, ChatAttachmentTransport, ChatAttachmentUploadInput, } from "./domain/message/chat-experience";
|
|
11
13
|
type WidgetEventMap = {
|
|
12
14
|
command_received: CustomEvent<CommandEventDetail>;
|
|
13
15
|
command_succeeded: CustomEvent<CommandEventDetail>;
|
package/dist/index.types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CustomerInteractionSession } from "./types";
|
|
2
2
|
import type { HostCommandHandlers } from "./domain/command/command.types";
|
|
3
|
+
import type { ChatAttachmentTransport } from "./domain/message/chat-experience";
|
|
3
4
|
export type WidgetConfig = {
|
|
4
5
|
customerInteractionSession: CustomerInteractionSession;
|
|
5
6
|
/** Product locale tag used for widget-owned text. Defaults to English. */
|
|
@@ -10,8 +11,21 @@ export type WidgetConfig = {
|
|
|
10
11
|
hideOpenButton?: boolean;
|
|
11
12
|
/** Enables verbose `[Lola-Widget]` diagnostics. Errors are always logged. */
|
|
12
13
|
debug?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Enables the attachment composer. Without a transport the SDK uses its
|
|
16
|
+
* local mock transport, intended for visual QA and staged integration.
|
|
17
|
+
*/
|
|
18
|
+
attachments?: {
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
/** Turns on attachmentIds only after the receiving backend contract ships. */
|
|
21
|
+
sendAttachmentIds?: boolean;
|
|
22
|
+
maxFiles?: number;
|
|
23
|
+
maxBytes?: number;
|
|
24
|
+
transport?: ChatAttachmentTransport;
|
|
25
|
+
};
|
|
13
26
|
/** Optional product integrations for navigation, modals, and highlighting. */
|
|
14
27
|
handlers?: HostCommandHandlers;
|
|
15
28
|
};
|
|
16
29
|
export type { CustomerInteractionSession };
|
|
30
|
+
export type { ChatAttachment, ChatAttachmentTransport, ChatAttachmentUploadInput, } from "./domain/message/chat-experience";
|
|
17
31
|
export type { CommandEventDetail, HighlightCommandContext, HostCommandHandlers, OpenModalContext, OpenPageContext, } from "./domain/command/command.types";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatAttachment } from "@/domain/message/chat-experience";
|
|
2
|
+
type ChatAttachmentListProps = {
|
|
3
|
+
attachments: readonly ChatAttachment[];
|
|
4
|
+
};
|
|
5
|
+
export declare function ChatAttachmentList({ attachments }: ChatAttachmentListProps): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export declare function ChatAttachmentPlaceholder({ fileName }: {
|
|
7
|
+
fileName: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|