@kitbag/router 0.20.1 → 0.20.2

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.
@@ -985,6 +985,10 @@ export declare type Router<TRoutes extends Routes = any, TOptions extends Router
985
985
  * Initializes the router based on the initial route. Automatically called when the router is installed. Calling this more than once has no effect.
986
986
  */
987
987
  start: () => Promise<void>;
988
+ /**
989
+ * Returns true if the router has been started.
990
+ */
991
+ started: Ref<boolean>;
988
992
  /**
989
993
  * Stops the router and teardown any listeners.
990
994
  */
@@ -1020,6 +1024,8 @@ element: HTMLAnchorElement;
1020
1024
  route: ResolvedRoute | undefined;
1021
1025
  isMatch: boolean;
1022
1026
  isExactMatch: boolean;
1027
+ isActive: boolean;
1028
+ isExactActive: boolean;
1023
1029
  isExternal: boolean;
1024
1030
  }) => unknown;
1025
1031
  }> & {
@@ -1027,6 +1033,8 @@ element: HTMLAnchorElement;
1027
1033
  route: ResolvedRoute | undefined;
1028
1034
  isMatch: boolean;
1029
1035
  isExactMatch: boolean;
1036
+ isActive: boolean;
1037
+ isExactActive: boolean;
1030
1038
  isExternal: boolean;
1031
1039
  }) => unknown;
1032
1040
  }>;
@@ -1256,6 +1264,14 @@ export declare type UseLink = {
1256
1264
  * True if route matches current URL. Route is the same as what's currently stored at `router.route`.
1257
1265
  */
1258
1266
  isExactMatch: ComputedRef<boolean>;
1267
+ /**
1268
+ * True if route matches current URL, or is a parent route that matches the parent of the current URL.
1269
+ */
1270
+ isActive: ComputedRef<boolean>;
1271
+ /**
1272
+ * True if route matches current URL exactly.
1273
+ */
1274
+ isExactActive: ComputedRef<boolean>;
1259
1275
  /**
1260
1276
  *
1261
1277
  */