@nexo-labs/chat-agent 0.0.1 → 1.6.18

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.
@@ -0,0 +1,73 @@
1
+ import React, { ReactNode } from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { BaseUser } from "@nexo-labs/payload-stripe-inventory";
4
+
5
+ //#region src/components/chat-context.d.ts
6
+
7
+ declare const ChatProvider: ({
8
+ children
9
+ }: {
10
+ children: ReactNode;
11
+ }) => react_jsx_runtime0.JSX.Element;
12
+ //#endregion
13
+ //#region src/types/components.d.ts
14
+ /**
15
+ * Props for a Link component that can be injected
16
+ * Compatible with next/link and regular <a> tags
17
+ */
18
+ interface LinkComponentProps {
19
+ href: string;
20
+ children: React.ReactNode;
21
+ onClick?: () => void;
22
+ className?: string;
23
+ target?: string;
24
+ 'aria-label'?: string;
25
+ }
26
+ /**
27
+ * Type for a Link component that can be injected from outside
28
+ * Default fallback is a regular <a> tag
29
+ */
30
+ type LinkComponent = React.ComponentType<LinkComponentProps>;
31
+ /**
32
+ * Props for an Image component that can be injected
33
+ * Compatible with next/image and regular <img> tags
34
+ */
35
+ interface ImageComponentProps {
36
+ src: string;
37
+ alt: string;
38
+ width?: number;
39
+ height?: number;
40
+ className?: string;
41
+ }
42
+ /**
43
+ * Type for an Image component that can be injected from outside
44
+ * Default fallback is a regular <img> tag
45
+ */
46
+ type ImageComponent = React.ComponentType<ImageComponentProps>;
47
+ //#endregion
48
+ //#region src/components/FloatingChatManager.d.ts
49
+ interface FloatingChatManagerProps {
50
+ aiIcon: string;
51
+ useUser: () => {
52
+ user: BaseUser | null;
53
+ };
54
+ generateHref: (props: {
55
+ type: string;
56
+ value: {
57
+ id: number;
58
+ slug?: string | null;
59
+ };
60
+ }) => string;
61
+ LinkComponent?: LinkComponent;
62
+ ImageComponent?: ImageComponent;
63
+ }
64
+ declare const FloatingChatManager: ({
65
+ aiIcon,
66
+ useUser,
67
+ generateHref,
68
+ LinkComponent,
69
+ ImageComponent
70
+ }: FloatingChatManagerProps) => react_jsx_runtime0.JSX.Element | null;
71
+ //#endregion
72
+ export { ChatProvider, FloatingChatManager };
73
+ //# sourceMappingURL=react.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.mts","names":[],"sources":["../src/components/chat-context.tsx","../src/types/components.tsx","../src/components/FloatingChatManager.tsx"],"sourcesContent":[],"mappings":";;;;;;AEgByB,cFuBZ,YEvBY,EAAA,CAAA;EAAA;CAAA,EAAA;EAAA,QAAA,EFuB8B,SEvB9B;CAAA,EAAA,GFuByC,kBAAA,CAAA,GAAA,CAAA,OEvBzC;;;;;;;AFuBZ,UCjCI,kBAAA,CDyJhB;EAxHwB,IAAA,EAAA,MAAA;EAA8B,QAAA,EC/B3C,KAAA,CAAM,SD+BqC;EAAW,OAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EAwHjE,SAAA,CAAA,EAAA,MAAA;;;;ACzJD;AAaA;AAMA;AAYA;KAlBY,aAAA,GAAgB,KAAA,CAAM,cAAc;;;ACbsB;;AAMpD,UDaD,mBAAA,CCbC;EACC,GAAA,EAAA,MAAA;EAAc,GAAA,EAAA,MAAA;EAG3B,KAAA,CAAA,EAAA,MAAA;EAAmB,MAAA,CAAA,EAAA,MAAA;EAAA,SAAA,CAAA,EAAA,MAAA;;;;;;AAME,KDef,cAAA,GAAiB,KAAA,CAAM,aCfR,CDesB,mBCftB,CAAA;;;UAdjB,wBAAA;;;IF+BG,IAAA,EE7BY,QFqJxB,GAAA,IAAA;EAxHwB,CAAA;EAA8B,YAAA,EAAA,CAAA,KAAA,EAAA;IAAW,IAAA,EAAA,MAAA;IAwHjE,KAAA,EAAA;;;;ECzJgB,CAAA,EAAA,GAAA,MAAA;EAaL,aAAA,CAAA,ECPM,aDO8B;EAM/B,cAAA,CAAA,ECZE,cDYiB;AAYpC;cCrBM;;;;;;GAMH,6BAAwB,kBAAA,CAAA,GAAA,CAAA,OAAA"}