@cosmicdrift/kumiko-renderer-web 0.260.0 → 0.261.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-renderer-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.261.0",
|
|
4
4
|
"description": "Web-platform bindings for @cosmicdrift/kumiko-renderer. HTML default-primitives, browser history-based navigation, EventSource-backed live events, and a one-call createKumikoApp that mounts the whole stack via react-dom.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"./styles.css": "./src/styles.css"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@cosmicdrift/kumiko-dispatcher-live": "0.
|
|
20
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
21
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
19
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.261.0",
|
|
20
|
+
"@cosmicdrift/kumiko-headless": "0.261.0",
|
|
21
|
+
"@cosmicdrift/kumiko-renderer": "0.261.0",
|
|
22
22
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
23
23
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
24
24
|
"@radix-ui/react-label": "^2.1.8",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@types/react-dom": "^19.2.3",
|
|
67
67
|
"jsdom": "^29.1.1",
|
|
68
68
|
"tailwindcss": "^4.3.0",
|
|
69
|
-
"@cosmicdrift/kumiko-locale-de": "0.
|
|
69
|
+
"@cosmicdrift/kumiko-locale-de": "0.261.0"
|
|
70
70
|
},
|
|
71
71
|
"repository": {
|
|
72
72
|
"type": "git",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
// rule that NavDefinition.access follows)
|
|
31
31
|
|
|
32
32
|
import type { AccessRule } from "@cosmicdrift/kumiko-framework/ui-types";
|
|
33
|
+
import { isOpenToAllGranted } from "@cosmicdrift/kumiko-framework/ui-types";
|
|
33
34
|
import type { AppSchema, FeatureSchema, WorkspaceSchema } from "@cosmicdrift/kumiko-renderer";
|
|
34
35
|
import { qualifyNavId, toAppSchema, UserRolesProvider, useNav } from "@cosmicdrift/kumiko-renderer";
|
|
35
36
|
import { type ReactNode, useCallback, useLayoutEffect, useMemo } from "react";
|
|
@@ -282,7 +283,7 @@ export function filterByAccess(
|
|
|
282
283
|
|
|
283
284
|
function userMatchesAccess(access: AccessRule | undefined, userRoles: readonly string[]): boolean {
|
|
284
285
|
if (access === undefined) return true;
|
|
285
|
-
if ("openToAll" in access) return access
|
|
286
|
+
if ("openToAll" in access) return isOpenToAllGranted(access);
|
|
286
287
|
return access.roles.some((r) => userRoles.includes(r));
|
|
287
288
|
}
|
|
288
289
|
|