reactive-route 0.0.1-alpha.3 → 0.0.1-alpha.30
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/adapters/kr-observable-preact.cjs +39 -0
- package/adapters/kr-observable-preact.d.ts +3 -0
- package/adapters/kr-observable-preact.d.ts.map +1 -0
- package/adapters/kr-observable-preact.mjs +18 -0
- package/adapters/kr-observable-react.cjs +39 -0
- package/adapters/kr-observable-react.d.ts +3 -0
- package/adapters/kr-observable-react.d.ts.map +1 -0
- package/adapters/kr-observable-react.mjs +18 -0
- package/adapters/kr-observable-solid.cjs +37 -0
- package/adapters/kr-observable-solid.d.ts +3 -0
- package/adapters/kr-observable-solid.d.ts.map +1 -0
- package/adapters/kr-observable-solid.mjs +16 -0
- package/adapters/mobx-preact.cjs +43 -0
- package/adapters/mobx-preact.d.ts +3 -0
- package/adapters/mobx-preact.d.ts.map +1 -0
- package/adapters/mobx-preact.mjs +22 -0
- package/adapters/mobx-react.cjs +43 -0
- package/adapters/mobx-react.d.ts +3 -0
- package/adapters/mobx-react.d.ts.map +1 -0
- package/adapters/mobx-react.mjs +22 -0
- package/adapters/mobx-solid.cjs +42 -0
- package/adapters/mobx-solid.d.ts +3 -0
- package/adapters/mobx-solid.d.ts.map +1 -0
- package/adapters/mobx-solid.mjs +21 -0
- package/adapters/solid.cjs +45 -0
- package/adapters/solid.d.ts +3 -0
- package/adapters/solid.d.ts.map +1 -0
- package/adapters/solid.mjs +24 -0
- package/adapters/vue.cjs +40 -0
- package/adapters/vue.d.ts +3 -0
- package/adapters/vue.d.ts.map +1 -0
- package/adapters/vue.mjs +19 -0
- package/core/createRouter.d.ts +9 -0
- package/core/createRouter.d.ts.map +1 -0
- package/{dist/types/core/createRouterConfig.d.ts → core/createRoutes.d.ts} +4 -4
- package/core/createRoutes.d.ts.map +1 -0
- package/core/index.d.ts +13 -0
- package/core/index.d.ts.map +1 -0
- package/core/types/TypeAdapters.d.ts +9 -0
- package/core/types/TypeAdapters.d.ts.map +1 -0
- package/{dist/types/core → core}/types/TypeCurrentRoute.d.ts +1 -1
- package/core/types/TypeCurrentRoute.d.ts.map +1 -0
- package/{dist/types/core → core}/types/TypeLifecycleConfig.d.ts +2 -0
- package/core/types/TypeLifecycleConfig.d.ts.map +1 -0
- package/{dist/types/core → core}/types/TypePropsRouter.d.ts +2 -3
- package/core/types/TypePropsRouter.d.ts.map +1 -0
- package/{dist/types/core/types/TypeRedirectToParams.d.ts → core/types/TypeRedirectParams.d.ts} +6 -10
- package/core/types/TypeRedirectParams.d.ts.map +1 -0
- package/{dist/types/core → core}/types/TypeRoute.d.ts +0 -1
- package/core/types/TypeRoute.d.ts.map +1 -0
- package/{dist/types/core → core}/types/TypeRouteRaw.d.ts +1 -0
- package/core/types/TypeRouteRaw.d.ts.map +1 -0
- package/core/types/TypeRouter.d.ts +22 -0
- package/core/types/TypeRouter.d.ts.map +1 -0
- package/core/types/TypeValidator.d.ts.map +1 -0
- package/core/utils/PreventError.d.ts +4 -0
- package/core/utils/PreventError.d.ts.map +1 -0
- package/core/utils/RedirectError.d.ts +4 -0
- package/core/utils/RedirectError.d.ts.map +1 -0
- package/core/utils/addNames.d.ts.map +1 -0
- package/{dist/types/core → core}/utils/constants.d.ts +0 -2
- package/core/utils/constants.d.ts.map +1 -0
- package/core/utils/dynamic.d.ts.map +1 -0
- package/core/utils/findRouteByPathname.d.ts.map +1 -0
- package/core/utils/getDynamicValues.d.ts.map +1 -0
- package/core/utils/getInitialRoute.d.ts +7 -0
- package/core/utils/getInitialRoute.d.ts.map +1 -0
- package/core/utils/getQueryValues.d.ts.map +1 -0
- package/core/utils/getTypedEntries.d.ts.map +1 -0
- package/core/utils/history.d.ts.map +1 -0
- package/core/utils/loadComponentToConfig.d.ts.map +1 -0
- package/core/utils/queryString.d.ts +8 -0
- package/core/utils/queryString.d.ts.map +1 -0
- package/{dist/types/core → core}/utils/replaceDynamicValues.d.ts +1 -2
- package/core/utils/replaceDynamicValues.d.ts.map +1 -0
- package/{dist/cjs/index.js → index.cjs} +198 -200
- package/index.mjs +356 -0
- package/package.json +66 -56
- package/preact/Router.d.ts +3 -0
- package/preact/Router.d.ts.map +1 -0
- package/preact/index.cjs +102 -0
- package/preact/index.d.ts.map +1 -0
- package/preact/index.mjs +79 -0
- package/react/Router.d.ts +5 -0
- package/react/Router.d.ts.map +1 -0
- package/react/index.cjs +101 -0
- package/react/index.d.ts.map +1 -0
- package/react/index.mjs +78 -0
- package/solid/Router.d.ts.map +1 -0
- package/solid/index.cjs +113 -0
- package/solid/index.d.ts +2 -0
- package/solid/index.d.ts.map +1 -0
- package/solid/index.mjs +90 -0
- package/vue/index.cjs +0 -0
- package/vue/index.d.ts +2 -0
- package/vue/index.d.ts.map +1 -0
- package/vue/index.mjs +0 -0
- package/LICENSE +0 -21
- package/README.md +0 -10
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/react/index.js +0 -149
- package/dist/cjs/react/package.json +0 -1
- package/dist/cjs/solid/index.js +0 -130
- package/dist/cjs/solid/package.json +0 -1
- package/dist/esm/index.js +0 -348
- package/dist/esm/package.json +0 -1
- package/dist/esm/react/index.js +0 -126
- package/dist/esm/react/package.json +0 -1
- package/dist/esm/solid/index.js +0 -107
- package/dist/esm/solid/package.json +0 -1
- package/dist/types/core/createRouterConfig.d.ts.map +0 -1
- package/dist/types/core/createRouterStore.d.ts +0 -4
- package/dist/types/core/createRouterStore.d.ts.map +0 -1
- package/dist/types/core/index.d.ts +0 -14
- package/dist/types/core/index.d.ts.map +0 -1
- package/dist/types/core/types/InterfaceRouterStore.d.ts +0 -24
- package/dist/types/core/types/InterfaceRouterStore.d.ts.map +0 -1
- package/dist/types/core/types/TypeCurrentRoute.d.ts.map +0 -1
- package/dist/types/core/types/TypeLifecycleConfig.d.ts.map +0 -1
- package/dist/types/core/types/TypePropsRouter.d.ts.map +0 -1
- package/dist/types/core/types/TypeRedirectToParams.d.ts.map +0 -1
- package/dist/types/core/types/TypeRoute.d.ts.map +0 -1
- package/dist/types/core/types/TypeRouteRaw.d.ts.map +0 -1
- package/dist/types/core/types/TypeRouteWithParams.d.ts +0 -6
- package/dist/types/core/types/TypeRouteWithParams.d.ts.map +0 -1
- package/dist/types/core/types/TypeValidator.d.ts.map +0 -1
- package/dist/types/core/utils/addNames.d.ts.map +0 -1
- package/dist/types/core/utils/constants.d.ts.map +0 -1
- package/dist/types/core/utils/dynamic.d.ts.map +0 -1
- package/dist/types/core/utils/findRouteByPathname.d.ts.map +0 -1
- package/dist/types/core/utils/getDynamicValues.d.ts.map +0 -1
- package/dist/types/core/utils/getInitialRoute.d.ts +0 -8
- package/dist/types/core/utils/getInitialRoute.d.ts.map +0 -1
- package/dist/types/core/utils/getQueryValues.d.ts.map +0 -1
- package/dist/types/core/utils/getTypedEntries.d.ts.map +0 -1
- package/dist/types/core/utils/history.d.ts.map +0 -1
- package/dist/types/core/utils/loadComponentToConfig.d.ts.map +0 -1
- package/dist/types/core/utils/replaceDynamicValues.d.ts.map +0 -1
- package/dist/types/react/Router.d.ts +0 -5
- package/dist/types/react/Router.d.ts.map +0 -1
- package/dist/types/react/index.d.ts.map +0 -1
- package/dist/types/react/useStore.d.ts +0 -8
- package/dist/types/react/useStore.d.ts.map +0 -1
- package/dist/types/solid/Router.d.ts.map +0 -1
- package/dist/types/solid/index.d.ts.map +0 -1
- package/dist/types/solid/useStore.d.ts +0 -7
- package/dist/types/solid/useStore.d.ts.map +0 -1
- package/dist/types/tsconfig.types.tsbuildinfo +0 -1
- /package/{dist/types/core → core}/types/TypeValidator.d.ts +0 -0
- /package/{dist/types/core → core}/utils/addNames.d.ts +0 -0
- /package/{dist/types/core → core}/utils/dynamic.d.ts +0 -0
- /package/{dist/types/core → core}/utils/findRouteByPathname.d.ts +0 -0
- /package/{dist/types/core → core}/utils/getDynamicValues.d.ts +0 -0
- /package/{dist/types/core → core}/utils/getQueryValues.d.ts +0 -0
- /package/{dist/types/core → core}/utils/getTypedEntries.d.ts +0 -0
- /package/{dist/types/core → core}/utils/history.d.ts +0 -0
- /package/{dist/types/core → core}/utils/loadComponentToConfig.d.ts +0 -0
- /package/{dist/types/react → preact}/index.d.ts +0 -0
- /package/{dist/types/solid → react}/index.d.ts +0 -0
- /package/{dist/types/solid → solid}/Router.d.ts +0 -0
package/dist/esm/solid/index.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// packages/solid/Router.tsx
|
|
2
|
-
import { createComponent as _$createComponent } from "solid-js/web";
|
|
3
|
-
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
4
|
-
import { getInitialRoute, history } from "reactive-route";
|
|
5
|
-
import { Show } from "solid-js";
|
|
6
|
-
import { createMutable } from "solid-js/store";
|
|
7
|
-
import { Dynamic } from "solid-js/web";
|
|
8
|
-
|
|
9
|
-
// packages/solid/useStore.ts
|
|
10
|
-
import { onMount } from "solid-js";
|
|
11
|
-
function useStore(ViewModel, props) {
|
|
12
|
-
const vm = new ViewModel(props);
|
|
13
|
-
vm.beforeMount?.();
|
|
14
|
-
onMount(() => {
|
|
15
|
-
vm.afterMount?.();
|
|
16
|
-
});
|
|
17
|
-
return vm;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// packages/solid/Router.tsx
|
|
21
|
-
var VM = class {
|
|
22
|
-
constructor(props) {
|
|
23
|
-
this.props = props;
|
|
24
|
-
return createMutable(this);
|
|
25
|
-
}
|
|
26
|
-
loadedComponentName = void 0;
|
|
27
|
-
loadedComponentPage = void 0;
|
|
28
|
-
currentProps = {};
|
|
29
|
-
get utils() {
|
|
30
|
-
return this.props.routerStore.utils;
|
|
31
|
-
}
|
|
32
|
-
beforeMount() {
|
|
33
|
-
this.props.beforeMount?.();
|
|
34
|
-
this.redirectOnHistoryPop();
|
|
35
|
-
this.utils.autorun(() => this.setLoadedComponent());
|
|
36
|
-
}
|
|
37
|
-
redirectOnHistoryPop() {
|
|
38
|
-
if (!history) return;
|
|
39
|
-
history.listen((params) => {
|
|
40
|
-
if (params.action !== "POP") return;
|
|
41
|
-
const previousRoutePathname = this.props.routerStore.routesHistory[this.props.routerStore.routesHistory.length - 2];
|
|
42
|
-
if (previousRoutePathname === params.location.pathname) {
|
|
43
|
-
this.props.routerStore.routesHistory.pop();
|
|
44
|
-
}
|
|
45
|
-
void this.props.routerStore.redirectTo({
|
|
46
|
-
noHistoryPush: true,
|
|
47
|
-
...getInitialRoute({
|
|
48
|
-
routes: this.props.routes,
|
|
49
|
-
pathname: history.location.pathname,
|
|
50
|
-
fallback: "error404"
|
|
51
|
-
})
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
setLoadedComponent() {
|
|
56
|
-
const currentRouteName = this.props.routerStore.currentRoute.name;
|
|
57
|
-
const currentRoutePage = this.props.routerStore.currentRoute.pageName;
|
|
58
|
-
let preventRedirect = false;
|
|
59
|
-
if (this.props.routerStore.isRedirecting) preventRedirect = true;
|
|
60
|
-
else if (this.loadedComponentName === currentRouteName) {
|
|
61
|
-
preventRedirect = true;
|
|
62
|
-
} else if (this.loadedComponentPage != null && currentRouteName != null) {
|
|
63
|
-
if (this.loadedComponentPage === currentRoutePage) {
|
|
64
|
-
const componentConfig = this.props.routes[currentRouteName];
|
|
65
|
-
this.utils.replaceObject(this.currentProps, "props" in componentConfig ? componentConfig.props : {});
|
|
66
|
-
preventRedirect = true;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
if (preventRedirect) return;
|
|
70
|
-
this.utils.batch(() => {
|
|
71
|
-
if (!this.loadedComponentName) {
|
|
72
|
-
this.setComponent();
|
|
73
|
-
} else {
|
|
74
|
-
this.props.beforeUpdatePageComponent?.();
|
|
75
|
-
this.setComponent();
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
setComponent() {
|
|
80
|
-
const currentRouteName = this.props.routerStore.currentRoute.name;
|
|
81
|
-
const componentConfig = this.props.routes[currentRouteName];
|
|
82
|
-
this.props.beforeSetPageComponent?.(componentConfig);
|
|
83
|
-
this.utils.batch(() => {
|
|
84
|
-
this.utils.replaceObject(this.currentProps, "props" in componentConfig ? componentConfig.props : {});
|
|
85
|
-
this.loadedComponentName = currentRouteName;
|
|
86
|
-
this.loadedComponentPage = componentConfig.pageName;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
function Router(props) {
|
|
91
|
-
const vm = useStore(VM, props);
|
|
92
|
-
return _$createComponent(Show, {
|
|
93
|
-
get when() {
|
|
94
|
-
return vm.loadedComponentName;
|
|
95
|
-
},
|
|
96
|
-
get children() {
|
|
97
|
-
return _$createComponent(Dynamic, _$mergeProps({
|
|
98
|
-
get component() {
|
|
99
|
-
return props.routes[vm.loadedComponentName]?.component || void 0;
|
|
100
|
-
}
|
|
101
|
-
}, () => vm.currentProps));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
export {
|
|
106
|
-
Router
|
|
107
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type": "module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createRouterConfig.d.ts","sourceRoot":"","sources":["../../../packages/core/createRouterConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,wBAAgB,kBAAkB,CAAC,OAAO,SAAS;KAAG,GAAG,IAAI,MAAM,OAAO,GAAG,YAAY;CAAE,EACzF,MAAM,EAAE,OAAO,GACd;KACA,GAAG,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG;QACrC,IAAI,EAAE,GAAG,CAAC;QACV,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,GAAG,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACpC;CACF,CAEA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { InterfaceRouterStore, TypeCreateRouterStore } from './types/InterfaceRouterStore';
|
|
2
|
-
import { TypeRoute } from './types/TypeRoute';
|
|
3
|
-
export declare function createRouterStore<TRoutes extends Record<string, TypeRoute>>({ batch, routes, autorun, replaceObject, routeError500, makeObservable, lifecycleParams, }: TypeCreateRouterStore<TRoutes>): InterfaceRouterStore<TRoutes>;
|
|
4
|
-
//# sourceMappingURL=createRouterStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createRouterStore.d.ts","sourceRoot":"","sources":["../../../packages/core/createRouterStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE3F,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAQ9C,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,EAC3E,KAAK,EACL,MAAM,EACN,OAAO,EACP,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,GAChB,EAAE,qBAAqB,CAAC,OAAO,CAAC,GAAG,oBAAoB,CAAC,OAAO,CAAC,CA0PhE"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { createRouterConfig } from './createRouterConfig';
|
|
2
|
-
export { createRouterStore } from './createRouterStore';
|
|
3
|
-
export type { InterfaceRouterStore } from './types/InterfaceRouterStore';
|
|
4
|
-
export type { TypeCurrentRoute } from './types/TypeCurrentRoute';
|
|
5
|
-
export type { TypePropsRouter } from './types/TypePropsRouter';
|
|
6
|
-
export type { TypeRedirectToParams } from './types/TypeRedirectToParams';
|
|
7
|
-
export type { TypeRoute } from './types/TypeRoute';
|
|
8
|
-
export { isDynamicRoute } from './utils/dynamic';
|
|
9
|
-
export { findRouteByPathname } from './utils/findRouteByPathname';
|
|
10
|
-
export { getInitialRoute } from './utils/getInitialRoute';
|
|
11
|
-
export { history } from './utils/history';
|
|
12
|
-
export { loadComponentToConfig } from './utils/loadComponentToConfig';
|
|
13
|
-
export { replaceDynamicValues } from './utils/replaceDynamicValues';
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TypeCurrentRoute } from './TypeCurrentRoute';
|
|
2
|
-
import { TypeRedirectToParams } from './TypeRedirectToParams';
|
|
3
|
-
import { TypeRoute } from './TypeRoute';
|
|
4
|
-
type TypeUtils = {
|
|
5
|
-
batch: (cb: () => void) => void;
|
|
6
|
-
autorun: (cb: () => void) => any;
|
|
7
|
-
replaceObject: <TObj extends Record<string, any>>(obj: TObj, newObj: TObj) => void;
|
|
8
|
-
makeObservable: <TObj extends Record<string, any>>(obj: TObj) => TObj;
|
|
9
|
-
};
|
|
10
|
-
export type TypeCreateRouterStore<TRoutes extends Record<string, TypeRoute>> = TypeUtils & {
|
|
11
|
-
routes: TRoutes;
|
|
12
|
-
routeError500: TRoutes[keyof TRoutes];
|
|
13
|
-
lifecycleParams?: Array<any>;
|
|
14
|
-
};
|
|
15
|
-
export type InterfaceRouterStore<TRoutes extends Record<string, TypeRoute>> = {
|
|
16
|
-
routesHistory: Array<string>;
|
|
17
|
-
currentRoute: TypeCurrentRoute<TRoutes[keyof TRoutes]>;
|
|
18
|
-
isRedirecting: boolean;
|
|
19
|
-
redirectTo<TRouteName extends keyof TRoutes>(config: TypeRedirectToParams<TRoutes, TRouteName>): Promise<void>;
|
|
20
|
-
utils: TypeUtils;
|
|
21
|
-
restoreFromServer(obj: InterfaceRouterStore<TRoutes>): Promise<void>;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=InterfaceRouterStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InterfaceRouterStore.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/InterfaceRouterStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,GAAG,CAAC;IACjC,aAAa,EAAE,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC;IACnF,cAAc,EAAE,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,SAAS,GAAG;IACzF,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI;IAC5E,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC;IACvD,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,UAAU,SAAS,MAAM,OAAO,EACzC,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC,GAChD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,iBAAiB,CAAC,GAAG,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypeCurrentRoute.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypeCurrentRoute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,SAAS,IAAI;IACvD,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,MAAM,EAAE,MAAM,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;CAC9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypeLifecycleConfig.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypeLifecycleConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,GAAG,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypePropsRouter.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypePropsRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI;IACvE,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,KAAK,IAAI,CAAC;IAC3E,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;CACxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypeRedirectToParams.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypeRedirectToParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,oBAAoB,CAC9B,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EACzC,UAAU,SAAS,MAAM,OAAO,IAC9B,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GACnE,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAChE;IACE,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GACD;IACE,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GACH,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAChE;IACE,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GACD;IACE,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypeRoute.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypeRoute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypeRouteRaw.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypeRouteRaw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACjF,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;CACzF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypeRouteWithParams.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypeRouteWithParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG;IAC5D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypeValidator.d.ts","sourceRoot":"","sources":["../../../../packages/core/types/TypeValidator.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addNames.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/addNames.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE;CAAE,CAAC;AAE3E,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAMtF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/dynamic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,cAAc,CAAC,MAAM,SAAS,SAAS,EACrD,KAAK,EAAE,MAAM,GACZ,KAAK,IAAI,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,MAAM,EAAE,aAAa,CAAC,CAAA;CAAE,CAEnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findRouteByPathname.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/findRouteByPathname.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAW/C,wBAAgB,mBAAmB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,EAC7E,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS,CAuDrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDynamicValues.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/getDynamicValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI/C,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,SAAS,EAAE,MAAM,EAAE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAqBzC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TypeRedirectToParams } from '../types/TypeRedirectToParams';
|
|
2
|
-
import { TypeRoute } from '../types/TypeRoute';
|
|
3
|
-
export declare function getInitialRoute<TRoutes extends Record<string, TypeRoute>>(params: {
|
|
4
|
-
routes: TRoutes;
|
|
5
|
-
pathname: string;
|
|
6
|
-
fallback: TRoutes[keyof TRoutes]['name'];
|
|
7
|
-
}): TypeRedirectToParams<TRoutes, keyof TRoutes>;
|
|
8
|
-
//# sourceMappingURL=getInitialRoute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialRoute.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/getInitialRoute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAK/C,wBAAgB,eAAe,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE;IACjF,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;CAC1C,GAAG,oBAAoB,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,CAU/C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getQueryValues.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/getQueryValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,wBAAgB,cAAc,CAAC,MAAM,SAAS,SAAS,EAAE,MAAM,EAAE;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAkBjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTypedEntries.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/getTypedEntries.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,CACzB;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1B,CAAC,MAAM,CAAC,CAAC,CACX,CAAC;AAEF,eAAO,MAAM,eAAe,EAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7E,GAAG,EAAE,CAAC,KACH,WAAW,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAI/C;;;GAGG;AAEH,eAAO,MAAM,OAAO,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAEnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadComponentToConfig.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/loadComponentToConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBjF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replaceDynamicValues.d.ts","sourceRoot":"","sources":["../../../../packages/core/utils/replaceDynamicValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAMnE,wBAAgB,oBAAoB,CAClC,UAAU,SAAS,SAAS,GAAG,mBAAmB,GAAG,gBAAgB,CAAC,SAAS,CAAC,EAChF,EACA,KAAK,EACL,MAAkB,GACnB,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;CACrD,GAAG,MAAM,CAcT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../../packages/react/Router.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA4B,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAsGtF,eAAO,MAAM,MAAM,IAChB,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC;;CAS5E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface ViewModelConstructor {
|
|
2
|
-
autorunDisposers?: Array<() => void>;
|
|
3
|
-
props?: Record<string, any>;
|
|
4
|
-
beforeMount?: () => void;
|
|
5
|
-
afterMount?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function useStore<TViewModel extends new (props: ConstructorParameters<TViewModel>[0]) => ViewModelConstructor>(ViewModel: TViewModel, props: ConstructorParameters<TViewModel>[0]): InstanceType<TViewModel>;
|
|
8
|
-
//# sourceMappingURL=useStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../../../packages/react/useStore.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,QAAQ,CACtB,UAAU,SAAS,KACjB,KAAK,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KACxC,oBAAoB,EACzB,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAgC9F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../../packages/solid/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAoGtF,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,kCAWhG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/solid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface ViewModelConstructor {
|
|
2
|
-
props?: Record<string, any>;
|
|
3
|
-
beforeMount?: () => void;
|
|
4
|
-
afterMount?: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function useStore<TViewModel extends new (props: ConstructorParameters<TViewModel>[0]) => ViewModelConstructor>(ViewModel: TViewModel, props: ConstructorParameters<TViewModel>[0]): InstanceType<TViewModel>;
|
|
7
|
-
//# sourceMappingURL=useStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../../../packages/solid/useStore.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,QAAQ,CACtB,UAAU,SAAS,KACjB,KAAK,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KACxC,oBAAoB,EACzB,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAU9F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../../packages/core/createRouterConfig.ts","../../packages/core/createRouterStore.ts","../../packages/core/index.ts","../../packages/core/types/InterfaceRouterStore.ts","../../packages/core/types/TypeCurrentRoute.ts","../../packages/core/types/TypeLifecycleConfig.ts","../../packages/core/types/TypePropsRouter.ts","../../packages/core/types/TypeRedirectToParams.ts","../../packages/core/types/TypeRoute.ts","../../packages/core/types/TypeRouteRaw.ts","../../packages/core/types/TypeRouteWithParams.ts","../../packages/core/types/TypeValidator.ts","../../packages/core/utils/addNames.ts","../../packages/core/utils/constants.ts","../../packages/core/utils/dynamic.ts","../../packages/core/utils/findRouteByPathname.ts","../../packages/core/utils/getDynamicValues.ts","../../packages/core/utils/getInitialRoute.ts","../../packages/core/utils/getQueryValues.ts","../../packages/core/utils/getTypedEntries.ts","../../packages/core/utils/history.ts","../../packages/core/utils/loadComponentToConfig.ts","../../packages/core/utils/replaceDynamicValues.ts","../../packages/react/Router.tsx","../../packages/react/index.ts","../../packages/react/useStore.ts","../../packages/solid/Router.tsx","../../packages/solid/index.ts","../../packages/solid/useStore.ts"],"version":"5.9.2"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|