@alxxsck/ai-assistant 2.26.0 → 3.1.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 (61) hide show
  1. package/README.md +20 -2
  2. package/dist/{Avatar-Cr3PsHzw.js → Avatar-B9TOQAF_.js} +19082 -18842
  3. package/dist/ChatWidgetContent-BuhVlKYA.js +5376 -0
  4. package/dist/api/audio.api.d.ts +1 -1
  5. package/dist/api/messages.api.types.d.ts +2 -1
  6. package/dist/avatar/AnimationManager.d.ts +7 -3
  7. package/dist/avatar/Avatar.d.ts +20 -3
  8. package/dist/avatar/avatarMeshes.d.ts +8 -0
  9. package/dist/avatar/loaders.d.ts +16 -0
  10. package/dist/bridge-ai-chat-widget.es.js +1 -1
  11. package/dist/constants.d.ts +1 -0
  12. package/dist/context/ChatWidgetContext.d.ts +3 -2
  13. package/dist/domain/command/CommandRuntime.d.ts +9 -2
  14. package/dist/domain/command/UiCommandService.d.ts +4 -2
  15. package/dist/domain/command/command.types.d.ts +8 -0
  16. package/dist/domain/message/cable/CableContext.d.ts +1 -0
  17. package/dist/domain/message/message.store.d.ts +7 -0
  18. package/dist/domain/scenario-interaction/scenario-interaction.types.d.ts +3 -0
  19. package/dist/domain/speech/SpeechPlayer.d.ts +2 -0
  20. package/dist/domain/ui/widget-geometry.d.ts +7 -5
  21. package/dist/domain/voice/media/ReliableVoiceUplink.d.ts +4 -0
  22. package/dist/domain/voice/voice-audio-meter.d.ts +12 -0
  23. package/dist/domain/voice/voice-input-spectrum.d.ts +17 -0
  24. package/dist/domain/voice/voice.store.d.ts +5 -1
  25. package/dist/i18n/messages.d.ts +6 -2
  26. package/dist/index-DCsPGgIk.js +2891 -0
  27. package/dist/index.d.ts +2 -1
  28. package/dist/index.types.d.ts +4 -2
  29. package/dist/inter-cyrillic-wght-italic.woff2 +0 -0
  30. package/dist/inter-cyrillic-wght-normal.woff2 +0 -0
  31. package/dist/inter-latin-ext-wght-italic.woff2 +0 -0
  32. package/dist/inter-latin-ext-wght-normal.woff2 +0 -0
  33. package/dist/inter-latin-wght-italic.woff2 +0 -0
  34. package/dist/inter-latin-wght-normal.woff2 +0 -0
  35. package/dist/{mount-DCjHLj_e.js → mount-BpvW4tbc.js} +9631 -5577
  36. package/dist/roboto-cyrillic-400-normal.woff2 +0 -0
  37. package/dist/roboto-cyrillic-700-normal.woff2 +0 -0
  38. package/dist/roboto-latin-400-normal.woff2 +0 -0
  39. package/dist/roboto-latin-700-normal.woff2 +0 -0
  40. package/dist/roboto-latin-ext-400-normal.woff2 +0 -0
  41. package/dist/roboto-latin-ext-700-normal.woff2 +0 -0
  42. package/dist/ui/components/ChatInlineProgressStatus.d.ts +5 -0
  43. package/dist/ui/components/ChatListItem.d.ts +4 -1
  44. package/dist/ui/components/ChatSurfaceFrameContext.d.ts +6 -0
  45. package/dist/ui/components/ChatTopControls.d.ts +5 -5
  46. package/dist/ui/components/ChatUiActionProgress.d.ts +1 -0
  47. package/dist/ui/components/ChatVoiceMode.d.ts +5 -1
  48. package/dist/ui/components/ChatWidgetFrame.d.ts +5 -3
  49. package/dist/ui/components/VoiceComposer.d.ts +23 -0
  50. package/dist/ui/components/voice-waveform.d.ts +20 -0
  51. package/dist/ui/error-messages.d.ts +1 -0
  52. package/dist/ui/responder-visual-state.d.ts +7 -0
  53. package/dist/widget-fonts-CFulYNmT.js +16 -0
  54. package/dist/widget-fonts.d.ts +1 -0
  55. package/package.json +6 -2
  56. package/dist/ChatWidgetContent-DJ2Y9kKV.js +0 -8045
  57. package/dist/avatar/consolidateMaterialGroups.d.ts +0 -2
  58. package/dist/index-D01wjcEK.js +0 -2809
  59. package/dist/ui/chat-composer-layout.d.ts +0 -1
  60. package/dist/ui/components/overlays/ChatBlurOverlayTop.d.ts +0 -1
  61. package/dist/ui/components/overlays/ChatDarkOverlay.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { WidgetConfig } from "./index.types";
