Files
headroom/frontend/node_modules/happy-dom/cjs/nodes/html-media-element/TextTrack.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

88 lines
2.3 KiB
TypeScript

import EventTarget from '../../event/EventTarget.cjs';
import Event from '../../event/Event.cjs';
import TextTrackCue from './TextTrackCue.cjs';
import TextTrackCueList from './TextTrackCueList.cjs';
import * as PropertySymbol from '../../PropertySymbol.cjs';
import TextTrackKindEnum from './TextTrackKindEnum.cjs';
/**
* TextTrack.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/TextTrack
*/
export default class TextTrack extends EventTarget {
[PropertySymbol.kind]: TextTrackKindEnum;
[PropertySymbol.label]: string;
[PropertySymbol.language]: string;
[PropertySymbol.id]: string;
[PropertySymbol.mode]: 'disabled' | 'showing';
[PropertySymbol.cues]: TextTrackCueList;
[PropertySymbol.activeCues]: TextTrackCueList;
oncuechange: (event: Event) => void;
/**
* Constructor.
*
* @param illegalConstructorSymbol Illegal constructor symbol.
*/
constructor(illegalConstructorSymbol: symbol);
/**
* Returns the kind of the text track.
*
* @returns Kind.
*/
get kind(): TextTrackKindEnum;
/**
* Returns the label of the text track.
*
* @returns Label.
*/
get label(): string;
/**
* Returns the language of the text track.
*
* @returns Language.
*/
get language(): string;
/**
* Returns the id of the text track.
*
* @returns Id.
*/
get id(): string;
/**
* Returns the mode of the text track.
*
* @returns Mode.
*/
get mode(): 'disabled' | 'showing';
/**
* Sets the mode of the text track.
*
* @param mode Mode.
*/
set mode(mode: 'disabled' | 'showing');
/**
* Returns the list of cues in the track list.
*
* @returns List of cues.
*/
get cues(): TextTrackCueList | null;
/**
* Returns the list of active cues in the track list.
*
* @returns List of active cues.
*/
get activeCues(): TextTrackCueList | null;
/**
* Adds a cue to the track list.
*
* @param cue Text track cue.
*/
addCue(cue: TextTrackCue): void;
/**
* Removes a cue from the track list.
*
* @param cue Text track cue.
*/
removeCue(cue: TextTrackCue): void;
}
//# sourceMappingURL=TextTrack.d.ts.map