@cosmicdrift/kumiko-renderer-web 0.237.0 → 0.237.1
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.237.
|
|
3
|
+
"version": "0.237.1",
|
|
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.237.
|
|
20
|
-
"@cosmicdrift/kumiko-headless": "0.237.
|
|
21
|
-
"@cosmicdrift/kumiko-renderer": "0.237.
|
|
19
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.237.1",
|
|
20
|
+
"@cosmicdrift/kumiko-headless": "0.237.1",
|
|
21
|
+
"@cosmicdrift/kumiko-renderer": "0.237.1",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@types/react-dom": "^19.2.3",
|
|
65
65
|
"jsdom": "^29.1.1",
|
|
66
66
|
"tailwindcss": "^4.3.0",
|
|
67
|
-
"@cosmicdrift/kumiko-locale-de": "0.237.
|
|
67
|
+
"@cosmicdrift/kumiko-locale-de": "0.237.1"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
|
70
70
|
"type": "git",
|
|
@@ -386,6 +386,26 @@ describe("DataTable", () => {
|
|
|
386
386
|
expect(screen.getByTestId("t-empty")).not.toBeNull();
|
|
387
387
|
});
|
|
388
388
|
|
|
389
|
+
test("empty rows without emptyState translate the default label (issue #2653)", async () => {
|
|
390
|
+
const { LocaleProvider, createStaticLocaleResolver, kumikoDefaultTranslations } = await import(
|
|
391
|
+
"@cosmicdrift/kumiko-renderer"
|
|
392
|
+
);
|
|
393
|
+
const { localeDeBundle } = await import("@cosmicdrift/kumiko-locale-de");
|
|
394
|
+
render(
|
|
395
|
+
<LocaleProvider
|
|
396
|
+
resolver={createStaticLocaleResolver({ locale: "de" })}
|
|
397
|
+
fallbackBundles={[{ de: localeDeBundle }, kumikoDefaultTranslations]}
|
|
398
|
+
>
|
|
399
|
+
<DataTable
|
|
400
|
+
columns={[{ field: "name", label: "Name", type: "string", sortable: false }]}
|
|
401
|
+
rows={[]}
|
|
402
|
+
testId="t"
|
|
403
|
+
/>
|
|
404
|
+
</LocaleProvider>,
|
|
405
|
+
);
|
|
406
|
+
expect(screen.getByTestId("t-empty").textContent).toBe("Keine Einträge.");
|
|
407
|
+
});
|
|
408
|
+
|
|
389
409
|
test("rows + cells get individual testIds for E2E hooks", () => {
|
|
390
410
|
render(
|
|
391
411
|
<DataTable
|
package/src/primitives/index.tsx
CHANGED
|
@@ -899,7 +899,7 @@ function DefaultDataTable({
|
|
|
899
899
|
data-testid={testId !== undefined ? `${testId}-empty` : "render-list-empty"}
|
|
900
900
|
className="flex flex-col items-center justify-center rounded-md border border-dashed p-12 text-sm text-muted-foreground gap-3"
|
|
901
901
|
>
|
|
902
|
-
{emptyState ?? <span>No entries
|
|
902
|
+
{emptyState ?? <span>{tableTranslate?.("kumiko.list.no-entries") ?? "No entries."}</span>}
|
|
903
903
|
</div>
|
|
904
904
|
);
|
|
905
905
|
|