@cosmicdrift/kumiko-renderer 0.336.0 → 0.336.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.
@@ -959,9 +959,10 @@ function DrawerHost({ schema, drawerAction, drawerScreen, drawerInitialValues, u
959
959
  closeAndReset();
960
960
  }, [hasUnsavedInput, closeAndReset]);
961
961
  // Drawer is an optional Core-Primitive (additive rollout) — same "skip +
962
- // warn once" precedent as rowActions without a mounted DispatcherProvider
963
- // above, instead of crashing when a web app hasn't upgraded its
964
- // createKumikoApp wiring yet.
962
+ // warn" precedent as rowActions without a mounted DispatcherProvider above,
963
+ // instead of crashing when a web app hasn't upgraded its createKumikoApp
964
+ // wiring yet. The warning repeats per mount and whenever the action changes.
965
+ // Dev-time setup error, so no dedupe.
965
966
  useEffect(() => {
966
967
  if (drawerAction !== null && Drawer === undefined) {
967
968
  // biome-ignore lint/suspicious/noConsole: dev-warning for a setup error
@@ -164,10 +164,9 @@ export function RelatedListSection({ section, parentId, record, featureName, tra
164
164
  }, [ownRefetch, onAfterWrite]);
165
165
  const onFilterChange = useCallback((field, values) => setFilters((prev) => ({ ...prev, [field]: values })), []);
166
166
  const onFilterReset = useCallback(() => setFilters({}), []);
167
- // Sorted client-side over the already-loaded rows — this section has no
168
- // pager (see `payload` above: a one-shot fetch, no cursor/offset), so the
169
- // loaded set already IS the full display set and there is no "other page"
170
- // a client-side sort could misleadingly hide (fw#2722).
167
+ // Sorted client-side over the already-loaded rows only. The section has no
168
+ // pager (one-shot fetch); when that fetch is truncated (`nextCursor` set) the
169
+ // truncation banner below tells the user the sorted set is partial.
171
170
  const [sort, setSort] = useState(section.defaultSort ?? null);
172
171
  const sortAccessors = useMemo(() => {
173
172
  const accessors = {};
@@ -100,8 +100,7 @@ export function WriteFormSection({ section, featureName, translate, hideTitle, o
100
100
  headerActions: titleRowActions,
101
101
  }, testId: `write-form-${section.title ?? section.handler}`, children: content }));
102
102
  }
103
- // Routed through Section's `actions` slot (same mechanism render-edit.tsx
104
- // uses via Form's `actions`) so the button gets the established right-
105
- // aligned footer treatment instead of stretching full-width inline.
103
+ // Submit plus caller actions share the title row's actions slot (submit is
104
+ // lifted into the footer instead when onFooterAction is set).
106
105
  return (_jsx(Section, { ...(section.title !== undefined && { title: section.title }), ...(section.description !== undefined && { subtitle: section.description }), ...(section.icon !== undefined && { icon: section.icon }), actions: titleRowActions, testId: `write-form-${section.title ?? section.handler}`, children: content }));
107
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer",
3
- "version": "0.336.0",
3
+ "version": "0.336.1",
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.336.0",
19
- "@cosmicdrift/kumiko-headless": "0.336.0",
20
- "@cosmicdrift/kumiko-types": "0.336.0",
18
+ "@cosmicdrift/kumiko-framework": "0.336.1",
19
+ "@cosmicdrift/kumiko-headless": "0.336.1",
20
+ "@cosmicdrift/kumiko-types": "0.336.1",
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.336.0"
31
+ "@cosmicdrift/kumiko-locale-de": "0.336.1"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",