Skip to content

High performance self-hosted photo and video management solution.

fix(deps): update dependency @immich/ui to ^0.90.0 (#31720)

renovate[bot]d7bd9613999d
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a4b0efb43b..50161b15c2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -801,8 +801,8 @@ importers:
specifier: workspace:*
version: link:../packages/sdk
'@immich/ui':
- specifier: ^0.86.0
+ specifier: ^0.90.0
'@mdi/js':
specifier: ^7.4.47
version: 7.4.47
@@ -3125,8 +3125,8 @@ packages:
resolution: {integrity: sha512-I51fFDxSdvlxyMqmzYvWFP1tSe/EON2xLNNu4hbCF3IIccO0VohY3T7dJJFdRuCJznDjp7Ijr/kFjOnjYVRiWQ==}
hasBin: true
- '@immich/[email protected]':
- resolution: {integrity: sha512-fYasHw5DcEOiEQh0iDjn/pt7xj4fSjU0qCmrVqD+7HblAW1KhTmg27GHm0RwNlTsrKdNroiXH+WszL6eyxvjdg==}
+ '@immich/[email protected]':
+ resolution: {integrity: sha512-bQY5K1af/m8p66jTZyzGSfUvfzAQZd3+8z+9nMGPb5wojTZODU81s+TSg/zNE93DcXY2++DdRpdf2nrPH1Nbpw==}
peerDependencies:
'@sveltejs/kit': ^2.13.0
svelte: ^5.0.0
@@ -16270,7 +16270,7 @@ snapshots:
pg-connection-string: 2.14.0
postgres: 3.4.9
dependencies:
'@internationalized/date': 3.12.2
'@mdi/js': 7.4.47
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 9bc26d73bc..60211ab8b0 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -67,6 +67,6 @@ injectWorkspacePackages: true
shamefullyHoist: false
verifyDepsBeforeRun: install
minimumReleaseAgeExclude:
- - '@immich/[email protected]'
+ - '@immich/ui'
- '@immich/[email protected]'
- '@nestjs/[email protected]'
diff --git a/web/package.json b/web/package.json
index 692548872a..1fc11f8cdc 100644
--- a/web/package.json
+++ b/web/package.json
@@ -27,7 +27,7 @@
"@formatjs/icu-messageformat-parser": "^3.0.0",
"@immich/justified-layout-wasm": "^0.4.3",
"@immich/sdk": "workspace:*",
- "@immich/ui": "^0.86.0",
+ "@immich/ui": "^0.90.0",
"@mdi/js": "^7.4.47",
"@noble/hashes": "^2.2.0",
"@photo-sphere-viewer/core": "^5.14.0",
diff --git a/web/src/lib/components/ActionMenuItem.svelte b/web/src/lib/components/ActionMenuItem.svelte
index 32434c1b8f..b1f041cdfe 100644
--- a/web/src/lib/components/ActionMenuItem.svelte
+++ b/web/src/lib/components/ActionMenuItem.svelte
@@ -12,5 +12,5 @@
</script>
{#if icon && isEnabled(action)}
- <MenuOption {icon} text={title} onClick={() => onAction(action)} />
+ <MenuOption {icon} text={title} onClick={(event: Event) => onAction({ event, action })} />
{/if}
diff --git a/web/src/lib/components/BreadcrumbActionPage.svelte b/web/src/lib/components/BreadcrumbActionPage.svelte
index b47c189881..451a285a57 100644
--- a/web/src/lib/components/BreadcrumbActionPage.svelte
+++ b/web/src/lib/components/BreadcrumbActionPage.svelte
@@ -43,7 +43,7 @@
size="small"
color={action.color ?? 'secondary'}
leadingIcon={action.icon}
- onclick={() => action.onAction(action)}
+ onclick={(event: MouseEvent) => action.onAction({ event, action })}
title={action.data?.title}
>
{action.title}
diff --git a/web/src/lib/components/HeaderActionButton.svelte b/web/src/lib/components/HeaderActionButton.svelte
index e68a4a920d..d9ca2497ab 100644
--- a/web/src/lib/components/HeaderActionButton.svelte
+++ b/web/src/lib/components/HeaderActionButton.svelte
@@ -17,7 +17,7 @@
size="small"
{color}
leadingIcon={icon}
- onclick={() => onAction(action)}
+ onclick={(event: MouseEvent) => onAction({ event, action })}
title={action.data?.title}
>
{title}
diff --git a/web/src/lib/components/TableButton.svelte b/web/src/lib/components/TableButton.svelte
index 619d2f6c27..d16e40cbf0 100644
--- a/web/src/lib/components/TableButton.svelte
+++ b/web/src/lib/components/TableButton.svelte
@@ -11,5 +11,12 @@
</script>
{#if icon && (action.$if?.() ?? true)}
- <IconButton {size} shape="round" color="primary" {icon} aria-label={title} onclick={() => onAction(action)} />
+ <IconButton
+ {size}
+ shape="round"
+ color="primary"
+ {icon}
+ aria-label={title}
+ onclick={(event: MouseEvent) => onAction({ event, action })}
+ />
{/if}
diff --git a/web/src/lib/components/layouts/UserPageLayout.svelte b/web/src/lib/components/layouts/UserPageLayout.svelte
index 9e0bb86d4e..6bce18f69b 100644
--- a/web/src/lib/components/layouts/UserPageLayout.svelte
+++ b/web/src/lib/components/layouts/UserPageLayout.svelte
@@ -91,7 +91,7 @@
size="small"
color={action.color ?? 'secondary'}
leadingIcon={action.icon}
- onclick={() => action.onAction(action)}
+ onclick={(event: MouseEvent) => action.onAction({ event, action })}
title={action.data?.title}
>
{action.title}
diff --git a/web/src/lib/components/shared-components/EmptyPlaceholder.svelte b/web/src/lib/components/shared-components/EmptyPlaceholder.svelte
index c7598829d9..d6cccf55be 100644
--- a/web/src/lib/components/shared-components/EmptyPlaceholder.svelte
+++ b/web/src/lib/components/shared-components/EmptyPlaceholder.svelte
@@ -2,7 +2,7 @@
import empty1Url from '$lib/assets/empty-1.svg';
interface Props {
- onClick?: undefined | (() => unknown);
+ onClick?: undefined | ((event: MouseEvent) => unknown);
text: string;
fullWidth?: boolean;
src?: string;
diff --git a/web/src/lib/components/shared-components/context-menu/MenuOption.svelte b/web/src/lib/components/shared-components/context-menu/MenuOption.svelte
index fe39b36c8e..4f629ca12a 100644
--- a/web/src/lib/components/shared-components/context-menu/MenuOption.svelte
+++ b/web/src/lib/components/shared-components/context-menu/MenuOption.svelte
@@ -11,7 +11,7 @@
icon?: IconLike;
activeColor?: string;
textColor?: string;
- onClick: () => void;
+ onClick: (event: KeyboardEvent | MouseEvent) => void;
shortcut?: Shortcut | null;
shortcutLabel?: string;
}
@@ -31,10 +31,10 @@
let isActive = $derived($selectedIdStore === id);
- const handleClick = () => {
+ const handleClick = (event: MouseEvent) => {
// eslint-disable-next-line unicorn/no-optional-chaining-on-undeclared-variable
$optionClickCallbackStore?.();
- onClick();
+ onClick(event);
};
if (shortcut && !shortcutLabel) {
diff --git a/web/src/routes/(user)/user-settings/UserApiKeyList.svelte b/web/src/routes/(user)/user-settings/UserApiKeyList.svelte
index d9f89f1765..de4dda9dae 100644
--- a/web/src/routes/(user)/user-settings/UserApiKeyList.svelte
+++ b/web/src/routes/(user)/user-settings/UserApiKeyList.svelte
@@ -35,7 +35,12 @@
<section class="my-4">
<div class="flex flex-col gap-2 sm:ms-8" in:fade={{ duration: 500 }}>
<div class="mb-2 flex justify-end">
- <Button leadingIcon={Create.icon} shape="round" size="small" onclick={() => Create.onAction(Create)}>
+ <Button
+ leadingIcon={Create.icon}
+ shape="round"
+ size="small"
+ onclick={(event: MouseEvent) => Create.onAction({ event, action: Create })}
+ >
{Create.title}
</Button>
</div>
diff --git a/web/src/routes/(user)/workflows/+page.svelte b/web/src/routes/(user)/workflows/+page.svelte
index 91bea47bc0..cbaa6df925 100644
--- a/web/src/routes/(user)/workflows/+page.svelte
+++ b/web/src/routes/(user)/workflows/+page.svelte
@@ -68,7 +68,7 @@
fullWidth
title={$t('create_first_workflow')}
text={$t('workflows_help_text')}
- onClick={() => Create.onAction(Create)}
+ onClick={(event: MouseEvent) => Create.onAction({ event, action: Create })}
src={emptyWorkflows}
class="mx-auto mt-10"
/>