@alxxsck/ai-assistant 2.22.3 → 2.24.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 +50 -12
- package/dist/App.d.ts +5 -0
- package/dist/{Avatar-QuPBAhUu.js → Avatar-C6dvOio6.js} +1 -1
- package/dist/ChatWidgetContent-BYZ7Qq06.js +8059 -0
- package/dist/api/chat-attachments.api.d.ts +36 -0
- package/dist/api/messages.api.d.ts +3 -1
- package/dist/api/messages.api.types.d.ts +14 -1
- package/dist/bridge-ai-chat-widget.es.js +3 -3
- package/dist/context/ChatWidgetContext.d.ts +12 -3
- package/dist/domain/command/CommandRuntime.d.ts +10 -4
- package/dist/domain/command/command.types.d.ts +12 -0
- package/dist/domain/compact-preview/CompactPreviewController.d.ts +123 -0
- package/dist/domain/message/cable/CableContext.d.ts +16 -1
- package/dist/domain/message/cable/widget-frame.d.ts +9 -0
- package/dist/domain/message/chat-experience.d.ts +16 -1
- package/dist/domain/message/message.store.d.ts +3 -2
- package/dist/domain/message/unread.d.ts +1 -0
- package/dist/domain/scenario/ScenarioChoiceSubmissionController.d.ts +49 -0
- package/dist/domain/scenario/scenario-choice.d.ts +6 -0
- package/dist/domain/scenario-interaction/ScenarioInteractionRuntime.d.ts +7 -1
- package/dist/domain/scenario-interaction/presentation-observer.d.ts +6 -1
- package/dist/domain/scenario-interaction/scenario-interaction.types.d.ts +10 -0
- package/dist/domain/ui/ui.service.d.ts +6 -5
- package/dist/domain/ui/widget-geometry.d.ts +28 -0
- package/dist/i18n/messages.d.ts +63 -2
- package/dist/index-WDFSbfaV.js +2208 -0
- package/dist/index.types.d.ts +15 -4
- package/dist/{index-BBsPIKJB.js → mount-CXUq37eu.js} +8636 -7821
- package/dist/ui/attachment-preview.d.ts +10 -0
- package/dist/ui/components/ChatAttachmentList.d.ts +3 -1
- package/dist/ui/components/ChatAttachmentPreviewDialog.d.ts +9 -0
- package/dist/ui/components/ChatMessage.d.ts +3 -0
- package/dist/ui/components/ChatUnreadIndicator.d.ts +3 -1
- package/dist/ui/components/ChatWidgetFrame.d.ts +9 -1
- package/dist/ui/components/CompactPreviewSurface.d.ts +8 -0
- package/dist/ui/components/CompactScenarioPreview.d.ts +24 -0
- package/dist/ui/components/OptimisticCustomerMessage.d.ts +4 -1
- package/dist/ui/components/compact-preview-content.d.ts +10 -0
- package/dist/ui/hooks/useAttentionInterruption.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ChatWidgetContent-CZdK6qrV.js +0 -6363
package/dist/index.types.d.ts
CHANGED
|
@@ -11,21 +11,32 @@ export type WidgetConfig = {
|
|
|
11
11
|
hideOpenButton?: boolean;
|
|
12
12
|
/** Enables verbose `[Lola-Widget]` diagnostics. Errors are always logged. */
|
|
13
13
|
debug?: boolean;
|
|
14
|
+
/** Enables the opt-in compact Scenario preview next to the built-in launcher. */
|
|
15
|
+
compactScenarioPreview?: {
|
|
16
|
+
enabled: false;
|
|
17
|
+
storageNamespace?: string;
|
|
18
|
+
} | {
|
|
19
|
+
enabled: true;
|
|
20
|
+
/** Stable project/widget key used to persist launcher geometry across sessions. */
|
|
21
|
+
storageNamespace: string;
|
|
22
|
+
};
|
|
14
23
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
24
|
+
* Configures the attachment composer. Attachments use Lola Backend by
|
|
25
|
+
* default; set `enabled: false` to hide them or pass a custom transport for
|
|
26
|
+
* controlled demos and tests.
|
|
17
27
|
*/
|
|
18
28
|
attachments?: {
|
|
19
29
|
enabled?: boolean;
|
|
20
|
-
/**
|
|
30
|
+
/** Sends READY ids by default. Set false only for a legacy backend. */
|
|
21
31
|
sendAttachmentIds?: boolean;
|
|
22
32
|
maxFiles?: number;
|
|
23
33
|
maxBytes?: number;
|
|
34
|
+
maxTotalBytes?: number;
|
|
24
35
|
transport?: ChatAttachmentTransport;
|
|
25
36
|
};
|
|
26
37
|
/** Optional product integrations for navigation, modals, and highlighting. */
|
|
27
38
|
handlers?: HostCommandHandlers;
|
|
28
39
|
};
|
|
29
40
|
export type { CustomerInteractionSession };
|
|
30
|
-
export type { ChatAttachment, ChatAttachmentTransport, ChatAttachmentUploadInput, } from "./domain/message/chat-experience";
|
|
41
|
+
export type { ChatAttachment, ChatAttachmentAccessInput, ChatAttachmentGrant, ChatAttachmentTransport, ChatAttachmentUploadInput, ChatAttachmentUploadStage, } from "./domain/message/chat-experience";
|
|
31
42
|
export type { CommandEventDetail, HighlightCommandContext, HostCommandHandlers, OpenModalContext, OpenPageContext, } from "./domain/command/command.types";
|