@kitbag/router 0.20.6 → 0.20.8

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.
Files changed (204) hide show
  1. package/dist/components/echo.d.ts +6 -0
  2. package/dist/components/helloWorld.d.ts +2 -0
  3. package/dist/components/rejection.d.ts +2 -0
  4. package/dist/components/routerLink.browser.spec.d.ts +1 -0
  5. package/dist/components/routerLink.d.ts +36 -0
  6. package/dist/components/routerView.browser.spec.d.ts +1 -0
  7. package/dist/components/routerView.d.ts +20 -0
  8. package/dist/components/routerView.spec.d.ts +1 -0
  9. package/dist/compositions/useComponentsStore.d.ts +5 -0
  10. package/dist/compositions/useEventListener.d.ts +2 -0
  11. package/dist/compositions/useLink.d.ts +16 -0
  12. package/dist/compositions/usePrefetching.d.ts +14 -0
  13. package/dist/compositions/usePropStore.d.ts +7 -0
  14. package/dist/compositions/useQueryValue.browser.spec.d.ts +1 -0
  15. package/dist/compositions/useQueryValue.d.ts +15 -0
  16. package/dist/compositions/useRejection.d.ts +7 -0
  17. package/dist/compositions/useRoute.browser.spec.d.ts +1 -0
  18. package/dist/compositions/useRoute.d.ts +16 -0
  19. package/dist/compositions/useRouter.d.ts +3 -0
  20. package/dist/compositions/useRouterDepth.d.ts +8 -0
  21. package/dist/compositions/useRouterHooks.d.ts +4 -0
  22. package/dist/compositions/useVisibilityObserver.d.ts +8 -0
  23. package/dist/errors/callbackContextAbortError.d.ts +5 -0
  24. package/dist/errors/callbackContextPushError.d.ts +5 -0
  25. package/dist/errors/callbackContextRejectionError.d.ts +6 -0
  26. package/dist/errors/duplicateNamesError.d.ts +11 -0
  27. package/dist/errors/duplicateParamsError.d.ts +13 -0
  28. package/dist/errors/initialRouteMissingError.d.ts +3 -0
  29. package/dist/errors/invalidRouteParamValueError.d.ts +2 -0
  30. package/dist/errors/metaPropertyConflict.d.ts +8 -0
  31. package/dist/errors/routeNotFoundError.d.ts +6 -0
  32. package/dist/errors/routerNotInstalledError.d.ts +7 -0
  33. package/dist/errors/useRouteInvalidError.d.ts +13 -0
  34. package/dist/guards/routes.d.ts +46 -0
  35. package/dist/guards/routes.spec-d.d.ts +1 -0
  36. package/dist/keys.d.ts +3 -0
  37. package/dist/kitbag-router.d.ts +2 -1433
  38. package/dist/kitbag-router.js +2067 -1959
  39. package/dist/kitbag-router.umd.cjs +3 -3
  40. package/dist/main.d.ts +302 -0
  41. package/dist/models/RouteHooks.d.ts +9 -0
  42. package/dist/models/RouterRouteHooks.d.ts +10 -0
  43. package/dist/services/arrayOf.d.ts +7 -0
  44. package/dist/services/arrayOf.spec.d.ts +1 -0
  45. package/dist/services/combineHash.d.ts +4 -0
  46. package/dist/services/combineHash.spec.d.ts +1 -0
  47. package/dist/services/combineMeta.d.ts +2 -0
  48. package/dist/services/combineMeta.spec.d.ts +1 -0
  49. package/dist/services/combinePath.d.ts +12 -0
  50. package/dist/services/combinePath.spec-d.d.ts +1 -0
  51. package/dist/services/combinePath.spec.d.ts +1 -0
  52. package/dist/services/combineQuery.d.ts +13 -0
  53. package/dist/services/combineQuery.spec.d.ts +1 -0
  54. package/dist/services/combineState.d.ts +3 -0
  55. package/dist/services/combineState.spec.d.ts +1 -0
  56. package/dist/services/component.browser.spec.d.ts +1 -0
  57. package/dist/services/component.d.ts +12 -0
  58. package/dist/services/createCallbackContext.d.ts +44 -0
  59. package/dist/services/createComponentHooks.d.ts +11 -0
  60. package/dist/services/createComponentsStore.d.ts +7 -0
  61. package/dist/services/createCurrentRoute.d.ts +13 -0
  62. package/dist/services/createExternalRoute.d.ts +3 -0
  63. package/dist/services/createExternalRoute.spec.d.ts +1 -0
  64. package/dist/services/createIsExternal.d.ts +1 -0
  65. package/dist/services/createIsExternal.spec.d.ts +1 -0
  66. package/dist/services/createParam.d.ts +6 -0
  67. package/dist/services/createPropStore.d.ts +13 -0
  68. package/dist/services/createResolvedRoute.d.ts +4 -0
  69. package/dist/services/createResolvedRouteForUrl.browser.spec.d.ts +1 -0
  70. package/dist/services/createResolvedRouteForUrl.d.ts +3 -0
  71. package/dist/services/createResolvedRouteQuery.d.ts +5 -0
  72. package/dist/services/createRoute.d.ts +4 -0
  73. package/dist/services/createRoute.spec-d.d.ts +1 -0
  74. package/dist/services/createRoute.spec.d.ts +1 -0
  75. package/dist/services/createRouteId.d.ts +1 -0
  76. package/dist/services/createRouter.browser.spec.d.ts +1 -0
  77. package/dist/services/createRouter.d.ts +28 -0
  78. package/dist/services/createRouter.spec-d.d.ts +1 -0
  79. package/dist/services/createRouter.spec.d.ts +1 -0
  80. package/dist/services/createRouterAssets.d.ts +118 -0
  81. package/dist/services/createRouterCallbackContext.d.ts +45 -0
  82. package/dist/services/createRouterHistory.browser.spec.d.ts +1 -0
  83. package/dist/services/createRouterHistory.d.ts +20 -0
  84. package/dist/services/createRouterHooks.d.ts +20 -0
  85. package/dist/services/createRouterKeyStore.d.ts +3 -0
  86. package/dist/services/createRouterPlugin.browser.spec.d.ts +1 -0
  87. package/dist/services/createRouterPlugin.d.ts +4 -0
  88. package/dist/services/createRouterReject.d.ts +16 -0
  89. package/dist/services/createRouterRoute.d.ts +7 -0
  90. package/dist/services/createRouterRoute.spec.d.ts +1 -0
  91. package/dist/services/createUniqueIdSequence.d.ts +2 -0
  92. package/dist/services/createVisibilityObserver.d.ts +7 -0
  93. package/dist/services/createVueAppStore.d.ts +8 -0
  94. package/dist/services/getGlobalHooksForRouter.d.ts +4 -0
  95. package/dist/services/getGlobalRouteHooks.d.ts +5 -0
  96. package/dist/services/getInitialUrl.browser.spec.d.ts +1 -0
  97. package/dist/services/getInitialUrl.d.ts +1 -0
  98. package/dist/services/getInitialUrl.spec.d.ts +1 -0
  99. package/dist/services/getMatchesForUrl.d.ts +2 -0
  100. package/dist/services/getMatchesForUrl.spec.d.ts +1 -0
  101. package/dist/services/getParamsForString.d.ts +2 -0
  102. package/dist/services/getRouteHooks.d.ts +10 -0
  103. package/dist/services/getRouteHooks.spec.d.ts +1 -0
  104. package/dist/services/getRoutesForRouter.d.ts +9 -0
  105. package/dist/services/getRoutesForRouter.spec.d.ts +1 -0
  106. package/dist/services/hooks.browser.spec.d.ts +1 -0
  107. package/dist/services/hooks.d.ts +8 -0
  108. package/dist/services/hooks.spec.d.ts +1 -0
  109. package/dist/services/insertBaseRoute.d.ts +2 -0
  110. package/dist/services/insertBaseRoute.spec.d.ts +1 -0
  111. package/dist/services/paramValidation.d.ts +4 -0
  112. package/dist/services/paramValidation.spec.d.ts +1 -0
  113. package/dist/services/params.d.ts +7 -0
  114. package/dist/services/params.spec.d.ts +1 -0
  115. package/dist/services/paramsFinder.d.ts +3 -0
  116. package/dist/services/paramsFinder.spec.d.ts +1 -0
  117. package/dist/services/routeMatchRules.d.ts +5 -0
  118. package/dist/services/routeMatchRules.spec.d.ts +1 -0
  119. package/dist/services/routeMatchScore.d.ts +7 -0
  120. package/dist/services/routeMatchScore.spec.d.ts +1 -0
  121. package/dist/services/routeRegex.d.ts +18 -0
  122. package/dist/services/routeRegex.spec.d.ts +1 -0
  123. package/dist/services/state.d.ts +9 -0
  124. package/dist/services/state.spec.d.ts +1 -0
  125. package/dist/services/tupleOf.d.ts +10 -0
  126. package/dist/services/tupleOf.spec.d.ts +1 -0
  127. package/dist/services/unionOf.d.ts +3 -0
  128. package/dist/services/unionOf.spec.d.ts +1 -0
  129. package/dist/services/urlAssembly.d.ts +10 -0
  130. package/dist/services/urlAssembly.spec.d.ts +1 -0
  131. package/dist/services/urlCombine.d.ts +2 -0
  132. package/dist/services/urlCombine.spec.d.ts +1 -0
  133. package/dist/services/urlCreator.d.ts +2 -0
  134. package/dist/services/urlCreator.spec.d.ts +1 -0
  135. package/dist/services/urlParser.d.ts +2 -0
  136. package/dist/services/urlParser.spec.d.ts +1 -0
  137. package/dist/services/valibot.d.ts +7 -0
  138. package/dist/services/valibot.spec-d.d.ts +1 -0
  139. package/dist/services/valibot.spec.d.ts +1 -0
  140. package/dist/services/withDefault.d.ts +5 -0
  141. package/dist/services/withParams.d.ts +15 -0
  142. package/dist/services/withParams.spec-d.d.ts +1 -0
  143. package/dist/services/withParams.spec.d.ts +1 -0
  144. package/dist/services/zod.d.ts +11 -0
  145. package/dist/services/zod.spec-d.d.ts +1 -0
  146. package/dist/services/zod.spec.d.ts +1 -0
  147. package/dist/tests/hooks.spec.d.ts +1 -0
  148. package/dist/tests/routeProps.browser.spec.d.ts +1 -0
  149. package/dist/tests/routeProps.spec.d.ts +1 -0
  150. package/dist/types/createRouteOptions.d.ts +120 -0
  151. package/dist/types/hooks.d.ts +129 -0
  152. package/dist/types/meta.d.ts +2 -0
  153. package/dist/types/name.d.ts +2 -0
  154. package/dist/types/paramTypes.d.ts +14 -0
  155. package/dist/types/params.d.ts +71 -0
  156. package/dist/types/prefetch.d.ts +27 -0
  157. package/dist/types/props.d.ts +23 -0
  158. package/dist/types/querySource.d.ts +1 -0
  159. package/dist/types/register.d.ts +68 -0
  160. package/dist/types/register.spec.d.ts +1 -0
  161. package/dist/types/resolved.d.ts +47 -0
  162. package/dist/types/resolved.spec-d.d.ts +1 -0
  163. package/dist/types/route.d.ts +76 -0
  164. package/dist/types/route.spec-d.d.ts +1 -0
  165. package/dist/types/routeMatchRule.d.ts +2 -0
  166. package/dist/types/routeUpdate.d.ts +9 -0
  167. package/dist/types/routeWithParams.d.ts +5 -0
  168. package/dist/types/routeWithParams.spec-d.d.ts +1 -0
  169. package/dist/types/router.d.ts +186 -0
  170. package/dist/types/routerLink.d.ts +16 -0
  171. package/dist/types/routerPlugin.d.ts +18 -0
  172. package/dist/types/routerPush.d.ts +33 -0
  173. package/dist/types/routerReject.d.ts +3 -0
  174. package/dist/types/routerReplace.d.ts +20 -0
  175. package/dist/types/routerResolve.d.ts +15 -0
  176. package/dist/types/routerRoute.d.ts +16 -0
  177. package/dist/types/routesMap.d.ts +9 -0
  178. package/dist/types/routesMap.spec-ts.d.ts +1 -0
  179. package/dist/types/state.d.ts +18 -0
  180. package/dist/types/url.d.ts +23 -0
  181. package/dist/types/useLink.d.ts +51 -0
  182. package/dist/types/utilities.d.ts +22 -0
  183. package/dist/utilities/array.d.ts +2 -0
  184. package/dist/utilities/checkDuplicateKeys.d.ts +1 -0
  185. package/dist/utilities/checkDuplicateKeys.spec.d.ts +1 -0
  186. package/dist/utilities/checkDuplicateNames.d.ts +2 -0
  187. package/dist/utilities/checkDuplicateNames.spec.d.ts +1 -0
  188. package/dist/utilities/components.d.ts +6 -0
  189. package/dist/utilities/components.spec.d.ts +1 -0
  190. package/dist/utilities/guards.d.ts +5 -0
  191. package/dist/utilities/guards.spec.d.ts +1 -0
  192. package/dist/utilities/index.d.ts +6 -0
  193. package/dist/utilities/isBrowser.browser.spec.d.ts +1 -0
  194. package/dist/utilities/isBrowser.d.ts +1 -0
  195. package/dist/utilities/isBrowser.spec.d.ts +1 -0
  196. package/dist/utilities/makeOptional.d.ts +9 -0
  197. package/dist/utilities/prefetch.d.ts +4 -0
  198. package/dist/utilities/prefetch.spec.d.ts +1 -0
  199. package/dist/utilities/promises.d.ts +1 -0
  200. package/dist/utilities/props.d.ts +6 -0
  201. package/dist/utilities/testHelpers.d.ts +144 -0
  202. package/dist/utilities/urlSearchParams.d.ts +2 -0
  203. package/dist/utilities/urlSearchParams.spec.d.ts +1 -0
  204. package/package.json +12 -12
