@realtimexsco/live-chat 1.0.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/LICENSE +21 -0
- package/README.md +398 -0
- package/dist/index.cjs +7075 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +701 -0
- package/dist/index.d.ts +701 -0
- package/dist/index.mjs +7034 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +196 -0
- package/package.json +96 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/* @my/chat-ui - Theme Variables */
|
|
2
|
+
/* Import this file ONCE in your app's global CSS after @import "tailwindcss" */
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
@theme inline {
|
|
7
|
+
--color-background: var(--background);
|
|
8
|
+
--color-foreground: var(--foreground);
|
|
9
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
10
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
11
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
12
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
13
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
14
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
15
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
16
|
+
--color-sidebar: var(--sidebar);
|
|
17
|
+
--color-chart-5: var(--chart-5);
|
|
18
|
+
--color-chart-4: var(--chart-4);
|
|
19
|
+
--color-chart-3: var(--chart-3);
|
|
20
|
+
--color-chart-2: var(--chart-2);
|
|
21
|
+
--color-chart-1: var(--chart-1);
|
|
22
|
+
--color-ring: var(--ring);
|
|
23
|
+
--color-input: var(--input);
|
|
24
|
+
--color-border: var(--border);
|
|
25
|
+
--color-destructive: var(--destructive);
|
|
26
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
27
|
+
--color-accent: var(--accent);
|
|
28
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
29
|
+
--color-muted: var(--muted);
|
|
30
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
31
|
+
--color-secondary: var(--secondary);
|
|
32
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
33
|
+
--color-primary: var(--primary);
|
|
34
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
35
|
+
--color-popover: var(--popover);
|
|
36
|
+
--color-card-foreground: var(--card-foreground);
|
|
37
|
+
--color-card: var(--card);
|
|
38
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
39
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
40
|
+
--radius-lg: var(--radius);
|
|
41
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
42
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
43
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
44
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
45
|
+
--color-chat-theme: var(--chat-theme);
|
|
46
|
+
--color-chat-theme-5: var(--chat-theme-5);
|
|
47
|
+
--color-chat-theme-10: var(--chat-theme-10);
|
|
48
|
+
--color-chat-theme-20: var(--chat-theme-20);
|
|
49
|
+
--color-chat-theme-40: var(--chat-theme-40);
|
|
50
|
+
--color-chat-theme-60: var(--chat-theme-60);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:root {
|
|
54
|
+
--radius: 0.625rem;
|
|
55
|
+
--background: oklch(1 0 0);
|
|
56
|
+
--foreground: oklch(0.145 0 0);
|
|
57
|
+
--card: oklch(1 0 0);
|
|
58
|
+
--card-foreground: oklch(0.145 0 0);
|
|
59
|
+
--popover: oklch(1 0 0);
|
|
60
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
61
|
+
--primary: oklch(0.205 0 0);
|
|
62
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
63
|
+
--secondary: oklch(0.97 0 0);
|
|
64
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
65
|
+
--muted: oklch(0.97 0 0);
|
|
66
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
67
|
+
--accent: oklch(0.97 0 0);
|
|
68
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
69
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
70
|
+
--border: oklch(0.922 0 0);
|
|
71
|
+
--input: oklch(0.922 0 0);
|
|
72
|
+
--ring: oklch(0.708 0 0);
|
|
73
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
74
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
75
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
76
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
77
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
78
|
+
--sidebar: oklch(0.985 0 0);
|
|
79
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
80
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
81
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
82
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
83
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
84
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
85
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dark {
|
|
89
|
+
--background: oklch(0.145 0 0);
|
|
90
|
+
--foreground: oklch(0.985 0 0);
|
|
91
|
+
--card: oklch(0.205 0 0);
|
|
92
|
+
--card-foreground: oklch(0.985 0 0);
|
|
93
|
+
--popover: oklch(0.205 0 0);
|
|
94
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
95
|
+
--primary: oklch(0.922 0 0);
|
|
96
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
97
|
+
--secondary: oklch(0.269 0 0);
|
|
98
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
99
|
+
--muted: oklch(0.269 0 0);
|
|
100
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
101
|
+
--accent: oklch(0.269 0 0);
|
|
102
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
103
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
104
|
+
--border: oklch(1 0 0 / 10%);
|
|
105
|
+
--input: oklch(1 0 0 / 15%);
|
|
106
|
+
--ring: oklch(0.556 0 0);
|
|
107
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
108
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
109
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
110
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
111
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
112
|
+
--sidebar: oklch(0.205 0 0);
|
|
113
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
114
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
115
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
116
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
117
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
118
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
119
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@layer base {
|
|
123
|
+
* {
|
|
124
|
+
@apply border-border outline-ring/50;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
body {
|
|
128
|
+
@apply bg-background text-foreground;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.custom-scrollbar::-webkit-scrollbar {
|
|
133
|
+
width: 8px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.custom-scrollbar::-webkit-scrollbar-track {
|
|
137
|
+
background: transparent;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.custom-scrollbar::-webkit-scrollbar-thumb {
|
|
141
|
+
background: rgba(0, 0, 0, 0.18);
|
|
142
|
+
border-radius: 999px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
146
|
+
background: rgba(0, 0, 0, 0.28);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
@keyframes progress {
|
|
151
|
+
0% { transform: translateX(-100%); }
|
|
152
|
+
100% { transform: translateX(300%); }
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.animate-progress {
|
|
156
|
+
animation: progress 1.5s infinite linear;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Chat panel utilities (synced from live-chat-frontend) */
|
|
160
|
+
.chat-shell {
|
|
161
|
+
--chat-surface: #ffffff;
|
|
162
|
+
--chat-canvas: #f4f5f7;
|
|
163
|
+
--chat-border: rgba(15, 23, 42, 0.08);
|
|
164
|
+
--chat-muted: #64748b;
|
|
165
|
+
--chat-text: #0f172a;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.chat-shell h1 {
|
|
169
|
+
font-size: 0.9375rem;
|
|
170
|
+
line-height: 1.25rem;
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
letter-spacing: -0.01em;
|
|
173
|
+
color: var(--chat-text);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.chat-message-scroll {
|
|
177
|
+
scrollbar-width: thin;
|
|
178
|
+
scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.chat-message-scroll::-webkit-scrollbar {
|
|
182
|
+
width: 6px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.chat-message-scroll::-webkit-scrollbar-track {
|
|
186
|
+
background: transparent;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.chat-message-scroll::-webkit-scrollbar-thumb {
|
|
190
|
+
background: rgba(15, 23, 42, 0.12);
|
|
191
|
+
border-radius: 999px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.chat-message-scroll::-webkit-scrollbar-thumb:hover {
|
|
195
|
+
background: rgba(15, 23, 42, 0.22);
|
|
196
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@realtimexsco/live-chat",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"types": "./dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./styles.css": "./dist/styles.css"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"**/*.css"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"next": ">=13",
|
|
23
|
+
"react": ">=17",
|
|
24
|
+
"react-dom": ">=17",
|
|
25
|
+
"tailwindcss": "^4",
|
|
26
|
+
"zustand": ">=4"
|
|
27
|
+
},
|
|
28
|
+
"peerDependenciesMeta": {
|
|
29
|
+
"tailwindcss": {
|
|
30
|
+
"optional": false
|
|
31
|
+
},
|
|
32
|
+
"next": {
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
38
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
39
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
40
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
41
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
42
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
43
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
44
|
+
"axios": "^1.13.6",
|
|
45
|
+
"class-variance-authority": "^0.7.1",
|
|
46
|
+
"clsx": "^2.1.1",
|
|
47
|
+
"emoji-picker-react": "^4.18.0",
|
|
48
|
+
"lucide-react": "^0.574.0",
|
|
49
|
+
"radix-ui": "^1.4.3",
|
|
50
|
+
"socket.io-client": "^4.8.3",
|
|
51
|
+
"tailwind-merge": "^3.4.1",
|
|
52
|
+
"tw-animate-css": "^1.4.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
56
|
+
"@semantic-release/git": "^10.0.1",
|
|
57
|
+
"@semantic-release/gitlab": "^13.3.2",
|
|
58
|
+
"@tailwindcss/postcss": "^4",
|
|
59
|
+
"@types/node": "^25.3.0",
|
|
60
|
+
"@types/react": "^19.0.0",
|
|
61
|
+
"@types/react-dom": "^19.0.0",
|
|
62
|
+
"autoprefixer": "^10.4.24",
|
|
63
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
64
|
+
"copyfiles": "^2.4.1",
|
|
65
|
+
"postcss": "^8.5.6",
|
|
66
|
+
"semantic-release": "^25.0.5",
|
|
67
|
+
"shadcn": "^3.8.5",
|
|
68
|
+
"tailwindcss": "^4",
|
|
69
|
+
"tsup": "^8.5.1",
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"zustand": "^5.0.11"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "tsup && copyfiles -u 1 src/styles.css dist",
|
|
75
|
+
"dev": "tsup --watch",
|
|
76
|
+
"typecheck": "tsc --noEmit",
|
|
77
|
+
"release": "semantic-release"
|
|
78
|
+
},
|
|
79
|
+
"publishConfig": {
|
|
80
|
+
"access": "public",
|
|
81
|
+
"registry": "https://registry.npmjs.org/"
|
|
82
|
+
},
|
|
83
|
+
"repository": {
|
|
84
|
+
"type": "git",
|
|
85
|
+
"url": "git+https://gitlab.com/mituls1/live-chat-npm-package.git"
|
|
86
|
+
},
|
|
87
|
+
"bugs": {
|
|
88
|
+
"url": "https://gitlab.com/mituls1/live-chat-npm-package/-/issues"
|
|
89
|
+
},
|
|
90
|
+
"homepage": "https://gitlab.com/mituls1/live-chat-npm-package#readme",
|
|
91
|
+
"packageManager": "pnpm@10.33.2",
|
|
92
|
+
"keywords": [],
|
|
93
|
+
"author": "",
|
|
94
|
+
"license": "MIT",
|
|
95
|
+
"description": ""
|
|
96
|
+
}
|