@aslaluroba/help-center-react 3.2.15 → 3.2.17
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.css +1 -1
- package/dist/index.esm.js +520 -157
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +520 -157
- package/dist/index.js.map +1 -1
- package/dist/services.esm.js +248 -95
- package/dist/services.esm.js.map +1 -1
- package/dist/services.js +248 -95
- package/dist/services.js.map +1 -1
- package/package.json +24 -24
- package/src/components/ui/agent-response/agent-response.tsx +2 -2
- package/src/ui/chatbot-popup/chat-window-screen/index.tsx +1 -1
- package/src/ui/floating-message.tsx +1 -0
- package/src/ui/help-button.tsx +1 -0
- package/tsconfig.json +5 -6
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "dist/index.js",
|
|
4
4
|
"module": "dist/index.esm.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"version": "3.2.
|
|
6
|
+
"version": "3.2.17",
|
|
7
7
|
"description": "BabylAI Help Center Widget for React and Next.js",
|
|
8
8
|
"private": false,
|
|
9
9
|
"exports": {
|
|
@@ -62,26 +62,26 @@
|
|
|
62
62
|
"react-dom": "^18 || ^19"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@ably/chat": "^1.
|
|
66
|
-
"@tabler/icons-react": "^3.
|
|
67
|
-
"@tailwindcss/postcss": "^4.
|
|
68
|
-
"ably": "^2.
|
|
69
|
-
"axios": "^1.13.
|
|
65
|
+
"@ably/chat": "^1.3.0",
|
|
66
|
+
"@tabler/icons-react": "^3.40.0",
|
|
67
|
+
"@tailwindcss/postcss": "^4.2.2",
|
|
68
|
+
"ably": "^2.21.0",
|
|
69
|
+
"axios": "^1.13.6",
|
|
70
70
|
"class-variance-authority": "^0.7.1",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
72
|
"react-markdown": "^10.1.0",
|
|
73
|
-
"tailwind-merge": "^3.
|
|
73
|
+
"tailwind-merge": "^3.5.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@babel/core": "^7.29.0",
|
|
77
|
-
"@babel/preset-env": "^7.29.
|
|
77
|
+
"@babel/preset-env": "^7.29.2",
|
|
78
78
|
"@babel/preset-react": "^7.28.5",
|
|
79
79
|
"@iconify-json/ic": "^1.2.4",
|
|
80
|
-
"@iconify-json/material-symbols": "^1.2.
|
|
80
|
+
"@iconify-json/material-symbols": "^1.2.63",
|
|
81
81
|
"@iconify-json/solar": "^1.2.5",
|
|
82
82
|
"@rollup/plugin-alias": "^6.0.0",
|
|
83
|
-
"@rollup/plugin-babel": "^
|
|
84
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
83
|
+
"@rollup/plugin-babel": "^7.0.0",
|
|
84
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
85
85
|
"@rollup/plugin-image": "^3.0.3",
|
|
86
86
|
"@rollup/plugin-json": "^6.1.0",
|
|
87
87
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
@@ -90,29 +90,29 @@
|
|
|
90
90
|
"@svgr/core": "^8.1.0",
|
|
91
91
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
92
92
|
"@svgr/rollup": "^8.1.0",
|
|
93
|
-
"@tabler/icons-react": "^3.
|
|
93
|
+
"@tabler/icons-react": "^3.40.0",
|
|
94
94
|
"@types/hast": "^3.0.4",
|
|
95
|
-
"@types/node": "^25.
|
|
96
|
-
"@types/react": "^19.2.
|
|
95
|
+
"@types/node": "^25.5.0",
|
|
96
|
+
"@types/react": "^19.2.14",
|
|
97
97
|
"@types/react-dom": "^19.2.3",
|
|
98
|
-
"autoprefixer": "^10.4.
|
|
99
|
-
"babel-loader": "^10.
|
|
98
|
+
"autoprefixer": "^10.4.27",
|
|
99
|
+
"babel-loader": "^10.1.1",
|
|
100
100
|
"clsx": "^2.1.1",
|
|
101
101
|
"concurrently": "^9.2.1",
|
|
102
|
-
"i18next": "^25.
|
|
103
|
-
"postcss": "^8.5.
|
|
104
|
-
"react-i18next": "^16.
|
|
102
|
+
"i18next": "^25.10.9",
|
|
103
|
+
"postcss": "^8.5.8",
|
|
104
|
+
"react-i18next": "^16.6.6",
|
|
105
105
|
"react-markdown": "^10.1.0",
|
|
106
|
-
"rimraf": "^6.1.
|
|
107
|
-
"rollup": "^4.
|
|
106
|
+
"rimraf": "^6.1.3",
|
|
107
|
+
"rollup": "^4.60.0",
|
|
108
108
|
"rollup-plugin-postcss": "^4.0.2",
|
|
109
|
-
"tailwindcss": "^4.
|
|
109
|
+
"tailwindcss": "^4.2.2",
|
|
110
110
|
"tailwindcss-animate": "^1.0.7",
|
|
111
111
|
"tailwindcss-rtl": "^0.9.0",
|
|
112
112
|
"tslib": "^2.8.1",
|
|
113
|
-
"typescript": "^
|
|
113
|
+
"typescript": "^6.0.2",
|
|
114
114
|
"unplugin-icons": "^23.0.1",
|
|
115
|
-
"webpack": "^5.
|
|
115
|
+
"webpack": "^5.105.4"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": {
|
|
118
118
|
"access": "public"
|
|
@@ -31,7 +31,8 @@ const AgentResponse = ({
|
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<div
|
|
34
|
-
|
|
34
|
+
dir="auto"
|
|
35
|
+
className={`babylai:rounded-2xl babylai:p-4 ${
|
|
35
36
|
senderType === 1
|
|
36
37
|
? "babylai:bg-primary-500 babylai:text-black-white-50 babylai:max-w-[220px]"
|
|
37
38
|
: "babylai:bg-card"
|
|
@@ -41,7 +42,6 @@ const AgentResponse = ({
|
|
|
41
42
|
components={{
|
|
42
43
|
p: ({ node, ...props }: { node?: Element; [key: string]: any }) => (
|
|
43
44
|
<p
|
|
44
|
-
dir="auto"
|
|
45
45
|
className="babylai:m-0 babylai:leading-snug babylai:text-sm babylai:font-sans babylai:wrap-break-word"
|
|
46
46
|
{...props}
|
|
47
47
|
/>
|
|
@@ -145,7 +145,7 @@ export const ChatWindow = React.memo(
|
|
|
145
145
|
const { i18n } = useLocalTranslation();
|
|
146
146
|
const [inputMessage, setInputMessage] = useState('');
|
|
147
147
|
const messagesEndRef = useRef<HTMLDivElement>(null);
|
|
148
|
-
const scrollTimeoutRef = useRef<
|
|
148
|
+
const scrollTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
149
149
|
const lastMessageCountRef = useRef(messages.length);
|
|
150
150
|
const [galleryState, setGalleryState] = useState<{
|
|
151
151
|
isOpen: boolean;
|
|
@@ -19,6 +19,7 @@ const FloatingMessage = ({ message, onClose }: FloatingMessageProps) => {
|
|
|
19
19
|
onClick={onClose}
|
|
20
20
|
>
|
|
21
21
|
<MaterialSymbolsCloseSmallOutlineRounded className="babylai:w-8 babylai:h-8" />
|
|
22
|
+
<span className="babylai:sr-only">Close</span>
|
|
22
23
|
</button>
|
|
23
24
|
</div>
|
|
24
25
|
</div>
|
package/src/ui/help-button.tsx
CHANGED
package/tsconfig.json
CHANGED
|
@@ -28,22 +28,21 @@
|
|
|
28
28
|
"esModuleInterop": true,
|
|
29
29
|
"skipLibCheck": true,
|
|
30
30
|
"forceConsistentCasingInFileNames": true,
|
|
31
|
-
"baseUrl": ".",
|
|
32
31
|
"paths": {
|
|
33
32
|
"@/*": [
|
|
34
|
-
"src/*"
|
|
33
|
+
"./src/*"
|
|
35
34
|
],
|
|
36
35
|
"@/components/*": [
|
|
37
|
-
"src/components/*"
|
|
36
|
+
"./src/components/*"
|
|
38
37
|
],
|
|
39
38
|
"@/ui/*": [
|
|
40
|
-
"src/ui/*"
|
|
39
|
+
"./src/ui/*"
|
|
41
40
|
],
|
|
42
41
|
"@/lib/*": [
|
|
43
|
-
"src/lib/*"
|
|
42
|
+
"./src/lib/*"
|
|
44
43
|
],
|
|
45
44
|
"@/assets/*": [
|
|
46
|
-
"src/assets/*"
|
|
45
|
+
"./src/assets/*"
|
|
47
46
|
]
|
|
48
47
|
},
|
|
49
48
|
},
|