Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

fix(web): restore issue scroll position on browser history (#247)

Denis Zabozhanovb82167af6b39
diff --git a/apps/web/package.json b/apps/web/package.json
index 80c0bb48..1c951712 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -76,12 +76,14 @@
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@tailwindcss/postcss": "^4.3.3",
+ "@types/jsdom": "^30.0.0",
"@types/node": "^26.2.0",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@types/react-grid-layout": "^2.1.0",
"eslint": "^9.39.0",
"eslint-plugin-i18n-json": "^4.0.1",
+ "jsdom": "^30.0.1",
"tailwindcss": "^4.3.3",
"tw-animate-css": "^1.4.0",
"typescript": "^6.0.3"
diff --git a/apps/web/src/features/issue/IssueViewPage.tsx b/apps/web/src/features/issue/IssueViewPage.tsx
index bf7fd73f..56eacf32 100644
--- a/apps/web/src/features/issue/IssueViewPage.tsx
+++ b/apps/web/src/features/issue/IssueViewPage.tsx
@@ -2,8 +2,9 @@
import { useParams, useRouter } from 'next/navigation';
import { useShell } from '@/context/shellContext';
-import { projectPath } from '@/utils/paths';
+import { issuePath, projectPath } from '@/utils/paths';
import { useExitOnEscape } from '@/hooks/useExitOnEscape';
+import { useHistoryScrollRestoration } from '@/hooks/useHistoryScrollRestoration';
import { useIssueBySeqQuery } from '@/services/issues.service';
import IssueDetailContent from './components/detail/IssueDetailContent';
import IssueDetailSkeleton from './components/detail/IssueDetailSkeleton';
@@ -27,11 +28,14 @@ export default function IssueViewPage() {
project?.project.key ?? null,
Number.isNaN(seq) ? null : seq,
);
+ const currentIssuePath =
+ project && !Number.isNaN(seq) ? issuePath(project.project.key, seq) : null;
+ const scrollRestorationProps = useHistoryScrollRestoration({ pathname: currentIssuePath });
if (!project) return null;
return (
- <div className="flex-1 overflow-y-auto">
+ <div {...scrollRestorationProps} className="flex-1 overflow-y-auto">
<div className="flex flex-col px-8 py-6 xl:px-12">
{issueQuery.data ? (
<IssueDetailContent
diff --git a/apps/web/src/features/issue/components/detail/IssueRefRow.tsx b/apps/web/src/features/issue/components/detail/IssueRefRow.tsx
index 2222b557..dee276a8 100644
--- a/apps/web/src/features/issue/components/detail/IssueRefRow.tsx
+++ b/apps/web/src/features/issue/components/detail/IssueRefRow.tsx
@@ -4,6 +4,7 @@ import { type IssueRef, type ProjectDetail } from '@/lib/api';
import { issuePath } from '@/utils/paths';
import { Button } from '@/components/ui/button';
import ArchivedBadge from '@/components/common/ArchivedBadge';
+import { historyScrollRestorationLinkProps } from '@/hooks/useHistoryScrollRestoration';
import { StateIcon } from '../shared/IssueIcons';
// One other issue in the Links or Subtasks panel — the far end of a relation, a
@@ -46,7 +47,11 @@ export default function IssueRefRow({
);
if (readOnly) return <div className={labelClass}>{label}</div>;
return (
- <Link href={issuePath(project.project.key, issue.sequenceNumber)} className={labelClass}>
+ <Link
+ {...historyScrollRestorationLinkProps}
+ href={issuePath(project.project.key, issue.sequenceNumber)}
+ className={labelClass}
+ >
{label}
</Link>
);
diff --git a/apps/web/src/hooks/useHistoryScrollRestoration.test.tsx b/apps/web/src/hooks/useHistoryScrollRestoration.test.tsx
new file mode 100644
index 00000000..48d5ce6e
--- /dev/null
+++ b/apps/web/src/hooks/useHistoryScrollRestoration.test.tsx
@@ -0,0 +1,231 @@
+import assert from 'node:assert/strict';
+import { afterEach, beforeEach, describe, it } from 'node:test';
+import { act } from 'react';
+import type { Root } from 'react-dom/client';
+import { JSDOM } from 'jsdom';
+import { useHistoryScrollRestoration } from './useHistoryScrollRestoration';
+
+interface SavedScrollPosition {
+ entryId: string;
+ pathname: string;
+ scrollTop: number;
+}
+
+interface TestHistoryState {
+ __itsaplanScrollRestoration?: SavedScrollPosition;
+}
+
+interface ResizeObserverHarness {
+ disconnected: boolean;
+ trigger: () => void;
+}
+
+const parentPath = '/project/SCRL/issue/1';
+const childPath = '/project/SCRL/issue/4';
+const replacedGlobals = [
+ 'window',
+ 'document',
+ 'navigator',
+ 'HTMLElement',
+ 'Event',
+ 'ResizeObserver',
+ 'requestAnimationFrame',
+ 'cancelAnimationFrame',
+ 'IS_REACT_ACT_ENVIRONMENT',
+] as const;
+
+let dom: JSDOM;
+let root: Root;
+let maxScrollTop: number;
+let resizeObservers: ResizeObserverHarness[];
+let originalGlobalDescriptors: Map<string, PropertyDescriptor | undefined>;
+
+function ScrollContainer({ pathname }: { pathname: string }) {
+ const restorationProps = useHistoryScrollRestoration({ pathname });
+
+ return (
+ <div data-testid="scroll-container" {...restorationProps}>
+ <div>Content</div>
+ </div>
+ );
+}
+
+function currentPosition(): SavedScrollPosition {
+ const state = window.history.state as TestHistoryState;
+ assert.ok(state.__itsaplanScrollRestoration);
+ return state.__itsaplanScrollRestoration;
+}
+
+function render(pathname: string): HTMLDivElement {
+ act(() => root.render(<ScrollContainer pathname={pathname} />));
+ const container = document.querySelector<HTMLDivElement>('[data-testid="scroll-container"]');
+ assert.ok(container);
+ return container;
+}
+
+function dispatch(container: HTMLDivElement, type: string) {
+ act(() => container.dispatchEvent(new window.Event(type, { bubbles: true })));
+}
+
+beforeEach(async () => {
+ originalGlobalDescriptors = new Map(
+ replacedGlobals.map((name) => [name, Object.getOwnPropertyDescriptor(globalThis, name)]),
+ );
+ dom = new JSDOM('<!doctype html><div id="root"></div>', {
+ url: `https://example.test${parentPath}`,
+ });
+ maxScrollTop = Number.POSITIVE_INFINITY;
+ resizeObservers = [];
+
+ const scrollPositions = new WeakMap<HTMLElement, number>();
+ Object.defineProperty(dom.window.HTMLElement.prototype, 'scrollTop', {
+ configurable: true,
+ get() {
+ return scrollPositions.get(this) ?? 0;
+ },
+ set(value: number) {
+ scrollPositions.set(this, Math.min(value, maxScrollTop));
+ },
+ });
+
+ class TestResizeObserver {
+ private readonly harness: ResizeObserverHarness;
+
+ constructor(callback: ResizeObserverCallback) {
+ this.harness = {
+ disconnected: false,
+ trigger: () => callback([], this as unknown as ResizeObserver),
+ };
+ resizeObservers.push(this.harness);
+ }
+
+ observe() {}
+
+ unobserve() {}
+
+ disconnect() {
+ this.harness.disconnected = true;
+ }
+ }
+
+ Object.defineProperties(globalThis, {
+ window: { configurable: true, value: dom.window },
+ document: { configurable: true, value: dom.window.document },
+ navigator: { configurable: true, value: dom.window.navigator },
+ HTMLElement: { configurable: true, value: dom.window.HTMLElement },
+ Event: { configurable: true, value: dom.window.Event },
+ ResizeObserver: { configurable: true, value: TestResizeObserver },
+ requestAnimationFrame: {
+ configurable: true,
+ value: (callback: FrameRequestCallback) => {
+ callback(0);
+ return 1;
+ },
+ },
+ cancelAnimationFrame: { configurable: true, value: () => undefined },
+ IS_REACT_ACT_ENVIRONMENT: { configurable: true, value: true },
+ });
+
+ const { createRoot } = await import('react-dom/client');
+ const rootElement = document.querySelector('#root');
+ assert.ok(rootElement);
+ root = createRoot(rootElement);
+});
+
+afterEach(() => {
+ act(() => root.unmount());
+ dom.window.close();
+ for (const [name, descriptor] of originalGlobalDescriptors) {
+ if (descriptor) Object.defineProperty(globalThis, name, descriptor);
+ else Reflect.deleteProperty(globalThis, name);
+ }
+});
+
+describe('useHistoryScrollRestoration', () => {
+ it('restores the parent position from its browser history entry', () => {
+ const container = render(parentPath);
+ container.scrollTop = 1800;
+ dispatch(container, 'scroll');
+ dispatch(container, 'pointerdown');
+ const parentState = window.history.state;
+
+ act(() => {
+ window.history.pushState({}, '', childPath);
+ root.render(<ScrollContainer pathname={childPath} />);
+ });
+ assert.equal(container.scrollTop, 0);
+
+ act(() => {
+ window.history.replaceState(parentState, '', parentPath);
+ root.render(<ScrollContainer pathname={parentPath} />);
+ });
+ assert.equal(container.scrollTop, 1800);
+ assert.equal(currentPosition().scrollTop, 1800);
+ });
+
+ it('retries restoration as asynchronous content increases the scroll range', () => {
+ window.history.replaceState(
+ {
+ __itsaplanScrollRestoration: {
+ entryId: 'asynchronous-entry',
+ pathname: parentPath,
+ scrollTop: 1800,
+ },
+ },
+ '',
+ parentPath,
+ );
+ maxScrollTop = 300;
+
+ const container = render(parentPath);
+ assert.equal(container.scrollTop, 300);
+ assert.equal(resizeObservers.length, 1);
+ const [observer] = resizeObservers;
+ assert.ok(observer);
+
+ maxScrollTop = 1800;
+ act(() => observer.trigger());
+ assert.equal(container.scrollTop, 1800);
+ assert.equal(observer.disconnected, true);
+ });
+
+ it('cancels a pending restoration when the user scrolls', () => {
+ window.history.replaceState(
+ {
+ __itsaplanScrollRestoration: {
+ entryId: 'interrupted-entry',
+ pathname: parentPath,
+ scrollTop: 1800,
+ },
+ },
+ '',
+ parentPath,
+ );
+ maxScrollTop = 300;
+
+ const container = render(parentPath);
+ const [observer] = resizeObservers;
+ assert.ok(observer);
+ maxScrollTop = 500;
+ container.scrollTop = 450;
+ dispatch(container, 'scroll');
+ assert.equal(observer.disconnected, true);
+
+ maxScrollTop = 1800;
+ act(() => observer.trigger());
+ assert.equal(container.scrollTop, 450);
+ });
+
+ it('does not let a delayed save overwrite a newer history entry', async () => {
+ const container = render(parentPath);
+ container.scrollTop = 700;
+ dispatch(container, 'scroll');
+
+ const childState = { childEntry: true };
+ window.history.pushState(childState, '', childPath);
+
+ await new Promise((resolve) => setTimeout(resolve, 120));
+ assert.deepEqual(window.history.state, childState);
+ assert.equal(window.location.pathname, childPath);
+ });
+});
diff --git a/apps/web/src/hooks/useHistoryScrollRestoration.ts b/apps/web/src/hooks/useHistoryScrollRestoration.ts
new file mode 100644
index 00000000..e26b3556
--- /dev/null
+++ b/apps/web/src/hooks/useHistoryScrollRestoration.ts
@@ -0,0 +1,191 @@
+import {
+ useCallback,
+ useLayoutEffect,
+ useRef,
+ type CSSProperties,
+ type MouseEventHandler,
+ type PointerEventHandler,
+ type RefObject,
+ type UIEventHandler,
+} from 'react';
+
+const SCROLL_SAVE_DELAY_MS = 100;
+const scrollContainerStyle = { overflowAnchor: 'none' } satisfies CSSProperties;
+const scrollPositions = new Map<string, number>();
+let nextHistoryEntryId = 0;
+
+export const historyScrollRestorationLinkProps = { scroll: false } as const;
+
+interface ScrollRestorationHistoryState {
+ __itsaplanScrollRestoration?: {
+ entryId: string;
+ pathname: string;
+ scrollTop: number;
+ };
+}
+
+interface HistoryScrollRestorationOptions {
+ pathname: string | null;
+}
+
+interface ScrollRestorationProps<T extends HTMLElement> {
+ ref: RefObject<T | null>;
+ style: CSSProperties;
+ onScroll: UIEventHandler<T>;
+ onClickCapture: MouseEventHandler<T>;
+ onPointerDownCapture: PointerEventHandler<T>;
+}
+
+export function useHistoryScrollRestoration<T extends HTMLElement = HTMLDivElement>({
+ pathname,
+}: HistoryScrollRestorationOptions): ScrollRestorationProps<T> {
+ const scrollRef = useRef<T>(null);
+ const activeEntryIdRef = useRef<string | null>(null);
+ const activePathnameRef = useRef<string | null>(null);
+ const isRestoringRef = useRef(false);
+ const restoredScrollTopRef = useRef<number | null>(null);
+ const restoreObserverRef = useRef<ResizeObserver | null>(null);
+ const pendingScrollTopRef = useRef<number | null>(null);
+ const saveTimerRef = useRef<number | null>(null);
+
+ const clearPendingSave = useCallback(() => {
+ if (saveTimerRef.current != null) window.clearTimeout(saveTimerRef.current);
+ saveTimerRef.current = null;
+ pendingScrollTopRef.current = null;
+ }, []);
+
+ const stopRestoration = useCallback(() => {
+ restoreObserverRef.current?.disconnect();
+ restoreObserverRef.current = null;
+ isRestoringRef.current = false;
+ restoredScrollTopRef.current = null;
+ }, []);
+
+ const saveScrollPosition = useCallback(() => {
+ const activeEntryId = activeEntryIdRef.current;
+ const activePathname = activePathnameRef.current;
+ const scrollTop = pendingScrollTopRef.current;
+ if (activeEntryId == null || activePathname == null || scrollTop == null) return;
+
+ scrollPositions.set(activeEntryId, scrollTop);
+ const historyState = window.history.state as ScrollRestorationHistoryState | null;
+ const historyPosition = historyState?.__itsaplanScrollRestoration;
+ if (window.location.pathname !== activePathname || historyPosition?.entryId !== activeEntryId) {
+ clearPendingSave();
+ return;
+ }
+
+ clearPendingSave();
+ window.history.replaceState(
+ {
+ ...window.history.state,
+ __itsaplanScrollRestoration: {
+ entryId: activeEntryId,
+ pathname: activePathname,
+ scrollTop,
+ },
+ },
+ '',
+ );
+ }, [clearPendingSave]);
+
+ const saveCurrentScrollPosition = useCallback(() => {
+ if (!scrollRef.current) return;
+ stopRestoration();
+ pendingScrollTopRef.current = scrollRef.current.scrollTop;
+ saveScrollPosition();
+ }, [saveScrollPosition, stopRestoration]);
+
+ useLayoutEffect(() => {
+ stopRestoration();
+ if (pathname == null) {
+ activeEntryIdRef.current = null;
+ activePathnameRef.current = null;
+ return;
+ }
+
+ const historyState = window.history.state as ScrollRestorationHistoryState | null;
+ const savedPosition = historyState?.__itsaplanScrollRestoration;
+ const ownsHistoryEntry =
+ savedPosition?.pathname === pathname &&
+ typeof savedPosition.entryId === 'string' &&
+ savedPosition.entryId.length > 0 &&
+ Number.isFinite(savedPosition.scrollTop);
+ const entryId = ownsHistoryEntry
+ ? savedPosition.entryId
+ : `${performance.timeOrigin}:${++nextHistoryEntryId}`;
+ const persistedScrollTop = ownsHistoryEntry ? savedPosition.scrollTop : 0;
+ const scrollTop = scrollPositions.get(entryId) ?? persistedScrollTop;
+
+ activeEntryIdRef.current = entryId;
+ activePathnameRef.current = pathname;
+ isRestoringRef.current = true;
+ scrollPositions.set(entryId, scrollTop);
+ window.history.replaceState(
+ {
+ ...window.history.state,
+ __itsaplanScrollRestoration: { entryId, pathname, scrollTop },
+ },
+ '',
+ );
+
+ const restore = () => {
+ if (
+ isRestoringRef.current &&
+ activeEntryIdRef.current === entryId &&
+ activePathnameRef.current === pathname &&
+ scrollRef.current
+ ) {
+ scrollRef.current.scrollTop = scrollTop;
+ restoredScrollTopRef.current = scrollRef.current.scrollTop;
+ if (Math.abs(scrollRef.current.scrollTop - scrollTop) < 1) stopRestoration();
+ }
+ };
+
+ const content = scrollRef.current?.firstElementChild;
+ if (content && typeof ResizeObserver !== 'undefined') {
+ restoreObserverRef.current = new ResizeObserver(restore);
+ restoreObserverRef.current.observe(content);
+ }
+ restore();
+ const frame = requestAnimationFrame(restore);
+
+ const persistBeforePageHide = () => {
+ if (!isRestoringRef.current) saveCurrentScrollPosition();
+ };
+ window.addEventListener('pagehide', persistBeforePageHide);
+ return () => {
+ window.removeEventListener('pagehide', persistBeforePageHide);
+ cancelAnimationFrame(frame);
+ stopRestoration();
+ clearPendingSave();
+ };
+ }, [clearPendingSave, pathname, saveCurrentScrollPosition, stopRestoration]);
+
+ const onScroll: UIEventHandler<T> = (event) => {
+ const scrollTop = event.currentTarget.scrollTop;
+ if (isRestoringRef.current) {
+ if (restoredScrollTopRef.current === scrollTop) return;
+ stopRestoration();
+ }
+
+ pendingScrollTopRef.current = scrollTop;
+ const activeEntryId = activeEntryIdRef.current;
+ if (activeEntryId != null) scrollPositions.set(activeEntryId, scrollTop);
+ if (saveTimerRef.current != null) window.clearTimeout(saveTimerRef.current);
+ saveTimerRef.current = window.setTimeout(saveScrollPosition, SCROLL_SAVE_DELAY_MS);
+ };
+
+ const onPointerDownCapture: PointerEventHandler<T> = saveCurrentScrollPosition;
+ const onClickCapture: MouseEventHandler<T> = (event) => {
+ if (event.detail === 0) saveCurrentScrollPosition();
+ };
+
+ return {
+ ref: scrollRef,
+ style: scrollContainerStyle,
+ onScroll,
+ onClickCapture,
+ onPointerDownCapture,
+ };
+}
diff --git a/bun.lock b/bun.lock
index 8891613a..d0679f73 100644
--- a/bun.lock
+++ b/bun.lock
@@ -128,12 +128,14 @@
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@tailwindcss/postcss": "^4.3.3",
+ "@types/jsdom": "^30.0.0",
"@types/node": "^26.2.0",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@types/react-grid-layout": "^2.1.0",
"eslint": "^9.39.0",
"eslint-plugin-i18n-json": "^4.0.1",
+ "jsdom": "^30.0.1",
"tailwindcss": "^4.3.3",
"tw-animate-css": "^1.4.0",
"typescript": "^6.0.3",
@@ -1182,6 +1184,8 @@
"@types/hast": ["@types/[email protected]", "", { "dependencies": { "@types/unist": "*" } }, "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g=="],
+ "@types/jsdom": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*", "@types/tough-cookie": "*", "parse5": "^8.0.0", "undici-types": "^8.9.0" } }, "sha512-uAHGxujGE0cDaKGdK28zgDotFtNA7MKq5DXl8LrfdxdCI8VHcg15oJz+amHTChPNI5JpgEPQWc2xFdrw3em/nQ=="],
+
"@types/json-schema": ["@types/[email protected]", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="],
"@types/linkify-it": ["@types/[email protected]", "", {}, "sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw=="],
@@ -1204,6 +1208,8 @@
"@types/react-grid-layout": ["@types/[email protected]", "", { "dependencies": { "react-grid-layout": "*" } }, "sha512-pHEjVg9ert6BDFHFQ1IEdLUkd2gasJvyti5lV2kE46N/R07ZiaSZpAXeXJAA1MXy/Qby23fZmiuEgZkITxPXug=="],
+ "@types/tough-cookie": ["@types/[email protected]", "", {}, "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA=="],
+
"@types/trusted-types": ["@types/[email protected]", "", {}, "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="],
"@types/unist": ["@types/[email protected]", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],
@@ -1596,7 +1602,7 @@
"enhanced-resolve": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" } }, "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A=="],
- "entities": ["[email protected]", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+ "entities": ["[email protected]", "", {}, "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA=="],
"error-ex": ["[email protected]", "", { "dependencies": { "is-arrayish": "^0.2.1" } }, "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ=="],
@@ -2676,7 +2682,7 @@
"tough-cookie": ["[email protected]", "", { "dependencies": { "tldts": "^7.0.5" } }, "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA=="],
- "tr46": ["[email protected]", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="],
+ "tr46": ["[email protected]", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw=="],
"traverse": ["[email protected]", "", {}, "sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ=="],
@@ -2724,7 +2730,7 @@
"underscore": ["[email protected]", "", {}, "sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ=="],
- "undici": ["[email protected]", "", {}, "sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA=="],
+ "undici": ["[email protected]", "", {}, "sha512-HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ=="],
"undici-types": ["[email protected]", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="],
@@ -2796,7 +2802,7 @@
"whatwg-mimetype": ["[email protected]", "", {}, "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw=="],
- "whatwg-url": ["[email protected]", "", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="],
+ "whatwg-url": ["[email protected]", "", { "dependencies": { "@exodus/bytes": "^1.15.1", "tr46": "^6.0.0", "webidl-conversions": "^8.0.1" } }, "sha512-3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw=="],
"which": ["[email protected]", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
@@ -2852,6 +2858,8 @@
"@ai-sdk/gateway/@ai-sdk/provider-utils": ["@ai-sdk/[email protected]", "", { "dependencies": { "@ai-sdk/provider": "3.0.2", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.6" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-Ow/X/SEkeExTTc1x+nYLB9ZHK2WUId8+9TlkamAx7Tl9vxU+cKzWx2dwjgMHeCN6twrgwkLrrtqckQeO4mxgVA=="],
+ "@ai-sdk/provider-utils/undici": ["[email protected]", "", {}, "sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA=="],
+
"@ai-sdk/provider-utils-v5/@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-h88OPkavHTiN9tMn2l5awAznGB0lXzjcLhgR1/rvjB2zlLprsNxbM2tt6OJsHUxduLC3klq0/eqaSf6fX5XVww=="],
"@ai-sdk/provider-utils-v6/@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-5X1k57JBJ4H7H1QjX7CnJYAB1I19r/trVZTMcSms7/kLNZ8RaU4Nt2agcwZzv82Hfx6Q7/TOLU7agAKeFfc8cA=="],
@@ -2984,6 +2992,8 @@
"@tanstack/vue-virtual/@tanstack/virtual-core": ["@tanstack/[email protected]", "", {}, "sha512-nGm5KteqxasUdThLc2izl6dHUqLv0LQj7Nuyo5gYalTPf/U8a9ermvsl7reT+6ioBW1l8WfpP/mcU338nLXpqw=="],
+ "@types/jsdom/undici-types": ["[email protected]", "", {}, "sha512-ibvdovq3nCFs8Msrd95BW+zUOq+aOVbT+wpHUoPWhztbHEoPc6oof51iFDB6Es8lTKvNvVW9jNSAB8dwrKTMGg=="],
+
"@types/nodemailer/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q=="],
"@types/react-grid-layout/react-grid-layout": ["[email protected]", "", { "dependencies": { "clsx": "^2.1.1", "fast-equals": "^4.0.3", "prop-types": "^15.8.1", "react-draggable": "^4.4.6", "react-resizable": "^3.1.3", "resize-observer-polyfill": "^1.5.1" }, "peerDependencies": { "react": ">= 16.3.0", "react-dom": ">= 16.3.0" } }, "sha512-OAEJHBxmfuxQfVtZwRzmsokijGlBgzYIJ7MUlLk/VSa43SaGzu15w5D0P2RDrfX5EvP9POMbL6bFrai/huDzbQ=="],
@@ -3056,10 +3066,6 @@
"jsdom/saxes": ["[email protected]", "", { "dependencies": { "xmlchars": "^2.2.0" } }, "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA=="],
- "jsdom/undici": ["[email protected]", "", {}, "sha512-HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ=="],
-
- "jsdom/whatwg-url": ["[email protected]", "", { "dependencies": { "@exodus/bytes": "^1.15.1", "tr46": "^6.0.0", "webidl-conversions": "^8.0.1" } }, "sha512-3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw=="],
-
"jszip/readable-stream": ["[email protected]", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
"lazystream/readable-stream": ["[email protected]", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
@@ -3070,6 +3076,8 @@
"markdown-it/argparse": ["[email protected]", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="],
+ "markdown-it/entities": ["[email protected]", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+
"mdast-util-find-and-replace/escape-string-regexp": ["[email protected]", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="],
"micromatch/picomatch": ["[email protected]", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="],
@@ -3080,9 +3088,9 @@
"next/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg=="],
- "npm-run-path/path-key": ["[email protected]", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="],
+ "node-fetch/whatwg-url": ["[email protected]", "", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="],
- "parse5/entities": ["[email protected]", "", {}, "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA=="],
+ "npm-run-path/path-key": ["[email protected]", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="],
"postcss/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q=="],
@@ -3116,8 +3124,6 @@
"unzipper/readable-stream": ["[email protected]", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
- "whatwg-url/webidl-conversions": ["[email protected]", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="],
-
"which-builtin-type/isarray": ["[email protected]", "", {}, "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="],
"zip-stream/archiver-utils": ["[email protected]", "", { "dependencies": { "glob": "^7.2.3", "graceful-fs": "^4.2.0", "lazystream": "^1.0.0", "lodash.defaults": "^4.2.0", "lodash.difference": "^4.5.0", "lodash.flatten": "^4.4.0", "lodash.isplainobject": "^4.0.6", "lodash.union": "^4.6.0", "normalize-path": "^3.0.0", "readable-stream": "^3.6.0" } }, "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw=="],
@@ -3222,8 +3228,6 @@
"cmdk/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA=="],
- "data-urls/whatwg-url/tr46": ["[email protected]", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw=="],
-
"duplexer2/readable-stream/string_decoder": ["[email protected]", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="],
"eslint-plugin-i18n-json/chalk/ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^1.9.0" } }, "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA=="],
@@ -3246,8 +3250,6 @@
"jest-diff/chalk/supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^3.0.0" } }, "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow=="],
- "jsdom/whatwg-url/tr46": ["[email protected]", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw=="],
-
"jszip/readable-stream/string_decoder": ["[email protected]", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="],
"lazystream/readable-stream/string_decoder": ["[email protected]", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="],
@@ -3260,6 +3262,10 @@
"next/postcss/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q=="],
+ "node-fetch/whatwg-url/tr46": ["[email protected]", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="],
+
+ "node-fetch/whatwg-url/webidl-conversions": ["[email protected]", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="],
+
"pretty-format/ansi-styles/color-convert": ["[email protected]", "", { "dependencies": { "color-name": "1.1.3" } }, "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg=="],
"prosemirror-markdown/@types/markdown-it/@types/linkify-it": ["@types/[email protected]", "", {}, "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q=="],