@tindtechnologies/universalviewer
Version:
The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎
43 lines (42 loc) • 2.07 kB
TypeScript
import { BaseExtension } from "../../modules/uv-shared-module/BaseExtension";
import { DownloadDialogue } from "./DownloadDialogue";
import { FooterPanel } from "../../modules/uv-shared-module/FooterPanel";
import { FooterPanel as MobileFooterPanel } from "../../modules/uv-mediaelementmobilefooterpanel-module/MobileFooter";
import { HeaderPanel } from "../../modules/uv-shared-module/HeaderPanel";
import { HelpDialogue } from "../../modules/uv-dialogues-module/HelpDialogue";
import { IMediaElementExtension } from "./IMediaElementExtension";
import { MediaElementCenterPanel } from "../../modules/uv-mediaelementcenterpanel-module/MediaElementCenterPanel";
import { MoreInfoRightPanel } from "../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel";
import { ResourcesLeftPanel } from "../../modules/uv-resourcesleftpanel-module/ResourcesLeftPanel";
import { SettingsDialogue } from "./SettingsDialogue";
import { ShareDialogue } from "./ShareDialogue";
import "./theme/theme.less";
import { Config } from "./config/Config";
export default class Extension extends BaseExtension<Config> implements IMediaElementExtension {
$downloadDialogue: JQuery;
$shareDialogue: JQuery;
$helpDialogue: JQuery;
$settingsDialogue: JQuery;
centerPanel: MediaElementCenterPanel;
downloadDialogue: DownloadDialogue;
shareDialogue: ShareDialogue;
footerPanel: FooterPanel<Config["modules"]["footerPanel"]>;
mobileFooterPanel: MobileFooterPanel;
headerPanel: HeaderPanel<Config["modules"]["headerPanel"]>;
helpDialogue: HelpDialogue;
leftPanel: ResourcesLeftPanel;
rightPanel: MoreInfoRightPanel;
settingsDialogue: SettingsDialogue;
defaultConfig: Config;
create(): void;
createModules(): void;
render(): void;
checkForTarget(): void;
checkForMuted(): void;
isLeftPanelEnabled(): boolean;
bookmark(): void;
getEmbedScript(template: string, width: number, height: number): string;
getPosterImageUri(): string | null;
isVideoFormat(type: string): boolean;
isVideo(): boolean;
}