@owlmeans/web-router 0.1.18-rc.11 → 0.1.18-rc.13

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,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/web-router",
4
- "version": "0.1.18-rc.8",
5
- "generatedAt": "2026-08-27T16:32:18.508Z",
4
+ "version": "0.1.18-rc.13",
5
+ "generatedAt": "2026-09-01T17:39:40.767Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,12 +8,12 @@ user-invocable: false
8
8
  # @owlmeans/web-router
9
9
 
10
10
  **Layer:** Web (React), build level L2
11
- **Install:** `"@owlmeans/web-router": "^0.1.18-rc.8"` in `dependencies`
11
+ **Install:** `"@owlmeans/web-router": "^0.1.18-rc.13"` in `dependencies`
12
12
 
13
- As of the pluggable-routing rework this package **is the default OwlMeans in-browser router** — a
14
- minimal, react-router-free implementation of standard URL routing over the browser History API. It
15
- registers itself as a `RouterPlugin` on the `@owlmeans/router` host. (react-router now lives in the
16
- separate opt-in `@owlmeans/web-router-react-router` package.)
13
+ This package **is the default OwlMeans in-browser router** — a minimal, react-router-free
14
+ implementation of standard URL routing over the browser History API. It registers itself as a
15
+ `RouterPlugin` on the `@owlmeans/router` host. (react-router is the separate opt-in
16
+ `@owlmeans/web-router-react-router` package.)
17
17
 
18
18
  ## Key Exports
19
19
 
@@ -35,8 +35,8 @@ separate opt-in `@owlmeans/web-router-react-router` package.)
35
35
  chain via `RouteChain`; `<Outlet/>` renders the next-deeper match (depth tracked via context).
36
36
  Composes unchanged with the `@owlmeans/client` route renderer (parent components emit `<Outlet/>`).
37
37
  - **Component-less matches are pass-through** — exactly like react-router's implicit `<Outlet/>` for
38
- element-less routes. `@owlmeans/client` emits `RouteObject`s with no `Component` for modules that
39
- have no handler (grouping modules such as `client-authentication` →
38
+ element-less routes. `@owlmeans/client` emits `RouteObject`s with no `Component` for entrypoints
39
+ that have no handler (grouping entrypoints such as `client-authentication` →
40
40
  `client-authentication:authentication`), so rendering only the exact node at a depth would blank
41
41
  the whole subtree. `RouteChain` walks down to the first match that has a `Component`, and the
42
42
  `OutletContext` depth it publishes is that match's depth, so nested outlets stay aligned.
@@ -4,11 +4,11 @@ import type { FC } from 'react';
4
4
  *
5
5
  * A matched route that carries no `Component` is a **pass-through**: it renders
6
6
  * the next-deeper match, exactly like react-router's implicit `<Outlet/>` for
7
- * element-less routes. OwlMeans module trees depend on this — grouping modules
8
- * (e.g. `client-authentication` → `client-authentication:authentication`) have
9
- * no handler, so `@owlmeans/client` emits `RouteObject`s without a `Component`
7
+ * element-less routes. OwlMeans entrypoint trees depend on this — grouping
8
+ * entrypoints (e.g. `client-authentication` → `client-authentication:authentication`)
9
+ * have no handler, so `@owlmeans/client` emits `RouteObject`s without a `Component`
10
10
  * for them. Rendering only the exact node at `depth` would leave the whole
11
- * subtree blank whenever a group sits above the screen module.
11
+ * subtree blank whenever a group sits above the screen entrypoint.
12
12
  */
13
13
  export declare const RouteChain: FC<{
14
14
  depth: number;
@@ -5,11 +5,11 @@ import { RouterStateContext, OutletContext } from './context.js';
5
5
  *
6
6
  * A matched route that carries no `Component` is a **pass-through**: it renders
7
7
  * the next-deeper match, exactly like react-router's implicit `<Outlet/>` for
8
- * element-less routes. OwlMeans module trees depend on this — grouping modules
9
- * (e.g. `client-authentication` → `client-authentication:authentication`) have
10
- * no handler, so `@owlmeans/client` emits `RouteObject`s without a `Component`
8
+ * element-less routes. OwlMeans entrypoint trees depend on this — grouping
9
+ * entrypoints (e.g. `client-authentication` → `client-authentication:authentication`)
10
+ * have no handler, so `@owlmeans/client` emits `RouteObject`s without a `Component`
11
11
  * for them. Rendering only the exact node at `depth` would leave the whole
12
- * subtree blank whenever a group sits above the screen module.
12
+ * subtree blank whenever a group sits above the screen entrypoint.
13
13
  */
14
14
  export const RouteChain = ({ depth }) => {
15
15
  const state = useContext(RouterStateContext);
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,aAIvC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,KAAG,CAI1F,CAAA"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,aAIvC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAG,CAI1F,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/web-router",
3
- "version": "0.1.18-rc.11",
3
+ "version": "0.1.18-rc.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@owlmeans/dep-config": "workspace:*",
29
- "@owlmeans/test-ui": "^0.1.18-rc.11",
29
+ "@owlmeans/test-ui": "^0.1.18-rc.14",
30
30
  "@types/node": "^26.1.0",
31
31
  "@types/react": "^19.2.17",
32
32
  "@vitejs/plugin-react": "^6.0.3",
@@ -38,8 +38,8 @@
38
38
  "vite": "^8.1.2"
39
39
  },
40
40
  "dependencies": {
41
- "@owlmeans/context": "^0.1.18-rc.6",
42
- "@owlmeans/router": "^0.1.18-rc.6"
41
+ "@owlmeans/context": "^0.1.18-rc.7",
42
+ "@owlmeans/router": "^0.1.18-rc.7"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
@@ -7,11 +7,11 @@ import { RouterStateContext, OutletContext } from './context.js'
7
7
  *
8
8
  * A matched route that carries no `Component` is a **pass-through**: it renders
9
9
  * the next-deeper match, exactly like react-router's implicit `<Outlet/>` for
10
- * element-less routes. OwlMeans module trees depend on this — grouping modules
11
- * (e.g. `client-authentication` → `client-authentication:authentication`) have
12
- * no handler, so `@owlmeans/client` emits `RouteObject`s without a `Component`
10
+ * element-less routes. OwlMeans entrypoint trees depend on this — grouping
11
+ * entrypoints (e.g. `client-authentication` → `client-authentication:authentication`)
12
+ * have no handler, so `@owlmeans/client` emits `RouteObject`s without a `Component`
13
13
  * for them. Rendering only the exact node at `depth` would leave the whole
14
- * subtree blank whenever a group sits above the screen module.
14
+ * subtree blank whenever a group sits above the screen entrypoint.
15
15
  */
16
16
  export const RouteChain: FC<{ depth: number }> = ({ depth }) => {
17
17
  const state = useContext(RouterStateContext)
@@ -49,7 +49,7 @@ const routes: RouteObject[] = [
49
49
  ]
50
50
  },
51
51
  // component-less grouping node at the very top of the chain — this is the shape
52
- // `@owlmeans/client` emits for modules without a handler (e.g. `client-authentication`)
52
+ // `@owlmeans/client` emits for entrypoints without a handler (e.g. `client-authentication`)
53
53
  { path: 'group', children: [{ path: 'leaf', Component: Leaf }] }
54
54
  ]
55
55
 
package/build/.gitkeep DELETED
File without changes