ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
17 lines (16 loc) • 708 B
TypeScript
export interface PlayerErrorModalDeps {
isDisabled: () => boolean;
onRetry: () => void;
}
export interface PlayerErrorModalController {
show: (message: string) => void;
isShowing: () => boolean;
}
/**
* Default-on error + retry dialog, shared by both the native `onError` (media
* dispatch) and `hlsError` (clarity) paths so they can't stack two modals or
* drift out of sync on the "is one currently showing" flag. `r-modal` is
* lazy-loaded — nothing is fetched until an error actually happens, same
* recipe as r-mermaid's fullscreen lightbox (`import('../../modal')`).
*/
export declare function createErrorModalController(deps: PlayerErrorModalDeps): PlayerErrorModalController;