@real-router/solid 0.2.11 → 0.3.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.
@@ -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';
3
4
  import { Params, NavigationOptions, State, RouterError, Router, Navigator } from '@real-router/core';
4
5
  export { Navigator } from '@real-router/core';
5
6
  import { RouteUtils } from '@real-router/route-utils';
6
7
  import { RouterTransitionSnapshot, RouterSource } from '@real-router/sources';
7
8
  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<_real_router_types.Params>> | null>;
104
+ declare const RouteContext: solid_js.Context<Accessor<RouteState<_real_router_core.Params>> | null>;
105
105
 
106
106
  declare function createSignalFromSource<T>(source: RouterSource<T>): Accessor<T>;
107
107
 
@@ -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';
3
4
  import { Params, NavigationOptions, State, RouterError, Router, Navigator } from '@real-router/core';
4
5
  export { Navigator } from '@real-router/core';
5
6
  import { RouteUtils } from '@real-router/route-utils';
6
7
  import { RouterTransitionSnapshot, RouterSource } from '@real-router/sources';
7
8
  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<_real_router_types.Params>> | null>;
104
+ declare const RouteContext: solid_js.Context<Accessor<RouteState<_real_router_core.Params>> | null>;
105
105
 
106
106
  declare function createSignalFromSource<T>(source: RouterSource<T>): Accessor<T>;
107
107
 
@@ -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/types").Params>> | null>;
10
+ export declare const RouteContext: import("solid-js", { with: { "resolution-mode": "import" } }).Context<Accessor<RouteState<import("@real-router/core").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,yIAAmD,CAAC"}
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,wIAAmD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/solid",
3
- "version": "0.2.11",
3
+ "version": "0.3.1",
4
4
  "type": "commonjs",
5
5
  "description": "Solid.js integration for Real-Router",
6
6
  "main": "./dist/cjs/index.js",
@@ -8,6 +8,7 @@
8
8
  "types": "./dist/cjs/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
+ "@real-router/internal-source": "./src/index.tsx",
11
12
  "types": {
12
13
  "import": "./dist/esm/index.d.mts",
13
14
  "require": "./dist/cjs/index.d.ts"
@@ -50,9 +51,9 @@
50
51
  "license": "MIT",
51
52
  "sideEffects": false,
52
53
  "dependencies": {
53
- "@real-router/core": "^0.46.0",
54
- "@real-router/route-utils": "^0.1.14",
55
- "@real-router/sources": "^0.4.4"
54
+ "@real-router/core": "^0.48.0",
55
+ "@real-router/route-utils": "^0.2.1",
56
+ "@real-router/sources": "^0.5.1"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@babel/core": "7.29.0",
@@ -70,7 +71,7 @@
70
71
  "solid-js": "1.9.12",
71
72
  "vite-plugin-solid": "2.11.11",
72
73
  "vitest": "4.1.0",
73
- "@real-router/browser-plugin": "^0.11.8"
74
+ "@real-router/browser-plugin": "^0.12.1"
74
75
  },
75
76
  "peerDependencies": {
76
77
  "solid-js": ">=1.7.0"
@@ -83,7 +84,6 @@
83
84
  "type-check": "tsc --noEmit",
84
85
  "lint": "eslint --cache --ext .ts,.tsx src/ tests/ --fix --max-warnings 0",
85
86
  "lint:package": "publint",
86
- "lint:types": "attw --pack .",
87
- "build:dist-only": "rimraf dist && tsc -p tsconfig.build.json && rollup -c rollup.config.mjs"
87
+ "lint:types": "attw --pack ."
88
88
  }
89
89
  }