@cossistant/next 0.0.33 → 0.1.1

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.
Files changed (67) hide show
  1. package/README.md +4 -4
  2. package/_virtual/rolldown_runtime.js +42 -0
  3. package/hooks/index.d.ts +4 -3
  4. package/hooks/index.js +4 -2
  5. package/identify-visitor.d.ts +1 -1
  6. package/identify-visitor.js +4 -2
  7. package/index.d.ts +15 -25
  8. package/index.js +23 -10
  9. package/index.js.map +1 -0
  10. package/package.json +3 -14
  11. package/primitives/index.d.ts +8 -1
  12. package/primitives/index.d.ts.map +1 -0
  13. package/primitives/index.js +11 -2
  14. package/primitives/index.js.map +1 -0
  15. package/provider.d.ts +2 -1
  16. package/provider.js +4 -2
  17. package/react/src/hooks/index.d.ts +2 -2
  18. package/react/src/hooks/private/use-grouped-messages.d.ts +14 -1
  19. package/react/src/hooks/private/use-grouped-messages.d.ts.map +1 -1
  20. package/react/src/hooks/private/use-rest-client.d.ts.map +1 -1
  21. package/react/src/hooks/use-conversation-auto-seen.d.ts.map +1 -1
  22. package/react/src/hooks/use-conversation-page.d.ts.map +1 -1
  23. package/react/src/hooks/use-conversation-seen.d.ts.map +1 -1
  24. package/react/src/hooks/use-conversation-typing.d.ts.map +1 -1
  25. package/react/src/hooks/use-file-upload.d.ts +54 -1
  26. package/react/src/hooks/use-file-upload.d.ts.map +1 -0
  27. package/react/src/provider.d.ts.map +1 -1
  28. package/react/src/realtime/provider.d.ts +4 -18
  29. package/react/src/realtime/provider.d.ts.map +1 -1
  30. package/react/src/realtime/seen-store.d.ts.map +1 -1
  31. package/react/src/realtime/support-provider.d.ts +8 -6
  32. package/react/src/realtime/support-provider.d.ts.map +1 -1
  33. package/react/src/realtime/typing-store.d.ts.map +1 -1
  34. package/react/src/support/components/button.d.ts +25 -1
  35. package/react/src/support/components/button.d.ts.map +1 -0
  36. package/react/src/support/components/header.d.ts +11 -0
  37. package/react/src/support/components/header.d.ts.map +1 -0
  38. package/react/src/support/context/events.d.ts +54 -1
  39. package/react/src/support/context/events.d.ts.map +1 -1
  40. package/react/src/support/context/handle.d.ts +17 -1
  41. package/react/src/support/context/handle.d.ts.map +1 -1
  42. package/react/src/support/context/websocket.d.ts +17 -7
  43. package/react/src/support/context/websocket.d.ts.map +1 -1
  44. package/react/src/support/index.d.ts +25 -5
  45. package/react/src/support/index.d.ts.map +1 -1
  46. package/react/src/support/store/support-store.d.ts +5 -5
  47. package/react/src/support/store/support-store.d.ts.map +1 -1
  48. package/react/src/support/text/index.d.ts +34 -2
  49. package/react/src/support/text/index.d.ts.map +1 -0
  50. package/react/src/support/text/locales/keys.d.ts +11 -1
  51. package/react/src/support/text/locales/keys.d.ts.map +1 -1
  52. package/react/src/support-config.d.ts +30 -3
  53. package/react/src/support-config.d.ts.map +1 -1
  54. package/react/src/utils/index.d.ts +1 -1
  55. package/react/src/utils/merge-refs.d.ts +30 -1
  56. package/react/src/utils/merge-refs.d.ts.map +1 -0
  57. package/react/src/utils/use-render-element.d.ts.map +1 -1
  58. package/realtime/index.d.ts +1 -1
  59. package/realtime/index.js +4 -2
  60. package/styles.css +1 -0
  61. package/support/index.d.ts +9 -3
  62. package/support/index.js +5 -2
  63. package/support-config.d.ts +2 -2
  64. package/support-config.js +4 -2
  65. package/support.css +1 -2
  66. package/utils/index.d.ts +2 -1
  67. package/utils/index.js +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"provider.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,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CAAA,EAAA,CAAA,KAAA,EANW,KAMX,EAAA,GAAA,IAAA;CACO;KAJV,oBAAA,GAMiB;EACV,WAAA,EAAA,OAAA;EAAgB,YAAA,EAAA,OAAA;EAgCZ,KAAA,EApCR,KAoCQ,GAAA,IAAgB;EAC/B,IAAA,EAAA,CAAA,KAAA,EApCc,gBAoCd,EAAA,GAAA,IAAA;EACA,OAAA,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EACA,SAAA,EAAA,CAAA,OAAA,EApCqB,gBAoCrB,EAAA,GAAA,GAAA,GAAA,IAAA;EACA,SAAA,EApCW,gBAoCX,GAAA,IAAA;EACA,YAAA,EAAA,MAAA,GAAA,IAAA;EACA,SAAA,EAAA,GAAA,GAAA,IAAA;EACA,SAAA,EAAA,MAAA,GAAA,IAAA;EACE,SAAA,EAAA,MAAA,GAAA,IAAA;EAAwB,MAAM,EAAA,MAAA,GAAA,IAAA;CAAY;AAiG7C;;;;iBAzGgB,gBAAA;;;;;;;;GAQb,wBAAwB,KAAA,CAAM;;;;iBAiGjB,qBAAA,CAAA,GAAyB"}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"seen-store.d.ts","names":[],"sources":["../../../../../react/src/realtime/seen-store.ts"],"sourcesContent":[],"mappings":";;;;;;;iBA8DgB,uBAAA,kCAEN;;;;iBAQM,sBAAA;;aAEJ;;cAEC;;;;;;iBAYG,0BAAA,QACR"}
@@ -1,16 +1,18 @@
1
1
  import React from "react";
2
2
 
3
3
  //#region ../react/src/realtime/support-provider.d.ts
4
- type SupportRealtimeProviderProps = {
5
- children: React.ReactNode;
6
- };
4
+
7
5
  /**
8
- * Bridges websocket events into the core client stores so support hooks stay
9
- * in sync without forcing refetches.
6
+ * Previously bridged websocket events into the core client stores.
7
+ * Event routing is now handled by CossistantClient.handleRealtimeEvent()
8
+ * in @cossistant/core, so this component is a no-op passthrough retained
9
+ * for tree compatibility.
10
10
  */
11
11
  declare function SupportRealtimeProvider({
12
12
  children
13
- }: SupportRealtimeProviderProps): React.ReactElement;
13
+ }: {
14
+ children: React.ReactNode;
15
+ }): React.ReactElement;
14
16
  //#endregion
