Skip to content

Commit 82abf71

Browse files
authored
πŸ›— chore: Bump Dependencies & Fix "Add / Remove Item" form submission (#83)
* πŸ”§ chore: Update dependencies in bun.lock and package.json - Bump Vite version from ^8.0.3 to ^8.0.16 for improved performance and features. - Upgrade @emnapi/core, @emnapi/runtime, and @emnapi/wasi-threads to their latest versions for better compatibility and functionality. - Update @oxc-project/types from 0.122.0 to 0.133.0 to include recent changes. - Increment @rolldown/binding packages to version 1.0.3 across various platforms for stability and enhancements. - Add a new script "reinstall" in package.json to streamline the reinstallation process of dependencies. * πŸ”§ chore: Upgrade Vitest and related dependencies in bun.lock and package.json - Bump Vitest version from ^3.0.5 to ^4.1.9 for improved features and performance. - Update dependencies for @vitest/expect, @vitest/mocker, @vitest/pretty-format, @vitest/runner, and @vitest/snapshot to their latest versions (4.1.9) to ensure compatibility and enhancements. - Upgrade chai from 5.3.3 to 6.2.2 for better testing capabilities. * πŸ”§ chore: Update dependencies in bun.lock and package.json - Bump @librechat/data-schemas from ^0.0.54 to ^0.0.55 for compatibility with recent changes. - Upgrade librechat-data-provider from ^0.8.507 to ^0.8.508 to ensure stability and performance. - Update nanoid from 3.3.11 to 3.3.15 for improved functionality. * πŸ”§ chore: Update dependencies in bun.lock and package.json - Bump @axe-core/playwright from ^4.11.1 to ^4.11.3 for improved accessibility testing. - Upgrade @eslint/config-array from ^0.23.3 to ^0.23.5 to ensure compatibility with recent changes. - Update @eslint/config-helpers from ^0.5.3 to ^0.6.0 for enhanced functionality. - Increment @eslint/core from ^1.1.1 to ^1.2.1 for better performance and features. - Bump @eslint/object-schema from ^3.0.3 to ^3.0.5 for improved validation. - Upgrade @eslint/plugin-kit from ^0.6.1 to ^0.7.2 to align with the latest ESLint standards. - Update @tailwindcss/node and @tailwindcss/oxide to version 4.3.1 for the latest features and fixes. - Bump various other dependencies for stability and performance improvements. * 🌐 i18n: Add missing translation keys for new config fields - Introduced new localization keys for "Default pinned tools" and "Snapshot files" in the English translation file. - Updated item keys for "Default pinned tools" to ensure proper localization coverage for related UI elements. * πŸ”§ fix: Enhance button click handling in AddItemButton and TrashButton components - Updated the onClick handlers in both AddItemButton and TrashButton to prevent default button behavior before executing the provided onClick function. This change ensures that the button actions are executed correctly without unintended side effects. * πŸ”§ fix: Update scrollbar-gutter utility class in ConfigPage component - Changed the scrollbar-gutter utility class from `[scrollbar-gutter:stable]` to `scrollbar-gutter-stable` for improved consistency and adherence to Tailwind CSS conventions.
1 parent e7ced59 commit 82abf71

6 files changed

Lines changed: 212 additions & 266 deletions

File tree

β€Žbun.lockβ€Ž

Lines changed: 159 additions & 229 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"scripts": {
99
"postinstall": "patch-package",
10+
"reinstall": "rm -rf node_modules && bun pm cache rm && bun install && bun run build",
1011
"dev": "vite dev --port 3000",
1112
"build": "vite build",
1213
"start": "bun server.ts",
@@ -22,67 +23,67 @@
2223
},
2324
"dependencies": {
2425
"@clickhouse/click-ui": "0.2.0-rc.4",
25-
"@librechat/data-schemas": "^0.0.54",
26+
"@librechat/data-schemas": "^0.0.55",
2627
"@radix-ui/react-dialog": "1.1.15",
27-
"@tailwindcss/vite": "^4.1.18",
28+
"@tailwindcss/vite": "^4.3.1",
2829
"@tanstack/react-devtools": "0.10.0",
2930
"@tanstack/react-query": "5.95.2",
3031
"@tanstack/react-router": "1.168.10",
3132
"@tanstack/react-router-devtools": "1.166.11",
3233
"@tanstack/react-router-ssr-query": "1.166.10",
3334
"@tanstack/react-start": "1.167.16",
3435
"@tanstack/router-plugin": "1.167.12",
35-
"@types/bun": "^1.3.11",
36+
"@types/bun": "^1.3.14",
3637
"clsx": "^2.1.1",
3738
"cmdk": "^1.1.1",
38-
"date-fns": "^4.1.0",
39-
"dayjs": "^1.11.19",
40-
"dotenv": "^17.3.1",
41-
"i18next": "^25.8.13",
39+
"date-fns": "^4.4.0",
40+
"dayjs": "^1.11.21",
41+
"dotenv": "^17.4.2",
42+
"i18next": "^25.10.10",
4243
"i18next-browser-languagedetector": "^8.2.1",
4344
"input-otp": "^1.4.2",
44-
"js-yaml": "^4.1.1",
45-
"librechat-data-provider": "^0.8.507",
45+
"js-yaml": "^4.2.0",
46+
"librechat-data-provider": "^0.8.508",
4647
"lucide-react": "^0.545.0",
4748
"prom-client": "^15.1.3",
48-
"react": "^19.2.0",
49-
"react-dom": "^19.2.0",
50-
"react-i18next": "^16.5.4",
49+
"react": "^19.2.7",
50+
"react-dom": "^19.2.7",
51+
"react-i18next": "^16.6.6",
5152
"react-movable": "^3.4.1",
5253
"react-textarea-autosize": "^8.5.9",
53-
"styled-components": "^6.3.11",
54-
"tailwindcss": "^4.1.18",
55-
"zod": "^4.3.6"
54+
"styled-components": "^6.4.2",
55+
"tailwindcss": "^4.3.1",
56+
"zod": "^4.4.3"
5657
},
5758
"devDependencies": {
58-
"@axe-core/playwright": "^4.11.1",
59-
"@playwright/test": "^1.58.2",
60-
"@tailwindcss/node": "^4.2.2",
59+
"@axe-core/playwright": "^4.11.3",
60+
"@playwright/test": "^1.61.0",
61+
"@tailwindcss/node": "^4.3.1",
6162
"@tanstack/devtools-vite": "0.3.12",
6263
"@tanstack/react-query-devtools": "5.91.3",
63-
"@testing-library/dom": "^10.4.0",
64+
"@testing-library/dom": "^10.4.1",
6465
"@testing-library/jest-dom": "^6.9.1",
65-
"@testing-library/react": "^16.2.0",
66+
"@testing-library/react": "^16.3.2",
6667
"@types/js-yaml": "^4.0.9",
67-
"@types/node": "^22.10.2",
68-
"@types/react": "^19.2.0",
69-
"@types/react-dom": "^19.2.0",
70-
"@typescript-eslint/eslint-plugin": "^8.57.1",
71-
"@typescript-eslint/parser": "^8.57.1",
72-
"@vitejs/plugin-react": "^5.0.4",
73-
"eslint": "^10.1.0",
68+
"@types/node": "^22.20.0",
69+
"@types/react": "^19.2.17",
70+
"@types/react-dom": "^19.2.3",
71+
"@typescript-eslint/eslint-plugin": "^8.61.1",
72+
"@typescript-eslint/parser": "^8.61.1",
73+
"@vitejs/plugin-react": "^5.2.0",
74+
"eslint": "^10.5.0",
7475
"eslint-plugin-click-ui": "file:./tools/eslint-plugin-click-ui",
7576
"eslint-plugin-import-x": "^4.16.2",
76-
"eslint-plugin-tailwind-canonical-classes": "^1.3.1",
77-
"jsdom": "^27.0.0",
77+
"eslint-plugin-tailwind-canonical-classes": "^1.3.3",
78+
"jsdom": "^27.4.0",
7879
"lint-staged": "^16.4.0",
7980
"patch-package": "^8.0.1",
80-
"prettier": "^3.8.1",
81-
"prettier-plugin-tailwindcss": "^0.7.2",
82-
"typescript": "^5.7.2",
83-
"vite": "^8.0.3",
81+
"prettier": "^3.8.4",
82+
"prettier-plugin-tailwindcss": "^0.7.4",
83+
"typescript": "^5.9.3",
84+
"vite": "^8.0.16",
8485
"vite-tsconfig-paths": "^6.1.1",
85-
"vitest": "^3.0.5"
86+
"vitest": "^4.1.9"
8687
},
8788
"overrides": {
8889
"@radix-ui/react-dialog": "1.1.15",

β€Žsrc/components/configuration/ConfigPage.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ export function ConfigPage({ initialTab, highlightField, initialScope }: t.Confi
913913
</div>
914914
)}
915915
<div
916-
className="h-full overflow-auto pl-4 [scrollbar-gutter:stable]"
916+
className="h-full overflow-auto pl-4 scrollbar-gutter-stable"
917917
ref={scrollCallbackRef}
918918
>
919919
<ConfigTabContent

β€Žsrc/components/shared/AddItemButton.tsxβ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Button } from '@clickhouse/click-ui';
2+
import type { MouseEvent } from 'react';
23

