@uraiagent/react 0.0.2 → 0.0.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uraiagent/react",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
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,8 @@
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
+ "react": ">=18",
24
+ "react-dom": ">=18"
26
25
  },
27
26
  "devDependencies": {
28
27
  "@eslint/js": "^10.0.1",
@@ -35,7 +34,6 @@
35
34
  "eslint": "^10.4.0",
36
35
  "eslint-plugin-react-hooks": "^7.1.1",
37
36
  "eslint-plugin-react-refresh": "^0.5.2",
38
- "postcss": "^8.5.14",
39
37
  "prettier": "^3.8.3",
40
38
  "react": "^19.2.6",
41
39
  "react-dom": "^19.2.6",
@@ -54,57 +52,31 @@
54
52
  "name": "Abdellatif-E",
55
53
  "url": "https://github.com/Abdellatif-E"
56
54
  },
57
- "main": "./dist/index.js",
55
+ "main": "./dist/index.cjs.js",
56
+ "module": "./dist/index.es.js",
58
57
  "types": "./dist/index.d.ts",
59
58
  "exports": {
60
59
  ".": {
61
- "require": "./dist/index.cjs.js",
60
+ "types": "./dist/index.d.ts",
62
61
  "import": "./dist/index.es.js",
63
- "default": "./dist/index.es.js",
64
- "types": "./dist/index.d.ts"
62
+ "require": "./dist/index.cjs.js",
63
+ "default": "./dist/index.es.js"
65
64
  }
66
65
  },
67
66
  "dependencies": {
68
67
  "@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
68
  "@uidotdev/usehooks": "^2.4.1",
87
- "class-variance-authority": "^0.7.1",
88
69
  "clsx": "^2.1.1",
89
- "cmdk": "^1.1.1",
90
70
  "date-fns": "^4.1.0",
91
71
  "framer-motion": "^12.38.0",
92
72
  "html-react-parser": "^6.1.1",
93
73
  "immer": "^11.1.8",
94
- "input-otp": "^1.4.2",
95
74
  "lucide-react": "^1.8.0",
96
75
  "nanoid": "^5.1.16",
97
76
  "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
77
  "react-markdown": "^10.1.0",
103
- "react-phone-number-input": "^3.4.16",
104
78
  "react-textarea-autosize": "^8.5.9",
105
79
  "remark-gfm": "^4.0.1",
106
- "sonner": "^2.0.7",
107
- "vaul": "^1.1.2",
108
80
  "zod": "^4.4.3"
109
81
  }
110
82
  }
@@ -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 };