@owlmeans/web-router 0.1.7 → 0.1.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/README.md
CHANGED
|
@@ -39,3 +39,20 @@ Registers the web router service in the given context.
|
|
|
39
39
|
|
|
40
40
|
- [`@owlmeans/router`](../router) — `RouterService` base interface
|
|
41
41
|
- [`@owlmeans/web-client`](../web-client) — calls `appendWebRouter` inside `makeContext`
|
|
42
|
+
|
|
43
|
+
<!-- owlmeans:agent-guidance:start -->
|
|
44
|
+
## Agent guidance
|
|
45
|
+
|
|
46
|
+
This package ships embedded Claude Code skills and GitHub Copilot instructions under
|
|
47
|
+
`agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
|
|
48
|
+
agent-skills installer to place them into your project's native locations
|
|
49
|
+
(`.claude/skills/` and `.github/instructions/`):
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npx @owlmeans/agent-skills
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The embedded files are version-matched to this package release. Do not edit them
|
|
56
|
+
directly — they are regenerated on each publish. To contribute guidance edits,
|
|
57
|
+
open a PR against the source monorepo.
|
|
58
|
+
<!-- owlmeans:agent-guidance:end -->
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "How to use @owlmeans/web-router — React Router v7 wrapper exposing the framework router service."
|
|
3
|
+
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
+
---
|
|
5
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
+
|
|
7
|
+
# @owlmeans/web-router
|
|
8
|
+
|
|
9
|
+
**Layer:** Web (React)
|
|
10
|
+
**Install:** `"@owlmeans/web-router": "^0.1.9"` in `dependencies`
|
|
11
|
+
|
|
12
|
+
## Key Exports
|
|
13
|
+
|
|
14
|
+
| Export | Description |
|
|
15
|
+
|--------|-------------|
|
|
16
|
+
| `makeWebRouterService()` | React Router v7 wrapped as a router service |
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { makeWebRouterService } from '@owlmeans/web-router'
|
|
22
|
+
context.registerService(makeWebRouterService())
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Depends On
|
|
26
|
+
|
|
27
|
+
- `@owlmeans/router`, `@owlmeans/client`, `react-router`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@owlmeans/web-router",
|
|
4
|
+
"version": "0.1.9",
|
|
5
|
+
"generatedAt": "2026-06-14T13:34:06.141Z",
|
|
6
|
+
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
|
+
"entries": [
|
|
8
|
+
{
|
|
9
|
+
"kind": "skill",
|
|
10
|
+
"name": "web-router",
|
|
11
|
+
"category": "package-specific",
|
|
12
|
+
"file": "skills/web-router/SKILL.md",
|
|
13
|
+
"canonicalPath": ".claude/skills/web-router/SKILL.md"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"kind": "instruction",
|
|
17
|
+
"name": "web-router",
|
|
18
|
+
"category": "package-specific",
|
|
19
|
+
"file": "instructions/web-router.instructions.md",
|
|
20
|
+
"canonicalPath": ".github/instructions/web-router.instructions.md"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: web-router
|
|
3
|
+
description: How to use @owlmeans/web-router — React Router v7 wrapper exposing the framework router service. Auto-invoked when importing the web router service.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
7
|
+
|
|
8
|
+
# @owlmeans/web-router
|
|
9
|
+
|
|
10
|
+
**Layer:** Web (React)
|
|
11
|
+
**Install:** `"@owlmeans/web-router": "^0.1.9"` in `dependencies`
|
|
12
|
+
|
|
13
|
+
## Key Exports
|
|
14
|
+
|
|
15
|
+
| Export | Description |
|
|
16
|
+
|--------|-------------|
|
|
17
|
+
| `makeWebRouterService()` | React Router v7 wrapped as a router service |
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Usually wired transparently by `@owlmeans/web-client` / `@owlmeans/web-panel`. Register manually only if you need a custom router setup:
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { makeWebRouterService } from '@owlmeans/web-router'
|
|
25
|
+
context.registerService(makeWebRouterService())
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Depends On
|
|
29
|
+
|
|
30
|
+
- `@owlmeans/router`, `@owlmeans/client`
|
|
31
|
+
- `react-router` (peer, pinned to v7)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/web-router",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typescript": "^6.0.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@owlmeans/router": "^0.1.
|
|
35
|
+
"@owlmeans/router": "^0.1.9"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|