@cossistant/next 0.0.6 → 0.0.7
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 +2 -1
- package/conversation-timeline.d.ts.map +1 -1
- package/conversation.d.ts +47 -3
- package/conversation.d.ts.map +1 -1
- package/conversation2.d.ts +7 -0
- package/conversation2.d.ts.map +1 -0
- package/enums.d.ts +11 -0
- package/enums.d.ts.map +1 -0
- package/hooks/index.d.ts +1 -1
- package/identify-visitor2.d.ts +1 -0
- package/identify-visitor2.d.ts.map +1 -1
- package/index.d.ts +3 -3
- package/index10.d.ts +3 -0
- package/index2.d.ts +19 -24
- package/index2.d.ts.map +1 -0
- package/index2.parts.d.ts +2 -2
- package/index3.d.ts +24 -4
- package/index4.d.ts +1 -10
- package/index5.d.ts +13 -5
- package/index6.d.ts +5 -2
- package/index7.d.ts +2 -37
- package/index8.d.ts +1 -3
- package/index9.d.ts +39 -0
- package/index9.d.ts.map +1 -0
- package/keys.d.ts +2 -0
- package/keys.d.ts.map +1 -1
- package/package.json +2 -2
- package/primitives/index.d.ts +2 -2
- package/provider2.d.ts +3 -0
- package/provider2.d.ts.map +1 -1
- package/provider3.d.ts +1 -0
- package/provider3.d.ts.map +1 -1
- package/realtime/index.d.ts +1 -1
- package/realtime-events.d.ts +126 -0
- package/realtime-events.d.ts.map +1 -0
- package/schemas.d.ts +34 -0
- package/schemas.d.ts.map +1 -0
- package/seen-store.d.ts +4 -0
- package/seen-store.d.ts.map +1 -1
- package/support/index.d.ts +1 -1
- package/support-config2.d.ts +1 -0
- package/support-config2.d.ts.map +1 -1
- package/support-store.d.ts +4 -15
- package/support-store.d.ts.map +1 -1
- package/support.css +1 -1
- package/timeline-item-group.d.ts +3 -1
- package/timeline-item-group.d.ts.map +1 -1
- package/timeline-item.d.ts +107 -50
- package/timeline-item.d.ts.map +1 -1
- package/timeline-item2.d.ts +55 -0
- package/timeline-item2.d.ts.map +1 -0
- package/typing-indicator.d.ts +1 -0
- package/typing-indicator.d.ts.map +1 -1
- package/typing-store.d.ts +3 -0
- package/typing-store.d.ts.map +1 -1
- package/typing.d.ts +2 -1
- package/typing.d.ts.map +1 -1
- package/use-client-query.d.ts +2 -0
- package/use-client-query.d.ts.map +1 -1
- package/use-conversation-auto-seen.d.ts +3 -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 +2 -0
- package/use-conversation-page.d.ts.map +1 -1
- package/use-conversation-preview.d.ts +2 -0
- package/use-conversation-preview.d.ts.map +1 -1
- package/use-conversation-seen.d.ts +2 -0
- package/use-conversation-seen.d.ts.map +1 -1
- package/use-conversation-timeline-items.d.ts +3 -1
- package/use-conversation-timeline-items.d.ts.map +1 -1
- package/use-conversation-timeline.d.ts +1 -0
- 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-conversation.d.ts +2 -0
- package/use-conversation.d.ts.map +1 -1
- package/use-conversations.d.ts +3 -1
- package/use-conversations.d.ts.map +1 -1
- package/use-create-conversation.d.ts +5 -1
- package/use-create-conversation.d.ts.map +1 -1
- package/use-default-messages.d.ts +2 -0
- package/use-default-messages.d.ts.map +1 -1
- package/use-grouped-messages.d.ts +4 -1
- 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 +2 -0
- package/use-message-composer.d.ts.map +1 -1
- package/use-realtime-support.d.ts +2 -0
- package/use-realtime-support.d.ts.map +1 -1
- package/use-realtime.d.ts +1 -0
- package/use-realtime.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 +4 -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 +2 -2
- package/visitor.d.ts +72 -0
- package/visitor.d.ts.map +1 -0
- package/website.d.ts +49 -0
- package/website.d.ts.map +1 -0
- package/websocket.d.ts +2 -1
- package/websocket.d.ts.map +1 -1
- package/index7.d.ts.map +0 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region ../types/dist/realtime-events.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Central event system for real-time communication
|
|
7
|
+
* All WebSocket and Redis Pub/Sub events are defined here
|
|
8
|
+
*/
|
|
9
|
+
declare const realtimeSchema: {
|
|
10
|
+
readonly userConnected: z.ZodObject<{
|
|
11
|
+
websiteId: z.ZodString;
|
|
12
|
+
organizationId: z.ZodString;
|
|
13
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
14
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
readonly userDisconnected: z.ZodObject<{
|
|
18
|
+
websiteId: z.ZodString;
|
|
19
|
+
organizationId: z.ZodString;
|
|
20
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
connectionId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
readonly visitorConnected: z.ZodObject<{
|
|
25
|
+
websiteId: z.ZodString;
|
|
26
|
+
organizationId: z.ZodString;
|
|
27
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
visitorId: z.ZodString;
|
|
29
|
+
connectionId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
readonly visitorDisconnected: z.ZodObject<{
|
|
32
|
+
websiteId: z.ZodString;
|
|
33
|
+
organizationId: z.ZodString;
|
|
34
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
visitorId: z.ZodString;
|
|
36
|
+
connectionId: z.ZodString;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
readonly userPresenceUpdate: z.ZodObject<{
|
|
39
|
+
websiteId: z.ZodString;
|
|
40
|
+
organizationId: z.ZodString;
|
|
41
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
42
|
+
userId: z.ZodString;
|
|
43
|
+
status: z.ZodEnum<{
|
|
44
|
+
online: "online";
|
|
45
|
+
away: "away";
|
|
46
|
+
offline: "offline";
|
|
47
|
+
}>;
|
|
48
|
+
lastSeen: z.ZodString;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
readonly conversationSeen: z.ZodObject<{
|
|
51
|
+
websiteId: z.ZodString;
|
|
52
|
+
organizationId: z.ZodString;
|
|
53
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
55
|
+
conversationId: z.ZodString;
|
|
56
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
57
|
+
lastSeenAt: z.ZodString;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
readonly conversationTyping: z.ZodObject<{
|
|
60
|
+
websiteId: z.ZodString;
|
|
61
|
+
organizationId: z.ZodString;
|
|
62
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
63
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
64
|
+
conversationId: z.ZodString;
|
|
65
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
66
|
+
isTyping: z.ZodBoolean;
|
|
67
|
+
visitorPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
readonly timelineItemCreated: z.ZodObject<{
|
|
70
|
+
websiteId: z.ZodString;
|
|
71
|
+
organizationId: z.ZodString;
|
|
72
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
73
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
74
|
+
conversationId: z.ZodString;
|
|
75
|
+
item: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
conversationId: z.ZodString;
|
|
78
|
+
organizationId: z.ZodString;
|
|
79
|
+
visibility: z.ZodEnum<{
|
|
80
|
+
[x: string]: any;
|
|
81
|
+
}>;
|
|
82
|
+
type: z.ZodEnum<{
|
|
83
|
+
[x: string]: any;
|
|
84
|
+
}>;
|
|
85
|
+
text: z.ZodNullable<z.ZodString>;
|
|
86
|
+
parts: z.ZodArray<z.ZodUnknown>;
|
|
87
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
88
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
89
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
createdAt: z.ZodString;
|
|
91
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
92
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
readonly conversationCreated: z.ZodObject<{
|
|
96
|
+
websiteId: z.ZodString;
|
|
97
|
+
organizationId: z.ZodString;
|
|
98
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
99
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
100
|
+
conversationId: z.ZodString;
|
|
101
|
+
conversation: any;
|
|
102
|
+
header: any;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
readonly visitorIdentified: z.ZodObject<{
|
|
105
|
+
websiteId: z.ZodString;
|
|
106
|
+
organizationId: z.ZodString;
|
|
107
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
108
|
+
visitorId: z.ZodString;
|
|
109
|
+
visitor: any;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
};
|
|
112
|
+
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
113
|
+
type RealtimeEventPayload<T extends RealtimeEventType> = z.infer<(typeof realtimeSchema)[T]>;
|
|
114
|
+
type RealtimeEvent<T extends RealtimeEventType> = {
|
|
115
|
+
type: T;
|
|
116
|
+
payload: RealtimeEventPayload<T>;
|
|
117
|
+
};
|
|
118
|
+
type AnyRealtimeEvent = { [K in RealtimeEventType]: RealtimeEvent<K> }[RealtimeEventType];
|
|
119
|
+
type RealtimeEventData<T extends RealtimeEventType> = RealtimeEventPayload<T>;
|
|
120
|
+
/**
|
|
121
|
+
* Validates an event against its schema
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
export { AnyRealtimeEvent, RealtimeEvent, RealtimeEventData, RealtimeEventPayload, RealtimeEventType, realtimeSchema };
|
|
126
|
+
//# sourceMappingURL=realtime-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":["z","baseRealtimeEvent","ZodString","ZodNullable","core","$strip","ZodObject","realtimeSchema","ZodEnum","ZodBoolean","ZodOptional","ZodUnknown","ZodArray","RealtimeEventType","RealtimeEventPayload","T","infer","RealtimeEvent","AnyRealtimeEvent","K","RealtimeEventData","validateRealtimeEvent","isValidEventType","getEventPayload"],"sources":["../../types/dist/realtime-events.d.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//#region src/realtime-events.d.ts\ndeclare const baseRealtimeEvent: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodNullable<z.ZodString>;\n}, z.core.$strip>;\n/**\n * Central event system for real-time communication\n * All WebSocket and Redis Pub/Sub events are defined here\n */\ndeclare const realtimeSchema: {\n readonly userConnected: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodNullable<z.ZodString>;\n connectionId: z.ZodString;\n }, z.core.$strip>;\n readonly userDisconnected: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodNullable<z.ZodString>;\n connectionId: z.ZodString;\n }, z.core.$strip>;\n readonly visitorConnected: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n userId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodString;\n connectionId: z.ZodString;\n }, z.core.$strip>;\n readonly visitorDisconnected: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n userId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodString;\n connectionId: z.ZodString;\n }, z.core.$strip>;\n readonly userPresenceUpdate: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodString;\n status: z.ZodEnum<{\n online: \"online\";\n away: \"away\";\n offline: \"offline\";\n }>;\n lastSeen: z.ZodString;\n }, z.core.$strip>;\n readonly conversationSeen: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodNullable<z.ZodString>;\n conversationId: z.ZodString;\n aiAgentId: z.ZodNullable<z.ZodString>;\n lastSeenAt: z.ZodString;\n }, z.core.$strip>;\n readonly conversationTyping: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodNullable<z.ZodString>;\n conversationId: z.ZodString;\n aiAgentId: z.ZodNullable<z.ZodString>;\n isTyping: z.ZodBoolean;\n visitorPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>;\n readonly timelineItemCreated: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodNullable<z.ZodString>;\n conversationId: z.ZodString;\n item: z.ZodObject<{\n id: z.ZodString;\n conversationId: z.ZodString;\n organizationId: z.ZodString;\n visibility: z.ZodEnum<{\n [x: string]: any;\n }>;\n type: z.ZodEnum<{\n [x: string]: any;\n }>;\n text: z.ZodNullable<z.ZodString>;\n parts: z.ZodArray<z.ZodUnknown>;\n userId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodNullable<z.ZodString>;\n aiAgentId: z.ZodNullable<z.ZodString>;\n createdAt: z.ZodString;\n deletedAt: z.ZodNullable<z.ZodString>;\n tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>;\n }, z.core.$strip>;\n readonly conversationCreated: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n visitorId: z.ZodNullable<z.ZodString>;\n userId: z.ZodNullable<z.ZodString>;\n conversationId: z.ZodString;\n conversation: any;\n header: any;\n }, z.core.$strip>;\n readonly visitorIdentified: z.ZodObject<{\n websiteId: z.ZodString;\n organizationId: z.ZodString;\n userId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodString;\n visitor: any;\n }, z.core.$strip>;\n};\ntype RealtimeEventType = keyof typeof realtimeSchema;\ntype RealtimeEventPayload<T extends RealtimeEventType> = z.infer<(typeof realtimeSchema)[T]>;\ntype RealtimeEvent<T extends RealtimeEventType> = {\n type: T;\n payload: RealtimeEventPayload<T>;\n};\ntype AnyRealtimeEvent = { [K in RealtimeEventType]: RealtimeEvent<K> }[RealtimeEventType];\ntype RealtimeEventData<T extends RealtimeEventType> = RealtimeEventPayload<T>;\n/**\n * Validates an event against its schema\n */\ndeclare function validateRealtimeEvent<T extends RealtimeEventType>(type: T, data: unknown): RealtimeEventPayload<T>;\n/**\n * Type guard to check if a string is a valid event type\n */\ndeclare function isValidEventType(type: unknown): type is RealtimeEventType;\ndeclare function getEventPayload<T extends RealtimeEventType>(event: RealtimeEvent<T>): RealtimeEventPayload<T>;\n//#endregion\nexport { AnyRealtimeEvent, RealtimeEvent, RealtimeEventData, RealtimeEventPayload, RealtimeEventType, baseRealtimeEvent, getEventPayload, isValidEventType, realtimeSchema, validateRealtimeEvent };\n//# sourceMappingURL=realtime-events.d.ts.map"],"mappings":";;;;;;;;cAacO,cASGL,EAAAA;EACGF,SAAEE,aAAAA,EATIF,CAAAA,CAA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 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region ../types/dist/schemas.d.ts
|
|
4
|
+
|
|
5
|
+
declare const conversationSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
createdAt: z.ZodString;
|
|
9
|
+
updatedAt: z.ZodString;
|
|
10
|
+
visitorId: z.ZodString;
|
|
11
|
+
websiteId: z.ZodString;
|
|
12
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
}>>;
|
|
15
|
+
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
lastTimelineItem: any;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type Conversation = z.infer<typeof conversationSchema>;
|
|
19
|
+
declare const conversationSeenSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
conversationId: z.ZodString;
|
|
22
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
23
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
25
|
+
lastSeenAt: z.ZodString;
|
|
26
|
+
createdAt: z.ZodString;
|
|
27
|
+
updatedAt: z.ZodString;
|
|
28
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
type ConversationSeen = z.infer<typeof conversationSeenSchema>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Conversation, ConversationSeen, conversationSchema };
|
|
34
|
+
//# sourceMappingURL=schemas.d.ts.map
|
package/schemas.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","names":["z","viewSchema","ZodString","ZodNullable","core","$strip","ZodObject","InboxView","infer","conversationSchema","ZodOptional","ZodEnum","ZodDefault","Conversation","conversationSeenSchema","ConversationSeen"],"sources":["../../types/dist/schemas.d.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//#region src/schemas.d.ts\ndeclare const viewSchema: z.ZodObject<{\n id: z.ZodString;\n name: z.ZodString;\n description: z.ZodNullable<z.ZodString>;\n prompt: z.ZodNullable<z.ZodString>;\n organizationId: z.ZodString;\n websiteId: z.ZodString;\n createdAt: z.ZodString;\n updatedAt: z.ZodString;\n deletedAt: z.ZodNullable<z.ZodString>;\n}, z.core.$strip>;\ntype InboxView = z.infer<typeof viewSchema>;\ndeclare const conversationSchema: z.ZodObject<{\n id: z.ZodString;\n title: z.ZodOptional<z.ZodString>;\n createdAt: z.ZodString;\n updatedAt: z.ZodString;\n visitorId: z.ZodString;\n websiteId: z.ZodString;\n status: z.ZodDefault<z.ZodEnum<{\n [x: string]: any;\n }>>;\n deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;\n lastTimelineItem: any;\n}, z.core.$strip>;\ntype Conversation = z.infer<typeof conversationSchema>;\ndeclare const conversationSeenSchema: z.ZodObject<{\n id: z.ZodString;\n conversationId: z.ZodString;\n userId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodNullable<z.ZodString>;\n aiAgentId: z.ZodNullable<z.ZodString>;\n lastSeenAt: z.ZodString;\n createdAt: z.ZodString;\n updatedAt: z.ZodString;\n deletedAt: z.ZodNullable<z.ZodString>;\n}, z.core.$strip>;\ntype ConversationSeen = z.infer<typeof conversationSeenSchema>;\n//#endregion\nexport { Conversation, ConversationSeen, InboxView, conversationSchema, conversationSeenSchema, viewSchema };\n//# sourceMappingURL=schemas.d.ts.map"],"mappings":";;;;cAecS,kBAUCG,EAVmBZ,CAAAA,CAAEM,SAUrBM,CAAAA;EAEZZ,EAAEI,EAXCJ,CAAAA,CAAEE,SAWEG;EAZwBL,KAAEM,EAE3BN,CAAAA,CAAEU,WAFyBJ,CAEbN,CAAAA,CAAEE,SAFWI,CAAAA;EAAS,SAAA,EAGhCN,CAAAA,CAAEE,S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
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 "../index9.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;oBACO;EADP,YAAA,CAAA,EAAA,MAAkB,EAAA;AAQ9B,CAAA;;;;AAGwB,cAHX,aAGiB,EAAA;EAAY,CAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EAAvC,kBAAuC,CAAA,EAAlB,OAAA,CAAM,YAAY,GAAA,IAAA"}
|
package/support-store.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { SupportStore, SupportStoreState } from "@cossistant/core";
|
|
2
|
+
|
|
1
3
|
//#region ../react/src/support/store/support-store.d.ts
|
|
2
4
|
type UseSupportStoreResult = SupportStoreState & Pick<SupportStore, "navigate" | "replace" | "goBack" | "open" | "close" | "toggle" | "updateConfig" | "reset">;
|
|
3
5
|
/**
|
|
@@ -10,20 +12,7 @@ declare function useSupportStore(): UseSupportStoreResult;
|
|
|
10
12
|
* Shortcut hook that returns the persisted widget configuration along with
|
|
11
13
|
* open/close/toggle helpers for common UI bindings.
|
|
12
14
|
*/
|
|
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
|
-
};
|
|
15
|
+
declare const useSupportConfig: () => any;
|
|
27
16
|
//#endregion
|
|
28
|
-
export { useSupportConfig, useSupportStore };
|
|
17
|
+
export { UseSupportStoreResult, useSupportConfig, useSupportStore };
|
|
29
18
|
//# 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":";;;KA8CY,qBAAA,GAAwB,oBACnC,KACC;;AAFF;;;;AACK,iBAiBW,eAAA,CAAA,CAjBX,EAiB8B,qBAjB9B;AAiBL;AAuBA;;;cAAa"}
|
package/support.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer base{.cossistant{border-color:var(--co-border);scroll-behavior:smooth;color-scheme:normal;--co-font-sans:var(--co-theme-font-sans,var(--font-sans,"Geist","Inter",sans-serif));--co-font-mono:var(--co-theme-font-mono,var(--font-mono,"Geist Mono","Inter Mono",monospace));--co-border-color:var(--co-theme-border-color,var(--color-border,oklch(92.2% 0 0)));--co-radius:var(--co-theme-radius,var(--radius,.625rem));--co-background-base:var(--co-theme-background,var(--background,oklch(99% 0 0)));--co-foreground-base:var(--co-theme-foreground,var(--foreground,oklch(14.5% 0 0)));--co-popover-base:var(--co-theme-popover,var(--popover,var(--co-background-base)));--co-popover-foreground-base:var(--co-theme-popover-foreground,var(--popover-foreground,var(--co-foreground-base)));--co-primary-base:var(--co-theme-primary,var(--primary,oklch(20.5% 0 0)));--co-primary-foreground-base:var(--co-theme-primary-foreground,var(--primary-foreground,oklch(98.5% 0 0)));--co-secondary-base:var(--co-theme-secondary,var(--secondary,oklch(97% 0 0)));--co-secondary-foreground-base:var(--co-theme-secondary-foreground,var(--secondary-foreground,oklch(20.5% 0 0)));--co-border-base:var(--co-theme-border,var(--border,oklch(92.2% 0 0)));--co-input-base:var(--co-theme-input,var(--input,oklch(92.2% 0 0)));--co-ring-base:var(--co-theme-ring,var(--ring,var(--co-primary-base)));--co-accent-base:var(--co-theme-accent,var(--accent,var(--co-primary-base)));--co-accent-foreground-base:var(--co-theme-accent-foreground,var(--accent-foreground,var(--co-primary-foreground-base)));--co-background-50-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-background-50-mix:color-mix(in oklch,var(--co-background-base)98%,var(--co-foreground-base))}}.cossistant{--co-background-100-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-background-100-mix:color-mix(in oklch,var(--co-background-base)97%,var(--co-foreground-base))}}.cossistant{--co-background-200-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-background-200-mix:color-mix(in oklch,var(--co-background-base)96%,var(--co-foreground-base))}}.cossistant{--co-background-300-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-background-300-mix:color-mix(in oklch,var(--co-background-base)95%,var(--co-foreground-base))}}.cossistant{--co-background-400-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-background-400-mix:color-mix(in oklch,var(--co-background-base)94%,var(--co-foreground-base))}}.cossistant{--co-background-500-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-background-500-mix:color-mix(in oklch,var(--co-background-base)93%,var(--co-foreground-base))}}.cossistant{--co-background-600-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-background-600-mix:color-mix(in oklch,var(--co-background-base)92%,var(--co-foreground-base))}}.cossistant{--co-muted-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-muted-mix:color-mix(in oklch,var(--co-background-base)85%,var(--co-foreground-base))}}.cossistant{--co-muted-foreground-mix:var(--co-foreground-base)}@supports (color:color-mix(in lab, red, red)){.cossistant{--co-muted-foreground-mix:color-mix(in oklch,var(--co-foreground-base)70%,white)}}.cossistant{--co-background:var(--co-background-base);--co-background-50:var(--co-theme-background-50,var(--co-background-50-mix,oklch(92% 0 0)));--co-background-100:var(--co-theme-background-100,var(--co-background-100-mix,oklch(93% 0 0)));--co-background-200:var(--co-theme-background-200,var(--co-background-200-mix,oklch(94% 0 0)));--co-background-300:var(--co-theme-background-300,var(--co-background-300-mix,oklch(95% 0 0)));--co-background-400:var(--co-theme-background-400,var(--co-background-400-mix,oklch(96% 0 0)));--co-background-500:var(--co-theme-background-500,var(--co-background-500-mix,oklch(97% 0 0)));--co-background-600:var(--co-theme-background-600,var(--co-background-600-mix,oklch(98% 0 0)));--co-foreground:var(--co-foreground-base);--co-popover:var(--co-popover-base);--co-popover-foreground:var(--co-popover-foreground-base);--co-primary:var(--co-primary-base);--co-primary-foreground:var(--co-primary-foreground-base);--co-secondary:var(--co-secondary-base);--co-secondary-foreground:var(--co-secondary-foreground-base);--co-muted:var(--co-theme-muted,var(--muted,var(--co-muted-mix,oklch(97% 0 0))));--co-muted-foreground:var(--co-theme-muted-foreground,var(--muted-foreground,var(--co-muted-foreground-mix,oklch(55.6% 0 0))));--co-border:var(--co-border-base);--co-input:var(--co-input-base);--co-ring:var(--co-ring-base);--co-accent:var(--co-accent-base);--co-accent-foreground:var(--co-accent-foreground-base);--co-pink:var(--co-theme-pink,oklch(76.3% .152 354));--co-yellow:var(--co-theme-yellow,oklch(86.4% .144 99));--co-blue:var(--co-theme-blue,oklch(72.5% .132 241));--co-orange:var(--co-theme-orange,oklch(74.5% .166 50));--co-destructive:var(--co-theme-destructive,oklch(57.7% .245 27.325));--co-destructive-foreground:var(--co-theme-destructive-foreground,oklch(57.7% .245 27.325));--co-success:var(--co-theme-success,oklch(71.7% .18 142));--co-success-foreground:var(--co-theme-success-foreground,oklch(26.5% .052 142.7));--co-neutral:var(--co-theme-neutral,oklch(60.8% 0 0));--co-neutral-foreground:var(--co-theme-neutral-foreground,oklch(25.6% 0 0));--co-warning:var(--co-theme-warning,oklch(86.4% .144 99));--co-warning-foreground:var(--co-theme-warning-foreground,oklch(41.4% .071 99))}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-base:var(--co-theme-background,var(--background,oklch(15.5% 0 0)));--co-foreground-base:var(--co-theme-foreground,var(--foreground,oklch(98.5% 0 0)));--co-border-color:var(--co-theme-border-color,var(--color-border,oklch(26.9% 0 0)));--co-popover-base:var(--co-theme-popover,var(--popover,oklch(14.5% 0 0)));--co-popover-foreground-base:var(--co-theme-popover-foreground,var(--popover-foreground,oklch(98.5% 0 0)));--co-primary-base:var(--co-theme-primary,var(--primary,oklch(98.5% 0 0)));--co-primary-foreground-base:var(--co-theme-primary-foreground,var(--primary-foreground,oklch(20.5% 0 0)));--co-secondary-base:var(--co-theme-secondary,var(--secondary,oklch(26.9% 0 0)));--co-secondary-foreground-base:var(--co-theme-secondary-foreground,var(--secondary-foreground,oklch(98.5% 0 0)));--co-border-base:var(--co-theme-border,var(--border,oklch(26.9% 0 0)));--co-input-base:var(--co-theme-input,var(--input,oklch(26.9% 0 0)));--co-ring-base:var(--co-theme-ring,var(--ring,var(--co-primary-base)));--co-accent-base:var(--co-theme-accent,var(--accent,var(--co-primary-base)));--co-accent-foreground-base:var(--co-theme-accent-foreground,var(--accent-foreground,var(--co-primary-foreground-base)));--co-muted-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-muted-mix:color-mix(in oklch,var(--co-background-base)55%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-muted-foreground-mix:var(--co-foreground-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-muted-foreground-mix:color-mix(in oklch,var(--co-foreground-base)65%,white)}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-50-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-50-mix:color-mix(in oklch,var(--co-background-base)98%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-100-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-100-mix:color-mix(in oklch,var(--co-background-base)96%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-200-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-200-mix:color-mix(in oklch,var(--co-background-base)94%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-300-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-300-mix:color-mix(in oklch,var(--co-background-base)92%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-400-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-400-mix:color-mix(in oklch,var(--co-background-base)90%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-500-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-500-mix:color-mix(in oklch,var(--co-background-base)88%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-600-mix:var(--co-background-base)}@supports (color:color-mix(in lab, red, red)){.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-background-600-mix:color-mix(in oklch,var(--co-background-base)86%,var(--co-foreground-base))}}.dark .cossistant,.cossistant[data-color-scheme=dark]{--co-pink:var(--co-theme-pink,oklch(84.2% .109 354));--co-yellow:var(--co-theme-yellow,oklch(90.3% .111 99));--co-blue:var(--co-theme-blue,oklch(79.8% .089 241));--co-orange:var(--co-theme-orange,oklch(68.2% .194 50));--co-destructive:var(--co-theme-destructive,oklch(39.6% .141 25.723));--co-destructive-foreground:var(--co-theme-destructive-foreground,oklch(63.7% .237 25.331));--co-success:var(--co-theme-success,oklch(60% .15 142));--co-success-foreground:var(--co-theme-success-foreground,oklch(85% .12 142));--co-neutral:var(--co-theme-neutral,oklch(50% 0 0));--co-neutral-foreground:var(--co-theme-neutral-foreground,oklch(85% 0 0));--co-warning:var(--co-theme-warning,oklch(90.3% .111 99));--co-warning-foreground:var(--co-theme-warning-foreground,oklch(85% .1 99))}}@layer utilities{.cossistant .animation-delay-0{animation-delay:0s}.cossistant .animation-delay-200{animation-delay:.2s}.cossistant .animation-delay-400{animation-delay:.4s}.cossistant .dot-bounce-1{animation:1.4s infinite bounce-dot}.cossistant .dot-bounce-2{animation:1.4s .16s infinite bounce-dot}.cossistant .dot-bounce-3{animation:1.4s .32s infinite bounce-dot}}
|
package/timeline-item-group.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
+
import { SenderType } from "./enums.js";
|
|
1
3
|
import * as React$1 from "react";
|
|
2
4
|
|
|
3
5
|
//#region ../react/src/primitives/timeline-item-group.d.ts
|
|
@@ -31,7 +33,7 @@ declare const TimelineItemGroup: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
31
33
|
children?: React$1.ReactNode | ((props: TimelineItemGroupRenderProps) => React$1.ReactNode);
|
|
32
34
|
asChild?: boolean;
|
|
33
35
|
className?: string;
|
|
34
|
-
items:
|
|
36
|
+
items: TimelineItem[];
|
|
35
37
|
viewerId?: string;
|
|
36
38
|
viewerType?: SenderType;
|
|
37
39
|
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;EAAA,UAAA,EAjDjB,UAiDiB;EAAA,QAAA,EAAA,MAAA;EArB1B,UAAM,CAAA,EA1BI,UA0BJ;EACG,cAAA,EAAA,OAAA;EAAiC,kBAAM,EAAA,OAAA;EAG5C,SAAA,EAAA,OAAA;EAIM,IAAA,EAAA,OAAA;EAIK,YAAA,EAAA,OAAA;;;EASW,UAAA,EAAA,MAAA,GAAA,SAAA;EAAA,mBAAA,CAAA,EAAA,OAAA;EAuHjB,SAAA,CAAA,EAAA,SAAA,MAuBT,EAAA;CAvBgC;;;;;;;cAvHvB,mBAAiB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;EAuKM,QAAA,CAAA,EA5LhC,OAAA,CAAM,SA4L0B,GAAA,CAAA,CAAA,KAAA,EA3LvB,4BA2LuB,EAAA,GA3LU,OAAA,CAAM,SA2LhB,CAAA;EAAA,OAAA,CAAA,E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|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
5
|
+
declare const timelineItemSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
conversationId: z.ZodString;
|
|
8
|
+
organizationId: z.ZodString;
|
|
9
|
+
visibility: z.ZodEnum<{
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
type: z.ZodEnum<{
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
}>;
|
|
15
|
+
text: z.ZodNullable<z.ZodString>;
|
|
16
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<"text">;
|
|
19
|
+
text: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<"event">;
|
|
22
|
+
eventType: z.ZodEnum<{
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>;
|
|
25
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
27
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
29
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"image">;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
mediaType: z.ZodString;
|
|
34
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
35
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
type: z.ZodLiteral<"file">;
|
|
40
|
+
url: z.ZodString;
|
|
41
|
+
mediaType: z.ZodString;
|
|
42
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
43
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
}, z.core.$strip>]>>;
|
|
45
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
47
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
createdAt: z.ZodString;
|
|
49
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
type timelineItemSchema = z.infer<typeof timelineItemSchema>;
|
|
52
|
+
type TimelineItem = z.infer<typeof timelineItemSchema>;
|
|
53
|
+
declare const getConversationTimelineItemsRequestSchema: z.ZodObject<{
|
|
54
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
55
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
type GetConversationTimelineItemsRequest = z.infer<typeof getConversationTimelineItemsRequestSchema>;
|
|
58
|
+
declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
|
|
59
|
+
items: z.ZodArray<z.ZodObject<{
|
|
60
|
+
id: z.ZodOptional<z.ZodString>;
|
|
61
|
+
conversationId: z.ZodString;
|
|
62
|
+
organizationId: z.ZodString;
|
|
63
|
+
visibility: z.ZodEnum<{
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
}>;
|
|
66
|
+
type: z.ZodEnum<{
|
|
67
|
+
[x: string]: any;
|
|
68
|
+
}>;
|
|
69
|
+
text: z.ZodNullable<z.ZodString>;
|
|
70
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"text">;
|
|
73
|
+
text: z.ZodString;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
type: z.ZodLiteral<"event">;
|
|
76
|
+
eventType: z.ZodEnum<{
|
|
77
|
+
[x: string]: any;
|
|
78
|
+
}>;
|
|
79
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
80
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
81
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
82
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
83
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"image">;
|
|
86
|
+
url: z.ZodString;
|
|
87
|
+
mediaType: z.ZodString;
|
|
88
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
89
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"file">;
|
|
94
|
+
url: z.ZodString;
|
|
95
|
+
mediaType: z.ZodString;
|
|
96
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
97
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
}, z.core.$strip>]>>;
|
|
99
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
100
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
101
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
102
|
+
createdAt: z.ZodString;
|
|
103
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
106
|
+
hasNextPage: z.ZodBoolean;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
type GetConversationTimelineItemsResponse = z.infer<typeof getConversationTimelineItemsResponseSchema>;
|
|
52
109
|
//#endregion
|
|
53
|
-
export { TimelineItem,
|
|
110
|
+
export { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, TimelineItem, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, timelineItemSchema };
|
|
54
111
|
//# sourceMappingURL=timeline-item.d.ts.map
|
package/timeline-item.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../react/src/primitives/timeline-item.tsx"],"sourcesContent":[],"mappings":";;;;;AASA;AA2BA;;AAAyB,KA3Bb,uBAAA,GA2Ba;EAAA,SAAA,EAAA,OAAA;EAZrB,IAAA,EAAM,OAAA;EACG,OAAA,EAAA,OAAA;EAA4B,SAAM,EAZnC,IAYmC;EAGxC,IAAA,EAAA,MAAA,GAAA,IAAA;;;CAQkB;;;;;;AA2MZ,cA3MA,YAuPT,EAvPqB,OAAA,CAAA,yBAuPrB,CAvPqB,IAuPrB,CAvPqB,OAAA,CAAA,cAuPrB,CAvPqB,cAuPrB,CAAA,EAAA,UAAA,CAAA,GAAA;EA5C8B,QAAA,CAAA,EAvN9B,OAAA,CAAM,SAuNwB,GAAA,CAAA,CAAA,KAAA,EAtNrB,uBAsNqB,EAAA,GAtNO,OAAA,CAAM,SAsNb,CAAA;EAAA,OAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,MAAA;EAXtB,IAAA,EAxML,gBAwMW;CAAyB,wBAAA,eAAA,CAAA,CAAA;;;;;;cAvD9B,qBAAmB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAZpB,OAAA,CAAM,kCAAkC,OAAA,CAAM;;;;;;;;;;cA8E7C,uBAAqB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAXtB,OAAA,CAAM,yBAAyB,SAAS,OAAA,CAAM;;;aAG9C;kBACK"}
|
|
1
|
+
{"version":3,"file":"timeline-item.d.ts","names":["z","timelinePartImageSchema","ZodLiteral","ZodString","ZodOptional","ZodNumber","core","$strip","ZodObject","timelinePartTextSchema","timelineFileSchema","timelinePartEventSchema","ZodEnum","ZodNullable","timelineItemPartsSchema","ZodUnion","ZodArray","timelineItemSchema","infer","TimelineItem","TimelineItemParts","TimelinePartText","TimelinePartImage","TimelinePartFile","TimelinePartEvent","getConversationTimelineItemsRequestSchema","ZodCoercedNumber","ZodDefault","GetConversationTimelineItemsRequest","getConversationTimelineItemsResponseSchema","ZodBoolean","GetConversationTimelineItemsResponse","sendTimelineItemRequestSchema","SendTimelineItemRequest","sendTimelineItemResponseSchema","SendTimelineItemResponse"],"sources":["../../types/dist/api/timeline-item.d.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\n\n//#region src/api/timeline-item.d.ts\ndeclare const timelinePartImageSchema: z.ZodObject<{\n type: z.ZodLiteral<\"image\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n width: z.ZodOptional<z.ZodNumber>;\n height: z.ZodOptional<z.ZodNumber>;\n}, z.core.$strip>;\ndeclare const timelinePartTextSchema: z.ZodObject<{\n type: z.ZodLiteral<\"text\">;\n text: z.ZodString;\n}, z.core.$strip>;\ndeclare const timelineFileSchema: z.ZodObject<{\n type: z.ZodLiteral<\"file\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n}, z.core.$strip>;\ndeclare const timelinePartEventSchema: z.ZodObject<{\n type: z.ZodLiteral<\"event\">;\n eventType: z.ZodEnum<{\n [x: string]: any;\n }>;\n actorUserId: z.ZodNullable<z.ZodString>;\n actorAiAgentId: z.ZodNullable<z.ZodString>;\n targetUserId: z.ZodNullable<z.ZodString>;\n targetAiAgentId: z.ZodNullable<z.ZodString>;\n message: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n}, z.core.$strip>;\ndeclare const timelineItemPartsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{\n type: z.ZodLiteral<\"text\">;\n text: z.ZodString;\n}, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"event\">;\n eventType: z.ZodEnum<{\n [x: string]: any;\n }>;\n actorUserId: z.ZodNullable<z.ZodString>;\n actorAiAgentId: z.ZodNullable<z.ZodString>;\n targetUserId: z.ZodNullable<z.ZodString>;\n targetAiAgentId: z.ZodNullable<z.ZodString>;\n message: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n}, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"image\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n width: z.ZodOptional<z.ZodNumber>;\n height: z.ZodOptional<z.ZodNumber>;\n}, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"file\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n}, z.core.$strip>]>>;\ndeclare const timelineItemSchema: z.ZodObject<{\n id: z.ZodOptional<z.ZodString>;\n conversationId: z.ZodString;\n organizationId: z.ZodString;\n visibility: z.ZodEnum<{\n [x: string]: any;\n }>;\n type: z.ZodEnum<{\n [x: string]: any;\n }>;\n text: z.ZodNullable<z.ZodString>;\n tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{\n type: z.ZodLiteral<\"text\">;\n text: z.ZodString;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"event\">;\n eventType: z.ZodEnum<{\n [x: string]: any;\n }>;\n actorUserId: z.ZodNullable<z.ZodString>;\n actorAiAgentId: z.ZodNullable<z.ZodString>;\n targetUserId: z.ZodNullable<z.ZodString>;\n targetAiAgentId: z.ZodNullable<z.ZodString>;\n message: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"image\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n width: z.ZodOptional<z.ZodNumber>;\n height: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"file\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>]>>;\n userId: z.ZodNullable<z.ZodString>;\n aiAgentId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodNullable<z.ZodString>;\n createdAt: z.ZodString;\n deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n}, z.core.$strip>;\ntype timelineItemSchema = z.infer<typeof timelineItemSchema>;\ntype TimelineItem = z.infer<typeof timelineItemSchema>;\ntype TimelineItemParts = z.infer<typeof timelineItemPartsSchema>;\ntype TimelinePartText = z.infer<typeof timelinePartTextSchema>;\ntype TimelinePartImage = z.infer<typeof timelinePartImageSchema>;\ntype TimelinePartFile = z.infer<typeof timelineFileSchema>;\ntype TimelinePartEvent = z.infer<typeof timelinePartEventSchema>;\ndeclare const getConversationTimelineItemsRequestSchema: z.ZodObject<{\n limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;\n cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n}, z.core.$strip>;\ntype GetConversationTimelineItemsRequest = z.infer<typeof getConversationTimelineItemsRequestSchema>;\ndeclare const getConversationTimelineItemsResponseSchema: z.ZodObject<{\n items: z.ZodArray<z.ZodObject<{\n id: z.ZodOptional<z.ZodString>;\n conversationId: z.ZodString;\n organizationId: z.ZodString;\n visibility: z.ZodEnum<{\n [x: string]: any;\n }>;\n type: z.ZodEnum<{\n [x: string]: any;\n }>;\n text: z.ZodNullable<z.ZodString>;\n tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{\n type: z.ZodLiteral<\"text\">;\n text: z.ZodString;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"event\">;\n eventType: z.ZodEnum<{\n [x: string]: any;\n }>;\n actorUserId: z.ZodNullable<z.ZodString>;\n actorAiAgentId: z.ZodNullable<z.ZodString>;\n targetUserId: z.ZodNullable<z.ZodString>;\n targetAiAgentId: z.ZodNullable<z.ZodString>;\n message: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"image\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n width: z.ZodOptional<z.ZodNumber>;\n height: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"file\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>]>>;\n userId: z.ZodNullable<z.ZodString>;\n aiAgentId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodNullable<z.ZodString>;\n createdAt: z.ZodString;\n deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>>;\n nextCursor: z.ZodNullable<z.ZodString>;\n hasNextPage: z.ZodBoolean;\n}, z.core.$strip>;\ntype GetConversationTimelineItemsResponse = z.infer<typeof getConversationTimelineItemsResponseSchema>;\ndeclare const sendTimelineItemRequestSchema: z.ZodObject<{\n conversationId: z.ZodString;\n item: z.ZodObject<{\n id: z.ZodOptional<z.ZodString>;\n type: z.ZodDefault<z.ZodEnum<{\n [x: string]: any;\n }>>;\n text: z.ZodString;\n parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{\n type: z.ZodLiteral<\"text\">;\n text: z.ZodString;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"event\">;\n eventType: z.ZodEnum<{\n [x: string]: any;\n }>;\n actorUserId: z.ZodNullable<z.ZodString>;\n actorAiAgentId: z.ZodNullable<z.ZodString>;\n targetUserId: z.ZodNullable<z.ZodString>;\n targetAiAgentId: z.ZodNullable<z.ZodString>;\n message: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"image\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n width: z.ZodOptional<z.ZodNumber>;\n height: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"file\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>]>>>;\n visibility: z.ZodDefault<z.ZodEnum<{\n [x: string]: any;\n }>>;\n tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n aiAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n createdAt: z.ZodOptional<z.ZodString>;\n }, z.core.$strip>;\n}, z.core.$strip>;\ntype SendTimelineItemRequest = z.infer<typeof sendTimelineItemRequestSchema>;\ndeclare const sendTimelineItemResponseSchema: z.ZodObject<{\n item: z.ZodObject<{\n id: z.ZodOptional<z.ZodString>;\n conversationId: z.ZodString;\n organizationId: z.ZodString;\n visibility: z.ZodEnum<{\n [x: string]: any;\n }>;\n type: z.ZodEnum<{\n [x: string]: any;\n }>;\n text: z.ZodNullable<z.ZodString>;\n tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{\n type: z.ZodLiteral<\"text\">;\n text: z.ZodString;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"event\">;\n eventType: z.ZodEnum<{\n [x: string]: any;\n }>;\n actorUserId: z.ZodNullable<z.ZodString>;\n actorAiAgentId: z.ZodNullable<z.ZodString>;\n targetUserId: z.ZodNullable<z.ZodString>;\n targetAiAgentId: z.ZodNullable<z.ZodString>;\n message: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"image\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n width: z.ZodOptional<z.ZodNumber>;\n height: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>, z.ZodObject<{\n type: z.ZodLiteral<\"file\">;\n url: z.ZodString;\n mediaType: z.ZodString;\n fileName: z.ZodOptional<z.ZodString>;\n size: z.ZodOptional<z.ZodNumber>;\n }, z.core.$strip>]>>;\n userId: z.ZodNullable<z.ZodString>;\n aiAgentId: z.ZodNullable<z.ZodString>;\n visitorId: z.ZodNullable<z.ZodString>;\n createdAt: z.ZodString;\n deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;\n }, z.core.$strip>;\n}, z.core.$strip>;\ntype SendTimelineItemResponse = z.infer<typeof sendTimelineItemResponseSchema>;\n//#endregion\nexport { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, SendTimelineItemRequest, SendTimelineItemResponse, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartText, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, timelineItemPartsSchema, timelineItemSchema };\n//# sourceMappingURL=timeline-item.d.ts.map"],"mappings":";;;;cA8DciB,kBA0Ced,EA1CKH,CAAAA,CAAEQ,SA0CPL,CAAAA;EAAhBH,EAAEa,EAzCTb,CAAAA,CAAEI,WAyCOS,CAzCKb,CAAAA,CAAEG,SAyCPU,CAAAA;EACFb,cAAEG,EAzCGH,CAAAA,CAAEG,SAyCLA;EAC0BH,cAAEG,EAzCzBH,CAAAA,CAAEG,SAyCuBA;EAAhBH,UAAEa,EAxCfb,CAAAA,CAAEY,OAwCaC,CAAAA;IAAdT,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;EACZJ,CAAEM,CAAAA;EA7C6BN,IAAEQ,EAO5BR,CAAAA,CAAEY,OAP0BJ,CAAAA;IAAS,CAAA,CAAA,EAAA,MAAA,CAAA,EAAA,GAAA;EAAA,CAAA,CA8CxCS;EAA4B,IAC5BE,EArCGnB,CAAAA,CAAEa,WAqCO,CArCKb,CAAAA,CAAEG,SAqCWc,CAAAA;EAKH,IAClBQ,EA1CNzB,CAAAA,CAAEI,WA0CIqB,CA1CQzB,CAAAA,CAAEa,WA0CVY,CA1CsBzB,CAAAA,CAAEG,SA0CxBsB,CAGG,CAAA;EAFKzB,KAAE0B,EA1Cf1B,CAAAA,CAAEgB,QA0CaU,CA1CJ1B,CAAAA,CAAEe,QA0CEW,CAAAA,SAAAA,CA1CiB1B,CAAAA,CAAEQ,SA0CnBkB,CAAAA;IAAbC,IAAAA,EAzCD3B,CAAAA,CAAEE,UAyCDyB,CAAAA,MAAAA,CAAAA;IAC6BxB,IAAAA,EAzC9BH,CAAAA,CAAEG,SAyC4BA;EAAhBH,CAAEa,EAxCrBb,CAAAA,CAAEM,IAAAA,CAAKC,MAwCcM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aAAaW"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region ../react/src/primitives/timeline-item.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Metadata describing the origin of a timeline item and pre-parsed content that can
|
|
8
|
+
* be consumed by render-prop children.
|
|
9
|
+
*/
|
|
10
|
+
type TimelineItemRenderProps = {
|
|
11
|
+
isVisitor: boolean;
|
|
12
|
+
isAI: boolean;
|
|
13
|
+
isHuman: boolean;
|
|
14
|
+
timestamp: Date;
|
|
15
|
+
text: string | null;
|
|
16
|
+
senderType: "visitor" | "ai" | "human";
|
|
17
|
+
itemType: "message" | "event" | "identification";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Generic timeline item wrapper that adds accessibility attributes and resolves the
|
|
21
|
+
* sender type into convenient render props for custom layouts. Works with
|
|
22
|
+
* both MESSAGE and EVENT timeline item types.
|
|
23
|
+
*/
|
|
24
|
+
declare const TimelineItem$1: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
25
|
+
children?: React$1.ReactNode | ((props: TimelineItemRenderProps) => React$1.ReactNode);
|
|
26
|
+
asChild?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
item: TimelineItem;
|
|
29
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
/**
|
|
31
|
+
* Renders the content of a timeline item, optionally piping Markdown content through a
|
|
32
|
+
* memoised renderer or handing the raw text to a render prop for custom
|
|
33
|
+
* formatting.
|
|
34
|
+
*/
|
|
35
|
+
declare const TimelineItemContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
36
|
+
children?: React$1.ReactNode | ((content: string) => React$1.ReactNode);
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
className?: string;
|
|
39
|
+
text?: string | null;
|
|
40
|
+
renderMarkdown?: boolean;
|
|
41
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Timestamp helper that renders a formatted date or allows callers to supply a
|
|
44
|
+
* render prop for custom time displays while preserving semantic markup.
|
|
45
|
+
*/
|
|
46
|
+
declare const TimelineItemTimestamp: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
47
|
+
children?: React$1.ReactNode | ((timestamp: Date) => React$1.ReactNode);
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
className?: string;
|
|
50
|
+
timestamp: Date;
|
|
51
|
+
format?: (date: Date) => string;
|
|
52
|
+
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { TimelineItem$1 as TimelineItem, TimelineItemContent, TimelineItemTimestamp };
|
|
55
|
+
//# sourceMappingURL=timeline-item2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-item2.d.ts","names":[],"sources":["../../react/src/primitives/timeline-item.tsx"],"sourcesContent":[],"mappings":";;;;;;;AASA;AA2BA;AAAyB,KA3Bb,uBAAA,GA2Ba;EAAA,SAAA,EAAA,OAAA;EAAA,IAAA,EAAA,OAAA;EAZrB,OAAM,EAAA,OAAA;EACG,SAAA,EAZD,IAYC;EAA4B,IAAA,EAAM,MAAA,GAAA,IAAA;EAGxC,UAAA,EAAA,SAAA,GAAA,IAAA,GAAA,OAAA;;;;;;;;AAiJyB,cAzInB,cAyImB,EAzIP,OAAA,CAAA,yBAyIO,CAzIP,IAyIO,CAzIP,OAAA,CAAA,cAyIO,CAzIP,cAyIO,CAAA,EAAA,UAAA,CAAA,GAAA;EAkEnB,QAAA,CAAA,EAvNT,OAAA,CAAM,SAmQN,GAAA,CAAA,CAAA,KAAA,EAlQS,uBAkQT,EAAA,GAlQqC,OAAA,CAAM,SAkQ3C,CAAA;EA5C8B,OAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,MAAA;EAAA,IAAA,EAnN3B,YAmN2B;CAXtB,wBAAM,eAAA,CAAA,CAAA;;;;;;cAvDL,qBAAmB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAZpB,OAAA,CAAM,kCAAkC,OAAA,CAAM;;;;;;;;;;cA8E7C,uBAAqB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAXtB,OAAA,CAAM,yBAAyB,SAAS,OAAA,CAAM;;;aAG9C;kBACK"}
|
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"}
|