hazo_chat 2.0.14 → 2.0.15

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 (155) hide show
  1. package/README.md +41 -5
  2. package/SETUP_CHECKLIST.md +73 -0
  3. package/package.json +1 -1
  4. package/dist/api/index.d.ts +0 -26
  5. package/dist/api/index.d.ts.map +0 -1
  6. package/dist/api/index.js +0 -25
  7. package/dist/api/index.js.map +0 -1
  8. package/dist/api/messages.d.ts +0 -34
  9. package/dist/api/messages.d.ts.map +0 -1
  10. package/dist/api/messages.js +0 -214
  11. package/dist/api/messages.js.map +0 -1
  12. package/dist/api/types.d.ts +0 -69
  13. package/dist/api/types.d.ts.map +0 -1
  14. package/dist/api/types.js +0 -8
  15. package/dist/api/types.js.map +0 -1
  16. package/dist/api/unread_count.d.ts +0 -57
  17. package/dist/api/unread_count.d.ts.map +0 -1
  18. package/dist/api/unread_count.js +0 -86
  19. package/dist/api/unread_count.js.map +0 -1
  20. package/dist/components/hazo_chat/hazo_chat.d.ts +0 -28
  21. package/dist/components/hazo_chat/hazo_chat.d.ts.map +0 -1
  22. package/dist/components/hazo_chat/hazo_chat.js +0 -201
  23. package/dist/components/hazo_chat/hazo_chat.js.map +0 -1
  24. package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts +0 -17
  25. package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts.map +0 -1
  26. package/dist/components/hazo_chat/hazo_chat_attachment_preview.js +0 -60
  27. package/dist/components/hazo_chat/hazo_chat_attachment_preview.js.map +0 -1
  28. package/dist/components/hazo_chat/hazo_chat_context.d.ts +0 -42
  29. package/dist/components/hazo_chat/hazo_chat_context.d.ts.map +0 -1
  30. package/dist/components/hazo_chat/hazo_chat_context.js +0 -273
  31. package/dist/components/hazo_chat/hazo_chat_context.js.map +0 -1
  32. package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts +0 -15
  33. package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts.map +0 -1
  34. package/dist/components/hazo_chat/hazo_chat_document_viewer.js +0 -140
  35. package/dist/components/hazo_chat/hazo_chat_document_viewer.js.map +0 -1
  36. package/dist/components/hazo_chat/hazo_chat_header.d.ts +0 -16
  37. package/dist/components/hazo_chat/hazo_chat_header.d.ts.map +0 -1
  38. package/dist/components/hazo_chat/hazo_chat_header.js +0 -24
  39. package/dist/components/hazo_chat/hazo_chat_header.js.map +0 -1
  40. package/dist/components/hazo_chat/hazo_chat_input.d.ts +0 -16
  41. package/dist/components/hazo_chat/hazo_chat_input.d.ts.map +0 -1
  42. package/dist/components/hazo_chat/hazo_chat_input.js +0 -75
  43. package/dist/components/hazo_chat/hazo_chat_input.js.map +0 -1
  44. package/dist/components/hazo_chat/hazo_chat_messages.d.ts +0 -17
  45. package/dist/components/hazo_chat/hazo_chat_messages.d.ts.map +0 -1
  46. package/dist/components/hazo_chat/hazo_chat_messages.js +0 -109
  47. package/dist/components/hazo_chat/hazo_chat_messages.js.map +0 -1
  48. package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts +0 -16
  49. package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts.map +0 -1
  50. package/dist/components/hazo_chat/hazo_chat_reference_list.js +0 -59
  51. package/dist/components/hazo_chat/hazo_chat_reference_list.js.map +0 -1
  52. package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts +0 -18
  53. package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts.map +0 -1
  54. package/dist/components/hazo_chat/hazo_chat_sidebar.js +0 -72
  55. package/dist/components/hazo_chat/hazo_chat_sidebar.js.map +0 -1
  56. package/dist/components/hazo_chat/index.d.ts +0 -16
  57. package/dist/components/hazo_chat/index.d.ts.map +0 -1
  58. package/dist/components/hazo_chat/index.js +0 -19
  59. package/dist/components/hazo_chat/index.js.map +0 -1
  60. package/dist/components/index.d.ts +0 -9
  61. package/dist/components/index.d.ts.map +0 -1
  62. package/dist/components/index.js +0 -11
  63. package/dist/components/index.js.map +0 -1
  64. package/dist/components/ui/avatar.d.ts +0 -13
  65. package/dist/components/ui/avatar.d.ts.map +0 -1
  66. package/dist/components/ui/avatar.js +0 -28
  67. package/dist/components/ui/avatar.js.map +0 -1
  68. package/dist/components/ui/badge.d.ts +0 -16
  69. package/dist/components/ui/badge.d.ts.map +0 -1
  70. package/dist/components/ui/badge.js +0 -36
  71. package/dist/components/ui/badge.js.map +0 -1
  72. package/dist/components/ui/button.d.ts +0 -18
  73. package/dist/components/ui/button.d.ts.map +0 -1
  74. package/dist/components/ui/button.js +0 -47
  75. package/dist/components/ui/button.js.map +0 -1
  76. package/dist/components/ui/chat_bubble.d.ts +0 -18
  77. package/dist/components/ui/chat_bubble.d.ts.map +0 -1
  78. package/dist/components/ui/chat_bubble.js +0 -107
  79. package/dist/components/ui/chat_bubble.js.map +0 -1
  80. package/dist/components/ui/hover-card.d.ts +0 -13
  81. package/dist/components/ui/hover-card.d.ts.map +0 -1
  82. package/dist/components/ui/hover-card.js +0 -17
  83. package/dist/components/ui/hover-card.js.map +0 -1
  84. package/dist/components/ui/index.d.ts +0 -19
  85. package/dist/components/ui/index.d.ts.map +0 -1
  86. package/dist/components/ui/index.js +0 -21
  87. package/dist/components/ui/index.js.map +0 -1
  88. package/dist/components/ui/input.d.ts +0 -11
  89. package/dist/components/ui/input.d.ts.map +0 -1
  90. package/dist/components/ui/input.js +0 -18
  91. package/dist/components/ui/input.js.map +0 -1
  92. package/dist/components/ui/loading_skeleton.d.ts +0 -19
  93. package/dist/components/ui/loading_skeleton.d.ts.map +0 -1
  94. package/dist/components/ui/loading_skeleton.js +0 -30
  95. package/dist/components/ui/loading_skeleton.js.map +0 -1
  96. package/dist/components/ui/scroll-area.d.ts +0 -12
  97. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  98. package/dist/components/ui/scroll-area.js +0 -25
  99. package/dist/components/ui/scroll-area.js.map +0 -1
  100. package/dist/components/ui/separator.d.ts +0 -11
  101. package/dist/components/ui/separator.d.ts.map +0 -1
  102. package/dist/components/ui/separator.js +0 -18
  103. package/dist/components/ui/separator.js.map +0 -1
  104. package/dist/components/ui/skeleton.d.ts +0 -9
  105. package/dist/components/ui/skeleton.d.ts.map +0 -1
  106. package/dist/components/ui/skeleton.js +0 -16
  107. package/dist/components/ui/skeleton.js.map +0 -1
  108. package/dist/components/ui/textarea.d.ts +0 -11
  109. package/dist/components/ui/textarea.d.ts.map +0 -1
  110. package/dist/components/ui/textarea.js +0 -18
  111. package/dist/components/ui/textarea.js.map +0 -1
  112. package/dist/components/ui/tooltip.d.ts +0 -14
  113. package/dist/components/ui/tooltip.d.ts.map +0 -1
  114. package/dist/components/ui/tooltip.js +0 -30
  115. package/dist/components/ui/tooltip.js.map +0 -1
  116. package/dist/hooks/index.d.ts +0 -10
  117. package/dist/hooks/index.d.ts.map +0 -1
  118. package/dist/hooks/index.js +0 -10
  119. package/dist/hooks/index.js.map +0 -1
  120. package/dist/hooks/use_chat_messages.d.ts +0 -33
  121. package/dist/hooks/use_chat_messages.d.ts.map +0 -1
  122. package/dist/hooks/use_chat_messages.js +0 -466
  123. package/dist/hooks/use_chat_messages.js.map +0 -1
  124. package/dist/hooks/use_chat_references.d.ts +0 -17
  125. package/dist/hooks/use_chat_references.d.ts.map +0 -1
  126. package/dist/hooks/use_chat_references.js +0 -133
  127. package/dist/hooks/use_chat_references.js.map +0 -1
  128. package/dist/hooks/use_file_upload.d.ts +0 -23
  129. package/dist/hooks/use_file_upload.d.ts.map +0 -1
  130. package/dist/hooks/use_file_upload.js +0 -212
  131. package/dist/hooks/use_file_upload.js.map +0 -1
  132. package/dist/index.d.ts +0 -13
  133. package/dist/index.d.ts.map +0 -1
  134. package/dist/index.js +0 -17
  135. package/dist/index.js.map +0 -1
  136. package/dist/lib/config.d.ts +0 -41
  137. package/dist/lib/config.d.ts.map +0 -1
  138. package/dist/lib/config.js +0 -93
  139. package/dist/lib/config.js.map +0 -1
  140. package/dist/lib/constants.d.ts +0 -41
  141. package/dist/lib/constants.d.ts.map +0 -1
  142. package/dist/lib/constants.js +0 -72
  143. package/dist/lib/constants.js.map +0 -1
  144. package/dist/lib/index.d.ts +0 -9
  145. package/dist/lib/index.d.ts.map +0 -1
  146. package/dist/lib/index.js +0 -9
  147. package/dist/lib/index.js.map +0 -1
  148. package/dist/lib/utils.d.ts +0 -17
  149. package/dist/lib/utils.d.ts.map +0 -1
  150. package/dist/lib/utils.js +0 -20
  151. package/dist/lib/utils.js.map +0 -1
  152. package/dist/types/index.d.ts +0 -404
  153. package/dist/types/index.d.ts.map +0 -1
  154. package/dist/types/index.js +0 -11
  155. package/dist/types/index.js.map +0 -1
