@hybridly/core
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -73,2 +73,6 @@ import { RequestData } from '@hybridly/utils'; | ||
navigated: (options: NavigationOptions, context: InternalRouterContext) => MaybePromise<any>; | ||
/** | ||
* Called when a component has been navigated to and was mounted by the adapter. | ||
*/ | ||
mounted: (context: InternalRouterContext) => MaybePromise<any>; | ||
} | ||
@@ -232,2 +236,4 @@ interface HookOptions { | ||
local: (url: UrlResolvable, options: ComponentNavigationOptions) => Promise<void>; | ||
/** Preloads the given URL. The next time this URL is navigated to, it will be loaded from the cache. */ | ||
preload: (url: UrlResolvable, options?: Omit<HybridRequestOptions, 'method' | 'url'>) => Promise<boolean>; | ||
/** Access the dialog router. */ | ||
@@ -373,2 +379,4 @@ dialog: DialogRouter; | ||
responseErrorModals?: boolean; | ||
/** Cache of preload requests. */ | ||
preloadCache: Map<string, AxiosResponse>; | ||
} | ||
@@ -388,3 +396,3 @@ /** Router context. */ | ||
/** 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; | ||
executeOnMounted: (callback: Function) => void; | ||
} | ||
@@ -391,0 +399,0 @@ interface ResolvedAdapter extends Adapter { |
{ | ||
"name": "@hybridly/core", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Core functionality of Hybridly", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
"superjson": "^1.12.3", | ||
"@hybridly/utils": "0.4.0" | ||
"@hybridly/utils": "0.4.1" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88455
2366
+ Added@hybridly/utils@0.4.1(transitive)
- Removed@hybridly/utils@0.4.0(transitive)
Updated@hybridly/utils@0.4.1