@simonbackx/vue-app-navigation 2.3.0 → 2.4.1

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/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { default as ComponentWithPropertiesInstance } from './src/ComponentWithP
3
3
  export { default as FramedComponent } from './src/FramedComponent.vue';
4
4
  export * from './src/HistoryManager';
5
5
  export { default as ModalStackComponent } from './src/ModalStackComponent.vue';
6
+ export { useModalStackComponent } from './src/ModalStackComponent.vue';
6
7
  export * from './src/ModalStackComponentFinderMixin';
7
8
  export { default as NavigationController } from './src/NavigationController.vue';
8
9
  export { useNavigationController } from './src/NavigationController.vue';
package/dist/index.js CHANGED
@@ -1816,7 +1816,7 @@ function getCurrentRoutes() {
1816
1816
  }
1817
1817
  function onCheckRoutes(handler) {
1818
1818
  const instance = getCurrentInstance();
1819
- instance._navigationCheckRoutesHandlers = [...instance._navigationCheckRoutes, handler];
1819
+ instance._navigationCheckRoutesHandlers = [...instance._navigationCheckRoutes ?? [], handler];
1820
1820
  }
1821
1821
  function defineRoutes(routes) {
1822
1822
  const component = useCurrentComponent();
@@ -2925,6 +2925,7 @@ export {
2925
2925
  useCurrentHref,
2926
2926
  useDismiss,
2927
2927
  useFocused,
2928
+ useModalStackComponent,
2928
2929
  useNavigate,
2929
2930
  useNavigationController,
2930
2931
  usePop,
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.3.0",
5
+ "version": "2.4.1",
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./dist/index.js",