@cosmicdrift/kumiko-renderer 0.326.0 → 0.327.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",
3
- "version": "0.326.0",
3
+ "version": "0.327.0",
4
4
  "description": "Platform-agnostic React renderer for Kumiko screens. Contains the shared logic — primitives-contract, hooks, KumikoScreen, navigation & SSE abstractions — that any platform-specific renderer (web, native) composes. No DOM, no EventSource, no react-dom.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -15,9 +15,9 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@cosmicdrift/kumiko-framework": "0.326.0",
19
- "@cosmicdrift/kumiko-headless": "0.326.0",
20
- "@cosmicdrift/kumiko-types": "0.326.0",
18
+ "@cosmicdrift/kumiko-framework": "0.327.0",
19
+ "@cosmicdrift/kumiko-headless": "0.327.0",
20
+ "@cosmicdrift/kumiko-types": "0.327.0",
21
21
  "react": "^19.2.6",
22
22
  "temporal-polyfill": "^0.3.2",
23
23
  "zod": "^4.4.3"
@@ -28,7 +28,7 @@
28
28
  "@types/react-dom": "^19.2.3",
29
29
  "jsdom": "^29.1.1",
30
30
  "react-dom": "^19.2.6",
31
- "@cosmicdrift/kumiko-locale-de": "0.326.0"
31
+ "@cosmicdrift/kumiko-locale-de": "0.327.0"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",
@@ -152,6 +152,11 @@ type OpenDrawer = (
152
152
  // builders re-run inside a useMemo on every dep change.
153
153
  const warnedDrawerActionIds = new Set<string>();
154
154
 
155
+ /** @internal test-only */
156
+ export function resetDrawerActionWarningsForTests(): void {
157
+ warnedDrawerActionIds.clear();
158
+ }
159
+
155
160
  function warnDrawerActionDropped(
156
161
  actionKind: "rowAction" | "toolbarAction",
157
162
  actionId: string,
@@ -1,4 +1,4 @@
1
- import { describe, expect, spyOn, test } from "bun:test";
1
+ import { beforeEach, describe, expect, spyOn, test } from "bun:test";
2
2
  import type { EntityEditScreenDefinition, RowAction } from "@cosmicdrift/kumiko-framework/ui-types";
3
3
  import type { Dispatcher, EditRelatedListSectionViewModel } from "@cosmicdrift/kumiko-headless";
4
4
  import { act, fireEvent, render, screen as rtlScreen, waitFor } from "@testing-library/react";
@@ -6,6 +6,7 @@ import type { ComponentType, ReactNode } from "react";
6
6
  import { AppFeaturesProvider } from "../../app/app-features-context";
7
7
  import type { FeatureSchema } from "../../app/feature-schema";
8
8
  import { type NavApi, NavProvider } from "../../app/nav";
9
+ import { resetDrawerActionWarningsForTests } from "../../app/row-actions";
9
10
  import { DispatcherProvider } from "../../context/dispatcher-context";
10
11
  import { UserRolesProvider } from "../../context/user-roles-context";
11
12
  import { createStaticLocaleResolver, LocaleProvider } from "../../i18n";
@@ -736,6 +737,10 @@ describe("RelatedListSection — rowActions", () => {
736
737
  // pins that hand-off, not the Drawer UI itself (covered by kumiko-screen's
737
738
  // own tests).
738
739
  describe("RelatedListSection — rowActions drawer-kind (fw#2710)", () => {
740
+ beforeEach(() => {
741
+ resetDrawerActionWarningsForTests();
742
+ });
743
+
739
744
  test("clicking a drawer rowAction calls onOpenDrawer with the action and the row's extracted values", async () => {
740
745
  const { dispatcher } = stubDispatcher([{ id: "item-7", name: "Rent 2024", amount: 1200 }]);
741
746
  const openDrawerCalls: unknown[][] = [];
@@ -102,6 +102,12 @@ export const kumikoDefaultTranslations: TranslationsByLocale = {
102
102
  "kumiko.widget.drawer.maximize": "Maximize drawer width",
103
103
  "kumiko.widget.drawer.resize": "Resize drawer",
104
104
 
105
+ "kumiko.widget.floatingPanel.move": "Move panel",
106
+ "kumiko.widget.floatingPanel.resizeTop": "Resize panel from the top edge",
107
+ "kumiko.widget.floatingPanel.resizeRight": "Resize panel from the right edge",
108
+ "kumiko.widget.floatingPanel.resizeBottom": "Resize panel from the bottom edge",
109
+ "kumiko.widget.floatingPanel.resizeLeft": "Resize panel from the left edge",
110
+
105
111
  "kumiko.planCard.current": "Current plan",
106
112
  "kumiko.planCard.priceUnavailable": "Price not available",
107
113