hazo_chat 2.0.2 → 2.0.4

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 (145) hide show
  1. package/dist/api/index.d.ts +24 -0
  2. package/dist/api/index.d.ts.map +1 -0
  3. package/dist/api/index.js +24 -0
  4. package/dist/api/index.js.map +1 -0
  5. package/dist/api/messages.d.ts +34 -0
  6. package/dist/api/messages.d.ts.map +1 -0
  7. package/dist/api/messages.js +210 -0
  8. package/dist/api/messages.js.map +1 -0
  9. package/dist/api/types.d.ts +69 -0
  10. package/dist/api/types.d.ts.map +1 -0
  11. package/dist/api/types.js +8 -0
  12. package/dist/api/types.js.map +1 -0
  13. package/dist/components/hazo_chat/hazo_chat.d.ts +28 -0
  14. package/dist/components/hazo_chat/hazo_chat.d.ts.map +1 -0
  15. package/dist/components/hazo_chat/hazo_chat.js +167 -0
  16. package/dist/components/hazo_chat/hazo_chat.js.map +1 -0
  17. package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts +17 -0
  18. package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts.map +1 -0
  19. package/dist/components/hazo_chat/hazo_chat_attachment_preview.js +60 -0
  20. package/dist/components/hazo_chat/hazo_chat_attachment_preview.js.map +1 -0
  21. package/dist/components/hazo_chat/hazo_chat_context.d.ts +42 -0
  22. package/dist/components/hazo_chat/hazo_chat_context.d.ts.map +1 -0
  23. package/dist/components/hazo_chat/hazo_chat_context.js +263 -0
  24. package/dist/components/hazo_chat/hazo_chat_context.js.map +1 -0
  25. package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts +15 -0
  26. package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts.map +1 -0
  27. package/dist/components/hazo_chat/hazo_chat_document_viewer.js +111 -0
  28. package/dist/components/hazo_chat/hazo_chat_document_viewer.js.map +1 -0
  29. package/dist/components/hazo_chat/hazo_chat_header.d.ts +16 -0
  30. package/dist/components/hazo_chat/hazo_chat_header.d.ts.map +1 -0
  31. package/dist/components/hazo_chat/hazo_chat_header.js +24 -0
  32. package/dist/components/hazo_chat/hazo_chat_header.js.map +1 -0
  33. package/dist/components/hazo_chat/hazo_chat_input.d.ts +18 -0
  34. package/dist/components/hazo_chat/hazo_chat_input.d.ts.map +1 -0
  35. package/dist/components/hazo_chat/hazo_chat_input.js +134 -0
  36. package/dist/components/hazo_chat/hazo_chat_input.js.map +1 -0
  37. package/dist/components/hazo_chat/hazo_chat_messages.d.ts +17 -0
  38. package/dist/components/hazo_chat/hazo_chat_messages.d.ts.map +1 -0
  39. package/dist/components/hazo_chat/hazo_chat_messages.js +109 -0
  40. package/dist/components/hazo_chat/hazo_chat_messages.js.map +1 -0
  41. package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts +16 -0
  42. package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts.map +1 -0
  43. package/dist/components/hazo_chat/hazo_chat_reference_list.js +59 -0
  44. package/dist/components/hazo_chat/hazo_chat_reference_list.js.map +1 -0
  45. package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts +18 -0
  46. package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts.map +1 -0
  47. package/dist/components/hazo_chat/hazo_chat_sidebar.js +72 -0
  48. package/dist/components/hazo_chat/hazo_chat_sidebar.js.map +1 -0
  49. package/dist/components/hazo_chat/index.d.ts +16 -0
  50. package/dist/components/hazo_chat/index.d.ts.map +1 -0
  51. package/dist/components/hazo_chat/index.js +19 -0
  52. package/dist/components/hazo_chat/index.js.map +1 -0
  53. package/dist/components/index.d.ts +9 -0
  54. package/dist/components/index.d.ts.map +1 -0
  55. package/dist/components/index.js +11 -0
  56. package/dist/components/index.js.map +1 -0
  57. package/dist/components/ui/avatar.d.ts +13 -0
  58. package/dist/components/ui/avatar.d.ts.map +1 -0
  59. package/dist/components/ui/avatar.js +28 -0
  60. package/dist/components/ui/avatar.js.map +1 -0
  61. package/dist/components/ui/badge.d.ts +16 -0
  62. package/dist/components/ui/badge.d.ts.map +1 -0
  63. package/dist/components/ui/badge.js +36 -0
  64. package/dist/components/ui/badge.js.map +1 -0
  65. package/dist/components/ui/button.d.ts +18 -0
  66. package/dist/components/ui/button.d.ts.map +1 -0
  67. package/dist/components/ui/button.js +47 -0
  68. package/dist/components/ui/button.js.map +1 -0
  69. package/dist/components/ui/chat_bubble.d.ts +19 -0
  70. package/dist/components/ui/chat_bubble.d.ts.map +1 -0
  71. package/dist/components/ui/chat_bubble.js +101 -0
  72. package/dist/components/ui/chat_bubble.js.map +1 -0
  73. package/dist/components/ui/index.d.ts +18 -0
  74. package/dist/components/ui/index.d.ts.map +1 -0
  75. package/dist/components/ui/index.js +20 -0
  76. package/dist/components/ui/index.js.map +1 -0
  77. package/dist/components/ui/input.d.ts +11 -0
  78. package/dist/components/ui/input.d.ts.map +1 -0
  79. package/dist/components/ui/input.js +18 -0
  80. package/dist/components/ui/input.js.map +1 -0
  81. package/dist/components/ui/loading_skeleton.d.ts +19 -0
  82. package/dist/components/ui/loading_skeleton.d.ts.map +1 -0
  83. package/dist/components/ui/loading_skeleton.js +30 -0
  84. package/dist/components/ui/loading_skeleton.js.map +1 -0
  85. package/dist/components/ui/scroll-area.d.ts +12 -0
  86. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  87. package/dist/components/ui/scroll-area.js +25 -0
  88. package/dist/components/ui/scroll-area.js.map +1 -0
  89. package/dist/components/ui/separator.d.ts +11 -0
  90. package/dist/components/ui/separator.d.ts.map +1 -0
  91. package/dist/components/ui/separator.js +18 -0
  92. package/dist/components/ui/separator.js.map +1 -0
  93. package/dist/components/ui/skeleton.d.ts +9 -0
  94. package/dist/components/ui/skeleton.d.ts.map +1 -0
  95. package/dist/components/ui/skeleton.js +16 -0
  96. package/dist/components/ui/skeleton.js.map +1 -0
  97. package/dist/components/ui/textarea.d.ts +11 -0
  98. package/dist/components/ui/textarea.d.ts.map +1 -0
  99. package/dist/components/ui/textarea.js +18 -0
  100. package/dist/components/ui/textarea.js.map +1 -0
  101. package/dist/components/ui/tooltip.d.ts +14 -0
  102. package/dist/components/ui/tooltip.d.ts.map +1 -0
  103. package/dist/components/ui/tooltip.js +30 -0
  104. package/dist/components/ui/tooltip.js.map +1 -0
  105. package/dist/hooks/index.d.ts +10 -0
  106. package/dist/hooks/index.d.ts.map +1 -0
  107. package/dist/hooks/index.js +10 -0
  108. package/dist/hooks/index.js.map +1 -0
  109. package/dist/hooks/use_chat_messages.d.ts +30 -0
  110. package/dist/hooks/use_chat_messages.d.ts.map +1 -0
  111. package/dist/hooks/use_chat_messages.js +438 -0
  112. package/dist/hooks/use_chat_messages.js.map +1 -0
  113. package/dist/hooks/use_chat_references.d.ts +17 -0
  114. package/dist/hooks/use_chat_references.d.ts.map +1 -0
  115. package/dist/hooks/use_chat_references.js +133 -0
  116. package/dist/hooks/use_chat_references.js.map +1 -0
  117. package/dist/hooks/use_file_upload.d.ts +23 -0
  118. package/dist/hooks/use_file_upload.d.ts.map +1 -0
  119. package/dist/hooks/use_file_upload.js +212 -0
  120. package/dist/hooks/use_file_upload.js.map +1 -0
  121. package/dist/index.d.ts +13 -0
  122. package/dist/index.d.ts.map +1 -0
  123. package/dist/index.js +17 -0
  124. package/dist/index.js.map +1 -0
  125. package/dist/lib/config.d.ts +41 -0
  126. package/dist/lib/config.d.ts.map +1 -0
  127. package/dist/lib/config.js +93 -0
  128. package/dist/lib/config.js.map +1 -0
  129. package/dist/lib/constants.d.ts +39 -0
  130. package/dist/lib/constants.d.ts.map +1 -0
  131. package/dist/lib/constants.js +70 -0
  132. package/dist/lib/constants.js.map +1 -0
  133. package/dist/lib/index.d.ts +9 -0
  134. package/dist/lib/index.d.ts.map +1 -0
  135. package/dist/lib/index.js +9 -0
  136. package/dist/lib/index.js.map +1 -0
  137. package/dist/lib/utils.d.ts +17 -0
  138. package/dist/lib/utils.d.ts.map +1 -0
  139. package/dist/lib/utils.js +20 -0
  140. package/dist/lib/utils.js.map +1 -0
  141. package/dist/types/index.d.ts +378 -0
  142. package/dist/types/index.d.ts.map +1 -0
  143. package/dist/types/index.js +11 -0
  144. package/dist/types/index.js.map +1 -0
  145. package/package.json +1 -1
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Default constants and configuration values for hazo_chat
3
+ *
4
+ * These values are used as fallbacks when config file is not available
5
+ * or specific values are not set.
6
+ */
7
+ // ============================================================================
8
+ // Default Configuration Values
9
+ // ============================================================================
10
+ /** Default polling interval in milliseconds */
11
+ export const DEFAULT_POLLING_INTERVAL = 5000;
12
+ /** Default number of messages to load per page */
13
+ export const DEFAULT_MESSAGES_PER_PAGE = 20;
14
+ /** Default maximum file size in MB */
15
+ export const DEFAULT_MAX_FILE_SIZE_MB = 10;
16
+ /** Default allowed file types for upload */
17
+ export const DEFAULT_ALLOWED_TYPES = [
18
+ 'pdf',
19
+ 'png',
20
+ 'jpg',
21
+ 'jpeg',
22
+ 'gif',
23
+ 'txt',
24
+ 'doc',
25
+ 'docx'
26
+ ];
27
+ /** Default timezone */
28
+ export const DEFAULT_TIMEZONE = 'GMT+10';
29
+ // ============================================================================
30
+ // MIME Type Mappings
31
+ // ============================================================================
32
+ /** Map file extensions to MIME types */
33
+ export const MIME_TYPE_MAP = {
34
+ pdf: 'application/pdf',
35
+ png: 'image/png',
36
+ jpg: 'image/jpeg',
37
+ jpeg: 'image/jpeg',
38
+ gif: 'image/gif',
39
+ webp: 'image/webp',
40
+ txt: 'text/plain',
41
+ doc: 'application/msword',
42
+ docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
43
+ };
44
+ /** File types that can be previewed in the document viewer */
45
+ export const PREVIEWABLE_TYPES = {
46
+ pdf: ['application/pdf'],
47
+ image: ['image/png', 'image/jpeg', 'image/gif', 'image/webp'],
48
+ text: ['text/plain']
49
+ };
50
+ // ============================================================================
51
+ // UI Constants
52
+ // ============================================================================
53
+ /** Breakpoint for mobile/desktop layout switch */
54
+ export const MOBILE_BREAKPOINT = 768;
55
+ /** Maximum retry attempts for failed operations */
56
+ export const MAX_RETRY_ATTEMPTS = 3;
57
+ /** Base delay for exponential backoff (ms) */
58
+ export const RETRY_BASE_DELAY = 1000;
59
+ /** Animation duration for UI transitions (ms) */
60
+ export const ANIMATION_DURATION = 200;
61
+ // ============================================================================
62
+ // Message Status
63
+ // ============================================================================
64
+ /** Placeholder text for deleted messages */
65
+ export const DELETED_MESSAGE_PLACEHOLDER = 'This message has been deleted';
66
+ /** Text shown when no messages exist */
67
+ export const EMPTY_CHAT_MESSAGE = 'No messages yet. Start the conversation!';
68
+ /** Text shown when loading messages */
69
+ export const LOADING_MESSAGES_TEXT = 'Loading messages...';
70
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAE/E,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAE7C,kDAAkD;AAClD,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAE5C,sCAAsC;AACtC,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAE3C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;IACN,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;CACP,CAAC;AAEF,uBAAuB;AACvB,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAEzC,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E,wCAAwC;AACxC,MAAM,CAAC,MAAM,aAAa,GAA2B;IACnD,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,oBAAoB;IACzB,IAAI,EAAE,yEAAyE;CAChF,CAAC;AAEF,8DAA8D;AAC9D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,EAAE,CAAC,iBAAiB,CAAC;IACxB,KAAK,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC;IAC7D,IAAI,EAAE,CAAC,YAAY,CAAC;CACrB,CAAC;AAEF,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,kDAAkD;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAErC,mDAAmD;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAEpC,8CAA8C;AAC9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAErC,iDAAiD;AACjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAEtC,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,4CAA4C;AAC5C,MAAM,CAAC,MAAM,2BAA2B,GAAG,+BAA+B,CAAC;AAE3E,wCAAwC;AACxC,MAAM,CAAC,MAAM,kBAAkB,GAAG,0CAA0C,CAAC;AAE7E,uCAAuC;AACvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Library utilities barrel export file
3
+ *
4
+ * Exports utility functions and helpers from the hazo_chat package.
5
+ * All export paths use explicit .js extensions for ES module compatibility.
6
+ */
7
+ export { cn } from './utils.js';
8
+ export * from './constants.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Library utilities barrel export file
3
+ *
4
+ * Exports utility functions and helpers from the hazo_chat package.
5
+ * All export paths use explicit .js extensions for ES module compatibility.
6
+ */
7
+ export { cn } from './utils.js';
8
+ export * from './constants.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Utility functions for the hazo_chat package
3
+ *
4
+ * Contains helper functions used across components.
5
+ */
6
+ import { type ClassValue } from 'clsx';
7
+ /**
8
+ * Merges class names using clsx and tailwind-merge
9
+ *
10
+ * This utility combines the power of clsx for conditional classes
11
+ * with tailwind-merge to properly handle Tailwind CSS class conflicts.
12
+ *
13
+ * @param inputs - Class values to merge
14
+ * @returns Merged class string
15
+ */
16
+ export declare function cn(...inputs: ClassValue[]): string;
17
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C;;;;;;;;GAQG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Utility functions for the hazo_chat package
3
+ *
4
+ * Contains helper functions used across components.
5
+ */
6
+ import { clsx } from 'clsx';
7
+ import { twMerge } from 'tailwind-merge';
8
+ /**
9
+ * Merges class names using clsx and tailwind-merge
10
+ *
11
+ * This utility combines the power of clsx for conditional classes
12
+ * with tailwind-merge to properly handle Tailwind CSS class conflicts.
13
+ *
14
+ * @param inputs - Class values to merge
15
+ * @returns Merged class string
16
+ */
17
+ export function cn(...inputs) {
18
+ return twMerge(clsx(inputs));
19
+ }
20
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,378 @@
1
+ /**
2
+ * Type definitions for the hazo_chat package
3
+ *
4
+ * Contains all TypeScript interfaces and types used across the package
5
+ * for props, messages, references, user profiles, and configuration.
6
+ *
7
+ * This package uses an API-first architecture - all data access is done
8
+ * via fetch() calls to API endpoints, not direct database access.
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ /**
12
+ * Authenticated user information
13
+ */
14
+ export interface HazoAuthUser {
15
+ id: string;
16
+ email?: string;
17
+ }
18
+ /**
19
+ * User profile with display information
20
+ */
21
+ export interface HazoUserProfile {
22
+ id: string;
23
+ name: string;
24
+ email?: string;
25
+ avatar_url?: string;
26
+ }
27
+ /**
28
+ * Database schema for hazo_chat table
29
+ */
30
+ export interface ChatMessageDB {
31
+ id: string;
32
+ reference_id: string;
33
+ reference_type: string;
34
+ sender_user_id: string;
35
+ receiver_user_id: string;
36
+ message_text: string | null;
37
+ reference_list: ChatReferenceItem[] | null;
38
+ read_at: string | null;
39
+ deleted_at: string | null;
40
+ created_at: string;
41
+ changed_at: string;
42
+ }
43
+ /**
44
+ * Chat message with user profile data attached
45
+ */
46
+ export interface ChatMessage extends ChatMessageDB {
47
+ sender_profile?: HazoUserProfile;
48
+ receiver_profile?: HazoUserProfile;
49
+ is_sender: boolean;
50
+ send_status?: MessageSendStatus;
51
+ }
52
+ /**
53
+ * Status of message sending operation
54
+ */
55
+ export type MessageSendStatus = 'sending' | 'sent' | 'failed';
56
+ /**
57
+ * Payload for creating a new chat message
58
+ */
59
+ export interface CreateMessagePayload {
60
+ reference_id: string;
61
+ reference_type: string;
62
+ receiver_user_id: string;
63
+ message_text: string;
64
+ reference_list?: ChatReferenceItem[];
65
+ }
66
+ /**
67
+ * Type of reference item
68
+ */
69
+ export type ReferenceType = 'document' | 'field' | 'url';
70
+ /**
71
+ * Scope of reference (where it's visible)
72
+ */
73
+ export type ReferenceScope = 'chat' | 'field';
74
+ /**
75
+ * Reference item in reference list or reference_list JSON column
76
+ */
77
+ export interface ChatReferenceItem {
78
+ id: string;
79
+ type: ReferenceType;
80
+ scope: ReferenceScope;
81
+ name: string;
82
+ url: string;
83
+ mime_type?: string;
84
+ file_size?: number;
85
+ message_id?: string;
86
+ }
87
+ /**
88
+ * Reference item passed as prop (external references)
89
+ */
90
+ export interface ReferenceItem {
91
+ id: string;
92
+ type: ReferenceType;
93
+ scope: ReferenceScope;
94
+ name: string;
95
+ url: string;
96
+ mime_type?: string;
97
+ }
98
+ /**
99
+ * Pending file attachment before upload
100
+ */
101
+ export interface PendingAttachment {
102
+ id: string;
103
+ file: File;
104
+ preview_url?: string;
105
+ upload_progress?: number;
106
+ upload_status: 'pending' | 'uploading' | 'uploaded' | 'failed';
107
+ error_message?: string;
108
+ }
109
+ /**
110
+ * Uploaded file result
111
+ */
112
+ export interface UploadedFile {
113
+ id: string;
114
+ name: string;
115
+ url: string;
116
+ mime_type: string;
117
+ file_size: number;
118
+ }
119
+ /**
120
+ * File upload validation result
121
+ */
122
+ export interface FileValidationResult {
123
+ valid: boolean;
124
+ error?: string;
125
+ }
126
+ /**
127
+ * Main HazoChat component props
128
+ *
129
+ * This component uses API calls internally - no database adapters needed.
130
+ * Consumers must set up the required API routes (see SETUP_CHECKLIST.md).
131
+ */
132
+ export interface HazoChatProps {
133
+ /** UUID of the chat recipient (required) */
134
+ receiver_user_id: string;
135
+ /** Main field reference ID for chat context grouping */
136
+ reference_id?: string;
137
+ /** Reference type for the main reference (default: 'chat') */
138
+ reference_type?: string;
139
+ /** Base URL for API endpoints (default: '/api/hazo_chat') */
140
+ api_base_url?: string;
141
+ /** Additional field references (optional) */
142
+ additional_references?: ReferenceItem[];
143
+ /** Timezone for timestamps (default: "GMT+10") */
144
+ timezone?: string;
145
+ /** Chat window title */
146
+ title?: string;
147
+ /** Chat window subtitle */
148
+ subtitle?: string;
149
+ /** Close button callback */
150
+ on_close?: () => void;
151
+ /** Additional CSS classes */
152
+ className?: string;
153
+ }
154
+ /**
155
+ * Props for HazoChatHeader component
156
+ */
157
+ export interface HazoChatHeaderProps {
158
+ title?: string;
159
+ subtitle?: string;
160
+ on_close?: () => void;
161
+ on_refresh?: () => void;
162
+ is_refreshing?: boolean;
163
+ on_toggle_sidebar?: () => void;
164
+ is_sidebar_open?: boolean;
165
+ className?: string;
166
+ }
167
+ /**
168
+ * Props for HazoChatSidebar component
169
+ */
170
+ export interface HazoChatSidebarProps {
171
+ is_open: boolean;
172
+ on_close: () => void;
173
+ className?: string;
174
+ children?: ReactNode;
175
+ }
176
+ /**
177
+ * Props for HazoChatReferenceList component
178
+ */
179
+ export interface HazoChatReferenceListProps {
180
+ references: ChatReferenceItem[];
181
+ selected_reference_id?: string;
182
+ on_select: (reference: ChatReferenceItem) => void;
183
+ className?: string;
184
+ }
185
+ /**
186
+ * Props for HazoChatDocumentViewer component
187
+ */
188
+ export interface HazoChatDocumentViewerProps {
189
+ reference?: ChatReferenceItem;
190
+ className?: string;
191
+ }
192
+ /**
193
+ * Props for HazoChatMessages component
194
+ */
195
+ export interface HazoChatMessagesProps {
196
+ messages: ChatMessage[];
197
+ current_user_id: string;
198
+ timezone: string;
199
+ is_loading: boolean;
200
+ has_more: boolean;
201
+ on_load_more: () => void;
202
+ on_delete_message: (message_id: string) => void;
203
+ on_scroll_to_message?: (message_id: string) => void;
204
+ highlighted_message_id?: string;
205
+ className?: string;
206
+ }
207
+ /**
208
+ * Props for HazoChatInput component
209
+ */
210
+ export interface HazoChatInputProps {
211
+ on_send: (message: string, attachments: UploadedFile[]) => void;
212
+ pending_attachments: PendingAttachment[];
213
+ on_add_attachment: (files: File[]) => void;
214
+ on_remove_attachment: (attachment_id: string) => void;
215
+ is_disabled?: boolean;
216
+ placeholder?: string;
217
+ className?: string;
218
+ }
219
+ /**
220
+ * Props for HazoChatAttachmentPreview component
221
+ */
222
+ export interface HazoChatAttachmentPreviewProps {
223
+ attachments: PendingAttachment[];
224
+ on_remove: (attachment_id: string) => void;
225
+ className?: string;
226
+ }
227
+ /**
228
+ * Props for ChatBubble component
229
+ */
230
+ export interface ChatBubbleProps {
231
+ message: ChatMessage;
232
+ is_sender: boolean;
233
+ sender_profile?: HazoUserProfile;
234
+ timezone: string;
235
+ on_delete?: () => void;
236
+ on_reference_click?: (reference: ChatReferenceItem) => void;
237
+ is_highlighted?: boolean;
238
+ className?: string;
239
+ }
240
+ /**
241
+ * Props for LoadingSkeleton component
242
+ */
243
+ export interface LoadingSkeletonProps {
244
+ type: 'message' | 'reference' | 'viewer';
245
+ count?: number;
246
+ className?: string;
247
+ }
248
+ /**
249
+ * State for HazoChatContext
250
+ */
251
+ export interface HazoChatContextState {
252
+ /** Current authenticated user */
253
+ current_user: HazoUserProfile | null;
254
+ /** Selected reference to display in viewer */
255
+ selected_reference: ChatReferenceItem | null;
256
+ /** ID of message to scroll to and highlight */
257
+ highlighted_message_id: string | null;
258
+ /** Pending file attachments */
259
+ pending_attachments: PendingAttachment[];
260
+ /** Whether sidebar is open (mobile) */
261
+ is_sidebar_open: boolean;
262
+ /** Polling connection status */
263
+ polling_status: PollingStatus;
264
+ /** All references from messages and props */
265
+ all_references: ChatReferenceItem[];
266
+ /** Error message if any */
267
+ error_message: string | null;
268
+ }
269
+ /**
270
+ * Actions for HazoChatContext
271
+ */
272
+ export interface HazoChatContextActions {
273
+ set_selected_reference: (reference: ChatReferenceItem | null) => void;
274
+ set_highlighted_message_id: (message_id: string | null) => void;
275
+ add_pending_attachment: (file: File) => void;
276
+ remove_pending_attachment: (attachment_id: string) => void;
277
+ update_pending_attachment: (attachment_id: string, updates: Partial<PendingAttachment>) => void;
278
+ clear_pending_attachments: () => void;
279
+ toggle_sidebar: () => void;
280
+ set_sidebar_open: (is_open: boolean) => void;
281
+ set_error_message: (message: string | null) => void;
282
+ add_reference: (reference: ChatReferenceItem) => void;
283
+ }
284
+ /**
285
+ * Full HazoChatContext value
286
+ */
287
+ export interface HazoChatContextValue extends HazoChatContextState, HazoChatContextActions {
288
+ }
289
+ /**
290
+ * Polling connection status
291
+ */
292
+ export type PollingStatus = 'connected' | 'reconnecting' | 'error';
293
+ /**
294
+ * Return type for useChatMessages hook
295
+ */
296
+ export interface UseChatMessagesReturn {
297
+ messages: ChatMessage[];
298
+ is_loading: boolean;
299
+ is_loading_more: boolean;
300
+ has_more: boolean;
301
+ error: string | null;
302
+ polling_status: PollingStatus;
303
+ load_more: () => void;
304
+ send_message: (payload: CreateMessagePayload) => Promise<boolean>;
305
+ delete_message: (message_id: string) => Promise<boolean>;
306
+ mark_as_read: (message_id: string) => Promise<void>;
307
+ refresh: () => void;
308
+ }
309
+ /**
310
+ * Return type for useChatReferences hook
311
+ */
312
+ export interface UseChatReferencesReturn {
313
+ references: ChatReferenceItem[];
314
+ selected_reference: ChatReferenceItem | null;
315
+ select_reference: (reference: ChatReferenceItem) => void;
316
+ clear_selection: () => void;
317
+ add_reference: (reference: ChatReferenceItem) => void;
318
+ get_message_for_reference: (reference_id: string) => string | null;
319
+ }
320
+ /**
321
+ * Return type for useFileUpload hook
322
+ */
323
+ export interface UseFileUploadReturn {
324
+ pending_attachments: PendingAttachment[];
325
+ add_files: (files: File[]) => void;
326
+ remove_file: (attachment_id: string) => void;
327
+ upload_all: () => Promise<UploadedFile[]>;
328
+ clear_all: () => void;
329
+ is_uploading: boolean;
330
+ validation_errors: string[];
331
+ }
332
+ /**
333
+ * Chat configuration from hazo_chat_config.ini
334
+ */
335
+ export interface ChatConfig {
336
+ polling_interval: number;
337
+ messages_per_page: number;
338
+ }
339
+ /**
340
+ * Upload configuration from hazo_chat_config.ini
341
+ */
342
+ export interface UploadConfig {
343
+ max_file_size_mb: number;
344
+ allowed_types: string[];
345
+ }
346
+ /**
347
+ * Full configuration object
348
+ */
349
+ export interface HazoChatConfig {
350
+ chat: ChatConfig;
351
+ uploads: UploadConfig;
352
+ }
353
+ /**
354
+ * Response from GET /api/hazo_chat/messages
355
+ */
356
+ export interface MessagesApiResponse {
357
+ success: boolean;
358
+ messages?: ChatMessageDB[];
359
+ current_user_id?: string;
360
+ error?: string;
361
+ }
362
+ /**
363
+ * Response from POST /api/hazo_chat/messages
364
+ */
365
+ export interface SendMessageApiResponse {
366
+ success: boolean;
367
+ message?: ChatMessageDB;
368
+ error?: string;
369
+ }
370
+ /**
371
+ * Response from /api/hazo_auth/profiles
372
+ */
373
+ export interface ProfilesApiResponse {
374
+ success: boolean;
375
+ profiles?: HazoUserProfile[];
376
+ error?: string;
377
+ }
378
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAA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 *
4
+ * Contains all TypeScript interfaces and types used across the package
5
+ * for props, messages, references, user profiles, and configuration.
6
+ *
7
+ * This package uses an API-first architecture - all data access is done
8
+ * via fetch() calls to API endpoints, not direct database access.
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_chat",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Chat interface for 1-1 communication with API-first architecture",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",