@cosmicdrift/kumiko-renderer 0.48.1 → 0.51.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.
|
|
3
|
+
"version": "0.51.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,8 +15,8 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
19
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
18
|
+
"@cosmicdrift/kumiko-framework": "0.50.0",
|
|
19
|
+
"@cosmicdrift/kumiko-headless": "0.50.0",
|
|
20
20
|
"react": "^19.2.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
@@ -43,6 +43,7 @@ export function synthesizeConfigEditScreen(
|
|
|
43
43
|
type: "entityEdit",
|
|
44
44
|
entity: CONFIG_EDIT_PSEUDO_ENTITY,
|
|
45
45
|
layout: screen.layout,
|
|
46
|
+
...(screen.fieldLabels !== undefined && { fieldLabels: screen.fieldLabels }),
|
|
46
47
|
...(screen.access !== undefined && { access: screen.access }),
|
|
47
48
|
};
|
|
48
49
|
}
|
package/src/hooks/use-store.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { useRef, useSyncExternalStore } from "react";
|
|
|
17
17
|
// Arg `equals` dient genau dafür: gleiche Auswahl → cached
|
|
18
18
|
// Identität zurück, kein Re-Render.
|
|
19
19
|
|
|
20
|
+
// @wrapper-known semantic-alias
|
|
20
21
|
export function useStore<T>(store: Store<T>): T {
|
|
21
22
|
return useSyncExternalStore(store.subscribe, store.getSnapshot, store.getSnapshot);
|
|
22
23
|
}
|