hazo_chat 2.0.10 → 2.0.12

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 (147) hide show
  1. package/README.md +379 -7
  2. package/SETUP_CHECKLIST.md +95 -0
  3. package/package.json +4 -2
  4. package/dist/api/index.d.ts +0 -24
  5. package/dist/api/index.d.ts.map +0 -1
  6. package/dist/api/index.js +0 -24
  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/components/hazo_chat/hazo_chat.d.ts +0 -28
  17. package/dist/components/hazo_chat/hazo_chat.d.ts.map +0 -1
  18. package/dist/components/hazo_chat/hazo_chat.js +0 -200
  19. package/dist/components/hazo_chat/hazo_chat.js.map +0 -1
  20. package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts +0 -17
  21. package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts.map +0 -1
  22. package/dist/components/hazo_chat/hazo_chat_attachment_preview.js +0 -60
  23. package/dist/components/hazo_chat/hazo_chat_attachment_preview.js.map +0 -1
  24. package/dist/components/hazo_chat/hazo_chat_context.d.ts +0 -42
  25. package/dist/components/hazo_chat/hazo_chat_context.d.ts.map +0 -1
  26. package/dist/components/hazo_chat/hazo_chat_context.js +0 -273
  27. package/dist/components/hazo_chat/hazo_chat_context.js.map +0 -1
  28. package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts +0 -15
  29. package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts.map +0 -1
  30. package/dist/components/hazo_chat/hazo_chat_document_viewer.js +0 -111
  31. package/dist/components/hazo_chat/hazo_chat_document_viewer.js.map +0 -1
  32. package/dist/components/hazo_chat/hazo_chat_header.d.ts +0 -16
  33. package/dist/components/hazo_chat/hazo_chat_header.d.ts.map +0 -1
  34. package/dist/components/hazo_chat/hazo_chat_header.js +0 -24
  35. package/dist/components/hazo_chat/hazo_chat_header.js.map +0 -1
  36. package/dist/components/hazo_chat/hazo_chat_input.d.ts +0 -16
  37. package/dist/components/hazo_chat/hazo_chat_input.d.ts.map +0 -1
  38. package/dist/components/hazo_chat/hazo_chat_input.js +0 -75
  39. package/dist/components/hazo_chat/hazo_chat_input.js.map +0 -1
  40. package/dist/components/hazo_chat/hazo_chat_messages.d.ts +0 -17
  41. package/dist/components/hazo_chat/hazo_chat_messages.d.ts.map +0 -1
  42. package/dist/components/hazo_chat/hazo_chat_messages.js +0 -109
  43. package/dist/components/hazo_chat/hazo_chat_messages.js.map +0 -1
  44. package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts +0 -16
  45. package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts.map +0 -1
  46. package/dist/components/hazo_chat/hazo_chat_reference_list.js +0 -59
  47. package/dist/components/hazo_chat/hazo_chat_reference_list.js.map +0 -1
  48. package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts +0 -18
  49. package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts.map +0 -1
  50. package/dist/components/hazo_chat/hazo_chat_sidebar.js +0 -72
  51. package/dist/components/hazo_chat/hazo_chat_sidebar.js.map +0 -1
  52. package/dist/components/hazo_chat/index.d.ts +0 -16
  53. package/dist/components/hazo_chat/index.d.ts.map +0 -1
  54. package/dist/components/hazo_chat/index.js +0 -19
  55. package/dist/components/hazo_chat/index.js.map +0 -1
  56. package/dist/components/index.d.ts +0 -9
  57. package/dist/components/index.d.ts.map +0 -1
  58. package/dist/components/index.js +0 -11
  59. package/dist/components/index.js.map +0 -1
  60. package/dist/components/ui/avatar.d.ts +0 -13
  61. package/dist/components/ui/avatar.d.ts.map +0 -1
  62. package/dist/components/ui/avatar.js +0 -28
  63. package/dist/components/ui/avatar.js.map +0 -1
  64. package/dist/components/ui/badge.d.ts +0 -16
  65. package/dist/components/ui/badge.d.ts.map +0 -1
  66. package/dist/components/ui/badge.js +0 -36
  67. package/dist/components/ui/badge.js.map +0 -1
  68. package/dist/components/ui/button.d.ts +0 -18
  69. package/dist/components/ui/button.d.ts.map +0 -1
  70. package/dist/components/ui/button.js +0 -47
  71. package/dist/components/ui/button.js.map +0 -1
  72. package/dist/components/ui/chat_bubble.d.ts +0 -18
  73. package/dist/components/ui/chat_bubble.d.ts.map +0 -1
  74. package/dist/components/ui/chat_bubble.js +0 -88
  75. package/dist/components/ui/chat_bubble.js.map +0 -1
  76. package/dist/components/ui/index.d.ts +0 -18
  77. package/dist/components/ui/index.d.ts.map +0 -1
  78. package/dist/components/ui/index.js +0 -20
  79. package/dist/components/ui/index.js.map +0 -1
  80. package/dist/components/ui/input.d.ts +0 -11
  81. package/dist/components/ui/input.d.ts.map +0 -1
  82. package/dist/components/ui/input.js +0 -18
  83. package/dist/components/ui/input.js.map +0 -1
  84. package/dist/components/ui/loading_skeleton.d.ts +0 -19
  85. package/dist/components/ui/loading_skeleton.d.ts.map +0 -1
  86. package/dist/components/ui/loading_skeleton.js +0 -30
  87. package/dist/components/ui/loading_skeleton.js.map +0 -1
  88. package/dist/components/ui/scroll-area.d.ts +0 -12
  89. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  90. package/dist/components/ui/scroll-area.js +0 -25
  91. package/dist/components/ui/scroll-area.js.map +0 -1
  92. package/dist/components/ui/separator.d.ts +0 -11
  93. package/dist/components/ui/separator.d.ts.map +0 -1
  94. package/dist/components/ui/separator.js +0 -18
  95. package/dist/components/ui/separator.js.map +0 -1
  96. package/dist/components/ui/skeleton.d.ts +0 -9
  97. package/dist/components/ui/skeleton.d.ts.map +0 -1
  98. package/dist/components/ui/skeleton.js +0 -16
  99. package/dist/components/ui/skeleton.js.map +0 -1
  100. package/dist/components/ui/textarea.d.ts +0 -11
  101. package/dist/components/ui/textarea.d.ts.map +0 -1
  102. package/dist/components/ui/textarea.js +0 -18
  103. package/dist/components/ui/textarea.js.map +0 -1
  104. package/dist/components/ui/tooltip.d.ts +0 -14
  105. package/dist/components/ui/tooltip.d.ts.map +0 -1
  106. package/dist/components/ui/tooltip.js +0 -30
  107. package/dist/components/ui/tooltip.js.map +0 -1
  108. package/dist/hooks/index.d.ts +0 -10
  109. package/dist/hooks/index.d.ts.map +0 -1
  110. package/dist/hooks/index.js +0 -10
  111. package/dist/hooks/index.js.map +0 -1
  112. package/dist/hooks/use_chat_messages.d.ts +0 -33
  113. package/dist/hooks/use_chat_messages.d.ts.map +0 -1
  114. package/dist/hooks/use_chat_messages.js +0 -466
  115. package/dist/hooks/use_chat_messages.js.map +0 -1
  116. package/dist/hooks/use_chat_references.d.ts +0 -17
  117. package/dist/hooks/use_chat_references.d.ts.map +0 -1
  118. package/dist/hooks/use_chat_references.js +0 -133
  119. package/dist/hooks/use_chat_references.js.map +0 -1
  120. package/dist/hooks/use_file_upload.d.ts +0 -23
  121. package/dist/hooks/use_file_upload.d.ts.map +0 -1
  122. package/dist/hooks/use_file_upload.js +0 -212
  123. package/dist/hooks/use_file_upload.js.map +0 -1
  124. package/dist/index.d.ts +0 -13
  125. package/dist/index.d.ts.map +0 -1
  126. package/dist/index.js +0 -17
  127. package/dist/index.js.map +0 -1
  128. package/dist/lib/config.d.ts +0 -41
  129. package/dist/lib/config.d.ts.map +0 -1
  130. package/dist/lib/config.js +0 -93
  131. package/dist/lib/config.js.map +0 -1
  132. package/dist/lib/constants.d.ts +0 -41
  133. package/dist/lib/constants.d.ts.map +0 -1
  134. package/dist/lib/constants.js +0 -72
  135. package/dist/lib/constants.js.map +0 -1
  136. package/dist/lib/index.d.ts +0 -9
  137. package/dist/lib/index.d.ts.map +0 -1
  138. package/dist/lib/index.js +0 -9
  139. package/dist/lib/index.js.map +0 -1
  140. package/dist/lib/utils.d.ts +0 -17
  141. package/dist/lib/utils.d.ts.map +0 -1
  142. package/dist/lib/utils.js +0 -20
  143. package/dist/lib/utils.js.map +0 -1
  144. package/dist/types/index.d.ts +0 -388
  145. package/dist/types/index.d.ts.map +0 -1
  146. package/dist/types/index.js +0 -11
  147. 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;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"}
