gank-chat-widget 0.0.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 (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +148 -0
  3. package/dist/App.d.ts +49 -0
  4. package/dist/App.d.ts.map +1 -0
  5. package/dist/components/chat/Chat.d.ts +19 -0
  6. package/dist/components/chat/Chat.d.ts.map +1 -0
  7. package/dist/components/chat/footer/ChatFooter.d.ts +8 -0
  8. package/dist/components/chat/footer/ChatFooter.d.ts.map +1 -0
  9. package/dist/components/chat/header/ChatHeader.d.ts +11 -0
  10. package/dist/components/chat/header/ChatHeader.d.ts.map +1 -0
  11. package/dist/components/chat/input/ChatInput.d.ts +11 -0
  12. package/dist/components/chat/input/ChatInput.d.ts.map +1 -0
  13. package/dist/components/chat/message/Message.d.ts +13 -0
  14. package/dist/components/chat/message/Message.d.ts.map +1 -0
  15. package/dist/components/chat/message-list/MessageList.d.ts +24 -0
  16. package/dist/components/chat/message-list/MessageList.d.ts.map +1 -0
  17. package/dist/components/ui/Button.d.ts +12 -0
  18. package/dist/components/ui/Button.d.ts.map +1 -0
  19. package/dist/components/ui/Markdown.d.ts +8 -0
  20. package/dist/components/ui/Markdown.d.ts.map +1 -0
  21. package/dist/components/ui/Popover.d.ts +7 -0
  22. package/dist/components/ui/Popover.d.ts.map +1 -0
  23. package/dist/components/ui/Textarea.d.ts +6 -0
  24. package/dist/components/ui/Textarea.d.ts.map +1 -0
  25. package/dist/gank-chat-widget.css +1 -0
  26. package/dist/gank-chat-widget.js +5 -0
  27. package/dist/gank-chat-widget.js.map +1 -0
  28. package/dist/gank-chat-widget.umd.cjs +93 -0
  29. package/dist/gank-chat-widget.umd.cjs.map +1 -0
  30. package/dist/icons/send.svg +3 -0
  31. package/dist/index-CjbKBZv0.js +6508 -0
  32. package/dist/index-CjbKBZv0.js.map +1 -0
  33. package/dist/index-speiZ67A.js +39908 -0
  34. package/dist/index-speiZ67A.js.map +1 -0
  35. package/dist/index.d.ts +3 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/parlant-logo.png +0 -0
  38. package/dist/theme.d.ts +8 -0
  39. package/dist/theme.d.ts.map +1 -0
  40. package/dist/utils/object.d.ts +2 -0
  41. package/dist/utils/object.d.ts.map +1 -0
  42. package/dist/utils/utils.d.ts +4 -0
  43. package/dist/utils/utils.d.ts.map +1 -0
  44. package/package.json +75 -0
@@ -0,0 +1,3 @@
1
+ import { default as Chatbox } from './App';
2
+ export default Chatbox;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAE5B,eAAe,OAAO,CAAC"}
Binary file
@@ -0,0 +1,8 @@
1
+ export declare const COLORS: {
2
+ primaryText: string;
3
+ darkGrey: string;
4
+ accent: string;
5
+ mutedText: string;
6
+ backgroundLight: string;
7
+ };
8
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function groupBy<T>(array: T[], keyFn: (item: T) => string | number): Record<string, T[]>;
2
+ //# sourceMappingURL=object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/utils/object.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAU7F"}
@@ -0,0 +1,4 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ export declare function messageSound(reversed?: boolean): void;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,UAAU,EAAC,MAAM,MAAM,CAAC;AAE3C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,wBAAgB,YAAY,CAAC,QAAQ,CAAC,EAAE,OAAO,QAyB9C"}
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "gank-chat-widget",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "description": "Integrate Parlant agents seamlessly into your React app",
6
+ "type": "module",
7
+ "main": "dist/gank-chat-widget.umd.js",
8
+ "module": "dist/gank-chat-widget.js",
9
+ "types": "dist/index.d.ts",
10
+ "author": "gankinterview",
11
+ "license": "MIT",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/mikezhouhan/parlant-chat-react"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/App.d.ts",
19
+ "import": "./dist/gank-chat-widget.js",
20
+ "require": "./dist/gank-chat-widget.umd.js"
21
+ },
22
+ "./style.css": "./dist/gank-chat-widget.css"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "keywords": [],
28
+ "homepage": "https://github.com/mikezhouhan/parlant-chat-react",
29
+ "scripts": {
30
+ "dev": "vite",
31
+ "build": "tsc -b && vite build",
32
+ "preview": "vite preview",
33
+ "lint": "biome check .",
34
+ "format": "biome format .",
35
+ "ladle": "ladle serve"
36
+ },
37
+ "dependencies": {
38
+ "@radix-ui/react-popover": "^1.1.7",
39
+ "@radix-ui/react-slot": "^1.1.2",
40
+ "@tanstack/react-query": "^5.69.0",
41
+ "@types/node": "^22.13.13",
42
+ "class-variance-authority": "^0.7.1",
43
+ "clsx": "^2.1.1",
44
+ "cross-fetch": "^4.1.0",
45
+ "jss": "^10.10.0",
46
+ "jss-preset-default": "^10.10.0",
47
+ "lucide-react": "^0.484.0",
48
+ "parlant-client": "^0.10.0",
49
+ "react-jss": "^10.10.0",
50
+ "react-markdown": "^10.1.0",
51
+ "rehype-highlight": "^7.0.2",
52
+ "remark-breaks": "^4.0.0",
53
+ "remark-emoji": "^5.0.1"
54
+ },
55
+ "devDependencies": {
56
+ "@eslint/js": "^9.21.0",
57
+ "@ladle/react": "^5.0.3",
58
+ "@types/react": "^19.0.12",
59
+ "@types/react-dom": "^19.0.4",
60
+ "@vitejs/plugin-react": "^4.3.4",
61
+ "autoprefixer": "^10.4.21",
62
+ "biome": "^0.2.2",
63
+ "eslint": "^9.21.0",
64
+ "eslint-plugin-react-hooks": "^5.1.0",
65
+ "eslint-plugin-react-refresh": "^0.4.19",
66
+ "globals": "^15.15.0",
67
+ "postcss": "^8.5.3",
68
+ "react": "^19.0.0",
69
+ "react-dom": "^19.0.0",
70
+ "typescript": "~5.7.3",
71
+ "typescript-eslint": "^8.24.1",
72
+ "vite": "^7.1.5",
73
+ "vite-plugin-dts": "^4.5.4"
74
+ }
75
+ }