15
17
  export { SupportRealtimeProvider };
16
18
  //# sourceMappingURL=support-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"support-provider.d.ts","names":[],"sources":["../../../../../react/src/realtime/support-provider.tsx"],"sourcesContent":[],"mappings":";;;KAkBK,4BAAA;YACM,KAAA,CAAM;AAjBc,CAAA;AAwB/B;;;;AAEoD,iBAFpC,uBAAA,CAEoC;EAAA;AAAA,CAAA,EAAjD,4BAAiD,CAAA,EAAlB,KAAA,CAAM,YAAY"}
1
+ {"version":3,"file":"support-provider.d.ts","names":[],"sources":["../../../../../react/src/realtime/support-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;AAQA;;;;AAIsB,iBAJN,uBAAA,CAIM;EAAA;CAAA,EAAA;YADX,KAAA,CAAM;IACb,KAAA,CAAM"}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"typing-store.d.ts","names":[],"sources":["../../../../../react/src/realtime/typing-store.ts"],"sourcesContent":[],"mappings":";;;;;;;;iBAgEgB,cAAA;;aAEJ;;;;;;;;;iBAYI,gBAAA;;aAEJ;;;;;;;iBAUI,4BAAA,QACR;;;;;;;;;;iBAeQ,2BAAA,QACR"}
@@ -1 +1,25 @@
1
- import "react";
1
+ import * as React$1 from "react";
2
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
3
+ import { VariantProps } from "class-variance-authority";
4
+
5
+ //#region ../react/src/support/components/button.d.ts
6
+ declare const coButtonVariants: (props?: ({
7
+ variant?: "default" | "secondary" | "ghost" | "outline" | "tab" | "tab-selected" | null | undefined;
8
+ size?: "default" | "large" | "small" | "icon" | null | undefined;
9
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
10
+ type CossistantButtonProps = React$1.ComponentProps<"button"> & {
11
+ asChild?: boolean;
12
+ } & VariantProps<typeof coButtonVariants>;
13
+ /**
14
+ * Styled button primitive that forwards variant and size props to the shared
15
+ * design tokens.
16
+ */
17
+ declare function CoButton({
18
+ className,
19
+ variant,
20
+ size,
21
+ ...props
22
+ }: CossistantButtonProps): React$1.ReactElement;
23
+ //#endregion
24
+ export { CoButton };
25
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","names":[],"sources":["../../../../../../react/src/support/components/button.tsx"],"sourcesContent":[],"mappings":";;;;;cAKa,wBA6BZ;;;AA7BD,CAAA,GA6BC,+BAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAEW,KAAA,qBAAA,GAAwB,OAAA,CAAM,cAAT,CAAA,QAAA,CAAA,GAAA;EAAG,OAAM,CAAA,EAAA,OAAA;CAElB,GAApB,YAAoB,CAAA,OAAA,gBAAA,CAAA;;;AAMxB;;AAEC,iBAFe,QAAA,CAEf;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAGE,qBAHF,CAAA,EAG0B,OAAA,CAAM,YAHhC"}
@@ -0,0 +1,11 @@
1
+ //#region ../react/src/support/components/header.d.ts
2
+ type HeaderProps = {
3
+ className?: string;
4
+ children?: React.ReactNode;
5
+ actions?: React.ReactNode;
6
+ onGoBack?: () => void;
7
+ };
8
+ declare const Header: React.FC<HeaderProps>;
9
+ //#endregion
10
+ export { Header };
11
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","names":[],"sources":["../../../../../../react/src/support/components/header.tsx"],"sourcesContent":[],"mappings":";KAKY,WAAA;EAAA,SAAA,CAAA,EAAA,MAAW;EAOV,QAAA,CA+BZ,EApCW,KAAA,CAAM,SAKY;YAJnB,KAAA,CAAM;;;cAIJ,QAAQ,KAAA,CAAM,GAAG"}
@@ -2,6 +2,7 @@ import { Conversation } from "@cossistant/types";
2
2
  import "react";
3
3
 
4
4
  //#region ../react/src/support/context/events.d.ts
5
+ type SupportEventType = "conversationStart" | "conversationEnd" | "messageSent" | "messageReceived" | "error";
5
6
  type ConversationStartEvent = {
6
7
  type: "conversationStart";
7
8
  conversationId: string;
@@ -27,6 +28,58 @@ type ErrorEvent = {
27
28
  error: Error;
28
29
  context?: string;
29
30
  };
31
+ type SupportEvent = ConversationStartEvent | ConversationEndEvent | MessageSentEvent | MessageReceivedEvent | ErrorEvent;
32
+ type SupportEventCallbacks = {
33
+ /**
34
+ * Called when a new conversation is started.
35
+ */
36
+ onConversationStart?: (event: ConversationStartEvent) => void;
37
+ /**
38
+ * Called when a conversation ends (resolved, closed, etc.).
39
+ */
40
+ onConversationEnd?: (event: ConversationEndEvent) => void;
41
+ /**
42
+ * Called when the visitor sends a message.
43
+ */
44
+ onMessageSent?: (event: MessageSentEvent) => void;
45
+ /**
46
+ * Called when a message is received from an agent (human or AI).
47
+ */
48
+ onMessageReceived?: (event: MessageReceivedEvent) => void;
49
+ /**
50
+ * Called when an error occurs.
51
+ */
52
+ onError?: (event: ErrorEvent) => void;
53
+ };
54
+ type SupportEventsContextValue = {
55
+ /**
56
+ * Emit an event to all registered callbacks.
57
+ */
58
+ emit: <T extends SupportEvent>(event: T) => void;
59
+ /**
60
+ * Subscribe to a specific event type.
61
+ * Returns an unsubscribe function.
62
+ */
63
+ subscribe: <T extends SupportEventType>(type: T, callback: (event: Extract<SupportEvent, {
64
+ type: T;
65
+ }>) => void) => () => void;
66
+ };
67
+ /**
68
+ * Access the events context.
69
+ * Returns null if not inside a SupportEventsProvider.
70
+ */
71
+ declare function useSupportEvents(): SupportEventsContextValue | null;
72
+ /**
73
+ * Hook to emit events from within the widget.
74
+ * Safe to use outside of provider (will no-op).
75
+ */
76
+ declare function useSupportEventEmitter(): {
77
+ emitConversationStart: (conversationId: string, conversation?: Conversation) => void;
78
+ emitConversationEnd: (conversationId: string, conversation?: Conversation) => void;
79
+ emitMessageSent: (conversationId: string, message: TimelineItem) => void;
80
+ emitMessageReceived: (conversationId: string, message: TimelineItem) => void;
81
+ emitError: (error: Error, context?: string) => void;
82
+ };
30
83
  //#endregion
31
- export { ConversationEndEvent, ConversationStartEvent, ErrorEvent, MessageReceivedEvent, MessageSentEvent };
84
+ export { ConversationEndEvent, ConversationStartEvent, ErrorEvent, MessageReceivedEvent, MessageSentEvent, SupportEvent, SupportEventCallbacks, SupportEventType, useSupportEventEmitter, useSupportEvents };
32
85
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","names":[],"sources":["../../../../../../react/src/support/context/events.tsx"],"sourcesContent":[],"mappings":";;;;AAiBY,KAAA,sBAAA,GAAsB;EAMtB,IAAA,EAAA,mBAAoB;EAMpB,cAAA,EAAA,MAAgB;EAMhB,YAAA,CAAA,EAfI,YAegB;AAMhC,CAAA;KAlBY,oBAAA;;;iBAGI;;KAGJ,gBAAA;;;WAGF;;KAGE,oBAAA;;;WAGF;;KAGE,UAAA;;SAEJ"}
1
+ {"version":3,"file":"events.d.ts","names":[],"sources":["../../../../../../react/src/support/context/events.tsx"],"sourcesContent":[],"mappings":";;;;KAUY,gBAAA;AAAA,KAOA,sBAAA,GAPgB;EAOhB,IAAA,EAAA,mBAAsB;EAMtB,cAAA,EAAA,MAAA;EAMA,YAAA,CAAA,EATI,YASY;AAM5B,CAAA;AAMY,KAlBA,oBAAA,GAoBJ;EAII,IAAA,EAAA,iBAAY;EACrB,cAAA,EAAA,MAAA;EACA,YAAA,CAAA,EAvBa,YAuBb;CACA;AACA,KAtBS,gBAAA,GAsBT;EACA,IAAA,EAAA,aAAA;EAAU,cAAA,EAAA,MAAA;EAMD,OAAA,EA1BF,YA0BE;CAImB;AAIF,KA/BjB,oBAAA,GA+BiB;EAIJ,IAAA,EAAA,iBAAA;EAII,cAAA,EAAA,MAAA;EAIV,OAAA,EAxCT,YAwCS;CAAU;AAOjB,KA5CA,UAAA,GA4CA;EAIM,IAAA,EAAA,OAAA;EAAqB,KAAA,EA9C/B,KA8C+B;EAKhB,OAAA,CAAA,EAAA,MAAA;CACf;AACoB,KAjDhB,YAAA,GACT,sBAgDyB,GA/CzB,oBA+CyB,GA9CzB,gBA8CyB,GA7CzB,oBA6CyB,GA5CzB,UA4CyB;AAAsB,KAtCtC,qBAAA,GAsCsC;EAA9B;;AAkIpB;EAQgB,mBAAA,CAAA,EAAA,CAAA,KAAsB,EA5KP,sBA4KO,EAAA,GAAA,IAAA;EAOnB;;;EAyBuC,iBAAA,CAAA,EAAA,CAAA,KAAA,EAxM7B,oBAwM6B,EAAA,GAAA,IAAA;EAOpC;;;0BA3MG;;;;8BAII;;;;oBAIV;;KAOP,yBAAA;;;;mBAIM,qBAAqB;;;;;wBAKhB,wBACf,qBACY,QAAQ;UAAsB;;;;;;;iBAkIlC,gBAAA,CAAA,GAAoB;;;;;iBAQpB,sBAAA,CAAA;iEAOG;+DAUA;qDAQmC;yDAOI;qBAOpC"}
@@ -58,6 +58,22 @@ type SupportHandle = {
58
58
  */
59
59
  goHome: () => void;
60
60
  };
61
+ /**
62
+ * Hook to access the imperative handle from within the widget.
63
+ * Returns null if not inside Support component.
64
+ *
65
+ * @example
66
+ * function MyComponent() {
67
+ * const support = useSupportHandle();
68
+ *
69
+ * return (
70
+ * <button onClick={() => support?.startConversation("Hello!")}>
71
+ * Get Help
72
+ * </button>
73
+ * );
74
+ * }
75
+ */
76
+ declare function useSupportHandle(): SupportHandle | null;
61
77
  //#endregion
62
- export { SupportHandle };
78
+ export { SupportHandle, useSupportHandle };
63
79
  //# sourceMappingURL=handle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handle.d.ts","names":[],"sources":["../../../../../../react/src/support/context/handle.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA6BA;;;;;;;;;;;;;;;;KAAY,aAAA;;;;;;;;;;;;;;;;6BAgBgB;UACpB;aACG,cAAc"}
1
+ {"version":3,"file":"handle.d.ts","names":[],"sources":["../../../../../../react/src/support/context/handle.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA6BA;;;;;;AAkIA;;;;;;;;;;KAlIY,aAAA;;;;;;;;;;;;;;;;6BAgBgB;UACpB;aACG,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgHT,gBAAA,CAAA,GAAoB"}
@@ -1,9 +1,19 @@
1
- import { RealtimeContextValue } from "../../realtime/provider.js";
2
- import "../../realtime/index.js";
3
- import React from "react";
4
-
5
1
  //#region ../react/src/support/context/websocket.d.ts
6
- type WebSocketContextValue = RealtimeContextValue;
2
+ type SubscribeHandler = (event: AnyRealtimeEvent) => void;
3
+ type WebSocketContextValue = {
4
+ isConnected: boolean;
5
+ isConnecting: boolean;
6
+ error: Error | null;
7
+ send: (event: AnyRealtimeEvent) => void;
8
+ sendRaw: (data: string) => void;
9
+ subscribe: (handler: SubscribeHandler) => () => void;
10
+ lastEvent: AnyRealtimeEvent | null;
11
+ connectionId: string | null;
12
+ reconnect: () => void;
13
+ visitorId: string | null;
14
+ websiteId: string | null;
15
+ userId: string | null;
16
+ };
7
17
  type WebSocketProviderProps = {
8
18
  children: React.ReactNode;
9
19
  publicKey?: string;
@@ -16,8 +26,8 @@ type WebSocketProviderProps = {
16
26
  onError?: (error: Error) => void;
17
27
  };
18
28
  /**
19
- * Support-specific realtime provider that authenticates visitors and keeps the
20
- * connection alive with presence pings.
29
+ * Support-specific realtime provider that authenticates visitors using the
30
+ * core client's RealtimeClient and keeps the connection alive with presence pings.
21
31
  */
22
32
  declare const WebSocketProvider: React.FC<WebSocketProviderProps>;
23
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"websocket.d.ts","names":[],"sources":["../../../../../../react/src/support/context/websocket.tsx"],"sourcesContent":[],"mappings":";;;;;KAYK,qBAAA,GAAwB;KAExB,sBAAA;YACM,KAAA,CAAM;EAHZ,SAAA,CAAA,EAAA,MAAA;EAEA,SAAA,CAAA,EAAA,MAAA;EAsJQ,SAAA,CAAA,EAAA,MAAA;EA+BA,KAAA,CAAA,EAAA,MAAA;;;;oBA5KM;;;;;;cA6IN,mBAAmB,KAAA,CAAM,GAAG;;;;;cA+B5B,oBAAmB"}
1
+ {"version":3,"file":"websocket.d.ts","names":[],"sources":["../../../../../../react/src/support/context/websocket.tsx"],"sourcesContent":[],"mappings":";AAI0E,KAYrE,gBAAA,GAAgB,CAAA,KAAA,EAAW,gBAAA,EAAA,GAAgB,IAAA;AAAA,KAE3C,qBAAA,GAAqB;EAGlB,WAAA,EAAA,OAAA;EACO,YAAA,EAAA,OAAA;EAEO,KAAA,EAHd,KAGc,GAAA,IAAA;EACV,IAAA,EAAA,CAAA,KAAA,EAHG,gBAGH,EAAA,GAAA,IAAA;EAAgB,OAAA,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAQvB,SAAA,EAAA,CAAA,OAAA,EATiB,gBASK,EAChB,GAAA,GAAM,GAAA,IAAA;EAiBJ,SAAA,EA1BD,gBAoMX,GAAA,IA1KwC;EAgL5B,YAAA,EAAA,MAMZ,GAAA,IAAA;;;;;;KAxMI,sBAAA;YACM,KAAA,CAAM;;;;;;;;oBAQE;;;;;;cASN,mBAAmB,KAAA,CAAM,GAAG;;;;;cAgL5B,oBAAmB"}
@@ -1,15 +1,17 @@
1
1
  import { SupportLocale, SupportTextContentOverrides } from "./text/locales/keys.js";
2
2
  import { CustomPage, PageProps } from "./router.js";
3
3
  import { SlotProps } from "./context/slots.js";
4
- import { ConversationEndEvent, ConversationStartEvent, ErrorEvent, MessageReceivedEvent, MessageSentEvent } from "./context/events.js";
5
- import { SupportHandle } from "./context/handle.js";
6
- import "./text/index.js";
4
+ import { ConversationEndEvent, ConversationStartEvent, ErrorEvent, MessageReceivedEvent, MessageSentEvent, SupportEvent, SupportEventCallbacks, SupportEventType, useSupportEventEmitter, useSupportEvents } from "./context/events.js";
5
+ import { SupportHandle, useSupportHandle } from "./context/handle.js";
6
+ import { Text, useSupportText } from "./text/index.js";
7
7
  import { Align, CollisionPadding, ContentProps, RootProps, Side, TriggerRenderProps } from "./types.js";
8
- import "./components/button.js";
8
+ import { CoButton } from "./components/button.js";
9
+ import { Header } from "./components/header.js";
9
10
  import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "./context/websocket.js";
10
11
  import { useSupportConfig, useSupportNavigation, useSupportStore } from "./store/support-store.js";
11
12
  import "./store/index.js";
12
13
  import * as _cossistant_core0 from "@cossistant/core";
14
+ import { DefaultRoutes, NavigationState, RouteRegistry as RouteRegistry$1, SupportPage as SupportPageType } from "@cossistant/core";
13
15
  import { DefaultMessage } from "@cossistant/types";
14
16
  import * as React$1 from "react";
15
17
 
@@ -125,6 +127,18 @@ type SupportProps<Locale extends string = SupportLocale> = {
125
127
  */
126
128
  children?: React$1.ReactNode;
127
129
  };
130
+ type SupportTriggerProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
131
+ /**
132
+ * Content to render inside the trigger.
133
+ * Can be static content or a function receiving render props.
134
+ */
135
+ children?: React$1.ReactNode | ((props: TriggerRenderProps) => React$1.ReactNode);
136
+ /**
137
+ * When true, renders children directly with all props passed through.
138
+ */
139
+ asChild?: boolean;
140
+ className?: string;
141
+ };
128
142
  type SupportContentProps = {
129
143
  className?: string;
130
144
  /**
@@ -165,6 +179,12 @@ type SupportRouterProps = {
165
179
  */
166
180
  children?: React$1.ReactNode;
167
181
  };
182
+ type SupportPageProps<K extends keyof _cossistant_core0.RouteRegistry = keyof _cossistant_core0.RouteRegistry> = {
183
+ name: K;
184
+ component: React$1.ComponentType<{
185
+ params?: _cossistant_core0.RouteRegistry[K];
186
+ }>;
187
+ };
168
188
  type SupportRootProps = {
169
189
  /**
170
190
  * Controlled open state.
@@ -235,5 +255,5 @@ declare const Support: (<Locale extends string = SupportLocale>(props: SupportPr
235
255
  Footer: React$1.FC<SlotProps>;
236
256
  };
237
257
  //#endregion
238
- export { Support, SupportProps };
258
+ export { type DefaultRoutes, type NavigationState, type RouteRegistry$1 as RouteRegistry, Support, SupportContentProps, SupportPageProps, type SupportPageType, SupportProps, SupportRootProps, SupportRouterProps, SupportTriggerProps };
239
259
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../react/src/support/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;KAuCY,qCAAqC;;;;;;;;AAAjD;EAAiD,IAAA,CAAA,EAUzC,IAVyC;EAUzC;;;;EA6EE,KAAA,CAAA,EAvED,KAuEC;EAK6B;;;;EAmBV,UAAA,CAAA,EAAA,MAAA;EAKJ;;;;;EAwSb,eAAA,CAAA,EAAA,OAAmB;EAMvB;;;;EAsBmB,gBAAA,CAAA,EArZP,gBAqZO;EA2Cf;AAkEZ;;EAgC6B,UAAA,CAAA,EAAA;IAIJ,OAAA,CAAA,EAAA,MAAA;IAII,OAAA,CAAA,EAAA,MAAA;EAIV,CAAA;EACR;;AA+GX;EA5VsB,KAAA,CAAA,EAAA,OAAA,GAAA,MAAA;EAED;;;;;;;;;;;;;;EAeyC,YAAM,CAAA,EAAA,CAAA,IAAA,EAAA,OAAA,EAAA,GAAA,IAAA;;;;;;;;;;;;;;oBApSjD;;;;WAKT;;;;YAKC,4BAA4B;;;;gBAKxB;;;;gCASgB;;;;8BAKF;;;;0BAKJ;;;;8BAKI;;;;oBAKV;;;;;;;aAQP,OAAA,CAAM;;KAsRN,mBAAA;;;;;;SAMJ;;;;;UAKC;;;;;;;;;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AAA,CAAM,qBAAqB,uBAAuB,OAAA,CAAM;;;;;;;KAsCxD,mBAAA;;;;;;SAMJ;;;;;UAKC;;;;;;;;;;;;;;;;qBAgBW;aACR,OAAA,CAAM;;KA2CN,kBAAA;;;;gBAIG;;;;aAIH,OAAA,CAAM;;KA8BN,iCAAgB,iBAAA,CAEO,sBAAa,iBAAA,CAAoC;QAE7E;aACK,OAAA,CAAM;aADV,iBAAA,CAE8B,aAAA,CAAc;;;KAsBxC,gBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA4BmB;;;;8BAIF;;;;0BAIJ;;;;8BAII;;;;oBAIV;YACR,OAAA,CAAM;;cA+GJ,mCA5VS,sBAEd,aAAa;QAAkB,OAAA,CAAM,IAAI;MAC5C,OAAA,CAAM;;;;;;;eAcC,OAAA,CAAM,qBAAqB,uBAAuB,OAAA,CAAM"}
@@ -1,4 +1,4 @@
1
- import * as _cossistant_core3 from "@cossistant/core";
1
+ import * as _cossistant_core5 from "@cossistant/core";
2
2
  import { SupportConfig, SupportStore, SupportStoreState } from "@cossistant/core";
3
3
 
4
4
  //#region ../react/src/support/store/support-store.d.ts
@@ -43,15 +43,15 @@ declare const useSupportConfig: () => UseSupportConfigResult;
43
43
  * const { navigate, goBack, page, params } = useSupportNavigation();
44
44
  */
45
45
  declare const useSupportNavigation: () => {
46
- current: _cossistant_core3.NavigationState<_cossistant_core3.RouteRegistry>;
46
+ current: _cossistant_core5.NavigationState<_cossistant_core5.RouteRegistry>;
47
47
  page: "HOME" | "ARTICLES" | "CONVERSATION" | "CONVERSATION_HISTORY";
48
48
  params: {
49
49
  conversationId: string;
50
50
  initialMessage?: string;
51
51
  } | undefined;
52
- previousPages: _cossistant_core3.NavigationState<_cossistant_core3.RouteRegistry>[];
53
- navigate: (state: _cossistant_core3.NavigationState<_cossistant_core3.RouteRegistry>) => void;
54
- replace: (state: _cossistant_core3.NavigationState<_cossistant_core3.RouteRegistry>) => void;
52
+ previousPages: _cossistant_core5.NavigationState<_cossistant_core5.RouteRegistry>[];
53
+ navigate: (state: _cossistant_core5.NavigationState<_cossistant_core5.RouteRegistry>) => void;
54
+ replace: (state: _cossistant_core5.NavigationState<_cossistant_core5.RouteRegistry>) => void;
55
55
  goBack: () => void;
56
56
  canGoBack: boolean;
57
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"support-store.d.ts","names":[],"sources":["../../../../../../react/src/support/store/support-store.ts"],"sourcesContent":[],"mappings":";;;;KA+CY,qBAAA,GAAwB,oBACnC,KACC;;;AAFF;;;;AACK,iBAkBW,eAAA,CAAA,CAlBX,EAkB8B,qBAlB9B;AAkBW,KAmBJ,sBAAA,GAnBuB;EAmBvB,MAAA,EAAA,OAAA;EA0BC,IAAA,EAxBN,aAuEN,CAAA,MAAA,CAAA;EAQY,IAAA,EAAA,GAAA,GAAA,IAAA;EAiBZ,KAAA,EAAA,GAAA,GAAA,IAAA;;;;;;;;;;;;;;;;;;;;;cAxEY,wBAAuB;;;;;;;cAuDvB;6CAiBZ,iBAAA,CAAA,aAAA"}
1
+ {"version":3,"file":"support-store.d.ts","names":[],"sources":["../../../../../../react/src/support/store/support-store.ts"],"sourcesContent":[],"mappings":";;;;KAgDY,qBAAA,GAAwB,oBACnC,KACC;;;AAFF;;;;AACK,iBAkBW,eAAA,CAAA,CAlBX,EAkB8B,qBAlB9B;AAkBW,KAmBJ,sBAAA,GAnBuB;EAmBvB,MAAA,EAAA,OAAA;EA0BC,IAAA,EAxBN,aAuEN,CAAA,MAAA,CAAA;EAQY,IAAA,EAAA,GAAA,GAAA,IAAA;EAiBZ,KAAA,EAAA,GAAA,GAAA,IAAA;;;;;;;;;;;;;;;;;;;;;cAxEY,wBAAuB;;;;;;;cAuDvB;6CAiBZ,iBAAA,CAAA,aAAA"}
@@ -1,2 +1,34 @@
1
- import { SupportLocale, SupportTextContentOverrides, SupportTextKey, SupportTextVariables } from "./locales/keys.js";
2
- import React from "react";
1
+ import { SupportLocale, SupportTextContentOverrides, SupportTextDefinitions, SupportTextKey, SupportTextResolvedFormatter, SupportTextVariables } from "./locales/keys.js";
2
+ import React from "react";
3
+
4
+ //#region ../react/src/support/text/index.d.ts
5
+
6
+ /**
7
+ * Returns the active text formatter for the support widget. Throws if used
8
+ * outside of `SupportTextProvider` to help catch integration mistakes.
9
+ */
10
+ declare function useSupportText(): SupportTextResolvedFormatter;
11
+ type OptionalVariablesProp<K extends SupportTextKey> = SupportTextDefinitions[K]["variables"] extends undefined ? {
12
+ variables?: undefined;
13
+ } : "optional" extends keyof SupportTextDefinitions[K] ? SupportTextDefinitions[K]["optional"] extends true ? {
14
+ variables?: SupportTextVariables<K>;
15
+ } : {
16
+ variables: SupportTextVariables<K>;
17
+ } : {
18
+ variables: SupportTextVariables<K>;
19
+ };
20
+ type TextProps<K extends SupportTextKey, As extends keyof React.JSX.IntrinsicElements = "span"> = OptionalVariablesProp<K> & {
21
+ textKey: K;
22
+ as?: As;
23
+ } & Omit<React.ComponentPropsWithoutRef<As>, "children">;
24
+ /**
25
+ * Convenience component that renders localized support copy via the
26
+ * `SupportTextProvider` context while still allowing callers to customize the
27
+ * rendered HTML element.
28
+ */
29
+ declare const Text: <K extends SupportTextKey, As extends keyof React.JSX.IntrinsicElements = "span">(props: TextProps<K, As> & {
30
+ ref?: React.Ref<Element>;
31
+ }) => React.ReactElement | null;
32
+ //#endregion
33
+ export { Text, useSupportText };
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../react/src/support/text/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAmIsC,iBAhBtB,cAAA,CAAA,CAgBsB,EAhBJ,4BAgBI;AAAA,KAPjC,qBASS,CAAA,UATuB,cASvB,CAAA,GARb,sBAQa,CARU,CAQV,CAAA,CAAA,WAAA,CAAA,SAAA,SAAA,GAAA;EACH,SAAA,CAAA,EAAA,SAAA;CACO,GAAA,UAAU,SAAA,MARC,sBAQD,CARwB,CAQxB,CAAA,GAPvB,sBAOuB,CAPA,CAOA,CAAA,CAAA,UAAA,CAAA,SAAA,IAAA,GAAA;EACF,SAAA,CAAA,EAPN,oBAOM,CAPe,CAOf,CAAA;CAAtB,GAAA;EACM,SAAA,EAPS,oBAOT,CAP8B,CAO9B,CAAA;CACJ,GAAA;EACkC,SAAA,EARtB,oBAQsB,CARD,CAQC,CAAA;CAA/B;KANJ,SAMD,CAAA,UALO,cAKP,EAAA,WAAA,MAJc,KAAA,CAAM,GAAA,CAAI,iBAIxB,GAAA,MAAA,CAAA,GAHA,qBAGA,CAHsB,CAGtB,CAAA,GAAA;EAAI,OAAA,EAFE,CAEF;EA2BK,EAAA,CAAA,EA5BP,EAiCwB;CAJnB,GA5BP,IA4BO,CA5BF,KAAA,CAAM,wBA4BJ,CA5B6B,EA4B7B,CAAA,EAAA,UAAA,CAAA;;;;;;AAG8B,cAJ5B,IAI4B,EAAA,CAAA,UAH9B,cAG8B,EAAA,WAAA,MAFvB,KAAA,CAAM,GAAA,CAAI,iBAEa,GAAA,MAAA,CAAA,CAAA,KAAA,EAAjC,SAAiC,CAAvB,CAAuB,EAApB,EAAoB,CAAA,GAAA;EACpC,GAAM,CAAA,EADwB,KAAA,CAAM,GAC9B,CADkC,OAClC,CAAA;CAAY,EAAA,GAAlB,KAAA,CAAM,YAAY,GAAA,IAAA"}
@@ -276,6 +276,16 @@ type SupportTextMessage<K$1 extends SupportTextKey, Vars = SupportTextVariables<
276
276
  utils: SupportTextUtils;
277
277
  }) => string);
278
278
  type SupportTextContentOverrides<Locale extends string = SupportLocale> = Partial<{ [K in SupportTextKey]: SupportTextMessage<K> | Partial<Record<SupportLocale | Locale, SupportTextMessage<K>>> }>;
279
+ type SupportTextFormatter = {
280
+ <K$1 extends SupportTextKey>(key: K$1, variables: SupportTextVariables<K$1>): string;
281
+ <K$1 extends SupportTextKey>(key: K$1): string;
282
+ };
283
+ type KeysWithVariables = { [K in SupportTextKey]: SupportTextVariables<K> extends undefined ? never : OptionalFlag<K> extends true ? never : K }[SupportTextKey];
284
+ type StrictSupportTextFormatter = {
285
+ <K$1 extends KeysWithVariables>(key: K$1, variables: SupportTextVariables<K$1>): string;
286
+ <K$1 extends Exclude<SupportTextKey, KeysWithVariables>>(key: K$1, variables?: SupportTextVariables<K$1>): string;
287
+ };
288
+ type SupportTextResolvedFormatter = StrictSupportTextFormatter & SupportTextFormatter;
279
289
  //#endregion
280
- export { SupportLocale, SupportTextContentOverrides, SupportTextKey, SupportTextVariables };
290
+ export { SupportLocale, SupportTextContentOverrides, SupportTextDefinitions, SupportTextKey, SupportTextResolvedFormatter, SupportTextVariables };
281
291
  //# sourceMappingURL=keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","names":[],"sources":["../../../../../../../react/src/support/text/locales/keys.ts"],"sourcesContent":[],"mappings":";;;KAMY,aAAA;KAEA,qBAAA;AAFA,KAIA,qBAAA,GAJa;EAEb,KAAA,EAGJ,qBAHyB;EAErB,KAAA,EAAA,MAAA;AAKZ,CAAA;AAOY,KAPA,gBAAA,GAOkB;EACpB,YAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAP+B,IAAA,CAAK,mBAOpC,EAAA,GAAA,MAAA;EACA,SAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,EAAA;IACI,GAAA,EAAA,MAAA;IACH,KAAA,EAAA,MAAA;EAAgB,CAAA,EAAA,GAAA,MAAA;EAad,SAAA,EAAA,CAAA,KAAA,EAAA,MA2IsD,EAAA,GAAA,MAAA;EAEvD,SAAA,EAAA,GAAA,GAjKM,qBAiK0B;AAC5C,CAAA;AAEY,KAjKA,kBAAA,GAiKoB;EAAW,OAAA,EAhKjC,qBAgKiC,GAAA,IAAA;EAC1C,OAAA,EAhKS,qBAgKT,CAAA,SAAA,CAAA,GAAA,IAAA;EAAuB,WAAA,EA/JV,mBA+JU,EAAA;EAAC,QAAA,EA9Jd,gBA8Jc,EAAA;AAAe,CAAA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,SAAA,EAAA,SAAA;EAItB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KApEA,sBAAA,UAAgC;KAChC,cAAA,SAAuB;KAEvB,iCAA+B,kBAC1C,uBAAuB;KAEnB,yBAAuB,kBAC3B,uBAAuB;;;KAEnB,6BACM,uBACH,qBAAqB,QACzB,qCAED,aAAa,oBACZ,mBACA;KAEQ,+BACD,uBACH,qBAAqB;aAIf,iBAAiB,KAAG;WACtB;SACF;;KAOE,oDAAoD,iBAC/D,gBACO,iBACH,mBAAmB,KACnB,QAAQ,OAAO,gBAAgB,QAAQ,mBAAmB;KAGnD,oBAAA;eACA,qBACL,gBACM,qBAAqB;eAGtB,qBAAqB;;KAG5B,iBAAA,WACE,iBAAiB,qBAAqB,+BAEzC,aAAa,0BAEZ,IACH;KAEU,0BAAA;eACA,wBACL,gBACM,qBAAqB;eAEtB,QAAQ,gBAAgB,yBAC7B,iBACO,qBAAqB;;KAIvB,4BAAA,GAA+B,6BAC1C"}
@@ -1,10 +1,36 @@
1
- import { DefaultMessage } from "@cossistant/types";
1
+ import { DefaultMessage, SenderType } from "@cossistant/types";
2
2
  import * as React$1 from "react";
3
3
 
4
4
  //#region ../react/src/support-config.d.ts
5
+ type DefaultMessageProps = {
6
+ content: string;
7
+ senderType: SenderType;
8
+ senderId?: string;
9
+ };
10
+ /**
11
+ * Declarative message entry for `SupportConfig`.
12
+ *
13
+ * @example
14
+ * <SupportConfig>
15
+ * <DefaultMessage senderType="team_member" content="How can we help?" />
16
+ * </SupportConfig>
17
+ */
18
+ declare function DefaultMessage$1(_props: DefaultMessageProps): React$1.ReactElement | null;
19
+ declare namespace DefaultMessage$1 {
20
+ var displayName: string;
21
+ }
22
+ declare function extractDefaultMessagesFromChildren(children: React$1.ReactNode): DefaultMessage[];
23
+ declare function resolveSupportConfigMessages({
24
+ children,
25
+ defaultMessages
26
+ }: {
27
+ children?: React$1.ReactNode;
28
+ defaultMessages?: DefaultMessage[];
29
+ }): DefaultMessage[] | undefined;
5
30
  type SupportConfigProps = {
6
31
  defaultMessages?: DefaultMessage[];
7
32
  quickOptions?: string[];
33
+ children?: React$1.ReactNode;
8
34
  };
9
35
  /**
10
36
  * Component exposed by Cossistant allowing you to change the support widget default messages and quick response whenever rendered.
@@ -12,10 +38,11 @@ type SupportConfigProps = {
12
38
  declare const SupportConfig: {
13
39
  ({
14
40
  defaultMessages,
15
- quickOptions
41
+ quickOptions,
42
+ children
16
43
  }: SupportConfigProps): React$1.ReactElement | null;
17
44
  displayName: string;
18
45
  };
19
46
  //#endregion
20
- export { SupportConfig, SupportConfigProps };
47
+ export { DefaultMessage$1 as DefaultMessage, DefaultMessageProps, SupportConfig, SupportConfigProps, extractDefaultMessagesFromChildren, resolveSupportConfigMessages };
21
48
  //# sourceMappingURL=support-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"support-config.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"}
1
+ {"version":3,"file":"support-config.d.ts","names":[],"sources":["../../../../react/src/support-config.tsx"],"sourcesContent":[],"mappings":";;;;KASY,mBAAA;;EAAA,UAAA,EAEC,UAFkB;EAcf,QAAA,CAAA,EAAA,MAAA;;AAchB;AA0CA;;;;;;;AAeY,iBAvEI,gBAAA,CAwEG,MAAA,EAvEV,mBAyES,CAAA,EAxEf,OAAA,CAAM,YAwEkB,GAAA,IAAA;AAMd,kBAhFG,gBAAA,CAyGf;;;iBA3Fe,kCAAA,WACL,OAAA,CAAM,YACd;AAoEA,iBA5Ba,4BAAA,CA4Bb;EAAA,QAAA;EAAA;CAAA,EAAA;EAAqB,QAAM,CAAA,EAxBlB,OAAA,CAAM,SAwBY;EAAY,eAAA,CAAA,EAvBvB,cAuBuB,EAAA;IAtBtC;KASQ,kBAAA;oBACO;;aAEP,OAAA,CAAM;;;;;cAML;;;;;KAIV,qBAAqB,OAAA,CAAM"}
@@ -1,4 +1,4 @@
1
1
  import { shouldDisplayConversation } from "./conversation.js";
2
2
  import { PENDING_CONVERSATION_ID, generateShortPrimaryId } from "./id.js";
3
- import "./merge-refs.js";
3
+ import { mergeRefs, useMergeRefs } from "./merge-refs.js";
4
4
  import { useRenderElement } from "./use-render-element.js";
@@ -1 +1,30 @@
1
- import "react";
1
+ import * as React$1 from "react";
2
+
3
+ //#region ../react/src/utils/merge-refs.d.ts
4
+ type PossibleRef<T> = React$1.Ref<T> | React$1.RefCallback<T> | undefined | null;
5
+ /**
6
+ * Merges multiple refs into a single callback ref.
7
+ * Useful for forwarding refs to a component while also using a local ref.
8
+ *
9
+ * @example
10
+ * const Component = forwardRef((props, forwardedRef) => {
11
+ * const localRef = useRef(null);
12
+ * const mergedRef = mergeRefs([forwardedRef, localRef]);
13
+ * return <div ref={mergedRef} />;
14
+ * });
15
+ */
16
+ declare function mergeRefs<T>(refs: PossibleRef<T>[]): React$1.RefCallback<T> | null;
17
+ /**
18
+ * Hook version of mergeRefs that memoizes the result.
19
+ *
20
+ * @example
21
+ * const Component = forwardRef((props, forwardedRef) => {
22
+ * const localRef = useRef(null);
23
+ * const mergedRef = useMergeRefs([forwardedRef, localRef]);
24
+ * return <div ref={mergedRef} />;
25
+ * });
26
+ */
27
+ declare function useMergeRefs<T>(refs: PossibleRef<T>[]): React$1.RefCallback<T> | null;
28
+ //#endregion
29
+ export { mergeRefs, useMergeRefs };
30
+ //# sourceMappingURL=merge-refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-refs.d.ts","names":[],"sources":["../../../../../react/src/utils/merge-refs.ts"],"sourcesContent":[],"mappings":";;;KAEK,iBAAiB,OAAA,CAAM,IAAI,KAAK,OAAA,CAAM,YAAY;;AAFxB;;;;;;AAe/B;;;;AAEG,iBAFa,SAEP,CAAA,CAAA,CAAA,CAAA,IAAA,EADF,WACE,CADU,CACV,CAAA,EAAA,CAAA,EAAN,OAAA,CAAM,WAAA,CAAY,CAAZ,CAAA,GAAA,IAAA;;AA2CT;;;;;;;;;iBAAgB,sBACT,YAAY,OAChB,OAAA,CAAM,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-render-element.d.ts","names":[],"sources":["../../../../../react/src/utils/use-render-element.tsx"],"sourcesContent":[],"mappings":";;;;AAI+B,KA8B1B,YAAA,GAAY,MAAS,GAAA,CAAI,iBAAA;AAAiB,KAE1C,SAAA,CAAA,KAAS,CAAA,GAAA,MAAA,GAA4B,CAAA,CAAA,KAAK,EAAL,KAAK,EAAA,GAAA,MAAA,CAAA;AAAA,KAE1C,QAAA,CAAA,KAAQ,EAAA,KAAA,CAAA,GAAA,CAAA,KAAA,EACL,KADK,EAAA,KAAA,EAEL,KAFK,EAAA,GAGR,OAAA,CAAM,YAHE;KAKR,WAJG,CAAA,KAAA,EAAA,YAI4B,YAJ5B,CAAA,GAAA;EACA,MAAA,CAAA,EAIE,OAAA,CAAM,YAJR,GAIuB,QAJvB,CAIgC,GAAA,CAAI,iBAJpC,CAIsD,GAJtD,CAAA,EAI4D,KAJ5D,CAAA;EACH,SAAM,CAAA,EAIE,SAJF,CAIY,KAJZ,CAAA;EAAY,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA;KAQlB,YAN+B,CAAA,KAAA,EAAA,YAMC,YAND,CAAA,GAAA;EAC1B,KAAM,CAAA,EAMP,KANO;EAAwB,GAAI,CAAA,EAOrC,OAAA,CAAM,GAP+B,CAAA,GAAA,CAAA;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AA,GAAA,CAAA;EAAkB,KAAA,CAAA,EAQrD,OARqD,CAQ7C,GAAA,CAAI,iBARyC,CAQvB,GARuB,CAAA,CAAA;EAAM,OAAA,CAAA,EAAA,OAAA;CAArC;;;;AAK1B,iBAqCW,gBArCC,CAAA,cAsCF,MAtCE,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,YAuCJ,YAvCI,CAAA,CAAA,GAAA,EAyCX,GAzCW,EAAA,cAAA,EA0CA,WA1CA,CA0CY,KA1CZ,EA0CmB,GA1CnB,CAAA,EAAA,MAAA,CAAA,EA2CP,YA3CO,CA2CM,KA3CN,EA2Ca,GA3Cb,CAAA,CAAA,EA4Cd,OAAA,CAAM,YA5CQ,GAAA,IAAA"}
@@ -4,4 +4,4 @@ import { SupportRealtimeProvider } from "../react/src/realtime/support-provider.
4
4
  import { applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, setTypingState } from "../react/src/realtime/typing-store.js";
5
5
  import { RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, useRealtime } from "../react/src/realtime/use-realtime.js";
6
6
  import "../react/src/realtime/index.js";
7
- export { type RealtimeAuthConfig, type RealtimeContextValue, type RealtimeEventHandler, type RealtimeEventHandlerEntry, type RealtimeEventHandlersMap, type RealtimeEventMeta, RealtimeProvider, type RealtimeProviderProps, SupportRealtimeProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useRealtime, useRealtimeConnection };
7
+ export { RealtimeAuthConfig, RealtimeContextValue, RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, RealtimeProvider, RealtimeProviderProps, SupportRealtimeProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useRealtime, useRealtimeConnection };
package/realtime/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
 
3
- import { RealtimeProvider, SupportRealtimeProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useRealtime, useRealtimeConnection } from "@cossistant/react/realtime";
3
+ import { __reExport } from "../_virtual/rolldown_runtime.js";
4
4
 
5
- export { RealtimeProvider, SupportRealtimeProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useRealtime, useRealtimeConnection };
5
+ export * from "@cossistant/react/realtime"
6
+
7
+ export { };
package/styles.css ADDED
@@ -0,0 +1 @@
1
+ @import "@cossistant/react/styles.css";
@@ -1,6 +1,12 @@
1
+ import { SupportLocale, SupportTextContentOverrides } from "../react/src/support/text/locales/keys.js";
1
2
  import { CustomPage } from "../react/src/support/router.js";
2
- import { Align, ContentProps, RootProps, Side } from "../react/src/support/types.js";
3
+ import { ConversationEndEvent, ConversationStartEvent, ErrorEvent, MessageReceivedEvent, MessageSentEvent, SupportEvent, SupportEventCallbacks, SupportEventType, useSupportEventEmitter, useSupportEvents } from "../react/src/support/context/events.js";
4
+ import { SupportHandle, useSupportHandle } from "../react/src/support/context/handle.js";
5
+ import { Text, useSupportText } from "../react/src/support/text/index.js";
6
+ import { Align, CollisionPadding, ContentProps, RootProps, Side, TriggerRenderProps } from "../react/src/support/types.js";
7
+ import { CoButton } from "../react/src/support/components/button.js";
8
+ import { Header } from "../react/src/support/components/header.js";
3
9
  import { WebSocketContextValue, WebSocketProvider, useWebSocket } from "../react/src/support/context/websocket.js";
4
10
  import { useSupportConfig, useSupportNavigation, useSupportStore } from "../react/src/support/store/support-store.js";
5
- import { Support, SupportProps } from "../react/src/support/index.js";
6
- export { type Align, type ContentProps, type CustomPage, type RootProps, type Side, Support, type SupportProps, type WebSocketContextValue, WebSocketProvider, useSupportConfig, useSupportNavigation, useSupportStore, useWebSocket };
11
+ import { DefaultRoutes, NavigationState, RouteRegistry, Support, SupportContentProps, SupportPageProps, SupportPageType, SupportProps, SupportRootProps, SupportRouterProps, SupportTriggerProps } from "../react/src/support/index.js";
12
+ export { Align, CoButton as Button, CollisionPadding, ContentProps, ConversationEndEvent, ConversationStartEvent, CustomPage, DefaultRoutes, ErrorEvent, Header, MessageReceivedEvent, MessageSentEvent, NavigationState, RootProps, RouteRegistry, Side, Support, SupportContentProps, SupportEvent, SupportEventCallbacks, SupportEventType, SupportHandle, SupportLocale, SupportPageProps, SupportPageType, SupportProps, SupportRootProps, SupportRouterProps, SupportTextContentOverrides, SupportTriggerProps, Text, TriggerRenderProps, WebSocketContextValue, WebSocketProvider, Support as default, useSupportConfig, useSupportEventEmitter, useSupportEvents, useSupportHandle, useSupportNavigation, useSupportStore, useSupportText, useWebSocket };
package/support/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  "use client";
2
2
 
3
- import { Support, WebSocketProvider, useSupportConfig, useSupportNavigation, useSupportStore, useWebSocket } from "@cossistant/react/support";
3
+ import { __export, __reExport } from "../_virtual/rolldown_runtime.js";
4
+ import support_default from "@cossistant/react/support";
4
5
 
5
- export { Support, WebSocketProvider, useSupportConfig, useSupportNavigation, useSupportStore, useWebSocket };
6
+ export * from "@cossistant/react/support"
7
+
8
+ export { support_default as default };
@@ -1,2 +1,2 @@
1
- import { SupportConfig, SupportConfigProps } from "./react/src/support-config.js";
2
- export { SupportConfig, type SupportConfigProps };
1
+ import { DefaultMessage, DefaultMessageProps, SupportConfig, SupportConfigProps, extractDefaultMessagesFromChildren, resolveSupportConfigMessages } from "./react/src/support-config.js";
2
+ export { DefaultMessage, DefaultMessageProps, SupportConfig, SupportConfigProps, extractDefaultMessagesFromChildren, resolveSupportConfigMessages };
package/support-config.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
 
3
- import { SupportConfig } from "@cossistant/react/support-config";
3
+ import { __reExport } from "./_virtual/rolldown_runtime.js";
4
4
 
5
- export { SupportConfig };
5
+ export * from "@cossistant/react/support-config"
6
+
7
+ export { };