Files
headroom/frontend/node_modules/happy-dom/cjs/window/WindowBrowserContext.d.ts
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

75 lines
2.3 KiB
TypeScript

import AsyncTaskManager from '../async-task-manager/AsyncTaskManager.cjs';
import IBrowser from '../browser/types/IBrowser.cjs';
import IBrowserContext from '../browser/types/IBrowserContext.cjs';
import IBrowserFrame from '../browser/types/IBrowserFrame.cjs';
import IBrowserPage from '../browser/types/IBrowserPage.cjs';
import IBrowserSettings from '../browser/types/IBrowserSettings.cjs';
import * as PropertySymbol from '../PropertySymbol.cjs';
import BrowserWindow from './BrowserWindow.cjs';
/**
* API for accessing the Browser in a Window context without exposing the Browser as accessible properties.
*
* The Browser should never be exposed to scripts, as the scripts could then manipulate it, which would lead to security issues.
*/
export default class WindowBrowserContext {
#private;
private static [PropertySymbol.browserFrames];
private static [PropertySymbol.windowInternalId];
/**
* Browser window.
*
* @param window Window.
*/
constructor(window: BrowserWindow);
/**
* Returns the browser settings of the window.
*
* @returns Browser settings.
*/
getSettings(): IBrowserSettings | null;
/**
* Returns the browser.
*
* @returns Browser.
*/
getBrowser(): IBrowser | null;
/**
* Returns the browser page.
*
* @returns Browser page.
*/
getBrowserPage(): IBrowserPage | null;
/**
* Returns the browser context.
*
* @returns Browser context.
*/
getBrowserContext(): IBrowserContext | null;
/**
* Returns the browser frame of the window.
*
* @returns Browser frame.
*/
getBrowserFrame(): IBrowserFrame | null;
/**
* Returns the async task manager of the window.
*
* @returns Async task manager.
*/
getAsyncTaskManager(): AsyncTaskManager | null;
/**
* Assigns the window to a browser frame.
*
* @param window Window.
* @param browserFrame Browser frame.
*/
static setWindowBrowserFrameRelation(window: BrowserWindow, browserFrame: IBrowserFrame): void;
/**
* Assigns the window to a browser frame.
*
* @param window Window.
* @param browserFrame Browser frame.
*/
static removeWindowBrowserFrameRelation(window: BrowserWindow): void;
}
//# sourceMappingURL=WindowBrowserContext.d.ts.map