@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.
Files changed (41) hide show
  1. package/README.md +50 -12
  2. package/dist/App.d.ts +5 -0
  3. package/dist/{Avatar-QuPBAhUu.js → Avatar-C6dvOio6.js} +1 -1
  4. package/dist/ChatWidgetContent-BYZ7Qq06.js +8059 -0
  5. package/dist/api/chat-attachments.api.d.ts +36 -0
  6. package/dist/api/messages.api.d.ts +3 -1
  7. package/dist/api/messages.api.types.d.ts +14 -1
  8. package/dist/bridge-ai-chat-widget.es.js +3 -3
  9. package/dist/context/ChatWidgetContext.d.ts +12 -3
  10. package/dist/domain/command/CommandRuntime.d.ts +10 -4
  11. package/dist/domain/command/command.types.d.ts +12 -0
  12. package/dist/domain/compact-preview/CompactPreviewController.d.ts +123 -0
  13. package/dist/domain/message/cable/CableContext.d.ts +16 -1
  14. package/dist/domain/message/cable/widget-frame.d.ts +9 -0
  15. package/dist/domain/message/chat-experience.d.ts +16 -1
  16. package/dist/domain/message/message.store.d.ts +3 -2
  17. package/dist/domain/message/unread.d.ts +1 -0
  18. package/dist/domain/scenario/ScenarioChoiceSubmissionController.d.ts +49 -0
  19. package/dist/domain/scenario/scenario-choice.d.ts +6 -0
  20. package/dist/domain/scenario-interaction/ScenarioInteractionRuntime.d.ts +7 -1
  21. package/dist/domain/scenario-interaction/presentation-observer.d.ts +6 -1
  22. package/dist/domain/scenario-interaction/scenario-interaction.types.d.ts +10 -0
  23. package/dist/domain/ui/ui.service.d.ts +6 -5
  24. package/dist/domain/ui/widget-geometry.d.ts +28 -0
  25. package/dist/i18n/messages.d.ts +63 -2
  26. package/dist/index-WDFSbfaV.js +2208 -0
  27. package/dist/index.types.d.ts +15 -4
  28. package/dist/{index-BBsPIKJB.js → mount-CXUq37eu.js} +8636 -7821
  29. package/dist/ui/attachment-preview.d.ts +10 -0
  30. package/dist/ui/components/ChatAttachmentList.d.ts +3 -1
  31. package/dist/ui/components/ChatAttachmentPreviewDialog.d.ts +9 -0
  32. package/dist/ui/components/ChatMessage.d.ts +3 -0
  33. package/dist/ui/components/ChatUnreadIndicator.d.ts +3 -1
  34. package/dist/ui/components/ChatWidgetFrame.d.ts +9 -1
  35. package/dist/ui/components/CompactPreviewSurface.d.ts +8 -0
  36. package/dist/ui/components/CompactScenarioPreview.d.ts +24 -0
  37. package/dist/ui/components/OptimisticCustomerMessage.d.ts +4 -1
  38. package/dist/ui/components/compact-preview-content.d.ts +10 -0
  39. package/dist/ui/hooks/useAttentionInterruption.d.ts +1 -0
  40. package/package.json +1 -1
  41. package/dist/ChatWidgetContent-CZdK6qrV.js +0 -6363
@@ -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
- * Enables the attachment composer. Without a transport the SDK uses its
16
- * local mock transport, intended for visual QA and staged integration.
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
- /** Turns on attachmentIds only after the receiving backend contract ships. */
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";