@cosmicdrift/kumiko-renderer-web 0.156.3 → 0.157.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.157.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.157.0",
|
|
20
|
+
"@cosmicdrift/kumiko-headless": "0.157.0",
|
|
21
|
+
"@cosmicdrift/kumiko-renderer": "0.157.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",
|
|
@@ -432,6 +432,31 @@ describe("KumikoScreen", () => {
|
|
|
432
432
|
expect(screen.queryByTestId("render-edit-form-error")).toBeNull();
|
|
433
433
|
});
|
|
434
434
|
|
|
435
|
+
test("entityEdit update-mode: query-Error zeigt übersetzten Text statt rohem i18nKey (issue #1193)", async () => {
|
|
436
|
+
const dispatcher = makeDispatcher({
|
|
437
|
+
query: (async () => ({
|
|
438
|
+
isSuccess: false,
|
|
439
|
+
error: {
|
|
440
|
+
code: "access_denied",
|
|
441
|
+
httpStatus: 403,
|
|
442
|
+
i18nKey: "errors.access.denied",
|
|
443
|
+
message: "",
|
|
444
|
+
},
|
|
445
|
+
})) as unknown as Dispatcher["query"],
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
render(
|
|
449
|
+
<DispatcherProvider dispatcher={dispatcher}>
|
|
450
|
+
<KumikoScreen schema={schema} qn="tasks:screen:task-edit" entityId="task-1" />
|
|
451
|
+
</DispatcherProvider>,
|
|
452
|
+
);
|
|
453
|
+
|
|
454
|
+
await waitFor(() => expect(screen.queryByTestId("kumiko-screen-error")).toBeTruthy());
|
|
455
|
+
const bannerText = screen.getByTestId("kumiko-screen-error").textContent;
|
|
456
|
+
expect(bannerText).toBe(kumikoDefaultTranslations["en"]?.["errors.access.denied"] ?? "");
|
|
457
|
+
expect(bannerText).not.toBe("errors.access.denied");
|
|
458
|
+
});
|
|
459
|
+
|
|
435
460
|
// RowActions-Mapping (Tier 2.7a Resolution-Layer): pinst dass
|
|
436
461
|
// EntityListBody die Schema-Form (handler-QN, label-i18nKey, payload-
|
|
437
462
|
// builder, visible-Function, confirmLabel) zu DataTableRowAction
|