@@ -0,0 +1,51 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { PrefetchConfig } from './prefetch';
3
+ import { ResolvedRoute } from './resolved';
4
+ import { RouterPushOptions } from './routerPush';
5
+ import { RouterReplaceOptions } from './routerReplace';
6
+ import { Url } from './url';
7
+ export type UseLink = {
8
+ /**
9
+ * A template ref to bind to the dom for automatic prefetching
10
+ */
11
+ element: Ref<HTMLElement | undefined>;
12
+ /**
13
+ * ResolvedRoute if matched. Same value as `router.find`
14
+ */
15
+ route: ComputedRef<ResolvedRoute | undefined>;
16
+ /**
17
+ * Resolved URL with params interpolated and query applied. Same value as `router.resolve`.
18
+ */
19
+ href: ComputedRef<Url | undefined>;
20
+ /**
21
+ * True if route matches current URL or is ancestor of route that matches current URL
22
+ */
23
+ isMatch: ComputedRef<boolean>;
24
+ /**
25
+ * True if route matches current URL. Route is the same as what's currently stored at `router.route`.
26
+ */
27
+ isExactMatch: ComputedRef<boolean>;
28
+ /**
29
+ * True if route matches current URL, or is a parent route that matches the parent of the current URL.
30
+ */
31
+ isActive: ComputedRef<boolean>;
32
+ /**
33
+ * True if route matches current URL exactly.
34
+ */
35
+ isExactActive: ComputedRef<boolean>;
36
+ /**
37
+ *
38
+ */
39
+ isExternal: ComputedRef<boolean>;
40
+ /**
41
+ * Convenience method for executing `router.push` with route context passed in.
42
+ */
43
+ push: (options?: RouterPushOptions) => Promise<void>;
44
+ /**
45
+ * Convenience method for executing `router.replace` with route context passed in.
46
+ */
47
+ replace: (options?: RouterReplaceOptions) => Promise<void>;
48
+ };
49
+ export type UseLinkOptions = RouterPushOptions & {
50
+ prefetch?: PrefetchConfig;
51
+ };
@@ -0,0 +1,22 @@
1
+ export type Identity<T> = T extends object ? {} & {
2
+ [P in keyof T as T[P] extends never ? never : P]: T[P];
3
+ } : T;
4
+ type IsEmptyObject<T> = T extends Record<string, never> ? (keyof T extends never ? true : false) : false;
5
+ export type MaybeArray<T> = T | T[];
6
+ export type LastInArray<T, TFallback = never> = T extends [...any[], infer Last] ? Last : TFallback;
7
+ export type MaybePromise<T> = T | Promise<T>;
8
+ type OnlyRequiredProperties<T> = {
9
+ [K in keyof T as Extract<T[K], undefined> extends never ? K : never]: T[K];
10
+ };
11
+ export type AllPropertiesAreOptional<T> = Record<string, unknown> extends T ? true : IsEmptyObject<OnlyRequiredProperties<T>>;
12
+ /**
13
+ * Converts a type to a string if it is a string, otherwise returns never.
14
+ * Specifically useful when using keyof T to produce a union of strings
15
+ * rather than string | number | symbol.
16
+ */
17
+ export type AsString<T> = T extends string ? T : never;
18
+ /**
19
+ * Extracts the keys of a union type.
20
+ */
21
+ export type KeysOfUnion<T> = T extends T ? keyof T : never;
22
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function asArray<T>(value: Readonly<T | T[]>): T[];
2
+ export declare function getCount<T>(array: T[], item: T): number;
@@ -0,0 +1 @@
1
+ export declare function checkDuplicateParams(...withParams: (Record<string, unknown> | string[])[]): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Routes } from '../types/route';
2
+ export declare function checkDuplicateNames(routes: Routes): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Component } from 'vue';
2
+ type ComponentWithAsyncLoader = Component & {
3
+ __asyncLoader: () => void;
4
+ };
5
+ export declare function isAsyncComponent(component: Component): component is ComponentWithAsyncLoader;
6
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare function isDefined<T>(value: T | undefined): value is T;
2
+ export declare function isRecord(value: unknown): value is Record<PropertyKey, unknown>;
3
+ export declare function hasProperty<TSource extends Record<PropertyKey, unknown>, TProperty extends PropertyKey, TType extends () => unknown>(value: TSource, key: TProperty, type?: TType): value is TSource & Record<TProperty, ReturnType<TType>>;
4
+ export declare function stringHasValue(value: string | undefined): value is string;
5
+ export type StringHasValue<T> = string extends T ? true : '' extends T ? false : T extends string ? true : false;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './array';
2
+ export * from './checkDuplicateKeys';
3
+ export * from './guards';
4
+ export * from './isBrowser';
5
+ export * from './makeOptional';
6
+ export * from './testHelpers';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function isBrowser(): boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ type WithOptionalProperties<T> = {
2
+ [P in keyof T]-?: undefined extends T[P] ? P : never;
3
+ }[keyof T];
4
+ export type MakeOptional<T> = {
5
+ [P in WithOptionalProperties<T>]?: T[P];
6
+ } & {
7
+ [P in Exclude<keyof T, WithOptionalProperties<T>>]: T[P];
8
+ };
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { PrefetchConfig, PrefetchConfigOptions, PrefetchConfigs, PrefetchStrategy } from '../types/prefetch';
2
+ export declare const DEFAULT_PREFETCH_STRATEGY: PrefetchStrategy;
3
+ export declare function getPrefetchOption({ routerPrefetch, routePrefetch, linkPrefetch }: PrefetchConfigs, setting: keyof PrefetchConfigOptions): false | PrefetchStrategy;
4
+ export declare function getPrefetchConfigValue(prefetch: PrefetchConfig | undefined, setting: keyof PrefetchConfigOptions): boolean | PrefetchStrategy | undefined;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function isPromise(value: unknown): value is Promise<unknown>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Takes a props callback and returns a value
3
+ * For sync props, this will return the props value or an error.
4
+ * For async props, this will return a promise that resolves to the props value or an error.
5
+ */
6
+ export declare function getPropsValue(callback: () => unknown): unknown;
@@ -0,0 +1,144 @@
1
+ import { ResolvedRoute } from '../types/resolved';
2
+ export declare const random: {
3
+ number(options?: {
4
+ min?: number;
5
+ max?: number;
6
+ }): number;
7
+ };
8
+ export declare function getError(callback: () => any): unknown;
9
+ export declare const component: {
10
+ template: string;
11
+ };
12
+ export declare const routes: readonly [import('../main').Route<"parentA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]", {}>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
13
+ readonly name: "parentA";
14
+ readonly path: "/parentA/[paramA]";
15
+ }, "props"> & {
16
+ id: string;
17
+ props: undefined;
18
+ }]>, import('../main').Route<"parentA.childA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]/childA/[?paramB]", {
19
+ paramA: StringConstructor;
20
+ } & {
21
+ paramB: StringConstructor;
22
+ }>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
23
+ readonly name: "parentA";
24
+ readonly path: "/parentA/[paramA]";
25
+ }, "props"> & {
26
+ id: string;
27
+ props: undefined;
28
+ }, Omit<{
29
+ readonly parent: import('../main').Route<"parentA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]", {}>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
30
+ readonly name: "parentA";
31
+ readonly path: "/parentA/[paramA]";
32
+ }, "props"> & {
33
+ id: string;
34
+ props: undefined;
35
+ }]>;
36
+ readonly name: "parentA.childA";
37
+ readonly path: "/childA/[?paramB]";
38
+ }, "props"> & {
39
+ id: string;
40
+ props: undefined;
41
+ }]>, import('../main').Route<"parentA.childB", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]/childB/[paramD]", {
42
+ paramA: StringConstructor;
43
+ } & {
44
+ paramD: StringConstructor;
45
+ }>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
46
+ readonly name: "parentA";
47
+ readonly path: "/parentA/[paramA]";
48
+ }, "props"> & {
49
+ id: string;
50
+ props: undefined;
51
+ }, Omit<{
52
+ readonly parent: import('../main').Route<"parentA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]", {}>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
53
+ readonly name: "parentA";
54
+ readonly path: "/parentA/[paramA]";
55
+ }, "props"> & {
56
+ id: string;
57
+ props: undefined;
58
+ }]>;
59
+ readonly name: "parentA.childB";
60
+ readonly path: "/childB/[paramD]";
61
+ readonly component: {
62
+ template: string;
63
+ };
64
+ }, "props"> & {
65
+ id: string;
66
+ props: undefined;
67
+ }]>, import('../main').Route<"parentA.childA.grandChildA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]/childA/[?paramB]/[paramC]", {
68
+ paramA: StringConstructor;
69
+ paramB: StringConstructor;
70
+ } & {
71
+ paramC: StringConstructor;
72
+ }>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
73
+ readonly name: "parentA";
74
+ readonly path: "/parentA/[paramA]";
75
+ }, "props"> & {
76
+ id: string;
77
+ props: undefined;
78
+ }, Omit<{
79
+ readonly parent: import('../main').Route<"parentA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]", {}>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
80
+ readonly name: "parentA";
81
+ readonly path: "/parentA/[paramA]";
82
+ }, "props"> & {
83
+ id: string;
84
+ props: undefined;
85
+ }]>;
86
+ readonly name: "parentA.childA";
87
+ readonly path: "/childA/[?paramB]";
88
+ }, "props"> & {
89
+ id: string;
90
+ props: undefined;
91
+ }, Omit<{
92
+ readonly parent: import('../main').Route<"parentA.childA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]/childA/[?paramB]", {
93
+ paramA: StringConstructor;
94
+ } & {
95
+ paramB: StringConstructor;
96
+ }>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
97
+ readonly name: "parentA";
98
+ readonly path: "/parentA/[paramA]";
99
+ }, "props"> & {
100
+ id: string;
101
+ props: undefined;
102
+ }, Omit<{
103
+ readonly parent: import('../main').Route<"parentA", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentA/[paramA]", {}>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
104
+ readonly name: "parentA";
105
+ readonly path: "/parentA/[paramA]";
106
+ }, "props"> & {
107
+ id: string;
108
+ props: undefined;
109
+ }]>;
110
+ readonly name: "parentA.childA";
111
+ readonly path: "/childA/[?paramB]";
112
+ }, "props"> & {
113
+ id: string;
114
+ props: undefined;
115
+ }]>;
116
+ readonly name: "parentA.childA.grandChildA";
117
+ readonly path: "/[paramC]";
118
+ readonly component: {
119
+ template: string;
120
+ };
121
+ }, "props"> & {
122
+ id: string;
123
+ props: undefined;
124
+ }]>, import('../main').Route<"parentB", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/parentB", {}>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
125
+ readonly name: "parentB";
126
+ readonly path: "/parentB";
127
+ readonly component: {
128
+ template: string;
129
+ };
130
+ }, "props"> & {
131
+ id: string;
132
+ props: undefined;
133
+ }]>, import('../main').Route<"parentC", import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"/", {}>, import('../services/withParams').WithParams<"", {}>, import('../services/withParams').WithParams<"", {}>, {}, {}, [Omit<{
134
+ readonly name: "parentC";
135
+ readonly path: "/";
136
+ readonly component: {
137
+ template: string;
138
+ };
139
+ }, "props"> & {
140
+ id: string;
141
+ props: undefined;
142
+ }]>];
143
+ export declare function mockRoute(name: string): ResolvedRoute['matched'];
144
+ export declare function mockResolvedRoute(matched: ResolvedRoute['matched'], matches: ResolvedRoute['matched'][]): ResolvedRoute;
@@ -0,0 +1,2 @@
1
+ import { QuerySource } from '../types/querySource';
2
+ export declare function combineUrlSearchParams(...paramGroups: (URLSearchParams | QuerySource)[]): URLSearchParams;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kitbag/router",
3
3
  "private": false,
