@sigx/router 0.1.11 → 0.1.12

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/Link.d.ts CHANGED
@@ -13,14 +13,14 @@
13
13
  import { type DefineProp, type DefineEvent, type DefineSlot } from 'sigx';
14
14
  import type { RouteLocationRaw } from './types.js';
15
15
  type LinkProps = DefineProp<'to', RouteLocationRaw, true> & DefineProp<'replace', boolean> & DefineProp<'activeClass', string> & DefineProp<'exactActiveClass', string> & DefineProp<'ariaCurrentValue', 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'> & DefineEvent<'click', MouseEvent> & DefineSlot<'default'>;
16
- export declare const Link: import("@sigx/runtime-core").ComponentFactory<LinkProps, void, {
17
- default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
16
+ export declare const Link: import("sigx").ComponentFactory<LinkProps, void, {
17
+ default: () => import("sigx").JSXElement[] | import("sigx").JSXElement;
18
18
  }>;
19
19
  /**
20
20
  * Alias for Link component
21
21
  */
22
- export declare const RouterLink: import("@sigx/runtime-core").ComponentFactory<LinkProps, void, {
23
- default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
22
+ export declare const RouterLink: import("sigx").ComponentFactory<LinkProps, void, {
23
+ default: () => import("sigx").JSXElement[] | import("sigx").JSXElement;
24
24
  }>;
25
25
  export {};
26
26
  //# sourceMappingURL=Link.d.ts.map
package/dist/hooks.d.ts CHANGED
@@ -36,7 +36,7 @@ export declare function useQuery(): RouteQuery;
36
36
  * navigate({ path: '/blog', query: { page: '2' } });
37
37
  * ```
38
38
  */
39
- export declare function useNavigate(): (to: import("./types.js").RouteLocationRaw) => Promise<RouteLocation | void>;
39
+ export declare function useNavigate(): (to: import("./types.js").RouteLocationRaw) => Promise<void | RouteLocation>;
40
40
  /**
41
41
  * Guard type for route enter
42
42
  */
package/dist/router.d.ts CHANGED
@@ -8,12 +8,12 @@ import type { Router, RouterOptions, RouteLocation } from './types.js';
8
8
  * Injectable for accessing the router instance.
9
9
  * Must be installed via app.use(router) before use.
10
10
  */
11
- export declare const useRouter: import("@sigx/runtime-core").InjectableFunction<Router>;
11
+ export declare const useRouter: import("sigx").InjectableFunction<Router>;
12
12
  /**
13
13
  * Injectable for accessing the current route (reactive).
14
14
  * Must be installed via app.use(router) before use.
15
15
  */
16
- export declare const useRoute: import("@sigx/runtime-core").InjectableFunction<RouteLocation>;
16
+ export declare const useRoute: import("sigx").InjectableFunction<RouteLocation>;
17
17
  /**
18
18
  * Create a router instance
19
19
  *
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACR,MAAM,EACN,aAAa,EACb,aAAa,EAOhB,MAAM,YAAY,CAAC;AAUpB;;;GAGG;AACH,eAAO,MAAM,SAAS,yDAKpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ,gEAKnB,CAAC;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CA4X3D"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACR,MAAM,EACN,aAAa,EACb,aAAa,EAOhB,MAAM,YAAY,CAAC;AAUpB;;;GAGG;AACH,eAAO,MAAM,SAAS,2CAKpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ,kDAKnB,CAAC;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CA4X3D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/router",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Router for SignalX with SSR support and hooks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,22 +33,22 @@
33
33
  "url": "https://github.com/signalxjs/core/issues"
34
34
  },
35
35
  "peerDependencies": {
36
- "sigx": "^0.1.11"
36
+ "sigx": "^0.1.12"
37
37
  },
38
38
  "dependencies": {
39
- "@sigx/reactivity": "^0.1.11",
40
- "@sigx/runtime-core": "^0.1.11",
41
- "@sigx/runtime-dom": "^0.1.11"
39
+ "@sigx/reactivity": "^0.1.12",
40
+ "@sigx/runtime-core": "^0.1.12",
41
+ "@sigx/runtime-dom": "^0.1.12"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^20.0.0",
45
45
  "typescript": "^5.9.3",
46
46
  "vite": "^8.0.0-beta.9",
47
- "@sigx/vite": "^0.1.11",
48
- "sigx": "^0.1.11"
47
+ "sigx": "^0.1.12",
48
+ "@sigx/vite": "^0.1.12"
49
49
  },
50
50
  "scripts": {
51
- "build": "vite build && tsc --emitDeclarationOnly",
51
+ "build": "vite build && tsgo --emitDeclarationOnly",
52
52
  "dev": "vite build --watch"
53
53
  }
54
54
  }