@@ -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.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,388 +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
- /** Additional CSS classes */
158
- className?: string;
159
- }
160
- /**
161
- * Props for HazoChatHeader component
162
- */
163
- export interface HazoChatHeaderProps {
164
- title?: string;
165
- subtitle?: string;
166
- on_close?: () => void;
167
- on_refresh?: () => void;
168
- is_refreshing?: boolean;
169
- on_toggle_sidebar?: () => void;
170
- is_sidebar_open?: boolean;
171
- className?: string;
172
- }
173
- /**
174
- * Props for HazoChatSidebar component
175
- */
176
- export interface HazoChatSidebarProps {
177
- is_open: boolean;
178
- on_close: () => void;
179
- className?: string;
180
- children?: ReactNode;
181
- }
182
- /**
183
- * Props for HazoChatReferenceList component
184
- */
185
- export interface HazoChatReferenceListProps {
186
- references: ChatReferenceItem[];
187
- selected_reference_id?: string;
188
- on_select: (reference: ChatReferenceItem) => void;
189
- className?: string;
190
- }
191
- /**
192
- * Props for HazoChatDocumentViewer component
193
- */
194
- export interface HazoChatDocumentViewerProps {
195
- reference?: ChatReferenceItem;
196
- className?: string;
197
- }
198
- /**
199
- * Props for HazoChatMessages component
200
- */
201
- export interface HazoChatMessagesProps {
202
- messages: ChatMessage[];
203
- current_user_id: string;
204
- timezone: string;
205
- is_loading: boolean;
206
- has_more: boolean;
207
- on_load_more: () => void;
208
- on_delete_message: (message_id: string) => void;
209
- on_scroll_to_message?: (message_id: string) => void;
210
- highlighted_message_id?: string;
211
- className?: string;
212
- }
213
- /**
214
- * Props for HazoChatInput component
215
- */
216
- export interface HazoChatInputProps {
217
- on_send: (message: string, attachments: UploadedFile[]) => void;
218
- pending_attachments: PendingAttachment[];
219
- on_add_attachment: (files: File[]) => void;
220
- on_remove_attachment: (attachment_id: string) => void;
221
- is_disabled?: boolean;
222
- placeholder?: string;
223
- className?: string;
224
- }
225
- /**
226
- * Props for HazoChatAttachmentPreview component
227
- */
228
- export interface HazoChatAttachmentPreviewProps {
229
- attachments: PendingAttachment[];
230
- on_remove: (attachment_id: string) => void;
231
- className?: string;
232
- }
233
- /**
234
- * Props for ChatBubble component
235
- */
236
- export interface ChatBubbleProps {
237
- message: ChatMessage;
238
- is_sender: boolean;
239
- sender_profile?: HazoUserProfile;
240
- timezone: string;
241
- on_delete?: () => void;
242
- on_reference_click?: (reference: ChatReferenceItem) => void;
243
- is_highlighted?: boolean;
244
- className?: string;
245
- }
246
- /**
247
- * Props for LoadingSkeleton component
248
- */
249
- export interface LoadingSkeletonProps {
250
- type: 'message' | 'reference' | 'viewer';
251
- count?: number;
252
- className?: string;
253
- }
254
- /**
255
- * State for HazoChatContext
256
- */
257
- export interface HazoChatContextState {
258
- /** Current authenticated user */
259
- current_user: HazoUserProfile | null;
260
- /** Selected reference to display in viewer */
261
- selected_reference: ChatReferenceItem | null;
262
- /** ID of message to scroll to and highlight */
263
- highlighted_message_id: string | null;
264
- /** Pending file attachments */
265
- pending_attachments: PendingAttachment[];
266
- /** Whether sidebar is open (mobile) */
267
- is_sidebar_open: boolean;
268
- /** Polling connection status */
269
- polling_status: PollingStatus;
270
- /** All references from messages and props */
271
- all_references: ChatReferenceItem[];
272
- /** Error message if any */
273
- error_message: string | null;
274
- }
275
- /**
276
- * Actions for HazoChatContext
277
- */
278
- export interface HazoChatContextActions {
279
- set_selected_reference: (reference: ChatReferenceItem | null) => void;
280
- set_highlighted_message_id: (message_id: string | null) => void;
281
- add_pending_attachment: (file: File) => void;
282
- remove_pending_attachment: (attachment_id: string) => void;
283
- update_pending_attachment: (attachment_id: string, updates: Partial<PendingAttachment>) => void;
284
- clear_pending_attachments: () => void;
285
- toggle_sidebar: () => void;
286
- set_sidebar_open: (is_open: boolean) => void;
287
- set_error_message: (message: string | null) => void;
288
- add_reference: (reference: ChatReferenceItem) => void;
289
- }
290
- /**
291
- * Full HazoChatContext value
292
- */
293
- export interface HazoChatContextValue extends HazoChatContextState, HazoChatContextActions {
294
- }
295
- /**
296
- * Real-time update mode
297
- */
298
- export type RealtimeMode = 'polling' | 'manual';
299
- /**
300
- * Polling connection status
301
- */
302
- export type PollingStatus = 'connected' | 'reconnecting' | 'error';
303
- /**
304
- * Return type for useChatMessages hook
305
- */
306
- export interface UseChatMessagesReturn {
307
- messages: ChatMessage[];
308
- is_loading: boolean;
309
- is_loading_more: boolean;
310
- has_more: boolean;
311
- error: string | null;
312
- polling_status: PollingStatus;
313
- load_more: () => void;
314
- send_message: (payload: CreateMessagePayload) => Promise<boolean>;
315
- delete_message: (message_id: string) => Promise<boolean>;
316
- mark_as_read: (message_id: string) => Promise<void>;
317
- refresh: () => void;
318
- }
319
- /**
320
- * Return type for useChatReferences hook
321
- */
322
- export interface UseChatReferencesReturn {
323
- references: ChatReferenceItem[];
324
- selected_reference: ChatReferenceItem | null;
325
- select_reference: (reference: ChatReferenceItem) => void;
326
- clear_selection: () => void;
327
- add_reference: (reference: ChatReferenceItem) => void;
328
- get_message_for_reference: (reference_id: string) => string | null;
329
- }
330
- /**
331
- * Return type for useFileUpload hook
332
- */
333
- export interface UseFileUploadReturn {
334
- pending_attachments: PendingAttachment[];
335
- add_files: (files: File[]) => void;
336
- remove_file: (attachment_id: string) => void;
337
- upload_all: () => Promise<UploadedFile[]>;
338
- clear_all: () => void;
339
- is_uploading: boolean;
340
- validation_errors: string[];
341
- }
342
- /**
343
- * Chat configuration from hazo_chat_config.ini
344
- */
345
- export interface ChatConfig {
346
- polling_interval: number;
347
- messages_per_page: number;
348
- }
349
- /**
350
- * Upload configuration from hazo_chat_config.ini
351
- */
352
- export interface UploadConfig {
353
- max_file_size_mb: number;
354
- allowed_types: string[];
355
- }
356
- /**
357
- * Full configuration object
358
- */
359
- export interface HazoChatConfig {
360
- chat: ChatConfig;
361
- uploads: UploadConfig;
362
- }
363
- /**
364
- * Response from GET /api/hazo_chat/messages
365
- */
366
- export interface MessagesApiResponse {
367
- success: boolean;
368
- messages?: ChatMessageDB[];
369
- current_user_id?: string;
370
- error?: string;
371
- }
372
- /**
373
- * Response from POST /api/hazo_chat/messages
374
- */
375
- export interface SendMessageApiResponse {
376
- success: boolean;
377
- message?: ChatMessageDB;
378
- error?: string;
379
- }
380
- /**
381
- * Response from /api/hazo_auth/profiles
382
- */
383
- export interface ProfilesApiResponse {
384
- success: boolean;
385
- profiles?: HazoUserProfile[];
386
- error?: string;
387
- }
388
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,iBAAiB,EAAE,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"}
@@ -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"}