From 423777e1372631b8ea8d06913ce55fbdf97f1f07 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:03:54 +0800 Subject: [PATCH 01/80] fix: mark as read when navigating --- .../src/modules/entry-column/layouts/EntryItemWrapper.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx index 687efe9a1..7f3428b15 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx @@ -59,11 +59,14 @@ export const EntryItemWrapper: FC< (e) => { e.stopPropagation() + if (!asRead) { + entryActions.markRead({ feedId: entry.feedId, entryId: entry.entries.id, read: true }) + } navigate({ entryId: entry.entries.id, }) }, - [entry.entries.id, navigate], + [asRead, entry.entries.id, entry.feedId, navigate], ) const handleDoubleClick: React.MouseEventHandler = useCallback( () => entry.entries.url && window.open(entry.entries.url, "_blank"), From c67248ffc8d77cbdeac289f5ed398248dff41cb3 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:13:37 +0800 Subject: [PATCH 02/80] fix: media item dot position on mobile --- .../src/modules/entry-column/Items/social-media-item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx index 7fd2dcfb0..b2ddfbf31 100644 --- a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx @@ -56,7 +56,7 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl "relative flex px-2 py-6 lg:px-8", "group", !asRead && - "before:absolute before:left-2 before:top-10 before:block before:size-2 before:rounded-full before:bg-accent", + "before:absolute before:-left-1 before:top-10 before:block before:size-2 before:rounded-full before:bg-accent md:before:-left-2 lg:before:left-2", )} > From 279e4025a5b14ad5cf5972bf439d2a30ce7d7d79 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:25:46 +0800 Subject: [PATCH 03/80] fix: remove mouse enter event on mobile --- .../entry-column/Items/social-media-item.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx index b2ddfbf31..cbefd465d 100644 --- a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx @@ -1,8 +1,9 @@ +import { useMobile } from "@follow/components/hooks/useMobile.js" import { ActionButton } from "@follow/components/ui/button/index.js" import { Skeleton } from "@follow/components/ui/skeleton/index.jsx" import { cn } from "@follow/utils/utils" import { atom } from "jotai" -import { useLayoutEffect, useRef, useState } from "react" +import { useLayoutEffect, useMemo, useRef, useState } from "react" import { RelativeTime } from "~/components/ui/datetime" import { Media } from "~/components/ui/media" @@ -34,6 +35,17 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl const ref = useRef(null) const [showAction, setShowAction] = useState(false) + + const isMobile = useMobile() + const handleMouseEnter = useMemo(() => { + if (isMobile) return + return () => setShowAction(true) + }, [isMobile]) + const handleMouseLeave = useMemo(() => { + if (isMobile) return + return () => setShowAction(false) + }, [isMobile]) + useLayoutEffect(() => { if (ref.current) { jotaiStore.set(socialMediaContentWidthAtom, ref.current.offsetWidth) @@ -50,8 +62,8 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl return (
setShowAction(true)} - onMouseLeave={() => setShowAction(false)} + onMouseEnter={handleMouseEnter} + onMouseLeave={handleMouseLeave} className={cn( "relative flex px-2 py-6 lg:px-8", "group", From f3bf46724322e42bc690e3f3f1f6b1f3c719e72b Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:55:54 +0800 Subject: [PATCH 04/80] chore: update hono type --- packages/shared/src/hono.ts | 79 +++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/packages/shared/src/hono.ts b/packages/shared/src/hono.ts index e66e2bf10..2fef3566a 100644 --- a/packages/shared/src/hono.ts +++ b/packages/shared/src/hono.ts @@ -1435,6 +1435,14 @@ declare const CommonEntryFields: { }>; attachments: drizzle_orm.$Type, AttachmentsModel[]>; extra: drizzle_orm.$Type, ExtraModel>; + language: drizzle_orm_pg_core.PgTextBuilder<{ + name: "language"; + dataType: "string"; + columnType: "PgText"; + data: string; + enumValues: [string, ...string[]]; + driverParam: string; + }>; }; declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{ name: "entries"; @@ -1711,6 +1719,23 @@ declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + language: drizzle_orm_pg_core.PgColumn<{ + name: "language"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; feedId: drizzle_orm_pg_core.PgColumn<{ name: "feed_id"; tableName: "entries"; @@ -1959,6 +1984,7 @@ declare const entriesOpenAPISchema: z.ZodObject>; + language: z.ZodNullable; feedId: z.ZodString; }, "media" | "attachments" | "extra">, { attachments: z.ZodNullable; + language: drizzle_orm_pg_core.PgColumn<{ + name: "language"; + tableName: "inboxes_entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; inboxHandle: drizzle_orm_pg_core.PgColumn<{ name: "inbox_handle"; tableName: "inboxes_entries"; @@ -3269,6 +3314,7 @@ declare const inboxesEntriesOpenAPISchema: z.ZodObject>; + language: z.ZodNullable; inboxHandle: z.ZodString; read: z.ZodNullable; }, "media" | "attachments" | "extra">, { @@ -3347,6 +3393,7 @@ declare const inboxesEntriesOpenAPISchema: z.ZodObject; author: z.ZodOptional>; url: z.ZodOptional>; + language: z.ZodOptional>; guid: z.ZodString; media: z.ZodOptional; + language: drizzle_orm_pg_core.PgColumn<{ + name: "language"; + tableName: "lists"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; ownerUserId: drizzle_orm_pg_core.PgColumn<{ name: "owner_user_id"; tableName: "lists"; @@ -4101,6 +4169,7 @@ declare const listsOpenAPISchema: zod.ZodObject<{ view: zod.ZodNumber; fee: zod.ZodNumber; timelineUpdatedAt: zod.ZodString; + language: zod.ZodNullable; ownerUserId: zod.ZodString; }, zod.UnknownKeysParam, zod.ZodTypeAny, { description: string | null; @@ -4108,6 +4177,7 @@ declare const listsOpenAPISchema: zod.ZodObject<{ id: string; image: string | null; view: number; + language: string | null; ownerUserId: string; feedIds: string[]; fee: number; @@ -4118,6 +4188,7 @@ declare const listsOpenAPISchema: zod.ZodObject<{ id: string; image: string | null; view: number; + language: string | null; ownerUserId: string; feedIds: string[]; fee: number; @@ -6053,6 +6124,7 @@ declare const _routes: hono_hono_base.HonoBase Date: Fri, 29 Nov 2024 21:35:30 +0800 Subject: [PATCH 05/80] fix: can not show context menu on subscription sheet --- .../src/modules/entry-column/layouts/EntryListHeader.mobile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx index af54d1214..f7704969f 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx @@ -160,7 +160,7 @@ export const EntryListHeader: FC = ({ refetch, isRefreshin const FollowSubscriptionButton = () => { return ( } From d98ebaa4f74a09d4f6eb4d29afd0eac30f289ddf Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 29 Nov 2024 22:51:37 +0800 Subject: [PATCH 06/80] refactor: vlist and keep scroll position (#1931) * init Signed-off-by: Innei * feat: grid Signed-off-by: Innei * refactor: mark read logci Signed-off-by: Innei * chore: remove react-virtuoso Signed-off-by: Innei * fix: video Signed-off-by: Innei * transition Signed-off-by: Innei * fix: image memo loaded status Signed-off-by: Innei * fix: sort button Signed-off-by: Innei * feat: cjk truncate Signed-off-by: Innei --------- Signed-off-by: Innei --- apps/renderer/package.json | 2 +- apps/renderer/src/components/ui/media.tsx | 13 +- .../app-layout/entry-column/mobile.tsx | 3 +- .../feed-column/float-bar.mobile.tsx | 21 +- .../app-layout/feed-column/mobile.module.css | 9 - .../EntryColumnShortcutHandler.tsx | 13 +- .../entry-column/Items/article-item.tsx | 2 +- .../entry-column/Items/notification-item.tsx | 2 +- .../entry-column/Items/picture-item.tsx | 2 +- .../entry-column/Items/picture-masonry.tsx | 4 +- .../entry-column/components/DateItem.tsx | 88 ++--- .../src/modules/entry-column/grid.tsx | 286 ++++++++++++++++ .../{hooks.ts => hooks/useEntriesByView.ts} | 85 +---- .../hooks/useEntryMarkReadHandler.tsx | 55 ++++ .../src/modules/entry-column/index.tsx | 286 +++++----------- .../entry-column/layouts/EntryItemWrapper.tsx | 2 +- .../layouts/EntryListHeader.mobile.tsx | 2 +- .../entry-column/layouts/TimelineTabs.tsx | 6 +- .../src/modules/entry-column/list.tsx | 310 ++++++++++++++++++ .../src/modules/entry-column/lists.tsx | 156 --------- .../src/modules/entry-column/styles.ts | 2 +- .../modules/entry-column/wrapper.desktop.tsx | 4 +- .../modules/entry-column/wrapper.mobile.tsx | 5 +- .../modules/entry-column/wrapper.shared.tsx | 3 +- .../components/EntryReadHistory.shared.tsx | 5 +- .../src/modules/feed-column/list.shared.tsx | 12 +- apps/renderer/src/modules/feed/feed-icon.tsx | 12 +- .../mgc/numbers_09_sort_ascending_cute_re.svg | 1 + .../numbers_09_sort_descending_cute_re.svg | 1 + .../mgc/numbers_90_sort_ascending_cute_re.svg | 1 + .../numbers_90_sort_descending_cute_re.svg | 1 + package.json | 3 +- .../src/providers/event-provider.tsx | 3 + packages/components/src/ui/avatar/index.tsx | 13 +- .../src/ui/scroll-area/ScrollArea.tsx | 2 +- packages/components/src/ui/tabs/index.tsx | 3 - packages/utils/src/cjk.ts | 21 ++ packages/utils/src/lru-cache.test.ts | 63 ++++ packages/utils/src/lru-cache.ts | 57 ++++ patches/@tanstack__react-virtual@3.10.9.patch | 14 + pnpm-lock.yaml | 37 +-- 41 files changed, 1019 insertions(+), 591 deletions(-) delete mode 100644 apps/renderer/src/modules/app-layout/feed-column/mobile.module.css create mode 100644 apps/renderer/src/modules/entry-column/grid.tsx rename apps/renderer/src/modules/entry-column/{hooks.ts => hooks/useEntriesByView.ts} (77%) create mode 100644 apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx create mode 100644 apps/renderer/src/modules/entry-column/list.tsx delete mode 100644 apps/renderer/src/modules/entry-column/lists.tsx create mode 100644 icons/mgc/numbers_09_sort_ascending_cute_re.svg create mode 100644 icons/mgc/numbers_09_sort_descending_cute_re.svg create mode 100644 icons/mgc/numbers_90_sort_ascending_cute_re.svg create mode 100644 icons/mgc/numbers_90_sort_descending_cute_re.svg create mode 100644 packages/utils/src/cjk.ts create mode 100644 packages/utils/src/lru-cache.test.ts create mode 100644 packages/utils/src/lru-cache.ts create mode 100644 patches/@tanstack__react-virtual@3.10.9.patch diff --git a/apps/renderer/package.json b/apps/renderer/package.json index c5668a6ac..efc6a1412 100644 --- a/apps/renderer/package.json +++ b/apps/renderer/package.json @@ -38,6 +38,7 @@ "@tanstack/react-query": "5.61.4", "@tanstack/react-query-devtools": "5.61.4", "@tanstack/react-query-persist-client": "5.61.4", + "@tanstack/react-virtual": "3.10.9", "@use-gesture/react": "10.3.1", "@welldone-software/why-did-you-render": "8.0.3", "@yornaath/batshit": "0.10.1", @@ -88,7 +89,6 @@ "react-router": "7.0.1", "react-selecto": "^1.26.3", "react-shadow": "20.5.0", - "react-virtuoso": "4.12.2", "react-zoom-pan-pinch": "^3.6.1", "rehype-infer-description-meta": "2.0.0", "rehype-parse": "9.0.1", diff --git a/apps/renderer/src/components/ui/media.tsx b/apps/renderer/src/components/ui/media.tsx index 9116c4aa1..a0b4e5257 100644 --- a/apps/renderer/src/components/ui/media.tsx +++ b/apps/renderer/src/components/ui/media.tsx @@ -22,6 +22,8 @@ type BaseProps = { inline?: boolean fitContent?: boolean } + +const isImageLoadedSet = new Set() export type MediaProps = BaseProps & ( | (ImgHTMLAttributes & { @@ -103,7 +105,12 @@ const MediaImpl: FC = ({ [currentState, previewImageUrl, proxy?.width, proxy?.height], ) - const [mediaLoadState, setMediaLoadState] = useState<"loading" | "loaded">("loading") + const [mediaLoadState, setMediaLoadState] = useState<"loading" | "loaded">(() => { + if (imgSrc) { + return isImageLoadedSet.has(imgSrc) ? "loaded" : "loading" + } + return "loading" + }) const errorHandle: React.ReactEventHandler = useEventCallback(() => { switch (currentState) { @@ -158,6 +165,10 @@ const MediaImpl: FC = ({ const handleOnLoad: React.ReactEventHandler = useEventCallback((e) => { setMediaLoadState("loaded") rest.onLoad?.(e as any) + + if (imgSrc) { + isImageLoadedSet.add(imgSrc) + } if ("cacheDimensions" in props && props.cacheDimensions && src) { saveImageDimensionsToDb(src, { src, diff --git a/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx b/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx index 9b88f74ae..568ae315c 100644 --- a/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx +++ b/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx @@ -24,8 +24,9 @@ export const EntryColumnMobile = () => { return () => clearTimeout(timer) }, [view]) usePreventOverscrollBounce() + return ( -
+
{isStartupTimeline && ( diff --git a/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx b/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx index 5d65af603..50daadcec 100644 --- a/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx +++ b/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx @@ -18,7 +18,6 @@ import { feedIconSelector } from "~/store/feed/selector" import { useUnreadByView } from "~/store/unread/hooks" import { ProfileButton } from "../../user/ProfileButton" -import styles from "./mobile.module.css" export const MobileFloatBar = ({ scrollContainer, @@ -74,22 +73,28 @@ export const MobileFloatBar = ({ }, [isScrollDown, animateController]) return ( - -
+ -
-
+ +
) } diff --git a/apps/renderer/src/modules/app-layout/feed-column/mobile.module.css b/apps/renderer/src/modules/app-layout/feed-column/mobile.module.css deleted file mode 100644 index 3d6256149..000000000 --- a/apps/renderer/src/modules/app-layout/feed-column/mobile.module.css +++ /dev/null @@ -1,9 +0,0 @@ -.float-bar { - @apply min-w-0 mx-4 rounded-full border bg-background dark:border-neutral-800 shadow-sm shadow-zinc-100 border-neutral-200 h-10 inline-flex items-center pl-4 pr-2; - - box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12); -} - -[data-theme="dark"] .float-bar { - box-shadow: 0px 8px 30px rgba(122, 122, 122, 0.2); -} diff --git a/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx b/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx index 83ef9a838..998e2718b 100644 --- a/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx +++ b/apps/renderer/src/modules/entry-column/EntryColumnShortcutHandler.tsx @@ -2,7 +2,6 @@ import { useRefValue } from "@follow/hooks" import type { FC } from "react" import { memo, useLayoutEffect, useState } from "react" import { useHotkeys } from "react-hotkeys-hook" -import type { VirtuosoHandle } from "react-virtuoso" import { useMainContainerElement } from "~/atoms/dom" import { HotKeyScopeMap } from "~/constants" @@ -13,8 +12,8 @@ import { useRouteEntryId } from "~/hooks/biz/useRouteParams" export const EntryColumnShortcutHandler: FC<{ refetch: () => void data: readonly string[] - virtuosoRef: React.RefObject -}> = memo(({ data, refetch, virtuosoRef }) => { + handleScrollTo: (index: number) => void +}> = memo(({ data, refetch, handleScrollTo }) => { const dataRef = useRefValue(data!) useHotkeys( @@ -58,9 +57,7 @@ export const EntryColumnShortcutHandler: FC<{ const nextIndex = Math.min(currentActiveEntryIndex + 1, data.length - 1) - virtuosoRef.current?.scrollIntoView?.({ - index: nextIndex, - }) + handleScrollTo(nextIndex) const nextId = data![nextIndex] navigate({ @@ -78,9 +75,7 @@ export const EntryColumnShortcutHandler: FC<{ const nextIndex = currentActiveEntryIndex === -1 ? data.length - 1 : Math.max(0, currentActiveEntryIndex - 1) - virtuosoRef.current?.scrollIntoView?.({ - index: nextIndex, - }) + handleScrollTo(nextIndex) const nextId = data![nextIndex] navigate({ diff --git a/apps/renderer/src/modules/entry-column/Items/article-item.tsx b/apps/renderer/src/modules/entry-column/Items/article-item.tsx index f2f77158d..03be07f50 100644 --- a/apps/renderer/src/modules/entry-column/Items/article-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/article-item.tsx @@ -58,7 +58,7 @@ export function ArticleItemStateLess({ entry, feed }: EntryItemStatelessProps) { } export const ArticleItemSkeleton = ( -
+
diff --git a/apps/renderer/src/modules/entry-column/Items/notification-item.tsx b/apps/renderer/src/modules/entry-column/Items/notification-item.tsx index a7f62cb34..d20aca27b 100644 --- a/apps/renderer/src/modules/entry-column/Items/notification-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/notification-item.tsx @@ -33,7 +33,7 @@ export function NotificationItemStateLess({ entry, feed }: EntryItemStatelessPro export const NotificationItemSkeleton = (
- +
diff --git a/apps/renderer/src/modules/entry-column/Items/picture-item.tsx b/apps/renderer/src/modules/entry-column/Items/picture-item.tsx index c2e6f0b20..48e128054 100644 --- a/apps/renderer/src/modules/entry-column/Items/picture-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/picture-item.tsx @@ -46,7 +46,7 @@ export function PictureItem({ entryId, entryPreview, translation }: UniversalIte media={entry.entries.media} className={cn( "aspect-square", - "w-full shrink-0 rounded-md", + "w-full shrink-0 rounded-md [&_img]:rounded-md", isActive && "rounded-b-none", )} imgClassName="object-cover" diff --git a/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx b/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx index 6cb6c8bb1..4cef49e98 100644 --- a/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx +++ b/apps/renderer/src/modules/entry-column/Items/picture-masonry.tsx @@ -33,7 +33,7 @@ import { getEntry } from "~/store/entry" import { imageActions } from "~/store/image" import { getMasonryColumnValue, setMasonryColumnValue, useMasonryColumnValue } from "../atoms" -import { batchMarkRead } from "../hooks" +import { batchMarkRead } from "../hooks/useEntryMarkReadHandler" import { PictureWaterFallItem } from "./picture-item" // grid grid-cols-1 @lg:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-4 @7xl:grid-cols-5 px-4 gap-1.5 @@ -262,7 +262,7 @@ const MasonryRender: React.ComponentType< } interface MasonryProps { data: string[] - endReached: () => Promise + endReached: () => any hasNextPage: boolean } diff --git a/apps/renderer/src/modules/entry-column/components/DateItem.tsx b/apps/renderer/src/modules/entry-column/components/DateItem.tsx index 41a5cb539..bf50554cf 100644 --- a/apps/renderer/src/modules/entry-column/components/DateItem.tsx +++ b/apps/renderer/src/modules/entry-column/components/DateItem.tsx @@ -1,21 +1,10 @@ import { ActionButton } from "@follow/components/ui/button/index.js" -import { useScrollViewElement } from "@follow/components/ui/scroll-area/hooks.js" import { FeedViewType } from "@follow/constants" import { stopPropagation } from "@follow/utils/dom" import { cn } from "@follow/utils/utils" -import { throttle } from "es-toolkit/compat" import { m } from "framer-motion" import type { FC, PropsWithChildren } from "react" -import { - cloneElement, - memo, - useCallback, - useId, - useLayoutEffect, - useMemo, - useRef, - useState, -} from "react" +import { cloneElement, memo, useCallback, useId, useMemo, useRef, useState } from "react" import { Trans } from "react-i18next" import { useDebounceCallback } from "usehooks-ts" @@ -27,6 +16,20 @@ import { isListSubscription } from "~/store/subscription" import { useMarkAllByRoute } from "../hooks/useMarkAll" +interface DateItemInnerProps { + date: Date + startTime: number + endTime: number + className?: string + Wrapper?: FC + isSticky?: boolean +} + +type DateItemProps = Pick & { + view: FeedViewType + date: string + className?: string +} const useParseDate = (date: string) => useMemo(() => { const dateObj = new Date(date) @@ -37,57 +40,36 @@ const useParseDate = (date: string) => } }, [date]) -const useSticky = () => { - const $scroller = useScrollViewElement() - const itemRef = useRef(null) - - const [isSticky, setIsSticky] = useState(false) - useLayoutEffect(() => { - const $ = itemRef.current?.parentElement - if (!$) return - const handler = throttle((e: HTMLElementEventMap["scroll"]) => { - if ((e.target as HTMLElement).scrollTop < 10) { - setIsSticky(false) - return - } - const isSticky = $.offsetTop <= 0 - - setIsSticky(isSticky) - }, 16) - $scroller?.addEventListener("scroll", handler) - return () => { - $scroller?.removeEventListener("scroll", handler) - } - }, [$scroller]) - - return { isSticky, itemRef } -} -export const DateItem = memo(({ date, view }: { date: string; view: FeedViewType }) => { - const className = cn( - "lg:pt-2", - `relative -mx-2 flex items-center gap-1 bg-background px-4 text-base font-bold text-zinc-800 dark:text-neutral-400`, - ) +export const DateItem = memo(({ date, view, isSticky }: DateItemProps) => { + const className = tw`relative flex items-center text-sm lg:text-base gap-1 bg-background px-4 font-bold text-zinc-800 dark:text-neutral-400 h-7` if (view === FeedViewType.SocialMedia) { return } - return + return }) -const UniversalDateItem = ({ date, className }: { date: string; className?: string }) => { +const UniversalDateItem = ({ date, className, isSticky }: Omit) => { const { startOfDay, endOfDay, dateObj } = useParseDate(date) return ( - + ) } -const DateItemInner: FC<{ - date: Date - startTime: number - endTime: number - className?: string - Wrapper?: FC -}> = ({ date, endTime, startTime, className, Wrapper }) => { +const DateItemInner: FC = ({ + date, + endTime, + startTime, + className, + Wrapper, + isSticky, +}) => { const rid = useId() const RelativeElement = useMemo( () => ( @@ -102,7 +84,6 @@ const DateItemInner: FC<{ startTime, endTime, }) - const { isSticky, itemRef } = useSticky() const [confirmMark, setConfirmMark] = useState(false) const removeConfirm = useDebounceCallback( @@ -125,7 +106,6 @@ const DateItemInner: FC<{ return (
= (props) => { + const { entriesIds, feedId, hasNextPage, view, fetchNextPage } = props + + const isMobile = useMobile() + const masonry = useUISettingKey("pictureViewMasonry") || isMobile + + const filterNoImage = useUISettingKey("pictureViewFilterNoImage") + const nextData = useMemo(() => { + if (filterNoImage) { + return entriesIds.filter((entryId) => { + const entry = getEntry(entryId) + return entry?.entries.media?.length && entry.entries.media.length > 0 + }) + } + return entriesIds + }, [entriesIds, filterNoImage]) + const { t } = useTranslation() + if (nextData.length === 0 && entriesIds.length > 0) { + return ( +
+ +
+ {t("entry_column.filtered_content_tip")} +
+ + +
+ ) + } + + const hasFilteredContent = nextData.length < entriesIds.length + + const FilteredContentTip = hasFilteredContent && !hasNextPage && ( +
+ +
{t("entry_column.filtered_content_tip_2")}
+ + +
+ ) + + if (masonry && view === FeedViewType.Pictures) { + return ( + <> + + + {FilteredContentTip} + + ) + } + return ( + <> + + {FilteredContentTip} + + ) +} + +const capacity = 3 * 2 +const offsetCache = new LRUCache(capacity) +const measurementsCache = new LRUCache(capacity) + +const ratioMap = { + [FeedViewType.Pictures]: 1, + // 16:9 + [FeedViewType.Videos]: 16 / 9, +} +const VirtualGrid: FC = (props) => { + const { entriesIds, feedId, onRangeChange, fetchNextPage, view, Footer, hasNextPage, listRef } = + props + const scrollRef = useScrollViewElement() + + const [containerWidth, setContainerWidth] = useState(0) + + const columns = useMemo(() => { + if (!scrollRef) return [0] + + const width = containerWidth + const rem = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) + let columnCount = 1 // default (grid-cols-1) + if (width >= 32 * rem) columnCount = 2 // @lg (32rem) + if (width >= 48 * rem) columnCount = 3 // @3xl (48rem) + if (width >= 72 * rem) columnCount = 4 // @6xl (72rem) + if (width >= 80 * rem) columnCount = 5 // @8xl (80rem) + + return Array.from({ length: columnCount }).fill(width / columnCount) as number[] + }, [containerWidth, scrollRef]) + + // Calculate rows based on entries + const rows = useMemo(() => { + const itemsPerRow = columns.length + const rowCount = Math.ceil(entriesIds.length / itemsPerRow) + return Array.from({ length: rowCount }, (_, index) => + entriesIds.slice(index * itemsPerRow, (index + 1) * itemsPerRow), + ) + }, [entriesIds, columns.length]) + + const rowCacheKey = `${feedId}-row` + const columnCacheKey = `${feedId}-column` + + const columnVirtualizer = useVirtualizer({ + horizontal: true, + count: columns.length, + getScrollElement: () => scrollRef, + estimateSize: (i) => columns[i], + overscan: 5, + initialOffset: offsetCache.get(columnCacheKey) ?? 0, + initialMeasurementsCache: measurementsCache.get(columnCacheKey) ?? [], + onChange: useTypeScriptHappyCallback( + (virtualizer: Virtualizer) => { + if (!virtualizer.isScrolling) { + measurementsCache.put(columnCacheKey, virtualizer.measurementsCache) + offsetCache.put(columnCacheKey, virtualizer.scrollOffset ?? 0) + } + }, + [columnCacheKey], + ), + }) + + const rowVirtualizer = useVirtualizer({ + count: rows.length + 1, + estimateSize: () => { + return columns[0] / ratioMap[view] + 58 + }, + overscan: 5, + gap: 8, + getScrollElement: () => scrollRef, + initialOffset: offsetCache.get(rowCacheKey) ?? 0, + initialMeasurementsCache: measurementsCache.get(rowCacheKey) ?? [], + paddingEnd: 32, + onChange: useTypeScriptHappyCallback( + (virtualizer: Virtualizer) => { + if (!virtualizer.isScrolling) { + measurementsCache.put(rowCacheKey, virtualizer.measurementsCache) + offsetCache.put(rowCacheKey, virtualizer.scrollOffset ?? 0) + } + + if (!virtualizer.range) return + + const columnCount = columns.length + const realRange = { + startIndex: virtualizer.range.startIndex * columnCount, + endIndex: virtualizer.range.endIndex * columnCount, + } + + onRangeChange?.(realRange as Range) + }, + [rowCacheKey, columns.length], + ), + }) + + useEffect(() => { + if (!listRef) return + listRef.current = rowVirtualizer + }, [rowVirtualizer, listRef]) + + useEffect(() => { + if (!scrollRef) return + const handler = () => { + const rem = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) + const width = scrollRef.clientWidth - 2 * rem + setContainerWidth(width) + + rowVirtualizer.measure() + columnVirtualizer.measure() + } + + const observer = new ResizeObserver(handler) + observer.observe(scrollRef) + return () => { + observer.disconnect() + } + }, [columnVirtualizer, rowVirtualizer, scrollRef]) + + const virtualItems = rowVirtualizer.getVirtualItems() + useEffect(() => { + const lastItem = virtualItems.at(-1) + + if (!lastItem) { + return + } + + const isPlaceholderRow = lastItem.index === rows.length + + if (isPlaceholderRow && hasNextPage) { + fetchNextPage() + } + }, [fetchNextPage, hasNextPage, rows.length, virtualItems]) + + const [ready, setReady] = useState(false) + + useEffect(() => { + startTransition(() => { + setReady(true) + }) + }, []) + + return ( +
+ {rowVirtualizer.getVirtualItems().map((virtualRow) => { + const isLoaderRow = virtualRow.key === rows.length + if (isLoaderRow && ready) { + return ( +
+ {Footer ? typeof Footer === "function" ?
: Footer : null} + {hasNextPage && } +
+ ) + } + return ( + + {columnVirtualizer.getVirtualItems().map((virtualColumn) => ( +
+ {ready && ( + + )} +
+ ))} +
+ ) + })} +
+ ) +} diff --git a/apps/renderer/src/modules/entry-column/hooks.ts b/apps/renderer/src/modules/entry-column/hooks/useEntriesByView.ts similarity index 77% rename from apps/renderer/src/modules/entry-column/hooks.ts rename to apps/renderer/src/modules/entry-column/hooks/useEntriesByView.ts index 92ab94102..66486a41a 100644 --- a/apps/renderer/src/modules/entry-column/hooks.ts +++ b/apps/renderer/src/modules/entry-column/hooks/useEntriesByView.ts @@ -1,11 +1,9 @@ import { views } from "@follow/constants" import { useMutation } from "@tanstack/react-query" import { useCallback, useEffect, useMemo, useRef, useState } from "react" -import type { ListRange } from "react-virtuoso" -import { useDebounceCallback } from "usehooks-ts" import { useGeneralSettingKey } from "~/atoms/settings/general" -import { useRouteParams, useRouteParamsSelector } from "~/hooks/biz/useRouteParams" +import { useRouteParams } from "~/hooks/biz/useRouteParams" import { useAuthQuery } from "~/hooks/common" import { apiClient, apiFetch } from "~/lib/api-fetch" import { entries, useEntries } from "~/queries/entries" @@ -13,46 +11,7 @@ import { entryActions, getEntry, useEntryIdsByFeedIdOrView } from "~/store/entry import { useFolderFeedsByFeedId } from "~/store/subscription" import { feedUnreadActions } from "~/store/unread" -export const useEntryMarkReadHandler = (entriesIds: string[]) => { - const renderAsRead = useGeneralSettingKey("renderMarkUnread") - const scrollMarkUnread = useGeneralSettingKey("scrollMarkUnread") - const feedView = useRouteParamsSelector((params) => params.view) - - const handleMarkReadInRange = useDebounceCallback( - async ({ startIndex }: ListRange) => { - const idSlice = entriesIds?.slice(0, startIndex) - - if (!idSlice) return - batchMarkRead(idSlice) - }, - 500, - { leading: false }, - ) - - const handleRenderAsRead = useCallback( - async ({ startIndex, endIndex }: ListRange, enabled?: boolean) => { - if (!enabled) return - const idSlice = entriesIds?.slice(startIndex, endIndex) - - if (!idSlice) return - batchMarkRead(idSlice) - }, - [entriesIds], - ) - - return useMemo(() => { - if (views[feedView].wideMode && renderAsRead) { - return handleRenderAsRead - } - - if (scrollMarkUnread) { - return handleMarkReadInRange - } - return - }, [feedView, handleMarkReadInRange, handleRenderAsRead, renderAsRead, scrollMarkUnread]) -} const anyString = [] as string[] - export const useEntriesByView = ({ onReset, isArchived, @@ -144,20 +103,11 @@ export const useEntriesByView = ({ } if (!isFetchingFirstPage) { prevEntryIdsRef.current = entryIds - setMergedEntries({ ...mergedEntries, [view]: entryIds }) + onReset?.() } }, [isFetchingFirstPage, isArchived]) - const [mergedEntries, setMergedEntries] = useState>({ - 0: [], - 1: [], - 2: [], - 3: [], - 4: [], - 5: [], - }) - const entryIdsAsDeps = entryIds.toString() useEffect(() => { @@ -166,23 +116,22 @@ export const useEntriesByView = ({ useEffect(() => { if (!prevEntryIdsRef.current) { prevEntryIdsRef.current = entryIds - setMergedEntries({ ...mergedEntries, [view]: entryIds }) + return } // merge the new entries with the old entries, and unique them const nextIds = [...new Set([...prevEntryIdsRef.current, ...entryIds])] prevEntryIdsRef.current = nextIds - setMergedEntries({ ...mergedEntries, [view]: entryIds }) }, [entryIdsAsDeps]) const sortEntries = useMemo( () => isCollection - ? sortEntriesIdByStarAt(mergedEntries[view]) + ? sortEntriesIdByStarAt(entryIds) : listId - ? sortEntriesIdByEntryInsertedAt(mergedEntries[view]) - : sortEntriesIdByEntryPublishedAt(mergedEntries[view]), - [isCollection, listId, mergedEntries, view], + ? sortEntriesIdByEntryInsertedAt(entryIds) + : sortEntriesIdByEntryPublishedAt(entryIds), + [entryIds, isCollection, listId], ) const groupByDate = useGeneralSettingKey("groupByDate") @@ -230,26 +179,6 @@ export const useEntriesByView = ({ } } -export function batchMarkRead(ids: string[]) { - const batchLikeIds = [] as [string, string][] - const entriesId2Map = entryActions.getFlattenMapEntries() - for (const id of ids) { - const entry = entriesId2Map[id] - - if (!entry) continue - const isRead = entry.read - if (!isRead) { - batchLikeIds.push([entry.feedId, id]) - } - } - - if (batchLikeIds.length > 0) { - for (const [feedId, id] of batchLikeIds) { - entryActions.markRead({ feedId, entryId: id, read: true }) - } - } -} - function sortEntriesIdByEntryPublishedAt(entries: string[]) { const entriesId2Map = entryActions.getFlattenMapEntries() return entries diff --git a/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx new file mode 100644 index 000000000..49a4e7abb --- /dev/null +++ b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx @@ -0,0 +1,55 @@ +import { views } from "@follow/constants" +import type { Range } from "@tanstack/react-virtual" +import { useMemo } from "react" +import { useDebounceCallback } from "usehooks-ts" + +import { useGeneralSettingKey } from "~/atoms/settings/general" +import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams" +import { entryActions } from "~/store/entry" + +export const useEntryMarkReadHandler = (entriesIds: string[]) => { + const renderAsRead = useGeneralSettingKey("renderMarkUnread") + const scrollMarkUnread = useGeneralSettingKey("scrollMarkUnread") + const feedView = useRouteParamsSelector((params) => params.view) + + const handleRenderAsRead = useDebounceCallback( + ({ startIndex, endIndex }: Range, enabled?: boolean) => { + if (!enabled) return + const idSlice = entriesIds?.slice(startIndex, endIndex) + + if (!idSlice) return + batchMarkRead(idSlice) + }, + ) + + return useMemo(() => { + if (views[feedView].wideMode && renderAsRead) { + return handleRenderAsRead + } + + if (scrollMarkUnread) { + return handleRenderAsRead + } + return + }, [feedView, handleRenderAsRead, renderAsRead, scrollMarkUnread]) +} + +export function batchMarkRead(ids: string[]) { + const batchLikeIds = [] as [string, string][] + const entriesId2Map = entryActions.getFlattenMapEntries() + for (const id of ids) { + const entry = entriesId2Map[id] + + if (!entry) continue + const isRead = entry.read + if (!isRead) { + batchLikeIds.push([entry.feedId, id]) + } + } + + if (batchLikeIds.length > 0) { + for (const [feedId, id] of batchLikeIds) { + entryActions.markRead({ feedId, entryId: id, read: true }) + } + } +} diff --git a/apps/renderer/src/modules/entry-column/index.tsx b/apps/renderer/src/modules/entry-column/index.tsx index 8cb18cd95..193fc9696 100644 --- a/apps/renderer/src/modules/entry-column/index.tsx +++ b/apps/renderer/src/modules/entry-column/index.tsx @@ -1,63 +1,40 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" import { Button } from "@follow/components/ui/button/index.js" -import { FeedViewType, views } from "@follow/constants" -import { useTitle, useTypeScriptHappyCallback } from "@follow/hooks" +import { views } from "@follow/constants" +import { useTitle } from "@follow/hooks" import type { FeedModel } from "@follow/models/types" import { isBizId } from "@follow/utils/utils" -import type { FunctionComponent } from "react" -import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react" +import type { Range, Virtualizer } from "@tanstack/react-virtual" +import { memo, useCallback, useEffect, useRef, useState } from "react" import { useTranslation } from "react-i18next" -import type { - ScrollSeekConfiguration, - VirtuosoGridProps, - VirtuosoHandle, - VirtuosoProps, -} from "react-virtuoso" -import { VirtuosoGrid } from "react-virtuoso" import { useGeneralSettingKey } from "~/atoms/settings/general" -import { setUISetting, useUISettingKey } from "~/atoms/settings/ui" import { FeedFoundCanBeFollowError } from "~/components/errors/FeedFoundCanBeFollowErrorFallback" import { FeedNotFound } from "~/components/errors/FeedNotFound" -import { ReactVirtuosoItemPlaceholder } from "~/components/ui/placeholder" import { FEED_COLLECTION_LIST, ROUTE_FEED_PENDING } from "~/constants" -import { ENTRY_COLUMN_LIST_SCROLLER_ID } from "~/constants/dom" import { useNavigateEntry } from "~/hooks/biz/useNavigateEntry" import { useRouteParams, useRouteParamsSelector } from "~/hooks/biz/useRouteParams" import { useFeed } from "~/queries/feed" -import { entryActions, getEntry, useEntry } from "~/store/entry" +import { entryActions, useEntry } from "~/store/entry" import { useFeedById, useFeedHeaderTitle } from "~/store/feed" import { useSubscriptionByFeedId } from "~/store/subscription" -import { useEntriesByView, useEntryMarkReadHandler } from "./hooks" +import { EntryColumnGrid } from "./grid" +import { useEntriesByView } from "./hooks/useEntriesByView" import { useSnapEntryIdList } from "./hooks/useEntryIdListSnap" -import { EntryItem, EntryItemSkeleton } from "./item" -import { PictureMasonry } from "./Items/picture-masonry" +import { useEntryMarkReadHandler } from "./hooks/useEntryMarkReadHandler" import { EntryListHeader } from "./layouts/EntryListHeader" -import { EntryEmptyList, EntryList, EntryListContent } from "./lists" -import { girdClassNames } from "./styles" +import { EntryEmptyList, EntryList } from "./list" import { EntryColumnWrapper } from "./wrapper" -const scrollSeekConfiguration: ScrollSeekConfiguration = { - enter: (velocity) => Math.abs(velocity) > 1000, - exit: (velocity) => Math.abs(velocity) < 1000, -} - -const prevScrollTopMap = {} - -export type VirtuosoComponentProps = { onlyShowArchivedButton: boolean } -type VirtuosoComponentPropsContext = { context?: VirtuosoComponentProps } - function EntryColumnImpl() { const { t } = useTranslation() - const virtuosoRef = useRef(null) const [isArchived, setIsArchived] = useState(false) const unreadOnly = useGeneralSettingKey("unreadOnly") + const listRef = useRef>() const entries = useEntriesByView({ onReset: useCallback(() => { - virtuosoRef.current?.scrollTo({ - top: 0, - }) + listRef.current?.scrollToIndex(0) }, []), isArchived, }) @@ -128,79 +105,54 @@ function EntryColumnImpl() { } }, [shouldLoadArchivedEntries]) - const scrollRef = useRef(null) + const handleScroll = useCallback(() => { + if (!isInteracted.current) { + isInteracted.current = true + } - const handleScroll = useCallback( - (e: React.UIEvent) => { - if (!isInteracted.current) { - isInteracted.current = true - } - const { scrollTop } = e.currentTarget + if (!routeFeedId) return - if (!routeFeedId) return - prevScrollTopMap[routeFeedId] = scrollTop - }, - [routeFeedId], - ) - - const virtuosoOptions = { - components: { - List: EntryListContent, - Footer: useCallback( - ({ context }: VirtuosoComponentPropsContext) => { - if (!isFetchingNextPage) { - if (showArchivedButton) { - return ( -
- -
- ) - } else { - return null - } - } else { - if (context?.onlyShowArchivedButton) return null - return ( - - ) - } - }, - [isFetchingNextPage, showArchivedButton, t, view, entries.data?.pages], - ), - ScrollSeekPlaceholder: useCallback(() => , [view]), - }, - scrollSeekConfiguration, - rangeChanged: (...args: any[]) => { - handleMarkReadInRange && - // @ts-expect-error - handleMarkReadInRange(...args, isInteracted.current) - }, - customScrollParent: scrollRef.current!, - initialScrollTop: prevScrollTopMap[routeFeedId || ""] || 0, - - endReached: useCallback(async () => { - if (!entries.isFetchingNextPage && entries.hasNextPage) { - await entries.fetchNextPage() - } - }, [entries]), - data: entriesIds, - onScroll: handleScroll, - itemContent: useTypeScriptHappyCallback( - (_, entryId) => { - if (!entryId) return - - return - }, - [view], - ), - } satisfies VirtuosoProps + const [first, second] = rangeQueueRef.current + if (first && second && second.startIndex - first.startIndex > 0) { + handleMarkReadInRange?.( + { + startIndex: first.startIndex, + endIndex: second.startIndex, + } as Range, + isInteracted.current, + ) + } + }, [handleMarkReadInRange, routeFeedId]) const navigate = useNavigateEntry() + const rangeQueueRef = useRef([]) const isRefreshing = entries.isFetching && !entries.isFetchingNextPage + const renderAsRead = useGeneralSettingKey("renderMarkUnread") + const handleRangeChange = useCallback( + (e: Range) => { + rangeQueueRef.current.push(e) + if (rangeQueueRef.current.length > 2) { + rangeQueueRef.current.shift() + } + if (!renderAsRead) return + if (!views[view].wideMode) { + return + } + // For gird, render as mark read logic + handleMarkReadInRange?.(e, isInteracted.current) + }, + [handleMarkReadInRange, renderAsRead, view], + ) + + const fetchNextPage = useCallback(() => { + if (entries.hasNextPage && !entries.isFetchingNextPage) { + entries.fetchNextPage() + } + }, [entries]) const isMobile = useMobile() + + const ListComponent = views[view].gridMode ? EntryColumnGrid : EntryList return (
- {virtuosoOptions.data.length === 0 && - !entries.isLoading && - !entries.error && - feed?.type === "feed" && } + {entriesIds.length === 0 && !entries.isLoading && !entries.error && feed?.type === "feed" && ( + + )} - {virtuosoOptions.data.length === 0 && !showArchivedButton ? ( + {entriesIds.length === 0 && !showArchivedButton ? ( entries.isLoading ? null : ( ) - ) : view && views[view].gridMode ? ( - ) : ( - + +
+ ) : null + } /> )} @@ -253,105 +212,6 @@ function EntryColumnImpl() { ) } -const ListGird = ({ - virtuosoOptions, - virtuosoRef, - hasNextPage, -}: { - virtuosoOptions: Omit< - VirtuosoGridProps, - "data" | "endReached" - > & { - data: string[] - endReached: () => Promise - } - virtuosoRef: React.RefObject - hasNextPage: boolean -}) => { - const isMobile = useMobile() - const masonry = useUISettingKey("pictureViewMasonry") || isMobile - const view = useRouteParamsSelector((s) => s.view) - const feedId = useRouteParamsSelector((s) => s.feedId) - const filterNoImage = useUISettingKey("pictureViewFilterNoImage") - const nextData = useMemo(() => { - if (filterNoImage) { - return virtuosoOptions.data.filter((entryId) => { - const entry = getEntry(entryId) - return entry?.entries.media?.length && entry.entries.media.length > 0 - }) - } - return virtuosoOptions.data - }, [virtuosoOptions.data, filterNoImage]) - const { t } = useTranslation() - if (nextData.length === 0 && virtuosoOptions.data.length > 0) { - return ( -
- -
- {t("entry_column.filtered_content_tip")} -
- - -
- ) - } - - const hasFilteredContent = nextData.length < virtuosoOptions.data.length - - const FilteredContentTip = hasFilteredContent && !hasNextPage && ( -
- -
{t("entry_column.filtered_content_tip_2")}
- - -
- ) - - if (masonry && view === FeedViewType.Pictures) { - return ( - <> - virtuosoOptions.data.length} - endReached={virtuosoOptions.endReached} - data={nextData} - /> - - {virtuosoOptions.components?.Footer && - (virtuosoOptions.components.Footer as FunctionComponent)({ - context: { onlyShowArchivedButton: true }, - })} - - {FilteredContentTip} - - ) - } - return ( - <> - - {FilteredContentTip} - - ) -} - const AddFeedHelper = () => { const feedId = useRouteParamsSelector((s) => s.feedId) const feedQuery = useFeed({ id: feedId }) diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx index 7f3428b15..5e470099c 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx @@ -126,7 +126,7 @@ export const EntryItemWrapper: FC< className={cn( "relative", asRead ? "text-zinc-700 dark:text-neutral-400" : "text-zinc-900 dark:text-neutral-300", - views[view as FeedViewType]?.wideMode ? "rounded-md" : "-mx-2 px-2", + views[view as FeedViewType]?.wideMode ? "rounded-md" : "px-2", "duration-200 hover:bg-theme-item-hover", (isActive || isContextMenuOpen) && "!bg-theme-item-active", itemClassName, diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx index f7704969f..a6d33475d 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx @@ -70,7 +70,7 @@ export const EntryListHeader: FC = ({ refetch, isRefreshin
{ return ( { if (!val) { @@ -43,9 +43,9 @@ export const TimelineTabs = () => { } }} > - + - Yours + Yours {listsData.map((s) => ( diff --git a/apps/renderer/src/modules/entry-column/list.tsx b/apps/renderer/src/modules/entry-column/list.tsx new file mode 100644 index 000000000..ae5738028 --- /dev/null +++ b/apps/renderer/src/modules/entry-column/list.tsx @@ -0,0 +1,310 @@ +import { EmptyIcon } from "@follow/components/icons/empty.jsx" +import { useScrollViewElement } from "@follow/components/ui/scroll-area/hooks.js" +import type { FeedViewType } from "@follow/constants" +import { useTypeScriptHappyCallback } from "@follow/hooks" +import { LRUCache } from "@follow/utils/lru-cache" +import type { Range, VirtualItem, Virtualizer } from "@tanstack/react-virtual" +import { defaultRangeExtractor, useVirtualizer } from "@tanstack/react-virtual" +import clsx from "clsx" +import type { HTMLMotionProps } from "framer-motion" +import type { FC, MutableRefObject, ReactNode } from "react" +import { + forwardRef, + Fragment, + memo, + startTransition, + useCallback, + useEffect, + useMemo, + useRef, + useState, +} from "react" +import { useTranslation } from "react-i18next" +import { useEventCallback } from "usehooks-ts" + +import { useGeneralSettingKey } from "~/atoms/settings/general" +import { m } from "~/components/common/Motion" +import { useRouteParams } from "~/hooks/biz/useRouteParams" +import { useEntry } from "~/store/entry" +import { isListSubscription } from "~/store/subscription" + +import { DateItem } from "./components/DateItem" +import { EntryColumnShortcutHandler } from "./EntryColumnShortcutHandler" +import { EntryItem, EntryItemSkeleton } from "./item" + +export const EntryListContent = forwardRef((props, ref) => ( +
+)) + +export const EntryEmptyList = forwardRef>((props, ref) => { + const unreadOnly = useGeneralSettingKey("unreadOnly") + const { t } = useTranslation() + return ( + + {unreadOnly ? ( + <> + + {t("entry_list.zero_unread")} + + ) : ( +
+ + {t("words.zero_items")} +
+ )} +
+ ) +}) + +export type EntryListProps = { + feedId: string + entriesIds: string[] + view: FeedViewType + + hasNextPage: boolean + fetchNextPage: () => void + refetch: () => void + + groupCounts?: number[] + + Footer?: FC | ReactNode + + onRangeChange?: (range: Range) => void + + listRef?: MutableRefObject | undefined> +} + +const capacity = 3 +const offsetCache = new LRUCache(capacity) +const measurementsCache = new LRUCache(capacity) +export const EntryList: FC = memo( + ({ + feedId, + view, + entriesIds, + fetchNextPage, + refetch, + hasNextPage, + groupCounts, + Footer, + listRef, + onRangeChange, + }) => { + // Prevent scroll list move when press up/down key, the up/down key should be taken over by the shortcut key we defined. + const handleKeyDown: React.KeyboardEventHandler = useCallback((e) => { + if (e.key === "ArrowDown" || e.key === "ArrowUp") { + e.preventDefault() + } + }, []) + + const scrollRef = useScrollViewElement() + + const stickyIndexes = useMemo( + () => + groupCounts + ? groupCounts.reduce( + (acc, count, index) => { + acc[index + 1] = acc[index] + count + return acc + }, + [0], + ) + : [], + [groupCounts], + ) + + const rowVirtualizer = useVirtualizer({ + count: entriesIds.length + 1, + estimateSize: () => 112, + overscan: 5, + getScrollElement: () => scrollRef, + initialOffset: offsetCache.get(feedId) ?? 0, + initialMeasurementsCache: measurementsCache.get(feedId) ?? [], + onChange: useTypeScriptHappyCallback( + (virtualizer: Virtualizer) => { + if (!virtualizer.isScrolling) { + measurementsCache.put(feedId, virtualizer.measurementsCache) + offsetCache.put(feedId, virtualizer.scrollOffset ?? 0) + } + + onRangeChange?.(virtualizer.range as Range) + }, + [feedId], + ), + rangeExtractor: useTypeScriptHappyCallback( + (range: Range) => { + activeStickyIndexRef.current = + [...stickyIndexes].reverse().find((index) => range.startIndex >= index) ?? 0 + + const next = new Set([activeStickyIndexRef.current, ...defaultRangeExtractor(range)]) + + return [...next].sort((a, b) => a - b) + }, + [stickyIndexes], + ), + }) + + useEffect(() => { + if (!listRef) return + listRef.current = rowVirtualizer + }, [rowVirtualizer, listRef]) + + const handleScrollTo = useEventCallback((index: number) => { + rowVirtualizer.scrollToIndex(index) + }) + + const activeStickyIndexRef = useRef(0) + const isActiveSticky = (index: number) => activeStickyIndexRef.current === index + const isSticky = (index: number) => stickyIndexes.includes(index) + + const virtualItems = rowVirtualizer.getVirtualItems() + useEffect(() => { + const lastItem = virtualItems.at(-1) + + if (!lastItem) { + return + } + + const isPlaceholderRow = lastItem.index === entriesIds.length + + if (isPlaceholderRow && hasNextPage) { + fetchNextPage() + } + }, [entriesIds.length, fetchNextPage, hasNextPage, virtualItems]) + + const [isScrollTop, setIsScrollTop] = useState(true) + + useEffect(() => { + const $scrollRef = scrollRef + if (!$scrollRef) return + const handleScroll = () => { + setIsScrollTop($scrollRef.scrollTop <= 0) + } + $scrollRef.addEventListener("scroll", handleScroll) + + return () => { + $scrollRef.removeEventListener("scroll", handleScroll) + } + }, [scrollRef]) + + const [ready, setReady] = useState(false) + + useEffect(() => { + startTransition(() => { + setReady(true) + }) + }, []) + + return ( + <> +
+ {rowVirtualizer.getVirtualItems().map((virtualRow) => { + if (!ready) return null + // Last placeholder row + const isLoaderRow = virtualRow.index === entriesIds.length + + const transform = `translateY(${virtualRow.start}px)` + if (isLoaderRow) { + const Content = hasNextPage ? ( + + ) : Footer ? ( + typeof Footer === "function" ? ( +
+ ) : ( + Footer + ) + ) : null + + return ( +
+ {Content} +
+ ) + } + const activeSticky = isActiveSticky(virtualRow.index) + const sticky = isSticky(virtualRow.index) + return ( + + {sticky && ( +
+ +
+ )} +
+ +
+
+ ) + })} +
+ + + + ) + }, +) + +const EntryHeadDateItem: FC<{ + entryId: string + isSticky?: boolean +}> = memo(({ entryId, isSticky }) => { + const entry = useEntry(entryId) + + const routeParams = useRouteParams() + const { feedId, view } = routeParams + const isList = isListSubscription(feedId) + + if (!entry) return null + const date = new Date( + isList ? entry.entries.insertedAt : entry.entries.publishedAt, + ).toDateString() + return +}) + +EntryHeadDateItem.displayName = "EntryHeadDateItem" diff --git a/apps/renderer/src/modules/entry-column/lists.tsx b/apps/renderer/src/modules/entry-column/lists.tsx deleted file mode 100644 index 10a1c6f26..000000000 --- a/apps/renderer/src/modules/entry-column/lists.tsx +++ /dev/null @@ -1,156 +0,0 @@ -import { EmptyIcon } from "@follow/components/icons/empty.jsx" -import type { HTMLMotionProps } from "framer-motion" -import type { DOMAttributes, FC } from "react" -import { forwardRef, memo, useCallback } from "react" -import { useTranslation } from "react-i18next" -import type { VirtuosoHandle, VirtuosoProps } from "react-virtuoso" -import { GroupedVirtuoso, Virtuoso } from "react-virtuoso" - -import { useGeneralSettingKey } from "~/atoms/settings/general" -import { m } from "~/components/common/Motion" -import { ReactVirtuosoItemPlaceholder } from "~/components/ui/placeholder" -import { ENTRY_COLUMN_LIST_SCROLLER_ID } from "~/constants/dom" -import { useRouteParams } from "~/hooks/biz/useRouteParams" -import { useEntry } from "~/store/entry" -import { isListSubscription } from "~/store/subscription" - -import { DateItem } from "./components/DateItem" -import { EntryColumnShortcutHandler } from "./EntryColumnShortcutHandler" -import type { VirtuosoComponentProps } from "./index" - -export const EntryListContent = forwardRef((props, ref) => ( -
-)) - -export const EntryEmptyList = forwardRef>((props, ref) => { - const unreadOnly = useGeneralSettingKey("unreadOnly") - const { t } = useTranslation() - return ( - - {unreadOnly ? ( - <> - - {t("entry_list.zero_unread")} - - ) : ( -
- - {t("words.zero_items")} -
- )} -
- ) -}) - -type BaseEntryProps = { - virtuosoRef: React.RefObject - refetch: () => void -} -type EntryListProps = VirtuosoProps & { - groupCounts?: number[] -} & BaseEntryProps -export const EntryList: FC = memo( - ({ - virtuosoRef, - refetch, - groupCounts, - - ...virtuosoOptions - }) => { - // Prevent scroll list move when press up/down key, the up/down key should be taken over by the shortcut key we defined. - const handleKeyDown: React.KeyboardEventHandler = useCallback((e) => { - if (e.key === "ArrowDown" || e.key === "ArrowUp") { - e.preventDefault() - } - }, []) - - return ( - <> - {groupCounts ? ( - - ) : ( - - )} - - - ) - }, -) - -const EntryGroupedList = forwardRef< - VirtuosoHandle, - VirtuosoProps & - DOMAttributes & { - groupCounts: number[] - } ->(({ groupCounts, itemContent, onKeyDown, data, totalCount, ...virtuosoOptions }, ref) => ( - { - const entryId = getGetGroupDataIndex(groupCounts!, index, data!) - - return - }, - [groupCounts, data], - )} - groupCounts={groupCounts} - onKeyDown={onKeyDown} - {...virtuosoOptions} - itemContent={useCallback( - (index: number, _: number, __: string, c: any) => { - const entryId = data![index] - return itemContent?.(index, entryId, c) - }, - [itemContent, JSON.stringify(data)], - )} - /> -)) - -function getGetGroupDataIndex(groupCounts: number[], groupIndex: number, data: readonly T[]) { - // Get first grouped of data index - // - let sum = 0 - for (let i = 0; i < groupIndex; i++) { - sum += groupCounts[i] - } - return data[sum] -} - -const EntryHeadDateItem: FC<{ - entryId: string -}> = memo(({ entryId }) => { - const entry = useEntry(entryId) - - const routeParams = useRouteParams() - const { feedId, view } = routeParams - const isList = isListSubscription(feedId) - - if (!entry) return - const date = new Date( - isList ? entry.entries.insertedAt : entry.entries.publishedAt, - ).toDateString() - return -}) - -EntryHeadDateItem.displayName = "EntryHeadDateItem" diff --git a/apps/renderer/src/modules/entry-column/styles.ts b/apps/renderer/src/modules/entry-column/styles.ts index f3f087672..c0bf10de4 100644 --- a/apps/renderer/src/modules/entry-column/styles.ts +++ b/apps/renderer/src/modules/entry-column/styles.ts @@ -1 +1 @@ -export const girdClassNames = tw`grid grid-cols-1 @lg:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-4 @7xl:grid-cols-5 px-4 gap-1.5` +export const girdClassNames = tw`grid grid-cols-1 @lg:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-4 @7xl:grid-cols-5 gap-1.5` diff --git a/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx b/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx index cb9871f98..8aaba803e 100644 --- a/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx +++ b/apps/renderer/src/modules/entry-column/wrapper.desktop.tsx @@ -6,14 +6,14 @@ import { forwardRef } from "react" import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams" import type { EntryColumnWrapperProps } from "./wrapper.shared" -import { styles } from "./wrapper.shared" +import { animationStyles, styles } from "./wrapper.shared" export const EntryColumnWrapper = forwardRef( ({ children, onScroll }, ref) => { const view = useRouteParamsSelector((state) => state.view) return ( -
+
{children}
diff --git a/apps/renderer/src/modules/entry-column/wrapper.shared.tsx b/apps/renderer/src/modules/entry-column/wrapper.shared.tsx index 832333329..39222a4a1 100644 --- a/apps/renderer/src/modules/entry-column/wrapper.shared.tsx +++ b/apps/renderer/src/modules/entry-column/wrapper.shared.tsx @@ -1,4 +1,5 @@ -export const styles = tw`relative h-0 grow duration-200 ease-in-out animate-in fade-in slide-in-from-bottom-24 f-motion-reduce:fade-in-0 f-motion-reduce:slide-in-from-bottom-0` +export const styles = tw`relative h-0 grow` +export const animationStyles = tw`delay-100 duration-200 ease-in-out animate-in fade-in slide-in-from-bottom-24 f-motion-reduce:fade-in-0 f-motion-reduce:slide-in-from-bottom-0` export interface EntryColumnWrapperProps extends ComponentType { onScroll?: (e: React.UIEvent) => void diff --git a/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx b/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx index cb0ccbb02..c1ea44be7 100644 --- a/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx +++ b/apps/renderer/src/modules/entry-content/components/EntryReadHistory.shared.tsx @@ -7,6 +7,7 @@ import { } from "@follow/components/ui/tooltip/index.jsx" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js" import { FeedViewType } from "@follow/constants" +import { getNameInitials } from "@follow/utils/cjk" import { m } from "framer-motion" import { memo } from "react" import { useTranslation } from "react-i18next" @@ -51,7 +52,7 @@ export const EntryUserRow: Component<{ userId: string }> = memo(({ userId }) => > - {user.name?.slice(0, 2)} + {getNameInitials(user.name || "")} {user.name && ( @@ -94,7 +95,7 @@ export const EntryUser: Component<{ src={replaceImgUrlIfNeed(user?.image || undefined)} className="bg-theme-placeholder-image" /> - {user.name?.slice(0, 2)} + {getNameInitials(user.name || "")} diff --git a/apps/renderer/src/modules/feed-column/list.shared.tsx b/apps/renderer/src/modules/feed-column/list.shared.tsx index 75023b2c2..88b1e51d4 100644 --- a/apps/renderer/src/modules/feed-column/list.shared.tsx +++ b/apps/renderer/src/modules/feed-column/list.shared.tsx @@ -167,16 +167,16 @@ export const ListHeader = ({ view }: { view: number }) => { } const SORT_LIST = [ - { icon: "i-mgc-sort-ascending-cute-re", by: "count", order: "asc" }, - { icon: "i-mgc-sort-descending-cute-re", by: "count", order: "desc" }, + { icon: tw`i-mgc-numbers-90-sort-ascending-cute-re`, by: "count", order: "asc" }, + { icon: tw`i-mgc-numbers-90-sort-descending-cute-re`, by: "count", order: "desc" }, { - icon: "i-mgc-az-sort-descending-letters-cute-re", + icon: tw`i-mgc-az-sort-descending-letters-cute-re`, by: "alphabetical", order: "asc", }, { - icon: "i-mgc-az-sort-ascending-letters-cute-re", + icon: tw`i-mgc-az-sort-ascending-letters-cute-re`, by: "alphabetical", order: "desc", }, @@ -207,8 +207,8 @@ const SortButton = () => { () export function FeedIcon({ feed, entry, @@ -163,9 +165,12 @@ export function FeedIcon({ }) finalSrc = src + const isIconLoaded = isIconLoadedSet.has(src) + isIconLoadedSet.add(src) + ImageElement = ( - + ) break @@ -176,12 +181,15 @@ export function FeedIcon({ width: size * 2, height: size * 2, }) + const isIconLoaded = isIconLoadedSet.has(finalSrc) + isIconLoadedSet.add(finalSrc) + ImageElement = ( ) diff --git a/icons/mgc/numbers_09_sort_ascending_cute_re.svg b/icons/mgc/numbers_09_sort_ascending_cute_re.svg new file mode 100644 index 000000000..d3b06dd70 --- /dev/null +++ b/icons/mgc/numbers_09_sort_ascending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/numbers_09_sort_descending_cute_re.svg b/icons/mgc/numbers_09_sort_descending_cute_re.svg new file mode 100644 index 000000000..c4219c936 --- /dev/null +++ b/icons/mgc/numbers_09_sort_descending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/numbers_90_sort_ascending_cute_re.svg b/icons/mgc/numbers_90_sort_ascending_cute_re.svg new file mode 100644 index 000000000..89e1843ce --- /dev/null +++ b/icons/mgc/numbers_90_sort_ascending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/numbers_90_sort_descending_cute_re.svg b/icons/mgc/numbers_90_sort_descending_cute_re.svg new file mode 100644 index 000000000..4f4f82421 --- /dev/null +++ b/icons/mgc/numbers_90_sort_descending_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/package.json b/package.json index bfc65b3f2..69b81ca4f 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,8 @@ "@mozilla/readability": "patches/@mozilla__readability.patch", "daisyui": "patches/daisyui.patch", "jsonpointer": "patches/jsonpointer.patch", - "workbox-precaching": "patches/workbox-precaching.patch" + "workbox-precaching": "patches/workbox-precaching.patch", + "@tanstack/react-virtual@3.10.9": "patches/@tanstack__react-virtual@3.10.9.patch" }, "overrides": { "is-core-module": "npm:@nolyfill/is-core-module@^1", diff --git a/packages/components/src/providers/event-provider.tsx b/packages/components/src/providers/event-provider.tsx index c4adbe3d8..2367f8908 100644 --- a/packages/components/src/providers/event-provider.tsx +++ b/packages/components/src/providers/event-provider.tsx @@ -23,6 +23,9 @@ export const EventProvider: FC = () => { h, w, }) + + const isMobile = window.innerWidth < 1024 + document.documentElement.dataset.viewport = isMobile ? "mobile" : "desktop" }, 16) readViewport() diff --git a/packages/components/src/ui/avatar/index.tsx b/packages/components/src/ui/avatar/index.tsx index 438c4549d..2e7e7abcd 100644 --- a/packages/components/src/ui/avatar/index.tsx +++ b/packages/components/src/ui/avatar/index.tsx @@ -2,7 +2,7 @@ import { cn } from "@follow/utils/utils" import * as AvatarPrimitive from "@radix-ui/react-avatar" import * as React from "react" -const Avatar = React.forwardRef< +export const Avatar = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( @@ -14,7 +14,7 @@ const Avatar = React.forwardRef< )) Avatar.displayName = AvatarPrimitive.Root.displayName -const AvatarImage = React.forwardRef< +export const AvatarImage = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( @@ -26,16 +26,17 @@ const AvatarImage = React.forwardRef< )) AvatarImage.displayName = AvatarPrimitive.Image.displayName -const AvatarFallback = React.forwardRef< +export const AvatarFallback = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName - -export { Avatar, AvatarFallback, AvatarImage } diff --git a/packages/components/src/ui/scroll-area/ScrollArea.tsx b/packages/components/src/ui/scroll-area/ScrollArea.tsx index d2264efcb..1cc5b0e0d 100644 --- a/packages/components/src/ui/scroll-area/ScrollArea.tsx +++ b/packages/components/src/ui/scroll-area/ScrollArea.tsx @@ -52,7 +52,7 @@ const Scrollbar = React.forwardRef< className={cn( "flex w-2.5 touch-none select-none p-0.5", orientation === "horizontal" ? `h-2.5 w-full flex-col` : `w-2.5 flex-row`, - "animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", + "z-[3] animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className, )} > diff --git a/packages/components/src/ui/tabs/index.tsx b/packages/components/src/ui/tabs/index.tsx index 9b9e5cd6b..98b7aaf7c 100644 --- a/packages/components/src/ui/tabs/index.tsx +++ b/packages/components/src/ui/tabs/index.tsx @@ -102,9 +102,6 @@ const TabsTrigger = React.forwardRef( "inline-flex items-center justify-center whitespace-nowrap px-3 text-sm font-medium ring-offset-background transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-theme-foreground", "group relative z-[1]", tabsTriggerVariants({ variant }), - // !isSelect && - // "hover:before:bg-theme-item-hover before:content-[''] before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1 before:duration-200 before:opacity-60 before:rounded-lg", - // className, )} {...props} > diff --git a/packages/utils/src/cjk.ts b/packages/utils/src/cjk.ts new file mode 100644 index 000000000..6b2497704 --- /dev/null +++ b/packages/utils/src/cjk.ts @@ -0,0 +1,21 @@ +export const isCJKChar = (char: string): boolean => { + // eslint-disable-next-line unicorn/prefer-code-point + const code = char.charCodeAt(0) + return ( + (code >= 0x4e00 && code <= 0x9fff) || // CJK Unified Ideographs + (code >= 0x3400 && code <= 0x4dbf) || // CJK Unified Ideographs Extension A + (code >= 0xf900 && code <= 0xfaff) || // CJK Compatibility Ideographs + (code >= 0x3040 && code <= 0x309f) || // Hiragana + (code >= 0x30a0 && code <= 0x30ff) // Katakana + ) +} + +export const getNameInitials = (name?: string): string => { + if (!name) return "" + const first = name[0] + const second = name[1] + + if (isCJKChar(first)) return first + if (second && isCJKChar(second)) return first + return name.slice(0, 2) +} diff --git a/packages/utils/src/lru-cache.test.ts b/packages/utils/src/lru-cache.test.ts new file mode 100644 index 000000000..7e475acbe --- /dev/null +++ b/packages/utils/src/lru-cache.test.ts @@ -0,0 +1,63 @@ +import { describe, expect, it } from "vitest" + +import { LRUCache } from "./lru-cache" + +describe("LRUCache", () => { + it("should create cache with given capacity", () => { + const cache = new LRUCache(2) + expect(cache.size()).toBe(0) + }) + + it("should throw error for invalid capacity", () => { + expect(() => new LRUCache(0)).toThrow() + expect(() => new LRUCache(-1)).toThrow() + }) + + it("should handle basic get and put operations", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + expect(cache.get("a")).toBe(1) + + cache.put("b", 2) + expect(cache.get("b")).toBe(2) + expect(cache.size()).toBe(2) + }) + + it("should remove least recently used item when capacity is exceeded", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + cache.put("b", 2) + cache.put("c", 3) + + expect(cache.get("a")).toBeUndefined() + expect(cache.get("b")).toBe(2) + expect(cache.get("c")).toBe(3) + }) + + it("should update access order on get", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + cache.put("b", 2) + cache.get("a") + cache.put("c", 3) + + expect(cache.get("b")).toBeUndefined() + expect(cache.get("a")).toBe(1) + expect(cache.get("c")).toBe(3) + }) + + it("should clear cache", () => { + const cache = new LRUCache(2) + + cache.put("a", 1) + cache.put("b", 2) + cache.clear() + + expect(cache.size()).toBe(0) + expect(cache.get("a")).toBeUndefined() + expect(cache.get("b")).toBeUndefined() + }) +}) diff --git a/packages/utils/src/lru-cache.ts b/packages/utils/src/lru-cache.ts new file mode 100644 index 000000000..0f3efb2aa --- /dev/null +++ b/packages/utils/src/lru-cache.ts @@ -0,0 +1,57 @@ +export class LRUCache { + private capacity: number + private cache: Map + private keys: K[] + + constructor(capacity: number) { + if (capacity <= 0) { + throw new Error("Capacity must be positive") + } + + this.capacity = capacity + this.cache = new Map() + this.keys = [] + } + + get(key: K): V | undefined { + if (!this.cache.has(key)) { + return undefined + } + + this.keys = this.keys.filter((k) => k !== key) + this.keys.push(key) + + return this.cache.get(key) + } + + put(key: K, value: V): void { + if (this.cache.has(key)) { + this.cache.set(key, value) + this.keys = this.keys.filter((k) => k !== key) + this.keys.push(key) + } else { + if (this.keys.length >= this.capacity) { + const leastUsedKey = this.keys.shift() + if (leastUsedKey !== undefined) { + this.cache.delete(leastUsedKey) + } + } + + this.cache.set(key, value) + this.keys.push(key) + } + } + + clear(): void { + this.cache.clear() + this.keys = [] + } + + size(): number { + return this.cache.size + } + + getKeys(): K[] { + return [...this.keys] + } +} diff --git a/patches/@tanstack__react-virtual@3.10.9.patch b/patches/@tanstack__react-virtual@3.10.9.patch new file mode 100644 index 000000000..5535bdf1e --- /dev/null +++ b/patches/@tanstack__react-virtual@3.10.9.patch @@ -0,0 +1,14 @@ +diff --git a/dist/esm/index.js b/dist/esm/index.js +index 13b1ae504e8b55efcd9d8cecd30df8ab234edc18..a8549c560b0d6b7a65b4dc58e8fb134d04dda037 100644 +--- a/dist/esm/index.js ++++ b/dist/esm/index.js +@@ -22,6 +22,9 @@ function useVirtualizerBase(options) { + ); + instance.setOptions(resolvedOptions); + React.useEffect(() => { ++ if (!instance.scrollElement) { ++ instance._willUpdate() ++ } + return instance._didMount(); + }, []); + useIsomorphicLayoutEffect(() => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bf5ba6178..1775df929 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,6 +18,9 @@ patchedDependencies: '@mozilla/readability': hash: 43niildbdafdxi7qfcwhpkkxwa path: patches/@mozilla__readability.patch + '@tanstack/react-virtual@3.10.9': + hash: fpkworxfwphev7q33sgiutu7aq + path: patches/@tanstack__react-virtual@3.10.9.patch daisyui: hash: igsntdatmoaxzwxof4bkkh35fy path: patches/daisyui.patch @@ -456,6 +459,9 @@ importers: '@tanstack/react-query-persist-client': specifier: 5.61.4 version: 5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1) + '@tanstack/react-virtual': + specifier: 3.10.9 + version: 3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@use-gesture/react': specifier: 10.3.1 version: 10.3.1(react@18.3.1) @@ -606,9 +612,6 @@ importers: react-shadow: specifier: 20.5.0 version: 20.5.0(prop-types@15.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react-virtuoso: - specifier: 4.12.2 - version: 4.12.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-zoom-pan-pinch: specifier: ^3.6.1 version: 3.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -4330,14 +4333,14 @@ packages: peerDependencies: react: ^18 || ^19 - '@tanstack/react-virtual@3.10.8': - resolution: {integrity: sha512-VbzbVGSsZlQktyLrP5nxE+vE1ZR+U0NFAWPbJLoG2+DKPwd2D7dVICTVIIaYlJqX1ZCEnYDbaOpmMwbsyhBoIA==} + '@tanstack/react-virtual@3.10.9': + resolution: {integrity: sha512-OXO2uBjFqA4Ibr2O3y0YMnkrRWGVNqcvHQXmGvMu6IK8chZl3PrDxFXdGZ2iZkSrKh3/qUYoFqYe+Rx23RoU0g==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - '@tanstack/virtual-core@3.10.8': - resolution: {integrity: sha512-PBu00mtt95jbKFi6Llk9aik8bnR3tR/oQP1o3TSi+iG//+Q2RTIzCEgKkHG8BB86kxMNW6O8wku+Lmi+QFR6jA==} + '@tanstack/virtual-core@3.10.9': + resolution: {integrity: sha512-kBknKOKzmeR7lN+vSadaKWXaLS0SZZG+oqpQ/k80Q6g9REn6zRHS/ZYdrIzHnpHgy/eWs00SujveUN/GJT2qTw==} '@tootallnate/once@2.0.0': resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} @@ -9522,13 +9525,6 @@ packages: '@types/react': optional: true - react-virtuoso@4.12.2: - resolution: {integrity: sha512-9KiEc3uxD07qNrwb09PhPJKWfeNQ/Fw/TNKdZS7D3v4cDa6M/jg5lKLAUlRL7RluO8870cgLGM1T5pPKYEnprg==} - engines: {node: '>=10'} - peerDependencies: - react: '>=16 || >=17 || >= 18' - react-dom: '>=16 || >=17 || >= 18' - react-zoom-pan-pinch@3.6.1: resolution: {integrity: sha512-SdPqdk7QDSV7u/WulkFOi+cnza8rEZ0XX4ZpeH7vx3UZEg7DoyuAy3MCmm+BWv/idPQL2Oe73VoC0EhfCN+sZQ==} engines: {node: '>=8', npm: '>=5'} @@ -13309,7 +13305,7 @@ snapshots: '@floating-ui/react': 0.26.25(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@react-aria/focus': 3.18.4(react@18.3.1) '@react-aria/interactions': 3.22.4(react@18.3.1) - '@tanstack/react-virtual': 3.10.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@tanstack/react-virtual': 3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -15095,13 +15091,13 @@ snapshots: '@tanstack/query-core': 5.61.4 react: 18.3.1 - '@tanstack/react-virtual@3.10.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@tanstack/react-virtual@3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@tanstack/virtual-core': 3.10.8 + '@tanstack/virtual-core': 3.10.9 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@tanstack/virtual-core@3.10.8': {} + '@tanstack/virtual-core@3.10.9': {} '@tootallnate/once@2.0.0': {} @@ -21261,11 +21257,6 @@ snapshots: optionalDependencies: '@types/react': 18.3.12 - react-virtuoso@4.12.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-zoom-pan-pinch@3.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: react: 18.3.1 From fe48d7cf02a202a1f14bbfe3abe4c813629ac968 Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 29 Nov 2024 23:44:53 +0800 Subject: [PATCH 07/80] feat: add mobile top timeline setting Signed-off-by: Innei --- apps/renderer/src/atoms/settings/general.ts | 1 + apps/renderer/src/atoms/settings/ui.ts | 2 +- .../layouts/EntryListHeader.mobile.tsx | 3 +- .../entry-column/layouts/TimelineTabs.tsx | 36 +++++++++++++++++-- .../src/modules/settings/tabs/general.tsx | 7 +++- locales/settings/en.json | 2 ++ packages/shared/src/interface/settings.ts | 4 +++ 7 files changed, 50 insertions(+), 5 deletions(-) diff --git a/apps/renderer/src/atoms/settings/general.ts b/apps/renderer/src/atoms/settings/general.ts index 66323ee14..1e7552015 100644 --- a/apps/renderer/src/atoms/settings/general.ts +++ b/apps/renderer/src/atoms/settings/general.ts @@ -15,6 +15,7 @@ const createDefaultSettings = (): GeneralSettings => ({ dataPersist: true, sendAnonymousData: true, reduceRefetch: true, + showQuickTimeline: true, autoGroup: true, diff --git a/apps/renderer/src/atoms/settings/ui.ts b/apps/renderer/src/atoms/settings/ui.ts index ed8b83b23..fd8407123 100644 --- a/apps/renderer/src/atoms/settings/ui.ts +++ b/apps/renderer/src/atoms/settings/ui.ts @@ -60,7 +60,7 @@ export const uiServerSyncWhiteListKeys: (keyof UISettings)[] = [ "uiFontFamily", "readerFontFamily", "opaqueSidebar", - "customCSS", + // "customCSS", ] export const useIsZenMode = () => useAtomValue(zenModeAtom) diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx index a6d33475d..4a10e5874 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.mobile.tsx @@ -64,6 +64,7 @@ export const EntryListHeader: FC = ({ refetch, isRefreshin const feed = useFeedById(feedId) const isList = !!listId + const showQuickTimeline = useGeneralSettingKey("showQuickTimeline") const containerRef = React.useRef(null) return ( @@ -152,7 +153,7 @@ export const EntryListHeader: FC = ({ refetch, isRefreshin
- + {showQuickTimeline && }
) } diff --git a/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx b/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx index 01c231629..8de4a8bdd 100644 --- a/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx @@ -8,7 +8,7 @@ import { useSubscriptionStore } from "~/store/subscription" export const TimelineTabs = () => { const routerParams = useRouteParams() - const { view, listId, inboxId } = routerParams + const { view, listId, inboxId, folderName } = routerParams const listsData = useSubscriptionStore( useCallback( @@ -22,9 +22,24 @@ export const TimelineTabs = () => { [view], ), ) + const categoriesData = useSubscriptionStore( + useCallback( + (state) => { + const categoryNames = new Set() + for (const subId of state.feedIdByView[view]) { + const sub = state.data[subId] + if (sub.category) { + categoryNames.add(sub.category) + } + } + return Array.from(categoryNames) + }, + [view], + ), + ) const hasData = listsData.length > 0 || inboxData.length > 0 - const timeline = listId || inboxId || "" + const timeline = listId || inboxId || folderName || "" const navigate = useNavigateEntry() if (!hasData) return null @@ -57,6 +72,23 @@ export const TimelineTabs = () => { />
))} + {categoriesData.map((s) => ( + { + navigate({ + folderName: s, + }) + }} + > + + + {s} + + + ))} {inboxData.map((s) => ( { label: t("general.group_by_date.label"), description: t("general.group_by_date.description"), }), + isMobile && + defineSettingItem("showQuickTimeline", { + label: t("general.show_quick_timeline.label"), + description: t("general.show_quick_timeline.description"), + }), defineSettingItem("reduceRefetch", { label: t("general.reduce_refetch.label"), @@ -252,7 +257,7 @@ const TranslateLanguageSelector = () => { const translationLanguage = useGeneralSettingKey("translationLanguage") return ( -
+
{t("general.translation_language")} { setGeneralSetting("voice", value) }} - > - - - - - {data?.map((item) => ( - - {item.FriendlyName} - - ))} - - + items={ + data?.map((item) => ({ + label: item.FriendlyName, + value: item.ShortName, + })) ?? [] + } + />
) } @@ -259,25 +249,17 @@ const TranslateLanguageSelector = () => { return (
{t("general.translation_language")} - + items={Object.values(LanguageMap)} + />
) } From ce1942a29a96f1cf72fc516ce54b28007b4fd40c Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sat, 30 Nov 2024 01:11:28 +0800 Subject: [PATCH 09/80] fix: style --- apps/renderer/src/modules/app-layout/entry-column/mobile.tsx | 4 +++- .../src/modules/app-layout/feed-column/float-bar.mobile.tsx | 2 +- .../src/modules/entry-column/Items/social-media-item.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx b/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx index 568ae315c..e0d5f7808 100644 --- a/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx +++ b/apps/renderer/src/modules/app-layout/entry-column/mobile.tsx @@ -15,6 +15,8 @@ export const EntryColumnMobile = () => { const [scrollContainer, setScrollContainer] = useState(null) const view = useRouteParamsSelector((s) => s.view) + const folderName = useRouteParamsSelector((s) => s.folderName) + const listId = useRouteParamsSelector((s) => s.listId) useEffect(() => { const timer = setTimeout(() => { setScrollContainer( @@ -22,7 +24,7 @@ export const EntryColumnMobile = () => { ) }, 1000) return () => clearTimeout(timer) - }, [view]) + }, [view, folderName, listId]) usePreventOverscrollBounce() return ( diff --git a/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx b/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx index 50daadcec..36981e929 100644 --- a/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx +++ b/apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx @@ -81,7 +81,7 @@ export const MobileFloatBar = ({ > From 5c328babad21d51d91051cb83249df538e33dbee Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sat, 30 Nov 2024 01:13:11 +0800 Subject: [PATCH 10/80] fix: claim modal width https://github.com/RSSNext/Follow/issues/1936 2 --- apps/renderer/src/modules/claim/feed-claim-modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/claim/feed-claim-modal.tsx b/apps/renderer/src/modules/claim/feed-claim-modal.tsx index 4df4df5f8..eccb1fe3f 100644 --- a/apps/renderer/src/modules/claim/feed-claim-modal.tsx +++ b/apps/renderer/src/modules/claim/feed-claim-modal.tsx @@ -53,7 +53,7 @@ export const FeedClaimModalContent: FC<{ } return ( -
+
From 63602f266390781a3552a14eefa35455f19c92b6 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sat, 30 Nov 2024 01:24:02 +0800 Subject: [PATCH 11/80] fix: use replace for discover form navigation --- .../pages/(main)/(layer)/(subview)/discover/index.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx index c8c855456..042531d36 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx @@ -81,10 +81,13 @@ export function Component() { { - setSearch((search) => { - search.set("type", val) - return new URLSearchParams(search) - }) + setSearch( + (search) => { + search.set("type", val) + return new URLSearchParams(search) + }, + { replace: true }, + ) }} className="max-w-full" > From 42d66ce19487678a3fd56059b03496d5b50f3b3d Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sat, 30 Nov 2024 01:46:02 +0800 Subject: [PATCH 12/80] fix: form content width --- apps/renderer/src/modules/discover/feed-form.tsx | 4 +++- apps/renderer/src/modules/discover/recommendation-content.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/renderer/src/modules/discover/feed-form.tsx b/apps/renderer/src/modules/discover/feed-form.tsx index 7ffc1be6c..82441c182 100644 --- a/apps/renderer/src/modules/discover/feed-form.tsx +++ b/apps/renderer/src/modules/discover/feed-form.tsx @@ -76,7 +76,9 @@ export const FeedForm: Component<{
{!asWidget && ( diff --git a/apps/renderer/src/modules/discover/recommendation-content.tsx b/apps/renderer/src/modules/discover/recommendation-content.tsx index 7f76e4b3d..e686f7a42 100644 --- a/apps/renderer/src/modules/discover/recommendation-content.tsx +++ b/apps/renderer/src/modules/discover/recommendation-content.tsx @@ -8,7 +8,7 @@ export const RecommendationContent = ({ route: RSSHubRoute routePrefix: string }) => ( -
+
) From c01079aaa252e93660b7166c7bf0bc372baea753 Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Sat, 30 Nov 2024 16:37:25 +0800 Subject: [PATCH 13/80] chore: bump electron and vite-bundle-analyzer version --- package.json | 3 +- packages/shared/package.json | 2 +- pnpm-lock.yaml | 59 +++++++++++++++++------------------- 3 files changed, 30 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 69b81ca4f..ecd2d95f3 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,6 @@ "dnum": "^2.14.0", "dotenv": "16.4.5", "drizzle-orm": "0.36.4", - "electron": "33.2.0", "electron-devtools-installer": "3.2.0", "electron-packager-languages": "0.5.0", "electron-vite": "^2.3.0", @@ -116,7 +115,7 @@ "typescript": "5.7.2", "unplugin-ast": "^0.11.0", "vite": "^6.0.1", - "vite-bundle-analyzer": "0.14.3", + "vite-bundle-analyzer": "0.15.2", "vite-plugin-mkcert": "1.17.6", "vite-plugin-pwa": "0.21.0", "vite-tsconfig-paths": "5.1.3", diff --git a/packages/shared/package.json b/packages/shared/package.json index c059090b8..a1bcbb231 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -34,7 +34,7 @@ "@hono/node-server": "^1.13.7", "@t3-oss/env-core": "^0.11.1", "drizzle-orm": "^0.36.4", - "electron": "^33.2.0", + "electron": "^33.2.1", "hono": "^4.6.11", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1775df929..6cfcd6e4b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -164,9 +164,6 @@ importers: drizzle-orm: specifier: 0.36.4 version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1) - electron: - specifier: 33.2.0 - version: 33.2.0 electron-devtools-installer: specifier: 3.2.0 version: 3.2.0 @@ -264,8 +261,8 @@ importers: specifier: ^6.0.1 version: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) vite-bundle-analyzer: - specifier: 0.14.3 - version: 0.14.3 + specifier: 0.15.2 + version: 0.15.2 vite-plugin-mkcert: specifier: 1.17.6 version: 1.17.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) @@ -283,13 +280,13 @@ importers: dependencies: '@egoist/tipc': specifier: 0.3.2 - version: 0.3.2(electron@33.2.0)(react@18.3.1) + version: 0.3.2(electron@33.2.1)(react@18.3.1) '@electron-toolkit/preload': specifier: ^3.0.1 - version: 3.0.1(electron@33.2.0) + version: 3.0.1(electron@33.2.1) '@electron-toolkit/utils': specifier: ^3.0.0 - version: 3.0.0(electron@33.2.0) + version: 3.0.0(electron@33.2.1) '@eneris/push-receiver': specifier: 4.3.0 version: 4.3.0 @@ -367,8 +364,8 @@ importers: specifier: ^22.10.0 version: 22.10.0 electron: - specifier: 33.2.0 - version: 33.2.0 + specifier: 33.2.1 + version: 33.2.1 electron-devtools-installer: specifier: 3.2.0 version: 3.2.0 @@ -383,10 +380,10 @@ importers: version: 6.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@egoist/tipc': specifier: 0.3.2 - version: 0.3.2(electron@33.2.0)(react@18.3.1) + version: 0.3.2(electron@33.2.1)(react@18.3.1) '@electron-toolkit/preload': specifier: ^3.0.1 - version: 3.0.1(electron@33.2.0) + version: 3.0.1(electron@33.2.1) '@follow/electron-main': specifier: workspace:* version: link:../main @@ -1117,7 +1114,7 @@ importers: dependencies: '@electron-toolkit/preload': specifier: ^3.0.1 - version: 3.0.1(electron@33.2.0) + version: 3.0.1(electron@33.2.1) '@electron-toolkit/tsconfig': specifier: ^1.0.1 version: 1.0.1(@types/node@22.10.0) @@ -1131,8 +1128,8 @@ importers: specifier: ^0.36.4 version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1) electron: - specifier: ^33.2.0 - version: 33.2.0 + specifier: ^33.2.1 + version: 33.2.1 hono: specifier: ^4.6.11 version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) @@ -1929,8 +1926,8 @@ packages: resolution: {integrity: sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==} engines: {node: '>=14'} - '@electron/node-gyp@https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2': - resolution: {tarball: https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2} + '@electron/node-gyp@git+https://git@github.com:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2': + resolution: {commit: 06b29aafb7708acef8b3669835c8a7857ebc92d2, repo: git@github.com:electron/node-gyp.git, type: git} version: 10.2.0-electron.1 engines: {node: '>=12.13.0'} hasBin: true @@ -6109,8 +6106,8 @@ packages: resolution: {integrity: sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==} engines: {node: '>=8.0.0'} - electron@33.2.0: - resolution: {integrity: sha512-PVw1ICAQDPsnnsmpNFX/b1i/49h67pbSPxuIENd9K9WpGO1tsRaQt+K2bmXqTuoMJsbzIc75Ce8zqtuwBPqawA==} + electron@33.2.1: + resolution: {integrity: sha512-SG/nmSsK9Qg1p6wAW+ZfqU+AV8cmXMTIklUL18NnOKfZLlum4ZsDoVdmmmlL39ZmeCaq27dr7CgslRPahfoVJg==} engines: {node: '>= 12.20.55'} hasBin: true @@ -10887,8 +10884,8 @@ packages: vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - vite-bundle-analyzer@0.14.3: - resolution: {integrity: sha512-gtYPRahkEdo7TRDLHqq+ZRE8Xfz5dt3UAl0NhkZBBYaGRd3EOyWJz9+WAqRSALf4szFhq5AS0TKvL9nVWiAkqw==} + vite-bundle-analyzer@0.15.2: + resolution: {integrity: sha512-AwFOewhvf7EkTACa9c/inbxMrJOWwyVF4nUMITwN26lM5TAYkcnJC4KFgZXym3sYRAWe1Qgvk8X4OFTw4HPaJw==} hasBin: true vite-node@2.1.6: @@ -12059,9 +12056,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@egoist/tipc@0.3.2(electron@33.2.0)(react@18.3.1)': + '@egoist/tipc@0.3.2(electron@33.2.1)(react@18.3.1)': dependencies: - electron: 33.2.0 + electron: 33.2.1 optionalDependencies: '@tanstack/react-query': 5.61.4(react@18.3.1) transitivePeerDependencies: @@ -12286,17 +12283,17 @@ snapshots: dependencies: chrome-trace-event: 1.0.4 - '@electron-toolkit/preload@3.0.1(electron@33.2.0)': + '@electron-toolkit/preload@3.0.1(electron@33.2.1)': dependencies: - electron: 33.2.0 + electron: 33.2.1 '@electron-toolkit/tsconfig@1.0.1(@types/node@22.10.0)': dependencies: '@types/node': 22.10.0 - '@electron-toolkit/utils@3.0.0(electron@33.2.0)': + '@electron-toolkit/utils@3.0.0(electron@33.2.1)': dependencies: - electron: 33.2.0 + electron: 33.2.1 '@electron/asar@3.2.17': dependencies: @@ -12338,7 +12335,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@electron/node-gyp@https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2': + '@electron/node-gyp@git+https://git@github.com:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2': dependencies: env-paths: 2.2.1 exponential-backoff: 3.1.1 @@ -12438,7 +12435,7 @@ snapshots: '@electron/rebuild@3.7.1': dependencies: - '@electron/node-gyp': https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2 + '@electron/node-gyp': git+https://git@github.com:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2 '@malept/cross-spawn-promise': 2.0.0 chalk: 4.1.2 debug: 4.3.7 @@ -17224,7 +17221,7 @@ snapshots: - supports-color optional: true - electron@33.2.0: + electron@33.2.1: dependencies: '@electron/get': 2.0.3 '@types/node': 20.17.8 @@ -22848,7 +22845,7 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - vite-bundle-analyzer@0.14.3: {} + vite-bundle-analyzer@0.15.2: {} vite-node@2.1.6(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): dependencies: From 97c1ece9e3d855c7dbcf7238e7953e9bd206811c Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Sat, 30 Nov 2024 16:52:29 +0800 Subject: [PATCH 14/80] fix: lock --- apps/main/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/main/package.json b/apps/main/package.json index beec8b1f0..b9a2f30b1 100644 --- a/apps/main/package.json +++ b/apps/main/package.json @@ -52,7 +52,7 @@ "devDependencies": { "@types/js-yaml": "4.0.9", "@types/node": "^22.10.0", - "electron": "33.2.0", + "electron": "33.2.1", "electron-devtools-installer": "3.2.0", "hono": "4.6.11" } From f7eca73f5b2a5f1d3d24a3189fd4708da282b45b Mon Sep 17 00:00:00 2001 From: Whitewater Date: Sat, 30 Nov 2024 19:52:45 +0800 Subject: [PATCH 15/80] fix: ci (#1943) * Revert "fix: lock" This reverts commit 97c1ece9e3d855c7dbcf7238e7953e9bd206811c. * Revert "chore: bump electron and vite-bundle-analyzer version" This reverts commit c01079aaa252e93660b7166c7bf0bc372baea753. * chore: update vite-bundle-analyzer to version 0.15.2 * chore: update electron to version 33.2.1 * fix: update node-gyp dependency to use tarball URL --- package.json | 1 + pnpm-lock.yaml | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index ecd2d95f3..8501c1f7d 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,7 @@ "dnum": "^2.14.0", "dotenv": "16.4.5", "drizzle-orm": "0.36.4", + "electron": "33.2.1", "electron-devtools-installer": "3.2.0", "electron-packager-languages": "0.5.0", "electron-vite": "^2.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6cfcd6e4b..c7bc0c365 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -164,6 +164,9 @@ importers: drizzle-orm: specifier: 0.36.4 version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1) + electron: + specifier: 33.2.1 + version: 33.2.1 electron-devtools-installer: specifier: 3.2.0 version: 3.2.0 @@ -1926,8 +1929,8 @@ packages: resolution: {integrity: sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==} engines: {node: '>=14'} - '@electron/node-gyp@git+https://git@github.com:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2': - resolution: {commit: 06b29aafb7708acef8b3669835c8a7857ebc92d2, repo: git@github.com:electron/node-gyp.git, type: git} + '@electron/node-gyp@https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2': + resolution: {tarball: https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2} version: 10.2.0-electron.1 engines: {node: '>=12.13.0'} hasBin: true @@ -12335,7 +12338,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@electron/node-gyp@git+https://git@github.com:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2': + '@electron/node-gyp@https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2': dependencies: env-paths: 2.2.1 exponential-backoff: 3.1.1 @@ -12435,7 +12438,7 @@ snapshots: '@electron/rebuild@3.7.1': dependencies: - '@electron/node-gyp': git+https://git@github.com:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2 + '@electron/node-gyp': https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2 '@malept/cross-spawn-promise': 2.0.0 chalk: 4.1.2 debug: 4.3.7 From 605c3d66b953afc3d64bdd3dd8bf5a5beb24f7f1 Mon Sep 17 00:00:00 2001 From: Whitewater Date: Sun, 1 Dec 2024 18:56:12 +0800 Subject: [PATCH 16/80] refactor: sunset Omnivore integration (#1953) * refactor: remove Omnivore integration and related settings * refactor: remove Omnivore integration from localization files * refactor: remove Omnivore integration from settings and command types * refactor: remove Omnivore entries from localization files --- .../src/atoms/settings/integration.ts | 5 - .../src/hooks/biz/useEntryActions.tsx | 4 - .../src/hooks/biz/useIntegrationActions.tsx | 438 ------------------ .../src/modules/command/commands/id.ts | 1 - .../modules/command/commands/integration.tsx | 86 ---- .../src/modules/command/commands/types.ts | 6 - .../src/modules/settings/tabs/integration.tsx | 51 -- locales/app/en.json | 3 - locales/app/ja.json | 5 +- locales/app/zh-CN.json | 3 - locales/app/zh-HK.json | 3 - locales/app/zh-TW.json | 3 - locales/settings/en.json | 7 - locales/settings/ja.json | 7 - locales/settings/zh-CN.json | 7 - locales/settings/zh-HK.json | 7 - locales/settings/zh-TW.json | 7 - .../ui/platform-icon/collections/omnivore.tsx | 12 - .../components/src/ui/platform-icon/icons.ts | 1 - packages/shared/src/interface/settings.ts | 5 - 20 files changed, 1 insertion(+), 660 deletions(-) delete mode 100644 apps/renderer/src/hooks/biz/useIntegrationActions.tsx delete mode 100644 packages/components/src/ui/platform-icon/collections/omnivore.tsx diff --git a/apps/renderer/src/atoms/settings/integration.ts b/apps/renderer/src/atoms/settings/integration.ts index c1d605fe9..0f7b725ee 100644 --- a/apps/renderer/src/atoms/settings/integration.ts +++ b/apps/renderer/src/atoms/settings/integration.ts @@ -14,11 +14,6 @@ export const createDefaultSettings = (): IntegrationSettings => ({ instapaperUsername: "", instapaperPassword: "", - // omnivore - enableOmnivore: false, - omnivoreEndpoint: "", - omnivoreToken: "", - // obsidian enableObsidian: false, obsidianVaultPath: "", diff --git a/apps/renderer/src/hooks/biz/useEntryActions.tsx b/apps/renderer/src/hooks/biz/useEntryActions.tsx index b6435b86c..aedf070d3 100644 --- a/apps/renderer/src/hooks/biz/useEntryActions.tsx +++ b/apps/renderer/src/hooks/biz/useEntryActions.tsx @@ -104,10 +104,6 @@ export const useEntryActions = ({ entryId, view }: { entryId: string; view?: Fee id: COMMAND_ID.integration.saveToInstapaper, onClick: runCmdFn(COMMAND_ID.integration.saveToInstapaper, [{ entryId }]), }, - { - id: COMMAND_ID.integration.saveToOmnivore, - onClick: runCmdFn(COMMAND_ID.integration.saveToOmnivore, [{ entryId }]), - }, { id: COMMAND_ID.integration.saveToObsidian, onClick: runCmdFn(COMMAND_ID.integration.saveToObsidian, [{ entryId }]), diff --git a/apps/renderer/src/hooks/biz/useIntegrationActions.tsx b/apps/renderer/src/hooks/biz/useIntegrationActions.tsx deleted file mode 100644 index e069613ca..000000000 --- a/apps/renderer/src/hooks/biz/useIntegrationActions.tsx +++ /dev/null @@ -1,438 +0,0 @@ -import { - SimpleIconsEagle, - SimpleIconsInstapaper, - SimpleIconsObsidian, - SimpleIconsOmnivore, - SimpleIconsOutline, - SimpleIconsReadwise, -} from "@follow/components/ui/platform-icon/icons.js" -import type { CombinedEntryModel } from "@follow/models/types" -import { IN_ELECTRON } from "@follow/shared/constants" -import { useMutation, useQuery } from "@tanstack/react-query" -import type { FetchError } from "ofetch" -import { ofetch } from "ofetch" -import type { ReactNode } from "react" -import { useMemo } from "react" -import { useTranslation } from "react-i18next" -import { toast } from "sonner" - -import { getReadabilityContent, getReadabilityStatus, ReadabilityStatus } from "~/atoms/readability" -import { useIntegrationSettingValue } from "~/atoms/settings/integration" -import { tipcClient } from "~/lib/client" -import { parseHtml } from "~/lib/parse-html" -import type { FlatEntryModel } from "~/store/entry" -import { getFeedById, useFeedById } from "~/store/feed" -import { useInboxById } from "~/store/inbox" - -export const useIntegrationActions = ({ - view, - entry, -}: { - view?: number - entry?: FlatEntryModel | null -}) => { - const { t } = useTranslation() - - const feed = useFeedById(entry?.feedId, (feed) => { - return { - type: feed.type, - ownerUserId: feed.ownerUserId, - id: feed.id, - } - }) - - const inbox = useInboxById(entry?.inboxId) - - const populatedEntry = useMemo(() => { - if (!entry) return null - if (!feed?.id && !inbox?.id) return null - - return { - ...entry, - feeds: feed ? getFeedById(feed.id) : undefined, - inboxes: inbox, - } as CombinedEntryModel - }, [entry, feed, inbox]) - - const { - enableEagle, - enableReadwise, - enableInstapaper, - enableOmnivore, - enableObsidian, - enableOutline, - readwiseToken, - instapaperUsername, - instapaperPassword, - omnivoreToken, - omnivoreEndpoint, - obsidianVaultPath, - outlineToken, - outlineEndpoint, - outlineCollection, - } = useIntegrationSettingValue() - const isObsidianEnabled = enableObsidian && !!obsidianVaultPath - - const saveToObsidian = useMutation({ - mutationKey: ["save-to-obsidian"], - mutationFn: async (data: { - url: string - title: string - content: string - author: string - publishedAt: string - vaultPath: string - }) => { - return await tipcClient?.saveToObsidian(data) - }, - onSuccess: (data) => { - if (data?.success) { - toast.success(t("entry_actions.saved_to_obsidian"), { - duration: 3000, - }) - } else { - toast.error(`${t("entry_actions.failed_to_save_to_obsidian")}: ${data?.error}`, { - duration: 3000, - }) - } - }, - }) - - const checkEagle = useQuery({ - queryKey: ["check-eagle"], - enabled: ELECTRON && enableEagle && !!entry?.entries.url && view !== undefined, - queryFn: async () => { - try { - await ofetch("http://localhost:41595") - return true - } catch (error: unknown) { - return (error as FetchError).data?.code === 401 - } - }, - refetchOnMount: false, - refetchOnWindowFocus: false, - }) - - const items = useMemo(() => { - if (!populatedEntry || view === undefined) return [] - - const getEntryContentAsMarkdown = async () => { - const isReadabilityReady = - getReadabilityStatus()[populatedEntry.entries.id] === ReadabilityStatus.SUCCESS - const content = - (isReadabilityReady - ? getReadabilityContent()[populatedEntry.entries.id].content - : populatedEntry.entries.content) || "" - - const [toMarkdown, toMdast, gfmTableToMarkdown] = await Promise.all([ - import("mdast-util-to-markdown").then((m) => m.toMarkdown), - import("hast-util-to-mdast").then((m) => m.toMdast), - import("mdast-util-gfm-table").then((m) => m.gfmTableToMarkdown), - ]) - - return toMarkdown(toMdast(parseHtml(content).hastTree), { - extensions: [gfmTableToMarkdown()], - }) - } - - const items: { - key: string - className?: string - shortcut?: string - name: string - icon?: ReactNode - hide?: boolean - active?: boolean - disabled?: boolean - onClick: (e: React.MouseEvent) => void - }[] = [ - { - name: t("entry_actions.save_media_to_eagle"), - icon: , - key: "saveToEagle", - hide: - !enableEagle || - (checkEagle.isLoading ? true : !checkEagle.data) || - !populatedEntry.entries.media?.length, - onClick: async () => { - if (!populatedEntry.entries.url || !populatedEntry.entries.media?.length) { - return - } - window.analytics?.capture("integration", { - type: "eagle", - event: "save", - }) - const response = await tipcClient?.saveToEagle({ - url: populatedEntry.entries.url, - mediaUrls: populatedEntry.entries.media.map((m) => m.url), - }) - - if (response?.status === "success") { - toast.success(t("entry_actions.saved_to_eagle"), { - duration: 3000, - }) - } else { - toast.error(t("entry_actions.failed_to_save_to_eagle"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_readwise"), - icon: , - key: "saveToReadwise", - hide: !enableReadwise || !readwiseToken || !populatedEntry.entries.url, - onClick: async () => { - try { - window.analytics?.capture("integration", { - type: "readwise", - event: "save", - }) - const data = await ofetch("https://readwise.io/api/v3/save/", { - method: "POST", - headers: { - Authorization: `Token ${readwiseToken}`, - }, - body: { - url: populatedEntry.entries.url, - html: populatedEntry.entries.content || undefined, - title: populatedEntry.entries.title || undefined, - author: populatedEntry.entries.author || undefined, - summary: populatedEntry.entries.description || undefined, - published_date: populatedEntry.entries.publishedAt || undefined, - image_url: populatedEntry.entries.media?.[0]?.url || undefined, - saved_using: "Follow", - }, - }) - - toast.success( - <> - {t("entry_actions.saved_to_readwise")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_readwise"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_instapaper"), - icon: , - key: "saveToInstapaper", - hide: - !enableInstapaper || - !instapaperPassword || - !instapaperUsername || - !populatedEntry.entries.url, - onClick: async () => { - try { - window.analytics?.capture("integration", { - type: "instapaper", - event: "save", - }) - const data = await ofetch("https://www.instapaper.com/api/add", { - query: { - url: populatedEntry.entries.url, - title: populatedEntry.entries.title, - }, - method: "POST", - headers: { - Authorization: `Basic ${btoa(`${instapaperUsername}:${instapaperPassword}`)}`, - }, - parseResponse: JSON.parse, - }) - - toast.success( - <> - {t("entry_actions.saved_to_instapaper")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_instapaper"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_omnivore"), - icon: , - key: "saveToomnivore", - hide: !enableOmnivore || !omnivoreToken || !omnivoreEndpoint || !populatedEntry.entries.url, - onClick: async () => { - const saveUrlQuery = ` - mutation SaveUrl($input: SaveUrlInput!) { - saveUrl(input: $input) { - ... on SaveSuccess { - url - clientRequestId - } - ... on SaveError { - errorCodes - message - } - } - } -` - - window.analytics?.capture("integration", { - type: "omnivore", - event: "save", - }) - try { - const data = await ofetch(omnivoreEndpoint, { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: omnivoreToken, - }, - body: { - query: saveUrlQuery, - variables: { - input: { - url: populatedEntry.entries.url, - source: "Follow", - clientRequestId: globalThis.crypto.randomUUID(), - publishedAt: new Date(populatedEntry.entries.publishedAt), - }, - }, - }, - }) - toast.success( - <> - {t("entry_actions.saved_to_omnivore")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_omnivore"), { - duration: 3000, - }) - } - }, - }, - { - name: t("entry_actions.save_to_obsidian"), - icon: , - key: "saveToObsidian", - hide: !isObsidianEnabled || !populatedEntry?.entries?.url || !IN_ELECTRON, - onClick: async () => { - if (!isObsidianEnabled || !populatedEntry?.entries?.url || !IN_ELECTRON) return - - const markdownContent = await getEntryContentAsMarkdown() - window.analytics?.capture("integration", { - type: "obsidian", - event: "save", - }) - saveToObsidian.mutate({ - url: populatedEntry.entries.url, - title: populatedEntry.entries.title || "", - content: markdownContent, - author: populatedEntry.entries.author || "", - publishedAt: populatedEntry.entries.publishedAt || "", - vaultPath: obsidianVaultPath, - }) - }, - }, - { - name: t("entry_actions.save_to_outline"), - icon: , - key: "saveToOutline", - hide: - !IN_ELECTRON || - !enableOutline || - !outlineToken || - !outlineEndpoint || - !outlineCollection || - !populatedEntry.entries.title, - onClick: async () => { - try { - const request = async (method: string, params: Record) => { - return await ofetch(`${outlineEndpoint.replace(/\/$/, "")}/${method}`, { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: `Bearer ${outlineToken}`, - }, - body: params, - }) - } - let collectionId = outlineCollection - if (!/^[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}$/i.test(collectionId)) { - const collection = await request("collections.info", { - id: collectionId, - }) - collectionId = collection.data.id - } - const markdownContent = await getEntryContentAsMarkdown() - await request("documents.create", { - title: populatedEntry.entries.title, - text: markdownContent, - collectionId, - publish: true, - }) - toast.success(t("entry_actions.saved_to_outline"), { - duration: 3000, - }) - } catch { - toast.error(t("entry_actions.failed_to_save_to_outline"), { - duration: 3000, - }) - } - }, - }, - ] - - return items - }, [ - populatedEntry, - view, - t, - enableEagle, - checkEagle.isLoading, - checkEagle.data, - enableReadwise, - readwiseToken, - enableInstapaper, - instapaperPassword, - instapaperUsername, - enableOmnivore, - omnivoreToken, - omnivoreEndpoint, - isObsidianEnabled, - enableOutline, - outlineToken, - outlineEndpoint, - outlineCollection, - saveToObsidian, - obsidianVaultPath, - ]) - - return { - items, - } -} diff --git a/apps/renderer/src/modules/command/commands/id.ts b/apps/renderer/src/modules/command/commands/id.ts index 92304bd91..73a1840ff 100644 --- a/apps/renderer/src/modules/command/commands/id.ts +++ b/apps/renderer/src/modules/command/commands/id.ts @@ -19,7 +19,6 @@ export const COMMAND_ID = { saveToEagle: "integration:save-to-eagle", saveToReadwise: "integration:save-to-readwise", saveToInstapaper: "integration:save-to-instapaper", - saveToOmnivore: "integration:save-to-omnivore", saveToObsidian: "integration:save-to-obsidian", saveToOutline: "integration:save-to-outline", }, diff --git a/apps/renderer/src/modules/command/commands/integration.tsx b/apps/renderer/src/modules/command/commands/integration.tsx index f6dfc2407..1b91e5c13 100644 --- a/apps/renderer/src/modules/command/commands/integration.tsx +++ b/apps/renderer/src/modules/command/commands/integration.tsx @@ -2,7 +2,6 @@ import { SimpleIconsEagle, SimpleIconsInstapaper, SimpleIconsObsidian, - SimpleIconsOmnivore, SimpleIconsOutline, SimpleIconsReadwise, } from "@follow/components/ui/platform-icon/icons.js" @@ -29,7 +28,6 @@ export const useRegisterIntegrationCommands = () => { useRegisterEagleCommands() useRegisterReadwiseCommands() useRegisterInstapaperCommands() - useRegisterOmnivoreCommands() useRegisterObsidianCommands() useRegisterOutlineCommands() } @@ -236,90 +234,6 @@ const useRegisterInstapaperCommands = () => { ) } -const useRegisterOmnivoreCommands = () => { - const { t } = useTranslation() - - const enableOmnivore = useIntegrationSettingKey("enableOmnivore") - const omnivoreToken = useIntegrationSettingKey("omnivoreToken") - const omnivoreEndpoint = useIntegrationSettingKey("omnivoreEndpoint") - - const isOmnivoreAvailable = enableOmnivore && !!omnivoreToken && !!omnivoreEndpoint - - useRegisterCommandEffect( - !isOmnivoreAvailable - ? [] - : defineFollowCommand({ - id: COMMAND_ID.integration.saveToOmnivore, - label: t("entry_actions.save_to_omnivore"), - icon: , - run: async ({ entryId }) => { - const entry = useEntryStore.getState().flatMapEntries[entryId] - if (!entry) { - toast.error("Failed to save to Omnivore: entry is not available", { duration: 3000 }) - return - } - const saveUrlQuery = ` - mutation SaveUrl($input: SaveUrlInput!) { - saveUrl(input: $input) { - ... on SaveSuccess { - url - clientRequestId - } - ... on SaveError { - errorCodes - message - } - } - } -` - - window.analytics?.capture("integration", { - type: "omnivore", - event: "save", - }) - try { - const data = await ofetch(omnivoreEndpoint, { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: omnivoreToken, - }, - body: { - query: saveUrlQuery, - variables: { - input: { - url: entry.entries.url, - source: "Follow", - clientRequestId: globalThis.crypto.randomUUID(), - publishedAt: new Date(entry.entries.publishedAt), - }, - }, - }, - }) - toast.success( - <> - {t("entry_actions.saved_to_omnivore")},{" "} - - view - - , - { - duration: 3000, - }, - ) - } catch { - toast.error(t("entry_actions.failed_to_save_to_omnivore"), { - duration: 3000, - }) - } - }, - }), - { - deps: [isOmnivoreAvailable], - }, - ) -} - const getEntryContentAsMarkdown = async (entry: FlatEntryModel) => { const isReadabilityReady = getReadabilityStatus()[entry.entries.id] === ReadabilityStatus.SUCCESS const content = diff --git a/apps/renderer/src/modules/command/commands/types.ts b/apps/renderer/src/modules/command/commands/types.ts index fcb69338c..04841106f 100644 --- a/apps/renderer/src/modules/command/commands/types.ts +++ b/apps/renderer/src/modules/command/commands/types.ts @@ -106,11 +106,6 @@ export type SaveToInstapaperCommand = Command<{ fn: (payload: { entryId: string }) => void }> -export type SaveToOmnivoreCommand = Command<{ - id: typeof COMMAND_ID.integration.saveToOmnivore - fn: (payload: { entryId: string }) => void -}> - export type SaveToObsidianCommand = Command<{ id: typeof COMMAND_ID.integration.saveToObsidian fn: (payload: { entryId: string }) => void @@ -125,7 +120,6 @@ export type IntegrationCommand = | SaveToEagleCommand | SaveToReadwiseCommand | SaveToInstapaperCommand - | SaveToOmnivoreCommand | SaveToObsidianCommand | SaveToOutlineCommand diff --git a/apps/renderer/src/modules/settings/tabs/integration.tsx b/apps/renderer/src/modules/settings/tabs/integration.tsx index b23d39576..942d59ef1 100644 --- a/apps/renderer/src/modules/settings/tabs/integration.tsx +++ b/apps/renderer/src/modules/settings/tabs/integration.tsx @@ -3,7 +3,6 @@ import { SimpleIconsEagle, SimpleIconsInstapaper, SimpleIconsObsidian, - SimpleIconsOmnivore, SimpleIconsOutline, SimpleIconsReadwise, } from "@follow/components/ui/platform-icon/icons.js" @@ -103,56 +102,6 @@ export const SettingIntegration = () => { labelClassName: "w-[150px]", }, }), - { - type: "title", - value: ( - - - {t("integration.omnivore.title")} - - ), - }, - defineSettingItem("enableOmnivore", { - label: t("integration.omnivore.enable.label"), - description: t("integration.omnivore.enable.description"), - }), - defineSettingItem("omnivoreEndpoint", { - label: t("integration.omnivore.endpoint.label"), - vertical: true, - description: ( - <> - {t("integration.omnivore.endpoint.description")}{" "} - - https://api-prod.omnivore.app/api/graphql - - . - - ), - }), - defineSettingItem("omnivoreToken", { - label: t("integration.omnivore.token.label"), - vertical: true, - type: "password", - description: ( - <> - {t("integration.omnivore.token.description")}{" "} - - omnivore.app/settings/api - - . - - ), - }), { type: "title", value: ( diff --git a/locales/app/en.json b/locales/app/en.json index 4a81d9860..fcc91ae8e 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -111,7 +111,6 @@ "entry_actions.failed_to_save_to_eagle": "Failed to save to Eagle.", "entry_actions.failed_to_save_to_instapaper": "Failed to save to Instapaper.", "entry_actions.failed_to_save_to_obsidian": "Failed to save to Obsidian", - "entry_actions.failed_to_save_to_omnivore": "Failed to save to Omnivore.", "entry_actions.failed_to_save_to_outline": "Failed to save to Outline.", "entry_actions.failed_to_save_to_readwise": "Failed to save to Readwise.", "entry_actions.mark_as_read": "Mark as Read", @@ -121,13 +120,11 @@ "entry_actions.save_media_to_eagle": "Save Media To Eagle", "entry_actions.save_to_instapaper": "Save To Instapaper", "entry_actions.save_to_obsidian": "Save to Obsidian", - "entry_actions.save_to_omnivore": "Save To Omnivore", "entry_actions.save_to_outline": "Save To Outline", "entry_actions.save_to_readwise": "Save To Readwise", "entry_actions.saved_to_eagle": "Saved To Eagle.", "entry_actions.saved_to_instapaper": "Saved To Instapaper.", "entry_actions.saved_to_obsidian": "Saved to Obsidian", - "entry_actions.saved_to_omnivore": "Saved To Omnivore.", "entry_actions.saved_to_outline": "Saved To Outline.", "entry_actions.saved_to_readwise": "Saved To Readwise.", "entry_actions.share": "Share", diff --git a/locales/app/ja.json b/locales/app/ja.json index 8e8861fe5..ae6047769 100644 --- a/locales/app/ja.json +++ b/locales/app/ja.json @@ -111,7 +111,6 @@ "entry_actions.failed_to_save_to_eagle": "Eagle への保存に失敗しました。", "entry_actions.failed_to_save_to_instapaper": "Instapaper への保存に失敗しました。", "entry_actions.failed_to_save_to_obsidian": "Obsidian への保存に失敗しました。", - "entry_actions.failed_to_save_to_omnivore": "Omnivore への保存に失敗しました。", "entry_actions.failed_to_save_to_outline": "Outline への保存に失敗しました。", "entry_actions.failed_to_save_to_readwise": "Readwise への保存に失敗しました。", "entry_actions.mark_as_read": "既読にする", @@ -121,13 +120,11 @@ "entry_actions.save_media_to_eagle": "メディアを Eagle に保存", "entry_actions.save_to_instapaper": "Instapaper に保存", "entry_actions.save_to_obsidian": "Obsidian に保存", - "entry_actions.save_to_omnivore": "Omnivore に保存", "entry_actions.save_to_outline": "Outline に保存", "entry_actions.save_to_readwise": "Readwise に保存", "entry_actions.saved_to_eagle": "Eagle に保存されました。", "entry_actions.saved_to_instapaper": "Instapaper に保存されました。", "entry_actions.saved_to_obsidian": "Obsidian に保存されました。", - "entry_actions.saved_to_omnivore": "Omnivore に保存されました。", "entry_actions.saved_to_outline": "Outline に保存されました。", "entry_actions.saved_to_readwise": "Readwise に保存されました。", "entry_actions.share": "共有", @@ -244,7 +241,7 @@ "new_user_guide.step.behavior.unread_question.option2": "バランス: ホバーしたりスクロールが終わると自動で既読にします。", "new_user_guide.step.behavior.unread_question.option3": "コンサバ: クリックしたときのみ既読にします。", "new_user_guide.step.features.actions.description": "アクションルールはフィードごとに違ったアクションを実行できます。\n - AI を使った要約や翻訳 \n - エントリーの読み方の設定 \n - 新着エントリーの通知の有効/無効 \n - 特定のエントリーの書き換えやブロック \n - 新着エントリーの Webhook アドレスへの送信など", - "new_user_guide.step.features.integration.description": "統合により、他のサービスにエントリーを保存することができます。現在対応しているサービスは以下のとおりです:\n- Eagle \n- Readwise \n- Instapaper \n- Obsidian \n- Omnivore \n- Outline", + "new_user_guide.step.features.integration.description": "統合により、他のサービスにエントリーを保存することができます。現在対応しているサービスは以下のとおりです:\n- Eagle \n- Readwise \n- Instapaper \n- Obsidian \n- Outline", "new_user_guide.step.migrate.profile": "プロファイルをセットアップ", "new_user_guide.step.migrate.title": "OPML ファイルを構成する", "new_user_guide.step.migrate.wallet": "ウォレットをチェック", diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json index 36a03a85e..2b1132925 100644 --- a/locales/app/zh-CN.json +++ b/locales/app/zh-CN.json @@ -111,7 +111,6 @@ "entry_actions.failed_to_save_to_eagle": "保存到 Eagle 失败。", "entry_actions.failed_to_save_to_instapaper": "保存到 Instapaper 失败。", "entry_actions.failed_to_save_to_obsidian": "保存到 Obsidian 失败。", - "entry_actions.failed_to_save_to_omnivore": "保存到 Omnivore 失败。", "entry_actions.failed_to_save_to_outline": "保存到 Outline 失败。", "entry_actions.failed_to_save_to_readwise": "保存到 Readwise 失败。", "entry_actions.mark_as_read": "标记为已读", @@ -121,13 +120,11 @@ "entry_actions.save_media_to_eagle": "保存到 Eagle", "entry_actions.save_to_instapaper": "保存到 Instapaper", "entry_actions.save_to_obsidian": "保存到 Obsidian", - "entry_actions.save_to_omnivore": "保存到 Omnivore", "entry_actions.save_to_outline": "保存到 Outline", "entry_actions.save_to_readwise": "保存到 Readwise", "entry_actions.saved_to_eagle": "已保存到 Eagle。", "entry_actions.saved_to_instapaper": "已保存到 Instapaper。", "entry_actions.saved_to_obsidian": "已保存到 Obsidian。", - "entry_actions.saved_to_omnivore": "已保存到 Omnivore。", "entry_actions.saved_to_outline": "已保存到 Outline。", "entry_actions.saved_to_readwise": "已保存到 Readwise。", "entry_actions.share": "分享", diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index 119bf0811..707427ca2 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -111,7 +111,6 @@ "entry_actions.failed_to_save_to_eagle": "無法儲存至 Eagle", "entry_actions.failed_to_save_to_instapaper": "無法儲存至 Instapaper", "entry_actions.failed_to_save_to_obsidian": "無法儲存至 Obsidian ", - "entry_actions.failed_to_save_to_omnivore": "無法儲存至 Omnivore", "entry_actions.failed_to_save_to_outline": "無法儲存至 Outline", "entry_actions.failed_to_save_to_readwise": "無法儲存至 Readwise", "entry_actions.mark_as_read": "標記為已讀", @@ -121,13 +120,11 @@ "entry_actions.save_media_to_eagle": "儲存媒體至 Eagle", "entry_actions.save_to_instapaper": "儲存至 Instapaper", "entry_actions.save_to_obsidian": "儲存至 Obsidian", - "entry_actions.save_to_omnivore": "儲存至 Omnivore", "entry_actions.save_to_outline": "儲存至 Outline", "entry_actions.save_to_readwise": "儲存至 Readwise", "entry_actions.saved_to_eagle": "已儲存至 Eagle", "entry_actions.saved_to_instapaper": "已儲存至 Instapaper", "entry_actions.saved_to_obsidian": "已儲存至 Obsidian", - "entry_actions.saved_to_omnivore": "已儲存至 Omnivore", "entry_actions.saved_to_outline": "已儲存至 Outline", "entry_actions.saved_to_readwise": "已儲存至 Readwise", "entry_actions.share": "分享", diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json index 89c8c9c50..775fb5aee 100644 --- a/locales/app/zh-TW.json +++ b/locales/app/zh-TW.json @@ -111,7 +111,6 @@ "entry_actions.failed_to_save_to_eagle": "無法儲存到 Eagle。", "entry_actions.failed_to_save_to_instapaper": "無法儲存到 Instapaper。", "entry_actions.failed_to_save_to_obsidian": "儲存到 Obsidian 失敗", - "entry_actions.failed_to_save_to_omnivore": "無法儲存到 Omnivore。", "entry_actions.failed_to_save_to_outline": "無法儲存到 Outline。", "entry_actions.failed_to_save_to_readwise": "無法儲存到 Readwise。", "entry_actions.mark_as_read": "標記為已讀", @@ -121,13 +120,11 @@ "entry_actions.save_media_to_eagle": "儲存媒體至 Eagle", "entry_actions.save_to_instapaper": "儲存到 Instapaper", "entry_actions.save_to_obsidian": "儲存到 Obsidian", - "entry_actions.save_to_omnivore": "儲存到 Omnivore", "entry_actions.save_to_outline": "儲存到 Outline", "entry_actions.save_to_readwise": "儲存到 Readwise", "entry_actions.saved_to_eagle": "已儲存至 Eagle。", "entry_actions.saved_to_instapaper": "已儲存至 Instapaper。", "entry_actions.saved_to_obsidian": "已儲存到 Obsidian", - "entry_actions.saved_to_omnivore": "已儲存至 Omnivore。", "entry_actions.saved_to_outline": "已儲存至 Outline。", "entry_actions.saved_to_readwise": "已儲存至 Readwise。", "entry_actions.share": "分享", diff --git a/locales/settings/en.json b/locales/settings/en.json index 6941971ce..951b40b3d 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -175,13 +175,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "The path to your Obsidian vault.", "integration.obsidian.vaultPath.label": "Obsidian Vault Path", - "integration.omnivore.enable.description": "Display 'Save to Omnivore' button when available.", - "integration.omnivore.enable.label": "Enable", - "integration.omnivore.endpoint.description": "Omnivore Official Endpoint is: ", - "integration.omnivore.endpoint.label": "Omnivore Endpoint", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "You can get it here: ", - "integration.omnivore.token.label": "Omnivore API Key", "integration.outline.collection.description": "The UUID or urlId of the collection where the documents is saved.", "integration.outline.collection.label": "Outline Collection", "integration.outline.enable.description": "Display 'Save to Outline' button when available.", diff --git a/locales/settings/ja.json b/locales/settings/ja.json index 519af0346..bcbff6b71 100644 --- a/locales/settings/ja.json +++ b/locales/settings/ja.json @@ -172,13 +172,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "Obsidian vaultのパスを指定します", "integration.obsidian.vaultPath.label": "Obsidian Vault パス", - "integration.omnivore.enable.description": "利用可能な場合、'Omnivore に保存' ボタンを表示します。", - "integration.omnivore.enable.label": "有効化", - "integration.omnivore.endpoint.description": "Omnivore の公式 Endpoint", - "integration.omnivore.endpoint.label": "Omnivore Endpoint", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "こちらで取得できます:", - "integration.omnivore.token.label": "Omnivore API Key", "integration.outline.collection.description": "ドキュメントに保存された UUID または urlId コレクションです。", "integration.outline.collection.label": "Outline コレクション", "integration.outline.enable.description": "利用可能なとき 'Outline に保存' ボタンを表示します。", diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json index 383d563cd..6bc99306d 100644 --- a/locales/settings/zh-CN.json +++ b/locales/settings/zh-CN.json @@ -172,13 +172,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "你的 Obsidian 仓库的路径", "integration.obsidian.vaultPath.label": "Obsidian 仓库路径", - "integration.omnivore.enable.description": "显示「保存到 Omnivore」按钮(如果可用)。", - "integration.omnivore.enable.label": "启用", - "integration.omnivore.endpoint.description": "Omnivore 官方接口", - "integration.omnivore.endpoint.label": "Omnivore 访问域名", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "在这里获取 API 密钥", - "integration.omnivore.token.label": "Omnivore API 密钥", "integration.outline.collection.description": "保存文档的文档集的 UUID 或 urlId。", "integration.outline.collection.label": "Outline 文档集", "integration.outline.enable.description": "显示「保存到 Outline」按钮(如果可用)。", diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json index e43684320..ce56ce15e 100644 --- a/locales/settings/zh-HK.json +++ b/locales/settings/zh-HK.json @@ -168,13 +168,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "你的 Obsidian 儲存庫的路徑", "integration.obsidian.vaultPath.label": "Obsidian 儲存庫路徑", - "integration.omnivore.enable.description": "顯示「儲存到 Omnivore」按钮(如果可用)", - "integration.omnivore.enable.label": "啟用", - "integration.omnivore.endpoint.description": "Omnivore 官方端口", - "integration.omnivore.endpoint.label": "Omnivore 端口", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "你可以在這裡獲取", - "integration.omnivore.token.label": "Omnivore API 密鑰", "integration.outline.collection.description": "儲存文件的集合的 UUID 或 urlId", "integration.outline.collection.label": "Outline Collection", "integration.outline.enable.description": "顯示「儲存到 Outline」按钮(如果可用)", diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index 6e00ed651..abc109d40 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -160,13 +160,6 @@ "integration.obsidian.title": "Obsidian", "integration.obsidian.vaultPath.description": "您的 Obsidian 儲存庫的路徑", "integration.obsidian.vaultPath.label": "Obsidian 儲存庫路徑", - "integration.omnivore.enable.description": "顯示\"保存到 Omnivore\"按钮(如果可用)。", - "integration.omnivore.enable.label": "啟用", - "integration.omnivore.endpoint.description": "Omnivore 官方端口", - "integration.omnivore.endpoint.label": "Omnivore 端口", - "integration.omnivore.title": "Omnivore", - "integration.omnivore.token.description": "你可以在這裡獲取", - "integration.omnivore.token.label": "Omnivore API 密鑰", "integration.outline.collection.description": "儲存文檔的文檔集的 UUID 或 urlId", "integration.outline.collection.label": "Outline 文檔集", "integration.outline.enable.description": "顯示\"儲存到 Outline\"按鈕(如果可用)", diff --git a/packages/components/src/ui/platform-icon/collections/omnivore.tsx b/packages/components/src/ui/platform-icon/collections/omnivore.tsx deleted file mode 100644 index 2700afcb8..000000000 --- a/packages/components/src/ui/platform-icon/collections/omnivore.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import type { SVGProps } from "react" - -export function SimpleIconsOmnivore(props: SVGProps) { - return ( - - - - ) -} diff --git a/packages/components/src/ui/platform-icon/icons.ts b/packages/components/src/ui/platform-icon/icons.ts index 0744a734c..7439d1868 100644 --- a/packages/components/src/ui/platform-icon/icons.ts +++ b/packages/components/src/ui/platform-icon/icons.ts @@ -1,7 +1,6 @@ export * from "./collections/eagle" export * from "./collections/instapaper" export * from "./collections/obsidian" -export * from "./collections/omnivore" export * from "./collections/outline" export * from "./collections/readwise" export * from "./collections/rss3" diff --git a/packages/shared/src/interface/settings.ts b/packages/shared/src/interface/settings.ts index fdea29f97..b038c8546 100644 --- a/packages/shared/src/interface/settings.ts +++ b/packages/shared/src/interface/settings.ts @@ -64,11 +64,6 @@ export interface IntegrationSettings { instapaperUsername: string instapaperPassword: string - // omnivore - enableOmnivore: boolean - omnivoreEndpoint: string - omnivoreToken: string - // obsidian enableObsidian: boolean obsidianVaultPath: string From 7bdf10050cef7f39b0f485b89ca0445c49116d81 Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 1 Dec 2024 22:02:23 +0800 Subject: [PATCH 17/80] fix(bridge): window call should catch error Signed-off-by: Innei --- apps/main/src/tipc/reader.ts | 3 ++- packages/shared/src/bridge.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/main/src/tipc/reader.ts b/apps/main/src/tipc/reader.ts index 47b0bbb50..751458f2f 100644 --- a/apps/main/src/tipc/reader.ts +++ b/apps/main/src/tipc/reader.ts @@ -68,7 +68,8 @@ export const readerRoute = { } await tts.setMetadata(input, OUTPUT_FORMAT.WEBM_24KHZ_16BIT_MONO_OPUS).catch((error) => { - return callWindowExpose(window).toast.error(error.message, { + const msg = typeof error === "string" ? error : error.message + return callWindowExpose(window).toast.error(msg || "unknown set voice error", { duration: 1000, }) }) diff --git a/packages/shared/src/bridge.ts b/packages/shared/src/bridge.ts index 15848af7e..2b8dd8adb 100644 --- a/packages/shared/src/bridge.ts +++ b/packages/shared/src/bridge.ts @@ -89,7 +89,7 @@ function createProxy(window: BrowserWindow, path: try { return await window.webContents.executeJavaScript( - `globalThis.${PREFIX}?.${methodPath}?.(${args.map((arg) => JSON.stringify(arg)).join(",")})`, + `(async () => { try { return await globalThis.${PREFIX}?.${methodPath}?.(${args.map((arg) => JSON.stringify(arg)).join(",")}) } catch (err) { console.error('Failed to executeJavaScript: ${methodPath}', err) } })()`, ) } catch (err) { console.error(`Failed to executeJavaScript: ${methodPath}`, err) From 36cdbbd706c41b10b6fd19d84756b35f8c0a3f8b Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:00:47 +0800 Subject: [PATCH 18/80] fix: selected id state Issues brought in https://github.com/RSSNext/Follow/commit/ad3a4cb556908d4cdff3a1e46150c5d73849fef3 --- apps/renderer/src/modules/feed-column/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/feed-column/index.tsx b/apps/renderer/src/modules/feed-column/index.tsx index 23fb202a1..d1e8eb75b 100644 --- a/apps/renderer/src/modules/feed-column/index.tsx +++ b/apps/renderer/src/modules/feed-column/index.tsx @@ -169,7 +169,7 @@ export function FeedColumn({ children, className }: PropsWithChildren<{ classNam onPointerDown={useTypeScriptHappyCallback((e) => { if (!(e.target instanceof HTMLElement) || !e.target.closest("[data-feed-id]")) { const nextSelectedFeedIds = getSelectedFeedIds() - if (nextSelectedFeedIds.length > 0) { + if (nextSelectedFeedIds.length === 0) { setSelectedFeedIds(nextSelectedFeedIds) } else { resetSelectedFeedIds() From ef68baeb29fbaba8a9d78a47656a8a7f852cc093 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:11:11 +0800 Subject: [PATCH 19/80] fix: can not translate title by action close #1957 --- apps/renderer/src/modules/entry-column/translation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/entry-column/translation.tsx b/apps/renderer/src/modules/entry-column/translation.tsx index a6ea34ca1..3994a61ec 100644 --- a/apps/renderer/src/modules/entry-column/translation.tsx +++ b/apps/renderer/src/modules/entry-column/translation.tsx @@ -15,7 +15,7 @@ export const EntryTranslation: Component<{ useOverlay?: boolean isHTML?: boolean -}> = ({ source, target, showTranslation, className, side, useOverlay, isHTML }) => { +}> = ({ source, target, showTranslation = true, className, side, useOverlay, isHTML }) => { let nextTarget = target if (source === target) { nextTarget = undefined From 936476169caba5cbacafe6f4d35f7857add32802 Mon Sep 17 00:00:00 2001 From: Jerry Wong Date: Mon, 2 Dec 2024 00:30:58 +0800 Subject: [PATCH 20/80] feat: update zh-HK file (#1955) --- locales/app/zh-HK.json | 11 +++++++++++ locales/external/zh-HK.json | 1 + locales/settings/zh-HK.json | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index 707427ca2..aa5d4f7e5 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -131,6 +131,8 @@ "entry_actions.star": "收藏", "entry_actions.starred": "已收藏", "entry_actions.tip": "贊助", + "entry_actions.toggle_ai_summary": "切換 AI 摘要", + "entry_actions.toggle_ai_translation": "切換 AI 翻譯", "entry_actions.unstar": "取消收藏", "entry_actions.unstarred": "已取消收藏", "entry_actions.view_source_content": "查看原始內容", @@ -150,9 +152,13 @@ "entry_content.web_app_notice": "網頁應用可能不支持此內容類型。你可以下載桌面應用程式。", "entry_list.zero_unread": "全部已讀", "entry_list_header.daily_report": "每日報告", + "entry_list_header.grid": "Grid", "entry_list_header.hide_no_image_items": "隱藏沒有圖片的條目", "entry_list_header.items": "項目", + "entry_list_header.masonry": "Masonry", + "entry_list_header.masonry_column": "Masonry 欄", "entry_list_header.new_entries_available": "有新條目可用", + "entry_list_header.preview_mode": "預覽模式", "entry_list_header.refetch": "重新抓取", "entry_list_header.refresh": "重新整理", "entry_list_header.show_all": "顯示所有", @@ -183,6 +189,7 @@ "feed_claim_modal.tab_rss": "RSS 標籤", "feed_claim_modal.title": "認領訂閱源", "feed_claim_modal.verify_ownership": "要認領這個訂閱源,你需要驗證所有權。", + "feed_form.add_feed": "新增訂閱源", "feed_form.add_follow": "新增追隨", "feed_form.category": "分類", "feed_form.category_description": "默認情況下,你的追隨會按網站分組。", @@ -258,6 +265,7 @@ "notify.unfollow_feed_many": "已取消追隨所有選取的訂閲源", "notify.update_info": "{{app_name}} 已準備好更新!", "notify.update_info_1": "點擊以重新啟動", + "notify.update_info_2": "點擊以重新載入頁面", "player.back_10s": "倒退 10 秒", "player.close": "關閉", "player.download": "下載", @@ -271,6 +279,8 @@ "player.playback_rate": "播放速度", "player.unmute": "取消靜音", "player.volume": "音量", + "quick_add.placeholder": "快速追隨訂閱源,請在此輸入訂閱源網址...", + "quick_add.title": "快速追隨", "resize.tooltip.double_click_to_collapse": "雙擊以摺疊", "resize.tooltip.drag_to_resize": "拖曳以調整大小", "search.empty.no_results": "未找到結果", @@ -330,6 +340,7 @@ "sidebar.feed_column.context_menu.rename_category_error": "重命名分類失敗", "sidebar.feed_column.context_menu.rename_category_success": "分類已成功重命名", "sidebar.select_sort_method": "選擇排序方法", + "signin.continue_with": "繼續使用 {{provider}}", "signin.sign_in_to": "登入至", "sync_indicator.disabled": "由於安全原因,同步已禁用。", "sync_indicator.offline": "離線", diff --git a/locales/external/zh-HK.json b/locales/external/zh-HK.json index 5a4cc1b48..d505fbfb0 100644 --- a/locales/external/zh-HK.json +++ b/locales/external/zh-HK.json @@ -31,6 +31,7 @@ "invitation.getCodeMessage": "你可以通過以下方式獲取邀請碼:", "invitation.title": "邀請碼", "login.backToWebApp": "返回網頁應用程式", + "login.continueWith": "繼續使用 {{provider}}", "login.logInTo": "登錄到", "login.openApp": "打開應用程式", "login.redirecting": "重定向中", diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json index ce56ce15e..a65f9a1b9 100644 --- a/locales/settings/zh-HK.json +++ b/locales/settings/zh-HK.json @@ -111,6 +111,7 @@ "general.auto_group.label": "自動分組", "general.cache": "快取", "general.data": "數據", + "general.data_file.label": "數據文件", "general.data_persist.description": "本地儲存數據以啟用離線存取和本地搜尋", "general.data_persist.label": "離線使用時保留數據", "general.export.button": "匯出", @@ -123,6 +124,9 @@ "general.group_by_date.label": "按日期分組", "general.language": "語言", "general.launch_at_login": "登入時啟動", + "general.log_file.button": "顯示", + "general.log_file.description": "在系統中顯示日誌文件", + "general.log_file.label": "日誌文件", "general.mark_as_read.hover.description": "游標懸停時自動將條目標記為已讀", "general.mark_as_read.hover.label": "懸停時標記為已讀", "general.mark_as_read.render.description": "當條目進入視圖時,會自動標記單層條目(例如社交媒體貼文、圖片、視頻觀看)為已讀。", @@ -145,6 +149,8 @@ "general.reduce_refetch.label": "減少時間軸重新獲取", "general.send_anonymous_data.description": "選擇發送匿名的遙測數據,將有助於提升 Follow 的整體用戶體驗。", "general.send_anonymous_data.label": "發送匿名數據", + "general.show_quick_timeline.description": "在訂閱源清單頂部顯示快速時間軸。", + "general.show_quick_timeline.label": "顯示訂閱源清單時間軸", "general.show_unread_on_launch.description": "啟動時顯示未讀內容", "general.show_unread_on_launch.label": "啟動時顯示未讀內容", "general.sidebar": "側邊欄", @@ -153,6 +159,7 @@ "general.startup_screen.timeline": "時間軸", "general.startup_screen.title": "啟動畫面", "general.timeline": "時間軸", + "general.translation_language": "翻譯語言", "general.unread": "未讀", "general.voices": "語音", "integration.eagle.enable.description": "顯示「將媒體儲存到 Eagle」按鈕(如果可用)", From fea74b47829921822e0c701ea36ab1d4ac1e2083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E7=A9=BA=E7=9A=84=E7=9B=A1=E9=A0=AD?= <9551552+ghostendsky@users.noreply.github.com> Date: Mon, 2 Dec 2024 00:31:13 +0800 Subject: [PATCH 21/80] feat(i18n): translations (zh-TW) (#1942) * feat(i18n): Added multiple text translations (zh-TW) * feat(i18n): 1. Added multiple text translations (zh-TW) 2. Revised some text translations(zh-TW) --- locales/app/zh-TW.json | 11 +++++++++++ locales/common/zh-TW.json | 1 + locales/errors/zh-TW.json | 5 ++++- locales/external/zh-TW.json | 1 + locales/native/zh-TW.json | 4 ++++ locales/settings/zh-TW.json | 15 +++++++++++++++ 6 files changed, 36 insertions(+), 1 deletion(-) diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json index 775fb5aee..c1b1d7135 100644 --- a/locales/app/zh-TW.json +++ b/locales/app/zh-TW.json @@ -131,6 +131,8 @@ "entry_actions.star": "收藏", "entry_actions.starred": "已收藏", "entry_actions.tip": "贊助", + "entry_actions.toggle_ai_summary": "切換 AI 摘要", + "entry_actions.toggle_ai_translation": "切換 AI 翻譯", "entry_actions.unstar": "取消收藏", "entry_actions.unstarred": "已取消收藏", "entry_actions.view_source_content": "查看原始內容", @@ -150,9 +152,13 @@ "entry_content.web_app_notice": "Web 應用程式不支援此類型內容。您可以下載桌面應用程式。", "entry_list.zero_unread": "零未讀", "entry_list_header.daily_report": "每日報告", + "entry_list_header.grid": "格線佈局", "entry_list_header.hide_no_image_items": "隱藏無圖條目", "entry_list_header.items": "項目", + "entry_list_header.masonry": "瀑布式佈局", + "entry_list_header.masonry_column": "佈局列數", "entry_list_header.new_entries_available": "有新項目可用", + "entry_list_header.preview_mode": "預覽模式", "entry_list_header.refetch": "重新獲取", "entry_list_header.refresh": "重新整理", "entry_list_header.show_all": "顯示全部", @@ -183,6 +189,7 @@ "feed_claim_modal.tab_rss": "RSS 標籤", "feed_claim_modal.title": "認領摘要", "feed_claim_modal.verify_ownership": "要認領此摘要為您的內容,您需要驗證所有權。", + "feed_form.add_feed": "新增訂閱源", "feed_form.add_follow": "關注", "feed_form.category": "類別", "feed_form.category_description": "預設情況下,您的關注將按網站分組。", @@ -258,6 +265,7 @@ "notify.unfollow_feed_many": "所有選擇的訂閱已取消關注。", "notify.update_info": "{{app_name}} 已準備好更新!", "notify.update_info_1": "點擊重新啟動", + "notify.update_info_2": "點擊重新整理頁面", "player.back_10s": "後退 10 秒", "player.close": "關閉", "player.download": "下載", @@ -271,6 +279,8 @@ "player.playback_rate": "播放速率", "player.unmute": "取消靜音", "player.volume": "音量", + "quick_add.placeholder": "在此輸入訂閱源網址已快速訂閱...", + "quick_add.title": "快速訂閱", "resize.tooltip.double_click_to_collapse": "雙擊以摺疊", "resize.tooltip.drag_to_resize": "拖動以調整大小", "search.empty.no_results": "未找到結果。", @@ -330,6 +340,7 @@ "sidebar.feed_column.context_menu.rename_category_error": "重命名類別失敗", "sidebar.feed_column.context_menu.rename_category_success": "類別重命名成功", "sidebar.select_sort_method": "選擇排序方式", + "signin.continue_with": "透過 {{provider}} 登入", "signin.sign_in_to": "登入", "sync_indicator.disabled": "由於安全原因,同步功能已停用。", "sync_indicator.offline": "離線", diff --git a/locales/common/zh-TW.json b/locales/common/zh-TW.json index fd25b710f..f45dbb134 100644 --- a/locales/common/zh-TW.json +++ b/locales/common/zh-TW.json @@ -14,6 +14,7 @@ "tips.load-lng-error": "語言包載入失敗", "words.actions": "操作", "words.ago": "前", + "words.all": "全部", "words.back": "返回", "words.copy": "複製", "words.create": "創建", diff --git a/locales/errors/zh-TW.json b/locales/errors/zh-TW.json index 9b231a2f6..775c3c4d5 100644 --- a/locales/errors/zh-TW.json +++ b/locales/errors/zh-TW.json @@ -1,11 +1,13 @@ { "1": "上一操作未完成", "2": "CSRF Token 無效", + "3": "無法處理的內容", "1000": "未經授權", "1001": "建立會話失敗", "1002": "參數無效", "1003": "邀請無效", "1004": "無權限", + "1005": "內部錯誤", "1100": "超出預覽版訂閲源最大數量限制", "1101": "超出預覽版訂閲列表最大數量限制", "1102": "超出預覽版收件箱最大數量限制", @@ -23,11 +25,12 @@ "4002": "餘額不足", "4003": "動態可提領餘額不足", "4004": "目標使用者錢包錯誤", - "4005": "每日 power 计算中", + "4005": "每日 power 計算中", "4006": "無效助力數量", "4010": "空投不符合資格", "4011": "空投正在發送", "4012": "空投已發送", + "4013": "空投未驗證", "5000": "邀請數量已達上限,請幾天後再試", "5001": "邀請已存在", "5002": "邀請碼已被使用", diff --git a/locales/external/zh-TW.json b/locales/external/zh-TW.json index e2e15c26d..bd5e91de6 100644 --- a/locales/external/zh-TW.json +++ b/locales/external/zh-TW.json @@ -31,6 +31,7 @@ "invitation.getCodeMessage": "您可以通過以下方式獲取邀請碼:", "invitation.title": "邀請碼", "login.backToWebApp": "返回網頁應用程式", + "login.continueWith": "透過 {{provider}} 登入", "login.logInTo": "登入至 ", "login.openApp": "開啟應用程式", "login.redirecting": "正在重定向", diff --git a/locales/native/zh-TW.json b/locales/native/zh-TW.json index 0cf4b3138..c8626b128 100644 --- a/locales/native/zh-TW.json +++ b/locales/native/zh-TW.json @@ -19,8 +19,12 @@ "contextMenu.searchWithGoogle": "使用 Google 搜尋", "contextMenu.selectAll": "全選", "contextMenu.services": "服務", + "dialog.cancel": "取消", "dialog.clearAllData": "您確定要清除所有資料嗎?", "dialog.no": "否", + "dialog.open": "開啟", + "dialog.openExternalApp.message": "確定要使用其他App開啟 {{url}} 嗎?", + "dialog.openExternalApp.title": "開啟外部App?", "dialog.yes": "是", "menu.about": "關於 {{name}}", "menu.actualSize": "實際大小", diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index abc109d40..d7d16c757 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -8,6 +8,7 @@ "actions.actionName": "操作 {{number}}", "actions.action_card.add": "新增", "actions.action_card.all": "全部", + "actions.action_card.and": "和", "actions.action_card.block": "封鎖", "actions.action_card.block_rules": "封鎖規則", "actions.action_card.custom_filters": "自訂過濾條件", @@ -36,6 +37,7 @@ "actions.action_card.operation_options.is_not_equal_to": "不等於", "actions.action_card.operation_options.matches_regex": "符合正規表達式", "actions.action_card.operator": "運算子", + "actions.action_card.or": "或", "actions.action_card.rewrite_rules": "重寫規則", "actions.action_card.silence": "靜音", "actions.action_card.source_content": "瀏覽原始内容", @@ -105,8 +107,11 @@ "feeds.tableHeaders.subscriptionCount": "訂閱數", "feeds.tableHeaders.tipAmount": "收到的贊助", "general.app": "App", + "general.auto_group.description": "自動依照網址域名分類訂閱源。", + "general.auto_group.label": "自動分類", "general.cache": "快取", "general.data": "資料", + "general.data_file.label": "資料檔案", "general.data_persist.description": "本機儲存資料以啟用離線瀏覽和離線搜尋。", "general.data_persist.label": "離線時儲存資料", "general.export.button": "匯出", @@ -119,6 +124,9 @@ "general.group_by_date.label": "按日期分組", "general.language": "語言", "general.launch_at_login": "登入時啟動", + "general.log_file.button": "顯示", + "general.log_file.description": "在系統中顯示記錄檔案。", + "general.log_file.label": "記錄檔案", "general.mark_as_read.hover.description": "游標懸停時自動將條目標記為已讀。", "general.mark_as_read.hover.label": "滑過時標記為已讀", "general.mark_as_read.render.description": "當單層級條目(例如社群媒體貼文、圖片、影片瀏覽)進入視圖時自動標記為已讀。", @@ -141,10 +149,17 @@ "general.reduce_refetch.label": "降低時間軸重新獲取次數", "general.send_anonymous_data.description": "選擇傳送匿名使用資料,您將幫助改善 Follow 的整體使用體驗。", "general.send_anonymous_data.label": "傳送匿名資料", + "general.show_quick_timeline.description": "在訂閱源列表頂部顯示快速時間軸。", + "general.show_quick_timeline.label": "顯示訂閱源列表時間軸", "general.show_unread_on_launch.description": "啟動時顯示未讀內容", "general.show_unread_on_launch.label": "啟動時顯示未讀內容", + "general.sidebar": "側邊欄", "general.sidebar_title": "一般", + "general.startup_screen.subscription": "訂閱", + "general.startup_screen.timeline": "時間軸", + "general.startup_screen.title": "開始畫面", "general.timeline": "時間軸", + "general.translation_language": "翻譯語言", "general.unread": "未讀", "general.voices": "聲音", "integration.eagle.enable.description": "顯示「將媒體儲存到 Eagle」按鈕(如果可用)。", From eaecb252d322b5f2e8e89873523dfbe8d213848c Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 14:55:38 +0800 Subject: [PATCH 22/80] fix: scroll out mark read logic Signed-off-by: Innei --- .../src/modules/entry-column/Items/social-media-item.tsx | 2 +- .../entry-column/hooks/useEntryMarkReadHandler.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx index ddbfe70ec..2c8138866 100644 --- a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx @@ -65,7 +65,7 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} className={cn( - "relative flex px-2 py-6 lg:px-8", + "relative flex px-2 py-4 lg:px-8", "group", !asRead && "before:absolute before:left-0 before:top-10 before:block before:size-2 before:rounded-full before:bg-accent md:before:-left-2 lg:before:left-2", diff --git a/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx index 49a4e7abb..6530371af 100644 --- a/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx +++ b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx @@ -1,7 +1,7 @@ import { views } from "@follow/constants" import type { Range } from "@tanstack/react-virtual" import { useMemo } from "react" -import { useDebounceCallback } from "usehooks-ts" +import { useEventCallback } from "usehooks-ts" import { useGeneralSettingKey } from "~/atoms/settings/general" import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams" @@ -12,12 +12,17 @@ export const useEntryMarkReadHandler = (entriesIds: string[]) => { const scrollMarkUnread = useGeneralSettingKey("scrollMarkUnread") const feedView = useRouteParamsSelector((params) => params.view) - const handleRenderAsRead = useDebounceCallback( + const indexKeyIsCalled = useMemo(() => new Set(), [entriesIds]) + + const handleRenderAsRead = useEventCallback( ({ startIndex, endIndex }: Range, enabled?: boolean) => { if (!enabled) return + if (indexKeyIsCalled.has(`${startIndex}-${endIndex}`)) return const idSlice = entriesIds?.slice(startIndex, endIndex) + indexKeyIsCalled.add(`${startIndex}-${endIndex}`) if (!idSlice) return + batchMarkRead(idSlice) }, ) From 22e2c0d6496b6b5a947064616cfd62781093dbcf Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 14:59:16 +0800 Subject: [PATCH 23/80] chore: update deps Signed-off-by: Innei --- apps/main/package.json | 6 +- apps/renderer/package.json | 28 +- apps/server/package.json | 10 +- package.json | 16 +- packages/components/package.json | 6 +- packages/models/package.json | 2 +- packages/shared/package.json | 2 +- packages/utils/package.json | 4 +- pnpm-lock.yaml | 1641 +++++++++++++++++------------- 9 files changed, 945 insertions(+), 770 deletions(-) diff --git a/apps/main/package.json b/apps/main/package.json index b9a2f30b1..a8aa8836f 100644 --- a/apps/main/package.json +++ b/apps/main/package.json @@ -35,7 +35,7 @@ "electron-log": "5.2.3", "electron-squirrel-startup": "1.0.1", "electron-updater": "^6.3.9", - "es-toolkit": "1.27.0", + "es-toolkit": "1.29.0", "fast-folder-size": "2.3.0", "font-list": "1.5.1", "i18next": "^24.0.2", @@ -51,9 +51,9 @@ }, "devDependencies": { "@types/js-yaml": "4.0.9", - "@types/node": "^22.10.0", + "@types/node": "^22.10.1", "electron": "33.2.1", "electron-devtools-installer": "3.2.0", - "hono": "4.6.11" + "hono": "4.6.12" } } diff --git a/apps/renderer/package.json b/apps/renderer/package.json index efc6a1412..84e6a7cf5 100644 --- a/apps/renderer/package.json +++ b/apps/renderer/package.json @@ -20,7 +20,7 @@ "@headlessui/react": "2.2.0", "@hono/auth-js": "1.0.15", "@hookform/resolvers": "3.9.1", - "@lottiefiles/dotlottie-react": "0.10.0", + "@lottiefiles/dotlottie-react": "0.10.1", "@microflash/remark-callout-directives": "4.3.2", "@openpanel/web": "1.0.1", "@radix-ui/react-avatar": "1.1.1", @@ -32,12 +32,12 @@ "@radix-ui/react-popover": "1.1.2", "@radix-ui/react-slider": "^1.2.1", "@radix-ui/react-slot": "1.1.0", - "@sentry/react": "8.40.0", - "@shikijs/transformers": "1.23.1", - "@tanstack/query-sync-storage-persister": "5.61.4", - "@tanstack/react-query": "5.61.4", - "@tanstack/react-query-devtools": "5.61.4", - "@tanstack/react-query-persist-client": "5.61.4", + "@sentry/react": "8.41.0", + "@shikijs/transformers": "1.24.0", + "@tanstack/query-sync-storage-persister": "5.62.0", + "@tanstack/react-query": "5.62.0", + "@tanstack/react-query-devtools": "5.62.0", + "@tanstack/react-query-persist-client": "5.62.0", "@tanstack/react-virtual": "3.10.9", "@use-gesture/react": "10.3.1", "@welldone-software/why-did-you-render": "8.0.3", @@ -56,7 +56,7 @@ "es-toolkit": "catalog:", "firebase": "11.0.2", "foxact": "0.2.42", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "franc-min": "6.2.0", "fuse.js": "7.0.0", "hast-util-to-jsx-runtime": "2.3.2", @@ -82,7 +82,7 @@ "react-fast-marquee": "1.6.5", "react-hook-form": "7.53.2", "react-hotkeys-hook": "4.6.1", - "react-i18next": "^15.1.2", + "react-i18next": "^15.1.3", "react-intersection-observer": "9.13.1", "react-ios-pwa-prompt": "^2.0.6", "react-resizable-layout": "npm:@innei/react-resizable-layout@0.7.3-fork.1", @@ -99,9 +99,9 @@ "remark-gh-alerts": "0.0.3", "remark-parse": "11.0.0", "remark-rehype": "11.1.1", - "shiki": "1.23.1", + "shiki": "1.24.0", "sonner": "1.7.0", - "tldts": "6.1.64", + "tldts": "6.1.65", "unified": "11.0.5", "unist-util-visit-parents": "^6.0.1", "use-context-selector": "2.0.0", @@ -126,14 +126,14 @@ "@follow/utils": "workspace:*", "@hono/node-server": "1.13.7", "@types/katex": "0.16.7", - "@types/node": "^22.10.0", + "@types/node": "^22.10.1", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@vite-pwa/assets-generator": "^0.2.6", "fake-indexeddb": "6.0.0", - "happy-dom": "15.11.6", + "happy-dom": "15.11.7", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-scan": "0.0.33" + "react-scan": "0.0.35" } } diff --git a/apps/server/package.json b/apps/server/package.json index 74bbe867f..c11a7f4cb 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -13,13 +13,13 @@ "@hono/auth-js": "1.0.15", "@openpanel/web": "1.0.1", "@resvg/resvg-js": "2.6.2", - "@sentry/react": "8.40.0", - "@tanstack/react-query": "5.61.4", + "@sentry/react": "8.41.0", + "@tanstack/react-query": "5.62.0", "blurhash": "2.0.5", "click-to-react-component": "1.1.2", "dayjs": "1.11.13", "fastify": "5.1.0", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "i18next": "^24.0.2", "jotai": "2.10.3", "kose-font": "1.0.0", @@ -29,7 +29,7 @@ "react": "^18.3.1", "react-blurhash": "^0.3.0", "react-hotkeys-hook": "4.6.1", - "react-i18next": "^15.1.2", + "react-i18next": "^15.1.3", "react-photo-view": "1.2.6", "react-router": "7.0.1", "satori": "0.12.0", @@ -63,6 +63,6 @@ "tailwindcss": "3.4.14", "tsup": "8.3.5", "tsx": "4.19.2", - "vite": "6.0.1" + "vite": "6.0.2" } } diff --git a/package.json b/package.json index 8501c1f7d..582c148fb 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "@tailwindcss/typography": "0.5.15", "@types/html-minifier-terser": "7.0.2", "@types/js-yaml": "4.0.9", - "@types/node": "^22.10.0", + "@types/node": "^22.10.1", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@vercel/node": "3.2.27", @@ -87,11 +87,11 @@ "electron-devtools-installer": "3.2.0", "electron-packager-languages": "0.5.0", "electron-vite": "^2.3.0", - "eslint": "^9.15.0", - "eslint-config-hyoban": "^3.1.13", + "eslint": "^9.16.0", + "eslint-config-hyoban": "^3.1.14", "fake-indexeddb": "6.0.0", - "happy-dom": "15.11.6", - "hono": "4.6.11", + "happy-dom": "15.11.7", + "hono": "4.6.12", "html-minifier-terser": "7.2.0", "js-yaml": "4.1.0", "lint-staged": "15.2.10", @@ -114,11 +114,11 @@ "tsx": "4.19.2", "turbo": "2.3.3", "typescript": "5.7.2", - "unplugin-ast": "^0.11.0", - "vite": "^6.0.1", + "unplugin-ast": "^0.12.0", + "vite": "^6.0.2", "vite-bundle-analyzer": "0.15.2", "vite-plugin-mkcert": "1.17.6", - "vite-plugin-pwa": "0.21.0", + "vite-plugin-pwa": "0.21.1", "vite-tsconfig-paths": "5.1.3", "vitest": "2.1.6" }, diff --git a/packages/components/package.json b/packages/components/package.json index 39e29abae..c56b856af 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -37,7 +37,7 @@ "@radix-ui/react-navigation-menu": "1.2.1", "@radix-ui/react-popover": "1.1.2", "@radix-ui/react-radio-group": "1.2.1", - "@radix-ui/react-scroll-area": "1.2.0", + "@radix-ui/react-scroll-area": "1.2.1", "@radix-ui/react-select": "2.1.2", "@radix-ui/react-slider": "^1.2.1", "@radix-ui/react-slot": "1.1.0", @@ -49,13 +49,13 @@ "class-variance-authority": "0.7.1", "dayjs": "1.11.13", "foxact": "0.2.42", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "jotai": "2.10.3", "masonic": "4.0.1", "react-blurhash": "^0.3.0", "react-fast-marquee": "1.6.5", "react-hook-form": "7.53.2", - "react-i18next": "^15.1.2", + "react-i18next": "^15.1.3", "sonner": "1.7.0", "use-context-selector": "2.0.0", "usehooks-ts": "3.1.0", diff --git a/packages/models/package.json b/packages/models/package.json index ae412f319..bab4f859c 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -18,6 +18,6 @@ "@follow/shared": "workspace:*", "@follow/types": "workspace:*", "@follow/utils": "workspace:*", - "hono": "4.6.11" + "hono": "4.6.12" } } diff --git a/packages/shared/package.json b/packages/shared/package.json index a1bcbb231..615f02502 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -35,7 +35,7 @@ "@t3-oss/env-core": "^0.11.1", "drizzle-orm": "^0.36.4", "electron": "^33.2.1", - "hono": "^4.6.11", + "hono": "^4.6.12", "react": "^18.3.1", "react-dom": "^18.3.1", "sonner": "1.7.0", diff --git a/packages/utils/package.json b/packages/utils/package.json index 318570bcb..8cbffabe3 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -29,10 +29,10 @@ "@follow/shared": "workspace:*", "@follow/types": "workspace:*", "clsx": "2.1.1", - "framer-motion": "11.11.17", + "framer-motion": "11.12.0", "nanoid": "5.0.9", "tailwind-merge": "2.5.5", - "tldts": "6.1.64", + "tldts": "6.1.65", "uniqolor": "1.1.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c7bc0c365..3d317690b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -55,7 +55,7 @@ importers: version: 0.8.2 '@egoist/tailwindcss-icons': specifier: 1.8.1 - version: 1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) '@electron-forge/cli': specifier: 7.6.0 version: 7.6.0(encoding@0.1.13) @@ -76,13 +76,13 @@ importers: version: 7.6.0(encoding@0.1.13) '@electron-toolkit/tsconfig': specifier: ^1.0.1 - version: 1.0.1(@types/node@22.10.0) + version: 1.0.1(@types/node@22.10.1) '@fontsource/sn-pro': specifier: 5.1.0 version: 5.1.0 '@hono/node-server': specifier: 1.13.7 - version: 1.13.7(hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24)) + version: 1.13.7(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24)) '@hookform/resolvers': specifier: 3.9.1 version: 3.9.1(react-hook-form@7.53.2(react@18.3.1)) @@ -115,10 +115,10 @@ importers: version: 0.11.1(typescript@5.7.2)(zod@3.23.8) '@tailwindcss/container-queries': specifier: 0.1.1 - version: 0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) '@tailwindcss/typography': specifier: 0.5.15 - version: 0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) '@types/html-minifier-terser': specifier: 7.0.2 version: 7.0.2 @@ -126,8 +126,8 @@ importers: specifier: 4.0.9 version: 4.0.9 '@types/node': - specifier: ^22.10.0 - version: 22.10.0 + specifier: ^22.10.1 + version: 22.10.1 '@types/react': specifier: ^18.3.12 version: 18.3.12 @@ -139,10 +139,10 @@ importers: version: 3.2.27(encoding@0.1.13) '@vitejs/plugin-legacy': specifier: 6.0.0 - version: 6.0.0(terser@5.35.0)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 6.0.0(terser@5.35.0)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) '@vitejs/plugin-react': specifier: ^4.3.4 - version: 4.3.4(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 4.3.4(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) async-es: specifier: ^3.2.6 version: 3.2.6 @@ -175,22 +175,22 @@ importers: version: 0.5.0 electron-vite: specifier: ^2.3.0 - version: 2.3.0(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 2.3.0(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) eslint: - specifier: ^9.15.0 - version: 9.15.0(jiti@2.3.3) + specifier: ^9.16.0 + version: 9.16.0(jiti@2.3.3) eslint-config-hyoban: - specifier: ^3.1.13 - version: 3.1.13(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))(typescript@5.7.2) + specifier: ^3.1.14 + version: 3.1.14(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))(typescript@5.7.2) fake-indexeddb: specifier: 6.0.0 version: 6.0.0 happy-dom: - specifier: 15.11.6 - version: 15.11.6 + specifier: 15.11.7 + version: 15.11.7 hono: - specifier: 4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: 4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) html-minifier-terser: specifier: 7.2.0 version: 7.2.0 @@ -232,16 +232,16 @@ importers: version: 2.11.1 tailwindcss: specifier: 3.4.15 - version: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + version: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) tailwindcss-animate: specifier: 1.0.7 - version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) tailwindcss-motion: specifier: 0.4.3-beta - version: 0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) tailwindcss-safe-area: specifier: 0.6.0 - version: 0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) + version: 0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) tar: specifier: 7.4.3 version: 7.4.3 @@ -258,26 +258,26 @@ importers: specifier: 5.7.2 version: 5.7.2 unplugin-ast: - specifier: ^0.11.0 - version: 0.11.0(rollup@2.79.2)(webpack-sources@3.2.3) + specifier: ^0.12.0 + version: 0.12.0(rollup@2.79.2) vite: - specifier: ^6.0.1 - version: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + specifier: ^6.0.2 + version: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) vite-bundle-analyzer: specifier: 0.15.2 version: 0.15.2 vite-plugin-mkcert: specifier: 1.17.6 - version: 1.17.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 1.17.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) vite-plugin-pwa: - specifier: 0.21.0 - version: 0.21.0(@vite-pwa/assets-generator@0.2.6)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0) + specifier: 0.21.1 + version: 0.21.1(@vite-pwa/assets-generator@0.2.6)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0) vite-tsconfig-paths: specifier: 5.1.3 - version: 5.1.3(typescript@5.7.2)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + version: 5.1.3(typescript@5.7.2)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) vitest: specifier: 2.1.6 - version: 2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.0)(happy-dom@15.11.6)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + version: 2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.1)(happy-dom@15.11.7)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) apps/main: dependencies: @@ -321,8 +321,8 @@ importers: specifier: ^6.3.9 version: 6.3.9 es-toolkit: - specifier: 1.27.0 - version: 1.27.0 + specifier: 1.29.0 + version: 1.29.0 fast-folder-size: specifier: 2.3.0 version: 2.3.0 @@ -364,8 +364,8 @@ importers: specifier: 4.0.9 version: 4.0.9 '@types/node': - specifier: ^22.10.0 - version: 22.10.0 + specifier: ^22.10.1 + version: 22.10.1 electron: specifier: 33.2.1 version: 33.2.1 @@ -373,8 +373,8 @@ importers: specifier: 3.2.0 version: 3.2.0 hono: - specifier: 4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: 4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) apps/renderer: dependencies: @@ -406,8 +406,8 @@ importers: specifier: 3.9.1 version: 3.9.1(react-hook-form@7.53.2(react@18.3.1)) '@lottiefiles/dotlottie-react': - specifier: 0.10.0 - version: 0.10.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 0.10.1 + version: 0.10.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@microflash/remark-callout-directives': specifier: 4.3.2 version: 4.3.2 @@ -442,23 +442,23 @@ importers: specifier: 1.1.0 version: 1.1.0(@types/react@18.3.12)(react@18.3.1) '@sentry/react': - specifier: 8.40.0 - version: 8.40.0(react@18.3.1) + specifier: 8.41.0 + version: 8.41.0(react@18.3.1) '@shikijs/transformers': - specifier: 1.23.1 - version: 1.23.1 + specifier: 1.24.0 + version: 1.24.0 '@tanstack/query-sync-storage-persister': - specifier: 5.61.4 - version: 5.61.4 + specifier: 5.62.0 + version: 5.62.0 '@tanstack/react-query': - specifier: 5.61.4 - version: 5.61.4(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(react@18.3.1) '@tanstack/react-query-devtools': - specifier: 5.61.4 - version: 5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1) '@tanstack/react-query-persist-client': - specifier: 5.61.4 - version: 5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1) '@tanstack/react-virtual': specifier: 3.10.9 version: 3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -514,8 +514,8 @@ importers: specifier: 0.2.42 version: 0.2.42(react@18.3.1) framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) franc-min: specifier: 6.2.0 version: 6.2.0 @@ -572,7 +572,7 @@ importers: version: 8.2.0 plain-shiki: specifier: 0.0.12 - version: 0.0.12(shiki@1.23.1) + version: 0.0.12(shiki@1.24.0) re-resizable: specifier: 6.10.1 version: 6.10.1(patch_hash=yitcmpfwcomg2fky72uc3lhk2i)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -592,8 +592,8 @@ importers: specifier: 4.6.1 version: 4.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-i18next: - specifier: ^15.1.2 - version: 15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^15.1.3 + version: 15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-intersection-observer: specifier: 9.13.1 version: 9.13.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -643,14 +643,14 @@ importers: specifier: 11.1.1 version: 11.1.1 shiki: - specifier: 1.23.1 - version: 1.23.1 + specifier: 1.24.0 + version: 1.24.0 sonner: specifier: 1.7.0 version: 1.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tldts: - specifier: 6.1.64 - version: 6.1.64 + specifier: 6.1.65 + version: 6.1.65 unified: specifier: 11.0.5 version: 11.0.5 @@ -716,8 +716,8 @@ importers: specifier: 0.16.7 version: 0.16.7 '@types/node': - specifier: ^22.10.0 - version: 22.10.0 + specifier: ^22.10.1 + version: 22.10.1 '@types/react': specifier: ^18.3.12 version: 18.3.12 @@ -731,8 +731,8 @@ importers: specifier: 6.0.0 version: 6.0.0 happy-dom: - specifier: 15.11.6 - version: 15.11.6 + specifier: 15.11.7 + version: 15.11.7 react: specifier: ^18.3.1 version: 18.3.1 @@ -740,8 +740,8 @@ importers: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) react-scan: - specifier: 0.0.33 - version: 0.0.33 + specifier: 0.0.35 + version: 0.0.35 apps/server: dependencies: @@ -764,11 +764,11 @@ importers: specifier: 2.6.2 version: 2.6.2 '@sentry/react': - specifier: 8.40.0 - version: 8.40.0(react@18.3.1) + specifier: 8.41.0 + version: 8.41.0(react@18.3.1) '@tanstack/react-query': - specifier: 5.61.4 - version: 5.61.4(react@18.3.1) + specifier: 5.62.0 + version: 5.62.0(react@18.3.1) blurhash: specifier: 2.0.5 version: 2.0.5 @@ -782,8 +782,8 @@ importers: specifier: 5.1.0 version: 5.1.0 framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) i18next: specifier: ^24.0.2 version: 24.0.2(typescript@5.7.2) @@ -801,7 +801,7 @@ importers: version: 1.4.1 rc-modal-sheet: specifier: 0.3.2 - version: 0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + version: 0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) react: specifier: ^18.3.1 version: 18.3.1 @@ -812,8 +812,8 @@ importers: specifier: 4.6.1 version: 4.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-i18next: - specifier: ^15.1.2 - version: 15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^15.1.3 + version: 15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-photo-view: specifier: 1.2.6 version: 1.2.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -828,7 +828,7 @@ importers: version: 1.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tailwindcss: specifier: 3.4.15 - version: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + version: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) use-context-selector: specifier: 2.0.0 version: 2.0.0(react@18.3.1)(scheduler@0.23.2) @@ -906,8 +906,8 @@ importers: specifier: 4.19.2 version: 4.19.2 vite: - specifier: 6.0.1 - version: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + specifier: 6.0.2 + version: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) packages/atoms: dependencies: @@ -978,8 +978,8 @@ importers: specifier: 1.2.1 version: 1.2.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-scroll-area': - specifier: 1.2.0 - version: 1.2.0(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 1.2.1 + version: 1.2.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-select': specifier: 2.1.2 version: 2.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1014,8 +1014,8 @@ importers: specifier: 0.2.42 version: 0.2.42(react@18.3.1) framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) jotai: specifier: 2.10.3 version: 2.10.3(@types/react@18.3.12)(react@18.3.1) @@ -1038,8 +1038,8 @@ importers: specifier: 7.53.2 version: 7.53.2(react@18.3.1) react-i18next: - specifier: ^15.1.2 - version: 15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^15.1.3 + version: 15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) sonner: specifier: 1.7.0 version: 1.7.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1110,8 +1110,8 @@ importers: specifier: workspace:* version: link:../utils hono: - specifier: 4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: 4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) packages/shared: dependencies: @@ -1120,10 +1120,10 @@ importers: version: 3.0.1(electron@33.2.1) '@electron-toolkit/tsconfig': specifier: ^1.0.1 - version: 1.0.1(@types/node@22.10.0) + version: 1.0.1(@types/node@22.10.1) '@hono/node-server': specifier: ^1.13.7 - version: 1.13.7(hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24)) + version: 1.13.7(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24)) '@t3-oss/env-core': specifier: ^0.11.1 version: 0.11.1(typescript@5.7.2)(zod@3.23.8) @@ -1134,8 +1134,8 @@ importers: specifier: ^33.2.1 version: 33.2.1 hono: - specifier: ^4.6.11 - version: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) + specifier: ^4.6.12 + version: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) react: specifier: ^18.3.1 version: 18.3.1 @@ -1163,8 +1163,8 @@ importers: specifier: 2.1.1 version: 2.1.1 framer-motion: - specifier: 11.11.17 - version: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.12.0 + version: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) nanoid: specifier: 5.0.9 version: 5.0.9 @@ -1172,8 +1172,8 @@ importers: specifier: 2.5.5 version: 2.5.5 tldts: - specifier: 6.1.64 - version: 6.1.64 + specifier: 6.1.65 + version: 6.1.65 uniqolor: specifier: 1.1.1 version: 1.1.1 @@ -1362,13 +1362,6 @@ packages: peerDependencies: '@babel/core': ^7.0.0 - '@babel/plugin-proposal-private-methods@7.18.6': - resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==} - engines: {node: '>=6.9.0'} - deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead. - peerDependencies: - '@babel/core': ^7.0.0-0 - '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2': resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} engines: {node: '>=6.9.0'} @@ -2431,14 +2424,14 @@ packages: resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint-react/ast@1.17.1': - resolution: {integrity: sha512-cPW05RlZtgNwR/99U6YFrNqCCdGurP/dIgN3SWQtPrX91JtP2OmlEyKlTZ3E3lXB6ijS6oZcmp6NljL7M8V+ig==} + '@eslint-react/ast@1.17.2': + resolution: {integrity: sha512-N0Xlx0ARwWe8K1SUKf/ojAU3h+pv51C4FsRjQSdlLSlQ19KVZfl3xnpMEpGYGmtvVREID2FUl7qrl+jvbgJd1Q==} - '@eslint-react/core@1.17.1': - resolution: {integrity: sha512-4jE0oQnkf2B7BaGkp5cbe9wPmOK2978gaqDJ6sqwvcL1cIkWY0Z1c8Wbq8rWztlVRiPYNpmbmJ+COAYDxzvhhQ==} + '@eslint-react/core@1.17.2': + resolution: {integrity: sha512-HQE1w32YRSjoUY7sUoIaFIqPBII91atlzIi3PoostRpJWynJQyeIvnelf7WVPh/7nb9l8DxguiyPS6Ph9oro4w==} - '@eslint-react/eslint-plugin@1.17.1': - resolution: {integrity: sha512-/ctfKryjIAJuIsGIjp354g8PZB6AIU61ZXSysEwJhj2lfZt/QHGPBMSE2XlIvwxK6wWqiN+9aSbXHrIvfvAKhg==} + '@eslint-react/eslint-plugin@1.17.2': + resolution: {integrity: sha512-kDKxB3zDJFQk/OrX4NfYLqzE7etTXCKtSoF82ozy+QbK8PTNJYvtt9kXGFbKqKSxRe3sAQalDVnw8Czf8WOviw==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -2447,20 +2440,20 @@ packages: typescript: optional: true - '@eslint-react/jsx@1.17.1': - resolution: {integrity: sha512-L6Zdh8zTAMO9LUmXlL/YX/gU4ja9vCkov834LYmSf7k5wbc17fniSqXYVfqQrWl+T11mdyN+alx4IjQti3lHgA==} + '@eslint-react/jsx@1.17.2': + resolution: {integrity: sha512-SWp4w93+w2gC8Ov34pX+Xr0qqFl73AMarmuaFH8xNgJI9Q1+8pqAsfrdcUGq3bsqunldYoILiLm/rzffij0n4g==} - '@eslint-react/shared@1.17.1': - resolution: {integrity: sha512-wB/mBIfuc36Hn2GShHsSO91uqL9lI3VVVwTzJ3YhAN4hJMeZn8fWMuARtwaVeFpmLNYI7hG5wGxo4bHn9yKjsw==} + '@eslint-react/shared@1.17.2': + resolution: {integrity: sha512-mUZYVufwNffMsdRQjVuyuipBRc4h3SR4mG1jnRUcu8N2PNA/oyZkdlnMdA3rIpqrgIZ/o4ruiFSZb7tmLgcMUg==} - '@eslint-react/tools@1.17.1': - resolution: {integrity: sha512-0ZUw3PF70qeBMJLrntmojQLGzy5S05fwor5CxrHIp1MwQoPTphX11WiuCuq5ohHZ+xopqLHASkRrvAPthAalUQ==} + '@eslint-react/tools@1.17.2': + resolution: {integrity: sha512-yb/O7/VceXp/IWDtgeSvnyaUvEbgXglaol6AuARlzoWIIRp1eYhNkXUJPZWsSpnqvK5F2mXX6D2TN5L74EEuLQ==} - '@eslint-react/types@1.17.1': - resolution: {integrity: sha512-jf9kkRRnV65wCQPdVIGBa81VH4CbN/qULSg6YnErKd4Kgbq6l8Sh54lY8Qlo1jj2LHtzo/nACdyWx1aOgkyuDg==} + '@eslint-react/types@1.17.2': + resolution: {integrity: sha512-I6rylxFVR+5E4C3PtKxebzEihPSu5A7QanEkI4aFOXkr8URkSCjpQxtyhw4bFxW6ElzoSKpnYMqZuWZEu2ySrA==} - '@eslint-react/var@1.17.1': - resolution: {integrity: sha512-hsHzVjfj+FmAkk6VRqwYJtEBI+k5fUkw2YgMezTx2HkuWP6BWYprLzD+tRU1IS5jMrvIw1FkcBLfcu0EU5FfLQ==} + '@eslint-react/var@1.17.2': + resolution: {integrity: sha512-8SkmLMe8st6Ynti70rz9j8KCcw3FHQj5ZasIjkeCdLAVgZ1ADU6D7nHdVz6f5kIyA4h97TIjvztM/75DIWUVYQ==} '@eslint/compat@1.2.3': resolution: {integrity: sha512-wlZhwlDFxkxIZ571aH0FoK4h4Vwx7P3HJx62Gp8hTc10bfpwT2x0nULuAHmQSJBOWPgPeVf+9YtnD4j50zVHmA==} @@ -2483,8 +2476,8 @@ packages: resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.15.0': - resolution: {integrity: sha512-tMTqrY+EzbXmKJR5ToI8lxu7jaN5EdmrBFJpQk5JmSlyLsx6o4t27r883K5xsLuCYCpfKBCGswMSWXsM+jB7lg==} + '@eslint/js@9.16.0': + resolution: {integrity: sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/object-schema@2.1.4': @@ -2897,14 +2890,14 @@ packages: '@jridgewell/trace-mapping@0.3.9': resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - '@lottiefiles/dotlottie-react@0.10.0': - resolution: {integrity: sha512-krPJUIqpt7VluWc0aRWk0lYScCDSlbCpWvImU5eyJZeyroZ87bZYb+YlgUbtLHZ77DWmIBl4kGMhupU8+ugPSw==} + '@lottiefiles/dotlottie-react@0.10.1': + resolution: {integrity: sha512-+RED+Nhv5viaSOXsMcRDQoAOJsGgwXIHYSovNnatMGD5ioxfum7PYUCuuZicYFScyeLZJsSfjnzr5XaE6pivAg==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - '@lottiefiles/dotlottie-web@0.37.0': - resolution: {integrity: sha512-dCtQkYlq9GDswJNmcIlUaAskxrsJ56SRhY8woNsHuIPWy+tfP9tgf1fA9fZ1Oj72DVdyYkK0DxLk58HhBrmpBQ==} + '@lottiefiles/dotlottie-web@0.38.0': + resolution: {integrity: sha512-3ZAD1TS0NkgtZvIkrfFMTW5BSxRiXTG9UGCwqI98gdZ5UCyDVGxi898dFlhvNhE5vcl30LpxICp5AnuBWonCig==} '@malept/cross-spawn-promise@1.1.1': resolution: {integrity: sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==} @@ -3628,8 +3621,8 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-scroll-area@1.2.0': - resolution: {integrity: sha512-q2jMBdsJ9zB7QG6ngQNzNwlvxLQqONyL58QbEGwuyRZZb/ARQwk3uQVbCF7GvQVOtV6EU/pDxAw3zRzJZI3rpQ==} + '@radix-ui/react-scroll-area@1.2.1': + resolution: {integrity: sha512-FnM1fHfCtEZ1JkyfH/1oMiTcFBQvHKl4vD9WnpwkLgtF+UmnXMCad6ECPTaAjcDjam+ndOEJWgHyKDGNteWSHw==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -4007,91 +4000,181 @@ packages: cpu: [arm] os: [android] + '@rollup/rollup-android-arm-eabi@4.28.0': + resolution: {integrity: sha512-wLJuPLT6grGZsy34g4N1yRfYeouklTgPhH1gWXCYspenKYD0s3cR99ZevOGw5BexMNywkbV3UkjADisozBmpPQ==} + cpu: [arm] + os: [android] + '@rollup/rollup-android-arm64@4.27.4': resolution: {integrity: sha512-wzKRQXISyi9UdCVRqEd0H4cMpzvHYt1f/C3CoIjES6cG++RHKhrBj2+29nPF0IB5kpy9MS71vs07fvrNGAl/iA==} cpu: [arm64] os: [android] + '@rollup/rollup-android-arm64@4.28.0': + resolution: {integrity: sha512-eiNkznlo0dLmVG/6wf+Ifi/v78G4d4QxRhuUl+s8EWZpDewgk7PX3ZyECUXU0Zq/Ca+8nU8cQpNC4Xgn2gFNDA==} + cpu: [arm64] + os: [android] + '@rollup/rollup-darwin-arm64@4.27.4': resolution: {integrity: sha512-PlNiRQapift4LNS8DPUHuDX/IdXiLjf8mc5vdEmUR0fF/pyy2qWwzdLjB+iZquGr8LuN4LnUoSEvKRwjSVYz3Q==} cpu: [arm64] os: [darwin] + '@rollup/rollup-darwin-arm64@4.28.0': + resolution: {integrity: sha512-lmKx9yHsppblnLQZOGxdO66gT77bvdBtr/0P+TPOseowE7D9AJoBw8ZDULRasXRWf1Z86/gcOdpBrV6VDUY36Q==} + cpu: [arm64] + os: [darwin] + '@rollup/rollup-darwin-x64@4.27.4': resolution: {integrity: sha512-o9bH2dbdgBDJaXWJCDTNDYa171ACUdzpxSZt+u/AAeQ20Nk5x+IhA+zsGmrQtpkLiumRJEYef68gcpn2ooXhSQ==} cpu: [x64] os: [darwin] + '@rollup/rollup-darwin-x64@4.28.0': + resolution: {integrity: sha512-8hxgfReVs7k9Js1uAIhS6zq3I+wKQETInnWQtgzt8JfGx51R1N6DRVy3F4o0lQwumbErRz52YqwjfvuwRxGv1w==} + cpu: [x64] + os: [darwin] + '@rollup/rollup-freebsd-arm64@4.27.4': resolution: {integrity: sha512-NBI2/i2hT9Q+HySSHTBh52da7isru4aAAo6qC3I7QFVsuhxi2gM8t/EI9EVcILiHLj1vfi+VGGPaLOUENn7pmw==} cpu: [arm64] os: [freebsd] + '@rollup/rollup-freebsd-arm64@4.28.0': + resolution: {integrity: sha512-lA1zZB3bFx5oxu9fYud4+g1mt+lYXCoch0M0V/xhqLoGatbzVse0wlSQ1UYOWKpuSu3gyN4qEc0Dxf/DII1bhQ==} + cpu: [arm64] + os: [freebsd] + '@rollup/rollup-freebsd-x64@4.27.4': resolution: {integrity: sha512-wYcC5ycW2zvqtDYrE7deary2P2UFmSh85PUpAx+dwTCO9uw3sgzD6Gv9n5X4vLaQKsrfTSZZ7Z7uynQozPVvWA==} cpu: [x64] os: [freebsd] + '@rollup/rollup-freebsd-x64@4.28.0': + resolution: {integrity: sha512-aI2plavbUDjCQB/sRbeUZWX9qp12GfYkYSJOrdYTL/C5D53bsE2/nBPuoiJKoWp5SN78v2Vr8ZPnB+/VbQ2pFA==} + cpu: [x64] + os: [freebsd] + '@rollup/rollup-linux-arm-gnueabihf@4.27.4': resolution: {integrity: sha512-9OwUnK/xKw6DyRlgx8UizeqRFOfi9mf5TYCw1uolDaJSbUmBxP85DE6T4ouCMoN6pXw8ZoTeZCSEfSaYo+/s1w==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-gnueabihf@4.28.0': + resolution: {integrity: sha512-WXveUPKtfqtaNvpf0iOb0M6xC64GzUX/OowbqfiCSXTdi/jLlOmH0Ba94/OkiY2yTGTwteo4/dsHRfh5bDCZ+w==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.27.4': resolution: {integrity: sha512-Vgdo4fpuphS9V24WOV+KwkCVJ72u7idTgQaBoLRD0UxBAWTF9GWurJO9YD9yh00BzbkhpeXtm6na+MvJU7Z73A==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.28.0': + resolution: {integrity: sha512-yLc3O2NtOQR67lI79zsSc7lk31xjwcaocvdD1twL64PK1yNaIqCeWI9L5B4MFPAVGEVjH5k1oWSGuYX1Wutxpg==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.27.4': resolution: {integrity: sha512-pleyNgyd1kkBkw2kOqlBx+0atfIIkkExOTiifoODo6qKDSpnc6WzUY5RhHdmTdIJXBdSnh6JknnYTtmQyobrVg==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.28.0': + resolution: {integrity: sha512-+P9G9hjEpHucHRXqesY+3X9hD2wh0iNnJXX/QhS/J5vTdG6VhNYMxJ2rJkQOxRUd17u5mbMLHM7yWGZdAASfcg==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-arm64-musl@4.27.4': resolution: {integrity: sha512-caluiUXvUuVyCHr5DxL8ohaaFFzPGmgmMvwmqAITMpV/Q+tPoaHZ/PWa3t8B2WyoRcIIuu1hkaW5KkeTDNSnMA==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-musl@4.28.0': + resolution: {integrity: sha512-1xsm2rCKSTpKzi5/ypT5wfc+4bOGa/9yI/eaOLW0oMs7qpC542APWhl4A37AENGZ6St6GBMWhCCMM6tXgTIplw==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.27.4': resolution: {integrity: sha512-FScrpHrO60hARyHh7s1zHE97u0KlT/RECzCKAdmI+LEoC1eDh/RDji9JgFqyO+wPDb86Oa/sXkily1+oi4FzJQ==} cpu: [ppc64] os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.28.0': + resolution: {integrity: sha512-zgWxMq8neVQeXL+ouSf6S7DoNeo6EPgi1eeqHXVKQxqPy1B2NvTbaOUWPn/7CfMKL7xvhV0/+fq/Z/J69g1WAQ==} + cpu: [ppc64] + os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.27.4': resolution: {integrity: sha512-qyyprhyGb7+RBfMPeww9FlHwKkCXdKHeGgSqmIXw9VSUtvyFZ6WZRtnxgbuz76FK7LyoN8t/eINRbPUcvXB5fw==} cpu: [riscv64] os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.28.0': + resolution: {integrity: sha512-VEdVYacLniRxbRJLNtzwGt5vwS0ycYshofI7cWAfj7Vg5asqj+pt+Q6x4n+AONSZW/kVm+5nklde0qs2EUwU2g==} + cpu: [riscv64] + os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.27.4': resolution: {integrity: sha512-PFz+y2kb6tbh7m3A7nA9++eInGcDVZUACulf/KzDtovvdTizHpZaJty7Gp0lFwSQcrnebHOqxF1MaKZd7psVRg==} cpu: [s390x] os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.28.0': + resolution: {integrity: sha512-LQlP5t2hcDJh8HV8RELD9/xlYtEzJkm/aWGsauvdO2ulfl3QYRjqrKW+mGAIWP5kdNCBheqqqYIGElSRCaXfpw==} + cpu: [s390x] + os: [linux] + '@rollup/rollup-linux-x64-gnu@4.27.4': resolution: {integrity: sha512-Ni8mMtfo+o/G7DVtweXXV/Ol2TFf63KYjTtoZ5f078AUgJTmaIJnj4JFU7TK/9SVWTaSJGxPi5zMDgK4w+Ez7Q==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-gnu@4.28.0': + resolution: {integrity: sha512-Nl4KIzteVEKE9BdAvYoTkW19pa7LR/RBrT6F1dJCV/3pbjwDcaOq+edkP0LXuJ9kflW/xOK414X78r+K84+msw==} + cpu: [x64] + os: [linux] + '@rollup/rollup-linux-x64-musl@4.27.4': resolution: {integrity: sha512-5AeeAF1PB9TUzD+3cROzFTnAJAcVUGLuR8ng0E0WXGkYhp6RD6L+6szYVX+64Rs0r72019KHZS1ka1q+zU/wUw==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-musl@4.28.0': + resolution: {integrity: sha512-eKpJr4vBDOi4goT75MvW+0dXcNUqisK4jvibY9vDdlgLx+yekxSm55StsHbxUsRxSTt3JEQvlr3cGDkzcSP8bw==} + cpu: [x64] + os: [linux] + '@rollup/rollup-win32-arm64-msvc@4.27.4': resolution: {integrity: sha512-yOpVsA4K5qVwu2CaS3hHxluWIK5HQTjNV4tWjQXluMiiiu4pJj4BN98CvxohNCpcjMeTXk/ZMJBRbgRg8HBB6A==} cpu: [arm64] os: [win32] + '@rollup/rollup-win32-arm64-msvc@4.28.0': + resolution: {integrity: sha512-Vi+WR62xWGsE/Oj+mD0FNAPY2MEox3cfyG0zLpotZdehPFXwz6lypkGs5y38Jd/NVSbOD02aVad6q6QYF7i8Bg==} + cpu: [arm64] + os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.27.4': resolution: {integrity: sha512-KtwEJOaHAVJlxV92rNYiG9JQwQAdhBlrjNRp7P9L8Cb4Rer3in+0A+IPhJC9y68WAi9H0sX4AiG2NTsVlmqJeQ==} cpu: [ia32] os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.28.0': + resolution: {integrity: sha512-kN/Vpip8emMLn/eOza+4JwqDZBL6MPNpkdaEsgUtW1NYN3DZvZqSQrbKzJcTL6hd8YNmFTn7XGWMwccOcJBL0A==} + cpu: [ia32] + os: [win32] + '@rollup/rollup-win32-x64-msvc@4.27.4': resolution: {integrity: sha512-3j4jx1TppORdTAoBJRd+/wJRGCPC0ETWkXOecJ6PPZLj6SptXkrXcNqdj0oclbKML6FkQltdz7bBA3rUSirZug==} cpu: [x64] os: [win32] + '@rollup/rollup-win32-x64-msvc@4.28.0': + resolution: {integrity: sha512-Bvno2/aZT6usSa7lRDL2+hMjVAGjuqaymF1ApZm31JXzniR/hvr14jpU+/z4X6Gt5BPlzosscyJZGUvguXIqeQ==} + cpu: [x64] + os: [win32] + '@scena/dragscroll@1.4.0': resolution: {integrity: sha512-3O8daaZD9VXA9CP3dra6xcgt/qrm0mg0xJCwiX6druCteQ9FFsXffkF8PrqxY4Z4VJ58fFKEa0RlKqbsi/XnRA==} @@ -4105,32 +4188,32 @@ packages: resolution: {integrity: sha512-uj9nwERm7HIS13f/Q52hF/NUS5Al8Ma6jkgpfYGeppYvU0uSjPkwMogtqoJQNbOoZg973tV8qUScbcWY616wNA==} engines: {node: '>=14.18'} - '@sentry-internal/browser-utils@8.40.0': - resolution: {integrity: sha512-tx7gb/PWMbTEyil/XPETVeRUeS3nKHIvQY2omyebw30TbhyLnibPZsUmXJiaIysL5PcY3k9maub3W/o0Y37T7Q==} + '@sentry-internal/browser-utils@8.41.0': + resolution: {integrity: sha512-nU7Bn3jEUmf1QXRUT3j2ewUBlFJpe9vnAnjqpeVPDWTsVI52BwVNcJHuE37PrGs66OZ1ZkGMfKnQk43oCAa+oQ==} engines: {node: '>=14.18'} '@sentry-internal/feedback@8.35.0': resolution: {integrity: sha512-7bjSaUhL0bDArozre6EiIhhdWdT/1AWNWBC1Wc5w1IxEi5xF7nvF/FfvjQYrONQzZAI3HRxc45J2qhLUzHBmoQ==} engines: {node: '>=14.18'} - '@sentry-internal/feedback@8.40.0': - resolution: {integrity: sha512-1O9F3z80HNE0VfepKS+v+dixdatNqWlrlwgvvWl4BGzzoA+XhqvZo+HWxiOt7yx7+k1TuZNrB6Gy3u/QvpozXA==} + '@sentry-internal/feedback@8.41.0': + resolution: {integrity: sha512-bw+BrSNw8abOnu/IpD8YSbYubXkkT8jyNS7TM4e4UPZMuXcbtia7/r5d7kAiUfKv/sV5PNMlZLOk+EYJeLTANg==} engines: {node: '>=14.18'} '@sentry-internal/replay-canvas@8.35.0': resolution: {integrity: sha512-TUrH6Piv19kvHIiRyIuapLdnuwxk/Un/l1WDCQfq7mK9p1Pac0FkQ7Uufjp6zY3lyhDDZQ8qvCS4ioCMibCwQg==} engines: {node: '>=14.18'} - '@sentry-internal/replay-canvas@8.40.0': - resolution: {integrity: sha512-Zr+m/le0SH4RowZB7rBCM0aRnvH3wZTaOFhwUk03/oGf2BRcgKuDCUMjnXKC9MyOpmey7UYXkzb8ro+81R6Q8w==} + '@sentry-internal/replay-canvas@8.41.0': + resolution: {integrity: sha512-lpgOBHWr1ZNxidD72A2pfoUMjIpwonOPYoQZWAHr86Oa3eIVQOyfklZlHW+gKPFl2/IEl9Lbtcke0JiDp3dkIQ==} engines: {node: '>=14.18'} '@sentry-internal/replay@8.35.0': resolution: {integrity: sha512-3wkW03vXYMyWtTLxl9yrtkV+qxbnKFgfASdoGWhXzfLjycgT6o4/04eb3Gn71q9aXqRwH17ISVQbVswnRqMcmA==} engines: {node: '>=14.18'} - '@sentry-internal/replay@8.40.0': - resolution: {integrity: sha512-0SaDsBCSWxNVgNmPKu23frrHEXzN/MKl0hIkfuO55vL5TgjLTwpgkf0Ne4rNvaZQ5omIKk9Qd63HuQP3PHAMaw==} + '@sentry-internal/replay@8.41.0': + resolution: {integrity: sha512-ByXEY7JI95y4Qr9fS3d28l9uuVU5Qa0HgL+xDmYElNx7CXz3Q9hFN6ibgUeC3h8BO5pDULxWNgAppl7FRY8N5w==} engines: {node: '>=14.18'} '@sentry/babel-plugin-component-annotate@2.22.6': @@ -4141,8 +4224,8 @@ packages: resolution: {integrity: sha512-WHfI+NoZzpCsmIvtr6ChOe7yWPLQyMchPnVhY3Z4UeC70bkYNdKcoj/4XZbX3m0D8+71JAsm0mJ9s9OC3Ue6MQ==} engines: {node: '>=14.18'} - '@sentry/browser@8.40.0': - resolution: {integrity: sha512-m/Yor6IDBeDHtQochu8n6z4HXrXkrPhu6+o5Ouve0Zi3ptthSoK1FOGvJxVBat3nRq0ydQyuuPuTB6WfdWbwHQ==} + '@sentry/browser@8.41.0': + resolution: {integrity: sha512-FfAU55eYwW2lG4M3dEw2472RvHrD5YWSfHCZvuRf/4skX38kFvKghZQ+epL+CVHTzvIRHOrbj8qQK6YLTGl9ew==} engines: {node: '>=14.18'} '@sentry/bundler-plugin-core@2.22.6': @@ -4199,8 +4282,8 @@ packages: resolution: {integrity: sha512-Ci0Nmtw5ETWLqQJGY4dyF+iWh7PWKy6k303fCEoEmqj2czDrKJCp7yHBNV0XYbo00prj2ZTbCr6I7albYiyONA==} engines: {node: '>=14.18'} - '@sentry/core@8.40.0': - resolution: {integrity: sha512-u/U2CJpG/+SmTR2bPM4ZZoPYTJAOUuxzj/0IURnvI0v9+rNu939J/fzrO9huA5IJVxS5TiYykhQm7o6I3Zuo3Q==} + '@sentry/core@8.41.0': + resolution: {integrity: sha512-3v7u3t4LozCA5SpZY4yqUN2U3jSrkXNoLgz6L2SUUiydyCuSwXZIFEwpLJfgQyidpNDifeQbBI5E1O910XkPsA==} engines: {node: '>=14.18'} '@sentry/electron@5.7.0': @@ -4220,8 +4303,8 @@ packages: '@opentelemetry/sdk-trace-base': ^1.26.0 '@opentelemetry/semantic-conventions': ^1.27.0 - '@sentry/react@8.40.0': - resolution: {integrity: sha512-Ohq/po83r9sh/DCO6VAxx4xU+1ztvFzmXTl3fUnAEc+2bFJK1MsRt6BWfG37XxjQN//mfmyS9KEBgsOpOyd4LQ==} + '@sentry/react@8.41.0': + resolution: {integrity: sha512-/7LEWDNdICYO5s4ie8ztgpmD/GRJ1+1nHlSKvcwjf83COzT1eGvVeuYTiXFAPmXA29sY+lV1RajziwgySadjIQ==} engines: {node: '>=14.18'} peerDependencies: react: ^16.14.0 || 17.x || 18.x || 19.x @@ -4230,8 +4313,8 @@ packages: resolution: {integrity: sha512-AVEZjb16MlYPifiDDvJ19dPQyDn0jlrtC1PHs6ZKO+Rzyz+2EX2BRdszvanqArldexPoU1p5Bn2w81XZNXThBA==} engines: {node: '>=14.18'} - '@sentry/types@8.40.0': - resolution: {integrity: sha512-nuCf3U3deolPM9BjNnwCc33UtFl9ec15/r74ngAkNccn+A2JXdIAsDkGJMO/9mgSFykLe1QyeJ0pQFRisCGOiA==} + '@sentry/types@8.41.0': + resolution: {integrity: sha512-eqdnGr9k9H++b9CjVUoTNUVahPVWeNnMy0YGkqS5+cjWWC+x43p56202oidGFmWo6702ub/xwUNH6M5PC4kq6A==} engines: {node: '>=14.18'} '@sentry/utils@8.35.0': @@ -4242,20 +4325,20 @@ packages: resolution: {integrity: sha512-zIieP1VLWQb3wUjFJlwOAoaaJygJhXeUoGd0e/Ha2RLb2eW2S+4gjf6y6NqyY71tZ74LYVZKg/4prB6FAZSMXQ==} engines: {node: '>= 14'} - '@shikijs/core@1.23.1': - resolution: {integrity: sha512-NuOVgwcHgVC6jBVH5V7iblziw6iQbWWHrj5IlZI3Fqu2yx9awH7OIQkXIcsHsUmY19ckwSgUMgrqExEyP5A0TA==} + '@shikijs/core@1.24.0': + resolution: {integrity: sha512-6pvdH0KoahMzr6689yh0QJ3rCgF4j1XsXRHNEeEN6M4xJTfQ6QPWrmHzIddotg+xPJUPEPzYzYCKzpYyhTI6Gw==} - '@shikijs/engine-javascript@1.23.1': - resolution: {integrity: sha512-i/LdEwT5k3FVu07SiApRFwRcSJs5QM9+tod5vYCPig1Ywi8GR30zcujbxGQFJHwYD7A5BUqagi8o5KS+LEVgBg==} + '@shikijs/engine-javascript@1.24.0': + resolution: {integrity: sha512-ZA6sCeSsF3Mnlxxr+4wGEJ9Tto4RHmfIS7ox8KIAbH0MTVUkw3roHPHZN+LlJMOHJJOVupe6tvuAzRpN8qK1vA==} - '@shikijs/engine-oniguruma@1.23.1': - resolution: {integrity: sha512-KQ+lgeJJ5m2ISbUZudLR1qHeH3MnSs2mjFg7bnencgs5jDVPeJ2NVDJ3N5ZHbcTsOIh0qIueyAJnwg7lg7kwXQ==} + '@shikijs/engine-oniguruma@1.24.0': + resolution: {integrity: sha512-Eua0qNOL73Y82lGA4GF5P+G2+VXX9XnuUxkiUuwcxQPH4wom+tE39kZpBFXfUuwNYxHSkrSxpB1p4kyRW0moSg==} - '@shikijs/transformers@1.23.1': - resolution: {integrity: sha512-yQ2Cn0M9i46p30KwbyIzLvKDk+dQNU+lj88RGO0XEj54Hn4Cof1bZoDb9xBRWxFE4R8nmK63w7oHnJwvOtt0NQ==} + '@shikijs/transformers@1.24.0': + resolution: {integrity: sha512-Qf/hby+PRPkoHncjYnJf5svK1aCsOUtQhuLzKPnmeXJtuUZCmbH0pTpdNtXe9tgln/RHlyRJnv7q46HHS1sO0Q==} - '@shikijs/types@1.23.1': - resolution: {integrity: sha512-98A5hGyEhzzAgQh2dAeHKrWW4HfCMeoFER2z16p5eJ+vmPeF6lZ/elEne6/UCU551F/WqkopqRsr1l2Yu6+A0g==} + '@shikijs/types@1.24.0': + resolution: {integrity: sha512-aptbEuq1Pk88DMlCe+FzXNnBZ17LCiLIGWAeCWhoFDzia5Q5Krx3DgnULLiouSdd6+LUM39XwXGppqYE0Ghtug==} '@shikijs/vscode-textmate@9.3.0': resolution: {integrity: sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==} @@ -4307,25 +4390,28 @@ packages: '@tanstack/query-core@5.61.4': resolution: {integrity: sha512-rsnemyhPvEG4ViZe0R2UQDM8NgQS/BNC5/Gf9RTs0TKN5thUhPUwnL2anWG4jxAGKFyDfvG7PXbx6MRq3hxi1w==} + '@tanstack/query-core@5.62.0': + resolution: {integrity: sha512-sx38bGrqF9bop92AXOvzDr0L9fWDas5zXdPglxa9cuqeVSWS7lY6OnVyl/oodfXjgOGRk79IfCpgVmxrbHuFHg==} + '@tanstack/query-devtools@5.61.4': resolution: {integrity: sha512-21Tw+u8E3IJJj4A/Bct4H0uBaDTEu7zBrR79FeSyY+mS2gx5/m316oDtJiKkILc819VSTYt+sFzODoJNcpPqZQ==} - '@tanstack/query-persist-client-core@5.61.4': - resolution: {integrity: sha512-yP648VJiXhU7AtdOkylTiz1iZvsstsH7R0BhuJQJFMLezyD+DbcgiwDOtzz7qRZZMEwhspYQx+r7Si1atY477Q==} + '@tanstack/query-persist-client-core@5.62.0': + resolution: {integrity: sha512-yEDvJjVHqo+IizSjNkdu5fSL4ANOd16o8Tk2NOeaD7kGS1fXjf47j3XOXLIypZ7nmPTjZf9vyZi1WP3VB4saGg==} - '@tanstack/query-sync-storage-persister@5.61.4': - resolution: {integrity: sha512-l3YJaGoYQ8uHcg9WJmaHwePy78AG7pWYF+BUe9hFRrOC99nuAENmO/tv7Gb1mMivhO/lJbZi2UBK4i+etktb8w==} + '@tanstack/query-sync-storage-persister@5.62.0': + resolution: {integrity: sha512-VDTdldUrthWE4th6FjwziYgADaYkOzN2UbOw8gBZejVnGJrSnBZ/ZC+0SBv7Gy09TU5wKaDlT69RNk15dlmJ1g==} - '@tanstack/react-query-devtools@5.61.4': - resolution: {integrity: sha512-A4lqdK5cpskk+WPu17Nv7X3uEIsB4MQ5/Mdz12CQFuUVvmLHjBz1Ghc3QbQVwmHiXo4JM6Y00udTaEKtJSVAkA==} + '@tanstack/react-query-devtools@5.62.0': + resolution: {integrity: sha512-9NWUgpfRPiUpsPdYopddbQLjWXbMBNaxM7K5VXPZIPfcfJJ4mG6VqrEJysL/79zgl7hC9kJlP+zXA0r5niomdg==} peerDependencies: - '@tanstack/react-query': ^5.61.4 + '@tanstack/react-query': ^5.62.0 react: ^18 || ^19 - '@tanstack/react-query-persist-client@5.61.4': - resolution: {integrity: sha512-xyykMTm9thC3eSgd3GaxHh9JKpDK0qt6c/ZqDHSoi+wQFjNULwupIldj808kL/RvIUiGyuHoUB9kKU0oouoq8w==} + '@tanstack/react-query-persist-client@5.62.0': + resolution: {integrity: sha512-yv7Oe0vNkGDTVFkq9bbdGQO9EoHwXYKIYuj845v1bOmK/Npvcov3yaS0AirOlNklsapDtr0v+x1ev2aJBIbm7A==} peerDependencies: - '@tanstack/react-query': ^5.61.4 + '@tanstack/react-query': ^5.62.0 react: ^18 || ^19 '@tanstack/react-query@5.61.4': @@ -4333,6 +4419,11 @@ packages: peerDependencies: react: ^18 || ^19 + '@tanstack/react-query@5.62.0': + resolution: {integrity: sha512-tj2ltjAn2a3fs+Dqonlvs6GyLQ/LKVJE2DVSYW+8pJ3P6/VCVGrfqv5UEchmlP7tLOvvtZcOuSyI2ooVlR5Yqw==} + peerDependencies: + react: ^18 || ^19 + '@tanstack/react-virtual@3.10.9': resolution: {integrity: sha512-OXO2uBjFqA4Ibr2O3y0YMnkrRWGVNqcvHQXmGvMu6IK8chZl3PrDxFXdGZ2iZkSrKh3/qUYoFqYe+Rx23RoU0g==} peerDependencies: @@ -4443,11 +4534,11 @@ packages: '@types/node@16.18.11': resolution: {integrity: sha512-3oJbGBUWuS6ahSnEq1eN2XrCyf4YsWI8OyCvo7c64zQJNplk3mO84t53o8lfTk+2ji59g5ycfc6qQ3fdHliHuA==} - '@types/node@20.17.8': - resolution: {integrity: sha512-ahz2g6/oqbKalW9sPv6L2iRbhLnojxjYWspAqhjvqSWBgGebEJT5GvRmk0QXPj3sbC6rU0GTQjPLQkmR8CObvA==} + '@types/node@20.17.9': + resolution: {integrity: sha512-0JOXkRyLanfGPE2QRCwgxhzlBAvaRdCNMcvbd7jFfpmD4eEXll7LRwy5ymJmyeZqk7Nh7eD2LeUyQ68BbndmXw==} - '@types/node@22.10.0': - resolution: {integrity: sha512-XC70cRZVElFHfIUB40FgZOBbgJYFKKMa5nb9lxcwYstFG/Mi+/Y0bGS+rs6Dmhmkpq4pnNiLiuZAbc02YCOnmA==} + '@types/node@22.10.1': + resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -4503,8 +4594,8 @@ packages: '@types/yauzl@2.10.3': resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} - '@typescript-eslint/eslint-plugin@8.15.0': - resolution: {integrity: sha512-+zkm9AR1Ds9uLWN3fkoeXgFppaQ+uEVtfOV62dDmsy9QCNqlRHWNEck4yarvRNrvRcHQLGfqBNui3cimoz8XAg==} + '@typescript-eslint/eslint-plugin@8.16.0': + resolution: {integrity: sha512-5YTHKV8MYlyMI6BaEG7crQ9BhSc8RxzshOReKwZwRWN0+XvvTOm+L/UYLCYxFpfwYuAAqhxiq4yae0CMFwbL7Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 @@ -4514,8 +4605,8 @@ packages: typescript: optional: true - '@typescript-eslint/parser@8.15.0': - resolution: {integrity: sha512-7n59qFpghG4uazrF9qtGKBZXn7Oz4sOMm8dwNWDQY96Xlm2oX67eipqcblDj+oY1lLCbf1oltMZFpUso66Kl1A==} + '@typescript-eslint/parser@8.16.0': + resolution: {integrity: sha512-D7DbgGFtsqIPIFMPJwCad9Gfi/hC0PWErRRHFnaCWoEDYi5tQUDiJCTmGUbBiLzjqAck4KcXt9Ayj0CNlIrF+w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -4524,12 +4615,12 @@ packages: typescript: optional: true - '@typescript-eslint/scope-manager@8.15.0': - resolution: {integrity: sha512-QRGy8ADi4J7ii95xz4UoiymmmMd/zuy9azCaamnZ3FM8T5fZcex8UfJcjkiEZjJSztKfEBe3dZ5T/5RHAmw2mA==} + '@typescript-eslint/scope-manager@8.16.0': + resolution: {integrity: sha512-mwsZWubQvBki2t5565uxF0EYvG+FwdFb8bMtDuGQLdCCnGPrDEDvm1gtfynuKlnpzeBRqdFCkMf9jg1fnAK8sg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/type-utils@8.15.0': - resolution: {integrity: sha512-UU6uwXDoI3JGSXmcdnP5d8Fffa2KayOhUUqr/AiBnG1Gl7+7ut/oyagVeSkh7bxQ0zSXV9ptRh/4N15nkCqnpw==} + '@typescript-eslint/type-utils@8.16.0': + resolution: {integrity: sha512-IqZHGG+g1XCWX9NyqnI/0CX5LL8/18awQqmkZSl2ynn8F76j579dByc0jhfVSnSnhf7zv76mKBQv9HQFKvDCgg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -4538,12 +4629,12 @@ packages: typescript: optional: true - '@typescript-eslint/types@8.15.0': - resolution: {integrity: sha512-n3Gt8Y/KyJNe0S3yDCD2RVKrHBC4gTUcLTebVBXacPy091E6tNspFLKRXlk3hwT4G55nfr1n2AdFqi/XMxzmPQ==} + '@typescript-eslint/types@8.16.0': + resolution: {integrity: sha512-NzrHj6thBAOSE4d9bsuRNMvk+BvaQvmY4dDglgkgGC0EW/tB3Kelnp3tAKH87GEwzoxgeQn9fNGRyFJM/xd+GQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.15.0': - resolution: {integrity: sha512-1eMp2JgNec/niZsR7ioFBlsh/Fk0oJbhaqO0jRyQBMgkz7RrFfkqF9lYYmBoGBaSiLnu8TAPQTwoTUiSTUW9dg==} + '@typescript-eslint/typescript-estree@8.16.0': + resolution: {integrity: sha512-E2+9IzzXMc1iaBy9zmo+UYvluE3TW7bCGWSF41hVWUE01o8nzr1rvOQYSxelxr6StUvRcTMe633eY8mXASMaNw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -4551,8 +4642,8 @@ packages: typescript: optional: true - '@typescript-eslint/utils@8.15.0': - resolution: {integrity: sha512-k82RI9yGhr0QM3Dnq+egEpz9qB6Un+WLYhmoNcvl8ltMEededhh7otBVVIDDsEEttauwdY/hQoSsOv13lxrFzQ==} + '@typescript-eslint/utils@8.16.0': + resolution: {integrity: sha512-C1zRy/mOL8Pj157GiX4kaw7iyRLKfJXBR3L82hk5kS/GyHcOFmy4YUq/zfZti72I9wnuQtA/+xzft4wCC8PJdA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -4561,8 +4652,8 @@ packages: typescript: optional: true - '@typescript-eslint/visitor-keys@8.15.0': - resolution: {integrity: sha512-h8vYOulWec9LhpwfAdZf2bjr8xIp0KNKnpgqSz0qqYYKAW/QZKw3ktRndbiAtUz4acH4QLQavwZBYCc0wulA/Q==} + '@typescript-eslint/visitor-keys@8.16.0': + resolution: {integrity: sha512-pq19gbaMOmFE3CbL0ZB8J8BFCo2ckfHBfaIsaOZgBIF4EoISJIdLX5xRhd0FGB0LlHReNRuzoJoMGpTjq8F2CQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@ungap/structured-clone@1.2.0': @@ -4864,8 +4955,8 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - ast-kit@1.3.1: - resolution: {integrity: sha512-3bIRV4s/cNAee2rKjuvYdoG+0CMqtOIgCvWrJL6zG8R0fDyMwYzStspX5JqXPbdMzM+qxHZ6g2rMHKhr3HkPlQ==} + ast-kit@1.3.2: + resolution: {integrity: sha512-gdvX700WVC6sHCJQ7bJGfDvtuKAh6Sa6weIZROxfzUZKP7BjvB8y0SMlM/o4omSQ3L60PQSJROBJsb0vEViVnA==} engines: {node: '>=16.14.0'} astral-regex@2.0.0: @@ -6211,6 +6302,9 @@ packages: es-toolkit@1.27.0: resolution: {integrity: sha512-ETSFA+ZJArcuSCpzD2TjAy6UHpx4E4uqFsoDg9F/nTLogrLmVVZQ+zNxco5h7cWnA1nNak07IXsLcaSMih+ZPQ==} + es-toolkit@1.29.0: + resolution: {integrity: sha512-GjTll+E6APcfAQA09D89HdT8Qn2Yb+TeDSDBTMcxAo+V+w1amAtCI15LJu4YPH/UCPoSo/F47Gr1LIM0TE0lZA==} + es6-error@4.1.1: resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} @@ -6377,8 +6471,8 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - eslint-compat-utils@0.6.3: - resolution: {integrity: sha512-9IDdksh5pUYP2ZLi7mOdROxVjLY8gY2qKxprmrJ/5Dyqud7M/IFKxF3o0VLlRhITm1pK6Fk7NiBxE39M/VlUcw==} + eslint-compat-utils@0.6.4: + resolution: {integrity: sha512-/u+GQt8NMfXO8w17QendT4gvO5acfxQsAKirAt0LVxDnr2N8YLCVbregaNc/Yhp7NM128DwCaRvr8PLDfeNkQw==} engines: {node: '>=12'} peerDependencies: eslint: '>=6.0.0' @@ -6388,8 +6482,8 @@ packages: peerDependencies: eslint: ^9.5.0 - eslint-config-hyoban@3.1.13: - resolution: {integrity: sha512-ljrV1c5WlEjaR9S1pdyqSeQPj84HGDW+h9L/VH9Gbfb6QCbJ5f9fH+Yk7JZl4mxYMJVpkAAum/xnLAvl8+wafw==} + eslint-config-hyoban@3.1.14: + resolution: {integrity: sha512-BjnuI8kJBzqKA/rIJDTcSTrB4/nr+u894taheoGYaZLE8p3bRSgNeey584csabN/660I+VoHrLfTb1fUH4lyTA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^9.0.0 @@ -6446,14 +6540,14 @@ packages: eslint: '>=8.0.0' jsonc-eslint-parser: ^2.0.0 - eslint-plugin-react-compiler@19.0.0-beta-a7bf2bd-20241110: - resolution: {integrity: sha512-b5/hRnOQlnH9CEnJQ6UrPoIAG4y/wIGv+OVEHTeAkbq+1uojfcuQyLToYvK1T9a6vz5WQHeMjQqFOZk3mtWorg==} + eslint-plugin-react-compiler@19.0.0-beta-df7b47d-20241124: + resolution: {integrity: sha512-82PfnllC8jP/68KdLAbpWuYTcfmtGLzkqy2IW85WopKMTr+4rdQpp+lfliQ/QE79wWrv/dRoADrk3Pdhq25nTw==} engines: {node: ^14.17.0 || ^16.0.0 || >= 18.0.0} peerDependencies: eslint: '>=7' - eslint-plugin-react-debug@1.17.1: - resolution: {integrity: sha512-CFcm/sxqzfIsLmQjg364x0FiiTmgEhZZT3ekP4QfSsm1vLWUWlbwopBQQvFDPMNlfhuwXRzYrggbkllGT3B17A==} + eslint-plugin-react-debug@1.17.2: + resolution: {integrity: sha512-bvu9477jWvx5Th9OGewbqW/d3IBZUTuXIDW79p9xu0nJCkb5ZoRdgLTgKyFKWy4vAtGMc0EziQo5noXJq6ZTqQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6462,8 +6556,8 @@ packages: typescript: optional: true - eslint-plugin-react-dom@1.17.1: - resolution: {integrity: sha512-aXV11FswyCDGJYCg3pj5kaxNmM5RYGMvuL+KhaqcX+GKdCIpC9SqiImeLSiWOxVLWYS9kH5Ltz4xU3T3eqOgOA==} + eslint-plugin-react-dom@1.17.2: + resolution: {integrity: sha512-HWziOSbfKT54ESnavyxQmGhOyLvNZZ8bGVmw1tEF1mnCEuKu9L25qlcbfP34M/ZRI3RlLOogOWkLF/Ot9zpEuQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6472,8 +6566,8 @@ packages: typescript: optional: true - eslint-plugin-react-hooks-extra@1.17.1: - resolution: {integrity: sha512-REPsDs8pn+QUSS+iDY7hOfUiCd4TIM9XNusDM+Nu51mBXezQ0k2f7X0wtlxaAHnt+YX1vzoy6BSylJaUlFMJaA==} + eslint-plugin-react-hooks-extra@1.17.2: + resolution: {integrity: sha512-uhe69tJ4mPuaIRBriof7qD8LrKmSw8W4w+NCEfcPb8RO6KPF+ihM331WM53cRV6VjcsWyUOVQScAjfiVPmZ/cA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6488,8 +6582,8 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-naming-convention@1.17.1: - resolution: {integrity: sha512-tVbmeLJK2jC/j8IwtkvpiKnk496hhOD2j+nGEZeYjI9r5oGR/mmTpQx/0/+0HnRJ7a/ctUiuTSDzesQuU3Eu/A==} + eslint-plugin-react-naming-convention@1.17.2: + resolution: {integrity: sha512-jOYKwW0lzkmS0C5de+7BfxDBS3Tn+lv/+btInVhXRftM2Hg60jLPiYAsdHxgv7wi17o5b61pzsTMXX2h9HR1mA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6503,8 +6597,8 @@ packages: peerDependencies: eslint: '>=7' - eslint-plugin-react-web-api@1.17.1: - resolution: {integrity: sha512-c02sPQXM+7z5w0JZkgdPltPzdLlDrDxwitbGXmhePyhZYZfDCOa69ROltQPI9b2ClRmMWYgxoPlJsnGaYln6Wg==} + eslint-plugin-react-web-api@1.17.2: + resolution: {integrity: sha512-mpGE05ybVHJDr8ywLLVb+3F2H2+FuX/3NVs1k/eTb/6A2w3tt05hSXHQ/V8SPCHasQaHjG/TPKilWwZgwZowYw==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6513,8 +6607,8 @@ packages: typescript: optional: true - eslint-plugin-react-x@1.17.1: - resolution: {integrity: sha512-Iq9Eaye/+LpdOcU/qRbib4cC6EAL9bfIBH2+IDWQXLyY/HAXnmBFDJgotEPOLymIIOKhgjzfX03nkdfBIqZ3zA==} + eslint-plugin-react-x@1.17.2: + resolution: {integrity: sha512-hPnBd3c87xM2/HAk/f+s1MH/BRK2EP8u3Mb5TUvCEfuRTuX+CpLeNref2Q8vG8mxS1f4gnZHaMAnfrXndjTAGg==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6567,8 +6661,8 @@ packages: resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.15.0: - resolution: {integrity: sha512-7CrWySmIibCgT1Os28lUU6upBshZ+GxybLOrmRzi08kS8MBuO8QA7pXEgYgY5W8vK3e74xv0lpjo9DbaGU9Rkw==} + eslint@9.16.0: + resolution: {integrity: sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: @@ -6848,8 +6942,8 @@ packages: fraction.js@4.3.7: resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} - framer-motion@11.11.17: - resolution: {integrity: sha512-O8QzvoKiuzI5HSAHbcYuL6xU+ZLXbrH7C8Akaato4JzQbX2ULNeniqC2Vo5eiCtFktX9XsJ+7nUhxcl2E2IjpA==} + framer-motion@11.12.0: + resolution: {integrity: sha512-gZaZeqFM6pX9kMVti60hYAa75jGpSsGYWAHbBfIkuHN7DkVHVkxSxeNYnrGmHuM0zPkWTzQx10ZT+fDjn7N4SA==} peerDependencies: '@emotion/is-prop-valid': '*' react: ^18.0.0 @@ -7079,8 +7173,8 @@ packages: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} - globals@15.12.0: - resolution: {integrity: sha512-1+gLErljJFhbOVyaetcwJiJ4+eLe45S2E7P5UiZ9xGfeq3ATQf5DOv9G7MH3gGbKQLkzmNh2DxfZwLdw+j6oTQ==} + globals@15.13.0: + resolution: {integrity: sha512-49TewVEz0UxZjr1WYYsWpPrhyC/B/pA8Bq0fUmet2n+eR7yn0IvNzNaoBwnK6mdkzcN+se7Ez9zUgULTz2QH4g==} engines: {node: '>=18'} globalthis@1.0.4: @@ -7094,8 +7188,9 @@ packages: globrex@0.1.2: resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} - gopd@1.0.1: - resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + gopd@1.1.0: + resolution: {integrity: sha512-FQoVQnqcdk4hVM4JN1eromaun4iuS34oStkdlLENLdpULsuQcTyXj8w7ayhuUfPwEYZ1ZOooOTT6fdA9Vmx/RA==} + engines: {node: '>= 0.4'} got@11.8.6: resolution: {integrity: sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==} @@ -7112,8 +7207,8 @@ packages: engines: {node: '>=0.4.7'} hasBin: true - happy-dom@15.11.6: - resolution: {integrity: sha512-elX7iUTu+5+3b2+NGQc0L3eWyq9jKhuJJ4GpOMxxT/c2pg9O3L5H3ty2VECX0XXZgRmmRqXyOK8brA2hDI6LsQ==} + happy-dom@15.11.7: + resolution: {integrity: sha512-KyrFvnl+J9US63TEzwoiJOQzZBJY7KgBushJA8X61DMbNsH+2ONkDuLDnCnwUiPTF42tLoEmrPyoqbenVA5zrg==} engines: {node: '>=18.0.0'} has-bigints@1.0.2: @@ -7126,8 +7221,8 @@ packages: has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} - has-proto@1.0.3: - resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} + has-proto@1.1.0: + resolution: {integrity: sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==} engines: {node: '>= 0.4'} has-symbols@1.0.3: @@ -7219,11 +7314,11 @@ packages: hastscript@9.0.0: resolution: {integrity: sha512-jzaLBGavEDKHrc5EfFImKN7nZKKBdSLIdGvCwDZ9TfzbF2ffXiov8CKE445L2Z1Ek2t/m4SKQ2j6Ipv7NyUolw==} - hermes-estree@0.20.1: - resolution: {integrity: sha512-SQpZK4BzR48kuOg0v4pb3EAGNclzIlqMj3Opu/mu7bbAoFw6oig6cEt/RAi0zTFW/iW6Iz9X9ggGuZTAZ/yZHg==} + hermes-estree@0.25.1: + resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==} - hermes-parser@0.20.1: - resolution: {integrity: sha512-BL5P83cwCogI8D7rrDCgsFY0tdYUtmFP9XaXtl2IQjC+2Xo+4okjfXintlTxcIwl4qeGddEl28Z11kbVIw0aNA==} + hermes-parser@0.25.1: + resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} hex-rgb@4.3.0: resolution: {integrity: sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw==} @@ -7239,10 +7334,6 @@ packages: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} - hono@4.6.11: - resolution: {integrity: sha512-f0LwJQFKdUUrCUAVowxSvNCjyzI7ZLt8XWYU/EApyeq5FfOvHFarBaE5rjU9HTNFk4RI0FkdB2edb3p/7xZjzQ==} - engines: {node: '>=16.9.0'} - hono@4.6.12: resolution: {integrity: sha512-eHtf4kSDNw6VVrdbd5IQi16r22m3s7mWPLd7xOMhg1a/Yyb1A0qpUFq8xYMX4FMuDe1nTKeMX5rTx7Nmw+a+Ag==} engines: {node: '>=16.9.0'} @@ -7465,8 +7556,8 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} - is-boolean-object@1.1.2: - resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} + is-boolean-object@1.2.0: + resolution: {integrity: sha512-kR5g0+dXf/+kXnqI+lu0URKYPKgICtHGGNCDSB10AaUFj3o/HkB3u7WfpRBJGFopxxY0oH3ux7ZsDjLtK7xqvw==} engines: {node: '>= 0.4'} is-builtin-module@3.2.1: @@ -7556,8 +7647,8 @@ packages: resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} engines: {node: '>= 0.4'} - is-number-object@1.0.7: - resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} + is-number-object@1.1.0: + resolution: {integrity: sha512-KVSZV0Dunv9DTPkhXwcZ3Q+tUc9TsaE1ZwX5J2WMvsSGS6Md8TFPun5uwh0yRdrNerI6vf/tbJxqSx4c1ZI1Lw==} engines: {node: '>= 0.4'} is-number@7.0.0: @@ -7591,8 +7682,8 @@ packages: is-property@1.0.2: resolution: {integrity: sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==} - is-regex@1.1.4: - resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} + is-regex@1.2.0: + resolution: {integrity: sha512-B6ohK4ZmoftlUe+uvenXSbPJFo6U37BH7oO1B3nQH8f/7h27N56s85MhUtbFJAziz5dcmuR3i8ovUl35zp8pFA==} engines: {node: '>= 0.4'} is-regexp@1.0.0: @@ -7619,8 +7710,8 @@ packages: resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - is-string@1.0.7: - resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} + is-string@1.1.0: + resolution: {integrity: sha512-PlfzajuF9vSo5wErv3MJAKD/nqf9ngAs1NFQYm16nUYFO2IzxJ2hcm+IOCg+EEopdykNNUhVq5cz35cAUxU8+g==} engines: {node: '>= 0.4'} is-symbol@1.0.4: @@ -8090,8 +8181,8 @@ packages: resolution: {integrity: sha512-yiLHa7cfJcGRFq4FrR4tMlpNHb4Vy4mWnpajlSSIFM5k4Lv8/7BbbDLzCAVogWNl0LlLhizRp1drXv0hK9h0Yw==} os: [darwin] - magic-string-ast@0.6.2: - resolution: {integrity: sha512-oN3Bcd7ZVt+0VGEs7402qR/tjgjbM7kPlH/z7ufJnzTLVBzXJITRHOJiwMmmYMgZfdoWQsfQcY+iKlxiBppnMA==} + magic-string-ast@0.6.3: + resolution: {integrity: sha512-C9sgUzVZtUtzCBoMdYtwrIRQ4IucGRFGgdhkjL7PXsVfPYmTuWtewqzk7dlipaCMWH/gOYehW9rgMoa4Oebtpw==} engines: {node: '>=16.14.0'} magic-string@0.25.9: @@ -8483,8 +8574,8 @@ packages: resolution: {integrity: sha512-BhHrnS1G21VMssWUU18SOHHwAFHUvIHUSdlDtX62SCoAc97GrE3bwtUUkWSPJA18fLndCMOB5PbMZoBumDl2/g==} hasBin: true - negotiator@0.6.3: - resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} + negotiator@0.6.4: + resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==} engines: {node: '>= 0.6'} neo-async@2.6.2: @@ -8653,8 +8744,8 @@ packages: resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} engines: {node: '>=18'} - oniguruma-to-es@0.4.1: - resolution: {integrity: sha512-rNcEohFz095QKGRovP/yqPIKc+nP+Sjs4YTHMv33nMePGKrq/r2eu9Yh4646M5XluGJsUnmwoXuiXE69KDs+fQ==} + oniguruma-to-es@0.7.0: + resolution: {integrity: sha512-HRaRh09cE0gRS3+wi2zxekB+I5L8C/gN60S+vb11eADHUaB/q4u8wGGOX3GvwvitG8ixaeycZfeoyruKQzUgNg==} optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} @@ -9427,8 +9518,8 @@ packages: react: '>=16.8.1' react-dom: '>=16.8.1' - react-i18next@15.1.2: - resolution: {integrity: sha512-tl7AfbWyz9a4BefFXnVooc+gvQBVlavUkVTphGUcvhsNmbRf5UixJVdHeSFkE4gUyQkmFPYHVwTuxIdHjfQgiA==} + react-i18next@15.1.3: + resolution: {integrity: sha512-J11oA30FbM3NZegUZjn8ySK903z6PLBz/ZuBYyT1JMR0QPrW6PFXvl1WoUhortdGi9dM0m48/zJQlPskVZXgVw==} peerDependencies: i18next: '>= 23.2.3' react: '>= 16.8.0' @@ -9501,8 +9592,8 @@ packages: react-dom: optional: true - react-scan@0.0.33: - resolution: {integrity: sha512-0QnvbGf7UxzuG94HYS9RmrFlLl5O3GcTunmEk+7QIgHWjgn5Cgmfpy+5yh6IAubEvbZgzUv6vPyXq4uEYixZRQ==} + react-scan@0.0.35: + resolution: {integrity: sha512-1ZrSO4prPDDiJg6/ZauxlYMaCFsxo6KrV9fBOVJ5aGkwXw3EyBCzfQpYzIzkwE19iE9Nw3mWd8uEiWupAwDP1w==} hasBin: true react-selecto@1.26.3: @@ -9622,8 +9713,8 @@ packages: regenerator-transform@0.15.2: resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} - regex-recursion@4.2.1: - resolution: {integrity: sha512-QHNZyZAeKdndD1G3bKAbBEKOSSK4KOHQrAJ01N1LJeb0SoH4DJIeFhp0uUpETgONifS4+P3sOgoA1dhzgrQvhA==} + regex-recursion@4.3.0: + resolution: {integrity: sha512-5LcLnizwjcQ2ALfOj95MjcatxyqF5RPySx9yT+PaXu3Gox2vyAtLDjHB8NTJLtMGkvyau6nI3CfpwFCjPUIs/A==} regex-utilities@2.3.0: resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} @@ -9819,6 +9910,11 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + rollup@4.28.0: + resolution: {integrity: sha512-G9GOrmgWHBma4YfCcX8PjH0qhXSdH8B4HDE2o4/jaxj93S4DPCIDoLcXz99eWMji4hB29UFCEd7B2gwGJDR9cQ==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -9951,8 +10047,8 @@ packages: engines: {node: '>=4'} hasBin: true - shiki@1.23.1: - resolution: {integrity: sha512-8kxV9TH4pXgdKGxNOkrSMydn1Xf6It8lsle0fiqxf7a1149K1WGtdOu3Zb91T5r1JpvRPxqxU3C2XdZZXQnrig==} + shiki@1.24.0: + resolution: {integrity: sha512-qIneep7QRwxRd5oiHb8jaRzH15V/S8F3saCXOdjwRLgozZJr5x2yeBhQtqkO3FSzQDwYEFAYuifg4oHjpDghrg==} shimmer@1.2.1: resolution: {integrity: sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==} @@ -10393,11 +10489,11 @@ packages: resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} engines: {node: '>=14.0.0'} - tldts-core@6.1.64: - resolution: {integrity: sha512-uqnl8vGV16KsyflHOzqrYjjArjfXaU6rMPXYy2/ZWoRKCkXtghgB4VwTDXUG+t0OTGeSewNAG31/x1gCTfLt+Q==} + tldts-core@6.1.65: + resolution: {integrity: sha512-Uq5t0N0Oj4nQSbU8wFN1YYENvMthvwU13MQrMJRspYCGLSAZjAfoBOJki5IQpnBM/WFskxxC/gIOTwaedmHaSg==} - tldts@6.1.64: - resolution: {integrity: sha512-ph4AE5BXWIOsSy9stpoeo7bYe/Cy7VfpciIH4RhVZUPItCJmhqWCN0EVzxd8BOHiyNb42vuJc6NWTjJkg91Tuw==} + tldts@6.1.65: + resolution: {integrity: sha512-xU9gLTfAGsADQ2PcWee6Hg8RFAv0DnjMGVJmDnUmI8a9+nYmapMQix4afwrdaCtT+AqP4MaxEzu7cCrYmBPbzQ==} hasBin: true tmp-promise@3.0.3: @@ -10461,14 +10557,14 @@ packages: truncate-utf8-bytes@1.0.2: resolution: {integrity: sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==} - ts-api-utils@1.4.0: - resolution: {integrity: sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==} + ts-api-utils@1.4.3: + resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' - ts-declaration-location@1.0.4: - resolution: {integrity: sha512-r4JoxYhKULbZuH81Pjrp9OEG5St7XWk7zXwGkLKhmVcjiBVHTJXV5wK6dEa9JKW5QGSTW6b1lOjxAKp8R1SQhg==} + ts-declaration-location@1.0.5: + resolution: {integrity: sha512-WqmlO9IoeYwCqJ2E9kHMcY9GZhhfLYItC3VnHDlPOrg6nNdUWS4wn4hhDZUPt60m1EvtjPIZyprTjpI992Bgzw==} peerDependencies: typescript: '>=4.0.0' @@ -10603,6 +10699,10 @@ packages: resolution: {integrity: sha512-jXMwges/FVbFRe5lTMJZVEZCrO9kI9c8k0PA/z7nF3bo0JSCCLysvokFjNPIUK/itEMas10MQM+AiHoHt/T/XA==} engines: {node: '>=16'} + type-fest@4.29.1: + resolution: {integrity: sha512-Y1zUveI92UYM/vo1EFlQSsNf74+hfKH+7saZJslF0Fw92FRaiTAnHPIvo9d7SLxXt/gAYqA4RXyDTioMQCCp0A==} + engines: {node: '>=16'} + typed-array-buffer@1.0.2: resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==} engines: {node: '>= 0.4'} @@ -10619,8 +10719,8 @@ packages: resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} engines: {node: '>= 0.4'} - typescript-eslint@8.15.0: - resolution: {integrity: sha512-wY4FRGl0ZI+ZU4Jo/yjdBu0lVTSML58pu6PgGtJmCufvzfV565pUF6iACQt092uFOd49iLOTX/sEVmHtbSrS+w==} + typescript-eslint@8.16.0: + resolution: {integrity: sha512-wDkVmlY6O2do4V+lZd0GtRfbtXbeD0q9WygwXXSJnC1xorE8eqyC2L1tJimqpSeFrOzRlYtWnUp/uzgHQOgfBQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -10757,21 +10857,16 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} - unplugin-ast@0.11.0: - resolution: {integrity: sha512-faP/JmvaH0huDgfAS9QNShIyo2C9lICSNc6qQ13r7U84PUl7aVyw5RK0/E63FnazxxjFSt6QfKeonMpwu1d75A==} + unplugin-ast@0.12.0: + resolution: {integrity: sha512-/naRvutgPyTyKM0AVkB+Z6QykE+V5WauRdA8rZa/vH7rF6vHoHLko3gAnLMn8b+Hg+UqMRpclbwY/aIoVcy3uQ==} engines: {node: '>=18.12.0'} unplugin@1.0.1: resolution: {integrity: sha512-aqrHaVBWW1JVKBHmGo33T5TxeL0qWzfvjWokObHA9bYmN7eNDkwOxmLjhioHl9878qDFMAaT51XNroRyuz7WxA==} - unplugin@1.15.0: - resolution: {integrity: sha512-jTPIs63W+DUEDW207ztbaoO7cQ4p5aVaB823LSlxpsFEU3Mykwxf3ZGC/wzxFJeZlASZYgVrWeo7LgOrqJZ8RA==} - engines: {node: '>=14.0.0'} - peerDependencies: - webpack-sources: ^3 - peerDependenciesMeta: - webpack-sources: - optional: true + unplugin@2.0.0-beta.1: + resolution: {integrity: sha512-2qzQo5LN2DmUZXkWDHvGKLF5BP0WN+KthD6aPnPJ8plRBIjv4lh5O07eYcSxgO2znNw9s4MNhEO1sB+JDllDbQ==} + engines: {node: '>=18.12.0'} unused-filename@4.0.1: resolution: {integrity: sha512-ZX6U1J04K1FoSUeoX1OicAhw4d0aro2qo+L8RhJkiGTNtBNkd/Fi1Wxoc9HzcVu6HfOzm0si/N15JjxFmD1z6A==} @@ -10902,12 +10997,12 @@ packages: peerDependencies: vite: '>=3' - vite-plugin-pwa@0.21.0: - resolution: {integrity: sha512-gnDE5sN2hdxA4vTl0pe6PCTPXqChk175jH8dZVVTBjFhWarZZoXaAdoTIKCIa8Zbx94sC0CnCOyERBWpxvry+g==} + vite-plugin-pwa@0.21.1: + resolution: {integrity: sha512-rkTbKFbd232WdiRJ9R3u+hZmf5SfQljX1b45NF6oLA6DSktEKpYllgTo1l2lkiZWMWV78pABJtFjNXfBef3/3Q==} engines: {node: '>=16.0.0'} peerDependencies: '@vite-pwa/assets-generator': ^0.2.6 - vite: ^3.1.0 || ^4.0.0 || ^5.0.0 + vite: ^3.1.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 workbox-build: ^7.3.0 workbox-window: ^7.3.0 peerDependenciesMeta: @@ -10922,8 +11017,8 @@ packages: vite: optional: true - vite@6.0.1: - resolution: {integrity: sha512-Ldn6gorLGr4mCdFnmeAOLweJxZ34HjKnDm4HGo6P66IEqTxQb36VEdFJQENKxWjupNfoIjvRUnswjn1hpYEpjQ==} + vite@6.0.2: + resolution: {integrity: sha512-XdQ+VsY2tJpBsKGs0wf3U/+azx8BBpYRHFAyKm5VeEZNOJZRB63q7Sc8Iup3k0TrN3KO6QgyzFf+opSbfY1y0g==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: @@ -11063,8 +11158,8 @@ packages: resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==} engines: {node: '>= 0.4'} - which-typed-array@1.1.15: - resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} + which-typed-array@1.1.16: + resolution: {integrity: sha512-g+N+GAWiRj66DngFwHvISJd+ITsyphZvD1vChfVg6cEdnzy53GzB3oy0fUNlvhz7H7+MiqhYr26qxQShCpKTTQ==} engines: {node: '>= 0.4'} which@1.3.1: @@ -11508,14 +11603,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-proposal-private-methods@7.18.6(@babel/core@7.26.0)': - dependencies: - '@babel/core': 7.26.0 - '@babel/helper-create-class-features-plugin': 7.25.9(@babel/core@7.26.0) - '@babel/helper-plugin-utils': 7.25.9 - transitivePeerDependencies: - - supports-color - '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 @@ -12052,10 +12139,10 @@ snapshots: '@egjs/list-differ@1.0.1': {} - '@egoist/tailwindcss-icons@1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))': + '@egoist/tailwindcss-icons@1.8.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))': dependencies: '@iconify/utils': 2.1.33 - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) transitivePeerDependencies: - supports-color @@ -12290,9 +12377,9 @@ snapshots: dependencies: electron: 33.2.1 - '@electron-toolkit/tsconfig@1.0.1(@types/node@22.10.0)': + '@electron-toolkit/tsconfig@1.0.1(@types/node@22.10.1)': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@electron-toolkit/utils@3.0.0(electron@33.2.1)': dependencies: @@ -12724,20 +12811,20 @@ snapshots: '@esbuild/win32-x64@0.24.0': optional: true - '@eslint-community/eslint-utils@4.4.1(eslint@9.15.0(jiti@2.3.3))': + '@eslint-community/eslint-utils@4.4.1(eslint@9.16.0(jiti@2.3.3))': dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.1': {} - '@eslint-react/ast@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/ast@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 string-ts: 2.2.0 ts-pattern: 5.5.0 @@ -12746,18 +12833,18 @@ snapshots: - supports-color - typescript - '@eslint-react/core@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/core@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 short-unique-id: 5.2.0 ts-pattern: 5.5.0 @@ -12766,36 +12853,36 @@ snapshots: - supports-color - typescript - '@eslint-react/eslint-plugin@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/eslint-plugin@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) - eslint-plugin-react-debug: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-dom: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-hooks-extra: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-naming-convention: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-web-api: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-react-x: 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + eslint-plugin-react-debug: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-dom: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-hooks-extra: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-naming-convention: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-web-api: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-react-x: 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@eslint-react/jsx@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/jsx@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 ts-pattern: 5.5.0 transitivePeerDependencies: @@ -12803,10 +12890,10 @@ snapshots: - supports-color - typescript - '@eslint-react/shared@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/shared@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/tools': 1.17.1 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) local-pkg: 0.5.1 picomatch: 4.0.2 ts-pattern: 5.5.0 @@ -12815,35 +12902,35 @@ snapshots: - supports-color - typescript - '@eslint-react/tools@1.17.1': {} + '@eslint-react/tools@1.17.2': {} - '@eslint-react/types@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/types@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/tools': 1.17.1 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/var@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@eslint-react/var@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) ts-pattern: 5.5.0 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint/compat@1.2.3(eslint@9.15.0(jiti@2.3.3))': + '@eslint/compat@1.2.3(eslint@9.16.0(jiti@2.3.3))': optionalDependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) '@eslint/config-array@0.19.0': dependencies: @@ -12869,7 +12956,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.15.0': {} + '@eslint/js@9.16.0': {} '@eslint/object-schema@2.1.4': {} @@ -13291,7 +13378,7 @@ snapshots: '@grpc/grpc-js@1.9.15': dependencies: '@grpc/proto-loader': 0.7.13 - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@grpc/proto-loader@0.7.13': dependencies: @@ -13315,10 +13402,6 @@ snapshots: hono: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) react: 18.3.1 - '@hono/node-server@1.13.7(hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24))': - dependencies: - hono: 4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24) - '@hono/node-server@1.13.7(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))': dependencies: hono: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) @@ -13430,13 +13513,13 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@lottiefiles/dotlottie-react@0.10.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@lottiefiles/dotlottie-react@0.10.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@lottiefiles/dotlottie-web': 0.37.0 + '@lottiefiles/dotlottie-web': 0.38.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@lottiefiles/dotlottie-web@0.37.0': {} + '@lottiefiles/dotlottie-web@0.38.0': {} '@malept/cross-spawn-promise@1.1.1': dependencies: @@ -14312,7 +14395,7 @@ snapshots: '@types/react': 18.3.12 '@types/react-dom': 18.3.1 - '@radix-ui/react-scroll-area@1.2.0(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-scroll-area@1.2.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@radix-ui/number': 1.1.0 '@radix-ui/primitive': 1.1.0 @@ -14696,57 +14779,111 @@ snapshots: '@rollup/rollup-android-arm-eabi@4.27.4': optional: true + '@rollup/rollup-android-arm-eabi@4.28.0': + optional: true + '@rollup/rollup-android-arm64@4.27.4': optional: true + '@rollup/rollup-android-arm64@4.28.0': + optional: true + '@rollup/rollup-darwin-arm64@4.27.4': optional: true + '@rollup/rollup-darwin-arm64@4.28.0': + optional: true + '@rollup/rollup-darwin-x64@4.27.4': optional: true + '@rollup/rollup-darwin-x64@4.28.0': + optional: true + '@rollup/rollup-freebsd-arm64@4.27.4': optional: true + '@rollup/rollup-freebsd-arm64@4.28.0': + optional: true + '@rollup/rollup-freebsd-x64@4.27.4': optional: true + '@rollup/rollup-freebsd-x64@4.28.0': + optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.27.4': optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.28.0': + optional: true + '@rollup/rollup-linux-arm-musleabihf@4.27.4': optional: true + '@rollup/rollup-linux-arm-musleabihf@4.28.0': + optional: true + '@rollup/rollup-linux-arm64-gnu@4.27.4': optional: true + '@rollup/rollup-linux-arm64-gnu@4.28.0': + optional: true + '@rollup/rollup-linux-arm64-musl@4.27.4': optional: true + '@rollup/rollup-linux-arm64-musl@4.28.0': + optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.27.4': optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.28.0': + optional: true + '@rollup/rollup-linux-riscv64-gnu@4.27.4': optional: true + '@rollup/rollup-linux-riscv64-gnu@4.28.0': + optional: true + '@rollup/rollup-linux-s390x-gnu@4.27.4': optional: true + '@rollup/rollup-linux-s390x-gnu@4.28.0': + optional: true + '@rollup/rollup-linux-x64-gnu@4.27.4': optional: true + '@rollup/rollup-linux-x64-gnu@4.28.0': + optional: true + '@rollup/rollup-linux-x64-musl@4.27.4': optional: true + '@rollup/rollup-linux-x64-musl@4.28.0': + optional: true + '@rollup/rollup-win32-arm64-msvc@4.27.4': optional: true + '@rollup/rollup-win32-arm64-msvc@4.28.0': + optional: true + '@rollup/rollup-win32-ia32-msvc@4.27.4': optional: true + '@rollup/rollup-win32-ia32-msvc@4.28.0': + optional: true + '@rollup/rollup-win32-x64-msvc@4.27.4': optional: true + '@rollup/rollup-win32-x64-msvc@4.28.0': + optional: true + '@scena/dragscroll@1.4.0': dependencies: '@daybrush/utils': 1.13.0 @@ -14766,10 +14903,10 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/browser-utils@8.40.0': + '@sentry-internal/browser-utils@8.41.0': dependencies: - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry-internal/feedback@8.35.0': dependencies: @@ -14777,10 +14914,10 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/feedback@8.40.0': + '@sentry-internal/feedback@8.41.0': dependencies: - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry-internal/replay-canvas@8.35.0': dependencies: @@ -14789,11 +14926,11 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/replay-canvas@8.40.0': + '@sentry-internal/replay-canvas@8.41.0': dependencies: - '@sentry-internal/replay': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry-internal/replay': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry-internal/replay@8.35.0': dependencies: @@ -14802,11 +14939,11 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry-internal/replay@8.40.0': + '@sentry-internal/replay@8.41.0': dependencies: - '@sentry-internal/browser-utils': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry-internal/browser-utils': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry/babel-plugin-component-annotate@2.22.6': {} @@ -14820,14 +14957,14 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry/browser@8.40.0': + '@sentry/browser@8.41.0': dependencies: - '@sentry-internal/browser-utils': 8.40.0 - '@sentry-internal/feedback': 8.40.0 - '@sentry-internal/replay': 8.40.0 - '@sentry-internal/replay-canvas': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry-internal/browser-utils': 8.41.0 + '@sentry-internal/feedback': 8.41.0 + '@sentry-internal/replay': 8.41.0 + '@sentry-internal/replay-canvas': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 '@sentry/bundler-plugin-core@2.22.6(encoding@0.1.13)': dependencies: @@ -14888,9 +15025,9 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry/core@8.40.0': + '@sentry/core@8.41.0': dependencies: - '@sentry/types': 8.40.0 + '@sentry/types': 8.41.0 '@sentry/electron@5.7.0': dependencies: @@ -14954,17 +15091,17 @@ snapshots: '@sentry/types': 8.35.0 '@sentry/utils': 8.35.0 - '@sentry/react@8.40.0(react@18.3.1)': + '@sentry/react@8.41.0(react@18.3.1)': dependencies: - '@sentry/browser': 8.40.0 - '@sentry/core': 8.40.0 - '@sentry/types': 8.40.0 + '@sentry/browser': 8.41.0 + '@sentry/core': 8.41.0 + '@sentry/types': 8.41.0 hoist-non-react-statics: 3.3.2 react: 18.3.1 '@sentry/types@8.35.0': {} - '@sentry/types@8.40.0': {} + '@sentry/types@8.41.0': {} '@sentry/utils@8.35.0': dependencies: @@ -14978,31 +15115,31 @@ snapshots: - encoding - supports-color - '@shikijs/core@1.23.1': + '@shikijs/core@1.24.0': dependencies: - '@shikijs/engine-javascript': 1.23.1 - '@shikijs/engine-oniguruma': 1.23.1 - '@shikijs/types': 1.23.1 + '@shikijs/engine-javascript': 1.24.0 + '@shikijs/engine-oniguruma': 1.24.0 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 '@types/hast': 3.0.4 hast-util-to-html: 9.0.3 - '@shikijs/engine-javascript@1.23.1': + '@shikijs/engine-javascript@1.24.0': dependencies: - '@shikijs/types': 1.23.1 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 - oniguruma-to-es: 0.4.1 + oniguruma-to-es: 0.7.0 - '@shikijs/engine-oniguruma@1.23.1': + '@shikijs/engine-oniguruma@1.24.0': dependencies: - '@shikijs/types': 1.23.1 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 - '@shikijs/transformers@1.23.1': + '@shikijs/transformers@1.24.0': dependencies: - shiki: 1.23.1 + shiki: 1.24.0 - '@shikijs/types@1.23.1': + '@shikijs/types@1.24.0': dependencies: '@shikijs/vscode-textmate': 9.3.0 '@types/hast': 3.0.4 @@ -15016,10 +15153,10 @@ snapshots: '@sindresorhus/is@4.6.0': {} - '@stylistic/eslint-plugin@2.11.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@stylistic/eslint-plugin@2.11.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) eslint-visitor-keys: 4.2.0 espree: 10.3.0 estraverse: 5.3.0 @@ -15049,47 +15186,56 @@ snapshots: optionalDependencies: typescript: 5.7.2 - '@tailwindcss/container-queries@0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))': + '@tailwindcss/container-queries@0.1.1(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))': dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - '@tailwindcss/typography@0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))': + '@tailwindcss/typography@0.5.15(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))': dependencies: lodash.castarray: 4.4.0 lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 postcss-selector-parser: 6.0.10 - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - '@tanstack/query-core@5.61.4': {} + '@tanstack/query-core@5.61.4': + optional: true + + '@tanstack/query-core@5.62.0': {} '@tanstack/query-devtools@5.61.4': {} - '@tanstack/query-persist-client-core@5.61.4': + '@tanstack/query-persist-client-core@5.62.0': dependencies: - '@tanstack/query-core': 5.61.4 + '@tanstack/query-core': 5.62.0 - '@tanstack/query-sync-storage-persister@5.61.4': + '@tanstack/query-sync-storage-persister@5.62.0': dependencies: - '@tanstack/query-core': 5.61.4 - '@tanstack/query-persist-client-core': 5.61.4 + '@tanstack/query-core': 5.62.0 + '@tanstack/query-persist-client-core': 5.62.0 - '@tanstack/react-query-devtools@5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1)': + '@tanstack/react-query-devtools@5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/query-devtools': 5.61.4 - '@tanstack/react-query': 5.61.4(react@18.3.1) + '@tanstack/react-query': 5.62.0(react@18.3.1) react: 18.3.1 - '@tanstack/react-query-persist-client@5.61.4(@tanstack/react-query@5.61.4(react@18.3.1))(react@18.3.1)': + '@tanstack/react-query-persist-client@5.62.0(@tanstack/react-query@5.62.0(react@18.3.1))(react@18.3.1)': dependencies: - '@tanstack/query-persist-client-core': 5.61.4 - '@tanstack/react-query': 5.61.4(react@18.3.1) + '@tanstack/query-persist-client-core': 5.62.0 + '@tanstack/react-query': 5.62.0(react@18.3.1) react: 18.3.1 '@tanstack/react-query@5.61.4(react@18.3.1)': dependencies: '@tanstack/query-core': 5.61.4 react: 18.3.1 + optional: true + + '@tanstack/react-query@5.62.0(react@18.3.1)': + dependencies: + '@tanstack/query-core': 5.62.0 + react: 18.3.1 '@tanstack/react-virtual@3.10.9(patch_hash=fpkworxfwphev7q33sgiutu7aq)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -15120,7 +15266,7 @@ snapshots: '@types/appdmg@0.5.5': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 optional: true '@types/babel__core@7.20.5': @@ -15148,12 +15294,12 @@ snapshots: dependencies: '@types/http-cache-semantics': 4.0.4 '@types/keyv': 3.1.4 - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/responselike': 1.0.3 '@types/connect@3.4.36': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/cookie@0.6.0': {} @@ -15171,12 +15317,12 @@ snapshots: '@types/fs-extra@9.0.13': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/glob@7.2.0': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/hast@3.0.4': dependencies: @@ -15194,7 +15340,7 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/mdast@4.0.4': dependencies: @@ -15206,15 +15352,15 @@ snapshots: '@types/mysql@2.15.26': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/node@16.18.11': {} - '@types/node@20.17.8': + '@types/node@20.17.9': dependencies: undici-types: 6.19.8 - '@types/node@22.10.0': + '@types/node@22.10.1': dependencies: undici-types: 6.20.0 @@ -15226,19 +15372,19 @@ snapshots: '@types/pg@8.11.10': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 pg-protocol: 1.7.0 pg-types: 4.0.2 '@types/pg@8.6.1': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 pg-protocol: 1.7.0 pg-types: 2.2.0 '@types/plist@3.0.5': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 xmlbuilder: 15.1.1 optional: true @@ -15257,7 +15403,7 @@ snapshots: '@types/responselike@1.0.3': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 '@types/semver@7.5.8': {} @@ -15265,7 +15411,7 @@ snapshots: '@types/tar@6.1.13': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 minipass: 4.2.8 '@types/trusted-types@2.0.7': {} @@ -15279,89 +15425,89 @@ snapshots: '@types/yauzl@2.10.3': dependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 optional: true - '@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/visitor-keys': 8.15.0 - eslint: 9.15.0(jiti@2.3.3) + '@typescript-eslint/parser': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/visitor-keys': 8.16.0 + eslint: 9.16.0(jiti@2.3.3) graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.4.0(typescript@5.7.2) + ts-api-utils: 1.4.3(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - '@typescript-eslint/visitor-keys': 8.15.0 + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + '@typescript-eslint/visitor-keys': 8.16.0 debug: 4.3.7 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@8.15.0': + '@typescript-eslint/scope-manager@8.16.0': dependencies: - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/visitor-keys': 8.15.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/visitor-keys': 8.16.0 - '@typescript-eslint/type-utils@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/type-utils@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) debug: 4.3.7 - eslint: 9.15.0(jiti@2.3.3) - ts-api-utils: 1.4.0(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + ts-api-utils: 1.4.3(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/types@8.15.0': {} + '@typescript-eslint/types@8.16.0': {} - '@typescript-eslint/typescript-estree@8.15.0(typescript@5.7.2)': + '@typescript-eslint/typescript-estree@8.16.0(typescript@5.7.2)': dependencies: - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/visitor-keys': 8.15.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/visitor-keys': 8.16.0 debug: 4.3.7 fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.4.0(typescript@5.7.2) + ts-api-utils: 1.4.3(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@typescript-eslint/utils@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/visitor-keys@8.15.0': + '@typescript-eslint/visitor-keys@8.16.0': dependencies: - '@typescript-eslint/types': 8.15.0 + '@typescript-eslint/types': 8.16.0 eslint-visitor-keys: 4.2.0 '@ungap/structured-clone@1.2.0': {} @@ -15375,17 +15521,17 @@ snapshots: '@unocss/core@0.64.1': {} - '@unocss/eslint-config@0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@unocss/eslint-config@0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@unocss/eslint-plugin': 0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@unocss/eslint-plugin': 0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@unocss/eslint-plugin@0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2)': + '@unocss/eslint-plugin@0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': dependencies: - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) '@unocss/config': 0.64.1 '@unocss/core': 0.64.1 magic-string: 0.30.14 @@ -15467,7 +15613,7 @@ snapshots: sharp-ico: 0.1.5 unconfig: 0.3.13 - '@vitejs/plugin-legacy@6.0.0(terser@5.35.0)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': + '@vitejs/plugin-legacy@6.0.0(terser@5.35.0)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': dependencies: '@babel/core': 7.26.0 '@babel/preset-env': 7.26.0(@babel/core@7.26.0) @@ -15478,18 +15624,18 @@ snapshots: regenerator-runtime: 0.14.1 systemjs: 6.15.1 terser: 5.35.0 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color - '@vitejs/plugin-react@4.3.4(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': + '@vitejs/plugin-react@4.3.4(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': dependencies: '@babel/core': 7.26.0 '@babel/plugin-transform-react-jsx-self': 7.25.9(@babel/core@7.26.0) '@babel/plugin-transform-react-jsx-source': 7.25.9(@babel/core@7.26.0) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color @@ -15500,13 +15646,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': + '@vitest/mocker@2.1.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))': dependencies: '@vitest/spy': 2.1.6 estree-walker: 3.0.3 magic-string: 0.30.14 optionalDependencies: - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) '@vitest/pretty-format@2.1.6': dependencies: @@ -15832,7 +15978,7 @@ snapshots: assertion-error@2.0.1: {} - ast-kit@1.3.1: + ast-kit@1.3.2: dependencies: '@babel/parser': 7.26.2 pathe: 1.1.2 @@ -16915,7 +17061,7 @@ snapshots: dependencies: es-define-property: 1.0.0 es-errors: 1.3.0 - gopd: 1.0.1 + gopd: 1.1.0 define-properties@1.2.1: dependencies: @@ -17199,7 +17345,7 @@ snapshots: transitivePeerDependencies: - supports-color - electron-vite@2.3.0(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): + electron-vite@2.3.0(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): dependencies: '@babel/core': 7.26.0 '@babel/plugin-transform-arrow-functions': 7.25.9(@babel/core@7.26.0) @@ -17207,7 +17353,7 @@ snapshots: esbuild: 0.21.5 magic-string: 0.30.14 picocolors: 1.1.1 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color @@ -17227,7 +17373,7 @@ snapshots: electron@33.2.1: dependencies: '@electron/get': 2.0.3 - '@types/node': 20.17.8 + '@types/node': 20.17.9 extract-zip: 2.0.1 transitivePeerDependencies: - supports-color @@ -17314,9 +17460,9 @@ snapshots: get-intrinsic: 1.2.4 get-symbol-description: 1.0.2 globalthis: 1.0.4 - gopd: 1.0.1 + gopd: 1.1.0 has-property-descriptors: 1.0.2 - has-proto: 1.0.3 + has-proto: 1.1.0 has-symbols: 1.0.3 hasown: 2.0.2 internal-slot: 1.0.7 @@ -17324,9 +17470,9 @@ snapshots: is-callable: 1.2.7 is-data-view: 1.0.1 is-negative-zero: 2.0.3 - is-regex: 1.1.4 + is-regex: 1.2.0 is-shared-array-buffer: 1.0.3 - is-string: 1.0.7 + is-string: 1.1.0 is-typed-array: 1.1.13 is-weakref: 1.0.2 object-inspect: 1.13.3 @@ -17343,7 +17489,7 @@ snapshots: typed-array-byte-offset: 1.0.3 typed-array-length: 1.0.7 unbox-primitive: 1.0.2 - which-typed-array: 1.1.15 + which-typed-array: 1.1.16 es-define-property@1.0.0: dependencies: @@ -17373,6 +17519,8 @@ snapshots: es-toolkit@1.27.0: {} + es-toolkit@1.29.0: {} + es6-error@4.1.1: optional: true @@ -17551,46 +17699,46 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-compat-utils@0.6.3(eslint@9.15.0(jiti@2.3.3)): + eslint-compat-utils@0.6.4(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) semver: 7.6.3 - eslint-config-flat-gitignore@0.3.0(eslint@9.15.0(jiti@2.3.3)): + eslint-config-flat-gitignore@0.3.0(eslint@9.16.0(jiti@2.3.3)): dependencies: - '@eslint/compat': 1.2.3(eslint@9.15.0(jiti@2.3.3)) - eslint: 9.15.0(jiti@2.3.3) + '@eslint/compat': 1.2.3(eslint@9.16.0(jiti@2.3.3)) + eslint: 9.16.0(jiti@2.3.3) find-up-simple: 1.0.0 - eslint-config-hyoban@3.1.13(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)))(typescript@5.7.2): + eslint-config-hyoban@3.1.14(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)))(typescript@5.7.2): dependencies: - '@eslint-react/eslint-plugin': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint/js': 9.15.0 - '@stylistic/eslint-plugin': 2.11.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@unocss/eslint-config': 0.64.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/eslint-plugin': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint/js': 9.16.0 + '@stylistic/eslint-plugin': 2.11.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@unocss/eslint-config': 0.64.1(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) defu: 6.1.4 - eslint: 9.15.0(jiti@2.3.3) - eslint-config-flat-gitignore: 0.3.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-antfu: 2.7.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-command: 0.2.6(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-hyoban: 0.6.1(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-import-x: 4.4.3(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint-plugin-jsonc: 2.18.2(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-package-json: 0.15.6(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) - eslint-plugin-react-compiler: 19.0.0-beta-a7bf2bd-20241110(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-react-hooks: 5.0.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-react-refresh: 0.4.14(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-regexp: 2.7.0(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-simple-import-sort: 12.1.1(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-tailwindcss: 3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))) - eslint-plugin-unicorn: 56.0.1(eslint@9.15.0(jiti@2.3.3)) - eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3)) - globals: 15.12.0 + eslint: 9.16.0(jiti@2.3.3) + eslint-config-flat-gitignore: 0.3.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-antfu: 2.7.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-command: 0.2.6(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-hyoban: 0.6.1(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-import-x: 4.4.3(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint-plugin-jsonc: 2.18.2(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-package-json: 0.15.6(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) + eslint-plugin-react-compiler: 19.0.0-beta-df7b47d-20241124(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-react-hooks: 5.0.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-react-refresh: 0.4.14(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-regexp: 2.7.0(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-simple-import-sort: 12.1.1(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-tailwindcss: 3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))) + eslint-plugin-unicorn: 56.0.1(eslint@9.16.0(jiti@2.3.3)) + eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3)) + globals: 15.13.0 jsonc-eslint-parser: 2.4.0 local-pkg: 0.5.1 read-package-up: 11.0.0 - typescript-eslint: 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + typescript-eslint: 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: @@ -17607,32 +17755,32 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-json-compat-utils@0.2.1(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): + eslint-json-compat-utils@0.2.1(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) esquery: 1.6.0 jsonc-eslint-parser: 2.4.0 - eslint-plugin-antfu@2.7.0(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-antfu@2.7.0(eslint@9.16.0(jiti@2.3.3)): dependencies: '@antfu/utils': 0.7.10 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-command@0.2.6(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-command@0.2.6(eslint@9.16.0(jiti@2.3.3)): dependencies: '@es-joy/jsdoccomment': 0.48.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-hyoban@0.6.1(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-hyoban@0.6.1(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-import-x@4.4.3(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-import-x@4.4.3(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) debug: 4.3.7 doctrine: 3.0.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) eslint-import-resolver-node: 0.3.9 get-tsconfig: 4.8.1 is-glob: 4.0.3 @@ -17644,12 +17792,12 @@ snapshots: - supports-color - typescript - eslint-plugin-jsonc@2.18.2(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-jsonc@2.18.2(eslint@9.16.0(jiti@2.3.3)): dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) - eslint: 9.15.0(jiti@2.3.3) - eslint-compat-utils: 0.6.3(eslint@9.15.0(jiti@2.3.3)) - eslint-json-compat-utils: 0.2.1(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) + eslint: 9.16.0(jiti@2.3.3) + eslint-compat-utils: 0.6.4(eslint@9.16.0(jiti@2.3.3)) + eslint-json-compat-utils: 0.2.1(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0) espree: 9.6.1 graphemer: 1.4.0 jsonc-eslint-parser: 2.4.0 @@ -17658,12 +17806,12 @@ snapshots: transitivePeerDependencies: - '@eslint/json' - eslint-plugin-package-json@0.15.6(eslint@9.15.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): + eslint-plugin-package-json@0.15.6(eslint@9.16.0(jiti@2.3.3))(jsonc-eslint-parser@2.4.0): dependencies: '@altano/repository-tools': 0.1.1 detect-indent: 6.1.0 detect-newline: 3.1.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) jsonc-eslint-parser: 2.4.0 package-json-validator: 0.7.0 semver: 7.6.3 @@ -17671,32 +17819,32 @@ snapshots: sort-package-json: 1.57.0 validate-npm-package-name: 6.0.0 - eslint-plugin-react-compiler@19.0.0-beta-a7bf2bd-20241110(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-react-compiler@19.0.0-beta-df7b47d-20241124(eslint@9.16.0(jiti@2.3.3)): dependencies: '@babel/core': 7.26.0 '@babel/parser': 7.26.2 - '@babel/plugin-proposal-private-methods': 7.18.6(@babel/core@7.26.0) - eslint: 9.15.0(jiti@2.3.3) - hermes-parser: 0.20.1 + '@babel/plugin-transform-private-methods': 7.25.9(@babel/core@7.26.0) + eslint: 9.16.0(jiti@2.3.3) + hermes-parser: 0.25.1 zod: 3.23.8 zod-validation-error: 3.4.0(zod@3.23.8) transitivePeerDependencies: - supports-color - eslint-plugin-react-debug@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-debug@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) string-ts: 2.2.0 ts-pattern: 5.5.0 optionalDependencies: @@ -17704,146 +17852,146 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-react-dom@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-dom@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) compare-versions: 6.1.1 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks-extra@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-hooks-extra@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks@5.0.0(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-react-hooks@5.0.0(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-react-naming-convention@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-naming-convention@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-refresh@0.4.14(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-react-refresh@0.4.14(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-react-web-api@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-web-api@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) birecord: 0.1.1 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-x@1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + eslint-plugin-react-x@1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@eslint-react/ast': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/core': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/jsx': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/shared': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/tools': 1.17.1 - '@eslint-react/types': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@eslint-react/var': 1.17.1(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/ast': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/core': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/jsx': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/shared': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/tools': 1.17.2 + '@eslint-react/types': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@eslint-react/var': 1.17.2(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) compare-versions: 6.1.1 - eslint: 9.15.0(jiti@2.3.3) - is-immutable-type: 5.0.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + is-immutable-type: 5.0.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) ts-pattern: 5.5.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - eslint-plugin-regexp@2.7.0(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-regexp@2.7.0(eslint@9.16.0(jiti@2.3.3)): dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) '@eslint-community/regexpp': 4.12.1 comment-parser: 1.4.1 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) jsdoc-type-pratt-parser: 4.1.0 refa: 0.12.1 regexp-ast-analysis: 0.7.1 scslre: 0.3.0 - eslint-plugin-simple-import-sort@12.1.1(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-simple-import-sort@12.1.1(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) - eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: fast-glob: 3.3.2 postcss: 8.4.49 - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - eslint-plugin-unicorn@56.0.1(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-unicorn@56.0.1(eslint@9.16.0(jiti@2.3.3)): dependencies: '@babel/helper-validator-identifier': 7.25.9 - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) ci-info: 4.1.0 clean-regexp: 1.0.0 core-js-compat: 3.39.0 - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) esquery: 1.6.0 - globals: 15.12.0 + globals: 15.13.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 jsesc: 3.0.2 @@ -17854,11 +18002,11 @@ snapshots: semver: 7.6.3 strip-indent: 3.0.0 - eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3)): + eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3)): dependencies: - eslint: 9.15.0(jiti@2.3.3) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) eslint-scope@8.2.0: dependencies: @@ -17869,14 +18017,14 @@ snapshots: eslint-visitor-keys@4.2.0: {} - eslint@9.15.0(jiti@2.3.3): + eslint@9.16.0(jiti@2.3.3): dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0(jiti@2.3.3)) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@2.3.3)) '@eslint-community/regexpp': 4.12.1 '@eslint/config-array': 0.19.0 '@eslint/core': 0.9.0 '@eslint/eslintrc': 3.2.0 - '@eslint/js': 9.15.0 + '@eslint/js': 9.16.0 '@eslint/plugin-kit': 0.2.3 '@humanfs/node': 0.16.6 '@humanwhocodes/module-importer': 1.0.1 @@ -18230,7 +18378,7 @@ snapshots: fraction.js@4.3.7: {} - framer-motion@11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + framer-motion@11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: tslib: 2.8.1 optionalDependencies: @@ -18373,7 +18521,7 @@ snapshots: dependencies: es-errors: 1.3.0 function-bind: 1.1.2 - has-proto: 1.0.3 + has-proto: 1.1.0 has-symbols: 1.0.3 hasown: 2.0.2 @@ -18524,12 +18672,12 @@ snapshots: globals@14.0.0: {} - globals@15.12.0: {} + globals@15.13.0: {} globalthis@1.0.4: dependencies: define-properties: 1.2.1 - gopd: 1.0.1 + gopd: 1.1.0 globby@10.0.0: dependencies: @@ -18544,7 +18692,7 @@ snapshots: globrex@0.1.2: {} - gopd@1.0.1: + gopd@1.1.0: dependencies: get-intrinsic: 1.2.4 @@ -18575,7 +18723,7 @@ snapshots: optionalDependencies: uglify-js: 3.19.3 - happy-dom@15.11.6: + happy-dom@15.11.7: dependencies: entities: 4.5.0 webidl-conversions: 7.0.0 @@ -18589,7 +18737,9 @@ snapshots: dependencies: es-define-property: 1.0.0 - has-proto@1.0.3: {} + has-proto@1.1.0: + dependencies: + call-bind: 1.0.7 has-symbols@1.0.3: {} @@ -18794,11 +18944,11 @@ snapshots: property-information: 6.5.0 space-separated-tokens: 2.0.2 - hermes-estree@0.20.1: {} + hermes-estree@0.25.1: {} - hermes-parser@0.20.1: + hermes-parser@0.25.1: dependencies: - hermes-estree: 0.20.1 + hermes-estree: 0.25.1 hex-rgb@4.3.0: {} @@ -18816,8 +18966,6 @@ snapshots: dependencies: parse-passwd: 1.0.0 - hono@4.6.11(patch_hash=qptujxncoai6tukc4qaqsrqk24): {} - hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24): {} hosted-git-info@2.8.9: {} @@ -19047,7 +19195,7 @@ snapshots: dependencies: binary-extensions: 2.3.0 - is-boolean-object@1.1.2: + is-boolean-object@1.2.0: dependencies: call-bind: 1.0.7 has-tostringtag: 1.0.2 @@ -19096,12 +19244,12 @@ snapshots: is-hexadecimal@2.0.1: {} - is-immutable-type@5.0.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + is-immutable-type@5.0.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) - ts-api-utils: 1.4.0(typescript@5.7.2) - ts-declaration-location: 1.0.4(typescript@5.7.2) + '@typescript-eslint/type-utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) + ts-api-utils: 1.4.3(typescript@5.7.2) + ts-declaration-location: 1.0.5(typescript@5.7.2) typescript: 5.7.2 transitivePeerDependencies: - supports-color @@ -19130,8 +19278,9 @@ snapshots: is-negative-zero@2.0.3: {} - is-number-object@1.0.7: + is-number-object@1.1.0: dependencies: + call-bind: 1.0.7 has-tostringtag: 1.0.2 is-number@7.0.0: {} @@ -19151,10 +19300,12 @@ snapshots: is-property@1.0.2: optional: true - is-regex@1.1.4: + is-regex@1.2.0: dependencies: call-bind: 1.0.7 + gopd: 1.1.0 has-tostringtag: 1.0.2 + hasown: 2.0.2 is-regexp@1.0.0: {} @@ -19170,8 +19321,9 @@ snapshots: is-stream@3.0.0: {} - is-string@1.0.7: + is-string@1.1.0: dependencies: + call-bind: 1.0.7 has-tostringtag: 1.0.2 is-symbol@1.0.4: @@ -19180,7 +19332,7 @@ snapshots: is-typed-array@1.1.13: dependencies: - which-typed-array: 1.1.15 + which-typed-array: 1.1.16 is-unicode-supported@0.1.0: {} @@ -19621,7 +19773,7 @@ snapshots: nan: 2.22.0 optional: true - magic-string-ast@0.6.2: + magic-string-ast@0.6.3: dependencies: magic-string: 0.30.14 @@ -19661,7 +19813,7 @@ snapshots: minipass-fetch: 2.1.2 minipass-flush: 1.0.5 minipass-pipeline: 1.2.4 - negotiator: 0.6.3 + negotiator: 0.6.4 promise-retry: 2.0.1 socks-proxy-agent: 7.0.0 ssri: 9.0.1 @@ -20260,7 +20412,7 @@ snapshots: - conventional-commits-filter - magicast - negotiator@0.6.3: {} + negotiator@0.6.4: {} neo-async@2.6.2: {} @@ -20430,11 +20582,11 @@ snapshots: dependencies: mimic-function: 5.0.1 - oniguruma-to-es@0.4.1: + oniguruma-to-es@0.7.0: dependencies: emoji-regex-xs: 1.0.0 regex: 5.0.2 - regex-recursion: 4.2.1 + regex-recursion: 4.3.0 optionator@0.9.4: dependencies: @@ -20571,7 +20723,7 @@ snapshots: dependencies: '@babel/code-frame': 7.26.2 index-to-position: 0.1.2 - type-fest: 4.28.0 + type-fest: 4.29.1 parse-ms@2.1.0: {} @@ -20729,9 +20881,9 @@ snapshots: mlly: 1.7.3 pathe: 1.1.2 - plain-shiki@0.0.12(shiki@1.23.1): + plain-shiki@0.0.12(shiki@1.24.0): dependencies: - shiki: 1.23.1 + shiki: 1.24.0 playwright-core@1.49.0: {} @@ -20802,13 +20954,13 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.49 - postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)): + postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)): dependencies: lilconfig: 3.1.2 yaml: 2.6.1 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.1(@types/node@22.10.0)(typescript@5.7.2) + ts-node: 10.9.1(@types/node@22.10.1)(typescript@5.7.2) postcss-load-config@6.0.1(jiti@2.3.3)(postcss@8.4.49)(tsx@4.19.2)(yaml@2.6.1): dependencies: @@ -21050,7 +21202,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 22.10.0 + '@types/node': 22.10.1 long: 5.2.3 proxy-addr@2.0.7: @@ -21114,11 +21266,11 @@ snapshots: iconv-lite: 0.6.3 unpipe: 1.0.0 - rc-modal-sheet@0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)): + rc-modal-sheet@0.3.2(@radix-ui/react-dialog@1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(clsx@2.1.1)(framer-motion@11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(tailwind-merge@2.5.5)(vaul@1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)): dependencies: '@radix-ui/react-dialog': 1.1.2(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) clsx: 2.1.1 - framer-motion: 11.11.17(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + framer-motion: 11.12.0(@emotion/is-prop-valid@1.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) tailwind-merge: 2.5.5 vaul: 1.1.1(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -21169,7 +21321,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-i18next@15.1.2(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-i18next@15.1.3(i18next@24.0.2(typescript@5.7.2))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.26.0 html-parse-stringify: 3.0.1 @@ -21229,7 +21381,7 @@ snapshots: optionalDependencies: react-dom: 18.3.1(react@18.3.1) - react-scan@0.0.33: + react-scan@0.0.35: dependencies: '@clack/core': 0.3.5 '@clack/prompts': 0.8.2 @@ -21289,7 +21441,7 @@ snapshots: dependencies: find-up-simple: 1.0.0 read-pkg: 9.0.1 - type-fest: 4.28.0 + type-fest: 4.29.1 read-pkg-up@2.0.0: dependencies: @@ -21320,7 +21472,7 @@ snapshots: '@types/normalize-package-data': 2.4.4 normalize-package-data: 6.0.2 parse-json: 8.1.0 - type-fest: 4.28.0 + type-fest: 4.29.1 unicorn-magic: 0.1.0 readable-stream@2.3.8: @@ -21370,7 +21522,7 @@ snapshots: es-abstract: 1.23.5 es-errors: 1.3.0 get-intrinsic: 1.2.4 - gopd: 1.0.1 + gopd: 1.1.0 which-builtin-type: 1.2.0 regenerate-unicode-properties@10.2.0: @@ -21385,7 +21537,7 @@ snapshots: dependencies: '@babel/runtime': 7.26.0 - regex-recursion@4.2.1: + regex-recursion@4.3.0: dependencies: regex-utilities: 2.3.0 @@ -21650,6 +21802,30 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.27.4 fsevents: 2.3.3 + rollup@4.28.0: + dependencies: + '@types/estree': 1.0.6 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.28.0 + '@rollup/rollup-android-arm64': 4.28.0 + '@rollup/rollup-darwin-arm64': 4.28.0 + '@rollup/rollup-darwin-x64': 4.28.0 + '@rollup/rollup-freebsd-arm64': 4.28.0 + '@rollup/rollup-freebsd-x64': 4.28.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.28.0 + '@rollup/rollup-linux-arm-musleabihf': 4.28.0 + '@rollup/rollup-linux-arm64-gnu': 4.28.0 + '@rollup/rollup-linux-arm64-musl': 4.28.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.28.0 + '@rollup/rollup-linux-riscv64-gnu': 4.28.0 + '@rollup/rollup-linux-s390x-gnu': 4.28.0 + '@rollup/rollup-linux-x64-gnu': 4.28.0 + '@rollup/rollup-linux-x64-musl': 4.28.0 + '@rollup/rollup-win32-arm64-msvc': 4.28.0 + '@rollup/rollup-win32-ia32-msvc': 4.28.0 + '@rollup/rollup-win32-x64-msvc': 4.28.0 + fsevents: 2.3.3 + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -21669,7 +21845,7 @@ snapshots: dependencies: call-bind: 1.0.7 es-errors: 1.3.0 - is-regex: 1.1.4 + is-regex: 1.2.0 safe-regex2@4.0.0: dependencies: @@ -21758,7 +21934,7 @@ snapshots: es-errors: 1.3.0 function-bind: 1.1.2 get-intrinsic: 1.2.4 - gopd: 1.0.1 + gopd: 1.1.0 has-property-descriptors: 1.0.2 set-function-name@2.0.2: @@ -21812,12 +21988,12 @@ snapshots: interpret: 1.4.0 rechoir: 0.6.2 - shiki@1.23.1: + shiki@1.24.0: dependencies: - '@shikijs/core': 1.23.1 - '@shikijs/engine-javascript': 1.23.1 - '@shikijs/engine-oniguruma': 1.23.1 - '@shikijs/types': 1.23.1 + '@shikijs/core': 1.24.0 + '@shikijs/engine-javascript': 1.24.0 + '@shikijs/engine-oniguruma': 1.24.0 + '@shikijs/types': 1.24.0 '@shikijs/vscode-textmate': 9.3.0 '@types/hast': 3.0.4 @@ -22026,7 +22202,7 @@ snapshots: es-errors: 1.3.0 es-object-atoms: 1.0.0 get-intrinsic: 1.2.4 - gopd: 1.0.1 + gopd: 1.1.0 has-symbols: 1.0.3 internal-slot: 1.0.7 regexp.prototype.flags: 1.5.3 @@ -22162,19 +22338,19 @@ snapshots: tailwind-merge@2.5.5: {} - tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - tailwindcss-motion@0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + tailwindcss-motion@0.4.3-beta(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - tailwindcss-safe-area@0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2))): + tailwindcss-safe-area@0.6.0(tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + tailwindcss: 3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) - tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)): + tailwindcss@3.4.15(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -22193,7 +22369,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2)) + postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2)) postcss-nested: 6.2.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 resolve: 1.22.8 @@ -22324,11 +22500,11 @@ snapshots: tinyspy@3.0.2: {} - tldts-core@6.1.64: {} + tldts-core@6.1.65: {} - tldts@6.1.64: + tldts@6.1.65: dependencies: - tldts-core: 6.1.64 + tldts-core: 6.1.65 tmp-promise@3.0.3: dependencies: @@ -22382,11 +22558,11 @@ snapshots: dependencies: utf8-byte-length: 1.0.5 - ts-api-utils@1.4.0(typescript@5.7.2): + ts-api-utils@1.4.3(typescript@5.7.2): dependencies: typescript: 5.7.2 - ts-declaration-location@1.0.4(typescript@5.7.2): + ts-declaration-location@1.0.5(typescript@5.7.2): dependencies: minimatch: 10.0.1 typescript: 5.7.2 @@ -22416,14 +22592,14 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - ts-node@10.9.1(@types/node@22.10.0)(typescript@5.7.2): + ts-node@10.9.1(@types/node@22.10.1)(typescript@5.7.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 22.10.0 + '@types/node': 22.10.1 acorn: 8.14.0 acorn-walk: 8.3.4 arg: 4.1.3 @@ -22529,6 +22705,8 @@ snapshots: type-fest@4.28.0: {} + type-fest@4.29.1: {} + typed-array-buffer@1.0.2: dependencies: call-bind: 1.0.7 @@ -22539,8 +22717,8 @@ snapshots: dependencies: call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 - has-proto: 1.0.3 + gopd: 1.1.0 + has-proto: 1.1.0 is-typed-array: 1.1.13 typed-array-byte-offset@1.0.3: @@ -22548,8 +22726,8 @@ snapshots: available-typed-arrays: 1.0.7 call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 - has-proto: 1.0.3 + gopd: 1.1.0 + has-proto: 1.1.0 is-typed-array: 1.1.13 reflect.getprototypeof: 1.0.7 @@ -22557,17 +22735,17 @@ snapshots: dependencies: call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 + gopd: 1.1.0 is-typed-array: 1.1.13 possible-typed-array-names: 1.0.0 reflect.getprototypeof: 1.0.7 - typescript-eslint@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2): + typescript-eslint@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/parser': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.3.3))(typescript@5.7.2) - eslint: 9.15.0(jiti@2.3.3) + '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2))(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/parser': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + '@typescript-eslint/utils': 8.16.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2) + eslint: 9.16.0(jiti@2.3.3) optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: @@ -22706,17 +22884,16 @@ snapshots: unpipe@1.0.0: {} - unplugin-ast@0.11.0(rollup@2.79.2)(webpack-sources@3.2.3): + unplugin-ast@0.12.0(rollup@2.79.2): dependencies: '@antfu/utils': 0.7.10 '@babel/generator': 7.26.2 '@rollup/pluginutils': 5.1.3(rollup@2.79.2) - ast-kit: 1.3.1 - magic-string-ast: 0.6.2 - unplugin: 1.15.0(webpack-sources@3.2.3) + ast-kit: 1.3.2 + magic-string-ast: 0.6.3 + unplugin: 2.0.0-beta.1 transitivePeerDependencies: - rollup - - webpack-sources unplugin@1.0.1: dependencies: @@ -22725,12 +22902,10 @@ snapshots: webpack-sources: 3.2.3 webpack-virtual-modules: 0.5.0 - unplugin@1.15.0(webpack-sources@3.2.3): + unplugin@2.0.0-beta.1: dependencies: acorn: 8.14.0 webpack-virtual-modules: 0.6.2 - optionalDependencies: - webpack-sources: 3.2.3 unused-filename@4.0.1: dependencies: @@ -22850,13 +23025,13 @@ snapshots: vite-bundle-analyzer@0.15.2: {} - vite-node@2.1.6(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): + vite-node@2.1.6(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): dependencies: cac: 6.7.14 debug: 4.3.7 es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - '@types/node' - jiti @@ -22871,22 +23046,22 @@ snapshots: - tsx - yaml - vite-plugin-mkcert@1.17.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): + vite-plugin-mkcert@1.17.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): dependencies: '@octokit/rest': 20.1.1 axios: 1.7.7(debug@4.3.7) debug: 4.3.7 picocolors: 1.1.1 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color - vite-plugin-pwa@0.21.0(@vite-pwa/assets-generator@0.2.6)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0): + vite-plugin-pwa@0.21.1(@vite-pwa/assets-generator@0.2.6)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0): dependencies: debug: 4.3.7 pretty-bytes: 6.1.1 tinyglobby: 0.2.10 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) workbox-build: 7.3.0(@types/babel__core@7.20.5) workbox-window: 7.3.0 optionalDependencies: @@ -22894,24 +23069,24 @@ snapshots: transitivePeerDependencies: - supports-color - vite-tsconfig-paths@5.1.3(typescript@5.7.2)(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): + vite-tsconfig-paths@5.1.3(typescript@5.7.2)(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)): dependencies: debug: 4.3.7 globrex: 0.1.2 tsconfck: 3.1.4(typescript@5.7.2) optionalDependencies: - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - supports-color - typescript - vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): + vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): dependencies: esbuild: 0.24.0 postcss: 8.4.49 - rollup: 4.27.4 + rollup: 4.28.0 optionalDependencies: - '@types/node': 22.10.0 + '@types/node': 22.10.1 fsevents: 2.3.3 jiti: 2.3.3 lightningcss: 1.28.2 @@ -22919,10 +23094,10 @@ snapshots: tsx: 4.19.2 yaml: 2.6.1 - vitest@2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.0)(happy-dom@15.11.6)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): + vitest@2.1.6(@edge-runtime/vm@3.2.0)(@types/node@22.10.1)(happy-dom@15.11.7)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1): dependencies: '@vitest/expect': 2.1.6 - '@vitest/mocker': 2.1.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) + '@vitest/mocker': 2.1.6(vite@6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1)) '@vitest/pretty-format': 2.1.6 '@vitest/runner': 2.1.6 '@vitest/snapshot': 2.1.6 @@ -22938,13 +23113,13 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 6.0.1(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) - vite-node: 2.1.6(@types/node@22.10.0)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite: 6.0.2(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) + vite-node: 2.1.6(@types/node@22.10.1)(jiti@2.3.3)(lightningcss@1.28.2)(terser@5.35.0)(tsx@4.19.2)(yaml@2.6.1) why-is-node-running: 2.3.0 optionalDependencies: '@edge-runtime/vm': 3.2.0 - '@types/node': 22.10.0 - happy-dom: 15.11.6 + '@types/node': 22.10.1 + happy-dom: 15.11.7 transitivePeerDependencies: - jiti - less @@ -23021,9 +23196,9 @@ snapshots: which-boxed-primitive@1.0.2: dependencies: is-bigint: 1.0.4 - is-boolean-object: 1.1.2 - is-number-object: 1.0.7 - is-string: 1.0.7 + is-boolean-object: 1.2.0 + is-number-object: 1.1.0 + is-string: 1.1.0 is-symbol: 1.0.4 which-builtin-type@1.2.0: @@ -23035,12 +23210,12 @@ snapshots: is-date-object: 1.0.5 is-finalizationregistry: 1.1.0 is-generator-function: 1.0.10 - is-regex: 1.1.4 + is-regex: 1.2.0 is-weakref: 1.0.2 isarray: '@nolyfill/isarray@1.0.29' which-boxed-primitive: 1.0.2 which-collection: 1.0.2 - which-typed-array: 1.1.15 + which-typed-array: 1.1.16 which-collection@1.0.2: dependencies: @@ -23049,12 +23224,12 @@ snapshots: is-weakmap: 2.0.2 is-weakset: 2.0.3 - which-typed-array@1.1.15: + which-typed-array@1.1.16: dependencies: available-typed-arrays: 1.0.7 call-bind: 1.0.7 for-each: 0.3.3 - gopd: 1.0.1 + gopd: 1.1.0 has-tostringtag: 1.0.2 which@1.3.1: From 51519e2d7a1a7aee81041c88ec978864903d0b2d Mon Sep 17 00:00:00 2001 From: Whitewater Date: Mon, 2 Dec 2024 15:21:25 +0800 Subject: [PATCH 24/80] fix: handle undefined arguments in executeJavaScript call (#1958) * fix: handle undefined arguments in executeJavaScript call * fix: improve error handling in setVoice and getVoices procedures * fix: handle undefined arguments in executeJavaScript call --- apps/main/src/tipc/reader.ts | 32 +++++++++++++++++++------------- packages/shared/src/bridge.ts | 7 ++++++- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/apps/main/src/tipc/reader.ts b/apps/main/src/tipc/reader.ts index 751458f2f..06b04b476 100644 --- a/apps/main/src/tipc/reader.ts +++ b/apps/main/src/tipc/reader.ts @@ -51,28 +51,34 @@ export const readerRoute = { try { const voices = await tts.getVoices() return voices - } catch (error: any) { - if (!window) { + } catch (error) { + console.error("Failed to get voices", error) + if (!window) return + if (error instanceof Error) { + void callWindowExpose(window).toast.error(error.message, { duration: 1000 }) return } - void callWindowExpose(window).toast.error(error.message, { - duration: 1000, - }) + callWindowExpose(window).toast.error("Failed to get voices", { duration: 1000 }) } }), setVoice: t.procedure.input().action(async ({ input, context: { sender } }) => { const window = BrowserWindow.fromWebContents(sender) - if (!window) { - return - } + if (!window) return - await tts.setMetadata(input, OUTPUT_FORMAT.WEBM_24KHZ_16BIT_MONO_OPUS).catch((error) => { - const msg = typeof error === "string" ? error : error.message - return callWindowExpose(window).toast.error(msg || "unknown set voice error", { - duration: 1000, + await tts + .setMetadata(input, OUTPUT_FORMAT.WEBM_24KHZ_16BIT_MONO_OPUS) + .catch((error: unknown) => { + console.error("Failed to set voice", error) + if (error instanceof Error) { + return callWindowExpose(window).toast.error(error.message, { + duration: 1000, + }) + } + return callWindowExpose(window).toast.error("Failed to set voice", { + duration: 1000, + }) }) - }) }), detectCodeStringLanguage: t.procedure diff --git a/packages/shared/src/bridge.ts b/packages/shared/src/bridge.ts index 2b8dd8adb..66968bf40 100644 --- a/packages/shared/src/bridge.ts +++ b/packages/shared/src/bridge.ts @@ -89,7 +89,12 @@ function createProxy(window: BrowserWindow, path: try { return await window.webContents.executeJavaScript( - `(async () => { try { return await globalThis.${PREFIX}?.${methodPath}?.(${args.map((arg) => JSON.stringify(arg)).join(",")}) } catch (err) { console.error('Failed to executeJavaScript: ${methodPath}', err) } })()`, + `globalThis.${PREFIX}?.${methodPath}?.(${args + .map((arg) => { + if (arg === undefined) return "undefined" + return JSON.stringify(arg) + }) + .join(",")})`, ) } catch (err) { console.error(`Failed to executeJavaScript: ${methodPath}`, err) From cff217aeead10622e0982a7668f7d14eab53e1a7 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 15:42:34 +0800 Subject: [PATCH 25/80] fix(style): add missing sticky border Signed-off-by: Innei --- .../modules/entry-column/components/DateItem.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/renderer/src/modules/entry-column/components/DateItem.tsx b/apps/renderer/src/modules/entry-column/components/DateItem.tsx index bf50554cf..ce74f7e21 100644 --- a/apps/renderer/src/modules/entry-column/components/DateItem.tsx +++ b/apps/renderer/src/modules/entry-column/components/DateItem.tsx @@ -44,7 +44,7 @@ export const DateItem = memo(({ date, view, isSticky }: DateItemProps) => { const className = tw`relative flex items-center text-sm lg:text-base gap-1 bg-background px-4 font-bold text-zinc-800 dark:text-neutral-400 h-7` if (view === FeedViewType.SocialMedia) { - return + return } return }) @@ -159,7 +159,15 @@ const DateItemInner: FC = ({
) } -const SocialMediaDateItem = ({ date, className }: { date: string; className?: string }) => { +const SocialMediaDateItem = ({ + date, + className, + isSticky, +}: { + date: string + className?: string + isSticky?: boolean +}) => { const { startOfDay, endOfDay, dateObj } = useParseDate(date) return ( @@ -175,6 +183,7 @@ const SocialMediaDateItem = ({ date, className }: { date: string; className?: st date={dateObj} startTime={startOfDay} endTime={endOfDay} + isSticky={isSticky} /> ) } From 5dc6d9ee227fa714f39957ff6e744e3079a3e57d Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 16:01:47 +0800 Subject: [PATCH 26/80] feat(social): improve image gallery grid Signed-off-by: Innei --- apps/renderer/src/components/ui/media.tsx | 6 +- .../entry-column/Items/social-media-item.tsx | 205 ++++++++++++------ 2 files changed, 146 insertions(+), 65 deletions(-) diff --git a/apps/renderer/src/components/ui/media.tsx b/apps/renderer/src/components/ui/media.tsx index a0b4e5257..2eb685a86 100644 --- a/apps/renderer/src/components/ui/media.tsx +++ b/apps/renderer/src/components/ui/media.tsx @@ -257,7 +257,11 @@ const MediaImpl: FC = ({ ) } else { return ( -
+
{ const entry = useEntry(entryId) || entryPreview - const previewMedia = usePreviewMedia() const asRead = useAsRead(entry) const feed = useFeedById(entry?.feedId) @@ -110,69 +110,7 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl {!!entry.collections && }
- {!!media?.length && ( -
- {media.map((media, i, mediaList) => { - const style: Partial<{ - width: string - height: string - }> = {} - const boundsWidth = jotaiStore.get(socialMediaContentWidthAtom) - if (media.height && media.width) { - // has 1 picture, max width is container width, but max height is less than window height: 2/3 - if (mediaList.length === 1) { - style.width = `${boundsWidth}px` - style.height = `${(boundsWidth * media.height) / media.width}px` - if (Number.parseInt(style.height) > (window.innerHeight * 2) / 3) { - style.height = `${(window.innerHeight * 2) / 3}px` - style.width = `${(Number.parseInt(style.height) * media.width) / media.height}px` - } - } - // has 2 pictures, max width is container half width, and - gap 8px - else if (mediaList.length === 2) { - style.width = `${(boundsWidth - 8) / 2}px` - style.height = `${(((boundsWidth - 8) / 2) * media.height) / media.width}px` - } - // has over 2 pictures, max width is container 1/3 width - else if (mediaList.length > 2) { - style.width = `${boundsWidth / 3}px` - style.height = `${((boundsWidth / 3) * media.height) / media.width}px` - } - } - - const proxySize = { - width: Number.parseInt(style.width || "0") * 2 || 0, - height: Number.parseInt(style.height || "0") * 2 || 0, - } - return ( - { - e.stopPropagation() - previewMedia( - mediaList.map((m) => ({ - url: m.url, - type: m.type, - blurhash: m.blurhash, - fallbackUrl: - m.preview_image_url ?? getImageProxyUrl({ url: m.url, ...proxySize }), - })), - i, - ) - }} - /> - ) - })} -
- )} + {!!media?.length && }
{showAction && ( @@ -278,3 +216,142 @@ export const SocialMediaItemSkeleton = (
) + +const SocialMediaGallery = ({ media }: { media: MediaModel[] }) => { + const previewMedia = usePreviewMedia() + + const isAllMediaSameRatio = useMemo(() => { + let ratio = 0 + for (const m of media) { + if (m.height && m.width) { + const currentRatio = m.height / m.width + if (ratio === 0) { + ratio = currentRatio + } else if (ratio !== currentRatio) { + return false + } + } else { + return false + } + } + return true + }, [media]) + + // all media has same ratio, use horizontal layout + if (isAllMediaSameRatio) { + return ( +
+ {media.map((media, i, mediaList) => { + const style: Partial<{ + width: string + height: string + }> = {} + const boundsWidth = jotaiStore.get(socialMediaContentWidthAtom) + if (media.height && media.width) { + // has 1 picture, max width is container width, but max height is less than window height: 2/3 + if (mediaList.length === 1) { + style.width = `${boundsWidth}px` + style.height = `${(boundsWidth * media.height) / media.width}px` + if (Number.parseInt(style.height) > (window.innerHeight * 2) / 3) { + style.height = `${(window.innerHeight * 2) / 3}px` + style.width = `${(Number.parseInt(style.height) * media.width) / media.height}px` + } + } + // has 2 pictures, max width is container half width, and - gap 8px + else if (mediaList.length === 2) { + style.width = `${(boundsWidth - 8) / 2}px` + style.height = `${(((boundsWidth - 8) / 2) * media.height) / media.width}px` + } + // has over 2 pictures, max width is container 1/3 width + else if (mediaList.length > 2) { + style.width = `${boundsWidth / 3}px` + style.height = `${((boundsWidth / 3) * media.height) / media.width}px` + } + } + + const proxySize = { + width: Number.parseInt(style.width || "0") * 2 || 0, + height: Number.parseInt(style.height || "0") * 2 || 0, + } + return ( + { + e.stopPropagation() + previewMedia( + mediaList.map((m) => ({ + url: m.url, + type: m.type, + blurhash: m.blurhash, + fallbackUrl: + m.preview_image_url ?? getImageProxyUrl({ url: m.url, ...proxySize }), + })), + i, + ) + }} + /> + ) + })} +
+ ) + } + + // all media has different ratio, use grid layout + return ( +
+
= 5 && "grid-cols-3", + )} + > + {media.map((m, i) => { + const proxySize = { + width: 400, + height: 400, + } + + const style = media.length === 3 && i === 2 ? { gridRow: "span 2" } : {} + + return ( + { + e.stopPropagation() + previewMedia( + media.map((m) => ({ + url: m.url, + type: m.type, + blurhash: m.blurhash, + fallbackUrl: + m.preview_image_url ?? getImageProxyUrl({ url: m.url, ...proxySize }), + })), + i, + ) + }} + /> + ) + })} +
+
+ ) +} From 27b3bf4f50badb8fac4b497d18a25002ed3b1981 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 16:17:43 +0800 Subject: [PATCH 27/80] fix: nightly auto updater Signed-off-by: Innei --- apps/main/src/env.ts | 10 +++++++++- apps/main/src/updater/configs.ts | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/main/src/env.ts b/apps/main/src/env.ts index d76b5cf24..62638dde0 100644 --- a/apps/main/src/env.ts +++ b/apps/main/src/env.ts @@ -1,9 +1,17 @@ import os from "node:os" +import { version as appVersion } from "@pkg" + export const mode = process.env.NODE_ENV export const isDev = mode === "development" -export const channel: "development" | "beta" | "alpha" | "stable" = isDev ? "development" : "beta" +export const isNightlyBuild = appVersion.includes("nightly") + +export const channel: "development" | "beta" | "alpha" | "stable" | "nightly" = isDev + ? "development" + : isNightlyBuild + ? "nightly" + : "beta" const { platform } = process export const isMacOS = platform === "darwin" diff --git a/apps/main/src/updater/configs.ts b/apps/main/src/updater/configs.ts index 2d216fa31..10d6f3d1e 100644 --- a/apps/main/src/updater/configs.ts +++ b/apps/main/src/updater/configs.ts @@ -8,7 +8,6 @@ export const appUpdaterConfig = { // Disable renderer hot update will trigger app update when available enableRenderHotUpdate: !isDev && isNightlyBuild, // Disable app update will also disable renderer hot update - // enableAppUpdate: true, enableAppUpdate: !isDev, app: { From e46b30a07fe74e1bacb234962b1542c849d2177d Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 16:49:04 +0800 Subject: [PATCH 28/80] feat: fold the long text content of social media Signed-off-by: Innei --- .../entry-column/Items/social-media-item.tsx | 67 ++++++++++++++++--- .../src/modules/entry-column/index.tsx | 3 +- .../src/modules/entry-column/list.tsx | 3 + configs/tailwind-extend.css | 24 +++++++ 4 files changed, 88 insertions(+), 9 deletions(-) diff --git a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx index 9f16ebf13..67e3246f9 100644 --- a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx @@ -1,7 +1,9 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" -import { ActionButton } from "@follow/components/ui/button/index.js" +import { AutoResizeHeight } from "@follow/components/ui/auto-resize-height/index.js" +import { ActionButton, MotionButtonBase } from "@follow/components/ui/button/index.js" import { Skeleton } from "@follow/components/ui/skeleton/index.jsx" import type { MediaModel } from "@follow/shared/hono" +import { LRUCache } from "@follow/utils/lru-cache" import { cn } from "@follow/utils/utils" import { atom } from "jotai" import { useLayoutEffect, useMemo, useRef, useState } from "react" @@ -50,7 +52,7 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl if (ref.current) { jotaiStore.set(socialMediaContentWidthAtom, ref.current.offsetWidth) } - }, [ref.current]) + }, []) // NOTE: prevent 0 height element, react virtuoso will not stop render any more if (!entry || !feed) return @@ -101,12 +103,14 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl
- + + + {!!entry.collections && }
@@ -355,3 +359,50 @@ const SocialMediaGallery = ({ media }: { media: MediaModel[] }) => {
) } + +const collapsedHeight = 300 +const collapsedItemCache = new LRUCache(100) +const CollapsedSocialMediaItem: Component<{ + entryId: string +}> = ({ children, entryId }) => { + const [isOverflow, setIsOverflow] = useState(false) + const [isShowMore, setIsShowMore] = useState(() => collapsedItemCache.get(entryId) ?? false) + const ref = useRef(null) + useLayoutEffect(() => { + if (ref.current) { + setIsOverflow(ref.current.scrollHeight > collapsedHeight) + } + }, [children]) + + return ( + +
+ {children} +
+ {isOverflow && !isShowMore && ( +
+ { + setIsShowMore(true) + collapsedItemCache.put(entryId, true) + }} + aria-hidden + className="flex items-center justify-center text-xs" + > + + Show more + +
+ )} +
+ ) +} diff --git a/apps/renderer/src/modules/entry-column/index.tsx b/apps/renderer/src/modules/entry-column/index.tsx index 193fc9696..72ac94e57 100644 --- a/apps/renderer/src/modules/entry-column/index.tsx +++ b/apps/renderer/src/modules/entry-column/index.tsx @@ -1,6 +1,6 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" import { Button } from "@follow/components/ui/button/index.js" -import { views } from "@follow/constants" +import { FeedViewType, views } from "@follow/constants" import { useTitle } from "@follow/hooks" import type { FeedModel } from "@follow/models/types" import { isBizId } from "@follow/utils/utils" @@ -187,6 +187,7 @@ function EntryColumnImpl() { ) ) : ( void groupCounts?: number[] + gap?: number Footer?: FC | ReactNode @@ -93,6 +94,7 @@ export const EntryList: FC = memo( Footer, listRef, onRangeChange, + gap, }) => { // Prevent scroll list move when press up/down key, the up/down key should be taken over by the shortcut key we defined. const handleKeyDown: React.KeyboardEventHandler = useCallback((e) => { @@ -121,6 +123,7 @@ export const EntryList: FC = memo( count: entriesIds.length + 1, estimateSize: () => 112, overscan: 5, + gap, getScrollElement: () => scrollRef, initialOffset: offsetCache.get(feedId) ?? 0, initialMeasurementsCache: measurementsCache.get(feedId) ?? [], diff --git a/configs/tailwind-extend.css b/configs/tailwind-extend.css index 8e60cf943..08a9e9b6d 100644 --- a/configs/tailwind-extend.css +++ b/configs/tailwind-extend.css @@ -395,3 +395,27 @@ animation: rocketAnimation 1s infinite ease-out; } } + +@layer components { + .mask-b { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 20px), rgba(255, 255, 255, 0) 100%); + } + + .mask-b-lg { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 50px), rgba(255, 255, 255, 0) 100%); + } + + .mask-b-xl { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 70px), rgba(255, 255, 255, 0) 100%); + } + + .mask-horizontal { + mask-image: linear-gradient( + 90deg, + rgba(255, 255, 255, 0) 0%, + rgba(255, 255, 255, 1) 14%, + rgba(255, 255, 255, 1) 86%, + rgba(255, 255, 255, 0) 100% + ); + } +} From 0ff10c6e32e313c424a909b0fe20088a68fc53d0 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 18:42:11 +0800 Subject: [PATCH 29/80] refactor(tab): tab indicator transition Signed-off-by: Innei --- apps/renderer/src/lib/parse-html.ts | 8 + .../entry-column/layouts/TimelineTabs.tsx | 8 +- .../modules/entry-content/index.mobile.tsx | 2 +- .../power/transaction-section/index.tsx | 2 +- packages/components/assets/tailwind.css | 4 + packages/components/src/ui/tabs/index.tsx | 144 ++++++++++-------- 6 files changed, 101 insertions(+), 67 deletions(-) diff --git a/apps/renderer/src/lib/parse-html.ts b/apps/renderer/src/lib/parse-html.ts index 477c47952..8c1cb3204 100644 --- a/apps/renderer/src/lib/parse-html.ts +++ b/apps/renderer/src/lib/parse-html.ts @@ -241,6 +241,14 @@ export const parseHtml = ( language: language.toLowerCase(), }) }, + figure: ({ node, ...props }) => + createElement( + "figure", + { + className: "max-w-full", + }, + props.children, + ), table: ({ node, ...props }) => createElement( "div", diff --git a/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx b/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx index 8de4a8bdd..642a3a935 100644 --- a/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/TimelineTabs.tsx @@ -46,6 +46,7 @@ export const TimelineTabs = () => { return ( { @@ -59,11 +60,11 @@ export const TimelineTabs = () => { }} > - + Yours {listsData.map((s) => ( - + { ))} {categoriesData.map((s) => ( { @@ -90,7 +90,7 @@ export const TimelineTabs = () => { ))} {inboxData.map((s) => ( - +
{!hideRecentReader && ( diff --git a/apps/renderer/src/modules/power/transaction-section/index.tsx b/apps/renderer/src/modules/power/transaction-section/index.tsx index a5ec9005d..c8c7f88c7 100644 --- a/apps/renderer/src/modules/power/transaction-section/index.tsx +++ b/apps/renderer/src/modules/power/transaction-section/index.tsx @@ -39,7 +39,7 @@ export const TransactionsSection: Component = ({ className }) => { })}

setType(val)}> - + {tabs.map((tab) => ( {t(`wallet.transactions.types.${tab}`)} diff --git a/packages/components/assets/tailwind.css b/packages/components/assets/tailwind.css index 7947a3307..2fc3fd0ad 100644 --- a/packages/components/assets/tailwind.css +++ b/packages/components/assets/tailwind.css @@ -75,3 +75,7 @@ @apply print:!hidden; } } + +i { + @apply select-none; +} diff --git a/packages/components/src/ui/tabs/index.tsx b/packages/components/src/ui/tabs/index.tsx index 98b7aaf7c..cc43e92b4 100644 --- a/packages/components/src/ui/tabs/index.tsx +++ b/packages/components/src/ui/tabs/index.tsx @@ -1,52 +1,83 @@ import { cn } from "@follow/utils/utils" +import type { TabsProps } from "@radix-ui/react-tabs" import * as TabsPrimitive from "@radix-ui/react-tabs" -import type { VariantProps } from "class-variance-authority" import { cva } from "class-variance-authority" -import { m } from "framer-motion" import * as React from "react" const TabsIdContext = React.createContext(null) +const SetTabIndicatorContext = React.createContext< + React.Dispatch< + React.SetStateAction<{ + w: number + x: number + }> + > +>(() => {}) -const Tabs: typeof TabsPrimitive.Root = React.forwardRef((props, ref) => { - const { children, ...rest } = props +const TabVariantContext = React.createContext<"default" | "rounded" | undefined>(undefined) + +const TabIndicatorContext = React.createContext<{ + w: number + x: number +} | null>(null) + +const Tabs: React.ForwardRefExoticComponent< + TabsProps & + React.RefAttributes & { + variant?: "default" | "rounded" + } +> = React.forwardRef((props, ref) => { + const { children, variant, ...rest } = props + const [indicator, setIndicator] = React.useState({ + w: 0, + x: 0, + }) const id = React.useId() return ( - - {children} - + + + + {children} + + + ) }) -const tabsListVariants = cva("", { - variants: { - variant: { - default: "border-b", - rounded: "rounded-md bg-muted p-1", - }, - }, - defaultVariants: { - variant: "default", - }, -}) - -export interface TabsListProps - extends React.ComponentPropsWithoutRef, - VariantProps {} +export interface TabsListProps extends React.ComponentPropsWithoutRef {} const TabsList = React.forwardRef, TabsListProps>( - ({ className, variant, ...props }, ref) => ( - - ), + ({ className, ...props }, ref) => { + const indicator = React.useContext(TabIndicatorContext) + const variant = React.useContext(TabVariantContext) + + return ( + + {props.children} + + + + ) + }, ) TabsList.displayName = TabsPrimitive.List.displayName @@ -64,27 +95,32 @@ const tabsTriggerVariants = cva("", { }) export interface TabsTriggerProps - extends React.ComponentPropsWithoutRef, - VariantProps {} + extends React.ComponentPropsWithoutRef {} const TabsTrigger = React.forwardRef( - ({ className, variant, children, ...props }, ref) => { + ({ className, children, ...props }, ref) => { + const variant = React.useContext(TabVariantContext) const triggerRef = React.useRef(null) React.useImperativeHandle(ref, () => triggerRef.current!, []) - const [isSelect, setIsSelect] = React.useState(false) - const id = React.useContext(TabsIdContext) - const layoutId = `tab-selected-underline-${id}` + const setIndicator = React.useContext(SetTabIndicatorContext) + React.useLayoutEffect(() => { if (!triggerRef.current) return - const trigger = triggerRef.current as HTMLElement - - const isSelect = trigger.dataset.state === "active" - setIsSelect(isSelect) - const ob = new MutationObserver(() => { + const handler = () => { + const trigger = triggerRef.current as HTMLElement const isSelect = trigger.dataset.state === "active" - setIsSelect(isSelect) - }) + if (isSelect) { + setIndicator({ + w: trigger.clientWidth, + x: trigger.offsetLeft, + }) + } + } + + handler() + const trigger = triggerRef.current as HTMLElement + const ob = new MutationObserver(handler) ob.observe(trigger, { attributes: true, attributeFilter: ["data-state"], @@ -93,7 +129,7 @@ const TabsTrigger = React.forwardRef( return () => { ob.disconnect() } - }, []) + }, [setIndicator]) return ( ( {...props} > {children} - {isSelect && ( - - )} ) }, From 685ce3cc4165c35918e92b06951d2479ce5adb37 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 18:49:05 +0800 Subject: [PATCH 30/80] fix: entry title truncate Signed-off-by: Innei --- .../src/modules/app-layout/subview/index.mobile.tsx | 6 ++++-- apps/renderer/src/modules/discover/recommendations.tsx | 2 +- .../renderer/src/modules/entry-content/header.desktop.tsx | 6 ++++-- apps/renderer/src/modules/entry-content/header.mobile.tsx | 8 +++++--- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/apps/renderer/src/modules/app-layout/subview/index.mobile.tsx b/apps/renderer/src/modules/app-layout/subview/index.mobile.tsx index b1d112229..36fe36aa6 100644 --- a/apps/renderer/src/modules/app-layout/subview/index.mobile.tsx +++ b/apps/renderer/src/modules/app-layout/subview/index.mobile.tsx @@ -12,7 +12,9 @@ export const SubviewLayout = () => { const scrollYProgress = useScroll() const opacity = useTransform(scrollYProgress.scrollY, [0, 120], [0, 1], { ease: easeOut }) - const borderOpacity = useTransform(scrollYProgress.scrollY, [50, 120], [0, 1], { ease: easeOut }) + const borderOpacity = useTransform(scrollYProgress.scrollY, [50, 120], [0, 0.5], { + ease: easeOut, + }) return ( <> @@ -22,7 +24,7 @@ export const SubviewLayout = () => { className={cn( "sticky inset-x-0 top-0 z-10 p-4", "grid grid-cols-[1fr_auto_1fr] items-center gap-4", - "bg-zinc-50/80 backdrop-blur-xl dark:bg-neutral-900/90", + "bg-theme-background", "border-b", )} style={{ diff --git a/apps/renderer/src/modules/discover/recommendations.tsx b/apps/renderer/src/modules/discover/recommendations.tsx index 049cdc265..7b118e5fc 100644 --- a/apps/renderer/src/modules/discover/recommendations.tsx +++ b/apps/renderer/src/modules/discover/recommendations.tsx @@ -152,7 +152,7 @@ export function Recommendations({
diff --git a/apps/renderer/src/modules/entry-content/header.desktop.tsx b/apps/renderer/src/modules/entry-content/header.desktop.tsx index 06b1ecfc7..188091201 100644 --- a/apps/renderer/src/modules/entry-content/header.desktop.tsx +++ b/apps/renderer/src/modules/entry-content/header.desktop.tsx @@ -117,9 +117,11 @@ function EntryHeaderImpl({ view, entryId, className, compact }: EntryHeaderProps exit={{ opacity: 0.01, y: 30 }} className="flex min-w-0 shrink items-end gap-2 truncate text-sm leading-tight text-theme-foreground" > - {entryTitleMeta.title} + + {entryTitleMeta.title} + - + {entryTitleMeta.description} diff --git a/apps/renderer/src/modules/entry-content/header.mobile.tsx b/apps/renderer/src/modules/entry-content/header.mobile.tsx index bb8e9d086..f39949736 100644 --- a/apps/renderer/src/modules/entry-content/header.mobile.tsx +++ b/apps/renderer/src/modules/entry-content/header.mobile.tsx @@ -62,10 +62,12 @@ function EntryHeaderImpl({ view, entryId, className }: EntryHeaderProps) { className="pointer-events-auto flex w-full min-w-0 shrink gap-2 truncate px-1.5 pl-10 text-sm leading-tight text-theme-foreground duration-200" >
-
- {entryTitleMeta.title} +
+ + {entryTitleMeta.title} + - + {entryTitleMeta.description}
From 930be73c7e543d695bde22b677d37f42cd5d7b94 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 18:56:40 +0800 Subject: [PATCH 31/80] fix: hide debug in mobile Signed-off-by: Innei --- .../entry-column/Items/social-media-item.tsx | 15 +++++++-------- apps/renderer/src/styles/base.css | 4 ++++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx index 67e3246f9..3d94a96e4 100644 --- a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx @@ -40,13 +40,11 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl const isMobile = useMobile() const handleMouseEnter = useMemo(() => { - if (isMobile) return return () => setShowAction(true) - }, [isMobile]) + }, []) const handleMouseLeave = useMemo(() => { - if (isMobile) return return () => setShowAction(false) - }, [isMobile]) + }, []) useLayoutEffect(() => { if (ref.current) { @@ -67,10 +65,10 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} className={cn( - "relative flex px-2 py-4 lg:px-8", + "relative flex px-5 py-4 lg:px-8", "group", !asRead && - "before:absolute before:left-0 before:top-10 before:block before:size-2 before:rounded-full before:bg-accent md:before:-left-2 lg:before:left-2", + "before:absolute before:left-1 before:top-8 before:block before:size-2 before:rounded-full before:bg-accent md:before:-left-2 lg:before:left-2", )} > @@ -117,7 +115,7 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, entryPreview, transl {!!media?.length && }
- {showAction && ( + {showAction && !isMobile && (
@@ -391,7 +389,8 @@ const CollapsedSocialMediaItem: Component<{
{ + onClick={(e) => { + e.stopPropagation() setIsShowMore(true) collapsedItemCache.put(entryId, true) }} diff --git a/apps/renderer/src/styles/base.css b/apps/renderer/src/styles/base.css index 690386ac5..7dba22e81 100644 --- a/apps/renderer/src/styles/base.css +++ b/apps/renderer/src/styles/base.css @@ -51,3 +51,7 @@ button { ::selection { @apply bg-accent/80 text-white; } + +#react-scan-toolbar { + @apply !hidden lg:!block; +} From 3c7aeacc90cbdcbe6bf4b06572d74f269f2c8854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=86=E4=B8=BA=E5=90=9B=E6=95=85?= Date: Mon, 2 Dec 2024 19:16:10 +0800 Subject: [PATCH 32/80] fix: When pasting the entire URL, auto adjust the URL prefix (#1762) * fix: UX Optimization: When pasting the entire URL, it supposed to auto remove the extra protocol head from clipboard. Fixes #1761 * refractor: remove `useEffect` listening for keyword change. Use `onChange` handle instead. --- apps/renderer/src/modules/discover/form.tsx | 44 ++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/apps/renderer/src/modules/discover/form.tsx b/apps/renderer/src/modules/discover/form.tsx index 49032eb8c..efa681ef0 100644 --- a/apps/renderer/src/modules/discover/form.tsx +++ b/apps/renderer/src/modules/discover/form.tsx @@ -19,8 +19,8 @@ import { zodResolver } from "@hookform/resolvers/zod" import { useMutation } from "@tanstack/react-query" import { produce } from "immer" import { atom, useAtomValue, useStore } from "jotai" -import type { FC } from "react" -import { memo, useCallback, useEffect, useState } from "react" +import type { ChangeEvent, FC } from "react" +import { memo, useCallback, useState } from "react" import { useForm } from "react-hook-form" import { useTranslation } from "react-i18next" import { z } from "zod" @@ -119,26 +119,26 @@ export function DiscoverForm({ type = "search" }: { type?: string }) { } } - const keyword = form.watch("keyword") - useEffect(() => { - const trimmedKeyword = keyword.trimStart() - if (!prefix) { + const handleKeywordChange = useCallback( + (event: ChangeEvent) => { + const trimmedKeyword = event.target.value.trimStart() + if (!prefix) { + form.setValue("keyword", trimmedKeyword) + return + } + const isValidPrefix = prefix.find((p) => trimmedKeyword.startsWith(p)) + if (!isValidPrefix) { + form.setValue("keyword", prefix[0]) + return + } + if (trimmedKeyword.startsWith(`${isValidPrefix}${isValidPrefix}`)) { + form.setValue("keyword", trimmedKeyword.slice(isValidPrefix.length)) + return + } form.setValue("keyword", trimmedKeyword) - return - } - const isValidPrefix = prefix.find((p) => trimmedKeyword.startsWith(p)) - if (!isValidPrefix) { - form.setValue("keyword", prefix[0]) - - return - } - - if (trimmedKeyword.startsWith(`${isValidPrefix}${isValidPrefix}`)) { - form.setValue("keyword", trimmedKeyword.slice(isValidPrefix.length)) - } - - form.setValue("keyword", trimmedKeyword) - }, [form, keyword, prefix]) + }, + [form, prefix], + ) const handleSuccess = useCallback( (item: DiscoverSearchData[number]) => { @@ -210,7 +210,7 @@ export function DiscoverForm({ type = "search" }: { type?: string }) { {t(info[type]?.label)} - + From 64c7df1dda3e4a30a6152b24bcea0dd135e12ca9 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 19:51:57 +0800 Subject: [PATCH 33/80] fix: ai daily report layout in mobile Signed-off-by: Innei --- .../src/modules/ai/ai-daily/FeedDailyModalContent.tsx | 2 +- apps/renderer/src/modules/ai/ai-daily/daily.tsx | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx b/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx index b509d1dfd..be6ceab0b 100644 --- a/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx +++ b/apps/renderer/src/modules/ai/ai-daily/FeedDailyModalContent.tsx @@ -21,7 +21,7 @@ export const FeedDailyModalContent = () => { ))} -
+
{tabs.map((tab: any) => ( = ({ view, }) => { const content = useQueryData({ endDate, startDate, view }) - - const RelatedEntryLink = useState(() => createRelatedEntryLink("toast"))[0] const { t } = useTranslation() + const RelatedEntryLink = useState(() => createRelatedEntryLink("toast"))[0] + if (!content.data && !content.isLoading) return ( -
+

{t("ai_daily.no_found")}

) + return (
{content.isLoading ? ( ) : content.data ? ( {content.data} From a3602350236cf642825b24caad5801f37e7d093d Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 20:01:39 +0800 Subject: [PATCH 34/80] fix: claim modal style in mobile Signed-off-by: Innei --- apps/renderer/src/modules/claim/feed-claim-modal.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/renderer/src/modules/claim/feed-claim-modal.tsx b/apps/renderer/src/modules/claim/feed-claim-modal.tsx index eccb1fe3f..36fdb7bfc 100644 --- a/apps/renderer/src/modules/claim/feed-claim-modal.tsx +++ b/apps/renderer/src/modules/claim/feed-claim-modal.tsx @@ -42,7 +42,7 @@ export const FeedClaimModalContent: FC<{ if (isLoading) { return ( -
+
) @@ -78,10 +78,8 @@ export const FeedClaimModalContent: FC<{ {claimMessage?.data.content || ""} -

- {t("feed_claim_modal.description_current")} - {feed.description} -

+

{t("feed_claim_modal.description_current")}

+

{feed.description}

{""} }} From a44d59820ba7e62b5db9de478f813cd9f287f670 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 2 Dec 2024 21:31:34 +0800 Subject: [PATCH 35/80] fix: scroll out to mark read in mobile Signed-off-by: Innei --- .../src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx | 1 + apps/renderer/src/modules/entry-column/wrapper.mobile.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx index 6530371af..47be0cac0 100644 --- a/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx +++ b/apps/renderer/src/modules/entry-column/hooks/useEntryMarkReadHandler.tsx @@ -21,6 +21,7 @@ export const useEntryMarkReadHandler = (entriesIds: string[]) => { const idSlice = entriesIds?.slice(startIndex, endIndex) indexKeyIsCalled.add(`${startIndex}-${endIndex}`) + if (!idSlice) return batchMarkRead(idSlice) diff --git a/apps/renderer/src/modules/entry-column/wrapper.mobile.tsx b/apps/renderer/src/modules/entry-column/wrapper.mobile.tsx index 83daf0fc3..737526773 100644 --- a/apps/renderer/src/modules/entry-column/wrapper.mobile.tsx +++ b/apps/renderer/src/modules/entry-column/wrapper.mobile.tsx @@ -13,7 +13,7 @@ import { styles } from "./wrapper.shared" const noop = async () => {} export const EntryColumnWrapper = forwardRef( - ({ children, onPullToRefresh }, ref) => { + ({ children, onPullToRefresh, onScroll }, ref) => { const view = useRouteParamsSelector((state) => state.view) const [scrollElement, setScrollElement] = useState(null) @@ -26,6 +26,7 @@ export const EntryColumnWrapper = forwardRef {children}
From 1ce3f5b8ba95b16ad1b12e702027cede3590491a Mon Sep 17 00:00:00 2001 From: Otstar Lin Date: Mon, 2 Dec 2024 22:41:27 +0800 Subject: [PATCH 36/80] feat(integration): Add readeck integration (#1972) --- .../src/atoms/settings/integration.ts | 5 ++ .../src/hooks/biz/useEntryActions.tsx | 4 ++ .../src/modules/command/commands/id.ts | 1 + .../modules/command/commands/integration.tsx | 70 +++++++++++++++++++ .../src/modules/command/commands/types.ts | 6 ++ .../src/modules/settings/tabs/integration.tsx | 26 ++++++- locales/app/en.json | 5 +- locales/app/ja.json | 5 +- locales/app/zh-CN.json | 5 +- locales/app/zh-HK.json | 5 +- locales/app/zh-TW.json | 5 +- locales/settings/en.json | 7 ++ locales/settings/ja.json | 7 ++ locales/settings/zh-CN.json | 7 ++ locales/settings/zh-HK.json | 7 ++ locales/settings/zh-TW.json | 7 ++ .../ui/platform-icon/collections/readeck.tsx | 50 +++++++++++++ .../components/src/ui/platform-icon/icons.ts | 1 + packages/shared/src/interface/settings.ts | 5 ++ 19 files changed, 222 insertions(+), 6 deletions(-) create mode 100644 packages/components/src/ui/platform-icon/collections/readeck.tsx diff --git a/apps/renderer/src/atoms/settings/integration.ts b/apps/renderer/src/atoms/settings/integration.ts index 0f7b725ee..f8703e3cb 100644 --- a/apps/renderer/src/atoms/settings/integration.ts +++ b/apps/renderer/src/atoms/settings/integration.ts @@ -23,6 +23,11 @@ export const createDefaultSettings = (): IntegrationSettings => ({ outlineEndpoint: "", outlineToken: "", outlineCollection: "", + + // readeck + enableReadeck: false, + readeckEndpoint: "", + readeckToken: "", }) export const { diff --git a/apps/renderer/src/hooks/biz/useEntryActions.tsx b/apps/renderer/src/hooks/biz/useEntryActions.tsx index aedf070d3..64b095f48 100644 --- a/apps/renderer/src/hooks/biz/useEntryActions.tsx +++ b/apps/renderer/src/hooks/biz/useEntryActions.tsx @@ -112,6 +112,10 @@ export const useEntryActions = ({ entryId, view }: { entryId: string; view?: Fee id: COMMAND_ID.integration.saveToOutline, onClick: runCmdFn(COMMAND_ID.integration.saveToOutline, [{ entryId }]), }, + { + id: COMMAND_ID.integration.saveToReadeck, + onClick: runCmdFn(COMMAND_ID.integration.saveToReadeck, [{ entryId }]), + }, { id: COMMAND_ID.entry.tip, onClick: runCmdFn(COMMAND_ID.entry.tip, [{ entryId, feedId: feed?.id }]), diff --git a/apps/renderer/src/modules/command/commands/id.ts b/apps/renderer/src/modules/command/commands/id.ts index 73a1840ff..fa461fed3 100644 --- a/apps/renderer/src/modules/command/commands/id.ts +++ b/apps/renderer/src/modules/command/commands/id.ts @@ -21,6 +21,7 @@ export const COMMAND_ID = { saveToInstapaper: "integration:save-to-instapaper", saveToObsidian: "integration:save-to-obsidian", saveToOutline: "integration:save-to-outline", + saveToReadeck: "integration:save-to-readeck", }, list: { edit: "list:edit", diff --git a/apps/renderer/src/modules/command/commands/integration.tsx b/apps/renderer/src/modules/command/commands/integration.tsx index 1b91e5c13..a42806185 100644 --- a/apps/renderer/src/modules/command/commands/integration.tsx +++ b/apps/renderer/src/modules/command/commands/integration.tsx @@ -3,6 +3,7 @@ import { SimpleIconsInstapaper, SimpleIconsObsidian, SimpleIconsOutline, + SimpleIconsReadeck, SimpleIconsReadwise, } from "@follow/components/ui/platform-icon/icons.js" import { IN_ELECTRON } from "@follow/shared/constants" @@ -30,6 +31,7 @@ export const useRegisterIntegrationCommands = () => { useRegisterInstapaperCommands() useRegisterObsidianCommands() useRegisterOutlineCommands() + useRegisterReadeckCommands() } const useRegisterEagleCommands = () => { @@ -380,3 +382,71 @@ const useRegisterOutlineCommands = () => { }, ) } + +const useRegisterReadeckCommands = () => { + const { t } = useTranslation() + + const enableReadeck = useIntegrationSettingKey("enableReadeck") + const readeckEndpoint = useIntegrationSettingKey("readeckEndpoint") + const readeckToken = useIntegrationSettingKey("readeckToken") + const readeckAvailable = enableReadeck && !!readeckEndpoint && !!readeckToken + + useRegisterCommandEffect( + !readeckAvailable + ? [] + : defineFollowCommand({ + id: COMMAND_ID.integration.saveToReadeck, + label: t("entry_actions.save_to_readeck"), + icon: , + run: async ({ entryId }) => { + const entry = useEntryStore.getState().flatMapEntries[entryId] + if (!entry) { + toast.error("Failed to save to Readeck: entry is not available", { duration: 3000 }) + return + } + try { + window.analytics?.capture("integration", { + type: "readeck", + event: "save", + }) + const data = new FormData() + if (entry.entries.url) { + data.set("url", entry.entries.url) + } + if (entry.entries.title) { + data.set("title", entry.entries.title) + } + const response = await ofetch.raw( + `${readeckEndpoint.replace(/\/$/, "")}/api/bookmarks`, + { + method: "POST", + body: data, + headers: { + Authorization: `Bearer ${readeckToken}`, + }, + }, + ) + + toast.success( + <> + {t("entry_actions.saved_to_readeck")},{" "} + + view + + , + { + duration: 3000, + }, + ) + } catch { + toast.error(t("entry_actions.failed_to_save_to_readeck"), { + duration: 3000, + }) + } + }, + }), + { + deps: [readeckAvailable], + }, + ) +} diff --git a/apps/renderer/src/modules/command/commands/types.ts b/apps/renderer/src/modules/command/commands/types.ts index 04841106f..26439c1ce 100644 --- a/apps/renderer/src/modules/command/commands/types.ts +++ b/apps/renderer/src/modules/command/commands/types.ts @@ -116,11 +116,17 @@ export type SaveToOutlineCommand = Command<{ fn: (payload: { entryId: string }) => void }> +export type SaveToReadeckCommand = Command<{ + id: typeof COMMAND_ID.integration.saveToReadeck + fn: (payload: { entryId: string }) => void +}> + export type IntegrationCommand = | SaveToEagleCommand | SaveToReadwiseCommand | SaveToInstapaperCommand | SaveToObsidianCommand | SaveToOutlineCommand + | SaveToReadeckCommand export type BasicCommand = EntryCommand | IntegrationCommand diff --git a/apps/renderer/src/modules/settings/tabs/integration.tsx b/apps/renderer/src/modules/settings/tabs/integration.tsx index 942d59ef1..d4ae60921 100644 --- a/apps/renderer/src/modules/settings/tabs/integration.tsx +++ b/apps/renderer/src/modules/settings/tabs/integration.tsx @@ -4,6 +4,7 @@ import { SimpleIconsInstapaper, SimpleIconsObsidian, SimpleIconsOutline, + SimpleIconsReadeck, SimpleIconsReadwise, } from "@follow/components/ui/platform-icon/icons.js" import { useEffect } from "react" @@ -149,7 +150,30 @@ export const SettingIntegration = () => { vertical: true, description: t("integration.outline.collection.description"), }), - + { + type: "title", + value: ( + + + {t("integration.readeck.title")} + + ), + }, + defineSettingItem("enableReadeck", { + label: t("integration.readeck.enable.label"), + description: t("integration.readeck.enable.description"), + }), + defineSettingItem("readeckEndpoint", { + label: t("integration.readeck.endpoint.label"), + vertical: true, + description: t("integration.readeck.endpoint.description"), + }), + defineSettingItem("readeckToken", { + label: t("integration.readeck.token.label"), + vertical: true, + type: "password", + description: t("integration.readeck.token.description"), + }), BottomTip, ]} /> diff --git a/locales/app/en.json b/locales/app/en.json index fcc91ae8e..2c962bf8d 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -112,6 +112,7 @@ "entry_actions.failed_to_save_to_instapaper": "Failed to save to Instapaper.", "entry_actions.failed_to_save_to_obsidian": "Failed to save to Obsidian", "entry_actions.failed_to_save_to_outline": "Failed to save to Outline.", + "entry_actions.failed_to_save_to_readeck": "Failed to save to Readeck.", "entry_actions.failed_to_save_to_readwise": "Failed to save to Readwise.", "entry_actions.mark_as_read": "Mark as Read", "entry_actions.mark_as_unread": "Mark as Unread", @@ -121,11 +122,13 @@ "entry_actions.save_to_instapaper": "Save To Instapaper", "entry_actions.save_to_obsidian": "Save to Obsidian", "entry_actions.save_to_outline": "Save To Outline", + "entry_actions.save_to_readeck": "Save To Readeck", "entry_actions.save_to_readwise": "Save To Readwise", "entry_actions.saved_to_eagle": "Saved To Eagle.", "entry_actions.saved_to_instapaper": "Saved To Instapaper.", "entry_actions.saved_to_obsidian": "Saved to Obsidian", "entry_actions.saved_to_outline": "Saved To Outline.", + "entry_actions.saved_to_readeck": "Saved To Readeck.", "entry_actions.saved_to_readwise": "Saved To Readwise.", "entry_actions.share": "Share", "entry_actions.star": "Star", @@ -244,7 +247,7 @@ "new_user_guide.step.behavior.unread_question.option2": "Balanced: Automatically marked as read when hovered over or scrolled out of view.", "new_user_guide.step.behavior.unread_question.option3": "Conservative: Marked as read only when clicked.", "new_user_guide.step.features.actions.description": "Action rules allow you to perform different actions for different feeds.\n- Using AI to summarize or translate.\n- Configure how to read entries.\n- Enable notifications for new entries or silence them.\n- Rewrite or block specific entries.\n- Send new entries to a webhook address.", - "new_user_guide.step.features.integration.description": "Integrations allow you to save entries to other services. Currently supported services are:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "Integrations allow you to save entries to other services. Currently supported services are:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "Setup your profile", "new_user_guide.step.migrate.title": "Migrate from OPML file", "new_user_guide.step.migrate.wallet": "Check your wallet", diff --git a/locales/app/ja.json b/locales/app/ja.json index ae6047769..4ebe0b645 100644 --- a/locales/app/ja.json +++ b/locales/app/ja.json @@ -112,6 +112,7 @@ "entry_actions.failed_to_save_to_instapaper": "Instapaper への保存に失敗しました。", "entry_actions.failed_to_save_to_obsidian": "Obsidian への保存に失敗しました。", "entry_actions.failed_to_save_to_outline": "Outline への保存に失敗しました。", + "entry_actions.failed_to_save_to_readeck": "Readeck への保存に失敗しました。", "entry_actions.failed_to_save_to_readwise": "Readwise への保存に失敗しました。", "entry_actions.mark_as_read": "既読にする", "entry_actions.mark_as_unread": "未読にする", @@ -121,11 +122,13 @@ "entry_actions.save_to_instapaper": "Instapaper に保存", "entry_actions.save_to_obsidian": "Obsidian に保存", "entry_actions.save_to_outline": "Outline に保存", + "entry_actions.save_to_readeck": "Readeck に保存", "entry_actions.save_to_readwise": "Readwise に保存", "entry_actions.saved_to_eagle": "Eagle に保存されました。", "entry_actions.saved_to_instapaper": "Instapaper に保存されました。", "entry_actions.saved_to_obsidian": "Obsidian に保存されました。", "entry_actions.saved_to_outline": "Outline に保存されました。", + "entry_actions.saved_to_readeck": "Readeck に保存されました。", "entry_actions.saved_to_readwise": "Readwise に保存されました。", "entry_actions.share": "共有", "entry_actions.star": "スター", @@ -241,7 +244,7 @@ "new_user_guide.step.behavior.unread_question.option2": "バランス: ホバーしたりスクロールが終わると自動で既読にします。", "new_user_guide.step.behavior.unread_question.option3": "コンサバ: クリックしたときのみ既読にします。", "new_user_guide.step.features.actions.description": "アクションルールはフィードごとに違ったアクションを実行できます。\n - AI を使った要約や翻訳 \n - エントリーの読み方の設定 \n - 新着エントリーの通知の有効/無効 \n - 特定のエントリーの書き換えやブロック \n - 新着エントリーの Webhook アドレスへの送信など", - "new_user_guide.step.features.integration.description": "統合により、他のサービスにエントリーを保存することができます。現在対応しているサービスは以下のとおりです:\n- Eagle \n- Readwise \n- Instapaper \n- Obsidian \n- Outline", + "new_user_guide.step.features.integration.description": "統合により、他のサービスにエントリーを保存することができます。現在対応しているサービスは以下のとおりです:\n- Eagle \n- Readwise \n- Instapaper \n- Obsidian \n- Outline \n- Readeck", "new_user_guide.step.migrate.profile": "プロファイルをセットアップ", "new_user_guide.step.migrate.title": "OPML ファイルを構成する", "new_user_guide.step.migrate.wallet": "ウォレットをチェック", diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json index 2b1132925..59af81a88 100644 --- a/locales/app/zh-CN.json +++ b/locales/app/zh-CN.json @@ -112,6 +112,7 @@ "entry_actions.failed_to_save_to_instapaper": "保存到 Instapaper 失败。", "entry_actions.failed_to_save_to_obsidian": "保存到 Obsidian 失败。", "entry_actions.failed_to_save_to_outline": "保存到 Outline 失败。", + "entry_actions.failed_to_save_to_readeck": "保存到 Readeck 失败。", "entry_actions.failed_to_save_to_readwise": "保存到 Readwise 失败。", "entry_actions.mark_as_read": "标记为已读", "entry_actions.mark_as_unread": "标记为未读", @@ -121,11 +122,13 @@ "entry_actions.save_to_instapaper": "保存到 Instapaper", "entry_actions.save_to_obsidian": "保存到 Obsidian", "entry_actions.save_to_outline": "保存到 Outline", + "entry_actions.save_to_readeck": "保存到 Readeck", "entry_actions.save_to_readwise": "保存到 Readwise", "entry_actions.saved_to_eagle": "已保存到 Eagle。", "entry_actions.saved_to_instapaper": "已保存到 Instapaper。", "entry_actions.saved_to_obsidian": "已保存到 Obsidian。", "entry_actions.saved_to_outline": "已保存到 Outline。", + "entry_actions.saved_to_readeck": "已保存到 Readeck。", "entry_actions.saved_to_readwise": "已保存到 Readwise。", "entry_actions.share": "分享", "entry_actions.star": "收藏", @@ -242,7 +245,7 @@ "new_user_guide.step.behavior.unread_question.option2": "平衡:悬停或滚出视野时自动标记为已读。", "new_user_guide.step.behavior.unread_question.option3": "被动:仅在点击时标记为已读。", "new_user_guide.step.features.actions.description": "自动化规则允许你对不同的订阅执行不同的操作。\n- 使用 AI 进行摘要或翻译\n- 配置阅读条目的方式\n- 启用新条目的通知或静音\n- 重写或屏蔽特定条目\n- 将新条目发送到 webhook 地址", - "new_user_guide.step.features.integration.description": "集成允许你将条目保存到其他服务。目前支持的服务有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "集成允许你将条目保存到其他服务。目前支持的服务有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "设置你的个人资料", "new_user_guide.step.migrate.title": "从 OPML 文件导入", "new_user_guide.step.migrate.wallet": "检查你的钱包", diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index aa5d4f7e5..2a4a533c3 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -112,6 +112,7 @@ "entry_actions.failed_to_save_to_instapaper": "無法儲存至 Instapaper", "entry_actions.failed_to_save_to_obsidian": "無法儲存至 Obsidian ", "entry_actions.failed_to_save_to_outline": "無法儲存至 Outline", + "entry_actions.failed_to_save_to_readeck": "無法儲存至 Readeck", "entry_actions.failed_to_save_to_readwise": "無法儲存至 Readwise", "entry_actions.mark_as_read": "標記為已讀", "entry_actions.mark_as_unread": "標記為未讀", @@ -121,11 +122,13 @@ "entry_actions.save_to_instapaper": "儲存至 Instapaper", "entry_actions.save_to_obsidian": "儲存至 Obsidian", "entry_actions.save_to_outline": "儲存至 Outline", + "entry_actions.save_to_readeck": "儲存至 Readeck", "entry_actions.save_to_readwise": "儲存至 Readwise", "entry_actions.saved_to_eagle": "已儲存至 Eagle", "entry_actions.saved_to_instapaper": "已儲存至 Instapaper", "entry_actions.saved_to_obsidian": "已儲存至 Obsidian", "entry_actions.saved_to_outline": "已儲存至 Outline", + "entry_actions.saved_to_readeck": "已儲存至 Readeck", "entry_actions.saved_to_readwise": "已儲存至 Readwise", "entry_actions.share": "分享", "entry_actions.star": "收藏", @@ -244,7 +247,7 @@ "new_user_guide.step.behavior.unread_question.option2": "平衡:懸停或滾出視野時自動標記為已讀", "new_user_guide.step.behavior.unread_question.option3": "被動:僅在點擊時標記為已讀", "new_user_guide.step.features.actions.description": "自動化規則允許你對不同的訂閱執行不同的動作\n- 使用 AI 進行摘要或翻譯\n- 配置閱讀條目的方式\n- 啟用新條目的通知或靜音\n- 重寫或封鎖特定條目\n- 將新條目發送到 webhook 地址", - "new_user_guide.step.features.integration.description": "集成允許你將條目儲存到其他服務。目前支持的服務有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "集成允許你將條目儲存到其他服務。目前支持的服務有:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "設定你的個人資料", "new_user_guide.step.migrate.title": "從 OPML 檔案匯入", "new_user_guide.step.migrate.wallet": "檢查你的銀包", diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json index c1b1d7135..37a2e9d4f 100644 --- a/locales/app/zh-TW.json +++ b/locales/app/zh-TW.json @@ -112,6 +112,7 @@ "entry_actions.failed_to_save_to_instapaper": "無法儲存到 Instapaper。", "entry_actions.failed_to_save_to_obsidian": "儲存到 Obsidian 失敗", "entry_actions.failed_to_save_to_outline": "無法儲存到 Outline。", + "entry_actions.failed_to_save_to_readeck": "無法儲存到 Readeck。", "entry_actions.failed_to_save_to_readwise": "無法儲存到 Readwise。", "entry_actions.mark_as_read": "標記為已讀", "entry_actions.mark_as_unread": "標記為未讀", @@ -121,11 +122,13 @@ "entry_actions.save_to_instapaper": "儲存到 Instapaper", "entry_actions.save_to_obsidian": "儲存到 Obsidian", "entry_actions.save_to_outline": "儲存到 Outline", + "entry_actions.save_to_readeck": "儲存到 Readeck", "entry_actions.save_to_readwise": "儲存到 Readwise", "entry_actions.saved_to_eagle": "已儲存至 Eagle。", "entry_actions.saved_to_instapaper": "已儲存至 Instapaper。", "entry_actions.saved_to_obsidian": "已儲存到 Obsidian", "entry_actions.saved_to_outline": "已儲存至 Outline。", + "entry_actions.saved_to_readeck": "已儲存至 Readeck。", "entry_actions.saved_to_readwise": "已儲存至 Readwise。", "entry_actions.share": "分享", "entry_actions.star": "收藏", @@ -244,7 +247,7 @@ "new_user_guide.step.behavior.unread_question.option2": "平衡:滑過或離開視圖時自動標記為已讀。", "new_user_guide.step.behavior.unread_question.option3": "保守:僅在點擊時標記為已讀。", "new_user_guide.step.features.actions.description": "指令允許您為不同的訂閱源設定操作。\n- 使用 AI 進行總結或翻譯。\n- 設定條目的閱讀方式。\n- 為新條目啟用通知或靜音。\n- 覆寫或封鎖特定條目。\n- 將新條目發送到 webhook。", - "new_user_guide.step.features.integration.description": "整合功能允許您將條目保存到其他服務。目前支持的服務包括:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian", + "new_user_guide.step.features.integration.description": "整合功能允許您將條目保存到其他服務。目前支持的服務包括:\n- Eagle\n- Readwise\n- Instapaper\n- Obsidian\n- Outline\n- Readeck", "new_user_guide.step.migrate.profile": "設定您的個人資料", "new_user_guide.step.migrate.title": "從 OPML 文件導入", "new_user_guide.step.migrate.wallet": "檢查您的錢包", diff --git a/locales/settings/en.json b/locales/settings/en.json index 951b40b3d..7b45b484b 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -184,6 +184,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "You can get it from your Outline account settings.", "integration.outline.token.label": "Outline API Key", + "integration.readeck.enable.description": "Display 'Save to Readeck' button when available.", + "integration.readeck.enable.label": "Enable", + "integration.readeck.endpoint.description": "The URL is 'https://'.", + "integration.readeck.endpoint.label": "Readeck API Base URL", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "You can get it from your Readeck account settings.", + "integration.readeck.token.label": "Readeck API Token", "integration.readwise.enable.description": "Display 'Save to Readwise' button when available.", "integration.readwise.enable.label": "Enable", "integration.readwise.title": "Readwise", diff --git a/locales/settings/ja.json b/locales/settings/ja.json index bcbff6b71..ac87abb56 100644 --- a/locales/settings/ja.json +++ b/locales/settings/ja.json @@ -181,6 +181,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "Outline のアカウント設定で取得できます。", "integration.outline.token.label": "Outline API Key", + "integration.readeck.enable.description": "利用可能なとき 'Readeck に保存' ボタンを表示します。", + "integration.readeck.enable.label": "有効化", + "integration.readeck.endpoint.description": "URL は 'https://'。", + "integration.readeck.endpoint.label": "Readeck API Base URL", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "Readeck のアカウント設定で取得できます。", + "integration.readeck.token.label": "Readeck API Key", "integration.readwise.enable.description": "利用可能な場合、'Readwise に保存' ボタンを表示します。", "integration.readwise.enable.label": "有効化", "integration.readwise.title": "Readwise", diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json index 6bc99306d..6db3018c0 100644 --- a/locales/settings/zh-CN.json +++ b/locales/settings/zh-CN.json @@ -181,6 +181,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "在你的 Outline 账户设置中获取。", "integration.outline.token.label": "Outline API 密钥", + "integration.readeck.enable.description": "显示「保存到 Readeck」按钮(如果可用)。", + "integration.readeck.enable.label": "启用", + "integration.readeck.endpoint.description": "此地址为「https://<你的 READECK 域名>」。", + "integration.readeck.endpoint.label": "Readeck 接口地址", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "在你的 Readeck 账户设置中获取。", + "integration.readeck.token.label": "Readeck API 密钥", "integration.readwise.enable.description": "显示「保存到 Readwise」按钮(如果可用)。", "integration.readwise.enable.label": "启用", "integration.readwise.title": "Readwise", diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json index a65f9a1b9..e306378f9 100644 --- a/locales/settings/zh-HK.json +++ b/locales/settings/zh-HK.json @@ -184,6 +184,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "您可以從 Outline 帳戶設置中獲取", "integration.outline.token.label": "Outline API 密鑰", + "integration.readeck.enable.description": "顯示「儲存到 Readeck」按钮(如果可用)", + "integration.readeck.enable.label": "啟用", + "integration.readeck.endpoint.description": "網址為 'https://'", + "integration.readeck.endpoint.label": "Readeck API 端口", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "您可以從 Readeck 帳戶設置中獲取", + "integration.readeck.token.label": "Readeck API 密鑰", "integration.readwise.enable.description": "顯示「儲存到 Readwise」按钮(如果可用)", "integration.readwise.enable.label": "啟用", "integration.readwise.title": "Readwise", diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index d7d16c757..5120f53e4 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -184,6 +184,13 @@ "integration.outline.title": "Outline", "integration.outline.token.description": "在你的 Outline 帳戶設置中獲取", "integration.outline.token.label": "Outline API 密鑰", + "integration.readeck.enable.description": "顯示\"儲存到 Readeck\"按鈕(如果可用)", + "integration.readeck.enable.label": "啟用", + "integration.readeck.endpoint.description": "此網址為 \"https://<你的 READECK 域名>\"", + "integration.readeck.endpoint.label": "Readeck 端口網址", + "integration.readeck.title": "Readeck", + "integration.readeck.token.description": "在你的 Readeck 帳戶設置中獲取", + "integration.readeck.token.label": "Readeck API 密鑰", "integration.readwise.enable.description": "顯示「儲存到 Readwise」按钮(如果可用)。", "integration.readwise.enable.label": "啟用", "integration.readwise.title": "Readwise", diff --git a/packages/components/src/ui/platform-icon/collections/readeck.tsx b/packages/components/src/ui/platform-icon/collections/readeck.tsx new file mode 100644 index 000000000..cbbe8bd95 --- /dev/null +++ b/packages/components/src/ui/platform-icon/collections/readeck.tsx @@ -0,0 +1,50 @@ +import type { SVGProps } from "react" + +export function SimpleIconsReadeck(props: SVGProps) { + return ( + + + + + + + + + ) +} diff --git a/packages/components/src/ui/platform-icon/icons.ts b/packages/components/src/ui/platform-icon/icons.ts index 7439d1868..d5eba3fc9 100644 --- a/packages/components/src/ui/platform-icon/icons.ts +++ b/packages/components/src/ui/platform-icon/icons.ts @@ -2,5 +2,6 @@ export * from "./collections/eagle" export * from "./collections/instapaper" export * from "./collections/obsidian" export * from "./collections/outline" +export * from "./collections/readeck" export * from "./collections/readwise" export * from "./collections/rss3" diff --git a/packages/shared/src/interface/settings.ts b/packages/shared/src/interface/settings.ts index b038c8546..dcc8736b7 100644 --- a/packages/shared/src/interface/settings.ts +++ b/packages/shared/src/interface/settings.ts @@ -73,4 +73,9 @@ export interface IntegrationSettings { outlineEndpoint: string outlineToken: string outlineCollection: string + + // readeck + enableReadeck: boolean + readeckEndpoint: string + readeckToken: string } From d78f7cdc178388f5e0c83be4ce49e32f68863efa Mon Sep 17 00:00:00 2001 From: Longyong Wu Date: Tue, 3 Dec 2024 12:43:14 +0800 Subject: [PATCH 37/80] fix: change invitation code placeholder font to theme font (#1978) --- apps/renderer/src/modules/activation/ActivationModalContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/activation/ActivationModalContent.tsx b/apps/renderer/src/modules/activation/ActivationModalContent.tsx index e340b70c6..165443403 100644 --- a/apps/renderer/src/modules/activation/ActivationModalContent.tsx +++ b/apps/renderer/src/modules/activation/ActivationModalContent.tsx @@ -84,7 +84,7 @@ export const ActivationModalContent = ({ )} From 910220395631bcf86f56bfc2b2168ac95852444c Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 3 Dec 2024 12:59:41 +0800 Subject: [PATCH 38/80] feat: migrate to better auth (#1951) * feat: add better-auth * feat: remove hono/auth-js * fix: authention check * fix: signout refetch * feat: init server auth plugins * feat: remove types/authjs * feat: server auth create session plugin * feat: web login returning * fix: types * fix: test env --- .github/workflows/lint.yml | 4 + CONTRIBUTE.md | 2 +- README.md | 2 +- apps/main/global.d.ts | 1 - apps/main/src/index.ts | 22 +- apps/main/src/lib/api-client.ts | 10 +- apps/main/src/lib/user.ts | 26 +- apps/main/src/tipc/app.ts | 6 +- apps/renderer/global.d.ts | 2 - apps/renderer/package.json | 1 - apps/renderer/src/atoms/user.ts | 6 +- .../src/components/ui/media/SwipeMedia.tsx | 2 +- apps/renderer/src/hooks/biz/useSignOut.ts | 14 +- apps/renderer/src/initialize/helper.ts | 8 +- apps/renderer/src/initialize/index.ts | 8 - apps/renderer/src/lib/api-fetch.ts | 18 +- apps/renderer/src/lib/auth.ts | 14 - .../src/modules/auth/LoginModalContent.tsx | 4 +- apps/renderer/src/queries/auth.ts | 50 +- apps/renderer/src/queries/users.ts | 6 +- apps/server/client/initialize/index.ts | 8 - apps/server/client/lib/api-fetch.ts | 11 +- apps/server/client/lib/auth.ts | 14 - apps/server/client/pages/(login)/login.tsx | 35 +- apps/server/client/query/auth.ts | 49 +- apps/server/client/query/users.ts | 6 +- apps/server/package.json | 1 - apps/server/src/lib/api-client.ts | 4 +- locales/errors/en.json | 1 - locales/errors/ja.json | 1 - locales/errors/zh-CN.json | 1 - locales/errors/zh-HK.json | 1 - locales/errors/zh-TW.json | 1 - packages/models/src/types.ts | 8 +- packages/shared/package.json | 1 + packages/shared/src/auth.ts | 37 + packages/shared/src/hono.ts | 4036 ++++++++++++++++- pnpm-lock.yaml | 593 ++- types/authjs.d.ts | 18 - 39 files changed, 4523 insertions(+), 509 deletions(-) delete mode 100644 apps/renderer/src/lib/auth.ts delete mode 100644 apps/server/client/lib/auth.ts create mode 100644 packages/shared/src/auth.ts delete mode 100644 types/authjs.d.ts diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d6ce8d45b..40739be64 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,6 +3,10 @@ on: push: branches: [main, dev] +env: + VITE_WEB_URL: ${{ vars.VITE_WEB_URL }} + VITE_API_URL: ${{ vars.VITE_API_URL }} + name: CI Format, Typecheck and Lint concurrency: group: ${{ github.workflow }}-${{ github.ref }}-lint diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 8b5af1149..692ce9d39 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -48,7 +48,7 @@ If you prefer to develop in Electron, follow these steps: pnpm run dev ``` -> **Tip:** If you encounter login issues, copy the `authjs.session-token` from your browser's cookies into the app. +> **Tip:** If you encounter login issues, copy the `better-auth.session_token` from your browser's cookies into the app. ## Contribution Guidelines diff --git a/README.md b/README.md index bd04086dd..d40dd254d 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ pnpm run dev Since it is not very convenient to develop in Electron, the first way to develop and contribute is recommended at this stage. > [!TIP] -> If you can't log in to the app, copy the `authjs.session-token` in the cookie from your browser into the app. +> If you can't log in to the app, copy the `better-auth.session_token` in the cookie from your browser into the app. ## 📝 License diff --git a/apps/main/global.d.ts b/apps/main/global.d.ts index fb3018c3d..aa75b79a4 100644 --- a/apps/main/global.d.ts +++ b/apps/main/global.d.ts @@ -1,5 +1,4 @@ import "../../types/vite" -import "../../types/authjs" declare global { const GIT_COMMIT_HASH: string diff --git a/apps/main/src/index.ts b/apps/main/src/index.ts index 3cc590da5..af6922af3 100644 --- a/apps/main/src/index.ts +++ b/apps/main/src/index.ts @@ -14,7 +14,7 @@ import { updateProxy } from "./lib/proxy" import { handleUrlRouting } from "./lib/router" import { store } from "./lib/store" import { registerAppTray } from "./lib/tray" -import { setAuthSessionToken, updateNotificationsToken } from "./lib/user" +import { setBetterAuthSessionCookie, updateNotificationsToken } from "./lib/user" import { registerUpdater } from "./updater" import { cleanupOldRender } from "./updater/hot-updater" import { @@ -189,24 +189,16 @@ function bootstrap() { const urlObj = new URL(url) if (urlObj.hostname === "auth" || urlObj.pathname === "//auth") { - const token = urlObj.searchParams.get("token") + const ck = urlObj.searchParams.get("ck") const userId = urlObj.searchParams.get("userId") - if (token && apiURL) { - setAuthSessionToken(token) + if (ck && apiURL) { + setBetterAuthSessionCookie(ck) + const cookie = atob(ck) mainWindow.webContents.session.cookies.set({ url: apiURL, - name: "authjs.session-token", - value: token, - secure: true, - httpOnly: true, - domain: new URL(apiURL).hostname, - sameSite: "no_restriction", - }) - mainWindow.webContents.session.cookies.set({ - url: apiURL, - name: "authjs.callback-url", - value: env.VITE_WEB_URL, + name: cookie.split("=")[0], + value: cookie.split("=")[1], secure: true, httpOnly: true, domain: new URL(apiURL).hostname, diff --git a/apps/main/src/lib/api-client.ts b/apps/main/src/lib/api-client.ts index 27821e2ee..1e98924ca 100644 --- a/apps/main/src/lib/api-client.ts +++ b/apps/main/src/lib/api-client.ts @@ -5,7 +5,7 @@ import { hc } from "hono/client" import { ofetch } from "ofetch" import { logger } from "../logger" -import { getAuthSessionToken, getUser } from "./user" +import { getBetterAuthSessionCookie, getUser } from "./user" const abortController = new AbortController() export const apiFetch = ofetch.create({ @@ -14,8 +14,8 @@ export const apiFetch = ofetch.create({ signal: abortController.signal, retry: false, onRequest({ request }) { - const authSessionToken = getAuthSessionToken() - if (!authSessionToken) { + const betterAuthSessionCookie = getBetterAuthSessionCookie() + if (!betterAuthSessionCookie) { abortController.abort() return } @@ -32,12 +32,12 @@ export const apiFetch = ofetch.create({ export const apiClient = hc("", { fetch: async (input, options = {}) => apiFetch(input.toString(), options), headers() { - const authSessionToken = getAuthSessionToken() + const betterAuthSessionCookie = getBetterAuthSessionCookie() const user = getUser() return { "X-App-Version": PKG.version, "X-App-Dev": process.env.NODE_ENV === "development" ? "1" : "0", - Cookie: authSessionToken ? `authjs.session-token=${authSessionToken}` : "", + Cookie: betterAuthSessionCookie ? atob(betterAuthSessionCookie) : "", "User-Agent": `Follow/${PKG.version}${user?.id ? ` uid: ${user.id}` : ""}`, } }, diff --git a/apps/main/src/lib/user.ts b/apps/main/src/lib/user.ts index 848535ae9..46719e0fb 100644 --- a/apps/main/src/lib/user.ts +++ b/apps/main/src/lib/user.ts @@ -1,13 +1,15 @@ import type { User } from "@auth/core/types" import type { Credentials } from "@eneris/push-receiver/dist/types" +import { logger } from "~/logger" + import { apiClient } from "./api-client" import { store } from "./store" -const AuthKey = "authSessionToken" -export const setAuthSessionToken = (token: string) => store.set(AuthKey, token) -export const getAuthSessionToken = (): string | null => store.get(AuthKey) -export const cleanAuthSessionToken = () => store.set(AuthKey, null) +const BetterAuthKey = "betterAuthSessionCookie" +export const setBetterAuthSessionCookie = (cookie: string) => store.set(BetterAuthKey, cookie) +export const getBetterAuthSessionCookie = (): string | null => store.get(BetterAuthKey) +export const cleanBetterAuthSessionCookie = () => store.set(BetterAuthKey, null) const UserKey = "user" export const setUser = (user: User) => store.set(UserKey, JSON.stringify(user)) @@ -24,11 +26,15 @@ export const updateNotificationsToken = async (newCredentials?: Credentials) => } const credentials = newCredentials || store.get("notifications-credentials") if (credentials?.fcm?.token) { - await apiClient.messaging.$post({ - json: { - token: credentials.fcm.token, - channel: "desktop", - }, - }) + try { + await apiClient.messaging.$post({ + json: { + token: credentials.fcm.token, + channel: "desktop", + }, + }) + } catch (error) { + logger.error("updateNotificationsToken error: ", error) + } } } diff --git a/apps/main/src/tipc/app.ts b/apps/main/src/tipc/app.ts index 1dd75869b..c67f3a32b 100644 --- a/apps/main/src/tipc/app.ts +++ b/apps/main/src/tipc/app.ts @@ -18,7 +18,7 @@ import { cleanupOldRender, loadDynamicRenderEntry } from "~/updater/hot-updater" import { isDev, isWindows11 } from "../env" import { downloadFile } from "../lib/download" import { i18n } from "../lib/i18n" -import { cleanAuthSessionToken, cleanUser } from "../lib/user" +import { cleanBetterAuthSessionCookie, cleanUser } from "../lib/user" import type { RendererHandlers } from "../renderer-handlers" import { quitAndInstall } from "../updater" import { getMainWindow } from "../window" @@ -167,8 +167,8 @@ export const appRoute = { quitAndInstall() }), - cleanAuthSessionToken: t.procedure.action(async () => { - cleanAuthSessionToken() + cleanBetterAuthSessionCookie: t.procedure.action(async () => { + cleanBetterAuthSessionCookie() cleanUser() }), /// clipboard diff --git a/apps/renderer/global.d.ts b/apps/renderer/global.d.ts index 97bf38522..7051cdaef 100644 --- a/apps/renderer/global.d.ts +++ b/apps/renderer/global.d.ts @@ -1,5 +1,3 @@ -import "../../types/authjs" - import type { ElectronAPI } from "@electron-toolkit/preload" declare global { diff --git a/apps/renderer/package.json b/apps/renderer/package.json index 84e6a7cf5..fbe997105 100644 --- a/apps/renderer/package.json +++ b/apps/renderer/package.json @@ -18,7 +18,6 @@ "@follow/shared": "workspace:*", "@fontsource/sn-pro": "5.1.0", "@headlessui/react": "2.2.0", - "@hono/auth-js": "1.0.15", "@hookform/resolvers": "3.9.1", "@lottiefiles/dotlottie-react": "0.10.1", "@microflash/remark-callout-directives": "4.3.2", diff --git a/apps/renderer/src/atoms/user.ts b/apps/renderer/src/atoms/user.ts index 41af27f60..ab259d966 100644 --- a/apps/renderer/src/atoms/user.ts +++ b/apps/renderer/src/atoms/user.ts @@ -1,10 +1,12 @@ -import type { User } from "@auth/core/types" import type { UserRole } from "@follow/constants" +import type { AuthSession } from "@follow/shared/hono" import { atom } from "jotai" import { createAtomHooks } from "~/lib/jotai" -export const [, , useWhoami, , whoami, setWhoami] = createAtomHooks(atom>(null)) +export const [, , useWhoami, , whoami, setWhoami] = createAtomHooks( + atom["user"]>>(null), +) export const [, , useLoginModalShow, useSetLoginModalShow, getLoginModalShow, setLoginModalShow] = createAtomHooks(atom(false)) diff --git a/apps/renderer/src/components/ui/media/SwipeMedia.tsx b/apps/renderer/src/components/ui/media/SwipeMedia.tsx index 54ea888aa..732e0af7c 100644 --- a/apps/renderer/src/components/ui/media/SwipeMedia.tsx +++ b/apps/renderer/src/components/ui/media/SwipeMedia.tsx @@ -28,7 +28,7 @@ export function SwipeMedia({ height: number } }) { - const uniqMedia = uniqBy(media, "url") + const uniqMedia = media ? uniqBy(media, "url") : [] const hoverRef = useRef(null) diff --git a/apps/renderer/src/hooks/biz/useSignOut.ts b/apps/renderer/src/hooks/biz/useSignOut.ts index dee208814..73158a032 100644 --- a/apps/renderer/src/hooks/biz/useSignOut.ts +++ b/apps/renderer/src/hooks/biz/useSignOut.ts @@ -1,10 +1,9 @@ -import { env } from "@follow/shared/env" +import { signOut } from "@follow/shared/auth" import { clearStorage } from "@follow/utils/ns" -import { signOut } from "@hono/auth-js/react" import { useCallback } from "react" import { setWhoami } from "~/atoms/user" -import { isWebBuild, QUERY_PERSIST_KEY } from "~/constants" +import { QUERY_PERSIST_KEY } from "~/constants" import { tipcClient } from "~/lib/client" import { clearLocalPersistStoreData } from "~/store/utils/clear" @@ -20,9 +19,10 @@ export const useSignOut = () => clearStorage() window.analytics?.reset() // clear local store data - await Promise.allSettled([clearLocalPersistStoreData(), tipcClient?.cleanAuthSessionToken()]) + await Promise.allSettled([ + clearLocalPersistStoreData(), + tipcClient?.cleanBetterAuthSessionCookie(), + ]) // Sign out - await signOut({ - callbackUrl: isWebBuild ? env.VITE_WEB_URL : undefined, - }) + await signOut() }, []) diff --git a/apps/renderer/src/initialize/helper.ts b/apps/renderer/src/initialize/helper.ts index a8be525ec..fdddbff43 100644 --- a/apps/renderer/src/initialize/helper.ts +++ b/apps/renderer/src/initialize/helper.ts @@ -1,13 +1,13 @@ -import type { User } from "@auth/core/types" +import type { UserModel } from "@follow/models" import { op } from "./op" -export const setIntegrationIdentify = async (user: User) => { +export const setIntegrationIdentify = async (user: UserModel) => { op.identify({ profileId: user.id, email: user.email, - avatar: user.image, - lastName: user.name, + avatar: user.image ?? undefined, + lastName: user.name ?? undefined, properties: { handle: user.handle, name: user.name, diff --git a/apps/renderer/src/initialize/index.ts b/apps/renderer/src/initialize/index.ts index 83c4d3172..d49917bf9 100644 --- a/apps/renderer/src/initialize/index.ts +++ b/apps/renderer/src/initialize/index.ts @@ -1,8 +1,6 @@ import { initializeDayjs } from "@follow/components/dayjs" import { registerGlobalContext } from "@follow/shared/bridge" import { IN_ELECTRON } from "@follow/shared/constants" -import { env } from "@follow/shared/env" -import { authConfigManager } from "@hono/auth-js/react" import { repository } from "@pkg" import { enableMapSet } from "immer" @@ -63,12 +61,6 @@ export const initializeApp = async () => { window.version = APP_VERSION const now = Date.now() - // Initialize the auth config first - authConfigManager.setConfig({ - baseUrl: env.VITE_API_URL, - basePath: "/auth", - credentials: "include", - }) initializeDayjs() registerHistoryStack() diff --git a/apps/renderer/src/lib/api-fetch.ts b/apps/renderer/src/lib/api-fetch.ts index f8d3dc1f3..2700b0cd9 100644 --- a/apps/renderer/src/lib/api-fetch.ts +++ b/apps/renderer/src/lib/api-fetch.ts @@ -1,6 +1,5 @@ import { env } from "@follow/shared/env" import type { AppType } from "@follow/shared/hono" -import { getCsrfToken } from "@hono/auth-js/react" import PKG from "@pkg" import { hc } from "hono/client" import { FetchError, ofetch } from "ofetch" @@ -13,27 +12,15 @@ import { isDev } from "~/constants" import { NeedActivationToast } from "~/modules/activation/NeedActivationToast" import { DebugRegistry } from "~/modules/debug/registry" -let csrfTokenPromise: Promise | null = null - -const getPromisedCsrfToken = async () => { - if (!csrfTokenPromise) { - csrfTokenPromise = getCsrfToken() - } - - return await csrfTokenPromise -} export const apiFetch = ofetch.create({ baseURL: env.VITE_API_URL, credentials: "include", retry: false, - onRequest: async ({ options }) => { - const csrfToken = await getPromisedCsrfToken() - + onRequest: ({ options }) => { const header = new Headers(options.headers) header.set("x-app-version", PKG.version) header.set("X-App-Dev", process.env.NODE_ENV === "development" ? "1" : "0") - header.set("X-Csrf-Token", csrfToken) options.headers = header }, onResponse() { @@ -92,11 +79,10 @@ export const apiClient = hc(env.VITE_API_URL, { } throw err }), - async headers() { + headers() { return { "X-App-Version": PKG.version, "X-App-Dev": process.env.NODE_ENV === "development" ? "1" : "0", - "X-Csrf-Token": await getPromisedCsrfToken(), } }, }) diff --git a/apps/renderer/src/lib/auth.ts b/apps/renderer/src/lib/auth.ts deleted file mode 100644 index 4400282d5..000000000 --- a/apps/renderer/src/lib/auth.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { IN_ELECTRON, WEB_URL } from "@follow/shared/constants" -import { signIn } from "@hono/auth-js/react" - -export const LOGIN_CALLBACK_URL = `${WEB_URL}/login` -export type LoginRuntime = "browser" | "app" -export const loginHandler = (provider: string, runtime: LoginRuntime = "app") => { - if (IN_ELECTRON) { - window.open(`${WEB_URL}/login?provider=${provider}`) - } else { - signIn(provider, { - callbackUrl: runtime === "app" ? LOGIN_CALLBACK_URL : WEB_URL, - }) - } -} diff --git a/apps/renderer/src/modules/auth/LoginModalContent.tsx b/apps/renderer/src/modules/auth/LoginModalContent.tsx index 4052ae5d2..541ddc9df 100644 --- a/apps/renderer/src/modules/auth/LoginModalContent.tsx +++ b/apps/renderer/src/modules/auth/LoginModalContent.tsx @@ -2,6 +2,8 @@ import { FollowIcon } from "@follow/components/icons/follow.jsx" import { MotionButtonBase } from "@follow/components/ui/button/index.js" import { LoadingCircle } from "@follow/components/ui/loading/index.jsx" import { authProvidersConfig } from "@follow/constants" +import type { LoginRuntime } from "@follow/shared/auth" +import { loginHandler } from "@follow/shared/auth" import { stopPropagation } from "@follow/utils/dom" import clsx from "clsx" import { AnimatePresence, m } from "framer-motion" @@ -10,8 +12,6 @@ import { useTranslation } from "react-i18next" import { modalMontionConfig } from "~/components/ui/modal/stacked/constants" import { useCurrentModal } from "~/components/ui/modal/stacked/hooks" -import type { LoginRuntime } from "~/lib/auth" -import { loginHandler } from "~/lib/auth" import { useAuthProviders } from "~/queries/users" interface LoginModalContentProps { diff --git a/apps/renderer/src/queries/auth.ts b/apps/renderer/src/queries/auth.ts index 160e698ed..354d9b419 100644 --- a/apps/renderer/src/queries/auth.ts +++ b/apps/renderer/src/queries/auth.ts @@ -1,13 +1,10 @@ -import type { Session } from "@auth/core/types" -import type { getSession as getSessionReact } from "@hono/auth-js/react" -import { authConfigManager } from "@hono/auth-js/react" +import { getSession } from "@follow/shared/auth" +import type { AuthSession } from "@follow/shared/hono" import type { FetchError } from "ofetch" -import { ofetch } from "ofetch" import { useAuthQuery } from "~/hooks/common" import { defineQuery } from "~/lib/defineQuery" -type GetSessionParams = Parameters[0] export const auth = { getSession: () => defineQuery(["auth", "session"], () => getSession()), } @@ -34,47 +31,14 @@ export const useSession = (options?: { enabled?: boolean }) => { const fetchError = error as FetchError return { - session: data, + session: data?.data as AuthSession, ...rest, status: isLoading ? "loading" - : data + : data?.data ? "authenticated" - : fetchError?.statusCode === 401 - ? "unauthenticated" - : "error", + : fetchError + ? "error" + : "unauthenticated", } } - -/** - * Fetch session data, copy and patch code from @hono/auth-js/react - */ -async function fetchData( - path: string, - - req: any = {}, -): Promise { - const config = authConfigManager.getConfig() - const url = `${config.baseUrl}${config.basePath}/${path}` - - const options: RequestInit = { - headers: { - "Content-Type": "application/json", - ...(req?.headers?.cookie ? { cookie: req.headers.cookie } : {}), - }, - credentials: config.credentials, - } - - if (req?.body) { - options.body = JSON.stringify(req.body) - options.method = "POST" - } - - const data = await ofetch(url, options) - - return data as T -} - -function getSession(params?: GetSessionParams) { - return fetchData("session", params) -} diff --git a/apps/renderer/src/queries/users.ts b/apps/renderer/src/queries/users.ts index 3390dfde5..fd1408349 100644 --- a/apps/renderer/src/queries/users.ts +++ b/apps/renderer/src/queries/users.ts @@ -1,4 +1,4 @@ -import { getProviders } from "@hono/auth-js/react" +import { getProviders } from "@follow/shared/auth" import { useQuery } from "@tanstack/react-query" import { apiClient } from "~/lib/api-fetch" @@ -17,7 +17,7 @@ export const users = { export const useAuthProviders = () => { return useQuery({ queryKey: ["providers"], - queryFn: () => getProviders(), + queryFn: async () => (await getProviders()).data, placeholderData: { google: { id: "google", @@ -27,6 +27,6 @@ export const useAuthProviders = () => { id: "github", name: "GitHub", }, - } as Awaited>, + }, }) } diff --git a/apps/server/client/initialize/index.ts b/apps/server/client/initialize/index.ts index 618414eb9..9c012df2d 100644 --- a/apps/server/client/initialize/index.ts +++ b/apps/server/client/initialize/index.ts @@ -1,18 +1,10 @@ import { initI18n } from "@client/i18n" import { initializeDayjs } from "@follow/components/dayjs" -import { env } from "@follow/shared/env" -import { authConfigManager } from "@hono/auth-js/react" import { initAnalytics } from "./analytics" import { initSentry } from "./sentry" export const initialize = () => { - authConfigManager.setConfig({ - baseUrl: env.VITE_API_URL, - basePath: "/auth", - credentials: "include", - }) - initializeDayjs() initI18n() initAnalytics() diff --git a/apps/server/client/lib/api-fetch.ts b/apps/server/client/lib/api-fetch.ts index e1a0060bb..7afdd3d5f 100644 --- a/apps/server/client/lib/api-fetch.ts +++ b/apps/server/client/lib/api-fetch.ts @@ -1,24 +1,15 @@ import { env } from "@follow/shared/env" import type { AppType } from "@follow/shared/hono" -import { getCsrfToken } from "@hono/auth-js/react" import { hc } from "hono/client" import { ofetch } from "ofetch" -let csrfTokenPromise: Promise | null = null const apiFetch = ofetch.create({ credentials: "include", retry: false, - onRequest: async ({ options }) => { - if (!csrfTokenPromise) { - csrfTokenPromise = getCsrfToken() - } - - const csrfToken = await csrfTokenPromise - + onRequest: ({ options }) => { const header = new Headers(options.headers) header.set("x-app-version", "Web External") - header.set("X-Csrf-Token", csrfToken) options.headers = header }, }) diff --git a/apps/server/client/lib/auth.ts b/apps/server/client/lib/auth.ts deleted file mode 100644 index 4400282d5..000000000 --- a/apps/server/client/lib/auth.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { IN_ELECTRON, WEB_URL } from "@follow/shared/constants" -import { signIn } from "@hono/auth-js/react" - -export const LOGIN_CALLBACK_URL = `${WEB_URL}/login` -export type LoginRuntime = "browser" | "app" -export const loginHandler = (provider: string, runtime: LoginRuntime = "app") => { - if (IN_ELECTRON) { - window.open(`${WEB_URL}/login?provider=${provider}`) - } else { - signIn(provider, { - callbackUrl: runtime === "app" ? LOGIN_CALLBACK_URL : WEB_URL, - }) - } -} diff --git a/apps/server/client/pages/(login)/login.tsx b/apps/server/client/pages/(login)/login.tsx index 70e5925bf..c0d537051 100644 --- a/apps/server/client/pages/(login)/login.tsx +++ b/apps/server/client/pages/(login)/login.tsx @@ -1,27 +1,22 @@ import { UserAvatar } from "@client/components/ui/user-avatar" -import { apiClient } from "@client/lib/api-fetch" -import { LOGIN_CALLBACK_URL, loginHandler } from "@client/lib/auth" +import { useSession } from "@client/query/auth" import { useAuthProviders } from "@client/query/users" import { Logo } from "@follow/components/icons/logo.jsx" import { Button } from "@follow/components/ui/button/index.js" import { authProvidersConfig } from "@follow/constants" +import { createSession, loginHandler, signOut } from "@follow/shared/auth" import { DEEPLINK_SCHEME } from "@follow/shared/constants" import { cn } from "@follow/utils/utils" -import { SessionProvider, signIn, signOut, useSession } from "@hono/auth-js/react" import { useCallback, useEffect, useRef, useState } from "react" import { useTranslation } from "react-i18next" import { useLocation } from "react-router" export function Component() { - return ( - - - - ) + return } function Login() { - const { status } = useSession() + const { status, refetch } = useSession() const [redirecting, setRedirecting] = useState(false) @@ -36,24 +31,24 @@ function Login() { useEffect(() => { if (provider && status === "unauthenticated") { - signIn(provider, { - callbackUrl: LOGIN_CALLBACK_URL, - }) + loginHandler(provider) setRedirecting(true) } }, [status]) const getCallbackUrl = useCallback(async () => { - const { data } = await apiClient["auth-app"]["new-session"].$post({}) + const { data } = await createSession() + if (!data) return null return { - url: `${DEEPLINK_SCHEME}auth?token=${data.sessionToken}&userId=${data.userId}`, + url: `${DEEPLINK_SCHEME}auth?ck=${data.ck}&userId=${data.userId}`, userId: data.userId, } }, []) const handleOpenApp = useCallback(async () => { - const { url } = await getCallbackUrl() - window.open(url, "_top") + const callbackUrl = await getCallbackUrl() + if (!callbackUrl) return + window.open(callbackUrl.url, "_top") }, [getCallbackUrl]) const onceRef = useRef(false) @@ -82,7 +77,13 @@ function Login() {
-
diff --git a/apps/server/client/query/auth.ts b/apps/server/client/query/auth.ts index a7d38714c..5d1f70257 100644 --- a/apps/server/client/query/auth.ts +++ b/apps/server/client/query/auth.ts @@ -1,9 +1,7 @@ -import type { Session } from "@auth/core/types" -import type { GetSessionParams } from "@hono/auth-js/react" -import { authConfigManager } from "@hono/auth-js/react" +import { getSession } from "@follow/shared/auth" +import type { AuthSession } from "@follow/shared/hono" import { useQuery } from "@tanstack/react-query" import type { FetchError } from "ofetch" -import { ofetch } from "ofetch" export const useSession = (options?: { enabled?: boolean }) => { const { data, isLoading, ...rest } = useQuery({ @@ -27,47 +25,14 @@ export const useSession = (options?: { enabled?: boolean }) => { const fetchError = error as FetchError return { - session: data, + session: data?.data as AuthSession, ...rest, status: isLoading ? "loading" - : data + : data?.data ? "authenticated" - : fetchError?.statusCode === 401 - ? "unauthenticated" - : "error", + : fetchError + ? "error" + : "unauthenticated", } } - -/** - * Fetch session data, copy and patch code from @hono/auth-js/react - */ -async function fetchData( - path: string, - - req: any = {}, -): Promise { - const config = authConfigManager.getConfig() - const url = `${config.baseUrl}${config.basePath}/${path}` - - const options: RequestInit = { - headers: { - "Content-Type": "application/json", - ...(req?.headers?.cookie ? { cookie: req.headers.cookie } : {}), - }, - credentials: config.credentials, - } - - if (req?.body) { - options.body = JSON.stringify(req.body) - options.method = "POST" - } - - const data = await ofetch(url, options) - - return data as T -} - -function getSession(params?: GetSessionParams) { - return fetchData("session", params) -} diff --git a/apps/server/client/query/users.ts b/apps/server/client/query/users.ts index 92e8560e7..1c2e15531 100644 --- a/apps/server/client/query/users.ts +++ b/apps/server/client/query/users.ts @@ -1,7 +1,7 @@ import { apiClient } from "@client/lib/api-fetch" import { getHydrateData } from "@client/lib/helper" +import { getProviders } from "@follow/shared/auth" import { capitalizeFirstLetter, isBizId, parseUrl } from "@follow/utils/utils" -import { getProviders } from "@hono/auth-js/react" import { useQuery } from "@tanstack/react-query" export const useUserSubscriptionsQuery = (userId: string | undefined) => { @@ -60,7 +60,7 @@ export const useUserQuery = (handleOrId: string | undefined) => { export const useAuthProviders = () => { return useQuery({ queryKey: ["providers"], - queryFn: () => getProviders(), + queryFn: async () => (await getProviders()).data, placeholderData: { google: { id: "google", @@ -70,6 +70,6 @@ export const useAuthProviders = () => { id: "github", name: "GitHub", }, - } as Awaited>, + }, }) } diff --git a/apps/server/package.json b/apps/server/package.json index c11a7f4cb..e04794378 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -10,7 +10,6 @@ "@fastify/middie": "9.0.2", "@fastify/request-context": "6.0.1", "@fontsource/sn-pro": "5.1.0", - "@hono/auth-js": "1.0.15", "@openpanel/web": "1.0.1", "@resvg/resvg-js": "2.6.2", "@sentry/react": "8.41.0", diff --git a/apps/server/src/lib/api-client.ts b/apps/server/src/lib/api-client.ts index 0434a3666..afed762e0 100644 --- a/apps/server/src/lib/api-client.ts +++ b/apps/server/src/lib/api-client.ts @@ -53,7 +53,7 @@ export const createApiClient = () => { "X-App-Version": PKG.version, "X-App-Dev": isDev ? "1" : "0", "User-Agent": `Follow External Server Api Client/${PKG.version}`, - Cookie: authSessionToken ? `authjs.session-token=${authSessionToken}` : "", + Cookie: authSessionToken ? `better-auth.session_token=${authSessionToken}` : "", } }, }) @@ -72,7 +72,7 @@ export const getTokenFromCookie = (cookie: string) => { }, {} as Record, ) - return parsedCookieMap["authjs.session-token"] + return parsedCookieMap["better-auth.session_token"] } export type ApiClient = ReturnType diff --git a/locales/errors/en.json b/locales/errors/en.json index a8146ab10..5ed38a44e 100644 --- a/locales/errors/en.json +++ b/locales/errors/en.json @@ -1,6 +1,5 @@ { "1": "Previous operation is not completed", - "2": "CSRF Token mismatch", "3": "Unprocessable content", "1000": "Unauthorized", "1001": "create session failed", diff --git a/locales/errors/ja.json b/locales/errors/ja.json index 739b8a5da..3510ee040 100644 --- a/locales/errors/ja.json +++ b/locales/errors/ja.json @@ -1,6 +1,5 @@ { "1": "前回の操作が完了していません", - "2": "CSRF トークンがマッチしません", "3": "加工できないコンテンツです", "1000": "認証されていません", "1001": "セッションの作成に失敗しました", diff --git a/locales/errors/zh-CN.json b/locales/errors/zh-CN.json index 877bb0d95..c36ec8c12 100644 --- a/locales/errors/zh-CN.json +++ b/locales/errors/zh-CN.json @@ -1,6 +1,5 @@ { "1": "上一步未完成", - "2": "CSRF Token 无效", "3": "无法处理的内容", "1000": "未授权", "1001": "创建会话失败", diff --git a/locales/errors/zh-HK.json b/locales/errors/zh-HK.json index 92721cf46..ea602a60f 100644 --- a/locales/errors/zh-HK.json +++ b/locales/errors/zh-HK.json @@ -1,6 +1,5 @@ { "1": "上一步未完成", - "2": "CSRF Token 無效", "3": "無法處理的內容", "1000": "未經授權", "1001": "建立會話失敗", diff --git a/locales/errors/zh-TW.json b/locales/errors/zh-TW.json index 775c3c4d5..328614a4b 100644 --- a/locales/errors/zh-TW.json +++ b/locales/errors/zh-TW.json @@ -1,6 +1,5 @@ { "1": "上一操作未完成", - "2": "CSRF Token 無效", "3": "無法處理的內容", "1000": "未經授權", "1001": "建立會話失敗", diff --git a/packages/models/src/types.ts b/packages/models/src/types.ts index 8cf6f5b20..c43650c4d 100644 --- a/packages/models/src/types.ts +++ b/packages/models/src/types.ts @@ -5,9 +5,11 @@ import type { z } from "zod" declare const _apiClient: ReturnType> export type UserModel = Omit< - Omit, "email">, - "createdAt" -> + typeof users.$inferSelect, + "createdAt" | "updatedAt" | "email" | "emailVerified" +> & { + email?: string +} export type ExtractBizResponse any> = Exclude< Awaited>, diff --git a/packages/shared/package.json b/packages/shared/package.json index 615f02502..68dfa825c 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -33,6 +33,7 @@ "@electron-toolkit/tsconfig": "^1.0.1", "@hono/node-server": "^1.13.7", "@t3-oss/env-core": "^0.11.1", + "better-auth": "1.0.7", "drizzle-orm": "^0.36.4", "electron": "^33.2.1", "hono": "^4.6.12", diff --git a/packages/shared/src/auth.ts b/packages/shared/src/auth.ts new file mode 100644 index 000000000..60d89541f --- /dev/null +++ b/packages/shared/src/auth.ts @@ -0,0 +1,37 @@ +import { env } from "@follow/shared/env" +import type { authPlugins } from "@follow/shared/hono" +import type { BetterAuthClientPlugin } from "better-auth/client" +import { createAuthClient } from "better-auth/react" + +import { IN_ELECTRON, WEB_URL } from "./constants" + +const serverPlugins = [ + { + id: "getProviders", + $InferServerPlugin: {} as (typeof authPlugins)[0], + }, + { + id: "createSession", + $InferServerPlugin: {} as (typeof authPlugins)[1], + }, +] satisfies BetterAuthClientPlugin[] + +const authClient = createAuthClient({ + baseURL: `${env.VITE_API_URL}/better-auth`, + plugins: serverPlugins, +}) + +export const { signIn, signOut, getSession, getProviders, createSession } = authClient + +export const LOGIN_CALLBACK_URL = `${WEB_URL}/login` +export type LoginRuntime = "browser" | "app" +export const loginHandler = (provider: string, runtime: LoginRuntime = "app") => { + if (IN_ELECTRON) { + window.open(`${WEB_URL}/login?provider=${provider}`) + } else { + signIn.social({ + provider: provider as "google" | "github" | "apple", + callbackURL: runtime === "app" ? LOGIN_CALLBACK_URL : WEB_URL, + }) + } +} diff --git a/packages/shared/src/hono.ts b/packages/shared/src/hono.ts index 2fef3566a..a8ef01ca3 100644 --- a/packages/shared/src/hono.ts +++ b/packages/shared/src/hono.ts @@ -1,17 +1,65 @@ import * as hono_hono_base from 'hono/hono-base'; import * as hono_types from 'hono/types'; +import * as hono_utils_http_status from 'hono/utils/http-status'; import { HttpBindings } from '@hono/node-server'; +import * as better_call from 'better-call'; import * as zod from 'zod'; import { z } from 'zod'; import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core'; import { AnyPgColumn } from 'drizzle-orm/pg-core'; import * as drizzle_orm from 'drizzle-orm'; import { InferInsertModel, SQL } from 'drizzle-orm'; +import * as better_auth_adapters_drizzle from 'better-auth/adapters/drizzle'; +import * as better_auth from 'better-auth'; type Env = { Bindings: HttpBindings; }; +declare const authPlugins: ({ + id: "getProviders"; + endpoints: { + getProviders: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-providers"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; +} | { + id: "createSession"; + endpoints: { + createSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/create-session"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; +})[]; + declare const achievements: drizzle_orm_pg_core.PgTableWithColumns<{ name: "achievements"; schema: undefined; @@ -337,18 +385,18 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ value: z.ZodUnion<[z.ZodString, z.ZodNumber]>; }, "strip", z.ZodTypeAny, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }>, "many">>; webhooks: z.ZodOptional>; }, "strip", z.ZodTypeAny, { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -360,14 +408,14 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }, { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -379,17 +427,26 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -401,26 +458,26 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }; - condition: { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[] | { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[][]; }, { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -432,20 +489,11 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ }[] | undefined; blockRules?: { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }[] | undefined; webhooks?: string[] | undefined; }; - condition: { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[] | { - value: string; - field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; - }[][]; }>; declare const actionsOpenAPISchema: z.ZodObject; }, "strip", z.ZodTypeAny, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }, { value: string | number; - field: "title" | "all" | "content" | "author" | "url" | "order"; + field: "title" | "content" | "all" | "author" | "url" | "order"; operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; }>, "many">>; webhooks: z.ZodOptional>; }, "strip", z.ZodTypeAny, { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -574,14 +622,14 @@ declare const actionsOpenAPISchema: z.ZodObject; }, "strip", z.ZodTypeAny, { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -615,26 +672,26 @@ declare const actionsOpenAPISchema: z.ZodObject, "many">>>; }>, "strip", z.ZodTypeAny, { userId: string; rules?: { name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[][]; result: { - summary?: boolean | undefined; disabled?: boolean | undefined; translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + summary?: boolean | undefined; readability?: boolean | undefined; sourceContent?: boolean | undefined; silence?: boolean | undefined; @@ -680,29 +737,29 @@ declare const actionsOpenAPISchema: z.ZodObject; declare const actionsRelations: drizzle_orm.Relations<"actions", { @@ -1130,9 +1178,9 @@ declare const airdropsOpenAPISchema: z.ZodObject, "strip", z.ZodTypeAny, { userId: string; tx: string | null; - rank: string | null; - amount: string; activity: "public_beta"; + amount: string; + rank: string | null; detail: { "Invitations count": number; "Purchase lists cost": number; @@ -1167,9 +1215,9 @@ declare const airdropsOpenAPISchema: z.ZodObject; declare const feedsRelations: drizzle_orm.Relations<"feeds", { subscriptions: drizzle_orm.Many<"subscriptions">; @@ -4177,8 +4225,8 @@ declare const listsOpenAPISchema: zod.ZodObject<{ id: string; image: string | null; view: number; - language: string | null; ownerUserId: string; + language: string | null; feedIds: string[]; fee: number; timelineUpdatedAt: string; @@ -4188,8 +4236,8 @@ declare const listsOpenAPISchema: zod.ZodObject<{ id: string; image: string | null; view: number; - language: string | null; ownerUserId: string; + language: string | null; feedIds: string[]; fee: number; timelineUpdatedAt: string; @@ -4629,6 +4677,149 @@ declare const settings: drizzle_orm_pg_core.PgTableWithColumns<{ dialect: "pg"; }>; +declare const user: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "user"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + name: drizzle_orm_pg_core.PgColumn<{ + name: "name"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + email: drizzle_orm_pg_core.PgColumn<{ + name: "email"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + emailVerified: drizzle_orm_pg_core.PgColumn<{ + name: "emailVerified"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + image: drizzle_orm_pg_core.PgColumn<{ + name: "image"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + handle: drizzle_orm_pg_core.PgColumn<{ + name: "handle"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "created_at"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; declare const users: drizzle_orm_pg_core.PgTableWithColumns<{ name: "user"; schema: undefined; @@ -4752,6 +4943,23 @@ declare const users: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; }; dialect: "pg"; }>; @@ -4764,6 +4972,7 @@ declare const usersOpenApiSchema: z.ZodObject; handle: z.ZodNullable; createdAt: z.ZodDate; + updatedAt: z.ZodDate; }, "email">, z.UnknownKeysParam, z.ZodTypeAny, { name: string | null; id: string; @@ -4771,6 +4980,7 @@ declare const usersOpenApiSchema: z.ZodObject; -declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ +declare const account: drizzle_orm_pg_core.PgTableWithColumns<{ name: "account"; schema: undefined; columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; userId: drizzle_orm_pg_core.PgColumn<{ name: "userId"; tableName: "account"; @@ -4800,8 +5028,8 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - type: drizzle_orm_pg_core.PgColumn<{ - name: "type"; + providerId: drizzle_orm_pg_core.PgColumn<{ + name: "provider"; tableName: "account"; dataType: "string"; columnType: "PgText"; @@ -4817,6 +5045,302 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + accountId: drizzle_orm_pg_core.PgColumn<{ + name: "providerAccountId"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + refreshToken: drizzle_orm_pg_core.PgColumn<{ + name: "refresh_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + accessToken: drizzle_orm_pg_core.PgColumn<{ + name: "access_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + accessTokenExpiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "expires_at"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + refreshTokenExpiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "refreshTokenExpiresAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + scope: drizzle_orm_pg_core.PgColumn<{ + name: "scope"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + idToken: drizzle_orm_pg_core.PgColumn<{ + name: "id_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + password: drizzle_orm_pg_core.PgColumn<{ + name: "password"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const accountAuthjs: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "account"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userId: drizzle_orm_pg_core.PgColumn<{ + name: "userId"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + refreshTokenExpiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "refreshTokenExpiresAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + scope: drizzle_orm_pg_core.PgColumn<{ + name: "scope"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + password: drizzle_orm_pg_core.PgColumn<{ + name: "password"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "account"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; provider: drizzle_orm_pg_core.PgColumn<{ name: "provider"; tableName: "account"; @@ -4888,10 +5412,10 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ expires_at: drizzle_orm_pg_core.PgColumn<{ name: "expires_at"; tableName: "account"; - dataType: "number"; - columnType: "PgInteger"; - data: number; - driverParam: string | number; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; @@ -4902,40 +5426,6 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - token_type: drizzle_orm_pg_core.PgColumn<{ - name: "token_type"; - tableName: "account"; - dataType: "string"; - columnType: "PgText"; - data: string; - driverParam: string; - notNull: false; - hasDefault: false; - isPrimaryKey: false; - isAutoincrement: false; - hasRuntimeDefault: false; - enumValues: [string, ...string[]]; - baseColumn: never; - identity: undefined; - generated: undefined; - }, {}, {}>; - scope: drizzle_orm_pg_core.PgColumn<{ - name: "scope"; - tableName: "account"; - dataType: "string"; - columnType: "PgText"; - data: string; - driverParam: string; - notNull: false; - hasDefault: false; - isPrimaryKey: false; - isAutoincrement: false; - hasRuntimeDefault: false; - enumValues: [string, ...string[]]; - baseColumn: never; - identity: undefined; - generated: undefined; - }, {}, {}>; id_token: drizzle_orm_pg_core.PgColumn<{ name: "id_token"; tableName: "account"; @@ -4953,9 +5443,33 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - session_state: drizzle_orm_pg_core.PgColumn<{ - name: "session_state"; - tableName: "account"; + }; + dialect: "pg"; +}>; +declare const session: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "session"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + token: drizzle_orm_pg_core.PgColumn<{ + name: "sessionToken"; + tableName: "session"; dataType: "string"; columnType: "PgText"; data: string; @@ -4970,30 +5484,6 @@ declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - }; - dialect: "pg"; -}>; -declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "session"; - schema: undefined; - columns: { - sessionToken: drizzle_orm_pg_core.PgColumn<{ - name: "sessionToken"; - tableName: "session"; - dataType: "string"; - columnType: "PgText"; - data: string; - driverParam: string; - notNull: true; - hasDefault: false; - isPrimaryKey: true; - isAutoincrement: false; - hasRuntimeDefault: false; - enumValues: [string, ...string[]]; - baseColumn: never; - identity: undefined; - generated: undefined; - }, {}, {}>; userId: drizzle_orm_pg_core.PgColumn<{ name: "userId"; tableName: "session"; @@ -5011,6 +5501,217 @@ declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + expiresAt: drizzle_orm_pg_core.PgColumn<{ + name: "expires"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + ipAddress: drizzle_orm_pg_core.PgColumn<{ + name: "ipAddress"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userAgent: drizzle_orm_pg_core.PgColumn<{ + name: "userAgent"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const sessionAuthjs: drizzle_orm_pg_core.PgTableWithColumns<{ + name: "session"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userId: drizzle_orm_pg_core.PgColumn<{ + name: "userId"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + ipAddress: drizzle_orm_pg_core.PgColumn<{ + name: "ipAddress"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + userAgent: drizzle_orm_pg_core.PgColumn<{ + name: "userAgent"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + sessionToken: drizzle_orm_pg_core.PgColumn<{ + name: "sessionToken"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; expires: drizzle_orm_pg_core.PgColumn<{ name: "expires"; tableName: "session"; @@ -5031,10 +5732,27 @@ declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{ }; dialect: "pg"; }>; -declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ +declare const verification: drizzle_orm_pg_core.PgTableWithColumns<{ name: "verificationToken"; schema: undefined; columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "verificationToken"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; identifier: drizzle_orm_pg_core.PgColumn<{ name: "identifier"; tableName: "verificationToken"; @@ -5052,7 +5770,7 @@ declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - token: drizzle_orm_pg_core.PgColumn<{ + value: drizzle_orm_pg_core.PgColumn<{ name: "token"; tableName: "verificationToken"; dataType: "string"; @@ -5069,7 +5787,7 @@ declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; - expires: drizzle_orm_pg_core.PgColumn<{ + expiresAt: drizzle_orm_pg_core.PgColumn<{ name: "expires"; tableName: "verificationToken"; dataType: "date"; @@ -5086,6 +5804,40 @@ declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ identity: undefined; generated: undefined; }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "createdAt"; + tableName: "verificationToken"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; + updatedAt: drizzle_orm_pg_core.PgColumn<{ + name: "updatedAt"; + tableName: "verificationToken"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + identity: undefined; + generated: undefined; + }, {}, {}>; }; dialect: "pg"; }>; @@ -5237,17 +5989,17 @@ declare const walletsOpenAPISchema: zod.ZodObject<{ }, zod.UnknownKeysParam, zod.ZodTypeAny, { createdAt: string; userId: string; + powerToken: string; addressIndex: number; address: string | null; - powerToken: string; dailyPowerToken: string; cashablePowerToken: string; }, { createdAt: string; userId: string; + powerToken: string; addressIndex: number; address: string | null; - powerToken: string; dailyPowerToken: string; cashablePowerToken: string; }>; @@ -5467,10 +6219,10 @@ declare const transactionsOpenAPISchema: zod.ZodObject<{ }, zod.UnknownKeysParam, zod.ZodTypeAny, { type: "tip" | "mint" | "burn" | "withdraw" | "purchase" | "airdrop"; createdAt: string; + powerToken: string; fromUserId: string | null; toUserId: string | null; hash: string; - powerToken: string; toFeedId: string | null; toListId: string | null; toEntryId: string | null; @@ -5479,10 +6231,10 @@ declare const transactionsOpenAPISchema: zod.ZodObject<{ }, { type: "tip" | "mint" | "burn" | "withdraw" | "purchase" | "airdrop"; createdAt: string; + powerToken: string; fromUserId: string | null; toUserId: string | null; hash: string; - powerToken: string; toFeedId: string | null; toListId: string | null; toEntryId: string | null; @@ -5686,17 +6438,17 @@ declare const levelsOpenAPISchema: zod.ZodObject<{ userId: zod.ZodString; }, zod.UnknownKeysParam, zod.ZodTypeAny, { userId: string; - address: string; - powerToken: string; rank: number | null; + powerToken: string; + address: string; level: number | null; prevActivityPoints: number | null; activityPoints: number | null; }, { userId: string; - address: string; - powerToken: string; rank: number | null; + powerToken: string; + address: string; level: number | null; prevActivityPoints: number | null; activityPoints: number | null; @@ -5747,12 +6499,2803 @@ declare const boosts: drizzle_orm_pg_core.PgTableWithColumns<{ dialect: "pg"; }>; -declare const _routes: hono_hono_base.HonoBase Promise; + api: { + getSession: ((context: { + headers: Headers; + query?: { + disableCookieCache?: boolean; + } | undefined; + }) => Promise<{ + user: { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined | undefined; + } & { + image: string | null; + handle: string | null; + }; + session: { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined | undefined; + userAgent?: string | null | undefined | undefined; + }; + invitation: { + code: string; + createdAt: Date | null; + fromUserId: string; + toUserId: string | null; + } | undefined; + role: "user" | "trial"; + } | null>) & { + options: { + method: "GET"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + disableCookieCache?: boolean | undefined; + }, { + disableCookieCache?: boolean | undefined; + }>>; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + properties: { + token: { + type: string; + }; + userId: { + type: string; + }; + expiresAt: { + type: string; + }; + }; + }; + user: { + type: string; + $ref: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + } & { + method: "GET"; + metadata: { + CUSTOM_SESSION: boolean; + }; + }; + path: "/get-session"; + }; + } & { + getProviders: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-providers"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + createSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/create-session"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signInSocial: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + errorCallbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + disableRedirect: zod.ZodOptional; + idToken: zod.ZodOptional; + accessToken: zod.ZodOptional; + refreshToken: zod.ZodOptional; + expiresAt: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }>>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/sign-in/social"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + errorCallbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + disableRedirect: zod.ZodOptional; + idToken: zod.ZodOptional; + accessToken: zod.ZodOptional; + refreshToken: zod.ZodOptional; + expiresAt: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }, { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + }>>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + idToken?: { + token: string; + accessToken?: string | undefined; + refreshToken?: string | undefined; + expiresAt?: number | undefined; + nonce?: string | undefined; + } | undefined; + callbackURL?: string | undefined; + errorCallbackURL?: string | undefined; + disableRedirect?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signOut: { + ]>(...ctx: C): Promise; + path: "/sign-out"; + options: { + method: "POST"; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + success: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signUpEmail: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + name: zod.ZodString; + email: zod.ZodString; + password: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + password: string; + email: string; + name: string; + }, { + password: string; + email: string; + name: string; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + email: { + type: string; + description: string; + }; + password: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + session: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/sign-up/email"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + name: zod.ZodString; + email: zod.ZodString; + password: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + password: string; + email: string; + name: string; + }, { + password: string; + email: string; + name: string; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + email: { + type: string; + description: string; + }; + password: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + session: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + signInEmail: { + ; + rememberMe: zod.ZodOptional>; + }, "strip", zod.ZodTypeAny, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/sign-in/email"; + options: { + method: "POST"; + body: zod.ZodObject<{ + email: zod.ZodString; + password: zod.ZodString; + callbackURL: zod.ZodOptional; + rememberMe: zod.ZodOptional>; + }, "strip", zod.ZodTypeAny, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }, { + password: string; + email: string; + callbackURL?: string | undefined; + rememberMe?: boolean | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + session: { + type: string; + }; + user: { + type: string; + }; + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + forgetPassword: { + ; + }, "strip", zod.ZodTypeAny, { + email: string; + redirectTo?: string | undefined; + }, { + email: string; + redirectTo?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/forget-password"; + options: { + method: "POST"; + body: zod.ZodObject<{ + email: zod.ZodString; + redirectTo: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + email: string; + redirectTo?: string | undefined; + }, { + email: string; + redirectTo?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + resetPassword: { + ; + currentURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token?: string | undefined; + currentURL?: string | undefined; + }, { + token?: string | undefined; + currentURL?: string | undefined; + }>>; + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + token: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + token?: string | undefined; + }, { + newPassword: string; + token?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/reset-password"; + options: { + query: zod.ZodOptional; + currentURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token?: string | undefined; + currentURL?: string | undefined; + }, { + token?: string | undefined; + currentURL?: string | undefined; + }>>; + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + token: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + token?: string | undefined; + }, { + newPassword: string; + token?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + verifyEmail: { + ; + }, "strip", zod.ZodTypeAny, { + token: string; + callbackURL?: string | undefined; + }, { + token: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/verify-email"; + options: { + method: "GET"; + query: zod.ZodObject<{ + token: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + token: string; + callbackURL?: string | undefined; + }, { + token: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + sendVerificationEmail: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + email: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + email: string; + callbackURL?: string | undefined; + }, { + email: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + email: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/send-verification-email"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + email: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + email: string; + callbackURL?: string | undefined; + }, { + email: string; + callbackURL?: string | undefined; + }>; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + email: { + type: string; + description: string; + }; + callbackURL: { + type: string; + description: string; + }; + }; + required: string[]; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + changeEmail: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + newEmail: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newEmail: string; + callbackURL?: string | undefined; + }, { + newEmail: string; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/change-email"; + options: { + method: "POST"; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + newEmail: zod.ZodString; + callbackURL: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newEmail: string; + callbackURL?: string | undefined; + }, { + newEmail: string; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + changePassword: { + ; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + description: string; + $ref: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }>; + path: "/change-password"; + options: { + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + currentPassword: zod.ZodString; + revokeOtherSessions: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }, { + newPassword: string; + currentPassword: string; + revokeOtherSessions?: boolean | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + description: string; + $ref: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + setPassword: { + ; + metadata: { + SERVER_ONLY: true; + }; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + }>]>(...ctx: C): Promise & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }>; + path: "/set-password"; + options: { + method: "POST"; + body: zod.ZodObject<{ + newPassword: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + newPassword: string; + }, { + newPassword: string; + }>; + metadata: { + SERVER_ONLY: true; + }; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + updateUser: { + ; + image: zod.ZodOptional; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + name?: string | undefined; + image?: string | undefined; + }, { + name?: string | undefined; + image?: string | undefined; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + image: { + type: string; + description: string; + }; + }; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/update-user"; + options: { + method: "POST"; + body: zod.ZodObject<{ + name: zod.ZodOptional; + image: zod.ZodOptional; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + name?: string | undefined; + image?: string | undefined; + }, { + name?: string | undefined; + image?: string | undefined; + }> & zod.ZodObject<{ + handle: zod.ZodString; + }, zod.UnknownKeysParam, zod.ZodTypeAny, { + handle: string; + }, { + handle: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + name: { + type: string; + description: string; + }; + image: { + type: string; + description: string; + }; + }; + }; + }; + }; + }; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + user: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + deleteUser: { + ; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/delete-user"; + options: { + method: "POST"; + body: zod.ZodObject<{ + password: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + password: string; + }, { + password: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + forgetPasswordCallback: { + ; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/reset-password/:token"; + options: { + method: "GET"; + query: zod.ZodObject<{ + callbackURL: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + callbackURL: string; + }, { + callbackURL: string; + }>; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + listSessions: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + token: { + type: string; + }; + userId: { + type: string; + }; + expiresAt: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise[]>; + path: "/list-sessions"; + options: { + method: "GET"; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + token: { + type: string; + }; + userId: { + type: string; + }; + expiresAt: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + revokeSession: { + ; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/revoke-session"; + options: { + method: "POST"; + body: zod.ZodObject<{ + token: zod.ZodString; + }, "strip", zod.ZodTypeAny, { + token: string; + }, { + token: string; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + requestBody: { + content: { + "application/json": { + schema: { + type: "object"; + properties: { + token: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + revokeSessions: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/revoke-sessions"; + options: { + method: "POST"; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + requireHeaders: true; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + revokeOtherSessions: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/revoke-other-sessions"; + options: { + method: "POST"; + requireHeaders: true; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + status: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + linkSocialAccount: { + ; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }>]>(...ctx: C): Promise; + path: "/link-social"; + options: { + method: "POST"; + requireHeaders: true; + query: zod.ZodOptional; + }, "strip", zod.ZodTypeAny, { + currentURL?: string | undefined; + }, { + currentURL?: string | undefined; + }>>; + body: zod.ZodObject<{ + callbackURL: zod.ZodOptional; + provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>; + }, "strip", zod.ZodTypeAny, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }, { + provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab"; + callbackURL?: string | undefined; + }>; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "object"; + properties: { + url: { + type: string; + }; + redirect: { + type: string; + }; + }; + required: string[]; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + listUserAccounts: { + & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + id: { + type: string; + }; + provider: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }> | undefined)?]>(...ctx: C): Promise; + path: "/list-accounts"; + options: { + method: "GET"; + use: better_call.Endpoint & { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined; + userAgent?: string | null | undefined; + }; + user: Record & { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined; + }; + }; + }>, better_call.EndpointOptions>[]; + metadata: { + openapi: { + description: string; + responses: { + "200": { + description: string; + content: { + "application/json": { + schema: { + type: "array"; + items: { + type: string; + properties: { + id: { + type: string; + }; + provider: { + type: string; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + options: { + appName: string; + database: (options: better_auth.BetterAuthOptions) => { + id: string; + create, R = T>(data: { + model: string; + data: T; + select?: string[]; + }): Promise; + findOne(data: { + model: string; + where: better_auth.Where[]; + select?: string[]; + }): Promise; + findMany(data: { + model: string; + where?: better_auth.Where[]; + limit?: number; + sortBy?: { + field: string; + direction: "asc" | "desc"; + }; + offset?: number; + }): Promise; + update(data: { + model: string; + where: better_auth.Where[]; + update: Record; + }): Promise; + updateMany(data: { + model: string; + where: better_auth.Where[]; + update: Record; + }): Promise; + delete(data: { + model: string; + where: better_auth.Where[]; + }): Promise; + deleteMany(data: { + model: string; + where: better_auth.Where[]; + }): Promise; + options: better_auth_adapters_drizzle.DrizzleAdapterConfig; + }; + baseUrl: string | undefined; + basePath: string; + trustedOrigins: string[]; + user: { + additionalFields: { + handle: { + type: "string"; + }; + }; + }; + accounts: { + accountLinking: { + enabled: boolean; + trustedProviders: string[]; + }; + }; + socialProviders: { + google: { + clientId: string; + clientSecret: string; + }; + github: { + clientId: string; + clientSecret: string; + }; + apple: { + clientId: string; + clientSecret: string; + } | undefined; + }; + plugins: ({ + id: "custom-session"; + endpoints: { + getSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-session"; + options: { + method: "GET"; + metadata: { + CUSTOM_SESSION: boolean; + }; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + } | { + id: "getProviders"; + endpoints: { + getProviders: { + | undefined)?]>(...ctx: C): Promise; + path: "/get-providers"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + } | { + id: "createSession"; + endpoints: { + createSession: { + | undefined)?]>(...ctx: C): Promise; + path: "/create-session"; + options: { + method: "GET"; + }; + method: better_call.Method | better_call.Method[]; + headers: Headers; + }; + }; + })[]; + }; + $context: Promise; + $Infer: { + Session: { + session: { + id: string; + userId: string; + createdAt: Date; + updatedAt: Date; + expiresAt: Date; + token: string; + ipAddress?: string | null | undefined | undefined; + userAgent?: string | null | undefined | undefined; + }; + user: { + id: string; + createdAt: Date; + updatedAt: Date; + email: string; + emailVerified: boolean; + name: string; + image?: string | null | undefined | undefined; + handle: string; + }; + }; + }; +}; + +type AuthSession = Awaited>; + +declare const _routes: hono_hono_base.HonoBase | hono_types.MergeSchemaPath<{ "/": { $get: { @@ -6173,6 +9730,7 @@ declare const _routes: hono_hono_base.HonoBase, "/">; type AppType = typeof _routes; -export { type ActionsModel, type AirdropActivity, type AppType, type AttachmentsModel, CommonEntryFields, type ConditionItem, type DetailModel, type EntriesModel, type EntryReadHistoriesModel, type ExtraModel, type FeedModel, type MediaModel, type MessagingData, MessagingType, type SettingsModel, accounts, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, activityEnum, airdrops, airdropsOpenAPISchema, attachmentsZodSchema, boosts, collections, collectionsOpenAPISchema, collectionsRelations, detailModelSchema, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, extraZodSchema, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, inboxHandleSchema, inboxes, inboxesEntries, inboxesEntriesInsertOpenAPISchema, type inboxesEntriesModel, inboxesEntriesOpenAPISchema, inboxesEntriesRelations, inboxesOpenAPISchema, inboxesRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, levels, levelsOpenAPISchema, levelsRelations, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, lower, mediaZodSchema, messaging, messagingOpenAPISchema, messagingRelations, sessions, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, users, usersOpenApiSchema, usersRelations, verificationTokens, wallets, walletsOpenAPISchema, walletsRelations }; +export { type ActionsModel, type AirdropActivity, type AppType, type AttachmentsModel, type AuthSession, CommonEntryFields, type ConditionItem, type DetailModel, type EntriesModel, type EntryReadHistoriesModel, type ExtraModel, type FeedModel, type MediaModel, type MessagingData, MessagingType, type SettingsModel, account, accountAuthjs, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, activityEnum, airdrops, airdropsOpenAPISchema, attachmentsZodSchema, authPlugins, boosts, collections, collectionsOpenAPISchema, collectionsRelations, detailModelSchema, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, extraZodSchema, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, inboxHandleSchema, inboxes, inboxesEntries, inboxesEntriesInsertOpenAPISchema, type inboxesEntriesModel, inboxesEntriesOpenAPISchema, inboxesEntriesRelations, inboxesOpenAPISchema, inboxesRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, levels, levelsOpenAPISchema, levelsRelations, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, lower, mediaZodSchema, messaging, messagingOpenAPISchema, messagingRelations, session, sessionAuthjs, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, user, users, usersOpenApiSchema, usersRelations, verification, wallets, walletsOpenAPISchema, walletsRelations }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3d317690b..54ca14039 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,7 +8,7 @@ catalogs: default: es-toolkit: specifier: ^1.27.0 - version: 1.27.0 + version: 1.29.0 overrides: is-core-module: npm:@nolyfill/is-core-module@^1 @@ -163,7 +163,7 @@ importers: version: 16.4.5 drizzle-orm: specifier: 0.36.4 - version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1) + version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(kysely@0.27.4)(react@18.3.1) electron: specifier: 33.2.1 version: 33.2.1 @@ -399,9 +399,6 @@ importers: '@headlessui/react': specifier: 2.2.0 version: 2.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@hono/auth-js': - specifier: 1.0.15 - version: 1.0.15(@auth/core@0.37.4)(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))(react@18.3.1) '@hookform/resolvers': specifier: 3.9.1 version: 3.9.1(react-hook-form@7.53.2(react@18.3.1)) @@ -506,7 +503,7 @@ importers: version: 8.0.1(embla-carousel@8.5.1) es-toolkit: specifier: 'catalog:' - version: 1.27.0 + version: 1.29.0 firebase: specifier: 11.0.2 version: 11.0.2 @@ -754,9 +751,6 @@ importers: '@fontsource/sn-pro': specifier: 5.1.0 version: 5.1.0 - '@hono/auth-js': - specifier: 1.0.15 - version: 1.0.15(@auth/core@0.37.4)(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))(react@18.3.1) '@openpanel/web': specifier: 1.0.1 version: 1.0.1 @@ -874,7 +868,7 @@ importers: version: 4.1.0 es-toolkit: specifier: 'catalog:' - version: 1.27.0 + version: 1.29.0 foxact: specifier: 0.2.42 version: 0.2.42(react@18.3.1) @@ -1127,9 +1121,12 @@ importers: '@t3-oss/env-core': specifier: ^0.11.1 version: 0.11.1(typescript@5.7.2)(zod@3.23.8) + better-auth: + specifier: 1.0.7 + version: 1.0.7(encoding@0.1.13) drizzle-orm: specifier: ^0.36.4 - version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1) + version: 0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(kysely@0.27.4)(react@18.3.1) electron: specifier: ^33.2.1 version: 33.2.1 @@ -1725,6 +1722,9 @@ packages: resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} + '@better-fetch/fetch@1.1.12': + resolution: {integrity: sha512-B3bfloI/2UBQWIATRN6qmlORrvx3Mp0kkNjmXLv0b+DtbtR+pP4/I5kQA/rDUv+OReLywCCldf6co4LdDmh8JA==} + '@canvas/image-data@1.0.0': resolution: {integrity: sha512-BxOqI5LgsIQP1odU5KMwV9yoijleOPzHL18/YvNqF9KFSGF2K/DLlYAbDQsWqd/1nbaFuSkYD/191dpMtNh4vw==} @@ -1974,6 +1974,12 @@ packages: engines: {node: '>=14.14'} hasBin: true + '@emnapi/core@0.45.0': + resolution: {integrity: sha512-DPWjcUDQkCeEM4VnljEOEcXdAD7pp8zSZsgOujk/LGIwCXWbXJngin+MO4zbH429lzeC3WbYLGjE2MaUOwzpyw==} + + '@emnapi/runtime@0.45.0': + resolution: {integrity: sha512-Txumi3td7J4A/xTTwlssKieHKTGl3j4A1tglBx72auZ49YK7ePY6XZricgIg9mnZT4xPfA+UPCUdnhRuEFDL+w==} + '@emotion/is-prop-valid@1.3.1': resolution: {integrity: sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw==} @@ -2791,13 +2797,8 @@ packages: react: ^18 || ^19 || ^19.0.0-rc react-dom: ^18 || ^19 || ^19.0.0-rc - '@hono/auth-js@1.0.15': - resolution: {integrity: sha512-nuTP9zZBjJnHTCybQhC3cbTgboElhnlSuPFFogRcDUs9uqBd1mC2EM2jFlaErqim3laU325jP4j2tRCqiZnRHQ==} - engines: {node: '>=18.4.0'} - peerDependencies: - '@auth/core': 0.* - hono: '>=3.*' - react: ^18 || ^19 || ^19.0.0-rc + '@hexagon/base64@1.1.28': + resolution: {integrity: sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw==} '@hono/node-server@1.13.7': resolution: {integrity: sha512-kTfUMsoloVKtRA2fLiGSd9qBddmru9KadNyhJCwgKBxTiNkaAJEwkVN9KV/rS4HtmmNRtUh6P+YpmjRMl0d9vQ==} @@ -2890,6 +2891,9 @@ packages: '@jridgewell/trace-mapping@0.3.9': resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + '@levischuck/tiny-cbor@0.2.2': + resolution: {integrity: sha512-f5CnPw997Y2GQ8FAvtuVVC19FX8mwNNC+1XJcIi16n/LTJifKO6QBgGLgN3YEmqtGMk17SKSuoWES3imJVxAVw==} + '@lottiefiles/dotlottie-react@0.10.1': resolution: {integrity: sha512-+RED+Nhv5viaSOXsMcRDQoAOJsGgwXIHYSovNnatMGD5ioxfum7PYUCuuZicYFScyeLZJsSfjnzr5XaE6pivAg==} peerDependencies: @@ -2922,6 +2926,187 @@ packages: resolution: {integrity: sha512-Z+CZ3QaosfFaTqvhQsIktyGrjFjSC0Fa4EMph4mqKnWhmyoGICsV/8QK+8HpXut6zV7zwfWwqDmEjtk1Qf6EgQ==} engines: {node: '>=14.0.0'} + '@noble/ciphers@0.6.0': + resolution: {integrity: sha512-mIbq/R9QXk5/cTfESb1OKtyFnk7oc1Om/8onA1158K9/OZUQFDEVy55jVTato+xmp3XX6F6Qh0zz0Nc1AxAlRQ==} + + '@noble/hashes@1.6.1': + resolution: {integrity: sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==} + engines: {node: ^14.21.3 || >=16} + + '@node-rs/argon2-android-arm-eabi@1.7.0': + resolution: {integrity: sha512-udDqkr5P9E+wYX1SZwAVPdyfYvaF4ry9Tm+R9LkfSHbzWH0uhU6zjIwNRp7m+n4gx691rk+lqqDAIP8RLKwbhg==} + engines: {node: '>= 10'} + cpu: [arm] + os: [android] + + '@node-rs/argon2-android-arm64@1.7.0': + resolution: {integrity: sha512-s9j/G30xKUx8WU50WIhF0fIl1EdhBGq0RQ06lEhZ0Gi0ap8lhqbE2Bn5h3/G2D1k0Dx+yjeVVNmt/xOQIRG38A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@node-rs/argon2-darwin-arm64@1.7.0': + resolution: {integrity: sha512-ZIz4L6HGOB9U1kW23g+m7anGNuTZ0RuTw0vNp3o+2DWpb8u8rODq6A8tH4JRL79S+Co/Nq608m9uackN2pe0Rw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@node-rs/argon2-darwin-x64@1.7.0': + resolution: {integrity: sha512-5oi/pxqVhODW/pj1+3zElMTn/YukQeywPHHYDbcAW3KsojFjKySfhcJMd1DjKTc+CHQI+4lOxZzSUzK7mI14Hw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@node-rs/argon2-freebsd-x64@1.7.0': + resolution: {integrity: sha512-Ify08683hA4QVXYoIm5SUWOY5DPIT/CMB0CQT+IdxQAg/F+qp342+lUkeAtD5bvStQuCx/dFO3bnnzoe2clMhA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@node-rs/argon2-linux-arm-gnueabihf@1.7.0': + resolution: {integrity: sha512-7DjDZ1h5AUHAtRNjD19RnQatbhL+uuxBASuuXIBu4/w6Dx8n7YPxwTP4MXfsvuRgKuMWiOb/Ub/HJ3kXVCXRkg==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@node-rs/argon2-linux-arm64-gnu@1.7.0': + resolution: {integrity: sha512-nJDoMP4Y3YcqGswE4DvP080w6O24RmnFEDnL0emdI8Nou17kNYBzP2546Nasx9GCyLzRcYQwZOUjrtUuQ+od2g==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@node-rs/argon2-linux-arm64-musl@1.7.0': + resolution: {integrity: sha512-BKWS8iVconhE3jrb9mj6t1J9vwUqQPpzCbUKxfTGJfc+kNL58F1SXHBoe2cDYGnHrFEHTY0YochzXoAfm4Dm/A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@node-rs/argon2-linux-x64-gnu@1.7.0': + resolution: {integrity: sha512-EmgqZOlf4Jurk/szW1iTsVISx25bKksVC5uttJDUloTgsAgIGReCpUUO1R24pBhu9ESJa47iv8NSf3yAfGv6jQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@node-rs/argon2-linux-x64-musl@1.7.0': + resolution: {integrity: sha512-/o1efYCYIxjfuoRYyBTi2Iy+1iFfhqHCvvVsnjNSgO1xWiWrX0Rrt/xXW5Zsl7vS2Y+yu8PL8KFWRzZhaVxfKA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@node-rs/argon2-wasm32-wasi@1.7.0': + resolution: {integrity: sha512-Evmk9VcxqnuwQftfAfYEr6YZYSPLzmKUsbFIMep5nTt9PT4XYRFAERj7wNYp+rOcBenF3X4xoB+LhwcOMTNE5w==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@node-rs/argon2-win32-arm64-msvc@1.7.0': + resolution: {integrity: sha512-qgsU7T004COWWpSA0tppDqDxbPLgg8FaU09krIJ7FBl71Sz8SFO40h7fDIjfbTT5w7u6mcaINMQ5bSHu75PCaA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@node-rs/argon2-win32-ia32-msvc@1.7.0': + resolution: {integrity: sha512-JGafwWYQ/HpZ3XSwP4adQ6W41pRvhcdXvpzIWtKvX+17+xEXAe2nmGWM6s27pVkg1iV2ZtoYLRDkOUoGqZkCcg==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@node-rs/argon2-win32-x64-msvc@1.7.0': + resolution: {integrity: sha512-9oq4ShyFakw8AG3mRls0AoCpxBFcimYx7+jvXeAf2OqKNO+mSA6eZ9z7KQeVCi0+SOEUYxMGf5UiGiDb9R6+9Q==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@node-rs/argon2@1.7.0': + resolution: {integrity: sha512-zfULc+/tmcWcxn+nHkbyY8vP3+MpEqKORbszt4UkpqZgBgDAAIYvuDN/zukfTgdmo6tmJKKVfzigZOPk4LlIog==} + engines: {node: '>= 10'} + + '@node-rs/bcrypt-android-arm-eabi@1.9.0': + resolution: {integrity: sha512-nOCFISGtnodGHNiLrG0WYLWr81qQzZKYfmwHc7muUeq+KY0sQXyHOwZk9OuNQAWv/lnntmtbwkwT0QNEmOyLvA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [android] + + '@node-rs/bcrypt-android-arm64@1.9.0': + resolution: {integrity: sha512-+ZrIAtigVmjYkqZQTThHVlz0+TG6D+GDHWhVKvR2DifjtqJ0i+mb9gjo++hN+fWEQdWNGxKCiBBjwgT4EcXd6A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@node-rs/bcrypt-darwin-arm64@1.9.0': + resolution: {integrity: sha512-CQiS+F9Pa0XozvkXR1g7uXE9QvBOPOplDg0iCCPRYTN9PqA5qYxhwe48G3o+v2UeQceNRrbnEtWuANm7JRqIhw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@node-rs/bcrypt-darwin-x64@1.9.0': + resolution: {integrity: sha512-4pTKGawYd7sNEjdJ7R/R67uwQH1VvwPZ0SSUMmeNHbxD5QlwAPXdDH11q22uzVXsvNFZ6nGQBg8No5OUGpx6Ug==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@node-rs/bcrypt-freebsd-x64@1.9.0': + resolution: {integrity: sha512-UmWzySX4BJhT/B8xmTru6iFif3h0Rpx3TqxRLCcbgmH43r7k5/9QuhpiyzpvKGpKHJCFNm4F3rC2wghvw5FCIg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@node-rs/bcrypt-linux-arm-gnueabihf@1.9.0': + resolution: {integrity: sha512-8qoX4PgBND2cVwsbajoAWo3NwdfJPEXgpCsZQZURz42oMjbGyhhSYbovBCskGU3EBLoC8RA2B1jFWooeYVn5BA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@node-rs/bcrypt-linux-arm64-gnu@1.9.0': + resolution: {integrity: sha512-TuAC6kx0SbcIA4mSEWPi+OCcDjTQUMl213v5gMNlttF+D4ieIZx6pPDGTaMO6M2PDHTeCG0CBzZl0Lu+9b0c7Q==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@node-rs/bcrypt-linux-arm64-musl@1.9.0': + resolution: {integrity: sha512-/sIvKDABOI8QOEnLD7hIj02BVaNOuCIWBKvxcJOt8+TuwJ6zmY1UI5kSv9d99WbiHjTp97wtAUbZQwauU4b9ew==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@node-rs/bcrypt-linux-x64-gnu@1.9.0': + resolution: {integrity: sha512-DyyhDHDsLBsCKz1tZ1hLvUZSc1DK0FU0v52jK6IBQxrj24WscSU9zZe7ie/V9kdmA4Ep57BfpWX8Dsa2JxGdgQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@node-rs/bcrypt-linux-x64-musl@1.9.0': + resolution: {integrity: sha512-duIiuqQ+Lew8ASSAYm6ZRqcmfBGWwsi81XLUwz86a2HR7Qv6V4yc3ZAUQovAikhjCsIqe8C11JlAZSK6+PlXYg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@node-rs/bcrypt-wasm32-wasi@1.9.0': + resolution: {integrity: sha512-ylaGmn9Wjwv/D5lxtawttx3H6Uu2WTTR7lWlRHGT6Ga/MB1Vj4OjSGUW8G8zIVnKuXpGbZ92pgHlt4HUpSLctw==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@node-rs/bcrypt-win32-arm64-msvc@1.9.0': + resolution: {integrity: sha512-2h86gF7QFyEzODuDFml/Dp1MSJoZjxJ4yyT2Erf4NkwsiA5MqowUhUsorRwZhX6+2CtlGa7orbwi13AKMsYndw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@node-rs/bcrypt-win32-ia32-msvc@1.9.0': + resolution: {integrity: sha512-kqxalCvhs4FkN0+gWWfa4Bdy2NQAkfiqq/CEf6mNXC13RSV673Ev9V8sRlQyNpCHCNkeXfOT9pgoBdJmMs9muA==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@node-rs/bcrypt-win32-x64-msvc@1.9.0': + resolution: {integrity: sha512-2y0Tuo6ZAT2Cz8V7DHulSlv1Bip3zbzeXyeur+uR25IRNYXKvI/P99Zl85Fbuu/zzYAZRLLlGTRe6/9IHofe/w==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@node-rs/bcrypt@1.9.0': + resolution: {integrity: sha512-u2OlIxW264bFUfvbFqDz9HZKFjwe8FHFtn7T/U8mYjPZ7DWYpbUB+/dkW/QgYfMSfR0ejkyuWaBBe0coW7/7ig==} + engines: {node: '>= 10'} + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -3257,6 +3442,21 @@ packages: '@panva/hkdf@1.2.1': resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==} + '@peculiar/asn1-android@2.3.13': + resolution: {integrity: sha512-0VTNazDGKrLS6a3BwTDZanqq6DR/I3SbvmDMuS8Be+OYpvM6x1SRDh9AGDsHVnaCOIztOspCPc6N1m+iUv1Xxw==} + + '@peculiar/asn1-ecc@2.3.14': + resolution: {integrity: sha512-zWPyI7QZto6rnLv6zPniTqbGaLh6zBpJyI46r1yS/bVHJXT2amdMHCRRnbV5yst2H8+ppXG6uXu/M6lKakiQ8w==} + + '@peculiar/asn1-rsa@2.3.13': + resolution: {integrity: sha512-wBNQqCyRtmqvXkGkL4DR3WxZhHy8fDiYtOjTeCd7SFE5F6GBeafw3EJ94PX/V0OJJrjQ40SkRY2IZu3ZSyBqcg==} + + '@peculiar/asn1-schema@2.3.13': + resolution: {integrity: sha512-3Xq3a01WkHRZL8X04Zsfg//mGaA21xlL4tlVn4v2xGT0JStiztATRkMwa5b+f/HXmY2smsiLXYK46Gwgzvfg3g==} + + '@peculiar/asn1-x509@2.3.13': + resolution: {integrity: sha512-PfeLQl2skXmxX2/AFFCVaWU8U6FKW1Db43mgBhShCOFS1bVxqtvusq1hVjfuEcuSQGedrLdCSvTgabluwN/M9A==} + '@pengx17/electron-forge-maker-appimage@1.2.1': resolution: {integrity: sha512-6w1XbUUZS431UaubbBQvKYDGs2MnTFxEWeJX1RjQXrxl0LrZULOarTogpda8UR9y7nAwtuEKm84OxWBrtH87ww==} @@ -4348,6 +4548,16 @@ packages: engines: {node: '>= 8.0.0'} hasBin: true + '@simplewebauthn/browser@10.0.0': + resolution: {integrity: sha512-hG0JMZD+LiLUbpQcAjS4d+t4gbprE/dLYop/CkE01ugU/9sKXflxV5s0DRjdz3uNMFecatRfb4ZLG3XvF8m5zg==} + + '@simplewebauthn/server@10.0.1': + resolution: {integrity: sha512-djNWcRn+H+6zvihBFJSpG3fzb0NQS9c/Mw5dYOtZ9H+oDw8qn9Htqxt4cpqRvSOAfwqP7rOvE9rwqVaoGGc3hg==} + engines: {node: '>=20.0.0'} + + '@simplewebauthn/types@10.0.0': + resolution: {integrity: sha512-SFXke7xkgPRowY2E+8djKbdEznTVnD5R6GO7GPTthpHrokLvNKw8C3lFZypTxLI7KkCfGPfhtqB3d7OVGGa9jQ==} + '@sindresorhus/is@4.6.0': resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} engines: {node: '>=10'} @@ -4456,6 +4666,9 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + '@tybys/wasm-util@0.8.3': + resolution: {integrity: sha512-Z96T/L6dUFFxgFJ+pQtkPpne9q7i6kIPYCFnQBHSgSPV9idTsKfIhCss0h5iM9irweZCatkrdeP8yi5uM1eX6Q==} + '@types/appdmg@0.5.5': resolution: {integrity: sha512-G+n6DgZTZFOteITE30LnWj+HRVIGr7wMlAiLWOO02uJFWVEitaPU9JVXm9wJokkgshBawb2O1OykdcsmkkZfgg==} @@ -4947,6 +5160,10 @@ packages: asn1.js@5.4.1: resolution: {integrity: sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==} + asn1js@3.0.5: + resolution: {integrity: sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==} + engines: {node: '>=12.0.0'} + assert-plus@1.0.0: resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} engines: {node: '>=0.8'} @@ -5074,6 +5291,12 @@ packages: before-after-hook@2.2.3: resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==} + better-auth@1.0.7: + resolution: {integrity: sha512-BTVgD4tBxlUlT47MRrzk8UE1wKDH4J4cebcNJ5lL7c3BxrNZNfhGjKGpUKTqvtZ1aXU5kKeoJwTFOVr0DXgg2Q==} + + better-call@0.3.3-beta.2: + resolution: {integrity: sha512-pk+dXQGICPphvMKxl1VOWUUDXF4AYC4DQhLFLSBwS/pfgryhfnx1yJhGqApJzy8eJi5aN5+uLSWDGzKJaMuCGQ==} + binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -5667,6 +5890,9 @@ packages: engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} hasBin: true + cross-fetch@4.0.0: + resolution: {integrity: sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==} + cross-spawn@6.0.6: resolution: {integrity: sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==} engines: {node: '>=4.8'} @@ -6299,9 +6525,6 @@ packages: resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==} engines: {node: '>= 0.4'} - es-toolkit@1.27.0: - resolution: {integrity: sha512-ETSFA+ZJArcuSCpzD2TjAy6UHpx4E4uqFsoDg9F/nTLogrLmVVZQ+zNxco5h7cWnA1nNak07IXsLcaSMih+ZPQ==} - es-toolkit@1.29.0: resolution: {integrity: sha512-GjTll+E6APcfAQA09D89HdT8Qn2Yb+TeDSDBTMcxAo+V+w1amAtCI15LJu4YPH/UCPoSo/F47Gr1LIM0TE0lZA==} @@ -6992,6 +7215,9 @@ packages: resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==} engines: {node: '>= 8'} + fs-monkey@1.0.6: + resolution: {integrity: sha512-b1FMfwetIKymC0eioW7mTywihSQE4oLzQn1dB6rZB5fx/3NpNEdAWeCSMB+60/AeT0TCXsxzAlcYVEFCTAksWg==} + fs-temp@1.2.1: resolution: {integrity: sha512-okTwLB7/Qsq82G6iN5zZJFsOfZtx2/pqrA7Hk/9fvy+c+eJS9CvgGXT2uNxwnI14BDY9L/jQPkaBgSvlKfSW9w==} @@ -7529,6 +7755,10 @@ packages: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} + ipaddr.js@2.2.0: + resolution: {integrity: sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==} + engines: {node: '>= 10'} + is-alphabetical@2.0.1: resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==} @@ -7915,6 +8145,10 @@ packages: kose-font@1.0.0: resolution: {integrity: sha512-8R1M6ajjPvG0E4UxiNgZe0Hoy4qGTX1RuNZHN96dvqzuUwNM08gkpx1O+Q8/PzT8lp3lqH7w2DCUCGr8Wt7wPA==} + kysely@0.27.4: + resolution: {integrity: sha512-dyNKv2KRvYOQPLCAOCjjQuCk4YFd33BvGdf/o5bC7FiW+BB6snA81Zt+2wT9QDFzKqxKa5rrOmvlK/anehCcgA==} + engines: {node: '>=14.0.0'} + lazy-val@1.0.5: resolution: {integrity: sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==} @@ -8291,6 +8525,13 @@ packages: resolution: {integrity: sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==} engines: {node: '>=6'} + memfs-browser@3.5.10302: + resolution: {integrity: sha512-JJTc/nh3ig05O0gBBGZjTCPOyydaTxNF0uHYBrcc1gHNnO+KIHIvo0Y1FKCJsaei6FCl8C6xfQomXqu+cuzkIw==} + + memfs@3.5.3: + resolution: {integrity: sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==} + engines: {node: '>= 4.0.0'} + meow@13.2.0: resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==} engines: {node: '>=18'} @@ -8564,6 +8805,10 @@ packages: engines: {node: ^18 || >=20} hasBin: true + nanostores@0.11.3: + resolution: {integrity: sha512-TUes3xKIX33re4QzdxwZ6tdbodjmn3tWXCEc1uokiEmo14sI1EaGYNs2k3bU2pyyGNmBqFGAVl6jAGWd06AVIg==} + engines: {node: ^18.0.0 || >=20.0.0} + napi-build-utils@1.0.2: resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} @@ -8755,6 +9000,9 @@ packages: resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} engines: {node: '>=10'} + oslo@1.2.1: + resolution: {integrity: sha512-HfIhB5ruTdQv0XX2XlncWQiJ5SIHZ7NHZhVyHth0CSZ/xzge00etRyYy/3wp/Dsu+PkxMC+6+B2lS/GcKoewkA==} + overlap-area@1.1.0: resolution: {integrity: sha512-3dlJgJCaVeXH0/eZjYVJvQiLVVrPO4U1ZGqlATtx6QGO3b5eNM6+JgUKa7oStBTdYuGTk7gVoABCW6Tp+dhRdw==} @@ -9429,6 +9677,13 @@ packages: resolution: {integrity: sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==} engines: {node: '>=12.20'} + pvtsutils@1.3.6: + resolution: {integrity: sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==} + + pvutils@1.1.3: + resolution: {integrity: sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==} + engines: {node: '>=6.0.0'} + queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -9915,6 +10170,9 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + rou3@0.5.1: + resolution: {integrity: sha512-OXMmJ3zRk2xeXFGfA3K+EOPHC5u7RDFG7lIOx0X1pdnhUkI8MdVrbV+sNsD80ElpUZ+MRHdyxPnFthq9VHs8uQ==} + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -10762,6 +11020,9 @@ packages: unconfig@0.5.5: resolution: {integrity: sha512-VQZ5PT9HDX+qag0XdgQi8tJepPhXiR/yVOkn707gJDKo31lGjRilPREiQJ9Z6zd/Ugpv6ZvO5VxVIcatldYcNQ==} + uncrypto@0.1.3: + resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} + undici-types@6.19.8: resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} @@ -12065,6 +12326,8 @@ snapshots: '@babel/helper-string-parser': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 + '@better-fetch/fetch@1.1.12': {} + '@canvas/image-data@1.0.0': {} '@cfcs/core@0.0.6': @@ -12577,6 +12840,16 @@ snapshots: transitivePeerDependencies: - supports-color + '@emnapi/core@0.45.0': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@0.45.0': + dependencies: + tslib: 2.8.1 + optional: true + '@emotion/is-prop-valid@1.3.1': dependencies: '@emotion/memoize': 0.9.0 @@ -13396,11 +13669,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@hono/auth-js@1.0.15(@auth/core@0.37.4)(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))(react@18.3.1)': - dependencies: - '@auth/core': 0.37.4 - hono: 4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24) - react: 18.3.1 + '@hexagon/base64@1.1.28': {} '@hono/node-server@1.13.7(hono@4.6.12(patch_hash=qptujxncoai6tukc4qaqsrqk24))': dependencies: @@ -13513,6 +13782,8 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 + '@levischuck/tiny-cbor@0.2.2': {} + '@lottiefiles/dotlottie-react@0.10.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@lottiefiles/dotlottie-web': 0.38.0 @@ -13564,6 +13835,138 @@ snapshots: '@mozilla/readability@0.5.0(patch_hash=43niildbdafdxi7qfcwhpkkxwa)': {} + '@noble/ciphers@0.6.0': {} + + '@noble/hashes@1.6.1': {} + + '@node-rs/argon2-android-arm-eabi@1.7.0': + optional: true + + '@node-rs/argon2-android-arm64@1.7.0': + optional: true + + '@node-rs/argon2-darwin-arm64@1.7.0': + optional: true + + '@node-rs/argon2-darwin-x64@1.7.0': + optional: true + + '@node-rs/argon2-freebsd-x64@1.7.0': + optional: true + + '@node-rs/argon2-linux-arm-gnueabihf@1.7.0': + optional: true + + '@node-rs/argon2-linux-arm64-gnu@1.7.0': + optional: true + + '@node-rs/argon2-linux-arm64-musl@1.7.0': + optional: true + + '@node-rs/argon2-linux-x64-gnu@1.7.0': + optional: true + + '@node-rs/argon2-linux-x64-musl@1.7.0': + optional: true + + '@node-rs/argon2-wasm32-wasi@1.7.0': + dependencies: + '@emnapi/core': 0.45.0 + '@emnapi/runtime': 0.45.0 + '@tybys/wasm-util': 0.8.3 + memfs-browser: 3.5.10302 + optional: true + + '@node-rs/argon2-win32-arm64-msvc@1.7.0': + optional: true + + '@node-rs/argon2-win32-ia32-msvc@1.7.0': + optional: true + + '@node-rs/argon2-win32-x64-msvc@1.7.0': + optional: true + + '@node-rs/argon2@1.7.0': + optionalDependencies: + '@node-rs/argon2-android-arm-eabi': 1.7.0 + '@node-rs/argon2-android-arm64': 1.7.0 + '@node-rs/argon2-darwin-arm64': 1.7.0 + '@node-rs/argon2-darwin-x64': 1.7.0 + '@node-rs/argon2-freebsd-x64': 1.7.0 + '@node-rs/argon2-linux-arm-gnueabihf': 1.7.0 + '@node-rs/argon2-linux-arm64-gnu': 1.7.0 + '@node-rs/argon2-linux-arm64-musl': 1.7.0 + '@node-rs/argon2-linux-x64-gnu': 1.7.0 + '@node-rs/argon2-linux-x64-musl': 1.7.0 + '@node-rs/argon2-wasm32-wasi': 1.7.0 + '@node-rs/argon2-win32-arm64-msvc': 1.7.0 + '@node-rs/argon2-win32-ia32-msvc': 1.7.0 + '@node-rs/argon2-win32-x64-msvc': 1.7.0 + + '@node-rs/bcrypt-android-arm-eabi@1.9.0': + optional: true + + '@node-rs/bcrypt-android-arm64@1.9.0': + optional: true + + '@node-rs/bcrypt-darwin-arm64@1.9.0': + optional: true + + '@node-rs/bcrypt-darwin-x64@1.9.0': + optional: true + + '@node-rs/bcrypt-freebsd-x64@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-arm-gnueabihf@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-arm64-gnu@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-arm64-musl@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-x64-gnu@1.9.0': + optional: true + + '@node-rs/bcrypt-linux-x64-musl@1.9.0': + optional: true + + '@node-rs/bcrypt-wasm32-wasi@1.9.0': + dependencies: + '@emnapi/core': 0.45.0 + '@emnapi/runtime': 0.45.0 + '@tybys/wasm-util': 0.8.3 + memfs-browser: 3.5.10302 + optional: true + + '@node-rs/bcrypt-win32-arm64-msvc@1.9.0': + optional: true + + '@node-rs/bcrypt-win32-ia32-msvc@1.9.0': + optional: true + + '@node-rs/bcrypt-win32-x64-msvc@1.9.0': + optional: true + + '@node-rs/bcrypt@1.9.0': + optionalDependencies: + '@node-rs/bcrypt-android-arm-eabi': 1.9.0 + '@node-rs/bcrypt-android-arm64': 1.9.0 + '@node-rs/bcrypt-darwin-arm64': 1.9.0 + '@node-rs/bcrypt-darwin-x64': 1.9.0 + '@node-rs/bcrypt-freebsd-x64': 1.9.0 + '@node-rs/bcrypt-linux-arm-gnueabihf': 1.9.0 + '@node-rs/bcrypt-linux-arm64-gnu': 1.9.0 + '@node-rs/bcrypt-linux-arm64-musl': 1.9.0 + '@node-rs/bcrypt-linux-x64-gnu': 1.9.0 + '@node-rs/bcrypt-linux-x64-musl': 1.9.0 + '@node-rs/bcrypt-wasm32-wasi': 1.9.0 + '@node-rs/bcrypt-win32-arm64-msvc': 1.9.0 + '@node-rs/bcrypt-win32-ia32-msvc': 1.9.0 + '@node-rs/bcrypt-win32-x64-msvc': 1.9.0 + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -14004,6 +14407,40 @@ snapshots: '@panva/hkdf@1.2.1': {} + '@peculiar/asn1-android@2.3.13': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + asn1js: 3.0.5 + tslib: 2.8.1 + + '@peculiar/asn1-ecc@2.3.14': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + '@peculiar/asn1-x509': 2.3.13 + asn1js: 3.0.5 + tslib: 2.8.1 + + '@peculiar/asn1-rsa@2.3.13': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + '@peculiar/asn1-x509': 2.3.13 + asn1js: 3.0.5 + tslib: 2.8.1 + + '@peculiar/asn1-schema@2.3.13': + dependencies: + asn1js: 3.0.5 + pvtsutils: 1.3.6 + tslib: 2.8.1 + + '@peculiar/asn1-x509@2.3.13': + dependencies: + '@peculiar/asn1-schema': 2.3.13 + asn1js: 3.0.5 + ipaddr.js: 2.2.0 + pvtsutils: 1.3.6 + tslib: 2.8.1 + '@pengx17/electron-forge-maker-appimage@1.2.1(dmg-builder@25.1.8)(electron-builder-squirrel-windows@25.1.8)': dependencies: '@electron-forge/maker-base': 7.6.0 @@ -15151,6 +15588,26 @@ snapshots: fflate: 0.7.4 string.prototype.codepointat: 0.2.1 + '@simplewebauthn/browser@10.0.0': + dependencies: + '@simplewebauthn/types': 10.0.0 + + '@simplewebauthn/server@10.0.1(encoding@0.1.13)': + dependencies: + '@hexagon/base64': 1.1.28 + '@levischuck/tiny-cbor': 0.2.2 + '@peculiar/asn1-android': 2.3.13 + '@peculiar/asn1-ecc': 2.3.14 + '@peculiar/asn1-rsa': 2.3.13 + '@peculiar/asn1-schema': 2.3.13 + '@peculiar/asn1-x509': 2.3.13 + '@simplewebauthn/types': 10.0.0 + cross-fetch: 4.0.0(encoding@0.1.13) + transitivePeerDependencies: + - encoding + + '@simplewebauthn/types@10.0.0': {} + '@sindresorhus/is@4.6.0': {} '@stylistic/eslint-plugin@2.11.0(eslint@9.16.0(jiti@2.3.3))(typescript@5.7.2)': @@ -15264,6 +15721,11 @@ snapshots: '@tsconfig/node16@1.0.4': {} + '@tybys/wasm-util@0.8.3': + dependencies: + tslib: 2.8.1 + optional: true + '@types/appdmg@0.5.5': dependencies: '@types/node': 22.10.1 @@ -15973,6 +16435,12 @@ snapshots: minimalistic-assert: 1.0.1 safer-buffer: 2.1.2 + asn1js@3.0.5: + dependencies: + pvtsutils: 1.3.6 + pvutils: 1.1.3 + tslib: 2.8.1 + assert-plus@1.0.0: optional: true @@ -16102,6 +16570,34 @@ snapshots: before-after-hook@2.2.3: {} + better-auth@1.0.7(encoding@0.1.13): + dependencies: + '@better-fetch/fetch': 1.1.12 + '@noble/ciphers': 0.6.0 + '@noble/hashes': 1.6.1 + '@simplewebauthn/browser': 10.0.0 + '@simplewebauthn/server': 10.0.1(encoding@0.1.13) + better-call: 0.3.3-beta.2 + consola: 3.2.3 + defu: 6.1.4 + jose: 5.9.6 + kysely: 0.27.4 + nanoid: 5.0.9 + nanostores: 0.11.3 + oslo: 1.2.1 + uncrypto: 0.1.3 + zod: 3.23.8 + transitivePeerDependencies: + - encoding + + better-call@0.3.3-beta.2: + dependencies: + '@better-fetch/fetch': 1.1.12 + rou3: 0.5.1 + set-cookie-parser: 2.7.1 + uncrypto: 0.1.3 + zod: 3.23.8 + binary-extensions@2.3.0: {} bindings@1.5.0: @@ -16801,6 +17297,12 @@ snapshots: dependencies: cross-spawn: 7.0.6 + cross-fetch@4.0.0(encoding@0.1.13): + dependencies: + node-fetch: 2.7.0(encoding@0.1.13) + transitivePeerDependencies: + - encoding + cross-spawn@6.0.6: dependencies: nice-try: 1.0.5 @@ -17215,11 +17717,12 @@ snapshots: dotenv@9.0.2: {} - drizzle-orm@0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(react@18.3.1): + drizzle-orm@0.36.4(@opentelemetry/api@1.9.0)(@types/pg@8.11.10)(@types/react@18.3.12)(kysely@0.27.4)(react@18.3.1): optionalDependencies: '@opentelemetry/api': 1.9.0 '@types/pg': 8.11.10 '@types/react': 18.3.12 + kysely: 0.27.4 react: 18.3.1 ds-store@0.1.6: @@ -17517,8 +18020,6 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 - es-toolkit@1.27.0: {} - es-toolkit@1.29.0: {} es6-error@4.1.1: @@ -18432,6 +18933,9 @@ snapshots: dependencies: minipass: 3.3.6 + fs-monkey@1.0.6: + optional: true + fs-temp@1.2.1: dependencies: random-path: 0.1.2 @@ -19167,6 +19671,8 @@ snapshots: ipaddr.js@1.9.1: {} + ipaddr.js@2.2.0: {} + is-alphabetical@2.0.1: {} is-alphanumerical@2.0.1: @@ -19520,6 +20026,8 @@ snapshots: kose-font@1.0.0: {} + kysely@0.27.4: {} + lazy-val@1.0.5: {} lazystream@1.0.1: @@ -20031,6 +20539,16 @@ snapshots: mimic-fn: 2.1.0 p-is-promise: 2.1.0 + memfs-browser@3.5.10302: + dependencies: + memfs: 3.5.3 + optional: true + + memfs@3.5.3: + dependencies: + fs-monkey: 1.0.6 + optional: true + meow@13.2.0: {} merge-stream@2.0.0: {} @@ -20399,6 +20917,8 @@ snapshots: nanoid@5.0.9: {} + nanostores@0.11.3: {} + napi-build-utils@1.0.2: {} natural-compare@1.4.0: {} @@ -20609,6 +21129,11 @@ snapshots: strip-ansi: 6.0.1 wcwidth: 1.0.1 + oslo@1.2.1: + dependencies: + '@node-rs/argon2': 1.7.0 + '@node-rs/bcrypt': 1.9.0 + overlap-area@1.1.0: dependencies: '@daybrush/utils': 1.13.0 @@ -21232,6 +21757,12 @@ snapshots: dependencies: escape-goat: 4.0.0 + pvtsutils@1.3.6: + dependencies: + tslib: 2.8.1 + + pvutils@1.1.3: {} + queue-microtask@1.2.3: {} queue-tick@1.0.1: {} @@ -21826,6 +22357,8 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.28.0 fsevents: 2.3.3 + rou3@0.5.1: {} + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -22788,6 +23321,8 @@ snapshots: transitivePeerDependencies: - supports-color + uncrypto@0.1.3: {} + undici-types@6.19.8: {} undici-types@6.20.0: {} diff --git a/types/authjs.d.ts b/types/authjs.d.ts deleted file mode 100644 index e6a3b4360..000000000 --- a/types/authjs.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -declare module "@auth/core/types" { - interface User { - handle?: string | null - - id: string - name: string - email: string - emailVerified: null - image: string - handle: null - createdAt: string - } - - interface Session { - user: User - role: "user" | "trial" - } -} From 3c18768968aeb4635933ae616c52de55b6fad2ab Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 3 Dec 2024 14:20:39 +0800 Subject: [PATCH 39/80] fix: mobile pop back to entry list will refresh data Signed-off-by: Innei --- .../src/modules/entry-column/components/DateItem.tsx | 6 ++++-- apps/renderer/src/queries/entries.ts | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/renderer/src/modules/entry-column/components/DateItem.tsx b/apps/renderer/src/modules/entry-column/components/DateItem.tsx index ce74f7e21..54f6f1372 100644 --- a/apps/renderer/src/modules/entry-column/components/DateItem.tsx +++ b/apps/renderer/src/modules/entry-column/components/DateItem.tsx @@ -73,7 +73,7 @@ const DateItemInner: FC = ({ const rid = useId() const RelativeElement = useMemo( () => ( - + ), @@ -175,7 +175,9 @@ const SocialMediaDateItem = ({ // @ts-expect-error Wrapper={useCallback( ({ children }) => ( -
{children}
+
+ {children} +
), [], )} diff --git a/apps/renderer/src/queries/entries.ts b/apps/renderer/src/queries/entries.ts index 2dd59d622..2550bb9a5 100644 --- a/apps/renderer/src/queries/entries.ts +++ b/apps/renderer/src/queries/entries.ts @@ -163,7 +163,8 @@ export const useEntries = ({ staleTime: // Force refetch unread entries when feed is dirty - fetchUnread && feedUnreadDirty + // HACK: disable refetch when the router is pop to previous page + fetchUnread && feedUnreadDirty && !history.isPop ? 0 : // Keep reduce data fetch logic reduceRefetch From 5fec56e9b02ec8a3dbed7c99a7328edf51d41035 Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 3 Dec 2024 14:49:15 +0800 Subject: [PATCH 40/80] fix: don't inject pwa into debug html Signed-off-by: Innei --- apps/renderer/__debug_proxy.html | 8 -- apps/renderer/__debug_proxy.ts | 95 ---------------- apps/renderer/debug_proxy.html | 105 ++++++++++++++++++ .../entry-column/Items/social-media-item.tsx | 12 +- configs/tailwind-extend.css | 4 + vite.config.ts | 18 ++- 6 files changed, 131 insertions(+), 111 deletions(-) delete mode 100644 apps/renderer/__debug_proxy.html delete mode 100644 apps/renderer/__debug_proxy.ts create mode 100644 apps/renderer/debug_proxy.html diff --git a/apps/renderer/__debug_proxy.html b/apps/renderer/__debug_proxy.html deleted file mode 100644 index 147c9c40d..000000000 --- a/apps/renderer/__debug_proxy.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - Debug Proxy - - - - diff --git a/apps/renderer/__debug_proxy.ts b/apps/renderer/__debug_proxy.ts deleted file mode 100644 index e1d5ef3b1..000000000 --- a/apps/renderer/__debug_proxy.ts +++ /dev/null @@ -1,95 +0,0 @@ -globalThis["__DEBUG_PROXY__"] = true - -const searchParams = new URLSearchParams(window.location.search) -const debugHost = searchParams.get("debug-host") - -const resetSessionStorage = () => { - sessionStorage.removeItem("debug-host") -} - -const resetParams = searchParams.get("reset") -if (resetParams) { - resetSessionStorage() -} - -const debugHostInSessionStorage = sessionStorage.getItem("debug-host") - -const host = debugHost || debugHostInSessionStorage || "https://localhost:2233" -if (debugHost) { - sessionStorage.setItem("debug-host", debugHost) -} - -const createRefreshRuntimeScript = ` -import RefreshRuntime from "${host}/@react-refresh"; -RefreshRuntime.injectIntoGlobalHook(window); -window.$RefreshReg$ = () => {}; -window.$RefreshSig$ = () => (type) => type; -window.__vite_plugin_react_preamble_installed__ = true; -` -const $script = document.createElement("script") -$script.innerHTML = createRefreshRuntimeScript -$script.type = "module" -document.head.append($script) - -fetch(`${host}`) - .then((res) => res.text()) - .then((html) => { - const parser = new DOMParser() - const doc = parser.parseFromString(html, "text/html") - - const scripts = doc.querySelectorAll("script") - - scripts.forEach((script) => { - script.remove() - }) - - // header meta - - const $meta = doc.head.querySelectorAll("meta") - $meta.forEach((meta) => { - document.head.append(meta) - }) - - const $style = doc.head.querySelectorAll("style") - $style.forEach((style) => { - document.head.append(style) - }) - - document.body.innerHTML = doc.body.innerHTML - - scripts.forEach((script) => { - const $script = document.createElement("script") - $script.type = "module" - $script.crossOrigin = script.crossOrigin - - if (script.src) { - $script.src = new URL( - script.src.startsWith("http") ? new URL(script.src).pathname : script.src, - host, - ).toString() - } else if (script.innerHTML) { - $script.innerHTML = script.innerHTML - } else { - return - } - - document.body.append($script) - }) - }) - -const injectScript = (apiUrl: string) => { - const upstreamOrigin = window.location.origin - const template = `function injectEnv(env2) { -for (const key in env2) { -if (env2[key] === void 0) continue; -globalThis["__followEnv"] ??= {}; -globalThis["__followEnv"][key] = env2[key]; -} -} -injectEnv({"VITE_API_URL":"${apiUrl}","VITE_EXTERNAL_API_URL":"${apiUrl}","VITE_WEB_URL":"${upstreamOrigin}"})` - const $script = document.createElement("script") - $script.innerHTML = template - document.head.prepend($script) -} - -injectScript(import.meta.env.VITE_API_URL) diff --git a/apps/renderer/debug_proxy.html b/apps/renderer/debug_proxy.html new file mode 100644 index 000000000..f2ff9ae0b --- /dev/null +++ b/apps/renderer/debug_proxy.html @@ -0,0 +1,105 @@ + + + + Debug Proxy + + + + + diff --git a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx index 3d94a96e4..22a10427e 100644 --- a/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx +++ b/apps/renderer/src/modules/entry-column/Items/social-media-item.tsx @@ -1,6 +1,6 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" import { AutoResizeHeight } from "@follow/components/ui/auto-resize-height/index.js" -import { ActionButton, MotionButtonBase } from "@follow/components/ui/button/index.js" +import { ActionButton } from "@follow/components/ui/button/index.js" import { Skeleton } from "@follow/components/ui/skeleton/index.jsx" import type { MediaModel } from "@follow/shared/hono" import { LRUCache } from "@follow/utils/lru-cache" @@ -379,15 +379,15 @@ const CollapsedSocialMediaItem: Component<{ "relative", !isShowMore && "max-h-[300px] overflow-hidden", isShowMore && "h-auto", - !isShowMore && isOverflow && "mask-b-xl", + !isShowMore && isOverflow && "mask-b-2xl", )} ref={ref} > {children}
{isOverflow && !isShowMore && ( -
- +
)} diff --git a/configs/tailwind-extend.css b/configs/tailwind-extend.css index 08a9e9b6d..5a25865a3 100644 --- a/configs/tailwind-extend.css +++ b/configs/tailwind-extend.css @@ -409,6 +409,10 @@ mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 70px), rgba(255, 255, 255, 0) 100%); } + .mask-b-2xl { + mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 90px), rgba(255, 255, 255, 0) 100%); + } + .mask-horizontal { mask-image: linear-gradient( 90deg, diff --git a/vite.config.ts b/vite.config.ts index c38b1f650..2a0e4732e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,4 @@ +import { copyFileSync, existsSync } from "node:fs" import { resolve } from "node:path" import { fileURLToPath } from "node:url" @@ -5,7 +6,7 @@ import legacy from "@vitejs/plugin-legacy" import { minify as htmlMinify } from "html-minifier-terser" import { cyan, dim, green } from "kolorist" import { parseHTML } from "linkedom" -import type { PluginOption, ViteDevServer } from "vite" +import type { PluginOption, ResolvedConfig, ViteDevServer } from "vite" import { defineConfig, loadEnv } from "vite" import { analyzer } from "vite-bundle-analyzer" import mkcert from "vite-plugin-mkcert" @@ -57,7 +58,6 @@ export default ({ mode }) => { rollupOptions: { input: { main: resolve(ROOT, "/index.html"), - __debug_proxy: resolve(ROOT, "/__debug_proxy.html"), }, }, }, @@ -134,6 +134,7 @@ export default ({ mode }) => { globPatterns: [ "**/*.{js,json,css,html,txt,svg,png,ico,webp,woff,woff2,ttf,eot,otf,wasm}", ], + manifestTransforms: [ (manifest) => { return { @@ -288,9 +289,22 @@ function checkBrowserSupport() { } const htmlPlugin: (env: any) => PluginOption = () => { + let config: ResolvedConfig return { name: "html-transform", + configResolved(resolvedConfig) { + config = resolvedConfig + }, enforce: "post", + closeBundle() { + const { root } = config + const dist = config.build.outDir + const debugProxyHtml = resolve(root, "debug_proxy.html") + + if (existsSync(debugProxyHtml)) { + copyFileSync(debugProxyHtml, resolve(dist, "__debug_proxy.html")) + } + }, transformIndexHtml(html) { return htmlMinify( html.replace( From 810516ae7d9b4196c047249cb0f889de8b012b99 Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 3 Dec 2024 14:59:25 +0800 Subject: [PATCH 41/80] fix(debug): inject `import.env` Signed-off-by: Innei --- apps/renderer/debug_proxy.html | 2 +- vite.config.ts | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/renderer/debug_proxy.html b/apps/renderer/debug_proxy.html index f2ff9ae0b..efc372c2e 100644 --- a/apps/renderer/debug_proxy.html +++ b/apps/renderer/debug_proxy.html @@ -3,7 +3,7 @@ Debug Proxy -