@real-router/solid 0.2.7 → 0.2.9
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/cjs/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
2
|
import { JSX, Accessor, ParentProps } from 'solid-js';
|
|
3
|
-
import * as _real_router_core from '@real-router/core';
|
|
4
3
|
import { Params, NavigationOptions, State, RouterError, Router, Navigator } from '@real-router/core';
|
|
5
4
|
export { Navigator } from '@real-router/core';
|
|
6
5
|
import { RouteUtils } from '@real-router/route-utils';
|
|
7
6
|
import { RouterTransitionSnapshot, RouterSource } from '@real-router/sources';
|
|
8
7
|
export { RouterTransitionSnapshot } from '@real-router/sources';
|
|
8
|
+
import * as _real_router_types from '@real-router/types';
|
|
9
9
|
|
|
10
10
|
interface RouteViewProps {
|
|
11
11
|
readonly nodeName: string;
|
|
@@ -101,7 +101,7 @@ interface RouterContextValue {
|
|
|
101
101
|
routeSelector: (routeName: string) => boolean;
|
|
102
102
|
}
|
|
103
103
|
declare const RouterContext: solid_js.Context<RouterContextValue | null>;
|
|
104
|
-
declare const RouteContext: solid_js.Context<Accessor<RouteState<
|
|
104
|
+
declare const RouteContext: solid_js.Context<Accessor<RouteState<_real_router_types.Params>> | null>;
|
|
105
105
|
|
|
106
106
|
declare function createSignalFromSource<T>(source: RouterSource<T>): Accessor<T>;
|
|
107
107
|
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
2
|
import { JSX, Accessor, ParentProps } from 'solid-js';
|
|
3
|
-
import * as _real_router_core from '@real-router/core';
|
|
4
3
|
import { Params, NavigationOptions, State, RouterError, Router, Navigator } from '@real-router/core';
|
|
5
4
|
export { Navigator } from '@real-router/core';
|
|
6
5
|
import { RouteUtils } from '@real-router/route-utils';
|
|
7
6
|
import { RouterTransitionSnapshot, RouterSource } from '@real-router/sources';
|
|
8
7
|
export { RouterTransitionSnapshot } from '@real-router/sources';
|
|
8
|
+
import * as _real_router_types from '@real-router/types';
|
|
9
9
|
|
|
10
10
|
interface RouteViewProps {
|
|
11
11
|
readonly nodeName: string;
|
|
@@ -101,7 +101,7 @@ interface RouterContextValue {
|
|
|
101
101
|
routeSelector: (routeName: string) => boolean;
|
|
102
102
|
}
|
|
103
103
|
declare const RouterContext: solid_js.Context<RouterContextValue | null>;
|
|
104
|
-
declare const RouteContext: solid_js.Context<Accessor<RouteState<
|
|
104
|
+
declare const RouteContext: solid_js.Context<Accessor<RouteState<_real_router_types.Params>> | null>;
|
|
105
105
|
|
|
106
106
|
declare function createSignalFromSource<T>(source: RouterSource<T>): Accessor<T>;
|
|
107
107
|
|
package/dist/types/context.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export interface RouterContextValue {
|
|
|
7
7
|
routeSelector: (routeName: string) => boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const RouterContext: import("solid-js", { with: { "resolution-mode": "import" } }).Context<RouterContextValue | null>;
|
|
10
|
-
export declare const RouteContext: import("solid-js", { with: { "resolution-mode": "import" } }).Context<Accessor<RouteState<import("@real-router/
|
|
10
|
+
export declare const RouteContext: import("solid-js", { with: { "resolution-mode": "import" } }).Context<Accessor<RouteState<import("@real-router/types").Params>> | null>;
|
|
11
11
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;CAC/C;AAED,eAAO,MAAM,aAAa,kGAAiD,CAAC;AAE5E,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;CAC/C;AAED,eAAO,MAAM,aAAa,kGAAiD,CAAC;AAE5E,eAAO,MAAM,YAAY,yIAAmD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-router/solid",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Solid.js integration for Real-Router",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"types": "./dist/cjs/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"development": "./src/index.tsx",
|
|
12
11
|
"types": {
|
|
13
12
|
"import": "./dist/esm/index.d.mts",
|
|
14
13
|
"require": "./dist/cjs/index.d.ts"
|
|
@@ -51,9 +50,9 @@
|
|
|
51
50
|
"license": "MIT",
|
|
52
51
|
"sideEffects": false,
|
|
53
52
|
"dependencies": {
|
|
54
|
-
"@real-router/core": "^0.45.
|
|
55
|
-
"@real-router/route-utils": "^0.1.
|
|
56
|
-
"@real-router/sources": "^0.4.
|
|
53
|
+
"@real-router/core": "^0.45.2",
|
|
54
|
+
"@real-router/route-utils": "^0.1.13",
|
|
55
|
+
"@real-router/sources": "^0.4.3"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@babel/core": "7.29.0",
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
"vite-plugin-solid": "2.11.11",
|
|
73
72
|
"vitest": "4.1.0",
|
|
74
73
|
"dom-utils": "^0.2.7",
|
|
75
|
-
"@real-router/browser-plugin": "^0.11.
|
|
74
|
+
"@real-router/browser-plugin": "^0.11.6"
|
|
76
75
|
},
|
|
77
76
|
"peerDependencies": {
|
|
78
77
|
"solid-js": ">=1.7.0"
|