UNPKG

@j2inn/app-react

Version:

React implementation of the j2inn-app framework

54 lines (53 loc) 1.42 kB
import { App, AppRootStore, AppView, CustomHistory } from '@j2inn/app'; import { HDict } from 'haystack-core'; /** * A simple application root store used for development/testing purposes. */ export declare class DevAppRootStore implements AppRootStore { currentApp?: { id: string; name: string; app: App; view: AppView; }; get app(): { id: string; name: string; app: App; view: AppView; } | undefined; currentSidebar?: { id: string; name: string; app: App; view: AppView; }; get sidebar(): { id: string; name: string; app: App; view: AppView; } | undefined; currentApps: App[]; get apps(): App[]; project: string; sidebarOpen: boolean; open(): void; openAppInNewWindow(): void; openSidebar(): void; currentLocale: string; get locale(): string; currentAllLocales: string[]; get allLocales(): string[]; target: string; targetSidebar: string; readonly history: CustomHistory; readonly historySidebar: CustomHistory; currentUserDict: HDict | undefined; get currentUser(): HDict | undefined; hasSidebar(): boolean; postAppMessage(): void; registerSidebars(): void; unregisterSidebars(): void; hasAppAccess(): boolean; }