@@ -1,72 +0,0 @@
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 real-time update mode: 'polling' or 'manual' */
11
- export const DEFAULT_REALTIME_MODE = 'polling';
12
- /** Default polling interval in milliseconds */
13
- export const DEFAULT_POLLING_INTERVAL = 5000;
14
- /** Default number of messages to load per page */
15
- export const DEFAULT_MESSAGES_PER_PAGE = 20;
16
- /** Default maximum file size in MB */
17
- export const DEFAULT_MAX_FILE_SIZE_MB = 10;
18
- /** Default allowed file types for upload */
19
- export const DEFAULT_ALLOWED_TYPES = [
20
- 'pdf',
21
- 'png',
22
- 'jpg',
23
- 'jpeg',
24
- 'gif',
25
- 'txt',
26
- 'doc',
27
- 'docx'
28
- ];
29
- /** Default timezone */
30
- export const DEFAULT_TIMEZONE = 'GMT+10';
31
- // ============================================================================
32
- // MIME Type Mappings
33
- // ============================================================================
34
- /** Map file extensions to MIME types */
35
- export const MIME_TYPE_MAP = {
36
- pdf: 'application/pdf',
37
- png: 'image/png',
38
- jpg: 'image/jpeg',
39
- jpeg: 'image/jpeg',
40
- gif: 'image/gif',
41
- webp: 'image/webp',
42
- txt: 'text/plain',
43
- doc: 'application/msword',
44
- docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
45
- };
46
- /** File types that can be previewed in the document viewer */
47
- export const PREVIEWABLE_TYPES = {
48
- pdf: ['application/pdf'],
49
- image: ['image/png', 'image/jpeg', 'image/gif', 'image/webp'],
50
- text: ['text/plain']
51
- };
52
- // ============================================================================
53
- // UI Constants
54
- // ============================================================================
55
- /** Breakpoint for mobile/desktop layout switch */
56
- export const MOBILE_BREAKPOINT = 768;
57
- /** Maximum retry attempts for failed operations */
58
- export const MAX_RETRY_ATTEMPTS = 3;
59
- /** Base delay for exponential backoff (ms) */
60
- export const RETRY_BASE_DELAY = 1000;
61
- /** Animation duration for UI transitions (ms) */
62
- export const ANIMATION_DURATION = 200;
63
- // ============================================================================
64
- // Message Status
65
- // ============================================================================
66
- /** Placeholder text for deleted messages */
67
- export const DELETED_MESSAGE_PLACEHOLDER = 'This message has been deleted';
68
- /** Text shown when no messages exist */
69
- export const EMPTY_CHAT_MESSAGE = 'No messages yet. Start the conversation!';
70
- /** Text shown when loading messages */
71
- export const LOADING_MESSAGES_TEXT = 'Loading messages...';
72
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
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,2DAA2D;AAC3D,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAkB,CAAC;AAExD,+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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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
@@ -1 +0,0 @@
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"}
package/dist/lib/index.js DELETED
@@ -1,9 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
package/dist/lib/utils.js DELETED
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,404 +0,0 @@
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
- /** Real-time update mode: 'polling' (automatic) or 'manual' (refresh only) */
152
- realtime_mode?: RealtimeMode;
153
- /** Polling interval in milliseconds (only used when realtime_mode = 'polling') */
154
- polling_interval?: number;
155
- /** Number of messages per page for pagination */
156
- messages_per_page?: number;
157
- /** Show sidebar toggle button (hamburger menu) - default: false */
158
- show_sidebar_toggle?: boolean;
159
- /** Show delete button on chat bubbles - default: true */
160
- show_delete_button?: boolean;
161
- /** Bubble border radius style - default: 'default' */
162
- bubble_radius?: 'default' | 'full';
163
- /** Additional CSS classes */
164
- className?: string;
165
- }
166
- /**
167
- * Props for HazoChatHeader component
168
- */
169
- export interface HazoChatHeaderProps {
170
- title?: string;
171
- subtitle?: string;
172
- on_close?: () => void;
173
- on_refresh?: () => void;
174
- is_refreshing?: boolean;
175
- on_toggle_sidebar?: () => void;
176
- is_sidebar_open?: boolean;
177
- /** Show sidebar toggle button (hamburger menu) - default: false */
178
- show_sidebar_toggle?: boolean;
179
- className?: string;
180
- }
181
- /**
182
- * Props for HazoChatSidebar component
183
- */
184
- export interface HazoChatSidebarProps {
185
- is_open: boolean;
186
- on_close: () => void;
187
- className?: string;
188
- children?: ReactNode;
189
- }
190
- /**
191
- * Props for HazoChatReferenceList component
192
- */
193
- export interface HazoChatReferenceListProps {
194
- references: ChatReferenceItem[];
195
- selected_reference_id?: string;
196
- on_select: (reference: ChatReferenceItem) => void;
197
- className?: string;
198
- }
199
- /**
200
- * Props for HazoChatDocumentViewer component
201
- */
202
- export interface HazoChatDocumentViewerProps {
203
- reference?: ChatReferenceItem;
204
- className?: string;
205
- }
206
- /**
207
- * Props for HazoChatMessages component
208
- */
209
- export interface HazoChatMessagesProps {
210
- messages: ChatMessage[];
211
- current_user_id: string;
212
- timezone: string;
213
- is_loading: boolean;
214
- has_more: boolean;
215
- on_load_more: () => void;
216
- on_delete_message: (message_id: string) => void;
217
- on_scroll_to_message?: (message_id: string) => void;
218
- highlighted_message_id?: string;
219
- /** Show delete button on chat bubbles - default: true */
220
- show_delete_button?: boolean;
221
- /** Bubble border radius style - default: 'default' */
222
- bubble_radius?: 'default' | 'full';
223
- className?: string;
224
- }
225
- /**
226
- * Props for HazoChatInput component
227
- */
228
- export interface HazoChatInputProps {
229
- on_send: (message: string, attachments: UploadedFile[]) => void;
230
- pending_attachments: PendingAttachment[];
231
- on_add_attachment: (files: File[]) => void;
232
- on_remove_attachment: (attachment_id: string) => void;
233
- is_disabled?: boolean;
234
- placeholder?: string;
235
- className?: string;
236
- }
237
- /**
238
- * Props for HazoChatAttachmentPreview component
239
- */
240
- export interface HazoChatAttachmentPreviewProps {
241
- attachments: PendingAttachment[];
242
- on_remove: (attachment_id: string) => void;
243
- className?: string;
244
- }
245
- /**
246
- * Props for ChatBubble component
247
- */
248
- export interface ChatBubbleProps {
249
- message: ChatMessage;
250
- is_sender: boolean;
251
- sender_profile?: HazoUserProfile;
252
- timezone: string;
253
- on_delete?: () => void;
254
- on_reference_click?: (reference: ChatReferenceItem) => void;
255
- is_highlighted?: boolean;
256
- /** Show delete button on chat bubbles - default: true */
257
- show_delete_button?: boolean;
258
- /** Bubble border radius style - default: 'default' */
259
- bubble_radius?: 'default' | 'full';
260
- className?: string;
261
- }
262
- /**
263
- * Props for LoadingSkeleton component
264
- */
265
- export interface LoadingSkeletonProps {
266
- type: 'message' | 'reference' | 'viewer';
267
- count?: number;
268
- className?: string;
269
- }
270
- /**
271
- * State for HazoChatContext
272
- */
273
- export interface HazoChatContextState {
274
- /** Current authenticated user */
275
- current_user: HazoUserProfile | null;
276
- /** Selected reference to display in viewer */
277
- selected_reference: ChatReferenceItem | null;
278
- /** ID of message to scroll to and highlight */
279
- highlighted_message_id: string | null;
280
- /** Pending file attachments */
281
- pending_attachments: PendingAttachment[];
282
- /** Whether sidebar is open (mobile) */
283
- is_sidebar_open: boolean;
284
- /** Polling connection status */
285
- polling_status: PollingStatus;
286
- /** All references from messages and props */
287
- all_references: ChatReferenceItem[];
288
- /** Error message if any */
289
- error_message: string | null;
290
- }
291
- /**
292
- * Actions for HazoChatContext
293
- */
294
- export interface HazoChatContextActions {
295
- set_selected_reference: (reference: ChatReferenceItem | null) => void;
296
- set_highlighted_message_id: (message_id: string | null) => void;
297
- add_pending_attachment: (file: File) => void;
298
- remove_pending_attachment: (attachment_id: string) => void;
299
- update_pending_attachment: (attachment_id: string, updates: Partial<PendingAttachment>) => void;
300
- clear_pending_attachments: () => void;
301
- toggle_sidebar: () => void;
302
- set_sidebar_open: (is_open: boolean) => void;
303
- set_error_message: (message: string | null) => void;
304
- add_reference: (reference: ChatReferenceItem) => void;
305
- }
306
- /**
307
- * Full HazoChatContext value
308
- */
309
- export interface HazoChatContextValue extends HazoChatContextState, HazoChatContextActions {
310
- }
311
- /**
312
- * Real-time update mode
313
- */
314
- export type RealtimeMode = 'polling' | 'manual';
315
- /**
316
- * Polling connection status
317
- */
318
- export type PollingStatus = 'connected' | 'reconnecting' | 'error';
319
- /**
320
- * Return type for useChatMessages hook
321
- */
322
- export interface UseChatMessagesReturn {
323
- messages: ChatMessage[];
324
- is_loading: boolean;
325
- is_loading_more: boolean;
326
- has_more: boolean;
327
- error: string | null;
328
- polling_status: PollingStatus;
329
- load_more: () => void;
330
- send_message: (payload: CreateMessagePayload) => Promise<boolean>;
331
- delete_message: (message_id: string) => Promise<boolean>;
332
- mark_as_read: (message_id: string) => Promise<void>;
333
- refresh: () => void;
334
- }
335
- /**
336
- * Return type for useChatReferences hook
337
- */
338
- export interface UseChatReferencesReturn {
339
- references: ChatReferenceItem[];
340
- selected_reference: ChatReferenceItem | null;
341
- select_reference: (reference: ChatReferenceItem) => void;
342
- clear_selection: () => void;
343
- add_reference: (reference: ChatReferenceItem) => void;
344
- get_message_for_reference: (reference_id: string) => string | null;
345
- }
346
- /**
347
- * Return type for useFileUpload hook
348
- */
349
- export interface UseFileUploadReturn {
350
- pending_attachments: PendingAttachment[];
351
- add_files: (files: File[]) => void;
352
- remove_file: (attachment_id: string) => void;
353
- upload_all: () => Promise<UploadedFile[]>;
354
- clear_all: () => void;
355
- is_uploading: boolean;
356
- validation_errors: string[];
357
- }
358
- /**
359
- * Chat configuration from hazo_chat_config.ini
360
- */
361
- export interface ChatConfig {
362
- polling_interval: number;
363
- messages_per_page: number;
364
- }
365
- /**
366
- * Upload configuration from hazo_chat_config.ini
367
- */
368
- export interface UploadConfig {
369
- max_file_size_mb: number;
370
- allowed_types: string[];
371
- }
372
- /**
373
- * Full configuration object
374
- */
375
- export interface HazoChatConfig {
376
- chat: ChatConfig;
377
- uploads: UploadConfig;
378
- }
379
- /**
380
- * Response from GET /api/hazo_chat/messages
381
- */
382
- export interface MessagesApiResponse {
383
- success: boolean;
384
- messages?: ChatMessageDB[];
385
- current_user_id?: string;
386
- error?: string;
387
- }
388
- /**
389
- * Response from POST /api/hazo_chat/messages
390
- */
391
- export interface SendMessageApiResponse {
392
- success: boolean;
393
- message?: ChatMessageDB;
394
- error?: string;
395
- }
396
- /**
397
- * Response from /api/hazo_auth/profiles
398
- */
399
- export interface ProfilesApiResponse {
400
- success: boolean;
401
- profiles?: HazoUserProfile[];
402
- error?: string;
403
- }
404
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts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AAE,CAAC;IACzC,SAAS,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,MAAM,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC1C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAMD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,YAAY,CAAC;CACvB;AAMD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,11 +0,0 @@
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
- export {};
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}