@nlxai/touchpoint-ui 1.2.7-alpha.0 → 1.2.7-alpha.2

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 (74) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/eslint.config.js +5 -0
  3. package/index.html +6 -6
  4. package/lib/components/Messages.d.ts +0 -1
  5. package/lib/index.js +21114 -18272
  6. package/lib/index.umd.js +121 -116
  7. package/lib/interface.d.ts +9 -2
  8. package/lib/types.d.ts +1 -1
  9. package/lib/website/ConnectChat.d.ts +9 -0
  10. package/lib/website/index.d.ts +1 -0
  11. package/package.json +15 -17
  12. package/tsdoc.json +15 -2
  13. package/vite.config.ts +8 -4
  14. package/.eslintrc.cjs +0 -5
  15. package/build/App.d.ts +0 -20
  16. package/build/ProviderStack.d.ts +0 -10
  17. package/build/assets/index-B9Yzt2if.js +0 -233
  18. package/build/assets/index-BbXI3y3Q.css +0 -1
  19. package/build/bidirectional/analyzePageForms.d.ts +0 -35
  20. package/build/bidirectional/automaticContext.d.ts +0 -12
  21. package/build/bidirectional/commandHandler.d.ts +0 -5
  22. package/build/bidirectional/debug.d.ts +0 -1
  23. package/build/components/ErrorMessage.d.ts +0 -4
  24. package/build/components/FeedbackComment.d.ts +0 -6
  25. package/build/components/FullscreenError.d.ts +0 -2
  26. package/build/components/FullscreenVoice.d.ts +0 -32
  27. package/build/components/Header.d.ts +0 -20
  28. package/build/components/Input.d.ts +0 -14
  29. package/build/components/Layout.d.ts +0 -23
  30. package/build/components/Messages.d.ts +0 -33
  31. package/build/components/Notice.d.ts +0 -4
  32. package/build/components/Ripple.d.ts +0 -9
  33. package/build/components/RiveAnimation.d.ts +0 -4
  34. package/build/components/SafeMarkdown.d.ts +0 -4
  35. package/build/components/Settings.d.ts +0 -10
  36. package/build/components/Theme.d.ts +0 -4
  37. package/build/components/VoiceMini.d.ts +0 -13
  38. package/build/components/VoiceModalities.d.ts +0 -11
  39. package/build/components/defaultModalities/DefaultCard.d.ts +0 -3
  40. package/build/components/defaultModalities/DefaultCarousel.d.ts +0 -6
  41. package/build/components/defaultModalities/DefaultDateInput.d.ts +0 -5
  42. package/build/components/defaultModalities/shared.d.ts +0 -20
  43. package/build/components/ui/Carousel.d.ts +0 -26
  44. package/build/components/ui/CustomCard.d.ts +0 -101
  45. package/build/components/ui/DateInput.d.ts +0 -30
  46. package/build/components/ui/IconButton.d.ts +0 -68
  47. package/build/components/ui/Icons.d.ts +0 -63
  48. package/build/components/ui/LaunchButton.d.ts +0 -13
  49. package/build/components/ui/LightDarkToggle.d.ts +0 -47
  50. package/build/components/ui/Loader.d.ts +0 -7
  51. package/build/components/ui/MessageButton.d.ts +0 -58
  52. package/build/components/ui/PicturesContainer.d.ts +0 -9
  53. package/build/components/ui/Radio.d.ts +0 -14
  54. package/build/components/ui/TextButton.d.ts +0 -46
  55. package/build/components/ui/Typography.d.ts +0 -29
  56. package/build/components/ui/ViewMediaModal.d.ts +0 -8
  57. package/build/design-system.d.ts +0 -1
  58. package/build/favicon.ico +0 -0
  59. package/build/feedback.d.ts +0 -38
  60. package/build/index.d.ts +0 -63
  61. package/build/index.html +0 -13
  62. package/build/interface.d.ts +0 -569
  63. package/build/mocks/MockText.d.ts +0 -10
  64. package/build/mocks/MockVoice.d.ts +0 -10
  65. package/build/mocks/MockVoiceMini.d.ts +0 -8
  66. package/build/mocks/shared.d.ts +0 -5
  67. package/build/preview.d.ts +0 -10
  68. package/build/types.d.ts +0 -5
  69. package/build/utils/useAppRoot.d.ts +0 -3
  70. package/build/utils/useCopy.d.ts +0 -4
  71. package/build/utils/useTailwindMediaQuery.d.ts +0 -1
  72. package/build/voice.d.ts +0 -70
  73. package/lib/design-system/index.d.ts +0 -1
  74. /package/lib/{design-system → website}/LightDarkToggle.d.ts +0 -0
package/build/voice.d.ts DELETED
@@ -1,70 +0,0 @@
1
- import { Context, ModalityPayloads, ConversationHandler, ApplicationMessage } from '@nlxai/core';
2
- type DebugEvent = any;
3
- /**
4
- * Contains modality data paired with timing information.
5
- */
6
- export interface RoomDataEventsWithContext {
7
- /** The modality data. */
8
- data: RoomDataEvent;
9
- /** The participant identity the data is from, if available. */
10
- from?: string;
11
- /** The timestamp when the data was received. */
12
- timestamp: number;
13
- }
14
- type RoomDataEvent = {
15
- type: "agent_interim_response";
16
- message: string;
17
- } | {
18
- type: "agent_response";
19
- message: string;
20
- debugEvents?: DebugEvent[];
21
- } | {
22
- type: "agent_final_response";
23
- messages: ApplicationMessage[];
24
- debugEvents?: DebugEvent[];
25
- modalities?: ModalityPayloads;
26
- };
27
- /**
28
- * How to handle voice connections.
29
- */
30
- export interface VoiceHandler {
31
- /** Enable or disable the microphone. */
32
- setMicrophone: (micEnabled: boolean) => Promise<void>;
33
- /** Enable or disable the speakers. */
34
- setSpeakers: (speakersEnabled: boolean) => Promise<void>;
35
- /** Retry connecting to the voice service. */
36
- retry: () => Promise<void>;
37
- /** Disconnect from the voice service. Must be called at the end of the session. */
38
- disconnect: () => Promise<void>;
39
- }
40
- /**
41
- * The state of the voice connection.
42
- */
43
- export interface VoiceState {
44
- /** Whether the voice connection has been terminated from the remote end. */
45
- isTerminated: boolean;
46
- /** Is the user speaking at the moment. */
47
- isUserSpeaking: boolean;
48
- /** Is the application/agent speaking at the moment. */
49
- isApplicationSpeaking: boolean;
50
- /** Are the speakers enabled */
51
- isSpeakersEnabled: boolean;
52
- /** Is the mic enabled */
53
- isMicEnabled: boolean;
54
- /** Interim message */
55
- interimMessage?: string;
56
- }
57
- /** Thrown when we detect missing audio permissions */
58
- export declare class MissingAudioPermissionsError extends Error {
59
- /** */
60
- constructor();
61
- }
62
- /**
63
- * How to handle voice connections.
64
- * @param handler - The conversation handler.
65
- * @param context - The context for the voice connection.
66
- * @param onRoomStateChanged - Callback for when the room state changes.
67
- * @returns The voice handler.
68
- */
69
- export declare const initiateVoice: (handler: ConversationHandler, context: Context, onRoomStateChanged?: (state: VoiceState) => void) => Promise<VoiceHandler>;
70
- export {};
@@ -1 +0,0 @@
1
- export declare const renderDesignSystem: (element: HTMLElement) => void;