@owlmeans/client 0.1.18-rc.13 → 0.1.18-rc.15
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/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/client",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-09-
|
|
4
|
+
"version": "0.1.18-rc.15",
|
|
5
|
+
"generatedAt": "2026-09-01T17:39:40.762Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../src/utils/route.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EAA4C,aAAa,EAAE,MAAM,aAAa,CAAA;AAE1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAKnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,KAAK,MAAM,GAAG,YAAY,CAAA;AAC1B,UAAU,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;CAAI;AAEzE,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../src/utils/route.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EAA4C,aAAa,EAAE,MAAM,aAAa,CAAA;AAE1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAKnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,KAAK,MAAM,GAAG,YAAY,CAAA;AAC1B,UAAU,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;CAAI;AAEzE,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,EAgE7D,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,YAAY,CAAA;AAEvF,UAAU,cAAc;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,WAAW,EAAE,OAAO,CAAA;CACrB"}
|
package/build/utils/route.js
CHANGED
|
@@ -6,9 +6,15 @@ import { AuthorizationError } from '@owlmeans/auth';
|
|
|
6
6
|
export const createRouteRenderer = ({ context, module, hasChildren }) => () => {
|
|
7
7
|
const params = context.router().useParams();
|
|
8
8
|
const reply = provideResponse();
|
|
9
|
+
// Own guards plus every ancestor's — the same set the request would be judged by. Whether a
|
|
10
|
+
// screen is guarded is a question about THIS list being non-empty, never about the declaration
|
|
11
|
+
// carrying a `guards` property: elevation always assigns the array, empty when nothing was
|
|
12
|
+
// declared, and an empty list means an open screen. Asking the wrong question refuses every
|
|
13
|
+
// guest screen with `frontend-guard`, since no guard can match when there are none.
|
|
14
|
+
const aliases = module.getGuards();
|
|
9
15
|
useEffect(() => {
|
|
10
|
-
if (
|
|
11
|
-
const guards =
|
|
16
|
+
if (aliases.length > 0) {
|
|
17
|
+
const guards = aliases.map(guard => context.service(guard));
|
|
12
18
|
const request = provideRequest(module.alias, module.path());
|
|
13
19
|
const reply = provideResponse();
|
|
14
20
|
let canceled = false;
|
|
@@ -32,7 +38,7 @@ export const createRouteRenderer = ({ context, module, hasChildren }) => () => {
|
|
|
32
38
|
});
|
|
33
39
|
return () => { canceled = true; };
|
|
34
40
|
}
|
|
35
|
-
},
|
|
41
|
+
}, aliases);
|
|
36
42
|
let Renderer = module.handle?.({
|
|
37
43
|
alias: module.alias, path: module.path(),
|
|
38
44
|
params, body: {}, headers: {}, query: {},
|
package/build/utils/route.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/utils/route.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAMnD,MAAM,CAAC,MAAM,mBAAmB,GAAmC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE;IAC5G,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,CAAA;IAC3C,MAAM,KAAK,GAAG,eAAe,EAAE,CAAA;IAE/B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/utils/route.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAMnD,MAAM,CAAC,MAAM,mBAAmB,GAAmC,CAAC,EAAE,OAAO,EAAE,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C;YACN,OAAO,KAAC,eAAe,OAAK,KAAK,GAAI,CAAA;QACvC,CAAC;IACH,CAAC;IACD,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,KAAC,MAAM,KAAG,CAAA;IACnB,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AAUD,MAAM,WAAW,GAAG,CAAe,OAA2B,EAAqD,EAAE,CACnH,OAAO,IAAI,IAAI,IAAI,OAAO,OAAO,KAAK,UAAU,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/client",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@owlmeans/auth": "^0.1.18-rc.8",
|
|
32
|
-
"@owlmeans/client-context": "^0.1.18-rc.
|
|
33
|
-
"@owlmeans/client-entrypoint": "^0.1.18-rc.
|
|
34
|
-
"@owlmeans/client-resource": "^0.1.18-rc.
|
|
35
|
-
"@owlmeans/config": "^0.1.18-rc.
|
|
32
|
+
"@owlmeans/client-context": "^0.1.18-rc.12",
|
|
33
|
+
"@owlmeans/client-entrypoint": "^0.1.18-rc.12",
|
|
34
|
+
"@owlmeans/client-resource": "^0.1.18-rc.12",
|
|
35
|
+
"@owlmeans/config": "^0.1.18-rc.11",
|
|
36
36
|
"@owlmeans/context": "^0.1.18-rc.7",
|
|
37
37
|
"@owlmeans/error": "^0.1.18-rc.7",
|
|
38
|
-
"@owlmeans/entrypoint": "^0.1.18-rc.
|
|
38
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.10",
|
|
39
39
|
"@owlmeans/resource": "^0.1.18-rc.8",
|
|
40
40
|
"@owlmeans/router": "^0.1.18-rc.7",
|
|
41
41
|
"@owlmeans/state": "^0.1.18-rc.9"
|
package/src/utils/route.tsx
CHANGED
|
@@ -15,9 +15,16 @@ export const createRouteRenderer: (params: RendererParams) => FC = ({ context, m
|
|
|
15
15
|
const params = context.router().useParams()
|
|
16
16
|
const reply = provideResponse()
|
|
17
17
|
|
|
18
|
+
// Own guards plus every ancestor's — the same set the request would be judged by. Whether a
|
|
19
|
+
// screen is guarded is a question about THIS list being non-empty, never about the declaration
|
|
20
|
+
// carrying a `guards` property: elevation always assigns the array, empty when nothing was
|
|
21
|
+
// declared, and an empty list means an open screen. Asking the wrong question refuses every
|
|
22
|
+
// guest screen with `frontend-guard`, since no guard can match when there are none.
|
|
23
|
+
const aliases = module.getGuards()
|
|
24
|
+
|
|
18
25
|
useEffect(() => {
|
|
19
|
-
if (
|
|
20
|
-
const guards =
|
|
26
|
+
if (aliases.length > 0) {
|
|
27
|
+
const guards = aliases.map(guard => context.service<GuardService>(guard))
|
|
21
28
|
const request = provideRequest(module.alias, module.path())
|
|
22
29
|
const reply = provideResponse()
|
|
23
30
|
let canceled = false
|
|
@@ -38,7 +45,7 @@ export const createRouteRenderer: (params: RendererParams) => FC = ({ context, m
|
|
|
38
45
|
})
|
|
39
46
|
return () => { canceled = true }
|
|
40
47
|
}
|
|
41
|
-
},
|
|
48
|
+
}, aliases)
|
|
42
49
|
|
|
43
50
|
let Renderer: HandledRenderer<{}> = module.handle?.({
|
|
44
51
|
alias: module.alias, path: module.path(),
|