diff --git a/src/types.ts b/src/types.ts index 0d805548..b9c6e865 100644 --- a/src/types.ts +++ b/src/types.ts @@ -206,6 +206,11 @@ export interface ShareTargetFiles { accept: string | string[] } +/** + * https://developer.mozilla.org/en-US/docs/Web/Manifest/launch_handler#launch_handler_item_values + */ +export type LaunchHandlerClientMode = 'auto' | 'focus-existing' | 'navigate-existing' | 'navigate-new' + export interface ManifestOptions { /** * @default _npm_package_name_ @@ -329,6 +334,22 @@ export interface ManifestOptions { files?: ShareTargetFiles | ShareTargetFiles[] } } + /** + * https://github.com/WICG/pwa-url-handler/blob/main/handle_links/explainer.md#handle_links-manifest-member + */ + handle_links?: 'auto' | 'preferred' | 'not-preferred' + /** + * https://developer.mozilla.org/en-US/docs/Web/Manifest/launch_handler#launch_handler_item_values + */ + launch_handler?: { + client_mode: LaunchHandlerClientMode | LaunchHandlerClientMode[] + } + /** + * https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps-chromium/how-to/sidebar#enable-sidebar-support-in-your-pwa + */ + edge_side_panel?: { + preferred_width?: number + } } export interface WebManifestData {