@kitbag/router 0.25.0 → 0.26.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/components/routerLink.d.ts +3 -3
- package/dist/compositions/useHasSuspenseBoundary.browser.spec.d.ts +1 -0
- package/dist/compositions/useHasSuspenseBoundary.d.ts +4 -0
- package/dist/compositions/useIsServerRendering.browser.spec.d.ts +1 -0
- package/dist/compositions/useIsServerRendering.d.ts +5 -0
- package/dist/compositions/useIsServerRendering.spec.d.ts +1 -0
- package/dist/errors/contextRedirectError.d.ts +7 -0
- package/dist/errors/navigationAbandonedError.d.ts +1 -0
- package/dist/errors/payloadValueError.d.ts +9 -0
- package/dist/errors/ssrOptionRequiredError.d.ts +7 -0
- package/dist/errors/unsupportedSchemaVendorError.d.ts +7 -0
- package/dist/errors/updateWithoutRouteError.d.ts +7 -0
- package/dist/kitbag-router.d.ts +1 -1
- package/dist/kitbag-router.js +6647 -6429
- package/dist/kitbag-router.umd.cjs +5 -5
- package/dist/main.d.ts +2 -0
- package/dist/services/addLoader.d.ts +4 -1
- package/dist/services/addView.d.ts +4 -1
- package/dist/services/arktype.spec-d.d.ts +1 -0
- package/dist/services/arktype.spec.d.ts +1 -0
- package/dist/services/createActivityTracker.d.ts +6 -0
- package/dist/services/createActivityTracker.spec.d.ts +1 -0
- package/dist/services/createCurrentRejection.d.ts +0 -3
- package/dist/services/createNavigationIds.d.ts +6 -0
- package/dist/services/createNavigationIds.spec.d.ts +1 -0
- package/dist/services/createNavigationStores.d.ts +10 -5
- package/dist/services/createRejection.d.ts +2 -6
- package/dist/services/createRejection.spec-d.d.ts +1 -0
- package/dist/services/createRejection.spec.d.ts +1 -0
- package/dist/services/createRouteHooks.d.ts +1 -1
- package/dist/services/createRouteValueStore.d.ts +44 -12
- package/dist/services/createRouteValueStore.spec.d.ts +1 -0
- package/dist/services/createRouterCallbackContext.d.ts +1 -1
- package/dist/services/createRouterHistory.spec.d.ts +1 -0
- package/dist/services/createServerRedirect.d.ts +14 -0
- package/dist/services/createServerRedirect.spec.d.ts +1 -0
- package/dist/services/getComputations.d.ts +40 -0
- package/dist/services/getGlobalRouteHooks.d.ts +2 -2
- package/dist/services/getInitialUrl.d.ts +2 -1
- package/dist/services/getRouteHooks.d.ts +2 -2
- package/dist/services/getRoutesForRouter.d.ts +3 -1
- package/dist/services/hooks.d.ts +1 -1
- package/dist/services/payload.d.ts +86 -0
- package/dist/services/payload.spec.d.ts +1 -0
- package/dist/services/standardSchema.d.ts +21 -0
- package/dist/services/urlParser.d.ts +5 -0
- package/dist/tests/hydration.browser.spec.d.ts +1 -0
- package/dist/tests/render.spec.d.ts +1 -0
- package/dist/types/addLoader.d.ts +3 -2
- package/dist/types/addView.d.ts +7 -2
- package/dist/types/callbackContext.d.ts +9 -0
- package/dist/types/hooks.d.ts +14 -15
- package/dist/types/paramTypes.d.ts +2 -3
- package/dist/types/params.d.ts +1 -1
- package/dist/types/redirects.d.ts +11 -3
- package/dist/types/rejection.d.ts +24 -4
- package/dist/types/resolved.d.ts +4 -2
- package/dist/types/routeLoaders.d.ts +2 -0
- package/dist/types/routeTitle.d.ts +2 -1
- package/dist/types/routeViews.d.ts +2 -0
- package/dist/types/router.d.ts +95 -3
- package/dist/types/routerPlugin.d.ts +7 -3
- package/dist/types/routerReject.d.ts +13 -0
- package/dist/types/routerRoute.d.ts +1 -1
- package/dist/types/serverRenderResponse.spec-d.d.ts +1 -0
- package/dist/utilities/components.d.ts +13 -1
- package/dist/utilities/setDocumentTitle.d.ts +1 -2
- package/package.json +10 -15
- package/dist/services/valibot.d.ts +0 -7
- package/dist/services/zod.d.ts +0 -11
|
@@ -14,7 +14,7 @@ type RouterLinkSlots = {
|
|
|
14
14
|
}) => VNode[];
|
|
15
15
|
};
|
|
16
16
|
export declare function createRouterLink<TRouter extends Router>(routerKey: InjectionKey<TRouter>): import('vue').DefineSetupFnComponent<RouterLinkProps<TRouter>, EmitsOptions, SlotsType<RouterLinkSlots>, import('../main').RouterPushOptions & {
|
|
17
|
-
to:
|
|
17
|
+
to: Readonly<{
|
|
18
18
|
id: string;
|
|
19
19
|
matched: import('../main').CreatedRouteOptions;
|
|
20
20
|
matches: import('../main').CreatedRouteOptions[];
|
|
@@ -26,8 +26,8 @@ export declare function createRouterLink<TRouter extends Router>(routerKey: Inje
|
|
|
26
26
|
href: UrlString;
|
|
27
27
|
query: URLSearchParams;
|
|
28
28
|
hash: string;
|
|
29
|
-
|
|
30
|
-
}> | ToCallback<TRouter>;
|
|
29
|
+
getTitle: import('../types/routeTitle').GetTitleCallback;
|
|
30
|
+
}> | UrlString | ToCallback<TRouter>;
|
|
31
31
|
prefetch?: import('../main').PrefetchConfig;
|
|
32
32
|
target?: string;
|
|
33
33
|
} & ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CallbackContextRedirect } from '../types/callbackContext';
|
|
2
|
+
import { ContextError } from './contextError';
|
|
3
|
+
import { RedirectStatus } from '../types/router';
|
|
4
|
+
export declare class ContextRedirectError extends ContextError {
|
|
5
|
+
response: CallbackContextRedirect;
|
|
6
|
+
constructor(to: unknown[], redirectStatus: RedirectStatus | undefined);
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataKind } from '../services/createNavigationStores';
|
|
2
|
+
/**
|
|
3
|
+
* A payload value that could not be written into the payload or read back out. Reported rather than
|
|
4
|
+
* thrown: the value is left out and its getter runs again on the client.
|
|
5
|
+
* @group Errors
|
|
6
|
+
*/
|
|
7
|
+
export declare class PayloadValueError extends Error {
|
|
8
|
+
constructor(action: 'stringify' | 'parse', kind: DataKind, name: string, cause: unknown);
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
/**
|
|
3
|
+
* An error thrown when a param is a standard schema from a vendor the router does not support.
|
|
4
|
+
*/
|
|
5
|
+
export declare class UnsupportedSchemaVendorError extends Error {
|
|
6
|
+
constructor(schema: StandardSchemaV1);
|
|
7
|
+
}
|
package/dist/kitbag-router.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './main'
|
|
1
|
+
export * from './main.js'
|
|
2
2
|
export {}
|