@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-timeline.d.ts","names":[],"sources":["../../react/src/primitives/conversation-timeline.tsx"],"sourcesContent":[],"mappings":";;;;;AASA;
|
|
1
|
+
{"version":3,"file":"conversation-timeline.d.ts","names":[],"sources":["../../react/src/primitives/conversation-timeline.tsx"],"sourcesContent":[],"mappings":";;;;;AASA;AA+CA;;AAAiC,KA/CrB,+BAAA,GA+CqB;EAAA,SAAA,EAAA,MAAA;EAnC7B,SAAM,CAAA,EAAA,OAAA;EACG,OAAA,CAAA,EAAA,OAAA;EAAoC,OAAM,EAAA,OAAA;CAG9C;;;AA+OT;;AAAwC,cAhN3B,oBAgN2B,EAhNP,OAAA,CAAA,yBAgNO,CAhNP,IAgNO,CAhNP,OAAA,CAAA,cAgNO,CAhNP,cAgNO,CAAA,EAAA,UAAA,CAAA,GAAA;EAAA,QAAA,CAAA,EAnPpC,OAAA,CAAM,SAmP8B,GAAA,CAAA,CAAA,KAAA,EAlP3B,+BAkP2B,EAAA,GAlPS,OAAA,CAAM,SAkPf,CAAA;EAT5B,OAAM,CAAA,EAAA,OAAA;;UAtOT;EA+O+B,SAAA,CAAA,EAAA,OAAA;EAAA,OAAA,CAAA,EAAA,OAAA;EAwC3B,UAAA,CAAA,EAAA,OAAA;EAAyB,WAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EAAA,aAAA,CAAA,EAAA,GAAA,GAAA,IAAA;CAAA,wBAAA,eAAA,CAAA,CAAA;;;;;cA9EzB,+BAA6B,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAT9B,OAAA,CAAM;;;;;;;;cA+CL,6BAA2B,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAT5B,OAAA,CAAM;;;;;;;;cAiDL,2BAAyB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAT1B,OAAA,CAAM"}
|
package/conversation.d.ts
CHANGED
package/conversation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../react/src/utils/conversation.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../react/src/utils/conversation.ts"],"sourcesContent":[],"mappings":";;;iBAmBgB,yBAAA,eAAwC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
|
|
3
|
+
//#region ../react/src/primitives/day-separator.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Default date formatter that returns "Today", "Yesterday", or a full date string
|
|
7
|
+
*/
|
|
8
|
+
declare const defaultFormatDate: (date: Date) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Shape returned to render-prop children describing the day separator state
|
|
11
|
+
*/
|
|
12
|
+
type DaySeparatorRenderProps = {
|
|
13
|
+
date: Date;
|
|
14
|
+
dateString: string;
|
|
15
|
+
formattedDate: string;
|
|
16
|
+
isToday: boolean;
|
|
17
|
+
isYesterday: boolean;
|
|
18
|
+
};
|
|
19
|
+
type DaySeparatorProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
20
|
+
children?: React$1.ReactNode | ((props: DaySeparatorRenderProps) => React$1.ReactNode);
|
|
21
|
+
asChild?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
date: Date;
|
|
24
|
+
dateString: string;
|
|
25
|
+
formatDate?: (date: Date) => string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Headless day separator component that marks the boundary between different days
|
|
29
|
+
* in a conversation timeline. Consumers can either render their own layout via
|
|
30
|
+
* a render prop or rely on slotted children.
|
|
31
|
+
*/
|
|
32
|
+
declare const DaySeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
33
|
+
children?: React$1.ReactNode | ((props: DaySeparatorRenderProps) => React$1.ReactNode);
|
|
34
|
+
asChild?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
date: Date;
|
|
37
|
+
dateString: string;
|
|
38
|
+
formatDate?: (date: Date) => string;
|
|
39
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
type DaySeparatorLineProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
41
|
+
children?: React$1.ReactNode;
|
|
42
|
+
asChild?: boolean;
|
|
43
|
+
className?: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Decorative line element for the day separator.
|
|
47
|
+
* Typically rendered on either side of the label.
|
|
48
|
+
*/
|
|
49
|
+
declare const DaySeparatorLine: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
50
|
+
children?: React$1.ReactNode;
|
|
51
|
+
asChild?: boolean;
|
|
52
|
+
className?: string;
|
|
53
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
type DaySeparatorLabelProps = Omit<React$1.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
55
|
+
children?: React$1.ReactNode | ((props: {
|
|
56
|
+
formattedDate: string;
|
|
57
|
+
}) => React$1.ReactNode);
|
|
58
|
+
asChild?: boolean;
|
|
59
|
+
className?: string;
|
|
60
|
+
formattedDate?: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Text label element for the day separator.
|
|
64
|
+
* Displays the formatted date string.
|
|
65
|
+
*/
|
|
66
|
+
declare const DaySeparatorLabel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
67
|
+
children?: React$1.ReactNode | ((props: {
|
|
68
|
+
formattedDate: string;
|
|
69
|
+
}) => React$1.ReactNode);
|
|
70
|
+
asChild?: boolean;
|
|
71
|
+
className?: string;
|
|
72
|
+
formattedDate?: string;
|
|
73
|
+
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
74
|
+
//#endregion
|
|
75
|
+
export { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate };
|
|
76
|
+
//# sourceMappingURL=day-separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"day-separator.d.ts","names":[],"sources":["../../react/src/primitives/day-separator.tsx"],"sourcesContent":[],"mappings":";;;;;;AA4BA;AAoBY,cApBC,iBAoBsB,EAAA,CAAA,IAC5B,EArBiC,IAqB7B,EAAA,GAAA,MAAA;AAOX;;;AAAgC,KARpB,uBAAA,GAQoB;EAK5B,IAAA,EAZG,IAYG;EACG,UAAA,EAAA,MAAA;EAA4B,aAAM,EAAA,MAAA;EAGxC,OAAA,EAAA,OAAA;EAEc,WAAA,EAAA,OAAA;CAAI;AAQZ,KAnBD,iBAAA,GAAoB,IAsE5B,CArEH,OAAA,CAAM,cAqEH,CArEkB,cAqElB,CAAA,EAAA,UAAA,CAAA,GAAA;EAnDqB,QAAA,CAAA,EAdrB,OAAA,CAAM,SAce,GAAA,CAAA,CAAA,KAAA,EAbZ,uBAaY,EAAA,GAbgB,OAAA,CAAM,SAatB,CAAA;EAAA,OAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,MAAA;EAdrB,IAAA,EAIG,IAJG;EACG,UAAA,EAAA,MAAA;EAA4B,UAAM,CAAA,EAAA,CAAA,IAAA,EAK1B,IAL0B,EAAA,GAAA,MAAA;CAGxC;;;;;;AA+DK,cArDC,YAqDoB,EArDR,OAAA,CAAA,yBAqDQ,CArDR,IAqDQ,CArDR,OAAA,CAAA,cAqDQ,CArDR,cAqDQ,CAAA,EAAA,UAAA,CAAA,GAAA;EACX,QAAA,CAAA,EApElB,OAAA,CAAM,SAoEY,GAAA,CAAA,CAAA,KAAA,EAnET,uBAmES,EAAA,GAnEmB,OAAA,CAAM,SAmEzB,CAAA;EAArB,OAAM,CAAA,EAAA,OAAA;EAD6B,SAAA,CAAA,EAAA,MAAA;EAIxB,IAAA,EAnEL,IAmEW;EAAS,UAAA,EAAA,MAAA;EASd,UAAA,CAAA,EAAA,CAAA,IAAA,EA1EQ,IAgGjB,EAAA,GAAA,MAAA;CAtByB,wBAAA,eAAA,CAAA,CAAA;AAAA,KAbjB,qBAAA,GAAwB,IAaP,CAZ5B,OAAA,CAAM,cAYsB,CAZP,cAYO,CAAA,EAAA,UAAA,CAAA,GAAA;EAAA,QAAA,CAAA,EATjB,OAAA,CAAM,SASW;EATjB,OAAM,CAAA,EAAA,OAAA;;;;;AAiClB;;AACC,cAzBY,gBAyBN,EAzBsB,OAAA,CAAA,yBAyBtB,CAzBsB,IAyBtB,CAzBsB,OAAA,CAAA,cAyBtB,CAzBsB,cAyBtB,CAAA,EAAA,UAAA,CAAA,GAAA;EAD8B,QAAA,CAAA,EAjCzB,OAAA,CAAM,SAiCmB;EAKjC,OAAM,CAAA,EAAA,OAAA;EACiC,SAAM,CAAA,EAAA,MAAA;CAAS,wBAAA,eAAA,CAAA,CAAA;AAU7C,KAhBD,sBAAA,GAAyB,IA8CjC,CA7CH,OAAA,CAAM,cA6CH,CA7CkB,eA6ClB,CAAA,EAAA,UAAA,CAAA,GAAA;EA9B0B,QAAA,CAAA,EAX1B,OAAA,CAAM,SAWoB,GAAA,CAAA,CAAA,KAAA,EAAA;IAAA,aAAA,EAAA,MAAA;EAAA,CAAA,EAAA,GAVa,OAAA,CAAM,SAUnB,CAAA;EAX1B,OAAM,CAAA,EAAA,OAAA;EACiC,SAAM,CAAA,EAAA,MAAA;;;;;;;cAUpC,mBAAiB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAX1B,OAAA,CAAM;;QACiC,OAAA,CAAM"}
|
package/events.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Conversation } from "@cossistant/types";
|
|
2
|
+
import "react";
|
|
3
|
+
|
|
4
|
+
//#region ../react/src/support/context/events.d.ts
|
|
5
|
+
type ConversationStartEvent = {
|
|
6
|
+
type: "conversationStart";
|
|
7
|
+
conversationId: string;
|
|
8
|
+
conversation?: Conversation;
|
|
9
|
+
};
|
|
10
|
+
type ConversationEndEvent = {
|
|
11
|
+
type: "conversationEnd";
|
|
12
|
+
conversationId: string;
|
|
13
|
+
conversation?: Conversation;
|
|
14
|
+
};
|
|
15
|
+
type MessageSentEvent = {
|
|
16
|
+
type: "messageSent";
|
|
17
|
+
conversationId: string;
|
|
18
|
+
message: TimelineItem;
|
|
19
|
+
};
|
|
20
|
+
type MessageReceivedEvent = {
|
|
21
|
+
type: "messageReceived";
|
|
22
|
+
conversationId: string;
|
|
23
|
+
message: TimelineItem;
|
|
24
|
+
};
|
|
25
|
+
type ErrorEvent = {
|
|
26
|
+
type: "error";
|
|
27
|
+
error: Error;
|
|
28
|
+
context?: string;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ConversationEndEvent, ConversationStartEvent, ErrorEvent, MessageReceivedEvent, MessageSentEvent };
|
|
32
|
+
//# sourceMappingURL=events.d.ts.map
|
package/events.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../../react/src/support/context/events.tsx"],"sourcesContent":[],"mappings":";;;;AAiBY,KAAA,sBAAA,GAAsB;EAMtB,IAAA,EAAA,mBAAoB;EAMpB,cAAA,EAAA,MAAgB;EAMhB,YAAA,CAAA,EAfI,YAegB;AAMhC,CAAA;KAlBY,oBAAA;;;iBAGI;;KAGJ,gBAAA;;;WAGF;;KAGE,oBAAA;;;WAGF;;KAGE,UAAA;;SAEJ"}
|
package/fallback.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.d.ts","names":[],"sources":["../../react/src/primitives/avatar/fallback.tsx"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"fallback.d.ts","names":[],"sources":["../../react/src/primitives/avatar/fallback.tsx"],"sourcesContent":[],"mappings":";;;;;;;;cAwCa,gBAAc,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aA3Bf,OAAA,CAAM"}
|
package/handle.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { RouteRegistry } from "@cossistant/core";
|
|
2
|
+
import "react";
|
|
3
|
+
|
|
4
|
+
//#region ../react/src/support/context/handle.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Imperative handle for programmatic control of the Support widget.
|
|
8
|
+
* Access via ref on the Support component or via useSupportHandle hook.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const supportRef = useRef<SupportHandle>(null);
|
|
12
|
+
*
|
|
13
|
+
* // Open the widget
|
|
14
|
+
* supportRef.current?.open();
|
|
15
|
+
*
|
|
16
|
+
* // Navigate to a conversation
|
|
17
|
+
* supportRef.current?.openConversation("conv_123");
|
|
18
|
+
*
|
|
19
|
+
* // Start a new conversation with a message
|
|
20
|
+
* supportRef.current?.startConversation("I need help with...");
|
|
21
|
+
*
|
|
22
|
+
* <Support ref={supportRef} />
|
|
23
|
+
*/
|
|
24
|
+
type SupportHandle = {
|
|
25
|
+
/**
|
|
26
|
+
* Open the support widget.
|
|
27
|
+
*/
|
|
28
|
+
open: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Close the support widget.
|
|
31
|
+
*/
|
|
32
|
+
close: () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Toggle the support widget open/closed.
|
|
35
|
+
*/
|
|
36
|
+
toggle: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Navigate to a specific page with optional params.
|
|
39
|
+
*/
|
|
40
|
+
navigate: <K extends keyof RouteRegistry>(options: {
|
|
41
|
+
page: K;
|
|
42
|
+
params?: RouteRegistry[K];
|
|
43
|
+
}) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Go back to the previous page.
|
|
46
|
+
*/
|
|
47
|
+
goBack: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* Open a specific conversation.
|
|
50
|
+
*/
|
|
51
|
+
openConversation: (conversationId: string) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Start a new conversation, optionally with an initial message.
|
|
54
|
+
*/
|
|
55
|
+
startConversation: (initialMessage?: string) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Navigate to the home page.
|
|
58
|
+
*/
|
|
59
|
+
goHome: () => void;
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { SupportHandle };
|
|
63
|
+
//# sourceMappingURL=handle.d.ts.map
|
package/handle.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle.d.ts","names":[],"sources":["../../react/src/support/context/handle.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA6BA;;;;;;;;;;;;;;;;KAAY,aAAA;;;;;;;;;;;;;;;;6BAgBgB;UACpB;aACG,cAAc"}
|
package/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useClientQuery } from "../use-client-query.js";
|
|
2
2
|
import { useDefaultMessages } from "../use-default-messages.js";
|
|
3
|
-
import { ConversationItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "../use-grouped-messages.js";
|
|
3
|
+
import { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "../use-grouped-messages.js";
|
|
4
4
|
import { UseMultimodalInputOptions, UseMultimodalInputReturn, useMultimodalInput } from "../use-multimodal-input.js";
|
|
5
5
|
import { UseClientResult, useClient } from "../use-rest-client.js";
|
|
6
6
|
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "../use-composer-refocus.js";
|
|
@@ -27,4 +27,4 @@ import { useTypingSound } from "../use-typing-sound.js";
|
|
|
27
27
|
import { UseVisitorReturn, useVisitor } from "../use-visitor.js";
|
|
28
28
|
import { WindowVisibilityFocusState, useWindowVisibilityFocus } from "../use-window-visibility-focus.js";
|
|
29
29
|
import "../index2.js";
|
|
30
|
-
export { CONVERSATION_AUTO_SEEN_DELAY_MS, type ConversationItem, type ConversationLifecycleState, type ConversationPreviewAssignedAgent, type ConversationPreviewLastMessage, type ConversationPreviewTypingParticipant, type ConversationPreviewTypingState, type ConversationTimelineTypingParticipant, type ConversationTypingParticipant, type CreateConversationVariables, type GroupedMessage, type SendMessageOptions, type SendMessageResult, type TimelineEventItem, type TimelineToolItem, type UseClientResult, type UseComposerRefocusOptions, type UseComposerRefocusReturn, type UseConversationAutoSeenOptions, type UseConversationHistoryPageOptions, type UseConversationHistoryPageReturn, type UseConversationLifecycleOptions, type UseConversationLifecycleReturn, type UseConversationOptions, type UseConversationPageOptions, type UseConversationPageReturn, type UseConversationPreviewOptions, type UseConversationPreviewReturn, type UseConversationResult, type UseConversationTimelineItemsOptions, type UseConversationTimelineItemsResult, type UseConversationTimelineOptions, type UseConversationTimelineReturn, type UseConversationsOptions, type UseConversationsResult, type UseCreateConversationOptions, type UseCreateConversationResult, type UseGroupedMessagesOptions, type UseGroupedMessagesProps, type UseHomePageOptions, type UseHomePageReturn, type UseMessageComposerOptions, type UseMessageComposerReturn, type UseMultimodalInputOptions, type UseMultimodalInputReturn, type UseRealtimeSupportOptions, type UseRealtimeSupportResult, type UseScrollMaskOptions, type UseScrollMaskReturn, type UseSendMessageOptions, type UseSendMessageResult, type UseSoundEffectOptions, type UseSoundEffectReturn, type UseVisitorReturn, type WindowVisibilityFocusState, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useTypingSound, useVisitor, useWindowVisibilityFocus };
|
|
30
|
+
export { CONVERSATION_AUTO_SEEN_DELAY_MS, type ConversationItem, type ConversationLifecycleState, type ConversationPreviewAssignedAgent, type ConversationPreviewLastMessage, type ConversationPreviewTypingParticipant, type ConversationPreviewTypingState, type ConversationTimelineTypingParticipant, type ConversationTypingParticipant, type CreateConversationVariables, type DaySeparatorItem, type GroupedMessage, type SendMessageOptions, type SendMessageResult, type TimelineEventItem, type TimelineToolItem, type UseClientResult, type UseComposerRefocusOptions, type UseComposerRefocusReturn, type UseConversationAutoSeenOptions, type UseConversationHistoryPageOptions, type UseConversationHistoryPageReturn, type UseConversationLifecycleOptions, type UseConversationLifecycleReturn, type UseConversationOptions, type UseConversationPageOptions, type UseConversationPageReturn, type UseConversationPreviewOptions, type UseConversationPreviewReturn, type UseConversationResult, type UseConversationTimelineItemsOptions, type UseConversationTimelineItemsResult, type UseConversationTimelineOptions, type UseConversationTimelineReturn, type UseConversationsOptions, type UseConversationsResult, type UseCreateConversationOptions, type UseCreateConversationResult, type UseGroupedMessagesOptions, type UseGroupedMessagesProps, type UseHomePageOptions, type UseHomePageReturn, type UseMessageComposerOptions, type UseMessageComposerReturn, type UseMultimodalInputOptions, type UseMultimodalInputReturn, type UseRealtimeSupportOptions, type UseRealtimeSupportResult, type UseScrollMaskOptions, type UseScrollMaskReturn, type UseSendMessageOptions, type UseSendMessageResult, type UseSoundEffectOptions, type UseSoundEffectReturn, type UseVisitorReturn, type WindowVisibilityFocusState, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useTypingSound, useVisitor, useWindowVisibilityFocus };
|
package/identify-visitor2.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify-visitor2.d.ts","names":[],"sources":["../../react/src/identify-visitor.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identify-visitor2.d.ts","names":[],"sources":["../../react/src/identify-visitor.tsx"],"sourcesContent":[],"mappings":";;;;KAOY,2BAAA;EAAA,UAAA,CAAA,EAAA,MAAA;EAWC,KAAA,CAAA,EAAA,MAAA;;;aAND;;;;;AAYiC,cANhC,sBAMgC,EAAA;;;;;;;KAA1C,8BAA8B"}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useClientQuery } from "./use-client-query.js";
|
|
2
2
|
import { useDefaultMessages } from "./use-default-messages.js";
|
|
3
|
-
import { ConversationItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./use-grouped-messages.js";
|
|
3
|
+
import { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./use-grouped-messages.js";
|
|
4
4
|
import { UseMultimodalInputOptions, UseMultimodalInputReturn, useMultimodalInput } from "./use-multimodal-input.js";
|
|
5
5
|
import { UseClientResult, useClient } from "./use-rest-client.js";
|
|
6
6
|
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "./use-composer-refocus.js";
|
|
@@ -34,13 +34,15 @@ import { SupportConfig, SupportConfigProps } from "./support-config2.js";
|
|
|
34
34
|
import { Avatar } from "./avatar.js";
|
|
35
35
|
import { AvatarFallback } from "./fallback.js";
|
|
36
36
|
import { AvatarImage } from "./image.js";
|
|
37
|
-
import { SupportBubble } from "./bubble.js";
|
|
38
37
|
import { Button } from "./button.js";
|
|
39
38
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
39
|
+
import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./day-separator.js";
|
|
40
40
|
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
41
41
|
import { PageDefinition, Router, RouterProps } from "./router.js";
|
|
42
42
|
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
|
|
43
|
+
import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments } from "./timeline-item-attachments.js";
|
|
43
44
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
45
|
+
import { SupportTrigger, TriggerProps, TriggerRenderProps } from "./trigger.js";
|
|
44
46
|
import { SupportWindow } from "./window.js";
|
|
45
47
|
import "./primitives/index.js";
|
|
46
48
|
import { CossistantContextValue, CossistantProviderProps, SupportContext, SupportProvider, SupportProviderProps, UseSupportValue, useSupport } from "./provider2.js";
|
|
@@ -51,13 +53,15 @@ import { SupportRealtimeProvider } from "./support-provider.js";
|
|
|
51
53
|
import { applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, setTypingState } from "./typing-store.js";
|
|
52
54
|
import { RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, useRealtime } from "./use-realtime.js";
|
|
53
55
|
import "./realtime/index.js";
|
|
56
|
+
import { CustomPage } from "./router2.js";
|
|
57
|
+
import { Align, ContentProps, RootProps, Side } from "./types.js";
|
|
54
58
|
import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "./websocket.js";
|
|
55
|
-
import { useSupportConfig, useSupportStore } from "./support-store.js";
|
|
56
|
-
import { Support, SupportProps } from "./
|
|
59
|
+
import { useSupportConfig, useSupportNavigation, useSupportStore } from "./support-store.js";
|
|
60
|
+
import { Support, SupportProps } from "./index8.js";
|
|
57
61
|
import "./support/index.js";
|
|
58
62
|
import "./support-config.js";
|
|
59
63
|
import { shouldDisplayConversation } from "./conversation.js";
|
|
60
64
|
import { PENDING_CONVERSATION_ID, generateShortPrimaryId } from "./id.js";
|
|
61
65
|
import { useRenderElement } from "./use-render-element.js";
|
|
62
66
|
import "./utils/index.js";
|
|
63
|
-
export { Avatar, AvatarFallback, AvatarImage,
|
|
67
|
+
export { Align, Avatar, AvatarFallback, AvatarImage, Button, CONVERSATION_AUTO_SEEN_DELAY_MS, SupportConfig as Config, ContentProps, ConversationItem, ConversationLifecycleState, ConversationPreviewAssignedAgent, ConversationPreviewLastMessage, ConversationPreviewTypingParticipant, ConversationPreviewTypingState, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, ConversationTimelineTypingParticipant, ConversationTypingParticipant, CossistantContextValue, CossistantProviderProps, CreateConversationVariables, CustomPage, DaySeparator, DaySeparatorItem, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, FileInput, GroupedMessage, IdentifySupportVisitor, IdentifySupportVisitorProps, SupportInput as Input, MultimodalInput, PENDING_CONVERSATION_ID, PageDefinition, RealtimeAuthConfig, RealtimeContextValue, RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, RealtimeProvider, RealtimeProviderProps, RootProps, Router, RouterProps, SendMessageOptions, SendMessageResult, Side, Support, SupportConfig, SupportConfigProps, SupportContext, SupportProps, SupportProvider, SupportProviderProps, SupportRealtimeProvider, TimelineEventItem, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, TimelineToolItem, SupportTrigger as Trigger, TriggerProps, TriggerRenderProps, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, UseClientResult, UseComposerRefocusOptions, UseComposerRefocusReturn, UseConversationAutoSeenOptions, UseConversationHistoryPageOptions, UseConversationHistoryPageReturn, UseConversationLifecycleOptions, UseConversationLifecycleReturn, UseConversationOptions, UseConversationPageOptions, UseConversationPageReturn, UseConversationPreviewOptions, UseConversationPreviewReturn, UseConversationResult, UseConversationTimelineItemsOptions, UseConversationTimelineItemsResult, UseConversationTimelineOptions, UseConversationTimelineReturn, UseConversationsOptions, UseConversationsResult, UseCreateConversationOptions, UseCreateConversationResult, UseGroupedMessagesOptions, UseGroupedMessagesProps, UseHomePageOptions, UseHomePageReturn, UseMessageComposerOptions, UseMessageComposerReturn, UseMultimodalInputOptions, UseMultimodalInputReturn, UseRealtimeSupportOptions, UseRealtimeSupportResult, UseScrollMaskOptions, UseScrollMaskReturn, UseSendMessageOptions, UseSendMessageResult, UseSoundEffectOptions, UseSoundEffectReturn, UseSupportValue, UseVisitorReturn, WebSocketContextValue, WebSocketProvider, SupportWindow as Window, WindowVisibilityFocusState, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, defaultFormatDate, extractFileParts, extractImageParts, generateShortPrimaryId, hasAttachments, hydrateConversationSeen, setTypingState, shouldDisplayConversation, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useRenderElement, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportNavigation, useSupportStore, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
package/index.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
import { IdentifySupportVisitor } from "./identify-visitor.js";
|
|
5
5
|
import { CONVERSATION_AUTO_SEEN_DELAY_MS, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useTypingSound, useVisitor, useWindowVisibilityFocus } from "./hooks/index.js";
|
|
6
|
-
import { Avatar, AvatarFallback, AvatarImage,
|
|
6
|
+
import { Avatar, AvatarFallback, AvatarImage, Button, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments } from "./primitives/index.js";
|
|
7
7
|
import { SupportContext, SupportProvider, useSupport } from "./provider.js";
|
|
8
8
|
import { RealtimeProvider, SupportRealtimeProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useRealtime, useRealtimeConnection } from "./realtime/index.js";
|
|
9
|
-
import { Support, WebSocketProvider, useSupportConfig, useSupportStore, useWebSocket } from "./support/index.js";
|
|
9
|
+
import { Support, WebSocketProvider, useSupportConfig, useSupportNavigation, useSupportStore, useWebSocket } from "./support/index.js";
|
|
10
10
|
import { SupportConfig } from "./support-config.js";
|
|
11
11
|
import { PENDING_CONVERSATION_ID, generateShortPrimaryId, shouldDisplayConversation, useRenderElement } from "./utils/index.js";
|
|
12
12
|
|
|
13
|
-
export { Avatar, AvatarFallback, AvatarImage,
|
|
13
|
+
export { Avatar, AvatarFallback, AvatarImage, Button, CONVERSATION_AUTO_SEEN_DELAY_MS, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, IdentifySupportVisitor, Input, MultimodalInput, PENDING_CONVERSATION_ID, RealtimeProvider, Router, Support, SupportConfig, SupportContext, SupportProvider, SupportRealtimeProvider, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, WebSocketProvider, Window, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, defaultFormatDate, extractFileParts, extractImageParts, generateShortPrimaryId, hasAttachments, hydrateConversationSeen, setTypingState, shouldDisplayConversation, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useRenderElement, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportNavigation, useSupportStore, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
package/index2.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useClientQuery } from "./use-client-query.js";
|
|
2
2
|
import { useDefaultMessages } from "./use-default-messages.js";
|
|
3
|
-
import { ConversationItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./use-grouped-messages.js";
|
|
3
|
+
import { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./use-grouped-messages.js";
|
|
4
4
|
import { UseMultimodalInputOptions, UseMultimodalInputReturn, useMultimodalInput } from "./use-multimodal-input.js";
|
|
5
5
|
import { UseClientResult, useClient } from "./use-rest-client.js";
|
|
6
6
|
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "./use-composer-refocus.js";
|
|
@@ -16,6 +16,7 @@ import { ConversationTypingParticipant, useConversationTyping } from "./use-conv
|
|
|
16
16
|
import { ConversationTimelineTypingParticipant, UseConversationTimelineOptions, UseConversationTimelineReturn, useConversationTimeline } from "./use-conversation-timeline.js";
|
|
17
17
|
import { UseConversationsOptions, UseConversationsResult, useConversations } from "./use-conversations.js";
|
|
18
18
|
import { CreateConversationVariables, UseCreateConversationOptions, UseCreateConversationResult, useCreateConversation } from "./use-create-conversation.js";
|
|
19
|
+
import "./use-file-upload.js";
|
|
19
20
|
import { UseHomePageOptions, UseHomePageReturn, useHomePage } from "./use-home-page.js";
|
|
20
21
|
import { UseMessageComposerOptions, UseMessageComposerReturn, useMessageComposer } from "./use-message-composer.js";
|
|
21
22
|
import { useNewMessageSound } from "./use-new-message-sound.js";
|
package/index2.parts.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ import { Avatar } from "./avatar.js";
|
|
|
4
4
|
import { AvatarFallback } from "./fallback.js";
|
|
5
5
|
import { AvatarImage } from "./image.js";
|
|
6
6
|
import "./index3.js";
|
|
7
|
-
import { SupportBubble } from "./bubble.js";
|
|
8
7
|
import { Button } from "./button.js";
|
|
9
8
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
9
|
+
import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./day-separator.js";
|
|
10
10
|
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
11
11
|
import { PageDefinition, Router, RouterProps } from "./router.js";
|
|
12
12
|
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
|
|
13
|
+
import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments } from "./timeline-item-attachments.js";
|
|
13
14
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
15
|
+
import { SupportTrigger, TriggerProps, TriggerRenderProps } from "./trigger.js";
|
|
14
16
|
import { SupportWindow } from "./window.js";
|
package/index4.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { SupportConfig } from "./support-config2.js";
|
|
|
3
3
|
import { Avatar } from "./avatar.js";
|
|
4
4
|
import { AvatarFallback } from "./fallback.js";
|
|
5
5
|
import { AvatarImage } from "./image.js";
|
|
6
|
-
import { SupportBubble } from "./bubble.js";
|
|
7
6
|
import { Button } from "./button.js";
|
|
8
7
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
8
|
+
import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./day-separator.js";
|
|
9
9
|
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
10
10
|
import { PageDefinition, Router, RouterProps } from "./router.js";
|
|
11
11
|
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
|
|
12
|
+
import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments } from "./timeline-item-attachments.js";
|
|
12
13
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
14
|
+
import { SupportTrigger, TriggerProps, TriggerRenderProps } from "./trigger.js";
|
|
13
15
|
import { SupportWindow } from "./window.js";
|
|
14
16
|
import "./index2.parts.js";
|
package/index7.d.ts
CHANGED
|
@@ -1,70 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomPage } from "./router2.js";
|
|
3
|
-
import "./index6.js";
|
|
4
|
-
import { BubbleSlotProps, ContainerSlotProps, RouterSlotProps } from "./types.js";
|
|
5
|
-
import "./button2.js";
|
|
6
|
-
import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "./websocket.js";
|
|
7
|
-
import { useSupportConfig, useSupportStore } from "./support-store.js";
|
|
8
|
-
import React, { ReactElement } from "react";
|
|
9
|
-
|
|
10
|
-
//#region ../react/src/support/index.d.ts
|
|
11
|
-
type SupportProps<Locale extends string = SupportLocale> = {
|
|
12
|
-
className?: string;
|
|
13
|
-
position?: "top" | "bottom";
|
|
14
|
-
align?: "right" | "left";
|
|
15
|
-
positioning?: "fixed" | "absolute";
|
|
16
|
-
quickOptions?: string[];
|
|
17
|
-
defaultMessages?: DefaultMessage[];
|
|
18
|
-
defaultOpen?: boolean;
|
|
19
|
-
locale?: Locale;
|
|
20
|
-
content?: SupportTextContentOverrides<Locale>;
|
|
21
|
-
theme?: "light" | "dark";
|
|
22
|
-
slots?: {
|
|
23
|
-
bubble?: React.ComponentType<BubbleSlotProps>;
|
|
24
|
-
container?: React.ComponentType<ContainerSlotProps>;
|
|
25
|
-
router?: React.ComponentType<RouterSlotProps>;
|
|
26
|
-
};
|
|
27
|
-
classNames?: {
|
|
28
|
-
root?: string;
|
|
29
|
-
bubble?: string;
|
|
30
|
-
container?: string;
|
|
31
|
-
};
|
|
32
|
-
customPages?: CustomPage[];
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Complete support widget with chat, routing, and real-time features.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* // Zero config
|
|
40
|
-
* <Support />
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* // With customization and custom pages
|
|
44
|
-
* <Support
|
|
45
|
-
* theme="dark"
|
|
46
|
-
* classNames={{ bubble: "bg-purple-600" }}
|
|
47
|
-
* customPages={[
|
|
48
|
-
* { name: "FAQ", component: FAQPage }
|
|
49
|
-
* ]}
|
|
50
|
-
* />
|
|
51
|
-
*/
|
|
52
|
-
declare function Support<Locale extends string = SupportLocale>({
|
|
53
|
-
className,
|
|
54
|
-
position,
|
|
55
|
-
align,
|
|
56
|
-
positioning,
|
|
57
|
-
quickOptions,
|
|
58
|
-
defaultMessages,
|
|
59
|
-
defaultOpen,
|
|
60
|
-
locale,
|
|
61
|
-
content,
|
|
62
|
-
theme,
|
|
63
|
-
slots,
|
|
64
|
-
classNames,
|
|
65
|
-
customPages,
|
|
66
|
-
children
|
|
67
|
-
}: SupportProps<Locale>): ReactElement | null;
|
|
68
|
-
//#endregion
|
|
69
|
-
export { Support, SupportProps };
|
|
70
|
-
//# sourceMappingURL=index7.d.ts.map
|
|
1
|
+
import { UseSupportConfigResult, UseSupportStoreResult, useSupportConfig, useSupportNavigation, useSupportStore } from "./support-store.js";
|