@hybridly/core
Advanced tools
Comparing version 0.1.0-alpha.4 to 0.1.0-alpha.5
@@ -107,3 +107,3 @@ import { RequestData } from '@hybridly/utils'; | ||
type ConditionalNavigationOption = boolean | ((payload: HybridPayload) => boolean); | ||
type ConditionalNavigationOption<T extends boolean | string> = T | ((payload: NavigationOptions) => T); | ||
interface ComponentNavigationOptions { | ||
@@ -118,7 +118,7 @@ /** Name of the component to use. */ | ||
*/ | ||
replace?: ConditionalNavigationOption; | ||
replace?: ConditionalNavigationOption<boolean>; | ||
/** Whether to preserve the current scrollbar position. */ | ||
preserveScroll?: ConditionalNavigationOption; | ||
preserveScroll?: ConditionalNavigationOption<boolean>; | ||
/** Whether to preserve the current page component state. */ | ||
preserveState?: ConditionalNavigationOption; | ||
preserveState?: ConditionalNavigationOption<boolean>; | ||
} | ||
@@ -132,9 +132,9 @@ interface NavigationOptions { | ||
*/ | ||
replace?: ConditionalNavigationOption; | ||
/** Whether to preserve the current scrollbar position. */ | ||
preserveScroll?: ConditionalNavigationOption; | ||
replace?: ConditionalNavigationOption<boolean>; | ||
/** Whether to preserve the scrollbars positions on the page. */ | ||
preserveScroll?: ConditionalNavigationOption<boolean>; | ||
/** Whether to preserve the current page component's state. */ | ||
preserveState?: ConditionalNavigationOption; | ||
preserveState?: ConditionalNavigationOption<boolean>; | ||
/** Whether to preserve the current URL. */ | ||
preserveUrl?: ConditionalNavigationOption; | ||
preserveUrl?: ConditionalNavigationOption<boolean>; | ||
/** | ||
@@ -382,2 +382,4 @@ * Properties of the given URL to override. | ||
onDialogClose?: (context: InternalRouterContext) => void; | ||
/** Called when Hybridly is waiting for a component to be mounted. The given callback should be executed after the view component is mounted. */ | ||
onWaitingForMount: (callback: Function) => void; | ||
} | ||
@@ -384,0 +386,0 @@ interface ResolvedAdapter extends Adapter { |
{ | ||
"name": "@hybridly/core", | ||
"version": "0.1.0-alpha.4", | ||
"version": "0.1.0-alpha.5", | ||
"description": "Core functionality of Hybridly", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"qs": "^6.11.0", | ||
"@hybridly/utils": "0.1.0-alpha.4" | ||
"@hybridly/utils": "0.1.0-alpha.5" | ||
}, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2133
80523
+ Added@hybridly/utils@0.1.0-alpha.5(transitive)
- Removed@hybridly/utils@0.1.0-alpha.4(transitive)