@cosmicdrift/kumiko-renderer-web 0.342.0 → 0.343.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { normalizeListColumn } from "@cosmicdrift/kumiko-framework/ui-types";
|
|
3
|
-
import { dispatcherErrorText, EmbeddedScreenProvider, extensionSectionName, KumikoScreen, useEmbeddedScreen, useExtensionSectionComponent, useLocale, useNav, usePageHeaderSlotAvailable, usePrimitives, useQuery, useTranslation, } from "@cosmicdrift/kumiko-renderer";
|
|
3
|
+
import { dispatcherErrorText, EmbeddedScreenProvider, evalVisibleWhen, extensionSectionName, KumikoScreen, useEmbeddedScreen, useExtensionSectionComponent, useLocale, useNav, usePageHeaderSlotAvailable, usePrimitives, useQuery, useTranslation, } from "@cosmicdrift/kumiko-renderer";
|
|
4
4
|
import { createContext, useContext, useEffect, useMemo, useState } from "react";
|
|
5
5
|
import { EmbeddedFormProvider } from "../primitives/index.js";
|
|
6
6
|
import { PageSection } from "../primitives/layout.js";
|
|
@@ -378,12 +378,13 @@ function ScreenPanelTile({ panel, featureName, translate, }) {
|
|
|
378
378
|
if (target === undefined)
|
|
379
379
|
return null;
|
|
380
380
|
if (visibleWhen !== undefined) {
|
|
381
|
+
const verdict = evalVisibleWhen(visibleWhen, visibility);
|
|
381
382
|
// A failed gate query must not silently drop the panel: on the
|
|
382
383
|
// account-security page that would hide every MFA enable/disable path.
|
|
383
|
-
if (visibility?.error) {
|
|
384
|
+
if (verdict === "error" && visibility?.error) {
|
|
384
385
|
return (_jsx("div", { className: WIDE_PANEL, "data-testid": `dashboard-panel-${panel.id}`, children: _jsx(PanelError, { label: panel.label !== undefined ? translate(panel.label) : panel.id, error: visibility.error, onRetry: () => void visibility.refetch() }) }));
|
|
385
386
|
}
|
|
386
|
-
if (
|
|
387
|
+
if (verdict !== "visible")
|
|
387
388
|
return null;
|
|
388
389
|
}
|
|
389
390
|
const screenBody = _jsx(KumikoScreen, { schema: target.schema, qn: target.qn, translate: translate });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-renderer-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.343.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>",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@cosmicdrift/kumiko-dispatcher-live": "0.
|
|
24
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
25
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
26
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
27
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
23
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.343.0",
|
|
24
|
+
"@cosmicdrift/kumiko-framework": "0.343.0",
|
|
25
|
+
"@cosmicdrift/kumiko-headless": "0.343.0",
|
|
26
|
+
"@cosmicdrift/kumiko-renderer": "0.343.0",
|
|
27
|
+
"@cosmicdrift/kumiko-types": "0.343.0",
|
|
28
28
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
29
29
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
30
30
|
"@radix-ui/react-label": "^2.1.8",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/react-dom": "^19.2.3",
|
|
73
73
|
"jsdom": "^29.1.1",
|
|
74
74
|
"tailwindcss": "^4.3.0",
|
|
75
|
-
"@cosmicdrift/kumiko-locale-de": "0.
|
|
75
|
+
"@cosmicdrift/kumiko-locale-de": "0.343.0"
|
|
76
76
|
},
|
|
77
77
|
"repository": {
|
|
78
78
|
"type": "git",
|