@cossistant/next 0.0.7 → 0.0.9
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 +1 -2
- package/conversation-timeline.d.ts.map +1 -1
- package/conversation.d.ts +3 -47
- package/conversation.d.ts.map +1 -1
- package/hooks/index.d.ts +1 -1
- package/identify-visitor2.d.ts +0 -1
- package/identify-visitor2.d.ts.map +1 -1
- package/index.d.ts +3 -3
- package/index2.d.ts +24 -19
- package/index2.parts.d.ts +2 -2
- package/index3.d.ts +4 -24
- package/index4.d.ts +10 -1
- package/index5.d.ts +5 -13
- package/index6.d.ts +2 -5
- package/index7.d.ts +37 -2
- package/index7.d.ts.map +1 -0
- package/index8.d.ts +3 -1
- package/keys.d.ts +0 -2
- package/keys.d.ts.map +1 -1
- package/package.json +15 -3
- package/primitives/index.d.ts +2 -2
- package/provider2.d.ts +0 -3
- package/provider2.d.ts.map +1 -1
- package/provider3.d.ts +0 -1
- package/provider3.d.ts.map +1 -1
- package/realtime/index.d.ts +1 -1
- package/seen-store.d.ts +0 -4
- package/seen-store.d.ts.map +1 -1
- package/support/index.d.ts +1 -1
- package/support-config2.d.ts +0 -1
- package/support-config2.d.ts.map +1 -1
- package/support-store.d.ts +15 -4
- package/support-store.d.ts.map +1 -1
- package/timeline-item-group.d.ts +1 -3
- package/timeline-item-group.d.ts.map +1 -1
- package/timeline-item.d.ts +50 -107
- package/timeline-item.d.ts.map +1 -1
- package/typing-indicator.d.ts +0 -1
- package/typing-indicator.d.ts.map +1 -1
- package/typing-store.d.ts +0 -3
- package/typing-store.d.ts.map +1 -1
- package/typing.d.ts +1 -2
- package/typing.d.ts.map +1 -1
- package/use-client-query.d.ts +0 -2
- package/use-client-query.d.ts.map +1 -1
- package/use-conversation-auto-seen.d.ts +1 -3
- package/use-conversation-auto-seen.d.ts.map +1 -1
- package/use-conversation-history-page.d.ts +0 -2
- package/use-conversation-history-page.d.ts.map +1 -1
- package/use-conversation-page.d.ts +0 -2
- package/use-conversation-page.d.ts.map +1 -1
- package/use-conversation-preview.d.ts +0 -2
- package/use-conversation-preview.d.ts.map +1 -1
- package/use-conversation-seen.d.ts +0 -2
- package/use-conversation-seen.d.ts.map +1 -1
- package/use-conversation-timeline-items.d.ts +1 -3
- package/use-conversation-timeline-items.d.ts.map +1 -1
- package/use-conversation-timeline.d.ts +0 -1
- package/use-conversation-timeline.d.ts.map +1 -1
- package/use-conversation-typing.d.ts +0 -2
- package/use-conversation-typing.d.ts.map +1 -1
- package/use-conversation.d.ts +0 -2
- package/use-conversation.d.ts.map +1 -1
- package/use-conversations.d.ts +1 -3
- package/use-conversations.d.ts.map +1 -1
- package/use-create-conversation.d.ts +1 -5
- package/use-create-conversation.d.ts.map +1 -1
- package/use-default-messages.d.ts +0 -2
- package/use-default-messages.d.ts.map +1 -1
- package/use-grouped-messages.d.ts +1 -4
- package/use-grouped-messages.d.ts.map +1 -1
- package/use-home-page.d.ts +0 -2
- package/use-home-page.d.ts.map +1 -1
- package/use-message-composer.d.ts +0 -2
- package/use-message-composer.d.ts.map +1 -1
- package/use-realtime-support.d.ts +0 -2
- package/use-realtime-support.d.ts.map +1 -1
- package/use-realtime.d.ts +0 -1
- package/use-realtime.d.ts.map +1 -1
- package/use-rest-client.d.ts +0 -2
- package/use-rest-client.d.ts.map +1 -1
- package/use-send-message.d.ts +1 -4
- package/use-send-message.d.ts.map +1 -1
- package/use-visitor.d.ts +0 -2
- package/use-visitor.d.ts.map +1 -1
- package/utils/index.d.ts +2 -2
- package/websocket.d.ts +1 -2
- package/websocket.d.ts.map +1 -1
- package/conversation2.d.ts +0 -7
- package/conversation2.d.ts.map +0 -1
- package/enums.d.ts +0 -11
- package/enums.d.ts.map +0 -1
- package/index10.d.ts +0 -3
- package/index2.d.ts.map +0 -1
- package/index9.d.ts +0 -39
- package/index9.d.ts.map +0 -1
- package/realtime-events.d.ts +0 -126
- package/realtime-events.d.ts.map +0 -1
- package/schemas.d.ts +0 -34
- package/schemas.d.ts.map +0 -1
- package/timeline-item2.d.ts +0 -55
- package/timeline-item2.d.ts.map +0 -1
- package/visitor.d.ts +0 -72
- package/visitor.d.ts.map +0 -1
- package/website.d.ts +0 -49
- package/website.d.ts.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TimelineItem } from "./timeline-item.js";
|
|
2
1
|
import * as React$1 from "react";
|
|
3
2
|
|
|
4
3
|
//#region ../react/src/primitives/conversation-timeline.d.ts
|
|
@@ -21,7 +20,7 @@ declare const ConversationTimeline: React$1.ForwardRefExoticComponent<Omit<React
|
|
|
21
20
|
children?: React$1.ReactNode | ((props: ConversationTimelineRenderProps) => React$1.ReactNode);
|
|
22
21
|
asChild?: boolean;
|
|
23
22
|
className?: string;
|
|
24
|
-
items?:
|
|
23
|
+
items?: TimelineItemType[];
|
|
25
24
|
isLoading?: boolean;
|
|
26
25
|
hasMore?: boolean;
|
|
27
26
|
autoScroll?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-timeline.d.ts","names":[],"sources":["../../react/src/primitives/conversation-timeline.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation-timeline.d.ts","names":[],"sources":["../../react/src/primitives/conversation-timeline.tsx"],"sourcesContent":[],"mappings":";;;;;AAQA;AA6CA;;AAAiC,KA7CrB,+BAAA,GA6CqB;EAAA,SAAA,EAAA,MAAA;EAjC7B,SAAM,CAAA,EAAA,OAAA;EACG,OAAA,CAAA,EAAA,OAAA;EAAoC,OAAM,EAAA,OAAA;CAG9C;;;AAkPT;;AAAwC,cArN3B,oBAqN2B,EArNP,OAAA,CAAA,yBAqNO,CArNP,IAqNO,CArNP,OAAA,CAAA,cAqNO,CArNP,cAqNO,CAAA,EAAA,UAAA,CAAA,GAAA;EAAA,QAAA,CAAA,EAtPpC,OAAA,CAAM,SAsP8B,GAAA,CAAA,CAAA,KAAA,EArP3B,+BAqP2B,EAAA,GArPS,OAAA,CAAM,SAqPf,CAAA;EAT5B,OAAM,CAAA,EAAA,OAAA;;UAzOT;EAkP+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
|
@@ -1,49 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#region ../types/dist/api/conversation.d.ts
|
|
4
|
-
|
|
5
|
-
declare const createConversationResponseSchema: z.ZodObject<{
|
|
6
|
-
initialTimelineItems: z.ZodArray<any>;
|
|
7
|
-
conversation: any;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
type CreateConversationResponseBody = z.infer<typeof createConversationResponseSchema>;
|
|
10
|
-
declare const listConversationsRequestSchema: z.ZodObject<{
|
|
11
|
-
visitorId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
13
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
14
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
15
|
-
open: "open";
|
|
16
|
-
closed: "closed";
|
|
17
|
-
}>>;
|
|
18
|
-
orderBy: z.ZodDefault<z.ZodEnum<{
|
|
19
|
-
createdAt: "createdAt";
|
|
20
|
-
updatedAt: "updatedAt";
|
|
21
|
-
}>>;
|
|
22
|
-
order: z.ZodDefault<z.ZodEnum<{
|
|
23
|
-
asc: "asc";
|
|
24
|
-
desc: "desc";
|
|
25
|
-
}>>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
type ListConversationsRequest = z.infer<typeof listConversationsRequestSchema>;
|
|
28
|
-
declare const listConversationsResponseSchema: z.ZodObject<{
|
|
29
|
-
conversations: z.ZodArray<any>;
|
|
30
|
-
pagination: z.ZodObject<{
|
|
31
|
-
page: z.ZodNumber;
|
|
32
|
-
limit: z.ZodNumber;
|
|
33
|
-
total: z.ZodNumber;
|
|
34
|
-
totalPages: z.ZodNumber;
|
|
35
|
-
hasMore: z.ZodBoolean;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
type ListConversationsResponse = z.infer<typeof listConversationsResponseSchema>;
|
|
39
|
-
declare const getConversationRequestSchema: z.ZodObject<{
|
|
40
|
-
conversationId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
type GetConversationRequest = z.infer<typeof getConversationRequestSchema>;
|
|
43
|
-
declare const getConversationResponseSchema: z.ZodObject<{
|
|
44
|
-
conversation: any;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
type GetConversationResponse = z.infer<typeof getConversationResponseSchema>;
|
|
1
|
+
//#region ../react/src/utils/conversation.d.ts
|
|
2
|
+
declare function shouldDisplayConversation(conversation: Conversation): boolean;
|
|
47
3
|
//#endregion
|
|
48
|
-
export {
|
|
4
|
+
export { shouldDisplayConversation };
|
|
49
5
|
//# sourceMappingURL=conversation.d.ts.map
|
package/conversation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../react/src/utils/conversation.ts"],"sourcesContent":[],"mappings":";AAagB,iBAAA,yBAAA,CAAwC,YAAY,EAAZ,YAAY,CAAA,EAAA,OAAA"}
|
package/hooks/index.d.ts
CHANGED
|
@@ -22,5 +22,5 @@ import { UseRealtimeSupportOptions, UseRealtimeSupportResult, useRealtimeSupport
|
|
|
22
22
|
import { SendMessageOptions, SendMessageResult, UseSendMessageOptions, UseSendMessageResult, useSendMessage } from "../use-send-message.js";
|
|
23
23
|
import { UseVisitorReturn, useVisitor } from "../use-visitor.js";
|
|
24
24
|
import { WindowVisibilityFocusState, useWindowVisibilityFocus } from "../use-window-visibility-focus.js";
|
|
25
|
-
import "../
|
|
25
|
+
import "../index2.js";
|
|
26
26
|
export { CONVERSATION_AUTO_SEEN_DELAY_MS, ConversationItem, ConversationLifecycleState, ConversationPreviewAssignedAgent, ConversationPreviewLastMessage, ConversationPreviewTypingParticipant, ConversationPreviewTypingState, ConversationTimelineTypingParticipant, ConversationTypingParticipant, CreateConversationVariables, GroupedMessage, SendMessageOptions, SendMessageResult, TimelineEventItem, TimelineToolItem, 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, UseSendMessageOptions, UseSendMessageResult, UseVisitorReturn, WindowVisibilityFocusState, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useRealtimeSupport, useSendMessage, 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":";;;AAOY,KAAA,2BAAA,GAA2B;EAW1B,UAAA,CAAA,EAAA,MAAA;;;;aAND;;;;;cAMC;;;;;;;KAMV,8BAA8B"}
|
package/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { SupportBubble } from "./bubble.js";
|
|
|
34
34
|
import { Button } from "./button.js";
|
|
35
35
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
36
36
|
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
37
|
-
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-
|
|
37
|
+
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
|
|
38
38
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
39
39
|
import { SupportWindow } from "./window.js";
|
|
40
40
|
import "./primitives/index.js";
|
|
@@ -48,10 +48,10 @@ import { RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersM
|
|
|
48
48
|
import "./realtime/index.js";
|
|
49
49
|
import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "./websocket.js";
|
|
50
50
|
import { useSupportConfig, useSupportStore } from "./support-store.js";
|
|
51
|
-
import { Support, SupportProps } from "./
|
|
51
|
+
import { Support, SupportProps } from "./index7.js";
|
|
52
52
|
import "./support/index.js";
|
|
53
53
|
import "./support-config.js";
|
|
54
|
-
import { shouldDisplayConversation } from "./
|
|
54
|
+
import { shouldDisplayConversation } from "./conversation.js";
|
|
55
55
|
import { PENDING_CONVERSATION_ID, generateShortPrimaryId } from "./id.js";
|
|
56
56
|
import { useRenderElement } from "./use-render-element.js";
|
|
57
57
|
import "./utils/index.js";
|
package/index2.d.ts
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { useClientQuery } from "./use-client-query.js";
|
|
2
|
+
import { useDefaultMessages } from "./use-default-messages.js";
|
|
3
|
+
import { ConversationItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./use-grouped-messages.js";
|
|
4
|
+
import { UseMultimodalInputOptions, UseMultimodalInputReturn, useMultimodalInput } from "./use-multimodal-input.js";
|
|
5
|
+
import { UseClientResult, useClient } from "./use-rest-client.js";
|
|
6
|
+
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "./use-composer-refocus.js";
|
|
7
|
+
import { UseConversationOptions, UseConversationResult, useConversation } from "./use-conversation.js";
|
|
8
|
+
import { CONVERSATION_AUTO_SEEN_DELAY_MS, UseConversationAutoSeenOptions, useConversationAutoSeen } from "./use-conversation-auto-seen.js";
|
|
9
|
+
import { UseConversationHistoryPageOptions, UseConversationHistoryPageReturn, useConversationHistoryPage } from "./use-conversation-history-page.js";
|
|
10
|
+
import { ConversationLifecycleState, UseConversationLifecycleOptions, UseConversationLifecycleReturn, useConversationLifecycle } from "./use-conversation-lifecycle.js";
|
|
11
|
+
import { UseConversationPageOptions, UseConversationPageReturn, useConversationPage } from "./use-conversation-page.js";
|
|
12
|
+
import { UseConversationTimelineItemsOptions, UseConversationTimelineItemsResult, useConversationTimelineItems } from "./use-conversation-timeline-items.js";
|
|
13
|
+
import { ConversationPreviewAssignedAgent, ConversationPreviewLastMessage, ConversationPreviewTypingParticipant, ConversationPreviewTypingState, UseConversationPreviewOptions, UseConversationPreviewReturn, useConversationPreview } from "./use-conversation-preview.js";
|
|
14
|
+
import { useConversationSeen, useDebouncedConversationSeen } from "./use-conversation-seen.js";
|
|
15
|
+
import { ConversationTypingParticipant, useConversationTyping } from "./use-conversation-typing.js";
|
|
16
|
+
import { ConversationTimelineTypingParticipant, UseConversationTimelineOptions, UseConversationTimelineReturn, useConversationTimeline } from "./use-conversation-timeline.js";
|
|
17
|
+
import { UseConversationsOptions, UseConversationsResult, useConversations } from "./use-conversations.js";
|
|
18
|
+
import { CreateConversationVariables, UseCreateConversationOptions, UseCreateConversationResult, useCreateConversation } from "./use-create-conversation.js";
|
|
19
|
+
import { UseHomePageOptions, UseHomePageReturn, useHomePage } from "./use-home-page.js";
|
|
20
|
+
import { UseMessageComposerOptions, UseMessageComposerReturn, useMessageComposer } from "./use-message-composer.js";
|
|
21
|
+
import { UseRealtimeSupportOptions, UseRealtimeSupportResult, useRealtimeSupport } from "./use-realtime-support.js";
|
|
22
|
+
import { SendMessageOptions, SendMessageResult, UseSendMessageOptions, UseSendMessageResult, useSendMessage } from "./use-send-message.js";
|
|
23
|
+
import { UseVisitorReturn, useVisitor } from "./use-visitor.js";
|
|
24
|
+
import { WindowVisibilityFocusState, useWindowVisibilityFocus } from "./use-window-visibility-focus.js";
|
package/index2.parts.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ 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 "./
|
|
6
|
+
import "./index3.js";
|
|
7
7
|
import { SupportBubble } from "./bubble.js";
|
|
8
8
|
import { Button } from "./button.js";
|
|
9
9
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
10
10
|
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
11
|
-
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-
|
|
11
|
+
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
|
|
12
12
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
13
13
|
import { SupportWindow } from "./window.js";
|
package/index3.d.ts
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { UseClientResult, useClient } from "./use-rest-client.js";
|
|
6
|
-
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "./use-composer-refocus.js";
|
|
7
|
-
import { UseConversationOptions, UseConversationResult, useConversation } from "./use-conversation.js";
|
|
8
|
-
import { CONVERSATION_AUTO_SEEN_DELAY_MS, UseConversationAutoSeenOptions, useConversationAutoSeen } from "./use-conversation-auto-seen.js";
|
|
9
|
-
import { UseConversationHistoryPageOptions, UseConversationHistoryPageReturn, useConversationHistoryPage } from "./use-conversation-history-page.js";
|
|
10
|
-
import { ConversationLifecycleState, UseConversationLifecycleOptions, UseConversationLifecycleReturn, useConversationLifecycle } from "./use-conversation-lifecycle.js";
|
|
11
|
-
import { UseConversationPageOptions, UseConversationPageReturn, useConversationPage } from "./use-conversation-page.js";
|
|
12
|
-
import { UseConversationTimelineItemsOptions, UseConversationTimelineItemsResult, useConversationTimelineItems } from "./use-conversation-timeline-items.js";
|
|
13
|
-
import { ConversationPreviewAssignedAgent, ConversationPreviewLastMessage, ConversationPreviewTypingParticipant, ConversationPreviewTypingState, UseConversationPreviewOptions, UseConversationPreviewReturn, useConversationPreview } from "./use-conversation-preview.js";
|
|
14
|
-
import { useConversationSeen, useDebouncedConversationSeen } from "./use-conversation-seen.js";
|
|
15
|
-
import { ConversationTypingParticipant, useConversationTyping } from "./use-conversation-typing.js";
|
|
16
|
-
import { ConversationTimelineTypingParticipant, UseConversationTimelineOptions, UseConversationTimelineReturn, useConversationTimeline } from "./use-conversation-timeline.js";
|
|
17
|
-
import { UseConversationsOptions, UseConversationsResult, useConversations } from "./use-conversations.js";
|
|
18
|
-
import { CreateConversationVariables, UseCreateConversationOptions, UseCreateConversationResult, useCreateConversation } from "./use-create-conversation.js";
|
|
19
|
-
import { UseHomePageOptions, UseHomePageReturn, useHomePage } from "./use-home-page.js";
|
|
20
|
-
import { UseMessageComposerOptions, UseMessageComposerReturn, useMessageComposer } from "./use-message-composer.js";
|
|
21
|
-
import { UseRealtimeSupportOptions, UseRealtimeSupportResult, useRealtimeSupport } from "./use-realtime-support.js";
|
|
22
|
-
import { SendMessageOptions, SendMessageResult, UseSendMessageOptions, UseSendMessageResult, useSendMessage } from "./use-send-message.js";
|
|
23
|
-
import { UseVisitorReturn, useVisitor } from "./use-visitor.js";
|
|
24
|
-
import { WindowVisibilityFocusState, useWindowVisibilityFocus } from "./use-window-visibility-focus.js";
|
|
1
|
+
import { Avatar } from "./avatar.js";
|
|
2
|
+
import { AvatarFallback } from "./fallback.js";
|
|
3
|
+
import { AvatarImage } from "./image.js";
|
|
4
|
+
import "./index.parts.js";
|
package/index4.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType } from "./typing-indicator.js";
|
|
2
|
+
import { SupportConfig } from "./support-config2.js";
|
|
1
3
|
import { Avatar } from "./avatar.js";
|
|
2
4
|
import { AvatarFallback } from "./fallback.js";
|
|
3
5
|
import { AvatarImage } from "./image.js";
|
|
4
|
-
import "./
|
|
6
|
+
import { SupportBubble } from "./bubble.js";
|
|
7
|
+
import { Button } from "./button.js";
|
|
8
|
+
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
9
|
+
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
10
|
+
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
|
|
11
|
+
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
12
|
+
import { SupportWindow } from "./window.js";
|
|
13
|
+
import "./index2.parts.js";
|
package/index5.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { SupportBubble } from "./bubble.js";
|
|
7
|
-
import { Button } from "./button.js";
|
|
8
|
-
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
9
|
-
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
10
|
-
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item2.js";
|
|
11
|
-
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
12
|
-
import { SupportWindow } from "./window.js";
|
|
13
|
-
import "./index2.parts.js";
|
|
1
|
+
import { RealtimeAuthConfig, RealtimeContextValue, RealtimeProvider, RealtimeProviderProps, useRealtimeConnection } from "./provider3.js";
|
|
2
|
+
import { applyConversationSeenEvent, hydrateConversationSeen, upsertConversationSeen } from "./seen-store.js";
|
|
3
|
+
import { SupportRealtimeProvider } from "./support-provider.js";
|
|
4
|
+
import { applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, setTypingState } from "./typing-store.js";
|
|
5
|
+
import { RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, useRealtime } from "./use-realtime.js";
|
package/index6.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { SupportRealtimeProvider } from "./support-provider.js";
|
|
4
|
-
import { applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, setTypingState } from "./typing-store.js";
|
|
5
|
-
import { RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, useRealtime } from "./use-realtime.js";
|
|
1
|
+
import { SupportLocale, SupportTextContentOverrides, SupportTextKey, SupportTextVariables } from "./keys.js";
|
|
2
|
+
import React from "react";
|
package/index7.d.ts
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
import { SupportLocale, SupportTextContentOverrides
|
|
2
|
-
import
|
|
1
|
+
import { SupportLocale, SupportTextContentOverrides } from "./keys.js";
|
|
2
|
+
import "./index6.js";
|
|
3
|
+
import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "./websocket.js";
|
|
4
|
+
import { useSupportConfig, useSupportStore } from "./support-store.js";
|
|
5
|
+
import { ReactElement } from "react";
|
|
6
|
+
|
|
7
|
+
//#region ../react/src/support/index.d.ts
|
|
8
|
+
type SupportProps<Locale extends string = SupportLocale> = {
|
|
9
|
+
className?: string;
|
|
10
|
+
position?: "top" | "bottom";
|
|
11
|
+
align?: "right" | "left";
|
|
12
|
+
positioning?: "fixed" | "absolute";
|
|
13
|
+
quickOptions?: string[];
|
|
14
|
+
defaultMessages?: DefaultMessage[];
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
locale?: Locale;
|
|
17
|
+
content?: SupportTextContentOverrides<Locale>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Orchestrates the end-user support experience by nesting realtime and
|
|
21
|
+
* content providers. Renders nothing until website data is available to avoid
|
|
22
|
+
* flashing incomplete UI.
|
|
23
|
+
*/
|
|
24
|
+
declare function Support<Locale extends string = SupportLocale>({
|
|
25
|
+
className,
|
|
26
|
+
position,
|
|
27
|
+
align,
|
|
28
|
+
positioning,
|
|
29
|
+
quickOptions,
|
|
30
|
+
defaultMessages,
|
|
31
|
+
defaultOpen,
|
|
32
|
+
locale,
|
|
33
|
+
content
|
|
34
|
+
}: SupportProps<Locale>): ReactElement | null;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Support, SupportProps };
|
|
37
|
+
//# sourceMappingURL=index7.d.ts.map
|
package/index7.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index7.d.ts","names":[],"sources":["../../react/src/support/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;KAYY,qCAAqC;;;EAArC,KAAA,CAAA,EAAA,OAAY,GAAA,MAAA;EAAyB,WAAA,CAAA,EAAA,OAAA,GAAA,UAAA;EAM9B,YAAA,CAAA,EAAA,MAAA,EAAA;EAET,eAAA,CAAA,EAFS,cAET,EAAA;EAC6B,WAAA,CAAA,EAAA,OAAA;EAA5B,MAAA,CAAA,EADD,MACC;EAA2B,OAAA,CAAA,EAA3B,2BAA2B,CAAC,MAAD,CAAA;AAStC,CAAA;;;;;;AAKC,iBALe,OAKf,CAAA,eAAA,MAAA,GAL+C,aAK/C,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,KAAA;EAAA,WAAA;EAAA,YAAA;EAAA,eAAA;EAAA,WAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAKE,YALF,CAKe,MALf,CAAA,CAAA,EAKyB,YALzB,GAAA,IAAA"}
|
package/index8.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { shouldDisplayConversation } from "./conversation.js";
|
|
2
|
+
import { PENDING_CONVERSATION_ID, generateShortPrimaryId } from "./id.js";
|
|
3
|
+
import { useRenderElement } from "./use-render-element.js";
|
package/keys.d.ts
CHANGED
package/keys.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","names":[],"sources":["../../react/src/support/text/locales/keys.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keys.d.ts","names":[],"sources":["../../react/src/support/text/locales/keys.ts"],"sourcesContent":[],"mappings":";AAMY,KAAA,aAAA,GAAa,IAAA,GAAA,IAAA,GAAA,IAAA;AAEb,KAAA,qBAAA,GAAqB,SAAA,GAAA,WAAA,GAAA,SAAA;AAErB,KAAA,qBAAA,GAAqB;EAKrB,KAAA,EAJJ,qBAIoB;EAOhB,KAAA,EAAA,MAAA;CACF;AACA,KATE,gBAAA,GASF;EACI,YAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAT2B,IAAA,CAAK,mBAShC,EAAA,GAAA,MAAA;EACH,SAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,EAAA;IAAgB,GAAA,EAAA,MAAA;IAad,KAAA,EAAA,MAAA;EA2HD,CAAA,EAAA,GAAA,MAAA;EACA,SAAA,EAAA,CAAA,KAAc,EAAA,MAAA,EAAA,GAAS,MAAA;EAEvB,SAAA,EAAA,GAAA,GAlJM,qBAkJc;CAAW;AAC1C,KAhJW,kBAAA,GAgJX;EAAuB,OAAA,EA/Id,qBA+Ic,GAAA,IAAA;EAAC,OAAA,EA9If,qBA8Ie,CAAA,SAAA,CAAA,GAAA,IAAA;EAEpB,WAAA,EA/IS,mBA+IG,EAAA;EAAW,QAAA,EA9IjB,gBA8IiB,EAAA;CAC3B;AAAuB,cAlIX,sBAkIW,EAAA;EAAC,SAAA,4BAAA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ACO,iBACH,mBAAmB,KACnB,QAAQ,OAAO,gBAAgB,QAAQ,mBAAmB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cossistant/next",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Cossistant team",
|
|
7
7
|
"description": "Next.js-ready SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"import": "./hooks/*.js"
|
|
57
57
|
},
|
|
58
58
|
"./support.css": "./support.css",
|
|
59
|
-
"./tailwind.css": "./
|
|
59
|
+
"./tailwind.css": "./tailwind.css",
|
|
60
60
|
"./realtime": {
|
|
61
61
|
"types": "./realtime/index.d.ts",
|
|
62
62
|
"import": "./realtime/index.js"
|
|
@@ -68,6 +68,18 @@
|
|
|
68
68
|
"./utils/*": {
|
|
69
69
|
"types": "./utils/*.d.ts",
|
|
70
70
|
"import": "./utils/*.js"
|
|
71
|
+
},
|
|
72
|
+
"./identify-visitor": {
|
|
73
|
+
"types": "./identify-visitor.d.ts",
|
|
74
|
+
"import": "./identify-visitor.js"
|
|
75
|
+
},
|
|
76
|
+
"./provider": {
|
|
77
|
+
"types": "./provider.d.ts",
|
|
78
|
+
"import": "./provider.js"
|
|
79
|
+
},
|
|
80
|
+
"./support-config": {
|
|
81
|
+
"types": "./support-config.d.ts",
|
|
82
|
+
"import": "./support-config.js"
|
|
71
83
|
}
|
|
72
84
|
},
|
|
73
85
|
"main": "./index.js",
|
|
@@ -80,7 +92,7 @@
|
|
|
80
92
|
"access": "public"
|
|
81
93
|
},
|
|
82
94
|
"dependencies": {
|
|
83
|
-
"@cossistant/react": "0.0.
|
|
95
|
+
"@cossistant/react": "0.0.9",
|
|
84
96
|
"tailwindcss": "^4.1.13"
|
|
85
97
|
},
|
|
86
98
|
"peerDependencies": {
|
package/primitives/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { SupportBubble } from "../bubble.js";
|
|
|
7
7
|
import { Button } from "../button.js";
|
|
8
8
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "../conversation-timeline.js";
|
|
9
9
|
import { FileInput, MultimodalInput, SupportInput } from "../multimodal-input.js";
|
|
10
|
-
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "../timeline-
|
|
10
|
+
import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "../timeline-item.js";
|
|
11
11
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "../timeline-item-group.js";
|
|
12
12
|
import { SupportWindow } from "../window.js";
|
|
13
|
-
import "../
|
|
13
|
+
import "../index4.js";
|
|
14
14
|
export { Avatar, AvatarFallback, AvatarImage, SupportBubble as Bubble, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, FileInput, SupportInput as Input, MultimodalInput, TimelineItem, TimelineItemContent, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemTimestamp, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, SupportWindow as Window };
|
package/provider2.d.ts
CHANGED
package/provider2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider2.d.ts","names":[],"sources":["../../react/src/provider.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider2.d.ts","names":[],"sources":["../../react/src/provider.tsx"],"sourcesContent":[],"mappings":";;;AAgBY,KAAA,oBAAA,GAAoB;EACrB,QAAM,EAAN,KAAA,CAAM,SAAA;EAKE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SAAA,CAAA,CAAA,GAAA;EACA,MAAA,EAAA,MAAA,GAAA,IAAA;CACA;AACA,KAjSW,eAAA,GAAkB,sBAiS7B,GAAA;EACA,oBAAA,EAjSsB,WAiStB,CAjSkC,WAiSlC,CAAA,sBAAA,CAAA,CAAA,GAAA,EAAA;EACA,iBAAA,EAjSmB,WAiSnB,CAjS+B,WAiS/B,CAAA,mBAAA,CAAA,CAAA,GAAA,EAAA;EACA,OAAA,CAAA,EAjSU,iBAiSV;EACA,IAAA,EAAA,QAAA,GAAA,QAAA;CACA;AACE,cAhSU,cAgSV,EAhSwB,KAAA,CAAA,OAgSxB,CAhSwB,sBAgSxB,GAAA,SAAA,CAAA;;;AAwBH;;;;iBArCgB,eAAA;;;;;;;;;;;;;GAab,uBAAuB,KAAA,CAAM;;;;;iBAwBhB,UAAA,CAAA,GAAc"}
|
package/provider3.d.ts
CHANGED
package/provider3.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider3.d.ts","names":[],"sources":["../../react/src/realtime/provider.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider3.d.ts","names":[],"sources":["../../react/src/realtime/provider.tsx"],"sourcesContent":[],"mappings":";;;KAuBK,gBAAA,WAA2B;AAfD,KA8C1B,iBAAA,GA/BgB;EA+BhB,IAAA,EAAA,SAAA;EAOA,SAAA,EAAA,MAAA,GAAiB,IAAA;EAOjB,SAAA,CAAA,EAAA,MAAA,GAAkB,IAAA;EAWlB,SAAA,CAAA,EAAA,MAAA,GAAA,IAAqB;CACf;KAnBN,iBAAA,GAqBE;EAIY,IAAA,EAAA,SAAA;EAAK,YAAA,EAAA,MAAA,GAAA,IAAA;EAGnB,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAGG,MAAA,CAAA,EAAA,MAAA,GAAA,IAAA;CACO;KAzBV,kBAAA,GAAqB,iBA2BJ,GA3BwB,iBA2BxB;KAhBjB,qBAAA,GAiBO;EAAgB,QAAA,EAhBjB,KAAA,CAAM,SAgBW;EAKvB,KAAA,CAAA,EAAA,MAAA;EA8QW,IAAA,EAjST,kBAiSyB,GAAA,IAAA;EAC/B,WAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EACA,YAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EACA,OAAA,CAAA,EAAA,CAAA,KAAA,EAjSkB,KAiSlB,EAAA,GAAA,IAAA;CACA;KA/RI,uBAAA,GAgSJ;EACA,WAAA,EAAA,OAAA;EACE,YAAA,EAAA,OAAA;EAAwB,KAAM,EA/RzB,KA+RyB,GAAA,IAAA;EAAY,IAAA,EAAA,CAAA,KAAA,EA9R9B,gBA8R8B,EAAA,GAAA,IAAA;EA6S7B,OAAA,EAAA,CAAA,IAAA,EAAA,MAAA,EAAqB,GAAA,IAAA;uBAzkBf;aACV;;;;KAKP,oBAAA,GAAuB;;;;;;;;iBA8QZ,gBAAA;;;;;;;;GAQb,wBAAwB,KAAA,CAAM;;;;iBA6SjB,qBAAA,CAAA,GAAyB"}
|
package/realtime/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { applyConversationSeenEvent, hydrateConversationSeen, upsertConversation
|
|
|
3
3
|
import { SupportRealtimeProvider } from "../support-provider.js";
|
|
4
4
|
import { applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, setTypingState } from "../typing-store.js";
|
|
5
5
|
import { RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, useRealtime } from "../use-realtime.js";
|
|
6
|
-
import "../
|
|
6
|
+
import "../index5.js";
|
|
7
7
|
export { RealtimeAuthConfig, RealtimeContextValue, RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, RealtimeProvider, RealtimeProviderProps, SupportRealtimeProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useRealtime, useRealtimeConnection };
|
package/seen-store.d.ts
CHANGED
package/seen-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seen-store.d.ts","names":[],"sources":["../../react/src/realtime/seen-store.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seen-store.d.ts","names":[],"sources":["../../react/src/realtime/seen-store.ts"],"sourcesContent":[],"mappings":";;;;;iBA6DgB,uBAAA,kCAEN;;;;iBAQM,sBAAA;;aAEJ;;cAEC;;;;;;iBAYG,0BAAA,QACR"}
|
package/support/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "../websocket.js";
|
|
2
2
|
import { useSupportConfig, useSupportStore } from "../support-store.js";
|
|
3
|
-
import { Support, SupportProps } from "../
|
|
3
|
+
import { Support, SupportProps } from "../index7.js";
|
|
4
4
|
export { Support, type SupportProps, type WebSocketContextValue, WebSocketProvider, useSupportConfig, useSupportStore, useWebSocket };
|
package/support-config2.d.ts
CHANGED
package/support-config2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-config2.d.ts","names":[],"sources":["../../react/src/support-config.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"support-config2.d.ts","names":[],"sources":["../../react/src/support-config.tsx"],"sourcesContent":[],"mappings":";;;KAMY,kBAAA;EAAA,eAAA,CAAA,EACO,cAAA,EAAA;EAON,YAAA,CAAA,EAAA,MAoBZ,EAAA;;;;;AAjByC,cAH7B,aAG6B,EAAA;;;;KAAvC,qBAAqB,OAAA,CAAM"}
|
package/support-store.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { SupportStore, SupportStoreState } from "@cossistant/core";
|
|
2
|
-
|
|
3
1
|
//#region ../react/src/support/store/support-store.d.ts
|
|
4
2
|
type UseSupportStoreResult = SupportStoreState & Pick<SupportStore, "navigate" | "replace" | "goBack" | "open" | "close" | "toggle" | "updateConfig" | "reset">;
|
|
5
3
|
/**
|
|
@@ -12,7 +10,20 @@ declare function useSupportStore(): UseSupportStoreResult;
|
|
|
12
10
|
* Shortcut hook that returns the persisted widget configuration along with
|
|
13
11
|
* open/close/toggle helpers for common UI bindings.
|
|
14
12
|
*/
|
|
15
|
-
declare const useSupportConfig: () =>
|
|
13
|
+
declare const useSupportConfig: () => {
|
|
14
|
+
open: () => void;
|
|
15
|
+
close: () => void;
|
|
16
|
+
toggle: () => void;
|
|
17
|
+
size: "normal" | "larger";
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
content: {
|
|
20
|
+
home?: {
|
|
21
|
+
header?: string;
|
|
22
|
+
subheader?: string;
|
|
23
|
+
ctaLabel?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
16
27
|
//#endregion
|
|
17
|
-
export {
|
|
28
|
+
export { useSupportConfig, useSupportStore };
|
|
18
29
|
//# sourceMappingURL=support-store.d.ts.map
|
package/support-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-store.d.ts","names":[],"sources":["../../react/src/support/store/support-store.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"support-store.d.ts","names":[],"sources":["../../react/src/support/store/support-store.ts"],"sourcesContent":[],"mappings":";AA8CY,KAAA,qBAAA,GAAwB,iBAAH,GAChC,IADgC,CAE/B,YAF+B,EAAA,UAAA,GAAA,SAAA,GAAA,QAAA,GAAA,MAAA,GAAA,OAAA,GAAA,QAAA,GAAA,cAAA,GAAA,OAAA,CAAA;;;;;AAkBjC;AAuBa,iBAvBG,eAAA,CAAA,CAmCf,EAnCkC,qBAmClC;;;;;cAZY"}
|
package/timeline-item-group.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
-
import { SenderType } from "./enums.js";
|
|
3
1
|
import * as React$1 from "react";
|
|
4
2
|
|
|
5
3
|
//#region ../react/src/primitives/timeline-item-group.d.ts
|
|
@@ -33,7 +31,7 @@ declare const TimelineItemGroup: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
33
31
|
children?: React$1.ReactNode | ((props: TimelineItemGroupRenderProps) => React$1.ReactNode);
|
|
34
32
|
asChild?: boolean;
|
|
35
33
|
className?: string;
|
|
36
|
-
items:
|
|
34
|
+
items: TimelineItemType[];
|
|
37
35
|
viewerId?: string;
|
|
38
36
|
viewerType?: SenderType;
|
|
39
37
|
seenByIds?: readonly string[];
|
|
@@ -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;EArB1B,UAAM,EA5BG,UA4BH;EACG,QAAA,EAAA,MAAA;EAAiC,UAAM,CAAA,EA3BtC,UA2BsC;EAG5C,cAAA,EAAA,OAAA;EAIM,kBAAA,EAAA,OAAA;EAIK,SAAA,EAAA,OAAA;;;EASW,SAAA,EAAA,MAAA;EAAA,WAAA,EAAA,MAAA,GAAA,SAAA;EAuHjB,UAAA,EAAA,MAAA,GAAA,SAuBT;EAvBgC,mBAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,SAAA,MAAA,EAAA;CAAA;;;;;;;AAgDA,cAvKvB,iBAuKuB,EAvKN,OAAA,CAAA,yBAuKM,CAvKN,IAuKM,CAvKN,OAAA,CAAA,cAuKM,CAvKN,cAuKM,CAAA,EAAA,UAAA,CAAA,GAAA;EAyDvB,QAAA,CAAA,EArPT,OAAA,CAAM,SAqPG,GAuBT,CAAA,CAAA,KAAA,EA3QS,4BA2QT,EAAA,GA3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