@simonbackx/vue-app-navigation 2.0.0-alpha.2 → 2.0.0-alpha.4

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.
@@ -26,7 +26,7 @@ declare class HistoryManagerStatic {
26
26
  */
27
27
  setTitle(title: string, index?: number): void;
28
28
  getCurrentState(): HistoryState;
29
- pushState(url: string | undefined, undoAction: ((animate: boolean) => void | Promise<void>) | null, adjustHistory: boolean): void;
29
+ pushState(url: string | undefined, undoAction: ((animate: boolean) => void | Promise<void>) | null, options?: Partial<HistoryState>): void;
30
30
  /**
31
31
  * Call when an action is performed that breaks back/forward navigation
32
32
  */
@@ -13,6 +13,10 @@ export interface PushOptions {
13
13
  * Whether we should push a new real state in the browser history
14
14
  */
15
15
  adjustHistory?: boolean;
16
+ /**
17
+ * When the user will click back, the page will reload if this set is true, instead of doing js based navigation
18
+ */
19
+ invalidHistory?: boolean;
16
20
  /**
17
21
  * Whether this component was pushed as result of a url reconstruction.
18
22
  * Setting this will allow the component to build further on the url reconstruction
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@simonbackx/vue-app-navigation",
3
3
  "main": "./dist/index.js",
4
4
  "types": "./dist/index.d.ts",
5
- "version": "2.0.0-alpha.2",
5
+ "version": "2.0.0-alpha.4",
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./dist/index.js",