hazo_chat 3.2.0 → 4.0.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.
- package/README.md +3 -1
- package/SETUP_CHECKLIST.md +4 -2
- package/package.json +6 -1
- package/dist/api/index.d.ts +0 -41
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -40
- package/dist/api/index.js.map +0 -1
- package/dist/api/messages.d.ts +0 -85
- package/dist/api/messages.d.ts.map +0 -1
- package/dist/api/messages.js +0 -623
- package/dist/api/messages.js.map +0 -1
- package/dist/api/types.d.ts +0 -117
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -8
- package/dist/api/types.js.map +0 -1
- package/dist/api/unread_count.d.ts +0 -66
- package/dist/api/unread_count.d.ts.map +0 -1
- package/dist/api/unread_count.js +0 -110
- package/dist/api/unread_count.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat.d.ts +0 -28
- package/dist/components/hazo_chat/hazo_chat.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat.js +0 -228
- package/dist/components/hazo_chat/hazo_chat.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts +0 -17
- package/dist/components/hazo_chat/hazo_chat_attachment_preview.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_attachment_preview.js +0 -60
- package/dist/components/hazo_chat/hazo_chat_attachment_preview.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_context.d.ts +0 -42
- package/dist/components/hazo_chat/hazo_chat_context.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_context.js +0 -273
- package/dist/components/hazo_chat/hazo_chat_context.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts +0 -15
- package/dist/components/hazo_chat/hazo_chat_document_viewer.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_document_viewer.js +0 -140
- package/dist/components/hazo_chat/hazo_chat_document_viewer.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_header.d.ts +0 -16
- package/dist/components/hazo_chat/hazo_chat_header.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_header.js +0 -45
- package/dist/components/hazo_chat/hazo_chat_header.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_input.d.ts +0 -16
- package/dist/components/hazo_chat/hazo_chat_input.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_input.js +0 -75
- package/dist/components/hazo_chat/hazo_chat_input.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_messages.d.ts +0 -18
- package/dist/components/hazo_chat/hazo_chat_messages.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_messages.js +0 -255
- package/dist/components/hazo_chat/hazo_chat_messages.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts +0 -16
- package/dist/components/hazo_chat/hazo_chat_reference_list.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_reference_list.js +0 -59
- package/dist/components/hazo_chat/hazo_chat_reference_list.js.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts +0 -18
- package/dist/components/hazo_chat/hazo_chat_sidebar.d.ts.map +0 -1
- package/dist/components/hazo_chat/hazo_chat_sidebar.js +0 -72
- package/dist/components/hazo_chat/hazo_chat_sidebar.js.map +0 -1
- package/dist/components/hazo_chat/index.d.ts +0 -16
- package/dist/components/hazo_chat/index.d.ts.map +0 -1
- package/dist/components/hazo_chat/index.js +0 -19
- package/dist/components/hazo_chat/index.js.map +0 -1
- package/dist/components/index.d.ts +0 -9
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -11
- package/dist/components/index.js.map +0 -1
- package/dist/components/ui/avatar.d.ts +0 -13
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/avatar.js +0 -28
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/badge.d.ts +0 -16
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -36
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/button.d.ts +0 -18
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -47
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/chat_bubble.d.ts +0 -18
- package/dist/components/ui/chat_bubble.d.ts.map +0 -1
- package/dist/components/ui/chat_bubble.js +0 -130
- package/dist/components/ui/chat_bubble.js.map +0 -1
- package/dist/components/ui/hover-card.d.ts +0 -13
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/hover-card.js +0 -17
- package/dist/components/ui/hover-card.js.map +0 -1
- package/dist/components/ui/index.d.ts +0 -19
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/ui/index.js +0 -21
- package/dist/components/ui/index.js.map +0 -1
- package/dist/components/ui/input.d.ts +0 -11
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -18
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/loading_skeleton.d.ts +0 -19
- package/dist/components/ui/loading_skeleton.d.ts.map +0 -1
- package/dist/components/ui/loading_skeleton.js +0 -30
- package/dist/components/ui/loading_skeleton.js.map +0 -1
- package/dist/components/ui/scroll-area.d.ts +0 -12
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -25
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -11
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/separator.js +0 -18
- package/dist/components/ui/separator.js.map +0 -1
- package/dist/components/ui/skeleton.d.ts +0 -9
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -16
- package/dist/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/textarea.d.ts +0 -11
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -18
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -14
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -30
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -10
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -10
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/use_chat_messages.d.ts +0 -33
- package/dist/hooks/use_chat_messages.d.ts.map +0 -1
- package/dist/hooks/use_chat_messages.js +0 -584
- package/dist/hooks/use_chat_messages.js.map +0 -1
- package/dist/hooks/use_chat_references.d.ts +0 -17
- package/dist/hooks/use_chat_references.d.ts.map +0 -1
- package/dist/hooks/use_chat_references.js +0 -133
- package/dist/hooks/use_chat_references.js.map +0 -1
- package/dist/hooks/use_file_upload.d.ts +0 -23
- package/dist/hooks/use_file_upload.d.ts.map +0 -1
- package/dist/hooks/use_file_upload.js +0 -212
- package/dist/hooks/use_file_upload.js.map +0 -1
- package/dist/index.d.ts +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +0 -1
- package/dist/lib/config.d.ts +0 -41
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/config.js +0 -93
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/constants.d.ts +0 -41
- package/dist/lib/constants.d.ts.map +0 -1
- package/dist/lib/constants.js +0 -72
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/index.d.ts +0 -9
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/index.js +0 -9
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -17
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -20
- package/dist/lib/utils.js.map +0 -1
- package/dist/types/index.d.ts +0 -560
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -11
- package/dist/types/index.js.map +0 -1
package/dist/lib/constants.js
DELETED
|
@@ -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,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AE/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"}
|
package/dist/lib/index.d.ts
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.d.ts.map
|
package/dist/lib/index.d.ts.map
DELETED
|
@@ -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
|
package/dist/lib/index.js.map
DELETED
|
@@ -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"}
|
package/dist/lib/utils.d.ts
DELETED
|
@@ -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
|
package/dist/lib/utils.d.ts.map
DELETED
|
@@ -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
|
package/dist/lib/utils.js.map
DELETED
|
@@ -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"}
|