@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/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.15",
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.1.1",
66
- "@tabler/icons-react": "^3.36.1",
67
- "@tailwindcss/postcss": "^4.1.18",
68
- "ably": "^2.17.1",
69
- "axios": "^1.13.4",
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.4.0"
73
+ "tailwind-merge": "^3.5.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@babel/core": "^7.29.0",
77
- "@babel/preset-env": "^7.29.0",
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.53",
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": "^6.1.0",
84
- "@rollup/plugin-commonjs": "^29.0.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.36.1",
93
+ "@tabler/icons-react": "^3.40.0",
94
94
  "@types/hast": "^3.0.4",
95
- "@types/node": "^25.2.0",
96
- "@types/react": "^19.2.10",
95
+ "@types/node": "^25.5.0",
96
+ "@types/react": "^19.2.14",
97
97
  "@types/react-dom": "^19.2.3",
98
- "autoprefixer": "^10.4.24",
99
- "babel-loader": "^10.0.0",
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.8.0",
103
- "postcss": "^8.5.6",
104
- "react-i18next": "^16.5.4",
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.2",
107
- "rollup": "^4.57.1",
106
+ "rimraf": "^6.1.3",
107
+ "rollup": "^4.60.0",
108
108
  "rollup-plugin-postcss": "^4.0.2",
109
- "tailwindcss": "^4.1.18",
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": "^5.9.3",
113
+ "typescript": "^6.0.2",
114
114
  "unplugin-icons": "^23.0.1",
115
- "webpack": "^5.104.1"
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
- className={`babylai:rounded-2xl babylai:p-4 ${
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<NodeJS.Timeout | null>(null);
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>
@@ -17,6 +17,7 @@ const HelpButton = ({ onClick }: HelpButtonProps) => {
17
17
  aria-label="Need Help?"
18
18
  >
19
19
  <Logo className="babylai:w-8 babylai:h-8 babylai:text-primary-500" />
20
+ <span className="babylai:sr-only">Need Help?</span>
20
21
  </button>
21
22
  )
22
23
  }
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
  },