@uraiagent/react 0.0.2 → 0.0.3
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/README.md +133 -100
- package/dist/components/User/UserMessage.d.ts +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/index.cjs.js +26 -188
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +50608 -84541
- package/dist/utils/index.d.ts +0 -30
- package/dist-embed/agent.js +30 -186
- package/package.json +2 -32
- package/dist/hooks/useToast.d.ts +0 -44
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uraiagent/react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Customizable, embeddable AI chat widget — use as a React library or a drop-in inline embed script.",
|
|
7
7
|
"publishConfig": {
|
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
"update-dashboard-agent": "pnpm build:embed && mv ./dist-embed/*.js ../dashboard/public/agent.js"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"framer-motion": "^11.2.4"
|
|
24
|
-
"postcss": "^8.4.33",
|
|
25
|
-
"react": "^18.x"
|
|
23
|
+
"framer-motion": "^11.2.4"
|
|
26
24
|
},
|
|
27
25
|
"devDependencies": {
|
|
28
26
|
"@eslint/js": "^10.0.1",
|
|
@@ -35,7 +33,6 @@
|
|
|
35
33
|
"eslint": "^10.4.0",
|
|
36
34
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
37
35
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
38
|
-
"postcss": "^8.5.14",
|
|
39
36
|
"prettier": "^3.8.3",
|
|
40
37
|
"react": "^19.2.6",
|
|
41
38
|
"react-dom": "^19.2.6",
|
|
@@ -66,45 +63,18 @@
|
|
|
66
63
|
},
|
|
67
64
|
"dependencies": {
|
|
68
65
|
"@heroicons/react": "^2.2.0",
|
|
69
|
-
"@hookform/resolvers": "^5.2.2",
|
|
70
|
-
"@radix-ui/react-avatar": "^1.1.11",
|
|
71
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
72
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
73
|
-
"@radix-ui/react-icons": "^1.3.2",
|
|
74
|
-
"@radix-ui/react-label": "^2.1.8",
|
|
75
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
76
|
-
"@radix-ui/react-progress": "^1.1.8",
|
|
77
|
-
"@radix-ui/react-radio-group": "^1.3.8",
|
|
78
|
-
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
79
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
80
|
-
"@radix-ui/react-separator": "^1.1.8",
|
|
81
|
-
"@radix-ui/react-slider": "^1.3.6",
|
|
82
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
83
|
-
"@radix-ui/react-switch": "^1.2.6",
|
|
84
|
-
"@radix-ui/react-tabs": "^1.1.13",
|
|
85
|
-
"@radix-ui/react-toast": "^1.2.15",
|
|
86
66
|
"@uidotdev/usehooks": "^2.4.1",
|
|
87
|
-
"class-variance-authority": "^0.7.1",
|
|
88
67
|
"clsx": "^2.1.1",
|
|
89
|
-
"cmdk": "^1.1.1",
|
|
90
68
|
"date-fns": "^4.1.0",
|
|
91
69
|
"framer-motion": "^12.38.0",
|
|
92
70
|
"html-react-parser": "^6.1.1",
|
|
93
71
|
"immer": "^11.1.8",
|
|
94
|
-
"input-otp": "^1.4.2",
|
|
95
72
|
"lucide-react": "^1.8.0",
|
|
96
73
|
"nanoid": "^5.1.16",
|
|
97
74
|
"pusher-js": "^8.5.0",
|
|
98
|
-
"react-day-picker": "^10.0.1",
|
|
99
|
-
"react-dropzone": "^15.0.0",
|
|
100
|
-
"react-hook-form": "^7.76.0",
|
|
101
|
-
"react-intersection-observer": "^10.0.3",
|
|
102
75
|
"react-markdown": "^10.1.0",
|
|
103
|
-
"react-phone-number-input": "^3.4.16",
|
|
104
76
|
"react-textarea-autosize": "^8.5.9",
|
|
105
77
|
"remark-gfm": "^4.0.1",
|
|
106
|
-
"sonner": "^2.0.7",
|
|
107
|
-
"vaul": "^1.1.2",
|
|
108
78
|
"zod": "^4.4.3"
|
|
109
79
|
}
|
|
110
80
|
}
|
package/dist/hooks/useToast.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ToastActionElement, ToastProps } from '../../builder/form/ui/toast';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
type ToasterToast = ToastProps & {
|
|
4
|
-
id: string;
|
|
5
|
-
title?: React.ReactNode;
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
action?: ToastActionElement;
|
|
8
|
-
};
|
|
9
|
-
declare const actionTypes: {
|
|
10
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
11
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
12
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
13
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
14
|
-
};
|
|
15
|
-
type ActionType = typeof actionTypes;
|
|
16
|
-
type Action = {
|
|
17
|
-
type: ActionType["ADD_TOAST"];
|
|
18
|
-
toast: ToasterToast;
|
|
19
|
-
} | {
|
|
20
|
-
type: ActionType["UPDATE_TOAST"];
|
|
21
|
-
toast: Partial<ToasterToast>;
|
|
22
|
-
} | {
|
|
23
|
-
type: ActionType["DISMISS_TOAST"];
|
|
24
|
-
toastId?: ToasterToast["id"];
|
|
25
|
-
} | {
|
|
26
|
-
type: ActionType["REMOVE_TOAST"];
|
|
27
|
-
toastId?: ToasterToast["id"];
|
|
28
|
-
};
|
|
29
|
-
interface State {
|
|
30
|
-
toasts: ToasterToast[];
|
|
31
|
-
}
|
|
32
|
-
export declare const reducer: (state: State, action: Action) => State;
|
|
33
|
-
type Toast = Omit<ToasterToast, "id">;
|
|
34
|
-
declare function toast({ ...props }: Toast): {
|
|
35
|
-
id: string;
|
|
36
|
-
dismiss: () => void;
|
|
37
|
-
update: (props: ToasterToast) => void;
|
|
38
|
-
};
|
|
39
|
-
declare function useToast(): {
|
|
40
|
-
toast: typeof toast;
|
|
41
|
-
dismiss: (toastId?: string) => void;
|
|
42
|
-
toasts: ToasterToast[];
|
|
43
|
-
};
|
|
44
|
-
export { useToast, toast };
|