@kimesh/router-runtime 0.2.25 → 0.2.26-nightly.20260128084345
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue9 from "vue";
|
|
2
2
|
import { App, Component, ComputedRef, InjectionKey, KeepAliveProps, PropType, Ref, TransitionProps, VNode } from "vue";
|
|
3
3
|
import * as vue_router0 from "vue-router";
|
|
4
4
|
import { NavigationFailure, NavigationGuard, NavigationHookAfter, RouteLocationNormalized, RouteLocationNormalized as RouteLocationNormalized$1, RouteLocationNormalizedLoaded, RouteLocationNormalizedLoaded as RouteLocationNormalizedLoaded$1, RouteRecordRaw, RouteRecordRaw as RouteRecordRaw$1, Router, Router as Router$1, onBeforeRouteLeave, onBeforeRouteUpdate, useLink, useRoute as useRoute$1, useRouter as useRouter$1 } from "vue-router";
|
|
@@ -828,7 +828,7 @@ declare function createHeadPlugin(options?: HeadPluginOptions): {
|
|
|
828
828
|
* 3. transition: { name: 'fade', mode: 'out-in' }
|
|
829
829
|
* - ⚠️ NOT recommended for async pages - may cause blank screen
|
|
830
830
|
*/
|
|
831
|
-
declare const KmOutlet:
|
|
831
|
+
declare const KmOutlet: vue9.DefineComponent<vue9.ExtractPropTypes<{
|
|
832
832
|
name: {
|
|
833
833
|
type: StringConstructor;
|
|
834
834
|
default: string;
|
|
@@ -864,7 +864,7 @@ declare const KmOutlet: vue13.DefineComponent<vue13.ExtractPropTypes<{
|
|
|
864
864
|
type: any;
|
|
865
865
|
default: null;
|
|
866
866
|
};
|
|
867
|
-
}>, () => VNode, {}, {}, {},
|
|
867
|
+
}>, () => VNode, {}, {}, {}, vue9.ComponentOptionsMixin, vue9.ComponentOptionsMixin, {}, string, vue9.PublicProps, Readonly<vue9.ExtractPropTypes<{
|
|
868
868
|
name: {
|
|
869
869
|
type: StringConstructor;
|
|
870
870
|
default: string;
|
|
@@ -906,7 +906,7 @@ declare const KmOutlet: vue13.DefineComponent<vue13.ExtractPropTypes<{
|
|
|
906
906
|
viewTransition: boolean;
|
|
907
907
|
keepalive: any;
|
|
908
908
|
pageKey: any;
|
|
909
|
-
}, {}, {}, {}, string,
|
|
909
|
+
}, {}, {}, {}, string, vue9.ComponentProvideOptions, true, {}, any>;
|
|
910
910
|
//#endregion
|
|
911
911
|
//#region src/components/KmLink.d.ts
|
|
912
912
|
/**
|
|
@@ -944,7 +944,7 @@ type KmLinkProps<T extends string = RouteNames> = T extends RouteNames ? HasPara
|
|
|
944
944
|
* </KmLink>
|
|
945
945
|
* ```
|
|
946
946
|
*/
|
|
947
|
-
declare const KmLink:
|
|
947
|
+
declare const KmLink: vue9.DefineComponent<vue9.ExtractPropTypes<{
|
|
948
948
|
to: {
|
|
949
949
|
type: PropType<RouteLocationRaw>;
|
|
950
950
|
required: true;
|
|
@@ -973,9 +973,9 @@ declare const KmLink: vue13.DefineComponent<vue13.ExtractPropTypes<{
|
|
|
973
973
|
type: StringConstructor;
|
|
974
974
|
default: string;
|
|
975
975
|
};
|
|
976
|
-
}>, () =>
|
|
976
|
+
}>, () => vue9.VNode<vue9.RendererNode, vue9.RendererElement, {
|
|
977
977
|
[key: string]: any;
|
|
978
|
-
}>, {}, {}, {},
|
|
978
|
+
}>, {}, {}, {}, vue9.ComponentOptionsMixin, vue9.ComponentOptionsMixin, {}, string, vue9.PublicProps, Readonly<vue9.ExtractPropTypes<{
|
|
979
979
|
to: {
|
|
980
980
|
type: PropType<RouteLocationRaw>;
|
|
981
981
|
required: true;
|
|
@@ -1011,7 +1011,7 @@ declare const KmLink: vue13.DefineComponent<vue13.ExtractPropTypes<{
|
|
|
1011
1011
|
exactActiveClass: string;
|
|
1012
1012
|
prefetch: boolean;
|
|
1013
1013
|
tag: string;
|
|
1014
|
-
}, {}, {}, {}, string,
|
|
1014
|
+
}, {}, {}, {}, string, vue9.ComponentProvideOptions, true, {}, any>;
|
|
1015
1015
|
//#endregion
|
|
1016
1016
|
//#region src/components/KmDeferred.d.ts
|
|
1017
1017
|
/**
|
|
@@ -1033,7 +1033,7 @@ declare const KmLink: vue13.DefineComponent<vue13.ExtractPropTypes<{
|
|
|
1033
1033
|
* </KmDeferred>
|
|
1034
1034
|
* ```
|
|
1035
1035
|
*/
|
|
1036
|
-
declare const KmDeferred:
|
|
1036
|
+
declare const KmDeferred: vue9.DefineComponent<vue9.ExtractPropTypes<{
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Delay in ms before showing fallback (default: 0)
|
|
1039
1039
|
* Helps avoid flashing loading states for fast loads
|
|
@@ -1042,7 +1042,7 @@ declare const KmDeferred: vue13.DefineComponent<vue13.ExtractPropTypes<{
|
|
|
1042
1042
|
type: PropType<number>;
|
|
1043
1043
|
default: number;
|
|
1044
1044
|
};
|
|
1045
|
-
}>, () => VNode, {}, {}, {},
|
|
1045
|
+
}>, () => VNode, {}, {}, {}, vue9.ComponentOptionsMixin, vue9.ComponentOptionsMixin, {}, string, vue9.PublicProps, Readonly<vue9.ExtractPropTypes<{
|
|
1046
1046
|
/**
|
|
1047
1047
|
* Delay in ms before showing fallback (default: 0)
|
|
1048
1048
|
* Helps avoid flashing loading states for fast loads
|
|
@@ -1053,7 +1053,7 @@ declare const KmDeferred: vue13.DefineComponent<vue13.ExtractPropTypes<{
|
|
|
1053
1053
|
};
|
|
1054
1054
|
}>> & Readonly<{}>, {
|
|
1055
1055
|
timeout: number;
|
|
1056
|
-
}, {}, {}, {}, string,
|
|
1056
|
+
}, {}, {}, {}, string, vue9.ComponentProvideOptions, true, {}, any>;
|
|
1057
1057
|
//#endregion
|
|
1058
1058
|
//#region src/guards/loader-guard.d.ts
|
|
1059
1059
|
interface LoaderGuardOptions {
|
|
@@ -1587,10 +1587,12 @@ interface NavigateToOptions {
|
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Type-safe navigation options - requires params for dynamic routes
|
|
1589
1589
|
*/
|
|
1590
|
-
type TypedNavigateToOptions<T extends string> = HasParams<T>
|
|
1590
|
+
type TypedNavigateToOptions<T extends string> = true extends HasParams<T> ? NavigateToOptions & {
|
|
1591
1591
|
params: RouteParamsRaw<T>;
|
|
1592
|
+
} : false extends HasParams<T> ? NavigateToOptions & {
|
|
1593
|
+
params?: never;
|
|
1592
1594
|
} : NavigateToOptions & {
|
|
1593
|
-
params?:
|
|
1595
|
+
params?: Record<string, string | number>;
|
|
1594
1596
|
};
|
|
1595
1597
|
/**
|
|
1596
1598
|
* Navigate to a route with type-safe params
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as getKmStateKeys, $t as FullContext, An as KimeshAppContext, At as applyPlugin, B as isLayoutRouteMeta, Bt as useKimeshContext, C as navigateTo, Cn as RouteParamsRaw, Ct as createHeadPlugin, D as MiddlewareDefinition, Dn as TypedNavigationRedirect, Dt as getCorePlugins, E as MiddlewareContext, En as SearchSchema, Et as QueryPluginOptions, F as LayoutLoaderData, Fn as KimeshRuntimePluginResult, Ft as getPluginHooks, G as NavigationContext, Gt as createKimeshApp, H as useLoaderData, Ht as defineRoute, I as LayoutRouteMeta, In as NavigationAfterHookContext, It as getPluginMeta, J as useAfterNavigation, Jt as BeforeLoadContextFull, K as NavigationErrorContext, Kt as AugmentedContext, L as LoaderDataKey, Ln as NavigationErrorHookContext, Lt as getPluginName, M as NavigationRedirect, Mn as KimeshRuntimePlugin, Mt as applyPluginsWithParallel, N as RouteMiddleware, Nn as KimeshRuntimePluginDefinition, Nt as KIMESH_PLUGIN_INDICATOR, O as MiddlewareOption, On as TypedRedirectDynamic, Ot as queryPlugin, P as TypedRouteMiddleware, Pn as KimeshRuntimePluginMeta, Pt as defineKimeshRuntimePlugin, Q as clearKmState, Qt as FileRouteOptions, R as UseMatchLoaderDataOptions, Rn as NavigationHookContext, Rt as isKimeshRuntimePlugin, S as defineKimeshMiddleware, Sn as RouteParams, St as collectRouteHeads, T as KnownMiddleware, Tn as RouteRecordInfo, Tt as mergeHeadConfigs, U as useMatchLoaderData, Ut as CreateKimeshAppOptionsExtended, V as useLayoutData, Vt as createFileRoute, W as useRouteLoaderData, Wt as KIMESH_APP_CONTEXT_KEY, X as useNavigationMiddleware, Xt as CreateKimeshAppOptions, Y as useNavigationGuard, Yt as BeforeLoadFn, Z as STATE_KEY_PREFIX, Zt as ExtractRouteParams, _ as createMiddlewarePlugin, _n as RouteHeadFn, _t as KmLinkProps, a as RouteRecordRaw, an as KimeshContext, at as useRuntimeConfig, bn as RouteNamedMap, bt as applyHeadConfigNative, c as onBeforeRouteUpdate, cn as ParamValue, ct as useParams, d as useRouter, dn as ParamValueZeroOrOne, dt as useSearch, en as HasParams, et as hasKmState, f as createMiddlewareExecutor, fn as PendingConfig, ft as LoaderGuardOptions, g as MiddlewarePluginOptions, gn as RouteHeadContext, gt as KmLink, h as createMiddlewareContext, hn as RouteHeadConfig, ht as KmDeferred, i as RouteLocationNormalizedLoaded, in as KimeshApp, it as RuntimeConfig, j as MiddlewareResult, jn as KimeshRuntimeHooks, jt as applyPlugins, kn as TypedRedirectStatic, kt as routerPlugin, l as useLink, ln as ParamValueOneOrMore, lt as useReactiveParams, mn as RouteDefinition, mt as installLoaderGuard, n as NavigationHookAfter, nn as InlineRouteMiddleware, nt as tryUseKimeshApp, o as Router, on as LoaderContext, ot as NavigateOptions, pn as RouteContext, pt as createLoaderGuard, q as NavigationMiddlewareOptions, qt as BeforeLoadContext, r as RouteLocationNormalized, rn as KIMESH_CONTEXT_KEY, rt as useKimeshApp, s as onBeforeRouteLeave, sn as LoaderFn, st as useNavigate, t as NavigationGuard, tn as InlineMiddlewareContext, tt as useState, u as useRoute, un as ParamValueZeroOrMore, ut as UseSearchReturn, v as middlewarePlugin, vn as RouteInfoByName, vt as KmOutlet, w as KimeshMiddlewareNames, wn as RoutePath, wt as mergeAllRouteHeads, x as abortNavigation, xn as RouteNames, xt as applyTitleTemplate, y as NavigateToOptions, yn as RouteLocationRaw, yt as HeadPluginOptions, z as createLoaderDataKey, zn as RuntimeConfigPublic, zt as defineContext } from "./index-
|
|
1
|
+
import { $ as getKmStateKeys, $t as FullContext, An as KimeshAppContext, At as applyPlugin, B as isLayoutRouteMeta, Bt as useKimeshContext, C as navigateTo, Cn as RouteParamsRaw, Ct as createHeadPlugin, D as MiddlewareDefinition, Dn as TypedNavigationRedirect, Dt as getCorePlugins, E as MiddlewareContext, En as SearchSchema, Et as QueryPluginOptions, F as LayoutLoaderData, Fn as KimeshRuntimePluginResult, Ft as getPluginHooks, G as NavigationContext, Gt as createKimeshApp, H as useLoaderData, Ht as defineRoute, I as LayoutRouteMeta, In as NavigationAfterHookContext, It as getPluginMeta, J as useAfterNavigation, Jt as BeforeLoadContextFull, K as NavigationErrorContext, Kt as AugmentedContext, L as LoaderDataKey, Ln as NavigationErrorHookContext, Lt as getPluginName, M as NavigationRedirect, Mn as KimeshRuntimePlugin, Mt as applyPluginsWithParallel, N as RouteMiddleware, Nn as KimeshRuntimePluginDefinition, Nt as KIMESH_PLUGIN_INDICATOR, O as MiddlewareOption, On as TypedRedirectDynamic, Ot as queryPlugin, P as TypedRouteMiddleware, Pn as KimeshRuntimePluginMeta, Pt as defineKimeshRuntimePlugin, Q as clearKmState, Qt as FileRouteOptions, R as UseMatchLoaderDataOptions, Rn as NavigationHookContext, Rt as isKimeshRuntimePlugin, S as defineKimeshMiddleware, Sn as RouteParams, St as collectRouteHeads, T as KnownMiddleware, Tn as RouteRecordInfo, Tt as mergeHeadConfigs, U as useMatchLoaderData, Ut as CreateKimeshAppOptionsExtended, V as useLayoutData, Vt as createFileRoute, W as useRouteLoaderData, Wt as KIMESH_APP_CONTEXT_KEY, X as useNavigationMiddleware, Xt as CreateKimeshAppOptions, Y as useNavigationGuard, Yt as BeforeLoadFn, Z as STATE_KEY_PREFIX, Zt as ExtractRouteParams, _ as createMiddlewarePlugin, _n as RouteHeadFn, _t as KmLinkProps, a as RouteRecordRaw, an as KimeshContext, at as useRuntimeConfig, bn as RouteNamedMap, bt as applyHeadConfigNative, c as onBeforeRouteUpdate, cn as ParamValue, ct as useParams, d as useRouter, dn as ParamValueZeroOrOne, dt as useSearch, en as HasParams, et as hasKmState, f as createMiddlewareExecutor, fn as PendingConfig, ft as LoaderGuardOptions, g as MiddlewarePluginOptions, gn as RouteHeadContext, gt as KmLink, h as createMiddlewareContext, hn as RouteHeadConfig, ht as KmDeferred, i as RouteLocationNormalizedLoaded, in as KimeshApp, it as RuntimeConfig, j as MiddlewareResult, jn as KimeshRuntimeHooks, jt as applyPlugins, kn as TypedRedirectStatic, kt as routerPlugin, l as useLink, ln as ParamValueOneOrMore, lt as useReactiveParams, mn as RouteDefinition, mt as installLoaderGuard, n as NavigationHookAfter, nn as InlineRouteMiddleware, nt as tryUseKimeshApp, o as Router, on as LoaderContext, ot as NavigateOptions, pn as RouteContext, pt as createLoaderGuard, q as NavigationMiddlewareOptions, qt as BeforeLoadContext, r as RouteLocationNormalized, rn as KIMESH_CONTEXT_KEY, rt as useKimeshApp, s as onBeforeRouteLeave, sn as LoaderFn, st as useNavigate, t as NavigationGuard, tn as InlineMiddlewareContext, tt as useState, u as useRoute, un as ParamValueZeroOrMore, ut as UseSearchReturn, v as middlewarePlugin, vn as RouteInfoByName, vt as KmOutlet, w as KimeshMiddlewareNames, wn as RoutePath, wt as mergeAllRouteHeads, x as abortNavigation, xn as RouteNames, xt as applyTitleTemplate, y as NavigateToOptions, yn as RouteLocationRaw, yt as HeadPluginOptions, z as createLoaderDataKey, zn as RuntimeConfigPublic, zt as defineContext } from "./index-CgExtAV-.mjs";
|
|
2
2
|
export { AugmentedContext, BeforeLoadContext, BeforeLoadContextFull, BeforeLoadFn, CreateKimeshAppOptions, CreateKimeshAppOptionsExtended, ExtractRouteParams, FileRouteOptions, FullContext, HasParams, HeadPluginOptions, InlineMiddlewareContext, InlineRouteMiddleware, KIMESH_APP_CONTEXT_KEY, KIMESH_CONTEXT_KEY, KIMESH_PLUGIN_INDICATOR, KimeshApp, KimeshAppContext, KimeshContext, KimeshMiddlewareNames, KimeshRuntimeHooks, KimeshRuntimePlugin, KimeshRuntimePluginDefinition, KimeshRuntimePluginMeta, KimeshRuntimePluginResult, KmDeferred, KmLink, KmLinkProps, KmOutlet, KnownMiddleware, LayoutLoaderData, LayoutRouteMeta, LoaderContext, LoaderDataKey, LoaderFn, LoaderGuardOptions, MiddlewareContext, MiddlewareDefinition, MiddlewareOption, MiddlewarePluginOptions, MiddlewareResult, NavigateOptions, NavigateToOptions, NavigationAfterHookContext, NavigationContext, NavigationErrorContext, NavigationErrorHookContext, NavigationGuard, NavigationHookAfter, NavigationHookContext, NavigationMiddlewareOptions, NavigationRedirect, ParamValue, ParamValueOneOrMore, ParamValueZeroOrMore, ParamValueZeroOrOne, PendingConfig, QueryPluginOptions, RouteContext, RouteDefinition, RouteHeadConfig, RouteHeadContext, RouteHeadFn, RouteInfoByName, RouteLocationNormalized, RouteLocationNormalizedLoaded, RouteLocationRaw, RouteMiddleware, RouteNamedMap, RouteNames, RouteParams, RouteParamsRaw, RoutePath, RouteRecordInfo, RouteRecordRaw, Router, RuntimeConfig, RuntimeConfigPublic, STATE_KEY_PREFIX, SearchSchema, TypedNavigationRedirect, TypedRedirectDynamic, TypedRedirectStatic, TypedRouteMiddleware, UseMatchLoaderDataOptions, UseSearchReturn, abortNavigation, applyHeadConfigNative, applyPlugin, applyPlugins, applyPluginsWithParallel, applyTitleTemplate, clearKmState, collectRouteHeads, createFileRoute, createHeadPlugin, createKimeshApp, createLoaderDataKey, createLoaderGuard, createMiddlewareContext, createMiddlewareExecutor, createMiddlewarePlugin, defineContext, defineKimeshMiddleware, defineKimeshRuntimePlugin, defineRoute, getCorePlugins, getKmStateKeys, getPluginHooks, getPluginMeta, getPluginName, hasKmState, installLoaderGuard, isKimeshRuntimePlugin, isLayoutRouteMeta, mergeAllRouteHeads, mergeHeadConfigs, middlewarePlugin, navigateTo, onBeforeRouteLeave, onBeforeRouteUpdate, queryPlugin, routerPlugin, tryUseKimeshApp, useAfterNavigation, useKimeshApp, useKimeshContext, useLayoutData, useLink, useLoaderData, useMatchLoaderData, useNavigate, useNavigationGuard, useNavigationMiddleware, useParams, useReactiveParams, useRoute, useRouteLoaderData, useRouter, useRuntimeConfig, useSearch, useState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MiddlewareRegistryEntry, C as navigateTo, D as MiddlewareDefinition, E as MiddlewareContext, M as NavigationRedirect, N as RouteMiddleware, O as MiddlewareOption, P as TypedRouteMiddleware, S as defineKimeshMiddleware, T as KnownMiddleware, _ as createMiddlewarePlugin, b as TypedNavigateToOptions, f as createMiddlewareExecutor, g as MiddlewarePluginOptions, h as createMiddlewareContext, j as MiddlewareResult, k as MiddlewareRegistry, m as executeMiddlewareChain, p as executeMiddleware, v as middlewarePlugin, w as KimeshMiddlewareNames, x as abortNavigation, y as NavigateToOptions } from "../index-
|
|
1
|
+
import { A as MiddlewareRegistryEntry, C as navigateTo, D as MiddlewareDefinition, E as MiddlewareContext, M as NavigationRedirect, N as RouteMiddleware, O as MiddlewareOption, P as TypedRouteMiddleware, S as defineKimeshMiddleware, T as KnownMiddleware, _ as createMiddlewarePlugin, b as TypedNavigateToOptions, f as createMiddlewareExecutor, g as MiddlewarePluginOptions, h as createMiddlewareContext, j as MiddlewareResult, k as MiddlewareRegistry, m as executeMiddlewareChain, p as executeMiddleware, v as middlewarePlugin, w as KimeshMiddlewareNames, x as abortNavigation, y as NavigateToOptions } from "../index-CgExtAV-.mjs";
|
|
2
2
|
export { KimeshMiddlewareNames, KnownMiddleware, MiddlewareContext, MiddlewareDefinition, MiddlewareOption, MiddlewarePluginOptions, MiddlewareRegistry, MiddlewareRegistryEntry, MiddlewareResult, NavigateToOptions, NavigationRedirect, RouteMiddleware, TypedNavigateToOptions, TypedRouteMiddleware, abortNavigation, createMiddlewareContext, createMiddlewareExecutor, createMiddlewarePlugin, defineKimeshMiddleware, executeMiddleware, executeMiddlewareChain, middlewarePlugin, navigateTo };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as createMiddlewarePlugin, g as MiddlewarePluginOptions, v as middlewarePlugin } from "../index-
|
|
1
|
+
import { _ as createMiddlewarePlugin, g as MiddlewarePluginOptions, v as middlewarePlugin } from "../index-CgExtAV-.mjs";
|
|
2
2
|
export { MiddlewarePluginOptions, createMiddlewarePlugin, middlewarePlugin as default, middlewarePlugin };
|