34
export function AddItemButton({
45
label,
@@ -9,12 +10,17 @@ export function AddItemButton({
910
onClick: () => void;
1011
disabled?: boolean;
1112
}) {
13+
const handleClick = (event: MouseEvent<HTMLButtonElement>) => {
14+
event.preventDefault();
15+
onClick();
16+
};
17+
1218
return (
1319
<Button
1420
type="secondary"
1521
iconLeft="plus"
1622
label={label}
17-
onClick={onClick}
23+
onClick={handleClick}
1824
disabled={disabled}
1925
/>
2026
);

β€Žsrc/components/shared/TrashButton.tsxβ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import { IconButton } from '@clickhouse/click-ui';
2+
import type { MouseEvent } from 'react';
23
import type * as t from '@/types';
34

45
export function TrashButton({ onClick, ariaLabel, size = 'sm', disabled }: t.TrashButtonProps) {
6+
const handleClick = (event: MouseEvent<HTMLButtonElement>) => {
7+
event.preventDefault();
8+
onClick();
9+
};
10+
511
return (
612
<IconButton
713
icon="trash"
814
size={size}
9-
onClick={onClick}
15+
onClick={handleClick}
1016
aria-label={ariaLabel}
1117
disabled={disabled}
1218
/>

β€Žsrc/locales/en/translation.jsonβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@
219219
"com_config_field_imageOutputType": "Image output type",
220220
"com_config_field_includedTools": "Included tools",
221221
"com_config_field_filteredTools": "Filtered tools",
222+
"com_config_field_defaultPinnedTools": "Default pinned tools",
223+
"com_config_field_snapshotFiles": "Snapshot files",
222224
"com_config_field_mcpServers": "MCP servers",
223225
"com_config_field_mcpSettings": "MCP settings",
224226
"com_config_field_interface": "Interface",
@@ -574,6 +576,7 @@
574576
"com_config_field_pronunciation_dictionary_locators_item": "locator",
575577
"com_config_field_includedTools_item": "tool",
576578
"com_config_field_filteredTools_item": "tool",
579+
"com_config_field_defaultPinnedTools_item": "tool",
577580
"com_config_field_validKeys_item": "key",
578581
"com_config_field_allowedDomains_item": "domain",
579582
"com_config_field_socialLogins_item": "login",

0 commit comments

Comments
Β (0)