@kitbag/router 0.20.2 → 0.20.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.
@@ -13,33 +13,6 @@ import { StandardSchemaV1 } from '@standard-schema/spec';
13
13
  import { UnwrapRef } from 'vue';
14
14
  import { VNode } from 'vue';
15
15
 
16
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
17
-
18
- declare type __VLS_Props = {
19
- name?: string;
20
- };
21
-
22
- declare function __VLS_template(): {
23
- attrs: Partial<{}>;
24
- slots: Readonly<{
25
- default?: (props: {
26
- route: RouterRoute;
27
- component: Component;
28
- rejection: UnwrapRef<RouterRejection>;
29
- }) => VNode;
30
- }> & {
31
- default?: (props: {
32
- route: RouterRoute;
33
- component: Component;
34
- rejection: UnwrapRef<RouterRejection>;
35
- }) => VNode;
36
- };
37
- refs: {};
38
- rootEl: any;
39
- };
40
-
41
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
-
43
16
  declare type __VLS_WithTemplateSlots<T, S> = T & {
44
17
  new (): {
45
18
  $slots: S;
@@ -434,6 +407,7 @@ declare type GetParentPropsReturnType<TParent extends Route | undefined = Route
434
407
 
435
408
  /**
436
409
  * @deprecated use `withParams` instead
410
+ * @hidden we don't want to expose this in the api docs
437
411
  */
438
412
  export declare const host: typeof withParams;
439
413
 
@@ -618,6 +592,7 @@ declare type ParamWithDefault<TParam extends Param = Param> = Required<ParamGetS
618
592
 
619
593
  /**
620
594
  * @deprecated use `withParams` instead
595
+ * @hidden we don't want to expose this in the api docs
621
596
  */
622
597
  export declare const path: typeof withParams;
623
598
 
@@ -668,6 +643,7 @@ declare type PropsGetter<TOptions extends CreateRouteOptions = CreateRouteOption
668
643
 
669
644
  /**
670
645
  * @deprecated use `withParams` instead
646
+ * @hidden we don't want to expose this in the api docs
671
647
  */
672
648
  export declare const query: typeof withParams;
673
649
 
@@ -997,6 +973,9 @@ export declare type Router<TRoutes extends Routes = any, TOptions extends Router
997
973
 
998
974
  declare type RouterHistoryMode = 'auto' | 'browser' | 'memory' | 'hash';
999
975
 
976
+ /**
977
+ * @hidden we don't want the criptic component types showing up in the api docs
978
+ */
1000
979
  export declare const RouterLink: __VLS_WithTemplateSlots_2<DefineComponent< {
1001
980
  /**
1002
981
  * The url string to navigate to or a callback that returns a url string
@@ -1168,7 +1147,26 @@ export declare type RouterRoutes<TRoutes extends Routes> = {
1168
1147
  [K in keyof TRoutes]: RouterRoute<ResolvedRoute<TRoutes[K]>>;
1169
1148
  }[number];
1170
1149
 
1171
- export declare const RouterView: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1150
+ /**
1151
+ * @hidden we don't want the criptic component types showing up in the api docs
1152
+ */
1153
+ export declare const RouterView: __VLS_WithTemplateSlots<DefineComponent< {
1154
+ name?: string;
1155
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
1156
+ name?: string;
1157
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, Readonly<{
1158
+ default?: (props: {
1159
+ route: RouterRoute;
1160
+ component: Component;
1161
+ rejection: UnwrapRef<RouterRejection>;
1162
+ }) => VNode;
1163
+ }> & {
1164
+ default?: (props: {
1165
+ route: RouterRoute;
1166
+ component: Component;
1167
+ rejection: UnwrapRef<RouterRejection>;
1168
+ }) => VNode;
1169
+ }>;
1172
1170
 
1173
1171
  /**
1174
1172
  * Represents an immutable array of Route instances. Return value of `createRoute`, expected param for `createRouter`.
@@ -1311,6 +1309,16 @@ export declare type UseLinkOptions = RouterPushOptions & {
1311
1309
  prefetch?: PrefetchConfig;
1312
1310
  };
1313
1311
 
1312
+ declare type UseQueryValue<T> = {
1313
+ value: Ref<T | null>;
1314
+ values: Ref<T[]>;
1315
+ remove: () => void;
1316
+ };
1317
+
1318
+ export declare function useQueryValue(key: MaybeRefOrGetter<string>): UseQueryValue<string>;
1319
+
1320
+ export declare function useQueryValue<TParam extends Param>(key: MaybeRefOrGetter<string>, param: TParam): UseQueryValue<ExtractParamType<TParam>>;
1321
+
1314
1322
  /**
1315
1323
  * A composition to access the current route or verify a specific route name within a Vue component.
1316
1324
  * This function provides two overloads: