refactor(web): dependency management (#2386)
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import {
|
||||
ApplicationInterface,
|
||||
DesktopDeviceInterface,
|
||||
DesktopManagerInterface,
|
||||
MobileDeviceInterface,
|
||||
WebAppEvent,
|
||||
} from '@standardnotes/services'
|
||||
import { KeyboardService } from '../Keyboard/KeyboardService'
|
||||
import { RouteServiceInterface } from '../Route/RouteServiceInterface'
|
||||
|
||||
export interface WebApplicationInterface extends ApplicationInterface {
|
||||
notifyWebEvent(event: WebAppEvent, data?: unknown): void
|
||||
getDesktopService(): DesktopManagerInterface | undefined
|
||||
handleMobileEnteringBackgroundEvent(): Promise<void>
|
||||
handleMobileGainingFocusEvent(): Promise<void>
|
||||
handleMobileLosingFocusEvent(): Promise<void>
|
||||
@@ -24,10 +25,17 @@ export interface WebApplicationInterface extends ApplicationInterface {
|
||||
handleReceivedTextEvent(item: { text: string; title?: string }): Promise<void>
|
||||
handleReceivedLinkEvent(item: { link: string; title: string }): Promise<void>
|
||||
isNativeMobileWeb(): boolean
|
||||
mobileDevice(): MobileDeviceInterface
|
||||
handleAndroidBackButtonPressed(): void
|
||||
addAndroidBackHandlerEventListener(listener: () => boolean): (() => void) | undefined
|
||||
setAndroidBackHandlerFallbackListener(listener: () => boolean): void
|
||||
handleInitialMobileScreenshotPrivacy(): void
|
||||
generateUUID(): string
|
||||
checkForSecurityUpdate(): Promise<boolean>
|
||||
|
||||
get desktopManager(): DesktopManagerInterface | undefined
|
||||
get mobileDevice(): MobileDeviceInterface
|
||||
get isMobileDevice(): boolean
|
||||
get desktopDevice(): DesktopDeviceInterface | undefined
|
||||
get keyboardService(): KeyboardService
|
||||
get routeService(): RouteServiceInterface
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user