@cosmicdrift/kumiko-types 0.356.0 → 0.357.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.
@@ -23,6 +23,7 @@ export type EventStoreExecutor = {
23
23
  }, user: SessionUser, db: TenantDb, options?: StreamTenantOption & {
24
24
  skipOptimisticLock?: boolean;
25
25
  skipUnchanged?: boolean;
26
+ includeDeleted?: boolean;
26
27
  preSave?: PreSaveRunner;
27
28
  expect?: Readonly<Record<string, string | number | boolean | null>>;
28
29
  }) => Promise<WriteResult<SaveContext>>;
package/dist/fields.d.ts CHANGED
@@ -85,6 +85,9 @@ export type TextFieldDef = {
85
85
  /** Lower bound enforced by the generated write schema, so short input is
86
86
  * rejected by validation instead of reaching the handler. */
87
87
  readonly minLength?: number;
88
+ /** HTML `autocomplete` token for the rendered input (e.g. "one-time-code"),
89
+ * so browsers and password managers offer or suppress autofill correctly. */
90
+ readonly autoComplete?: string;
88
91
  readonly required?: boolean;
89
92
  readonly searchable?: boolean;
90
93
  readonly sortable?: boolean;
@@ -273,6 +276,11 @@ export type MultiSelectFieldDef<TOptions extends readonly string[] = readonly st
273
276
  * `"checkboxes"` grid becomes scrollable. Omitted = the grid grows with its
274
277
  * content and never scrolls. Ignored unless `display: "checkboxes"`. */
275
278
  readonly maxRows?: number;
279
+ /** Query returning `{ rows: { value, disabled?, hint? }[] }`. The renderer hides
280
+ * options whose row has `disabled: true` unless the value is currently selected;
281
+ * `hint` is ignored. Static `options` stay authoritative and the write path must
282
+ * enforce the same rule, the renderer only mirrors it. Called with an empty payload. */
283
+ readonly optionsAvailabilityQuery?: string;
276
284
  } & ResolvedPiiFlags;
277
285
  /**
278
286
  * Storage: `integer` flag decides the Postgres column type, not just Zod
package/dist/screen.d.ts CHANGED
@@ -1488,6 +1488,10 @@ export type SecretReveal = {
1488
1488
  readonly warning?: string;
1489
1489
  /** i18n key for the acknowledge button. Default "kumiko.secretMint.confirm". */
1490
1490
  readonly confirmLabel?: string;
1491
+ /** i18n key for a checkbox on the reveal card ("I have saved my recovery
1492
+ * codes"). While unchecked, the confirm step's submit or the acknowledge
1493
+ * button stays disabled. The tick is UI-only and never part of a payload. */
1494
+ readonly acknowledge?: string;
1491
1495
  };
1492
1496
  /** Mint form → one-time reveal → explicit confirm. The secret (API token,
1493
1497
  * recovery codes) lives only in the write-handler's own success payload —
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.356.0",
3
+ "version": "0.357.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/changes.json CHANGED
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.357.0",
4
+ "type": "improvement",
5
+ "title": "MultiSelectFieldDef.optionsAvailabilityQuery hides static multiSelect options per caller",
6
+ "detail": "The query returns { rows: { value, disabled?, hint? }[] }; disabled options are hidden unless currently selected."
7
+ },
2
8
  {
3
9
  "version": "0.352.0",
4
10
  "type": "improvement",