@cosmicdrift/kumiko-types 0.213.0 → 0.215.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 +1 -1
- package/src/handlers.ts +5 -0
- package/src/screen.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.215.0",
|
|
4
4
|
"description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
package/src/handlers.ts
CHANGED
|
@@ -35,6 +35,11 @@ export type SessionUser = {
|
|
|
35
35
|
// to tenant.timezone, then "UTC" (buildHandlerContext, fw#1636). Stale
|
|
36
36
|
// until re-login — same tradeoff as `roles`.
|
|
37
37
|
readonly timezone?: string;
|
|
38
|
+
// BCP-47 tag from user.locale, set at login. Absent → ctx.locale falls
|
|
39
|
+
// back to the app's boot-configured defaultLocale, then "en"
|
|
40
|
+
// (dispatch-shared.ts, fw#2333). Stale until re-login — same tradeoff as
|
|
41
|
+
// `timezone`.
|
|
42
|
+
readonly locale?: string;
|
|
38
43
|
// App-specific identity facts baked into the JWT at login time.
|
|
39
44
|
// Populated by `r.authClaims()` hooks (not yet implemented — see the
|
|
40
45
|
// auth-claims design note in docs/plans). Reserved here so the type shape
|
package/src/screen.ts
CHANGED
|
@@ -60,6 +60,11 @@ export interface FieldFormatRegistry {
|
|
|
60
60
|
readonly locale?: string;
|
|
61
61
|
readonly unitDisplay?: "long" | "short" | "narrow";
|
|
62
62
|
};
|
|
63
|
+
// Resolves an enum value through the i18n convention
|
|
64
|
+
// `<feature>:entity:<entity>:field:<field>:option:<value>` — same
|
|
65
|
+
// fallback-to-raw-value rule as buildOptionLabels: an untranslated key
|
|
66
|
+
// renders the raw enum value instead of the literal i18n key.
|
|
67
|
+
enumOption: { readonly keyPrefix: string };
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
// Discriminated union derived from the registry — one variant per key.
|