4
- "version": "0.20.6",
4
+ "version": "0.20.8",
5
5
  "bugs": {
6
6
  "url": "https://github.com/kitbagjs/router/issues"
7
7
  },
@@ -41,21 +41,21 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@kitbag/eslint-config": "1.0.2",
44
- "@vitejs/plugin-vue": "^5.2.4",
44
+ "@vitejs/plugin-vue": "^6.0.1",
45
45
  "@vue/test-utils": "^2.4.6",
46
- "eslint": "^9.29.0",
47
- "globals": "^16.2.0",
48
- "happy-dom": "^18.0.1",
49
- "typedoc": "^0.28.5",
50
- "typedoc-plugin-markdown": "^4.6.4",
46
+ "eslint": "^9.39.1",
47
+ "globals": "^16.5.0",
48
+ "happy-dom": "^20.0.8",
49
+ "typedoc": "^0.28.14",
50
+ "typedoc-plugin-markdown": "^4.9.0",
51
51
  "typedoc-vitepress-theme": "^1.1.2",
52
- "typescript": "^5.8.3",
52
+ "typescript": "^5.9.3",
53
53
  "valibot": "^1.0.0",
54
- "vite": "^6.3.5",
54
+ "vite": "^7.1.12",
55
55
  "vite-plugin-dts": "^4.5.4",
56
- "vitepress": "^1.6.3",
57
- "vitest": "^3.2.4",
58
- "vue-tsc": "^2.2.10"
56
+ "vitepress": "^1.6.4",
57
+ "vitest": "^4.0.4",
58
+ "vue-tsc": "^3.1.2"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "vue": "^3.5.0",