Skip to content

Commit 74222cb

Browse files
committed
chore: update package dependencies and configurations
- Upgraded pnpm from version 10.18.1 to 10.19.0. - Downgraded @uswriting/exiftool from version 1.0.5 to 1.0.3 in multiple package.json files. - Updated various packages in pnpm-lock.yaml to their latest beta versions, including rolldown and related bindings. - Adjusted TypeScript configuration in apps/ssr to change JSX setting from "react-jsx" to "preserve". - Modified loading animations in UI components to include a duration of 1000ms for smoother transitions. Signed-off-by: Innei <tukon479@gmail.com>
1 parent 7469444 commit 74222cb

File tree

14 files changed

+113
-114
lines changed

14 files changed

+113
-114
lines changed

apps/ssr/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/dev/types/routes.d.ts'
3+
/// <reference path="./.next/types/routes.d.ts" />
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/ssr/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"resolveJsonModule": true,
1818
"isolatedModules": true,
1919
"allowImportingTsExtensions": true,
20-
"jsx": "react-jsx",
20+
"jsx": "preserve",
2121
"plugins": [
2222
{
2323
"name": "next"

apps/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@t3-oss/env-core": "catalog:",
4242
"@tanstack/react-query": "5.90.5",
4343
"@use-gesture/react": "10.3.1",
44-
"@uswriting/exiftool": "1.0.5",
44+
"@uswriting/exiftool": "1.0.3",
4545
"blurhash": "2.0.5",
4646
"clsx": "2.1.1",
4747
"consola": "3.4.2",
@@ -115,4 +115,4 @@
115115
"vite-plugin-html": "3.2.2",
116116
"vite-plugin-pwa": "1.1.0"
117117
}
118-
}
118+
}

apps/web/src/components/ui/button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const Button = ({
115115
<span className="pointer-events-none inline-flex items-center justify-center gap-1.5">
116116
<i
117117
className={cx(
118-
'shrink-0 animate-spin i-mingcute-loading-3-line',
118+
'shrink-0 animate-spin i-mingcute-loading-3-line !duration-1000',
119119
size === 'xs' || size === 'sm' ? 'size-3' : 'size-4',
120120
)}
121121
aria-hidden="true"

apps/web/src/components/ui/dialog/dialog.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import * as React from 'react'
55
import { clsxm } from '~/lib/cn'
66
import { Spring } from '~/lib/spring'
77

8+
import { useRootPortal } from '../portal/provider'
9+
810
const DialogContext = React.createContext<{ open: boolean }>({ open: false })
911

1012
const Dialog = ({
@@ -43,10 +45,11 @@ const DialogPortal = ({
4345
...props
4446
}: React.ComponentProps<typeof DialogPrimitive.Portal>) => {
4547
const { open } = React.use(DialogContext)
48+
const to = useRootPortal()
4649

4750
return (
48-
<DialogPrimitive.Portal forceMount {...props}>
49-
<AnimatePresence>{open && children}</AnimatePresence>
51+
<DialogPrimitive.Portal container={to} forceMount {...props}>
52+
<AnimatePresence mode="wait">{open && children}</AnimatePresence>
5053
</DialogPrimitive.Portal>
5154
)
5255
}
@@ -95,7 +98,7 @@ const DialogContent = ({
9598
{...props}
9699
>
97100
<m.div
98-
className="border-accent/20 relative gap-4 overflow-hidden rounded-2xl border p-6 backdrop-blur-2xl"
101+
className="border-accent/20 gap-4 overflow-hidden rounded-2xl border p-6 backdrop-blur-2xl"
99102
style={{
100103
backgroundImage:
101104
'linear-gradient(to bottom right, color-mix(in srgb, var(--color-background) 98%, transparent), color-mix(in srgb, var(--color-background) 95%, transparent))',
@@ -123,7 +126,7 @@ const DialogContent = ({
123126
/>
124127

125128
{/* Content */}
126-
<div className="relative">{children}</div>
129+
<div className="relative flex h-0 flex-1 flex-col">{children}</div>
127130
</m.div>
128131
</DialogPrimitive.Content>
129132
</DialogPortal>

apps/web/src/components/ui/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export const LoadingCircle: Component<LoadingCircleProps> = ({
1414
size,
1515
}) => (
1616
<div className={clsxm(sizeMap[size], className)}>
17-
<i className="i-mingcute-loading-3-line animate-spin" />
17+
<i className="i-mingcute-loading-3-line animate-spin !duration-1000" />
1818
</div>
1919
)

apps/web/src/components/ui/photo-viewer/HistogramChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export const HistogramChart: FC<{
258258
<div className={cx('relative grow w-full h-32 group', className)}>
259259
{loading && (
260260
<div className="bg-material-ultra-thin absolute inset-0 flex items-center justify-center rounded-sm backdrop-blur-xl">
261-
<div className="i-mingcute-loading-3-line animate-spin text-xl" />
261+
<div className="i-mingcute-loading-3-line animate-spin text-xl !duration-1000" />
262262
</div>
263263
)}
264264
{error && (

apps/web/src/components/ui/photo-viewer/LoadingIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const LoadingIndicator = ({
8585
{loadingState.isError ? (
8686
<div className="i-mingcute-warning-line text-lg text-red-400" />
8787
) : (
88-
<div className="i-mingcute-loading-3-line animate-spin text-lg" />
88+
<div className="i-mingcute-loading-3-line animate-spin text-lg !duration-1000" />
8989
)}
9090
</div>
9191
<div className="flex min-w-0 flex-col gap-0.5">

apps/web/src/components/ui/photo-viewer/RawExifViewer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ export const RawExifViewer: React.FC<RawExifViewerProps> = ({
307307
const response = await fetch(currentPhoto.originalUrl)
308308
const blob = await response.blob()
309309
const data = await ExifToolManager.parse(blob, currentPhoto.s3Key)
310+
310311
setRawExifData(data || null)
311312
setIsOpen(true)
312313
} catch (error) {
@@ -347,7 +348,7 @@ export const RawExifViewer: React.FC<RawExifViewerProps> = ({
347348
className="cursor-pointer text-white/70 duration-200 hover:text-white disabled:cursor-not-allowed disabled:opacity-50"
348349
>
349350
{isLoading ? (
350-
<i className="i-mingcute-loading-3-line animate-spin" />
351+
<i className="i-mingcute-loading-3-line animate-spin !duration-1000" />
351352
) : (
352353
<i className="i-mingcute-braces-line" />
353354
)}
@@ -368,7 +369,7 @@ export const RawExifViewer: React.FC<RawExifViewerProps> = ({
368369

369370
{isLoading && (
370371
<div className="flex h-full grow flex-col items-center justify-center gap-4 text-white/70">
371-
<i className="i-mingcute-loading-3-line animate-spin text-3xl" />
372+
<i className="i-mingcute-loading-3-line animate-spin text-3xl !duration-1000" />
372373
<span className="text-sm">
373374
{t('exif.raw.loading', {
374375
defaultValue: 'Loading EXIF data...',

apps/web/src/components/ui/sonner.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ const Toaster = ({ ...props }: ToasterProps) => {
7272
error: <i className="i-mingcute-close-circle-fill" />,
7373
warning: <i className="i-mingcute-warning-fill" />,
7474
info: <i className="i-mingcute-information-fill" />,
75-
loading: <i className="i-mingcute-loading-3-fill animate-spin" />,
75+
loading: (
76+
<i className="i-mingcute-loading-3-fill animate-spin !duration-1000" />
77+
),
7678
}}
7779
{...props}
7880
/>

0 commit comments

Comments
 (0)