@athenaintel/react 0.1.0
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/dist/index.cjs +61679 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +291 -0
- package/dist/index.js +61663 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +100 -0
- package/package.json +80 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @athenaintel/react — Default styles
|
|
3
|
+
*
|
|
4
|
+
* Import this file in your app:
|
|
5
|
+
* import '@athenaintel/react/styles.css'
|
|
6
|
+
*
|
|
7
|
+
* These styles provide the base theme variables and typography
|
|
8
|
+
* for the Athena chat components. You can override any CSS variable
|
|
9
|
+
* in your own stylesheet.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* Tighter prose for chat messages */
|
|
13
|
+
.prose.prose-sm {
|
|
14
|
+
font-size: 0.875rem;
|
|
15
|
+
line-height: 1.625;
|
|
16
|
+
}
|
|
17
|
+
.prose.prose-sm h1,
|
|
18
|
+
.prose.prose-sm h2,
|
|
19
|
+
.prose.prose-sm h3 {
|
|
20
|
+
margin-top: 1em;
|
|
21
|
+
margin-bottom: 0.4em;
|
|
22
|
+
}
|
|
23
|
+
.prose.prose-sm h1 { font-size: 1.25em; }
|
|
24
|
+
.prose.prose-sm h2 { font-size: 1.125em; }
|
|
25
|
+
.prose.prose-sm h3 { font-size: 1em; }
|
|
26
|
+
.prose.prose-sm p {
|
|
27
|
+
margin-top: 0.4em;
|
|
28
|
+
margin-bottom: 0.4em;
|
|
29
|
+
}
|
|
30
|
+
.prose.prose-sm ul,
|
|
31
|
+
.prose.prose-sm ol {
|
|
32
|
+
margin-top: 0.4em;
|
|
33
|
+
margin-bottom: 0.4em;
|
|
34
|
+
padding-left: 1.25em;
|
|
35
|
+
}
|
|
36
|
+
.prose.prose-sm li {
|
|
37
|
+
margin-top: 0.15em;
|
|
38
|
+
margin-bottom: 0.15em;
|
|
39
|
+
}
|
|
40
|
+
.prose.prose-sm pre {
|
|
41
|
+
margin-top: 0.6em;
|
|
42
|
+
margin-bottom: 0.6em;
|
|
43
|
+
padding: 0.75em 1em;
|
|
44
|
+
border-radius: 0.5rem;
|
|
45
|
+
background: oklch(0.97 0 0);
|
|
46
|
+
font-size: 0.8125em;
|
|
47
|
+
}
|
|
48
|
+
.prose.prose-sm code:not(pre code) {
|
|
49
|
+
padding: 0.15em 0.35em;
|
|
50
|
+
border-radius: 0.25rem;
|
|
51
|
+
background: oklch(0.97 0 0);
|
|
52
|
+
font-size: 0.85em;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
}
|
|
55
|
+
.prose.prose-sm code:not(pre code)::before,
|
|
56
|
+
.prose.prose-sm code:not(pre code)::after {
|
|
57
|
+
content: none;
|
|
58
|
+
}
|
|
59
|
+
.prose.prose-sm blockquote {
|
|
60
|
+
margin-top: 0.6em;
|
|
61
|
+
margin-bottom: 0.6em;
|
|
62
|
+
padding-left: 0.75em;
|
|
63
|
+
border-left: 3px solid oklch(0.85 0 0);
|
|
64
|
+
font-style: normal;
|
|
65
|
+
color: oklch(0.4 0 0);
|
|
66
|
+
}
|
|
67
|
+
.prose.prose-sm table {
|
|
68
|
+
margin-top: 0.6em;
|
|
69
|
+
margin-bottom: 0.6em;
|
|
70
|
+
font-size: 0.8125em;
|
|
71
|
+
}
|
|
72
|
+
.prose.prose-sm th,
|
|
73
|
+
.prose.prose-sm td {
|
|
74
|
+
padding: 0.35em 0.65em;
|
|
75
|
+
border: 1px solid oklch(0.9 0 0);
|
|
76
|
+
}
|
|
77
|
+
.prose.prose-sm th {
|
|
78
|
+
background: oklch(0.97 0 0);
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
}
|
|
81
|
+
.prose.prose-sm hr {
|
|
82
|
+
margin-top: 0.8em;
|
|
83
|
+
margin-bottom: 0.8em;
|
|
84
|
+
}
|
|
85
|
+
.prose.prose-sm > :first-child {
|
|
86
|
+
margin-top: 0;
|
|
87
|
+
}
|
|
88
|
+
.prose.prose-sm > :last-child {
|
|
89
|
+
margin-bottom: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Tiptap composer placeholder */
|
|
93
|
+
.ProseMirror p.is-editor-empty:first-child::before,
|
|
94
|
+
.ProseMirror.is-editor-empty:first-child::before {
|
|
95
|
+
content: attr(data-placeholder);
|
|
96
|
+
float: left;
|
|
97
|
+
color: #9ca3af;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
height: 0;
|
|
100
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@athenaintel/react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Athena React SDK — Build AI-powered chat applications with the Athena platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./styles.css": "./dist/styles.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "vite build --watch",
|
|
23
|
+
"build": "vite build && pnpm build:css",
|
|
24
|
+
"build:css": "cp src/styles.css dist/styles.css",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"prepublishOnly": "pnpm build"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
30
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@assistant-ui/react": "^0.12.12",
|
|
34
|
+
"@assistant-ui/react-langgraph": "^0.13.0",
|
|
35
|
+
"@floating-ui/react": "^0.27.7",
|
|
36
|
+
"@tiptap/core": "^3.20.0",
|
|
37
|
+
"@tiptap/extension-link": "^3.20.0",
|
|
38
|
+
"@tiptap/extension-placeholder": "^3.20.0",
|
|
39
|
+
"@tiptap/extension-table": "^3.20.0",
|
|
40
|
+
"@tiptap/extension-table-cell": "^3.20.0",
|
|
41
|
+
"@tiptap/extension-table-header": "^3.20.0",
|
|
42
|
+
"@tiptap/extension-table-row": "^3.20.0",
|
|
43
|
+
"@tiptap/pm": "^3.20.0",
|
|
44
|
+
"@tiptap/react": "^3.20.0",
|
|
45
|
+
"@tiptap/starter-kit": "^3.20.0",
|
|
46
|
+
"@tiptap/suggestion": "^3.20.0",
|
|
47
|
+
"@tanstack/react-store": "^0.9.1",
|
|
48
|
+
"assistant-stream": "^0.3.3",
|
|
49
|
+
"class-variance-authority": "^0.7.1",
|
|
50
|
+
"clsx": "^2.1.1",
|
|
51
|
+
"lucide-react": "^0.575.0",
|
|
52
|
+
"radix-ui": "^1.4.3",
|
|
53
|
+
"react-resizable-panels": "^4.6.5",
|
|
54
|
+
"tailwind-merge": "^3.3.1",
|
|
55
|
+
"tiptap-markdown": "^0.9.0",
|
|
56
|
+
"zod": "^3.24.0",
|
|
57
|
+
"zustand": "^5.0.11"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/react": "^19.0.0",
|
|
61
|
+
"@types/react-dom": "^19.0.0",
|
|
62
|
+
"react": "^19.0.0",
|
|
63
|
+
"react-dom": "^19.0.0",
|
|
64
|
+
"typescript": "^5.7.0",
|
|
65
|
+
"vite": "^6.0.0",
|
|
66
|
+
"vite-plugin-dts": "^4.5.0"
|
|
67
|
+
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "https://github.com/Athena-Intel/athena.git",
|
|
71
|
+
"directory": "packages/react"
|
|
72
|
+
},
|
|
73
|
+
"license": "Proprietary",
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
},
|
|
77
|
+
"sideEffects": [
|
|
78
|
+
"*.css"
|
|
79
|
+
]
|
|
80
|
+
}
|