@aurelia/router-lite
Advanced tools
Comparing version 2.0.0-beta.4 to 2.0.0-beta.5
@@ -115,3 +115,2 @@ import { type IContainer, IModule } from '@aurelia/kernel'; | ||
} | ||
export declare const INavigationModel: import("@aurelia/kernel").InterfaceSymbol<INavigationModel>; | ||
export interface INavigationModel { | ||
@@ -118,0 +117,0 @@ /** |
{ | ||
"name": "@aurelia/router-lite", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.0-beta.5", | ||
"main": "dist/cjs/index.cjs", | ||
@@ -52,9 +52,9 @@ "module": "dist/esm/index.mjs", | ||
"dependencies": { | ||
"@aurelia/kernel": "2.0.0-beta.4", | ||
"@aurelia/metadata": "2.0.0-beta.4", | ||
"@aurelia/platform": "2.0.0-beta.4", | ||
"@aurelia/platform-browser": "2.0.0-beta.4", | ||
"@aurelia/route-recognizer": "2.0.0-beta.4", | ||
"@aurelia/runtime": "2.0.0-beta.4", | ||
"@aurelia/runtime-html": "2.0.0-beta.4" | ||
"@aurelia/kernel": "2.0.0-beta.5", | ||
"@aurelia/metadata": "2.0.0-beta.5", | ||
"@aurelia/platform": "2.0.0-beta.5", | ||
"@aurelia/platform-browser": "2.0.0-beta.5", | ||
"@aurelia/route-recognizer": "2.0.0-beta.5", | ||
"@aurelia/runtime": "2.0.0-beta.5", | ||
"@aurelia/runtime-html": "2.0.0-beta.5" | ||
}, | ||
@@ -61,0 +61,0 @@ "devDependencies": { |
@@ -69,2 +69,3 @@ import { isObject } from '@aurelia/metadata'; | ||
Registration.instance(IRouterOptions, routerOptions), | ||
Registration.instance(RouterOptions, routerOptions), | ||
AppTask.hydrated(IContainer, RouteContext.setRoot), | ||
@@ -71,0 +72,0 @@ AppTask.activated(IRouter, router => router.start(true)), |
@@ -10,4 +10,4 @@ import { DI, ILogger } from '@aurelia/kernel'; | ||
export const IBaseHref = DI.createInterface<URL>('IBaseHref'); | ||
export const ILocationManager = DI.createInterface<ILocationManager>('ILocationManager', x => x.singleton(BrowserLocationManager)); | ||
export const IBaseHref = /*@__PURE__*/DI.createInterface<URL>('IBaseHref'); | ||
export const ILocationManager = /*@__PURE__*/DI.createInterface<ILocationManager>('ILocationManager', x => x.singleton(BrowserLocationManager)); | ||
export interface ILocationManager extends BrowserLocationManager {} | ||
@@ -14,0 +14,0 @@ |
@@ -16,3 +16,3 @@ import { DI } from '@aurelia/kernel'; | ||
export const IRouterOptions = DI.createInterface<Readonly<RouterOptions>>('RouterOptions'); | ||
export const IRouterOptions = /*@__PURE__*/DI.createInterface<Readonly<RouterOptions>>('RouterOptions'); | ||
export interface IRouterOptions extends Partial<RouterOptions> {} | ||
@@ -19,0 +19,0 @@ export class RouterOptions { |
@@ -60,3 +60,3 @@ import { | ||
export interface IRouteContext extends RouteContext { } | ||
export const IRouteContext = DI.createInterface<IRouteContext>('IRouteContext'); | ||
export const IRouteContext = /*@__PURE__*/DI.createInterface<IRouteContext>('IRouteContext'); | ||
@@ -207,6 +207,5 @@ type PathGenerationResult = { vi: ViewportInstruction; query: Params }; | ||
container.registerResolver( | ||
IRouteContext, | ||
new InstanceProvider<IRouteContext>('IRouteContext', this) | ||
); | ||
const ctxProvider = new InstanceProvider<IRouteContext>('IRouteContext', this); | ||
container.registerResolver(IRouteContext, ctxProvider); | ||
container.registerResolver(RouteContext, ctxProvider); | ||
@@ -705,3 +704,2 @@ container.register(config); | ||
export const INavigationModel = DI.createInterface<INavigationModel>('INavigationModel'); | ||
export interface INavigationModel { | ||
@@ -708,0 +706,0 @@ /** |
@@ -39,3 +39,3 @@ import { DI, IEventAggregator, IDisposable, ILogger } from '@aurelia/kernel'; | ||
export const IRouterEvents = DI.createInterface<IRouterEvents>('IRouterEvents', x => x.singleton(RouterEvents)); | ||
export const IRouterEvents = /*@__PURE__*/DI.createInterface<IRouterEvents>('IRouterEvents', x => x.singleton(RouterEvents)); | ||
export interface IRouterEvents extends RouterEvents {} | ||
@@ -42,0 +42,0 @@ export class RouterEvents implements IRouterEvents { |
import { isObject } from '@aurelia/metadata'; | ||
import { IContainer, ILogger, DI, IDisposable, onResolve, Writable, resolveAll } from '@aurelia/kernel'; | ||
import { IContainer, ILogger, DI, IDisposable, onResolve, Writable, resolveAll, Registration, IResolver } from '@aurelia/kernel'; | ||
import { CustomElement, CustomElementDefinition, IPlatform } from '@aurelia/runtime-html'; | ||
@@ -104,3 +104,3 @@ | ||
export interface IRouter extends Router { } | ||
export const IRouter = DI.createInterface<IRouter>('IRouter', x => x.singleton(Router)); | ||
export const IRouter = /*@__PURE__*/DI.createInterface<IRouter>('IRouter', x => x.singleton(Router)); | ||
export class Router { | ||
@@ -197,2 +197,3 @@ private _ctx: RouteContext | null = null; | ||
this.instructions = ViewportInstructionTree.create('', options); | ||
container.registerResolver(Router, Registration.instance(Router, this) as unknown as IResolver<Router>); | ||
} | ||
@@ -199,0 +200,0 @@ |
@@ -52,3 +52,3 @@ import { ICustomElementController } from '@aurelia/runtime-html'; | ||
export const IStateManager = DI.createInterface<IStateManager>('IStateManager', x => x.singleton(ScrollStateManager)); | ||
export const IStateManager = /*@__PURE__*/DI.createInterface<IStateManager>('IStateManager', x => x.singleton(ScrollStateManager)); | ||
export interface IStateManager { | ||
@@ -55,0 +55,0 @@ saveState(controller: ICustomElementController): void; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1618231
29698
+ Added@aurelia/kernel@2.0.0-beta.5(transitive)
+ Added@aurelia/metadata@2.0.0-beta.5(transitive)
+ Added@aurelia/platform@2.0.0-beta.5(transitive)
+ Added@aurelia/platform-browser@2.0.0-beta.5(transitive)
+ Added@aurelia/route-recognizer@2.0.0-beta.5(transitive)
+ Added@aurelia/runtime@2.0.0-beta.5(transitive)
+ Added@aurelia/runtime-html@2.0.0-beta.5(transitive)
- Removed@aurelia/kernel@2.0.0-beta.4(transitive)
- Removed@aurelia/metadata@2.0.0-beta.4(transitive)
- Removed@aurelia/platform@2.0.0-beta.4(transitive)
- Removed@aurelia/platform-browser@2.0.0-beta.4(transitive)
- Removed@aurelia/route-recognizer@2.0.0-beta.4(transitive)
- Removed@aurelia/runtime@2.0.0-beta.4(transitive)
- Removed@aurelia/runtime-html@2.0.0-beta.4(transitive)
Updated@aurelia/kernel@2.0.0-beta.5