@simonbackx/vue-app-navigation 2.6.0 → 2.7.0

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.
@@ -28,8 +28,10 @@ export declare class ComponentWithProperties {
28
28
  isDismissing: import('vue').Ref<boolean, boolean>;
29
29
  historyIndex: number | null;
30
30
  static historyIndexOwners: Map<number, ComponentWithProperties>;
31
+ forceCanHaveFocus: boolean;
31
32
  setCheckRoutes(): this;
32
33
  constructor(component: any, properties?: Record<string, any>, options?: {
34
+ forceCanHaveFocus?: boolean;
33
35
  provide?: Record<string, any>;
34
36
  inheritedDisplayerProvide?: Record<string, any>;
35
37
  inheritedParentProvide?: Record<string, any>;
@@ -44,6 +46,7 @@ export declare class ComponentWithProperties {
44
46
  getHistoryIndex(): number | null | undefined;
45
47
  deleteHistoryIndex(): void;
46
48
  hasHistoryIndex(): boolean;
49
+ canHaveFocus(): boolean;
47
50
  /**
48
51
  * This will get called when the component has been pushed somewhere that should count as a new history state
49
52
  */
@@ -1,7 +1,7 @@
1
1
  import { PushOptions } from './PushOptions';
2
2
  import { ComponentWithProperties, ComponentWithPropertiesType } from './ComponentWithProperties';
3
3
 
4
- declare function present(options: PushOptions): void;
4
+ declare function present(options: PushOptions): Promise<void>;
5
5
  declare function replace(component: ComponentWithPropertiesType, animated?: boolean): void;
6
6
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
7
  root: ComponentWithPropertiesType;
@@ -7,8 +7,9 @@ export interface PushOptions {
7
7
  components: ComponentWithProperties[];
8
8
  /**
9
9
  * The url for this new route.
10
+ * Set to null to specifically ignore or extending url (displayed view will copy the previous url - which is not the same as the url of the previous view)
10
11
  */
11
- url?: string;
12
+ url?: string | null;
12
13
  /**
13
14
  * Whether we should push a new real state in the browser history
14
15
  */
@@ -74,6 +74,7 @@ export declare function defineRoutes(routes: (Route<any, undefined>[]) | (() =>
74
74
  export declare function useCurrentHref(): Ref<string, string>;
75
75
  export declare function useCheckRoute(): <Params extends Record<string, unknown>>(prop1: string | Route<Params, unknown>, prop2?: RouteNavigationOptions<Params>) => boolean;
76
76
  export declare function normalizePushOptions(o: PushOptions | ComponentWithProperties, currentComponent: ComponentWithProperties | null, urlHelpers: ReturnType<typeof useUrl>): PushOptions;
77
+ export declare function useManualPresent(): (present: (options: PushOptions) => Promise<void> | void, options: PushOptions | ComponentWithProperties) => void | Promise<void>;
77
78
  export declare function useShow(): (options: PushOptions | ComponentWithProperties) => Promise<void>;
78
79
  export declare function useShowDetail(): (options: PushOptions | ComponentWithProperties) => Promise<void>;
79
80
  export declare function usePresent(): (options: PushOptions | ComponentWithProperties) => Promise<void>;
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.6.0",
5
+ "version": "2.7.0",
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./dist/index.js",