2
2
  import type { CustomerInteractionSession } from "./types";
3
3
  import type { CommandEventDetail } from "./domain/command/command.types";
4
4
  import { type TrackEvent } from "./domain/tracking/LolaEventTracker";
5
- export type { CustomerInteractionSession, CommandEventDetail, HighlightCommandContext, HostCommandHandlers, OpenModalContext, OpenPageContext, WidgetConfig, } from "./index.types";
5
+ export type { CustomerInteractionSession, CommandEventDetail, HighlightCommandContext, HostCommandHandlers, OpenModalContext, OpenPageContext, MobileActionDisposition, UiActionPolicies, UiActionPolicy, WidgetConfig, } from "./index.types";
6
6
  export { EXTERNALLY_AVAILABLE_ACTIONS, isExternallyAvailableAction, } from "./avatar/publicAnimations";
7
7
  export type { ExternallyAvailableActions } from "./avatar/publicAnimations";
8
8
  export type { TrackEvent } from "./domain/tracking/LolaEventTracker";
@@ -30,6 +30,7 @@ export declare class ChatWidgetInstance extends EventTarget {
30
30
  private readonly pendingAvatarAnimations;
31
31
  private destroyed;
32
32
  private disableDebugLogging;
33
+ private releaseFontStyles;
33
34
  private resolveAssetPath;
34
35
  private setSessionImpl;
35
36
  private setLocaleImpl;
@@ -1,5 +1,5 @@
1
1
  import type { CustomerInteractionSession } from "./types";
2
- import type { HostCommandHandlers } from "./domain/command/command.types";
2
+ import type { HostCommandHandlers, UiActionPolicies } from "./domain/command/command.types";
3
3
  import type { ChatAttachmentTransport } from "./domain/message/chat-experience";
4
4
  export type WidgetConfig = {
5
5
  customerInteractionSession: CustomerInteractionSession;
@@ -27,7 +27,9 @@ export type WidgetConfig = {
27
27
  };
28
28
  /** Optional product integrations for navigation, modals, and highlighting. */
29
29
  handlers?: HostCommandHandlers;
30
+ /** Trusted mobile presentation policy keyed by canonical UI action code. */
31
+ uiActionPolicies?: UiActionPolicies;
30
32
  };
31
33
  export type { CustomerInteractionSession };
32
34
  export type { ChatAttachment, ChatAttachmentAccessInput, ChatAttachmentGrant, ChatAttachmentTransport, ChatAttachmentUploadInput, ChatAttachmentUploadStage, } from "./domain/message/chat-experience";
33
- export type { CommandEventDetail, HighlightCommandContext, HostCommandHandlers, OpenModalContext, OpenPageContext, } from "./domain/command/command.types";
35
+ export type { CommandEventDetail, HighlightCommandContext, HostCommandHandlers, OpenModalContext, OpenPageContext, MobileActionDisposition, UiActionPolicies, UiActionPolicy, } from "./domain/command/command.types";