@lexriver/dome 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1506,7 +1506,11 @@ Parameters:
1506
1506
 
1507
1507
  Where `RouteAction` type is:
1508
1508
  ```typescript
1509
- export type RouteAction = (params:{[key:string]:string}, url:string) => void|Promise<void>
1509
+ export type RouteAction = (
1510
+ params:{[key:string]:string}, // parameters from url
1511
+ url:string,
1512
+ scrollToPreviousPositionAsync:()=>Promise<void> // this function can be called to scroll to previous page position
1513
+ ) => void|Promise<void>
1510
1514
  ```
1511
1515
 
1512
1516
  example:
@@ -1,6 +1,6 @@
1
1
  export declare type RouteAction = (params: {
2
2
  [key: string]: string;
3
- }, url: string, scrollToPreviousPositionFunctionAsync: () => Promise<void>) => void | Promise<void>;
3
+ }, url: string, scrollToPreviousPositionAsync: () => Promise<void>) => void | Promise<void>;
4
4
  export declare module DomeRouter {
5
5
  let maxHistoryUrlsCount: number;
6
6
  function navigate(url: string): void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sideEffects": false,
4
4
  "name": "@lexriver/dome",
5
- "version": "1.5.8",
5
+ "version": "1.5.9",
6
6
  "description": "",
7
7
  "main": "out/index.js",
8
8
  "types": "out/index.d.ts",
package/src/DomeRouter.ts CHANGED
@@ -5,7 +5,7 @@ const filename = '[DomeRouter]'
5
5
  export type RouteAction = (
6
6
  params:{[key:string]:string},
7
7
  url:string,
8
- scrollToPreviousPositionFunctionAsync:()=>Promise<void>
8
+ scrollToPreviousPositionAsync:()=>Promise<void>
9
9
  ) => void|Promise<void>
10
10
 
11
11
  interface Route{