@cossistant/next 0.0.26 → 0.0.29
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/conversation-timeline.d.ts.map +1 -1
- package/conversation.d.ts +2 -0
- package/conversation.d.ts.map +1 -1
- package/day-separator.d.ts +76 -0
- package/day-separator.d.ts.map +1 -0
- package/events.d.ts +32 -0
- package/events.d.ts.map +1 -0
- package/fallback.d.ts.map +1 -1
- package/handle.d.ts +63 -0
- package/handle.d.ts.map +1 -0
- package/hooks/index.d.ts +2 -2
- package/identify-visitor2.d.ts +1 -0
- package/identify-visitor2.d.ts.map +1 -1
- package/index.d.ts +9 -5
- package/index.js +3 -3
- package/index2.d.ts +2 -1
- package/index2.parts.d.ts +3 -1
- package/index4.d.ts +3 -1
- package/index7.d.ts +1 -70
- package/index8.d.ts +239 -3
- package/index8.d.ts.map +1 -0
- package/index9.d.ts +4 -0
- package/keys.d.ts +2 -0
- package/keys.d.ts.map +1 -1
- package/merge-refs.d.ts +1 -0
- package/package.json +2 -2
- package/primitives/index.d.ts +4 -2
- package/primitives/index.js +2 -2
- package/provider2.d.ts +2 -0
- package/provider2.d.ts.map +1 -1
- package/router.d.ts +1 -0
- package/router.d.ts.map +1 -1
- package/router2.d.ts +20 -3
- package/router2.d.ts.map +1 -1
- package/seen-store.d.ts +2 -0
- package/seen-store.d.ts.map +1 -1
- package/slots.d.ts +18 -0
- package/slots.d.ts.map +1 -0
- package/support/index.d.ts +5 -3
- package/support/index.js +2 -2
- package/support-config2.d.ts +1 -0
- package/support-config2.d.ts.map +1 -1
- package/support-store.d.ts +42 -14
- package/support-store.d.ts.map +1 -1
- package/support.css +2 -2
- package/timeline-item-attachments.d.ts +65 -0
- package/timeline-item-attachments.d.ts.map +1 -0
- package/timeline-item-group.d.ts +1 -0
- package/timeline-item-group.d.ts.map +1 -1
- package/trigger.d.ts +91 -0
- package/trigger.d.ts.map +1 -0
- package/types.d.ts +75 -12
- package/types.d.ts.map +1 -1
- package/typing-indicator.d.ts +1 -0
- package/typing-indicator.d.ts.map +1 -1
- package/typing-store.d.ts +2 -0
- package/typing-store.d.ts.map +1 -1
- package/typing.d.ts +4 -1
- package/typing.d.ts.map +1 -1
- package/use-client-query.d.ts +8 -0
- package/use-client-query.d.ts.map +1 -1
- package/use-conversation-auto-seen.d.ts +2 -1
- package/use-conversation-auto-seen.d.ts.map +1 -1
- package/use-conversation-history-page.d.ts +2 -0
- package/use-conversation-history-page.d.ts.map +1 -1
- package/use-conversation-page.d.ts +1 -0
- package/use-conversation-page.d.ts.map +1 -1
- package/use-conversation-preview.d.ts +3 -1
- package/use-conversation-preview.d.ts.map +1 -1
- package/use-conversation-timeline-items.d.ts +2 -1
- package/use-conversation-timeline-items.d.ts.map +1 -1
- package/use-conversation-timeline.d.ts.map +1 -1
- package/use-conversation-typing.d.ts +2 -0
- package/use-conversation-typing.d.ts.map +1 -1
- package/use-conversations.d.ts +2 -1
- package/use-conversations.d.ts.map +1 -1
- package/use-create-conversation.d.ts +2 -0
- package/use-create-conversation.d.ts.map +1 -1
- package/use-file-upload.d.ts +1 -0
- package/use-grouped-messages.d.ts +10 -6
- package/use-grouped-messages.d.ts.map +1 -1
- package/use-home-page.d.ts +2 -0
- package/use-home-page.d.ts.map +1 -1
- package/use-message-composer.d.ts +11 -0
- package/use-message-composer.d.ts.map +1 -1
- package/use-multimodal-input.d.ts.map +1 -1
- package/use-render-element.d.ts.map +1 -1
- package/use-rest-client.d.ts +2 -0
- package/use-rest-client.d.ts.map +1 -1
- package/use-send-message.d.ts +3 -1
- package/use-send-message.d.ts.map +1 -1
- package/use-visitor.d.ts +2 -0
- package/use-visitor.d.ts.map +1 -1
- package/utils/index.d.ts +1 -1
- package/websocket.d.ts +1 -0
- package/websocket.d.ts.map +1 -1
- package/window.d.ts +12 -1
- package/window.d.ts.map +1 -1
- package/bubble.d.ts +0 -29
- package/bubble.d.ts.map +0 -1
- package/index7.d.ts.map +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
|
|
3
|
+
//#region ../react/src/primitives/timeline-item-attachments.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Extract image parts from timeline item parts array.
|
|
7
|
+
*/
|
|
8
|
+
declare function extractImageParts(parts: TimelineItemParts): TimelinePartImage[];
|
|
9
|
+
/**
|
|
10
|
+
* Extract file parts from timeline item parts array.
|
|
11
|
+
*/
|
|
12
|
+
declare function extractFileParts(parts: TimelineItemParts): TimelinePartFile[];
|
|
13
|
+
/**
|
|
14
|
+
* Check if timeline item has any attachments (images or files).
|
|
15
|
+
*/
|
|
16
|
+
declare function hasAttachments(parts: TimelineItemParts): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Renders a grid of image thumbnails from timeline item parts.
|
|
19
|
+
* Supports custom rendering via children render prop.
|
|
20
|
+
*/
|
|
21
|
+
declare const TimelineItemImages: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
22
|
+
children?: React$1.ReactNode | ((images: TimelinePartImage[], onImageClick?: (index: number) => void) => React$1.ReactNode);
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
images: TimelinePartImage[];
|
|
26
|
+
/**
|
|
27
|
+
* Callback when an image is clicked (for lightbox).
|
|
28
|
+
*/
|
|
29
|
+
onImageClick?: (index: number) => void;
|
|
30
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
/**
|
|
32
|
+
* Renders a list of file attachments from timeline item parts.
|
|
33
|
+
* Supports custom rendering via children render prop.
|
|
34
|
+
*/
|
|
35
|
+
declare const TimelineItemFiles: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
36
|
+
children?: React$1.ReactNode | ((files: TimelinePartFile[]) => React$1.ReactNode);
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
className?: string;
|
|
39
|
+
files: TimelinePartFile[];
|
|
40
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
/**
|
|
42
|
+
* Convenience component that renders both images and files from timeline parts.
|
|
43
|
+
* Extracts the appropriate parts and renders them in a single container.
|
|
44
|
+
*/
|
|
45
|
+
declare const TimelineItemAttachments: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
46
|
+
children?: React$1.ReactNode;
|
|
47
|
+
asChild?: boolean;
|
|
48
|
+
className?: string;
|
|
49
|
+
parts: TimelineItemParts;
|
|
50
|
+
/**
|
|
51
|
+
* Callback when an image is clicked (for lightbox).
|
|
52
|
+
*/
|
|
53
|
+
onImageClick?: (index: number) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Custom className for the images container.
|
|
56
|
+
*/
|
|
57
|
+
imagesClassName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Custom className for the files container.
|
|
60
|
+
*/
|
|
61
|
+
filesClassName?: string;
|
|
62
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments };
|
|
65
|
+
//# sourceMappingURL=timeline-item-attachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-item-attachments.d.ts","names":[],"sources":["../../react/src/primitives/timeline-item-attachments.tsx"],"sourcesContent":[],"mappings":";;;;;AAcA;AAWA;AAOgB,iBAlBA,iBAAA,CAkBsB,KAAA,EAjB9B,iBAiB+C,CAAA,EAhBpD,iBAgBoD,EAAA;AA+BvD;;;AAA+B,iBAtCf,gBAAA,CAsCe,KAAA,EAtCS,iBAsCT,CAAA,EAtC6B,gBAsC7B,EAAA;;;;AAXtB,iBApBO,cAAA,CAoBP,KAAA,EApB6B,iBAoB7B,CAAA,EAAA,OAAA;;;;;AAsGqB,cA3FjB,kBA2FiB,EA3FC,OAAA,CAAA,yBA2FD,CA3FC,IA2FD,CA3FC,OAAA,CAAA,cA2FD,CA3FC,cA2FD,CAAA,EAAA,UAAA,CAAA,GAAA;EAAA,QAAA,CAAA,EA7G1B,OAAA,CAAM,SA6GoB,GAAA,CAAA,CAAA,MAAA,EA3GlB,iBA2GkB,EAAA,EAAA,YAAA,CAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA,EAAA,GAzGrB,OAAA,CAAM,SAyGe,CAAA;EAyFjB,OAAA,CAAA,EAAA,OAAA;EAAuB,SAAA,CAAA,EAAA,MAAA;EAAA,MAAA,EA/L3B,iBA+L2B,EAAA;EAAA;;;;;;;;;cAzFvB,mBAAiB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aA1BlB,OAAA,CAAM,qBAAqB,uBAAuB,OAAA,CAAM;;;SAG5D;;;;;;cAgHK,yBAAuB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAtBxB,OAAA,CAAM;;;SAGV"}
|
package/timeline-item-group.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item-group.d.ts","names":[],"sources":["../../react/src/primitives/timeline-item-group.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeline-item-group.d.ts","names":[],"sources":["../../react/src/primitives/timeline-item-group.tsx"],"sourcesContent":[],"mappings":";;;;;;AASA;AAmDA;;AAA8B,KAnDlB,4BAAA,GAmDkB;EAAA,UAAA,EAjDjB,UAiDiB;EArB1B,QAAM,EAAA,MAAA;EACG,UAAA,CAAA,EA3BC,UA2BD;EAAiC,cAAM,EAAA,OAAA;EAG5C,kBAAA,EAAA,OAAA;EAIM,SAAA,EAAA,OAAA;EAIK,IAAA,EAAA,OAAA;;;EASW,WAAA,EAAA,MAAA,GAAA,SAAA;EAAA,UAAA,EAAA,MAAA,GAAA,SAAA;EAsHjB,mBAAA,CAAA,EAAA,OAuBT;EAvBgC,SAAA,CAAA,EAAA,SAAA,MAAA,EAAA;CAAA;;;;;;;AAgDA,cAtKvB,iBAsKuB,EAtKN,OAAA,CAAA,yBAsKM,CAtKN,IAsKM,CAtKN,OAAA,CAAA,cAsKM,CAtKN,cAsKM,CAAA,EAAA,UAAA,CAAA,GAAA;EAAA,QAAA,CAAA,EA3LhC,OAAA,CAAM,SA2L0B,GAAA,CAAA,CAAA,KAAA,EA1LvB,4BA0LuB,EAAA,GA1LU,OAAA,CAAM,SA0LhB,CAAA;EAyDvB,OAAA,CAAA,EAAA,OAAA;EAAwB,SAAA,CAAA,EAAA,MAAA;EAAA,KAAA,EAhP7B,gBAgP6B,EAAA;EAAA,QAAA,CAAA,EAAA,MAAA;EAVzB,UAAM,CAAA,EAlOJ,UAkOI;;oBA9NC;CAwOkB,wBAAA,eAAA,CAAA,CAAA;;;;;AA6CM,cAtJ9B,uBAsJ8B,EAtJP,OAAA,CAAA,yBAsJO,CAtJP,IAsJO,CAtJP,OAAA,CAAA,cAsJO,CAtJP,cAsJO,CAAA,EAAA,UAAA,CAAA,GAAA;EAAA,QAAA,CAAA,EA/J/B,OAAA,CAAM,SA+JyB;EA+D9B,OAAA,CAAA,EAAA,OAAA;EAA8B,SAAA,CAAA,EAAA,MAAA;CAAA,wBAAA,eAAA,CAAA,CAAA;;;;;;cArK9B,yBAAuB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAlBhC,OAAA,CAAM;;;iBAIO;QACP,OAAA,CAAM;;;;;eAKF;;;;;;;cAiED,0BAAwB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAVzB,OAAA,CAAM;;;;;;;;;cAuDL,gCAA8B,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAfvC,OAAA,CAAM;;;QAIA,OAAA,CAAM;;;;;;;;;;cA0EH,gCAA8B,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAhBvC,OAAA,CAAM;aAEG;;;;;QAEH,OAAA,CAAM;;;;oBAIG"}
|
package/trigger.d.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
|
|
3
|
+
//#region ../react/src/primitives/trigger.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Render props provided to the Trigger's children function.
|
|
7
|
+
*/
|
|
8
|
+
type TriggerRenderProps = {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
unreadCount: number;
|
|
11
|
+
isTyping: boolean;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
};
|
|
14
|
+
type TriggerProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
15
|
+
/**
|
|
16
|
+
* Content to render inside the trigger.
|
|
17
|
+
* Can be a ReactNode or a function that receives render props.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // Static content
|
|
21
|
+
* <Trigger>Help</Trigger>
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // Dynamic content with render props
|
|
25
|
+
* <Trigger>
|
|
26
|
+
* {({ isOpen, unreadCount }) => (
|
|
27
|
+
* <span>{isOpen ? "Close" : `Help (${unreadCount})`}</span>
|
|
28
|
+
* )}
|
|
29
|
+
* </Trigger>
|
|
30
|
+
*/
|
|
31
|
+
children?: React$1.ReactNode | ((props: TriggerRenderProps) => React$1.ReactNode);
|
|
32
|
+
/**
|
|
33
|
+
* When true, the Trigger will render its children directly,
|
|
34
|
+
* passing all props to the child element.
|
|
35
|
+
*/
|
|
36
|
+
asChild?: boolean;
|
|
37
|
+
className?: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Trigger button that toggles the support window.
|
|
41
|
+
* Can be placed anywhere in the DOM - the window will position itself relative to this element.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* // Simple usage
|
|
45
|
+
* <Trigger className="my-button">Need help?</Trigger>
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* // With render props
|
|
49
|
+
* <Trigger>
|
|
50
|
+
* {({ isOpen, unreadCount, isTyping }) => (
|
|
51
|
+
* <button className="flex items-center gap-2">
|
|
52
|
+
* {isOpen ? "×" : "💬"}
|
|
53
|
+
* {unreadCount > 0 && <span className="badge">{unreadCount}</span>}
|
|
54
|
+
* </button>
|
|
55
|
+
* )}
|
|
56
|
+
* </Trigger>
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* // With asChild pattern
|
|
60
|
+
* <Trigger asChild>
|
|
61
|
+
* <MyCustomButton>Help</MyCustomButton>
|
|
62
|
+
* </Trigger>
|
|
63
|
+
*/
|
|
64
|
+
declare const SupportTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
65
|
+
/**
|
|
66
|
+
* Content to render inside the trigger.
|
|
67
|
+
* Can be a ReactNode or a function that receives render props.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* // Static content
|
|
71
|
+
* <Trigger>Help</Trigger>
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* // Dynamic content with render props
|
|
75
|
+
* <Trigger>
|
|
76
|
+
* {({ isOpen, unreadCount }) => (
|
|
77
|
+
* <span>{isOpen ? "Close" : `Help (${unreadCount})`}</span>
|
|
78
|
+
* )}
|
|
79
|
+
* </Trigger>
|
|
80
|
+
*/
|
|
81
|
+
children?: React$1.ReactNode | ((props: TriggerRenderProps) => React$1.ReactNode);
|
|
82
|
+
/**
|
|
83
|
+
* When true, the Trigger will render its children directly,
|
|
84
|
+
* passing all props to the child element.
|
|
85
|
+
*/
|
|
86
|
+
asChild?: boolean;
|
|
87
|
+
className?: string;
|
|
88
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
89
|
+
//#endregion
|
|
90
|
+
export { SupportTrigger, TriggerProps, TriggerRenderProps };
|
|
91
|
+
//# sourceMappingURL=trigger.d.ts.map
|
package/trigger.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","names":[],"sources":["../../react/src/primitives/trigger.tsx"],"sourcesContent":[],"mappings":";;;;;;AAUA;AAOY,KAPA,kBAAA,GAOY;EACI,MAAA,EAAA,OAAA;EAA3B,WAAM,EAAA,MAAA;EADoB,QAAA,EAAA,OAAA;EAoBf,MAAM,EAAA,GAAA,GAAA,IAAA;CAAqB;AAAuB,KApBlD,YAAA,GAAe,IAoByC,CAnBnE,OAAA,CAAM,oBAmB6D,CAnBxC,iBAmBwC,CAAA,EAAA,UAAA,CAAA,GAAA;EAAS;AAkC7E;;;;;;;;;;;;;;;aAlCY,OAAA,CAAM,qBAAqB,uBAAuB,OAAA,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCvD,gBAAc,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,qBAAA;;;;;;;;;;;;;;;;;aAlCf,OAAA,CAAM,qBAAqB,uBAAuB,OAAA,CAAM"}
|
package/types.d.ts
CHANGED
|
@@ -3,26 +3,89 @@ import React from "react";
|
|
|
3
3
|
//#region ../react/src/support/types.d.ts
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Side of the trigger where the content appears.
|
|
7
7
|
*/
|
|
8
|
-
type
|
|
9
|
-
|
|
8
|
+
type Side = "top" | "bottom" | "left" | "right";
|
|
9
|
+
/**
|
|
10
|
+
* Alignment along the side axis.
|
|
11
|
+
*/
|
|
12
|
+
type Align = "start" | "center" | "end";
|
|
13
|
+
/**
|
|
14
|
+
* Render props provided to the Trigger's children function.
|
|
15
|
+
* Use this when you need dynamic content based on widget state.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <Support.Trigger>
|
|
19
|
+
* {({ isOpen, isTyping, unreadCount }) => (
|
|
20
|
+
* <span>{isOpen ? "Close" : `Help (${unreadCount})`}</span>
|
|
21
|
+
* )}
|
|
22
|
+
* </Support.Trigger>
|
|
23
|
+
*/
|
|
24
|
+
type TriggerRenderProps = {
|
|
25
|
+
/** Whether the support window is currently open */
|
|
26
|
+
isOpen: boolean;
|
|
27
|
+
/** Whether an agent or AI is currently typing */
|
|
28
|
+
isTyping: boolean;
|
|
29
|
+
/** Number of unread messages */
|
|
30
|
+
unreadCount: number;
|
|
31
|
+
/** Toggle the support window open/closed */
|
|
32
|
+
toggle: () => void;
|
|
10
33
|
};
|
|
11
34
|
/**
|
|
12
|
-
*
|
|
35
|
+
* Padding from viewport edges when avoiding collisions.
|
|
36
|
+
* Can be a single number for all sides, or an object with per-side values.
|
|
13
37
|
*/
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
38
|
+
type CollisionPadding = number | {
|
|
39
|
+
top?: number;
|
|
40
|
+
right?: number;
|
|
41
|
+
bottom?: number;
|
|
42
|
+
left?: number;
|
|
19
43
|
};
|
|
20
44
|
/**
|
|
21
|
-
* Props for
|
|
45
|
+
* Props for the Content component.
|
|
22
46
|
*/
|
|
23
|
-
type
|
|
47
|
+
type ContentProps = {
|
|
48
|
+
className?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Which side of the trigger to place the content.
|
|
51
|
+
* @default "top"
|
|
52
|
+
*/
|
|
53
|
+
side?: Side;
|
|
54
|
+
/**
|
|
55
|
+
* Alignment along the side axis.
|
|
56
|
+
* @default "end"
|
|
57
|
+
*/
|
|
58
|
+
align?: Align;
|
|
59
|
+
/**
|
|
60
|
+
* Distance (in pixels) between the trigger and the content.
|
|
61
|
+
* @default 16
|
|
62
|
+
*/
|
|
63
|
+
sideOffset?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Disable automatic collision avoidance.
|
|
66
|
+
* When true, the content will use static CSS positioning and may overflow the viewport.
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
avoidCollisions?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Padding from viewport edges when avoiding collisions.
|
|
72
|
+
* Used by flip and shift middleware to determine when to reposition.
|
|
73
|
+
* @default 8
|
|
74
|
+
*/
|
|
75
|
+
collisionPadding?: CollisionPadding;
|
|
24
76
|
children?: React.ReactNode;
|
|
25
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
* Props for the Root component (full composition mode).
|
|
80
|
+
*/
|
|
81
|
+
type RootProps = {
|
|
82
|
+
/**
|
|
83
|
+
* Whether the widget should open automatically on mount.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
defaultOpen?: boolean;
|
|
87
|
+
children: React.ReactNode;
|
|
88
|
+
};
|
|
26
89
|
//#endregion
|
|
27
|
-
export {
|
|
90
|
+
export { Align, CollisionPadding, ContentProps, RootProps, Side, TriggerRenderProps };
|
|
28
91
|
//# sourceMappingURL=types.d.ts.map
|
package/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../react/src/support/types.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../react/src/support/types.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;AAKY,KALA,IAAA,GAKK,KAAA,GAAA,QAAA,GAAA,MAAA,GAAA,OAAA;AAiBjB;AAmBA;AAOA;AAMQ,KAjDI,KAAA,GAiDJ,OAAA,GAAA,QAAA,GAAA,KAAA;;;;;AAiCR;;;;;;;KAjEY,kBAAA;;;;;;;;;;;;;;KAmBA,gBAAA;;;;;;;;;KAOA,YAAA;;;;;;SAMJ;;;;;UAKC;;;;;;;;;;;;;;;;;qBAiBW;aACR,KAAA,CAAM;;;;;KAUN,SAAA;;;;;;YAMD,KAAA,CAAM"}
|
package/typing-indicator.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing-indicator.d.ts","names":[],"sources":["../../react/src/support/components/typing-indicator.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typing-indicator.d.ts","names":[],"sources":["../../react/src/support/components/typing-indicator.tsx"],"sourcesContent":[],"mappings":";;;;KAKY,qBAAA;KAEA,iBAAA;EAFA,EAAA,EAAA,MAAA;EAEA,IAAA,EAEL,qBAFsB;AAK7B,CAAA;AAAwD,KAA5C,oBAAA,GAAuB,OAAA,CAAM,cAAe,CAAA,cAAA,CAAA,GAAA;EAArB,YAAM,EAC1B,iBAD0B,EAAA;EAC1B,iBAAA,CAAA,EACM,gBADN,EAAA;EACM,oBAAA,CAAA,EACG,mBADH,EAAA;EACG,WAAA,CAAA,EAAA,OAAA;CAAmB;AAF5B,cAiCF,eAjCE,EAiCa,OAAA,CAAA,yBAjCb,CAiCa,OAAA,CAAA,cAjCb,CAiCa,cAjCb,CAAA,GAAA;EACM,YAAA,EADN,iBACM,EAAA;EACG,iBAAA,CAAA,EADH,gBACG,EAAA;yBAAA;;CA+BI,wBAAA,eAAA,CAAA,CAAA"}
|
package/typing-store.d.ts
CHANGED
package/typing-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing-store.d.ts","names":[],"sources":["../../react/src/realtime/typing-store.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typing-store.d.ts","names":[],"sources":["../../react/src/realtime/typing-store.ts"],"sourcesContent":[],"mappings":";;;;;;;;iBA+DgB,cAAA;;aAEJ;;;;;;;;;iBAYI,gBAAA;;aAEJ;;;;;;;iBAUI,4BAAA,QACR;;;;;;;;;;iBAeQ,2BAAA,QACR"}
|
package/typing.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import "./keys.js";
|
|
2
|
+
import { TypingEntry } from "@cossistant/core";
|
|
3
|
+
import { AvailableAIAgent, AvailableHumanAgent } from "@cossistant/types";
|
|
2
4
|
|
|
5
|
+
//#region ../react/src/hooks/private/typing.d.ts
|
|
3
6
|
type TimelineTypingParticipant = {
|
|
4
7
|
id: string;
|
|
5
8
|
type: "team_member" | "ai";
|
package/typing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing.d.ts","names":[],"sources":["../../react/src/hooks/private/typing.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typing.d.ts","names":[],"sources":["../../react/src/hooks/private/typing.ts"],"sourcesContent":[],"mappings":";;;;;KAIY,yBAAA;;EAAA,IAAA,EAAA,aAAA,GAAA,IAAA;AAKZ,CAAA;KAAY,wBAAA,GAA2B"}
|
package/use-client-query.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { CossistantClient } from "@cossistant/core";
|
|
2
|
+
|
|
1
3
|
//#region ../react/src/hooks/private/use-client-query.d.ts
|
|
2
4
|
type QueryFn<TData, TArgs> = (client: CossistantClient, args?: TArgs | undefined) => Promise<TData>;
|
|
3
5
|
type UseClientQueryOptions<TData, TArgs> = {
|
|
4
6
|
client: CossistantClient;
|
|
5
7
|
queryFn: QueryFn<TData, TArgs>;
|
|
8
|
+
/**
|
|
9
|
+
* Unique key to identify this query for deduplication.
|
|
10
|
+
* When provided, concurrent requests with the same key will share a single
|
|
11
|
+
* in-flight promise instead of making duplicate API calls.
|
|
12
|
+
*/
|
|
13
|
+
queryKey?: string;
|
|
6
14
|
enabled?: boolean;
|
|
7
15
|
refetchInterval?: number | false;
|
|
8
16
|
refetchOnWindowFocus?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-client-query.d.ts","names":[],"sources":["../../react/src/hooks/private/use-client-query.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-client-query.d.ts","names":[],"sources":["../../react/src/hooks/private/use-client-query.ts"],"sourcesContent":[],"mappings":";;;KAGK,iCACI,yBACD,sBACH,QAAQ;KAER;EALA,MAAA,EAMI,gBANG;EACH,OAAA,EAMC,OAND,CAMS,KANT,EAMgB,KANhB,CAAA;EACD;;;;AACI;EAGH,QAAA,CAAA,EAAA,MAAA;EACS,OAAA,CAAA,EAAA,OAAA;EAAO,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAAf,oBAAA,CAAA,EAAA,OAAA;EAWK,cAAA,CAAA,EAAA,OAAA;EACA,WAAA,CAAA,EADA,KACA;EAAK,WAAA,CAAA,EAAL,KAAK;EAIf,YAAA,CAAA,EAAA,SAAoB,OAAA,EAAA;CAClB;KADF,oBAEG,CAAA,KAAA,EAAA,KAAA,CAAA,GAAA;EAEU,IAAA,EAHX,KAGW,GAAA,SAAA;EAAkB,KAAA,EAF5B,KAE4B,GAAA,IAAA;EAAR,SAAA,EAAA,OAAA;EAAO,OAAA,EAAA,CAAA,IAAA,CAAA,EAAjB,KAAiB,EAAA,GAAP,OAAO,CAAC,KAAD,GAAA,SAAA,CAAA;AAqDnC,CAAA;;;;;;AAEG,iBAFa,cAEb,CAAA,KAAA,EAAA,QAAA,IAAA,CAAA,CAAA,OAAA,EADO,qBACP,CAD6B,KAC7B,EADoC,KACpC,CAAA,CAAA,EAAA,oBAAA,CAAqB,KAArB,EAA4B,KAA5B,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { CossistantClient } from "@cossistant/core";
|
|
2
2
|
|
|
3
|
+
//#region ../react/src/hooks/use-conversation-auto-seen.d.ts
|
|
3
4
|
declare const CONVERSATION_AUTO_SEEN_DELAY_MS = 2000;
|
|
4
5
|
type UseConversationAutoSeenOptions = {
|
|
5
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-auto-seen.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-auto-seen.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-auto-seen.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-auto-seen.ts"],"sourcesContent":[],"mappings":";;;cASa,+BAAA;AAAA,KAED,8BAAA,GAFgC;EAEhC;AA4DZ;;UAxDS;;;;;;;;;;;;;oBAgBU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCH,uBAAA,UACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-history-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-history-page.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-history-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-history-page.ts"],"sourcesContent":[],"mappings":";;;KAKY,iCAAA;;AAAZ;AAwBA;;EAIQ,mBAAA,CAAA,EAAA,MAAA;EAGe;;AA0DvB;;;;;;;;;;;;KAjEY,gCAAA;iBAEI;;SAER;wBAGe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0DP,0BAAA,WACN,oCACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-page.ts"],"sourcesContent":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-conversation-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-page.ts"],"sourcesContent":[],"mappings":";AAcY,KAAA,0BAAA,GAA0B;EA+B1B;;;;EAgBQ,cAAA,EAAA,MAAA;EAOD;;AAuCnB;;;;;;;;;;UAxES;;;;;;;;KAUG,yBAAA;;;SAIJ;;SAEA;;;WAKC;;;;;sBAKW;;;;;oBAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCH,mBAAA,UACN,6BACP"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PreviewTypingParticipant } from "./typing.js";
|
|
2
2
|
import { useConversationTimelineItems } from "./use-conversation-timeline-items.js";
|
|
3
|
+
import { Conversation } from "@cossistant/types";
|
|
3
4
|
|
|
4
5
|
//#region ../react/src/hooks/use-conversation-preview.d.ts
|
|
5
6
|
type ConversationPreviewLastMessage = {
|
|
@@ -25,7 +26,8 @@ type UseConversationPreviewOptions = {
|
|
|
25
26
|
conversation: Conversation;
|
|
26
27
|
/**
|
|
27
28
|
* Whether the hook should fetch timeline items for the conversation.
|
|
28
|
-
*
|
|
29
|
+
* Disabled by default to reduce API calls - conversation.lastTimelineItem
|
|
30
|
+
* is typically sufficient for previews.
|
|
29
31
|
*/
|
|
30
32
|
includeTimelineItems?: boolean;
|
|
31
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-preview.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-preview.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-preview.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-preview.ts"],"sourcesContent":[],"mappings":";;;;;KAcY,8BAAA;EAAA,OAAA,EAAA,MAAA;EAQA,IAAA,EAAA,MAAA;EAMA,aAAA,EAAA,OAAA;EAEA,UAAA,CAAA,EAAA,MAAA;EAOA,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;AAsBZ,CAAA;AACe,KAtCH,gCAAA,GAsCG;EAED,IAAA,EAAA,MAAA;EACE,KAAA,EAAA,MAAA,GAAA,IAAA;EACP,IAAA,EAAA,OAAA,GAAA,IAAA,GAAA,UAAA;CACoB;AAAlB,KArCC,oCAAA,GAAuC,wBAqCxC;AAAU,KAnCT,8BAAA,GAmCS;EA0BL,YAAA,EA5DD,oCA6DL,EAAA;sBA5DW;;;;KAKT,6BAAA;gBACG;;;;;;;;;;yBAUS;;;;;;;;;;KAWZ,4BAAA;gBACG;;eAED;iBACE;UACP;YACE,kBAAkB;;;;;;iBA0Bb,sBAAA,UACN,gCACP"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ConversationTimelineItemsState } from "@cossistant/core";
|
|
2
2
|
|
|
3
|
+
//#region ../react/src/hooks/use-conversation-timeline-items.d.ts
|
|
3
4
|
type UseConversationTimelineItemsOptions = {
|
|
4
5
|
limit?: number;
|
|
5
6
|
cursor?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-timeline-items.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline-items.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-timeline-items.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline-items.ts"],"sourcesContent":[],"mappings":";;;KAoBY,mCAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EAQA,MAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EACX,OAAA,CAAA,EAAA,OAAA;EAEQ,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAEM,oBAAA,CAAA,EAAA,OAAA;CAAL;AACK,KANH,kCAAA,GACX,8BAKc,GAAA;EAAR,SAAA,EAAA,OAAA;EAEJ,KAAA,EALM,KAKN,GAAA,IAAA;EADoB,OAAA,EAAA,CAAA,IAAA,CAAA,EAFb,IAEa,CAFR,mCAEQ,EAAA,QAAA,GAAA,OAAA,CAAA,EAAA,GADhB,OACgB,CADR,oCACQ,GAAA,SAAA,CAAA;EAAO,aAAA,EAAA,GAAA,GAAP,OAAO,CAC3B,oCAD2B,GAAA,SAAA,CAAA;AAS9B,CAAA;;;;;iBAAgB,4BAAA,sDAEN,sCACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-timeline.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"use-conversation-timeline.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline.ts"],"sourcesContent":[],"mappings":";;;;;;KAWY,qCAAA,GAAwC;AAAxC,KAEA,8BAAA,GAFqC;EAErC,cAAA,EAAA,MAAA;EAMA,KAAA,EAJJ,YAII,EAAA;EACwB,gBAAA,CAAA,EAAA,MAAA;CAAlB;AACW,KAFjB,6BAAA,GAEiB;EAAlB,eAAA,EADO,UACP,CAAA,OADyB,kBACzB,CAAA;EACuB,QAAA,EADvB,UACuB,CAAA,OADL,4BACK,CAAA;EAAlB,aAAA,EAAA,UAAA,CAAA,OAAkB,qBAAlB,CAAA;EACK,kBAAA,EAAA,qCAAA,EAAA;EAAqC,4BAAA,EAAA,MAAA;AAQ1D,CAAA;;;;;AAIoC,iBAJpB,uBAAA,CAIoB;EAAA,cAAA;EAAA,KAAA,EAF5B,aAE4B;EAAA;AAAA,CAAA,EAAjC,8BAAiC,CAAA,EAAA,6BAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-typing.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-typing.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-typing.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-typing.ts"],"sourcesContent":[],"mappings":";;;KAIY,6BAAA,GAAgC;KAEvC,4BAAA;EAFO,gBAAA,CAAA,EAAA,MAAA,GAAA,IAA6B;EAEpC,aAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EA6BW,gBAAA,CAAA,EAAA,MAAqB,GAAA,IAAA;;;;;;iBAArB,qBAAA,sDAEN,+BACP"}
|
package/use-conversations.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ConversationPagination } from "@cossistant/core";
|
|
2
2
|
|
|
3
|
+
//#region ../react/src/hooks/use-conversations.d.ts
|
|
3
4
|
type UseConversationsOptions = Partial<Omit<ListConversationsRequest, "visitorId">> & {
|
|
4
5
|
enabled?: boolean;
|
|
5
6
|
refetchInterval?: number | false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversations.d.ts","names":[],"sources":["../../react/src/hooks/use-conversations.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversations.d.ts","names":[],"sources":["../../react/src/hooks/use-conversations.ts"],"sourcesContent":[],"mappings":";;;KA0CY,uBAAA,GAA0B,QACrC,KAAK;EADM,OAAA,CAAA,EAAA,OAAA;EACN,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAAL,oBAAA,CAAA,EAAA,OAAA;CADqC;AAAO,KAQjC,sBAAA,GARiC;EAQjC,aAAA,EACI,yBADkB,CAAA,eAAA,CAAA;EAClB,UAAA,EACH,sBADG,GAAA,IAAA;EACH,SAAA,EAAA,OAAA;EAEL,KAAA,EAAA,KAAA,GAAA,IAAA;EAES,OAAA,EAAA,CAAA,IAAA,CAAA,EAAR,OAAQ,CAAA,wBAAA,CAAA,EAAA,GACX,OADW,CACH,yBADG,GAAA,SAAA,CAAA;CAAR;;;;AAgBT;;;;;;;;;iBAAgB,gBAAA,WACN,0BACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-create-conversation.d.ts","names":[],"sources":["../../react/src/hooks/use-create-conversation.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-create-conversation.d.ts","names":[],"sources":["../../react/src/hooks/use-create-conversation.ts"],"sourcesContent":[],"mappings":";;;;AAQU,KADE,4BAAA,GACF;EACU,MAAA,CAAA,EADV,gBACU;EACD,SAAA,CAAA,EAAA,CAAA,IAAA,EADC,8BACD,EAAA,GAAA,IAAA;EAAK,OAAA,CAAA,EAAA,CAAA,KAAA,EAAL,KAAK,EAAA,GAAA,IAAA;AAGxB,CAAA;AASY,KATA,2BAAA,GAS2B;EACjB,cAAA,CAAA,EAAA,MAAA;EAER,oBAAA,CAAA,EAVU,YAUV,EAAA;EACA,SAAA,CAAA,EAAA,MAAA;EAAR,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAEE,MAAA,CAAA,EAVE,YAUF,CAAA,QAAA,CAAA;EAAK,KAAA,CAAA,EAAA,MAAA,GAAA,IAAA;AAqBb,CAAA;KA3BY,2BAAA;uBACU;4BAER,gCACR,QAAQ;;SAEN;;;;;;;;iBAqBQ,qBAAA,WACN,+BACP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { CossistantClient } from "@cossistant/core";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { SenderType } from "@cossistant/types";
|
|
2
2
|
|
|
3
|
+
//#region ../react/src/hooks/private/use-grouped-messages.d.ts
|
|
3
4
|
type GroupedMessage = {
|
|
4
5
|
type: "message_group";
|
|
5
6
|
senderId: string;
|
|
@@ -21,12 +22,16 @@ type TimelineToolItem = {
|
|
|
21
22
|
tool: string | null;
|
|
22
23
|
timestamp: Date;
|
|
23
24
|
};
|
|
24
|
-
type
|
|
25
|
+
type DaySeparatorItem = {
|
|
26
|
+
type: "day_separator";
|
|
27
|
+
date: Date;
|
|
28
|
+
dateString: string;
|
|
29
|
+
};
|
|
30
|
+
type ConversationItem = GroupedMessage | TimelineEventItem | TimelineToolItem | DaySeparatorItem;
|
|
25
31
|
type UseGroupedMessagesOptions = {
|
|
26
32
|
items: TimelineItem[];
|
|
27
33
|
seenData?: ConversationSeen[];
|
|
28
34
|
currentViewerId?: string;
|
|
29
|
-
viewerType?: SenderType;
|
|
30
35
|
};
|
|
31
36
|
type UseGroupedMessagesProps = UseGroupedMessagesOptions;
|
|
32
37
|
/**
|
|
@@ -38,8 +43,7 @@ type UseGroupedMessagesProps = UseGroupedMessagesOptions;
|
|
|
38
43
|
declare const useGroupedMessages: ({
|
|
39
44
|
items,
|
|
40
45
|
seenData,
|
|
41
|
-
currentViewerId
|
|
42
|
-
viewerType
|
|
46
|
+
currentViewerId
|
|
43
47
|
}: UseGroupedMessagesOptions) => {
|
|
44
48
|
items: ConversationItem[];
|
|
45
49
|
seenByMap: Map<string, Set<string>>;
|
|
@@ -53,5 +57,5 @@ declare const useGroupedMessages: ({
|
|
|
53
57
|
hasUnreadAfter: (messageId: string, userId: string) => boolean;
|
|
54
58
|
};
|
|
55
59
|
//#endregion
|
|
56
|
-
export { ConversationItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages };
|
|
60
|
+
export { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages };
|
|
57
61
|
//# sourceMappingURL=use-grouped-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-grouped-messages.d.ts","names":[],"sources":["../../react/src/hooks/private/use-grouped-messages.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-grouped-messages.d.ts","names":[],"sources":["../../react/src/hooks/private/use-grouped-messages.ts"],"sourcesContent":[],"mappings":";;;AAKY,KAAA,cAAA,GAAc;EAGb,IAAA,EAAA,eAAA;EACL,QAAA,EAAA,MAAA;EAGW,UAAA,EAJN,UAIM;EACD,KAAA,EAJV,YAIU,EAAA;EAAI,cAAA,EAAA,MAAA;EAGV,aAAA,EAAA,MAAiB;EAMjB,gBAAA,EAVO,IAUS;EAOhB,eAAA,EAhBM,IAgBU;AAM5B,CAAA;AACG,KApBS,iBAAA,GAoBT;EACA,IAAA,EAAA,gBAAA;EACA,IAAA,EApBI,YAoBJ;EACA,SAAA,EApBS,IAoBT;CAAgB;AAEP,KAnBA,gBAAA,GAmBA;EAMA,IAAA,EAAA,eAAA;EAsOC,IAAA,EA7PN,YA6PM;EAAsB,IAAA,EAAA,MAAA,GAAA,IAAA;EAAA,SAAA,EA3PvB,IA2PuB;CAAA;AAIhC,KA5PS,gBAAA,GA4PT;;QA1PI;;;KAIK,gBAAA,GACT,iBACA,oBACA,mBACA;KAES,yBAAA;SACJ;aACI;;;KAIA,uBAAA,GAA0B;;;;;;;cAsOzB;;;;GAIV"}
|
package/use-home-page.d.ts
CHANGED
package/use-home-page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-home-page.d.ts","names":[],"sources":["../../react/src/hooks/use-home-page.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-home-page.d.ts","names":[],"sources":["../../react/src/hooks/use-home-page.ts"],"sourcesContent":[],"mappings":";;;KAKY,kBAAA;;AAAZ;AAuBA;;EAIQ,OAAA,CAAA,EAAA,OAAA;EAGe;;AAuDvB;;;;;;;;;;;KA9DY,iBAAA;iBAEI;;SAER;wBAGe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuDP,WAAA,WACN,qBACP"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMultimodalInputOptions } from "./use-multimodal-input.js";
|
|
2
|
+
import { CossistantClient } from "@cossistant/core";
|
|
2
3
|
|
|
3
4
|
//#region ../react/src/hooks/use-message-composer.d.ts
|
|
4
5
|
type UseMessageComposerOptions = {
|
|
@@ -33,12 +34,22 @@ type UseMessageComposerOptions = {
|
|
|
33
34
|
* File upload options (max size, allowed types, etc.)
|
|
34
35
|
*/
|
|
35
36
|
fileOptions?: Pick<UseMultimodalInputOptions, "maxFileSize" | "maxFiles" | "allowedFileTypes">;
|
|
37
|
+
/**
|
|
38
|
+
* Optional WebSocket send function for real-time typing events.
|
|
39
|
+
* When provided, typing indicators are sent via WebSocket for better performance.
|
|
40
|
+
*/
|
|
41
|
+
realtimeSend?: ((event: AnyRealtimeEvent) => void) | null;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the WebSocket connection is currently established.
|
|
44
|
+
*/
|
|
45
|
+
isRealtimeConnected?: boolean;
|
|
36
46
|
};
|
|
37
47
|
type UseMessageComposerReturn = {
|
|
38
48
|
message: string;
|
|
39
49
|
files: File[];
|
|
40
50
|
error: Error | null;
|
|
41
51
|
isSubmitting: boolean;
|
|
52
|
+
isUploading: boolean;
|
|
42
53
|
canSubmit: boolean;
|
|
43
54
|
setMessage: (message: string) => void;
|
|
44
55
|
addFiles: (files: File[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-message-composer.d.ts","names":[],"sources":["../../react/src/hooks/use-message-composer.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-message-composer.d.ts","names":[],"sources":["../../react/src/hooks/use-message-composer.ts"],"sourcesContent":[],"mappings":";;;;AAWY,KAAA,yBAAA,GAAyB;EAI5B;;;EAkCP,MAAA,EAlCO,gBAkCP;EADa;;;AAiBf;EAGQ,cAAA,EAAA,MAAA,GAAA,IAAA;EACA;;;EAiDQ,oBAAA,CAAkB,EA5FV,YA6Fd,EAAA;;;;;;;;;;;;;;oBA5ES;;;;gBAKJ,KACb;;;;;0BAQuB;;;;;;KAQb,wBAAA;;SAGJ;SACA;;;;;oBASW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCH,kBAAA,UACN,4BACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-multimodal-input.d.ts","names":[],"sources":["../../react/src/hooks/private/use-multimodal-input.ts"],"sourcesContent":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-multimodal-input.d.ts","names":[],"sources":["../../react/src/hooks/private/use-multimodal-input.ts"],"sourcesContent":[],"mappings":";KAYY,yBAAA;EAAA,QAAA,CAAA,EAAA,CAAA,IAAA,EAAA;IACiC,OAAA,EAAA,MAAA;IAAoB,KAAA,EAApB,IAAoB,EAAA;EAC9C,CAAA,EAAA,GAAA,IAAA,GAD8C,OAC9C,CAAA,IAAA,CAAA;EAAK,OAAA,CAAA,EAAA,CAAA,KAAA,EAAL,KAAK,EAAA,GAAA,IAAA;EAMZ,WAAA,CAAA,EAAA,MAAA;EAGJ,QAAA,CAAA,EAAA,MAAA;EAEA,gBAAA,CAAA,EAAA,MAAA,EAAA;CAIW;AAGJ,KAZH,wBAAA,GAYG;EAAO,OAAA,EAAA,MAAA;EAaT,KAAA,EAtBL,IAsBK,EAAA;EAAsB,YAAA,EAAA,OAAA;EAAA,KAAA,EApB3B,KAoB2B,GAAA,IAAA;EAAA,UAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAAA,QAAA,EAAA,CAAA,KAAA,EAhBhB,IAgBgB,EAAA,EAAA,GAAA,IAAA;EAAA,UAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAMhC,UAAA,EAAA,GAAA,GAAA,IAAA;EAAiC,MAAA,EAAA,GAAA,GAnBrB,OAmBqB,CAAA,IAAA,CAAA;EAwKnC,KAAA,EAAA,GAAA,GAAA,IAAA;;;;;;;;;cA9KY;;;;;;IAMV,8BAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-render-element.d.ts","names":[],"sources":["../../react/src/utils/use-render-element.tsx"],"sourcesContent":[],"mappings":";;;;AAI+B,
|
|
1
|
+
{"version":3,"file":"use-render-element.d.ts","names":[],"sources":["../../react/src/utils/use-render-element.tsx"],"sourcesContent":[],"mappings":";;;;AAI+B,KA8B1B,YAAA,GAAY,MAAS,GAAA,CAAI,iBAAA;AAAiB,KAE1C,SAAA,CAAA,KAAS,CAAA,GAAA,MAAA,GAAA,CAA4B,CAAA,KAAK,EAAL,KAAK,EAAA,GAAA,MAAA,CAAA;AAAA,KAE1C,QAAA,CAAA,KAAQ,EAAA,KAAA,CAAA,GAAA,CAAA,KAAA,EACL,KADK,EAAA,KAAA,EAEL,KAFK,EAAA,GAGR,OAAA,CAAM,YAHE;KAKR,WAJG,CAAA,KAAA,EAAA,YAI4B,YAJ5B,CAAA,GAAA;EACA,MAAA,CAAA,EAIE,OAAA,CAAM,YAJR,GAIuB,QAJvB,CAIgC,GAAA,CAAI,iBAJpC,CAIsD,GAJtD,CAAA,EAI4D,KAJ5D,CAAA;EACH,SAAM,CAAA,EAIE,SAJF,CAIY,KAJZ,CAAA;EAAY,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA;KAQlB,YAN+B,CAAA,KAAA,EAAA,YAMC,YAND,CAAA,GAAA;EAC1B,KAAM,CAAA,EAMP,KANO;EAAwB,GAAI,CAAA,EAOrC,OAAA,CAAM,GAP+B,CAAA,GAAA,CAAA;EAAkB,KAAA,CAAA,EAQrD,OARqD,CAQ7C,GAAA,CAAI,iBARyC,CAQvB,GARuB,CAAA,CAAA;EAAM,OAAA,CAAA,EAAA,OAAA;CAArC;;;;AAK1B,iBAqCW,gBArCC,CAAA,cAsCF,MAtCE,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,YAuCJ,YAvCI,CAAA,CAAA,GAAA,EAyCX,GAzCW,EAAA,cAAA,EA0CA,WA1CA,CA0CY,KA1CZ,EA0CmB,GA1CnB,CAAA,EAAA,MAAA,CAAA,EA2CP,YA3CO,CA2CM,KA3CN,EA2Ca,GA3Cb,CAAA,CAAA,EA4Cd,OAAA,CAAM,YA5CQ,GAAA,IAAA"}
|