mirror of
https://github.com/molvqingtai/WebChat.git
synced 2025-11-25 19:27:34 +08:00
chore: update deps
This commit is contained in:
@@ -98,9 +98,9 @@
|
|||||||
"zod": "^4.1.11"
|
"zod": "^4.1.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^20.0.0",
|
"@commitlint/cli": "^20.1.0",
|
||||||
"@commitlint/config-conventional": "^20.0.0",
|
"@commitlint/config-conventional": "^20.0.0",
|
||||||
"@eslint-react/eslint-plugin": "^2.0.3",
|
"@eslint-react/eslint-plugin": "^2.0.4",
|
||||||
"@eslint/js": "^9.36.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
"@semantic-release/exec": "^7.1.0",
|
"@semantic-release/exec": "^7.1.0",
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
"@tailwindcss/vite": "^4.1.13",
|
"@tailwindcss/vite": "^4.1.13",
|
||||||
"@types/eslint": "^9.6.1",
|
"@types/eslint": "^9.6.1",
|
||||||
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
||||||
"@types/node": "^24.6.0",
|
"@types/node": "^24.6.1",
|
||||||
"@types/react": "^19.1.16",
|
"@types/react": "^19.1.16",
|
||||||
"@types/react-dom": "^19.1.9",
|
"@types/react-dom": "^19.1.9",
|
||||||
"@typescript-eslint/parser": "^8.45.0",
|
"@typescript-eslint/parser": "^8.45.0",
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
"semantic-release": "^24.2.9",
|
"semantic-release": "^24.2.9",
|
||||||
"tailwindcss": "^4.1.13",
|
"tailwindcss": "^4.1.13",
|
||||||
"tw-animate-css": "^1.4.0",
|
"tw-animate-css": "^1.4.0",
|
||||||
"typescript": "^5.9.2",
|
"typescript": "^5.9.3",
|
||||||
"typescript-eslint": "^8.45.0",
|
"typescript-eslint": "^8.45.0",
|
||||||
"vite-plugin-svgr": "^4.5.0",
|
"vite-plugin-svgr": "^4.5.0",
|
||||||
"webext-bridge": "^6.0.1",
|
"webext-bridge": "^6.0.1",
|
||||||
|
|||||||
670
pnpm-lock.yaml
generated
670
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -32,7 +32,7 @@ const AppMain: FC<AppMainProps> = ({ children, className }) => {
|
|||||||
direction: isOnRightSide ? 'left' : 'right'
|
direction: isOnRightSide ? 'left' : 'right'
|
||||||
})
|
})
|
||||||
|
|
||||||
const [isAnimationComplete, setAnimationComplete] = useState(false)
|
const [isAnimationComplete, setIsAnimationComplete] = useState(false)
|
||||||
|
|
||||||
// Memoize children to prevent unnecessary re-renders when position changes
|
// Memoize children to prevent unnecessary re-renders when position changes
|
||||||
const memoizedChildren = useMemo(() => children, [children])
|
const memoizedChildren = useMemo(() => children, [children])
|
||||||
@@ -45,8 +45,8 @@ const AppMain: FC<AppMainProps> = ({ children, className }) => {
|
|||||||
animate={{ opacity: 1, y: 0, x: isOnRightSide ? '-100%' : '0' }}
|
animate={{ opacity: 1, y: 0, x: isOnRightSide ? '-100%' : '0' }}
|
||||||
exit={{ opacity: 0, y: 10 }}
|
exit={{ opacity: 0, y: 10 }}
|
||||||
transition={{ duration: 0.3, ease: 'linear' }}
|
transition={{ duration: 0.3, ease: 'linear' }}
|
||||||
onAnimationEnd={() => setAnimationComplete(true)}
|
onAnimationEnd={() => setIsAnimationComplete(true)}
|
||||||
onAnimationStart={() => setAnimationComplete(false)}
|
onAnimationStart={() => setIsAnimationComplete(false)}
|
||||||
style={{
|
style={{
|
||||||
width: `${size}px`,
|
width: `${size}px`,
|
||||||
left: `${absoluteX}px`,
|
left: `${absoluteX}px`,
|
||||||
|
|||||||
Reference in New Issue
Block a user