@ai-matrx/records-ui 0.116.122 → 0.116.124

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{SaveToTable-VNAYIDXB.js → SaveToTable-BEKANHD3.js} +4 -3
  3. package/dist/{chunk-KJAVVXRW.js → chunk-5RU7BPCU.js} +8 -230
  4. package/dist/chunk-5RU7BPCU.js.map +1 -0
  5. package/dist/chunk-6DK2DKTD.js +235 -0
  6. package/dist/chunk-6DK2DKTD.js.map +1 -0
  7. package/dist/{chunk-6RFL5KYR.js → chunk-B7A3B6F4.js} +2 -2
  8. package/dist/{chunk-U2B3TLDZ.js → chunk-EB6IVWGJ.js} +193 -77
  9. package/dist/chunk-EB6IVWGJ.js.map +1 -0
  10. package/dist/data-source.d.cts +1 -1
  11. package/dist/data-source.d.ts +1 -1
  12. package/dist/decision-gate.d.cts +4 -4
  13. package/dist/decision-gate.d.ts +4 -4
  14. package/dist/entity-doors.d.cts +24 -28
  15. package/dist/entity-doors.d.ts +24 -28
  16. package/dist/entity-ref.d.cts +48 -52
  17. package/dist/entity-ref.d.ts +48 -52
  18. package/dist/first-page.d.cts +4 -4
  19. package/dist/first-page.d.ts +4 -4
  20. package/dist/helpers.cjs.map +1 -1
  21. package/dist/helpers.d.cts +104 -106
  22. package/dist/helpers.d.ts +104 -106
  23. package/dist/helpers.js.map +1 -1
  24. package/dist/html-frame.d.cts +2 -2
  25. package/dist/html-frame.d.ts +2 -2
  26. package/dist/index.cjs +531 -282
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +488 -480
  29. package/dist/index.d.ts +488 -480
  30. package/dist/index.js +351 -214
  31. package/dist/index.js.map +1 -1
  32. package/dist/list-dimensions.cjs +203 -7
  33. package/dist/list-dimensions.cjs.map +1 -1
  34. package/dist/list-dimensions.d.cts +8 -8
  35. package/dist/list-dimensions.d.ts +8 -8
  36. package/dist/list-dimensions.js +10 -7
  37. package/dist/list-dimensions.js.map +1 -1
  38. package/dist/objectActions-DeP_tTmc.d.cts +12 -12
  39. package/dist/objectActions-DeP_tTmc.d.ts +12 -12
  40. package/dist/pickers.cjs +179 -55
  41. package/dist/pickers.cjs.map +1 -1
  42. package/dist/pickers.d.cts +13 -13
  43. package/dist/pickers.d.ts +13 -13
  44. package/dist/pickers.js +3 -2
  45. package/dist/skeleton.d.cts +11 -11
  46. package/dist/skeleton.d.ts +11 -11
  47. package/dist/table-shape.d.cts +7 -7
  48. package/dist/table-shape.d.ts +7 -7
  49. package/package.json +2 -2
  50. package/dist/chunk-KJAVVXRW.js.map +0 -1
  51. package/dist/chunk-U2B3TLDZ.js.map +0 -1
  52. /package/dist/{SaveToTable-VNAYIDXB.js.map → SaveToTable-BEKANHD3.js.map} +0 -0
  53. /package/dist/{chunk-6RFL5KYR.js.map → chunk-B7A3B6F4.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -44,9 +44,9 @@ interface PresenceCell {
44
44
  interface TablePresencePerson {
45
45
  key: string;
46
46
  /** The published user id; the name and picture are resolved from it through the members roster, never taken from the sender. */
47
- userId?: string | null;
47
+ userId?: null | string;
48
48
  name: string;
49
- avatarUrl: string | null;
49
+ avatarUrl: null | string;
50
50
  color: string;
51
51
  cell: PresenceCell | null;
52
52
  }
@@ -71,7 +71,7 @@ declare function useTablePresence(tableId: string): {
71
71
  declare function presenceOutlineCss(people: readonly TablePresencePerson[]): string;
72
72
  declare function TablePresence({ tableId }: {
73
73
  tableId: string;
74
- }): react.JSX.Element | null;
74
+ }): null | react.JSX.Element;
75
75
 
76
76
  interface MapPin {
77
77
  /** The record's id. */
@@ -88,12 +88,12 @@ interface MapCluster {
88
88
  pins: MapPin[];
89
89
  }
90
90
  /** The columns the map's location picker offers: addresses first, then numbers (a latitude). */
91
- declare function mapFieldChoices<F extends Pick<Field, "type" | "config" | "format" | "key">>(fields: readonly F[]): F[];
91
+ declare function mapFieldChoices<F extends Pick<Field, "config" | "format" | "key" | "type">>(fields: readonly F[]): F[];
92
92
  /** The pair of number columns an address's looked-up place is saved to (by their conventional keys). */
93
- declare function coordinateColumns(fields: readonly Pick<Field, "key" | "type" | "config" | "format">[]): {
93
+ declare function coordinateColumns(fields: readonly Pick<Field, "config" | "format" | "key" | "type">[]): null | {
94
94
  lat: string;
95
95
  lng: string;
96
- } | null;
96
+ };
97
97
  interface PlacedRows {
98
98
  pins: MapPin[];
99
99
  /** Rows with an address and no saved place: these are what a lookup is spent on. */
@@ -110,14 +110,14 @@ interface PlacedRows {
110
110
  interface PlaceArgs {
111
111
  rows: readonly ReadRow[];
112
112
  /** The chosen location column: an address (text) or a latitude (number). */
113
- mapField: Pick<Field, "key" | "type" | "config" | "format">;
113
+ mapField: Pick<Field, "config" | "format" | "key" | "type">;
114
114
  /** The longitude column when `mapField` is a latitude. */
115
- lngKey: string | null;
115
+ lngKey: null | string;
116
116
  /** The pair a looked-up address is saved to, when the table has one. */
117
- saved: {
117
+ saved: null | {
118
118
  lat: string;
119
119
  lng: string;
120
- } | null;
120
+ };
121
121
  /** Places found this visit that the table could not keep, by record id. */
122
122
  found?: ReadonlyMap<string, {
123
123
  lat: number;
@@ -149,7 +149,7 @@ interface TableSettingsSnapshot {
149
149
  table_details_draft: {
150
150
  table_name: string;
151
151
  description: string;
152
- row_label: string | null;
152
+ row_label: null | string;
153
153
  };
154
154
  saved_row_actions?: Array<Record<string, unknown>>;
155
155
  editing_row_action?: Record<string, unknown>;
@@ -176,7 +176,7 @@ declare function actionForAgent(action: RowAction, fields: readonly Field[]): Re
176
176
  interface CalendarFeedMade {
177
177
  id: string;
178
178
  token: string;
179
- expires_at: string | null;
179
+ expires_at: null | string;
180
180
  }
181
181
  /** One line of the person's list. Never a token — `token_prefix` is its first characters. */
182
182
  interface CalendarFeedRow {
@@ -184,12 +184,12 @@ interface CalendarFeedRow {
184
184
  title: string;
185
185
  organization_id: string;
186
186
  table_id: string;
187
- view_id: string | null;
187
+ view_id: null | string;
188
188
  token_prefix: string;
189
189
  time_zone: string;
190
190
  created_at: string;
191
- expires_at: string | null;
192
- last_read_at: string | null;
191
+ expires_at: null | string;
192
+ last_read_at: null | string;
193
193
  read_count: number;
194
194
  expired: boolean;
195
195
  }
@@ -215,7 +215,7 @@ declare const SUBSCRIBE_ACTION_ID = "subscribe-calendar";
215
215
  /** "Subscribe in your calendar…" in the table's one action list. */
216
216
  declare function subscribeCalendarAction(args: {
217
217
  disabledReason?: string | undefined;
218
- run: () => void | Promise<void>;
218
+ run: () => Promise<void> | void;
219
219
  }): ObjectAction;
220
220
 
221
221
  /** One named piece of grounding, shaped the way the platform's context slice takes them. */
@@ -224,7 +224,7 @@ interface RecordChatEntry {
224
224
  value: unknown;
225
225
  label: string;
226
226
  /** `text` for a scalar, `json` for a structure. The host maps this to its own vocabulary. */
227
- type: "text" | "json";
227
+ type: "json" | "text";
228
228
  /**
229
229
  * DYN: a merge field resolves to a TRIPLE, not a string. The prompt gets the
230
230
  * rendered value; the RUN gets this, and it is the only thing a "where did
@@ -235,7 +235,7 @@ interface RecordChatEntry {
235
235
  record_id: Uuid$1;
236
236
  field_id: Uuid$1;
237
237
  value_version: number;
238
- written_at: string | null;
238
+ written_at: null | string;
239
239
  };
240
240
  }
241
241
  /** A Field the agent was NOT given, named rather than silently dropped. */
@@ -329,9 +329,9 @@ interface FillEstimateAsk {
329
329
  }
330
330
  interface FillEstimate {
331
331
  /** `measured`: the column's own cost per row so far. `estimated`: the model's price over what each row sends. `none`: no figure. */
332
- basis: "measured" | "estimated" | "none";
332
+ basis: "estimated" | "measured" | "none";
333
333
  /** The whole fill, in cents; shown only as points at the host's rate. */
334
- costCents: number | null;
334
+ costCents: null | number;
335
335
  /** True when the column also reads the web or pictures, which cost more than this. */
336
336
  extraReads?: boolean;
337
337
  /** Why there is no figure, in the server's words, when `basis` is `none`. */
@@ -344,11 +344,11 @@ interface FillEstimate {
344
344
  */
345
345
  declare function fillEstimateWords(args: {
346
346
  count: number;
347
- perRowCents: number | null;
348
- previewPerRowCents: number | null;
349
- estimate: FillEstimate | null | "asking";
350
- rate: number | null | undefined;
351
- }): string | null;
347
+ perRowCents: null | number;
348
+ previewPerRowCents: null | number;
349
+ estimate: "asking" | FillEstimate | null;
350
+ rate: null | number | undefined;
351
+ }): null | string;
352
352
  /** Why Fill is greyed out while the column is switched off (the server refuses to write for a column that is off). */
353
353
  declare const FILL_OFF_REASON = "Switch it on to fill";
354
354
  /**
@@ -359,11 +359,11 @@ declare const FILL_OFF_REASON = "Switch it on to fill";
359
359
  */
360
360
  declare const NO_ENRICH_REASON: string;
361
361
  /** Which of the four things this cell is. One place, so nothing can disagree. */
362
- declare function cellState(cell: EnrichCell | undefined): "none" | "agent" | "yours" | "unsure";
362
+ declare function cellState(cell: EnrichCell | undefined): "agent" | "none" | "unsure" | "yours";
363
363
  interface EnrichBadgeProps {
364
364
  cell: EnrichCell | undefined;
365
365
  /** Bound when this person may change the record; absent, no pin control is drawn. */
366
- onPin?: ((pinned: boolean) => void | Promise<void>) | undefined;
366
+ onPin?: ((pinned: boolean) => Promise<void> | void) | undefined;
367
367
  className?: string | undefined;
368
368
  }
369
369
  /**
@@ -373,7 +373,7 @@ interface EnrichBadgeProps {
373
373
  * color, because "this is six weeks old" is a sentence and not a hue — a person reading a
374
374
  * red cell has to be told what red means, and then told again next week.
375
375
  */
376
- declare function EnrichBadge({ cell, onPin, className }: EnrichBadgeProps): react.JSX.Element | null;
376
+ declare function EnrichBadge({ cell, onPin, className }: EnrichBadgeProps): null | react.JSX.Element;
377
377
  /**
378
378
  * Every badge on a page of a grid, in ONE round trip.
379
379
  *
@@ -413,9 +413,9 @@ interface GridContextSnapshot {
413
413
  tableId: Uuid;
414
414
  tableName: string;
415
415
  /** The table's own description (`metadata.description`), when it has one. */
416
- tableDescription: string | null;
416
+ tableDescription: null | string;
417
417
  /** The Field key that names each record (`title_field`), or null. */
418
- titleField: string | null;
418
+ titleField: null | string;
419
419
  /** The columns in the order the grid draws them (hidden columns left out). */
420
420
  fields: Field[];
421
421
  /** The table's row actions as the store lists them (update and agent). */
@@ -423,26 +423,26 @@ interface GridContextSnapshot {
423
423
  /** May this person change records here at all. */
424
424
  canWrite: boolean;
425
425
  /** The cell the cursor is on: its record, its Field key and the value drawn in it. */
426
- currentCell: {
426
+ currentCell: null | {
427
427
  rowId: Uuid;
428
428
  key: string;
429
429
  value: unknown;
430
- } | null;
430
+ };
431
431
  /** The record the cursor is on (or whose editor is open). */
432
432
  currentRow: GridContextRecord | null;
433
433
  /** A block of more than one cell: Excel/Sheets TSV with a header line of Field keys. */
434
- selectedRange: {
434
+ selectedRange: null | {
435
435
  tsv: string;
436
436
  cellCount: number;
437
437
  rowIds: Uuid[];
438
438
  keys: string[];
439
- } | null;
439
+ };
440
440
  /** The rows ticked with the row boxes. */
441
441
  selectedRows: GridContextRecord[];
442
442
  /** The page of records on screen, in screen order. */
443
443
  visibleRows: GridContextRecord[];
444
444
  /** How many records match the search and filters, when the store said. */
445
- total: number | null;
445
+ total: null | number;
446
446
  search: string;
447
447
  }
448
448
  /** Where the cursor is, as the data table tells it (`spreadsheet.onSelectionChange`). */
@@ -467,13 +467,13 @@ declare function gridContextSnapshot(args: {
467
467
  canWrite: boolean;
468
468
  cursor: GridCursor | null;
469
469
  /** The cell whose editor is open, which wins over the cursor. */
470
- editing: {
470
+ editing: null | {
471
471
  rowId: Uuid;
472
472
  key: string;
473
473
  draft: unknown;
474
- } | null;
474
+ };
475
475
  selectedIds: readonly string[];
476
- total: number | null;
476
+ total: null | number;
477
477
  search: string;
478
478
  }): GridContextSnapshot;
479
479
  /** A snapshot's identity: two snapshots with the same key say the same thing. */
@@ -530,7 +530,7 @@ interface MapCanvasProps {
530
530
  * grid and the whole-text dialog's preview — the host may return block content there (the grid
531
531
  * clips it to the row); the form slots take phrasing content only.
532
532
  */
533
- type RenderTextSlot = "form-intro" | "form-help" | "form-thank-you" | "cell";
533
+ type RenderTextSlot = "cell" | "form-help" | "form-intro" | "form-thank-you";
534
534
 
535
535
  /** One reference a chip names (`renderReference`). `record` is a relation's value, read side only. */
536
536
  /** What a record page hands the host's rich editor (`editRichText`). */
@@ -554,7 +554,7 @@ interface TextBoxProps {
554
554
  label: string;
555
555
  rows: number;
556
556
  /** Where the box sits: an open grid cell, the whole-text editor, or a record form. */
557
- where: "cell" | "whole-text" | "form";
557
+ where: "cell" | "form" | "whole-text";
558
558
  id?: string | undefined;
559
559
  autoFocus?: boolean | undefined;
560
560
  readOnly?: boolean | undefined;
@@ -564,7 +564,7 @@ interface TextBoxProps {
564
564
  interface ReferenceChipRef {
565
565
  token: string;
566
566
  id: Uuid;
567
- label: string | null;
567
+ label: null | string;
568
568
  /** For `token: "record"`, the Table the relation points into. */
569
569
  tableId?: Uuid | undefined;
570
570
  /**
@@ -573,7 +573,7 @@ interface ReferenceChipRef {
573
573
  */
574
574
  archived?: boolean | undefined;
575
575
  /** The record's (or its table's) icon — an emoji or short glyph — when the host knows one. */
576
- icon?: string | null | undefined;
576
+ icon?: null | string | undefined;
577
577
  }
578
578
  /** One line typed into the table's Ask box, with the view the person was looking at ("" = none). */
579
579
  interface TableAskRequest {
@@ -597,32 +597,30 @@ interface TableAskAgentAnswer {
597
597
  could_not: string[];
598
598
  }
599
599
  type TableAskOutcome = {
600
+ ok: false;
601
+ message: string;
602
+ hint?: string | undefined;
603
+ code?: RecordsErrorCode | undefined;
604
+ } | {
600
605
  ok: true;
601
606
  answer: TableAskAgentAnswer;
602
- }
603
- /** A refusal says the real reason (`message`) and, when the host knows one, what to do (`hint`); no hint, none is invented. */
607
+ } /** A refusal says the real reason (`message`) and, when the host knows one, what to do (`hint`); no hint, none is invented. */
604
608
  /**
605
609
  * `code` is the refusal's kind when the host knows it (`"door"` for an access refusal); without one a failed run
606
610
  * reads as ours ("internal"), never as the person lacking access (live 2026-10-22, CD-AGENT-08).
607
- */
608
- | {
609
- ok: false;
610
- message: string;
611
- hint?: string | undefined;
612
- code?: RecordsErrorCode | undefined;
613
- };
611
+ */;
614
612
  /** What `RecordsUiHost.writeSyncedCell` answers. */
615
613
  type SyncedCellOutcome = {
616
- ok: true;
617
- status: "written";
618
- version?: number | null;
614
+ ok: false;
615
+ message: string;
619
616
  } | {
620
617
  ok: true;
621
618
  status: "conflict";
622
- sheetValue: string | null;
619
+ sheetValue: null | string;
623
620
  } | {
624
- ok: false;
625
- message: string;
621
+ ok: true;
622
+ status: "written";
623
+ version?: null | number;
626
624
  };
627
625
  /** The host's cost door: a quiet "Cost" link that reveals a price on click. Rows carry ready text (this package formats its own points). */
628
626
  interface RecordsCostDoorProps {
@@ -682,10 +680,10 @@ interface RecordsUiHost {
682
680
  * when the lookup could not be made (so the layout says "could not check", not "no such place").
683
681
  * Unbound, a Map built on an address column says so and offers no lookup.
684
682
  */
685
- geocodeAddress?: ((address: string) => Promise<{
683
+ geocodeAddress?: ((address: string) => Promise<null | {
686
684
  lat: number;
687
685
  lng: number;
688
- } | null>) | undefined;
686
+ }>) | undefined;
689
687
  /**
690
688
  * OPTIONAL. THE SWIPE LAYOUT'S LOGIC GRAPH (2026-10-22). Which cards are asked after which answers is
691
689
  * drawn on the platform's ONE diagram canvas, which lives above this package (rich-content's
@@ -899,11 +897,11 @@ interface RecordsUiHost {
899
897
  * names this port. Absent or honest, never dead.
900
898
  */
901
899
  upload?: (file: File) => Promise<{
902
- ok: true;
903
- fileId: Uuid;
904
- } | {
905
900
  ok: false;
906
901
  reason: string;
902
+ } | {
903
+ ok: true;
904
+ fileId: Uuid;
907
905
  }>;
908
906
  /**
909
907
  * OPTIONAL. THE HOST'S OWN FILE WINDOW (one-grid merge, inventory: the older grid's
@@ -963,8 +961,8 @@ interface RecordsUiHost {
963
961
  */
964
962
  openPerson?: (target: {
965
963
  recordId: string;
966
- userId?: string | null;
967
- email?: string | null;
964
+ userId?: null | string;
965
+ email?: null | string;
968
966
  name?: string;
969
967
  }) => void;
970
968
  /**
@@ -1086,7 +1084,7 @@ interface RecordsUiHost {
1086
1084
  * OPTIONAL. POINTS PER DOLLAR — the platform's rate. Every cost these screens show is
1087
1085
  * points at this rate (`costInPoints`); unbound, no cost is shown, never the vendor's money.
1088
1086
  */
1089
- pointsRate?: number | null;
1087
+ pointsRate?: null | number;
1090
1088
  /**
1091
1089
  * OPTIONAL. WHERE AN OFFLINE CAPTURE WAITS (SCR-30).
1092
1090
  *
@@ -1130,13 +1128,13 @@ interface RecordsUiHost {
1130
1128
  * page itself) and answers null when there is nothing to show. Unbound, a URL cell is the plain link chip.
1131
1129
  */
1132
1130
  linkPreview?: {
1133
- read: (url: string) => Promise<{
1134
- title: string | null;
1135
- description: string | null;
1136
- siteName: string | null;
1137
- faviconUrl: string | null;
1138
- imageUrl: string | null;
1139
- } | null>;
1131
+ read: (url: string) => Promise<null | {
1132
+ title: null | string;
1133
+ description: null | string;
1134
+ siteName: null | string;
1135
+ faviconUrl: null | string;
1136
+ imageUrl: null | string;
1137
+ }>;
1140
1138
  };
1141
1139
  /**
1142
1140
  * OPTIONAL. WHO CAN SEE AND EDIT ONE COLUMN (access-setup PLAN §12, Store Tables). The column header's
@@ -1160,10 +1158,10 @@ interface RecordsUiHost {
1160
1158
  * unbound, the notice still says the organization is archived and who can restore it, and offers no button.
1161
1159
  */
1162
1160
  archivedOrganization?: {
1163
- state: (organizationId: Uuid) => Promise<{
1161
+ state: (organizationId: Uuid) => Promise<null | {
1164
1162
  mayRestore: boolean;
1165
- name?: string | null;
1166
- } | null>;
1163
+ name?: null | string;
1164
+ }>;
1167
1165
  restore: (organizationId: Uuid) => Promise<void>;
1168
1166
  /** Runs after a restore so the screen reloads; unbound, the page reloads. */
1169
1167
  afterRestore?: () => void;
@@ -1202,13 +1200,13 @@ interface RecordsUiHost {
1202
1200
  * Dashboards area lists no pages and offers no "New page" — absent, never dead.
1203
1201
  */
1204
1202
  pageHref?: (target: {
1205
- pageId: Uuid;
1206
- } | {
1207
- newOnTable: Uuid;
1208
- } | {
1209
1203
  interfaceId: Uuid;
1210
1204
  } | {
1211
1205
  newInterfaceOnTable: Uuid;
1206
+ } | {
1207
+ newOnTable: Uuid;
1208
+ } | {
1209
+ pageId: Uuid;
1212
1210
  }) => string;
1213
1211
  /**
1214
1212
  * OPTIONAL. ASK THE AGENT TO CHANGE THIS DASHBOARD (SCR-16).
@@ -1252,7 +1250,7 @@ interface FormulaHelpAsk {
1252
1250
  /** The table's other columns, the ones the formula may read as {Name}. */
1253
1251
  columns: readonly Field[];
1254
1252
  /** The store's reading of what is wrong with the text, when it does not parse. */
1255
- mistake: string | null;
1253
+ mistake: null | string;
1256
1254
  /** The functions the store works out, as a person types them. */
1257
1255
  functions: readonly string[];
1258
1256
  /** Put a formula into the box (unsaved). */
@@ -1269,7 +1267,7 @@ interface AgentBuildAsk {
1269
1267
  * `column`: a layout needs a column the table lacks (`ViewNeeds`, lane DATA-V2-VIEWS-1) — the
1270
1268
  * agent adds it through the store's field door, held for approval like every agent schema change.
1271
1269
  */
1272
- kind: "form" | "booking" | "portal" | "digest" | "column";
1270
+ kind: "booking" | "column" | "digest" | "form" | "portal";
1273
1271
  tableId: Uuid;
1274
1272
  /** The sentence this package would say. A host opens its composer with it. */
1275
1273
  suggestion: string;
@@ -1292,7 +1290,7 @@ interface ReaskContext {
1292
1290
  tableId: Uuid;
1293
1291
  /** Null while the canvas has no dashboard yet — the answer is the first one. */
1294
1292
  dashboardId: Uuid | null;
1295
- dashboardName: string | null;
1293
+ dashboardName: null | string;
1296
1294
  }
1297
1295
  /**
1298
1296
  * What a host's share dialog is being opened ON. A Table is a record in this
@@ -1335,9 +1333,9 @@ interface OrganizationMember {
1335
1333
  /** The platform's user id. This is what a Person record carries as `user_id`. */
1336
1334
  userId: string;
1337
1335
  /** Their display name, when the platform has one. */
1338
- name?: string | null;
1339
- email?: string | null;
1340
- avatarUrl?: string | null;
1336
+ name?: null | string;
1337
+ email?: null | string;
1338
+ avatarUrl?: null | string;
1341
1339
  }
1342
1340
  /** The durable half of offline capture: read the queue, write it, that is all. */
1343
1341
  interface CaptureQueuePort {
@@ -1358,7 +1356,7 @@ interface PendingCapture {
1358
1356
  device: string;
1359
1357
  /** How many times sending has been tried, and what the store last said. */
1360
1358
  attempts: number;
1361
- lastRefusal?: string | null;
1359
+ lastRefusal?: null | string;
1362
1360
  }
1363
1361
  /**
1364
1362
  * The sentence the notify editor shows when no saved-view port is bound.
@@ -1457,11 +1455,11 @@ declare function TableDetails({ tableId, table, fields, onSaved, }: {
1457
1455
  * retirement): the table read fresh, the same patch and the same version-checked door the panel's
1458
1456
  * own Save uses, and the same shape nudge, so every open screen re-reads it.
1459
1457
  */
1460
- declare function saveTableDescription(client: Pick<RecordsClient, "tableRead" | "revisions" | "recordHeaders" | "recordUpdate" | "recordUpdateAddingChoices">, tableId: Uuid$1, text: string): Promise<{
1461
- ok: true;
1462
- } | {
1458
+ declare function saveTableDescription(client: Pick<RecordsClient, "recordHeaders" | "recordUpdate" | "recordUpdateAddingChoices" | "revisions" | "tableRead">, tableId: Uuid$1, text: string): Promise<{
1463
1459
  ok: false;
1464
1460
  says: string;
1461
+ } | {
1462
+ ok: true;
1465
1463
  }>;
1466
1464
 
1467
1465
  /**
@@ -1555,7 +1553,7 @@ declare function tableName(table: Table): string;
1555
1553
  * NOT shown as a truncated uuid: it says it has no name yet, because "8f2c1b0a"
1556
1554
  * tells a person nothing and looks like a bug.
1557
1555
  */
1558
- declare function recordName(document: RecordDocument | undefined, titleKey?: string | null, fallback?: string): string;
1556
+ declare function recordName(document: RecordDocument | undefined, titleKey?: null | string, fallback?: string): string;
1559
1557
  /**
1560
1558
  * Is this string the store's id for something, rather than words a person wrote?
1561
1559
  *
@@ -1564,7 +1562,7 @@ declare function recordName(document: RecordDocument | undefined, titleKey?: str
1564
1562
  */
1565
1563
  declare function looksLikeId(value: unknown): boolean;
1566
1564
  /** The same question for a row the read door returned. */
1567
- declare function rowName(row: ReadRow | undefined, titleKey?: string | null, fallback?: string): string;
1565
+ declare function rowName(row: ReadRow | undefined, titleKey?: null | string, fallback?: string): string;
1568
1566
  /** A Table as far as naming is concerned — its own declared title column (REC-2). */
1569
1567
  type TitledTable = Pick<Table, "title_field"> | null | undefined;
1570
1568
  /**
@@ -1607,10 +1605,10 @@ declare const UNREAD_RECORD_LABEL = "Couldn't load this name";
1607
1605
  * table's own singular ("Visit"), else its name, else the fallback; a Title-case word is written
1608
1606
  * the way a sentence writes it ("visit"), an acronym is kept ("MRI scan").
1609
1607
  */
1610
- declare function singularNoun(table: {
1611
- name?: string | null;
1612
- label_singular?: string | null;
1613
- } | null | undefined, fallback?: string): string;
1608
+ declare function singularNoun(table: null | undefined | {
1609
+ name?: null | string;
1610
+ label_singular?: null | string;
1611
+ }, fallback?: string): string;
1614
1612
  /**
1615
1613
  * THE FIELD A CARD IS TITLED BY — kanban, calendar, gallery and pipeline alike.
1616
1614
  *
@@ -1619,12 +1617,12 @@ declare function singularNoun(table: {
1619
1617
  * checkbox, never the group column, never a system stamp). `undefined` when nothing can, and
1620
1618
  * the card falls back to `rowName`, which says "Untitled" rather than "false".
1621
1619
  */
1622
- declare function cardTitleField(fields: readonly Field[], titleKey: string | null | undefined, exclude?: readonly (string | null | undefined)[]): Field | undefined;
1620
+ declare function cardTitleField(fields: readonly Field[], titleKey: null | string | undefined, exclude?: readonly (null | string | undefined)[]): Field | undefined;
1623
1621
 
1624
1622
  /** What a person has chosen: the table, and optionally which of its columns to show. */
1625
1623
  interface ReferenceChoice {
1626
1624
  /** The Table whose records this column offers. `""` until one is picked. */
1627
- targetTableId: Uuid | "";
1625
+ targetTableId: "" | Uuid;
1628
1626
  /** Which of that Table's columns to show. `null` = the Table's own reference column. */
1629
1627
  display: RelationDisplay | null;
1630
1628
  }
@@ -1646,7 +1644,7 @@ interface ReferenceBuilderProps {
1646
1644
  * Same order, same blank-dropping, same refusal to print an id — a preview that
1647
1645
  * disagreed with the store about what a chip says would be worse than none.
1648
1646
  */
1649
- declare function previewWords(document: Record<string, unknown> | undefined, display: RelationDisplay | null, titleField: string | null): string;
1647
+ declare function previewWords(document: Record<string, unknown> | undefined, display: RelationDisplay | null, titleField: null | string): string;
1650
1648
  declare function ReferenceBuilder({ tableId, value, onChange, lockTarget, className, }: ReferenceBuilderProps): react.JSX.Element;
1651
1649
 
1652
1650
  interface PersonPickerProps {
@@ -1668,7 +1666,7 @@ interface PersonPickerProps {
1668
1666
  /** A Person record in the kernel Table, as this picker needs to read it. */
1669
1667
  interface PersonRecord {
1670
1668
  id: Uuid;
1671
- userId: string | null;
1669
+ userId: null | string;
1672
1670
  name: string;
1673
1671
  }
1674
1672
  /** The member's own name, as a person reads it. Never a uuid. */
@@ -1679,11 +1677,11 @@ declare function memberName(member: OrganizationMember): string;
1679
1677
  * and two implementations of "which record is this person" is two answers.
1680
1678
  */
1681
1679
  declare function personRecordForMember(client: RecordsClient, personTableId: Uuid, people: PersonRecord[], member: OrganizationMember): Promise<{
1682
- ok: true;
1683
- data: Uuid;
1684
- } | {
1685
1680
  ok: false;
1686
1681
  error: RecordsError;
1682
+ } | {
1683
+ ok: true;
1684
+ data: Uuid;
1687
1685
  }>;
1688
1686
  declare function PersonPicker({ field, value, onChange, disabled, id, className, autoOpen, onClose, onCancel, initialSearch }: PersonPickerProps): react.JSX.Element;
1689
1687
 
@@ -1693,7 +1691,7 @@ interface CellAddress {
1693
1691
  key: string;
1694
1692
  }
1695
1693
  /** What one cell is doing right now, so nothing about it is guessed by a caller. */
1696
- type CellState = "clean" | "saving" | "refused";
1694
+ type CellState = "clean" | "refused" | "saving";
1697
1695
  interface CellRefusal {
1698
1696
  error: RecordsError;
1699
1697
  /** Present when the store said `PT409`: the other person's value, from the store. */
@@ -1702,7 +1700,7 @@ interface CellRefusal {
1702
1700
  attempted: unknown;
1703
1701
  /** A synced cell whose sheet changed since the last sync: the sheet's value. Retry keeps the person's. */
1704
1702
  sheet?: {
1705
- value: string | null;
1703
+ value: null | string;
1706
1704
  };
1707
1705
  /**
1708
1706
  * THE WRITE NEVER REACHED THE STORE (offline, `unreachable`): nothing was refused. The typed value
@@ -1716,10 +1714,10 @@ interface CellRefusal {
1716
1714
  * A TYPE CHANGE THE NEW TYPE CANNOT TAKE ALONE (CD-CORE-15): the store refused a Circle becoming a Rectangle
1717
1715
  * because a Rectangle needs a Width. The notice offers "Fill in…", the record's form with the new type.
1718
1716
  */
1719
- needs?: {
1717
+ needs?: undefined | {
1720
1718
  recordType: string;
1721
1719
  typeKey: string;
1722
- } | undefined;
1720
+ };
1723
1721
  }
1724
1722
  declare function fieldIsEditable(field: Field): boolean;
1725
1723
  interface GridEditing {
@@ -1744,13 +1742,13 @@ interface GridEditing {
1744
1742
  * IME composition, an Option/AltGr character): a column a person types into opens holding
1745
1743
  * exactly that, replacing the value, as every spreadsheet does; a picker column opens as usual.
1746
1744
  */
1747
- begin: (address: CellAddress, seed?: string | null) => void;
1745
+ begin: (address: CellAddress, seed?: null | string) => void;
1748
1746
  /**
1749
1747
  * What was typed to open a PICKER cell (a choice, a multi-choice, a person): the list opens with
1750
1748
  * it in its search box (merged-grid review 2, A2 — Airtable). `null` when the cell was opened by
1751
1749
  * Enter, a click or a double-click.
1752
1750
  */
1753
- searchSeed: string | null;
1751
+ searchSeed: null | string;
1754
1752
  /** `via`: a key (Escape) or a pointer (the picker's own close) — how the grid gets its keys back. */
1755
1753
  cancel: (via?: EditVia) => void;
1756
1754
  /**
@@ -1867,10 +1865,10 @@ interface Options {
1867
1865
  * as in Sheets and Airtable. A blur (a click elsewhere) says nothing: the click has the focus.
1868
1866
  * Unbound (the classic grid), Tab chains editors as before.
1869
1867
  */
1870
- onEnded?: ((exit: "down" | "right" | "left" | "stay", from: CellAddress, how: "keyboard" | "pointer") => void) | undefined;
1868
+ onEnded?: ((exit: "down" | "left" | "right" | "stay", from: CellAddress, how: "keyboard" | "pointer") => void) | undefined;
1871
1869
  }
1872
1870
  /** How an open cell was closed: a key (Enter, Tab, Escape), the picker's own close, or a blur. */
1873
- type EditVia = "key" | "pick" | "blur";
1871
+ type EditVia = "blur" | "key" | "pick";
1874
1872
  declare function useGridEditing({ tableId, fields, rows, reload, reloadAfterWrite, canWrite, mayWriteRow, onWritten, onEnded, versions: shared }: Options): GridEditing;
1875
1873
  /**
1876
1874
  * ONE CELL. Read, until somebody asks to change it; then the Field's own
@@ -1923,7 +1921,7 @@ declare function GridCell({ field, row, editing, canWrite, whyNot, format, onAsk
1923
1921
  */
1924
1922
  declare function hintIsMachineIdentity(hint: string): boolean;
1925
1923
  /** The hint a PERSON should read, or null when it is written for an engineer. */
1926
- declare function hintForAPerson(hint: string | null | undefined): string | null;
1924
+ declare function hintForAPerson(hint: null | string | undefined): null | string;
1927
1925
  declare function RefusalNotice({ error, className, actions, onKeepEditing, onDiscard, onRetry, }: {
1928
1926
  error: RecordsError;
1929
1927
  className?: string | undefined;
@@ -2016,7 +2014,7 @@ type GridGrouping = {
2016
2014
  /** One crumb of a saved drill trail. `value: null` is "no value". */
2017
2015
  type GridDrillStep = {
2018
2016
  dim: string;
2019
- value: string | null;
2017
+ value: null | string;
2020
2018
  };
2021
2019
  /** One sub-group level: a Field key and its section order. */
2022
2020
  type GridSubGroup = {
@@ -2071,7 +2069,7 @@ type GridPresentation = {
2071
2069
  * The gallery's card size, remembered the same way the grid remembers its
2072
2070
  * row height — a per-view look, not a global default.
2073
2071
  */
2074
- gallerySize?: "small" | "medium" | "large";
2072
+ gallerySize?: "large" | "medium" | "small";
2075
2073
  /**
2076
2074
  * THE BOARD'S OWN LOOK (lane BOARD-SWIMLANES, Notion's board options). All kept on the view, all
2077
2075
  * read only by the kanban layout. Absent means the board's default: columns wear their choice's
@@ -2084,7 +2082,7 @@ type GridPresentation = {
2084
2082
  * boardCounts false = no count beside the heading
2085
2083
  * boardLanesShut the swimlanes kept shut to a strip, by the lane's name
2086
2084
  */
2087
- boardSize?: "small" | "medium" | "large";
2085
+ boardSize?: "large" | "medium" | "small";
2088
2086
  boardPreview?: string;
2089
2087
  boardHideEmpty?: boolean;
2090
2088
  boardColorColumns?: boolean;
@@ -2131,7 +2129,7 @@ type GridPresentation = {
2131
2129
  footer?: FooterPlacement;
2132
2130
  };
2133
2131
  /** Where a grid's footer sits. */
2134
- type FooterPlacement = "sticky" | "inline";
2132
+ type FooterPlacement = "inline" | "sticky";
2135
2133
  /** What a view that says nothing gets — the older grid's pinned footer. */
2136
2134
  declare const DEFAULT_FOOTER: FooterPlacement;
2137
2135
  /** Where THIS view's footer sits, said or defaulted. */
@@ -2162,7 +2160,7 @@ declare function presentationIsEmpty(p: GridPresentation): boolean;
2162
2160
  /** The string a view record stores. Empty string for "this view styles nothing". */
2163
2161
  declare function presentationDocument(p: GridPresentation): string;
2164
2162
  declare function formatForField(field: Field): FieldFormatConfig | undefined;
2165
- declare function currencyCodeFor(unit: string | null | undefined): string;
2163
+ declare function currencyCodeFor(unit: null | string | undefined): string;
2166
2164
  /**
2167
2165
  * The color a value paints with when a view colors BY a column.
2168
2166
  *
@@ -2272,10 +2270,10 @@ interface SortStateControlProps {
2272
2270
  }
2273
2271
  declare function SortStateControl({ label, line, attention, actions, mode }: SortStateControlProps): react.JSX.Element;
2274
2272
  /** The sentence the popover says for a hand-ordered view, with or without a column sort over it. */
2275
- declare function handOrderLine(sortName: string | null, direction: "asc" | "desc" | null): string;
2273
+ declare function handOrderLine(sortName: null | string, direction: "asc" | "desc" | null): string;
2276
2274
  /** The control's props for a hand-ordered view — the grid's words, once. */
2277
2275
  declare function handOrderSortState(args: {
2278
- sortName: string | null;
2276
+ sortName: null | string;
2279
2277
  direction: "asc" | "desc" | null;
2280
2278
  onBack: () => void;
2281
2279
  onUseSort?: (() => void) | undefined;
@@ -2293,7 +2291,7 @@ declare function columnForField(field: Field$1, editing?: GridEditing | null, ma
2293
2291
  format?: FieldFormatConfig;
2294
2292
  frozen?: boolean;
2295
2293
  rowLabel?: boolean;
2296
- syncedFrom?: string | null;
2294
+ syncedFrom?: null | string;
2297
2295
  },
2298
2296
  /** "Who changed this?" from the cell's own menu. Absent, no control is drawn. */
2299
2297
  onAskWhoChanged?: ((fieldKey: string, recordId: Uuid$1) => void) | undefined,
@@ -2305,7 +2303,7 @@ onAskWhoChanged?: ((fieldKey: string, recordId: Uuid$1) => void) | undefined,
2305
2303
  */
2306
2304
  enrich?: {
2307
2305
  cellFor: (recordId: Uuid$1) => _ai_matrx_records.EnrichCell | undefined;
2308
- onPin?: ((recordId: Uuid$1, fieldKey: string, pinned: boolean) => void | Promise<void>) | undefined;
2306
+ onPin?: ((recordId: Uuid$1, fieldKey: string, pinned: boolean) => Promise<void> | void) | undefined;
2309
2307
  }): MatrxColumnDef<ReadRow$1>;
2310
2308
 
2311
2309
  /**
@@ -2421,17 +2419,17 @@ interface GridProps {
2421
2419
  * for whoever is looking, never written to the view. A host with its own sort control (one a
2422
2420
  * viewer may not save) hands the choice here; `null` brings the view's saved sort back.
2423
2421
  */
2424
- sortOverride?: {
2422
+ sortOverride?: null | undefined | {
2425
2423
  field: string;
2426
2424
  direction: "asc" | "desc";
2427
- } | null | undefined;
2425
+ };
2428
2426
  /**
2429
2427
  * THE VIEWER'S OWN SEARCH, handed by the host (CHAIR-EMBEDDED-FIDELITY 15), the way `sortOverride`
2430
2428
  * hands a sort: it filters rows for this viewer only, is never written to the view, and is asked of
2431
2429
  * the store's own search (`custom.read_records_page`'s `search`), never a filter over loaded rows.
2432
2430
  * `null` / `""` clears it. Left out, an embedded grid's own magnifier owns the term.
2433
2431
  */
2434
- searchOverride?: string | null | undefined;
2432
+ searchOverride?: null | string | undefined;
2435
2433
  /** Every change of the term, from the embedded magnifier or the override (a controlled host's echo). */
2436
2434
  onSearchChange?: ((search: string) => void) | undefined;
2437
2435
  /**
@@ -2486,14 +2484,14 @@ declare function Grid(props: GridProps): react.JSX.Element;
2486
2484
  /** The one sentence a locked table says. Named here because the gate asserts on it. */
2487
2485
  declare const STRUCTURE_LOCKED = "Confidential. Rows and columns are visible to people it\u2019s shared with.";
2488
2486
  /** Levels at which the store may hide the columns. Any other level never asks. */
2489
- declare const mayHideStructure: (level: string | null | undefined) => boolean;
2487
+ declare const mayHideStructure: (level: null | string | undefined) => boolean;
2490
2488
  interface StructureHidden {
2491
2489
  /** The answer is known (always true for a table whose level cannot hide its columns). */
2492
2490
  settled: boolean;
2493
2491
  /** The columns are hidden from this person on purpose. */
2494
2492
  hidden: boolean;
2495
2493
  }
2496
- declare function useStructureHidden(tableId: Uuid$1 | null, level: string | null | undefined): StructureHidden;
2494
+ declare function useStructureHidden(tableId: Uuid$1 | null, level: null | string | undefined): StructureHidden;
2497
2495
  /** The locked state: a clean sentence in the frame the columns would have taken (nothing moves when it lands). */
2498
2496
  declare function StructureLocked({ className }: {
2499
2497
  className?: string;
@@ -2518,14 +2516,14 @@ declare function entityNameColumn(columns: readonly Column[]): Column | null;
2518
2516
  declare function entityChoiceColumns(columns: readonly Column[]): Column[];
2519
2517
  interface EntityTable {
2520
2518
  token: string;
2521
- label: string | null;
2519
+ label: null | string;
2522
2520
  columns: Column[];
2523
2521
  rows: Row[];
2524
2522
  /** Null while unknown, or when the store's count stopped at its cap. */
2525
- total: number | null;
2523
+ total: null | number;
2526
2524
  loading: boolean;
2527
2525
  /** The store's sentence when a read was refused. */
2528
- error: string | null;
2526
+ error: null | string;
2529
2527
  /** The person may add rows here (the door's own answer) and the row's name column is one she writes. */
2530
2528
  creatable: boolean;
2531
2529
  /** The person may change rows here (the door's own answer). */
@@ -2538,7 +2536,7 @@ interface EntityTable {
2538
2536
  newer: number;
2539
2537
  refresh: () => void;
2540
2538
  /** Change one column of one row — drawn at once, rolled back on refusal. Null, or the store's sentence. */
2541
- update: (rowId: string, column: Column, value: unknown) => Promise<string | null>;
2539
+ update: (rowId: string, column: Column, value: unknown) => Promise<null | string>;
2542
2540
  /** Add one row in the active organization. Its id, or the store's sentence. */
2543
2541
  create: (values: Values) => Promise<{
2544
2542
  id: string;
@@ -2551,13 +2549,13 @@ interface EntityTable {
2551
2549
  * Every key must equal its value; the list asks the door for those rows only (a `where`, never a client
2552
2550
  * sieve), and a row added under it is stamped with the same values, so it lands under the same parent.
2553
2551
  */
2554
- type EntityFilter = Readonly<Record<string, string | number | boolean | null>>;
2552
+ type EntityFilter = Readonly<Record<string, boolean | null | number | string>>;
2555
2553
  /** The filter as the door's question: one `eq` clause per key, in key order (a stable query key). */
2556
2554
  declare function entityFilterWhere(filter: EntityFilter | null | undefined): WhereClause[];
2557
2555
  /** A standard source's columns, keyset pages and writes, through the one engine. Mount inside `EntityDataScope`. */
2558
2556
  declare function useEntitySourceTable(token: string, options?: {
2559
2557
  pageSize?: number;
2560
- search?: string | null;
2558
+ search?: null | string;
2561
2559
  filter?: EntityFilter | null;
2562
2560
  }): EntityTable;
2563
2561
  /** The columns of the one table. */
@@ -2580,12 +2578,12 @@ interface RecordsTableCardProps {
2580
2578
  * table's `{ brand_id }`); a row added here is stamped with it.
2581
2579
  */
2582
2580
  source: {
2583
- kind: "table";
2584
- id: Uuid;
2585
- } | {
2586
2581
  kind: "entity";
2587
2582
  token: string;
2588
2583
  filter?: EntityFilter | undefined;
2584
+ } | {
2585
+ kind: "table";
2586
+ id: Uuid;
2589
2587
  };
2590
2588
  /** Top-right Open — the host's page for this Table. */
2591
2589
  open?: MatrxTableCardProps["open"];
@@ -2620,13 +2618,13 @@ declare function RecordsTableCard(props: RecordsTableCardProps): react.JSX.Eleme
2620
2618
  * provides also answers `archived` — whether a referenced record sits in Archived items (an archive
2621
2619
  * keeps every reference to it, chair ruling B3-21) — so a chip can draw that state.
2622
2620
  */
2623
- type LabelLookup = ((field: Field$1, id: string) => string | null) & {
2621
+ type LabelLookup = ((field: Field$1, id: string) => null | string) & {
2624
2622
  archived?: (field: Field$1, id: string) => boolean;
2625
2623
  /** The linked record's own icon, and its table's icon for one that has none (same call as the words). */
2626
- icons?: (field: Field$1, id: string) => {
2627
- icon: string | null;
2628
- tableIcon: string | null;
2629
- } | undefined;
2624
+ icons?: (field: Field$1, id: string) => undefined | {
2625
+ icon: null | string;
2626
+ tableIcon: null | string;
2627
+ };
2630
2628
  };
2631
2629
  /**
2632
2630
  * HOW LONG A CELL MAY SAY "Loading…" BEFORE IT HAS TO SAY WHAT IT IS WAITING
@@ -2654,7 +2652,7 @@ declare function useRecordLabels(fields: readonly Field$1[] | undefined): LabelL
2654
2652
  * honest word. A cell draws this INSTEAD of "Loading…" once the resolver has
2655
2653
  * been looking for a second — see `SAY_WHAT_YOU_ARE_WAITING_FOR_AFTER_MS`.
2656
2654
  */
2657
- declare function useLabelWait(field: Field$1 | undefined): string | null;
2655
+ declare function useLabelWait(field: Field$1 | undefined): null | string;
2658
2656
 
2659
2657
  /** What a view asks of the store, and how it draws columns. */
2660
2658
  interface ViewReading {
@@ -2662,7 +2660,7 @@ interface ViewReading {
2662
2660
  sorts?: readonly ViewSort[] | undefined;
2663
2661
  presentation?: GridPresentation | undefined;
2664
2662
  /** A hand-ordered view with no sort is read by its own id (the store places its rows). */
2665
- viewId?: string | null | undefined;
2663
+ viewId?: null | string | undefined;
2666
2664
  /**
2667
2665
  * What the person has done in THE GRID on top of the view: the column filters she set in the header
2668
2666
  * menus and the words in the search box. The grid asks the store with them, so the file does too
@@ -2712,7 +2710,7 @@ interface FilePickerProps {
2712
2710
  /** Forget the chosen file and go back to the empty state. */
2713
2711
  onClear?: (() => void) | undefined;
2714
2712
  /** The name of the file currently in play, when the owner is holding one. */
2715
- chosenName?: string | null | undefined;
2713
+ chosenName?: null | string | undefined;
2716
2714
  className?: string | undefined;
2717
2715
  }
2718
2716
  declare function FilePicker({ label, accept, inputLabel, hint, disabled, onFile, onClear, chosenName, className, }: FilePickerProps): react.JSX.Element;
@@ -2776,7 +2774,7 @@ interface ImportNoticeProps {
2776
2774
  epoch?: number | undefined;
2777
2775
  className?: string | undefined;
2778
2776
  }
2779
- declare function ImportNotice({ tableId, onOpenImport, epoch, className }: ImportNoticeProps): react.JSX.Element | null;
2777
+ declare function ImportNotice({ tableId, onOpenImport, epoch, className }: ImportNoticeProps): null | react.JSX.Element;
2780
2778
 
2781
2779
  /** One kind of refusal and how many rows it took. */
2782
2780
  interface ReasonGroup {
@@ -2790,8 +2788,8 @@ declare function groupReasons(reasons: ReadonlyArray<string>): ReasonGroup[];
2790
2788
  /** A refused row as the store's report hands it back (`custom.io_import_report`). */
2791
2789
  interface RefusedRow {
2792
2790
  /** The data row, 1-based (the file's line is this + 1). */
2793
- row?: number | null;
2794
- reason?: string | null;
2791
+ row?: null | number;
2792
+ reason?: null | string;
2795
2793
  source?: Record<string, unknown> | null;
2796
2794
  }
2797
2795
  /**
@@ -2801,7 +2799,7 @@ interface RefusedRow {
2801
2799
  */
2802
2800
  declare function refusedRowsCsv(rows: ReadonlyArray<RefusedRow>, lineOf?: (dataRow: number) => number): string;
2803
2801
  /** "Lincoln pledges.csv" → "Lincoln pledges — rows not added.csv". */
2804
- declare function refusedFileName(sourceName: string | null | undefined): string;
2802
+ declare function refusedFileName(sourceName: null | string | undefined): string;
2805
2803
 
2806
2804
  /** How a name column repeats: distinct names against the rows that carry one. */
2807
2805
  interface TitleRepeats {
@@ -2839,13 +2837,13 @@ interface SaveToTableSource {
2839
2837
  /** A kind value or JSON rows. */
2840
2838
  value?: unknown;
2841
2839
  /** Rows a host already holds (a rendered table's headers and cells). */
2842
- grid?: {
2840
+ grid?: undefined | {
2843
2841
  headers: string[];
2844
2842
  rows: string[][]; /** What the rows came out of ("table", "sheet"); the offered line says "from a <it>". Default "table". */
2845
2843
  from?: string | undefined;
2846
- } | undefined;
2844
+ };
2847
2845
  /** What it came from, in words — the name a new table is offered, and the import's source name. */
2848
- title?: string | null | undefined;
2846
+ title?: null | string | undefined;
2849
2847
  }
2850
2848
  interface SaveToTableProps {
2851
2849
  source: SaveToTableSource;
@@ -2854,7 +2852,7 @@ interface SaveToTableProps {
2854
2852
  /** Open a table (after it was made, or rows were added). Absent: no "Open" button is drawn. */
2855
2853
  onOpenTable?: ((tableId: Uuid$1) => void) | undefined;
2856
2854
  /** The rows landed — `new` when this screen made the table. */
2857
- onSaved?: ((tableId: Uuid$1, how: "new" | "existing") => void) | undefined;
2855
+ onSaved?: ((tableId: Uuid$1, how: "existing" | "new") => void) | undefined;
2858
2856
  /** The person is finished (the report's Done). */
2859
2857
  onClose?: (() => void) | undefined;
2860
2858
  /**
@@ -2872,7 +2870,7 @@ declare function shapesOfSource(source: SaveToTableSource): TableShape[];
2872
2870
  declare function SaveToTable({ source, shapeIndex, onOpenTable, onSaved, onClose, makeAtOnce, className }: SaveToTableProps): react.JSX.Element;
2873
2871
 
2874
2872
  /** The three behaviors that carry no parity type of their own. */
2875
- type PlainFieldType = "text" | "long_text" | "number";
2873
+ type PlainFieldType = "long_text" | "number" | "text";
2876
2874
  /**
2877
2875
  * THE ONE A PERSON COMING FROM AIRTABLE REACHES FOR FIRST, AND IT WAS NOT HERE.
2878
2876
  *
@@ -2909,7 +2907,7 @@ type RelationFieldType = "relation";
2909
2907
  * `FIELD_TYPE_CHOICES`'s coverage and as a red `kindsWithNoChoice()` below — never as a
2910
2908
  * silence.
2911
2909
  */
2912
- type PickableFieldType = DeclarableFieldKind | SystemFieldKind | "entity_reference" | NewerFieldKind | LookFieldKind;
2910
+ type PickableFieldType = "entity_reference" | DeclarableFieldKind | LookFieldKind | NewerFieldKind | SystemFieldKind;
2913
2911
  /**
2914
2912
  * A KIND THAT IS A PLAIN COLUMN WEARING A LOOK (grids review 3, lane H item 5). The store keeps a
2915
2913
  * column's "Shows as" on the Field (`display_format`, `custom.display_format_ids()` has `rating` and
@@ -2918,7 +2916,7 @@ type PickableFieldType = DeclarableFieldKind | SystemFieldKind | "entity_referen
2918
2916
  * "Shows as" picker makes one. Offered whenever the store does not yet publish the kind as its own
2919
2917
  * word (`custom.field_kinds()`): a Rating the store publishes goes as `{ type: "rating", max }`.
2920
2918
  */
2921
- type LookFieldKind = "time" | "color_pair" | "measure" | "type_style" | "shadow";
2919
+ type LookFieldKind = "color_pair" | "measure" | "shadow" | "time" | "type_style";
2922
2920
  /**
2923
2921
  * LANE 10 P4: THE NINE NEWER KINDS (rating, duration, created by, last changed by, status, address,
2924
2922
  * barcode, formatted text, count). Each is listed in `FIELD_TYPE_CATALOGUE` below, so every reader
@@ -2945,7 +2943,7 @@ interface FieldTypeChoice {
2945
2943
  /** One line, under the word, saying what it is FOR. Never what it is made of. */
2946
2944
  explanation: string;
2947
2945
  /** The heading it sits under, so seventeen choices read as four short lists. */
2948
- group: "Words" | "Numbers and dates" | "Choices and people" | "Worked out";
2946
+ group: "Choices and people" | "Numbers and dates" | "Words" | "Worked out";
2949
2947
  }
2950
2948
  /**
2951
2949
  * EVERY KIND THIS PACKAGE CAN NAME AND DRAW, in menu order. The menu (`FIELD_TYPE_CHOICES`) is this
@@ -3061,24 +3059,24 @@ interface CustomFieldAddRequest {
3061
3059
  relation_target?: string | undefined;
3062
3060
  }
3063
3061
  type CustomFieldAddResult = {
3062
+ ok: false;
3063
+ message: string;
3064
+ } | {
3064
3065
  ok: true;
3065
3066
  field_id: Uuid$1;
3066
3067
  label: string;
3067
3068
  type: string;
3068
- } | {
3069
- ok: false;
3070
- message: string;
3071
3069
  };
3072
3070
  /** What the section holds right now, in words an agent can act on. */
3073
3071
  interface CustomFieldsAgentState {
3074
3072
  entityToken: string;
3075
3073
  recordId: Uuid$1;
3076
3074
  /** The entity's own label ("Deal") once the rights read answered. */
3077
- entityLabel: string | null;
3075
+ entityLabel: null | string;
3078
3076
  /** `null` while the rights read is in flight. */
3079
3077
  mayAdd: boolean | null;
3080
3078
  /** The store's sentence when this person may not add a field. */
3081
- refusal: string | null;
3079
+ refusal: null | string;
3082
3080
  /** Each field with this record's current value (`undefined` = nothing written). */
3083
3081
  fields: ReadonlyArray<{
3084
3082
  key: string;
@@ -3097,15 +3095,15 @@ interface CustomFieldsAgentState {
3097
3095
  /** Values to write, keyed by a field's key OR its label (case-insensitive). */
3098
3096
  type CustomFieldValuesRequest = Record<string, unknown>;
3099
3097
  type CustomFieldSetResult = {
3098
+ ok: false;
3099
+ message: string;
3100
+ } | {
3100
3101
  ok: true;
3101
3102
  written: Array<{
3102
3103
  key: string;
3103
3104
  label: string;
3104
3105
  value: unknown;
3105
3106
  }>;
3106
- } | {
3107
- ok: false;
3108
- message: string;
3109
3107
  };
3110
3108
  interface CustomFieldsAgentDoor {
3111
3109
  entityToken: string;
@@ -3130,7 +3128,7 @@ interface CustomFieldsAgentDoor {
3130
3128
  * never just the first. Pure, so it is tested without a store.
3131
3129
  */
3132
3130
  declare function customFieldRequestProblems(requests: readonly CustomFieldAddRequest[], existingLabels: readonly string[]): string[];
3133
- declare function CustomFieldsSection({ entityToken, recordId, title, className, agentDoor, onMakeOwnTable, entityLabel, }: CustomFieldsSectionProps): react.JSX.Element | null;
3131
+ declare function CustomFieldsSection({ entityToken, recordId, title, className, agentDoor, onMakeOwnTable, entityLabel, }: CustomFieldsSectionProps): null | react.JSX.Element;
3134
3132
 
3135
3133
  /** `Day rate` → `day_rate`. Shown, so nothing about it is a surprise. */
3136
3134
  declare function keyFor(label: string): string;
@@ -3151,10 +3149,10 @@ interface FieldEditorCommon {
3151
3149
  * → Formula / Rollup) opens the panel already on the kind the person picked. Ignored when `field`
3152
3150
  * or `copyOf` is given.
3153
3151
  */
3154
- startAs?: {
3152
+ startAs?: undefined | {
3155
3153
  type: PickableFieldType;
3156
3154
  label?: string | undefined;
3157
- } | undefined;
3155
+ };
3158
3156
  }
3159
3157
  /**
3160
3158
  * ONE EDITOR FOR BOTH KINDS OF TABLE (lane 7 STANDARD-TABLES, wave 1; Doctrine R13).
@@ -3174,6 +3172,12 @@ interface FieldEditorCommon {
3174
3172
  * custom-table doors.
3175
3173
  */
3176
3174
  type FieldEditorProps = FieldEditorCommon & ({
3175
+ /** The standard table's registry token (REC-33), e.g. `party`, `crm_deal`. */
3176
+ entityToken: string;
3177
+ tableId?: undefined;
3178
+ field?: undefined;
3179
+ copyOf?: undefined;
3180
+ } | {
3177
3181
  tableId: Uuid;
3178
3182
  entityToken?: undefined;
3179
3183
  /** The Field being edited. Absent means a new one. */
@@ -3184,14 +3188,8 @@ type FieldEditorProps = FieldEditorCommon & ({
3184
3188
  * `field` is given.
3185
3189
  */
3186
3190
  copyOf?: Field | undefined;
3187
- } | {
3188
- /** The standard table's registry token (REC-33), e.g. `party`, `crm_deal`. */
3189
- entityToken: string;
3190
- tableId?: undefined;
3191
- field?: undefined;
3192
- copyOf?: undefined;
3193
3191
  });
3194
- declare function FieldEditor(props: FieldEditorProps): react.JSX.Element | null;
3192
+ declare function FieldEditor(props: FieldEditorProps): null | react.JSX.Element;
3195
3193
  declare function whatIsMissing(state: {
3196
3194
  type: PickableFieldType;
3197
3195
  label: string;
@@ -3208,7 +3206,7 @@ declare function whatIsMissing(state: {
3208
3206
  allowedTypes?: readonly string[];
3209
3207
  /** What the thing being made is called where it is made: a table's "column", a record page's "field". */
3210
3208
  noun?: "column" | "field";
3211
- }): string | null;
3209
+ }): null | string;
3212
3210
 
3213
3211
  declare const NO_RULES_YET = "Nothing has to be true to get here yet.";
3214
3212
  declare const NEEDS_A_SENTENCE = "Write the sentence somebody reads when this stops them, the way you would say it out loud.";
@@ -3258,16 +3256,16 @@ interface ConditionField {
3258
3256
  * Set when this entry is a field of the table a relation column POINTS AT (lane NOTION-Q): `id` is
3259
3257
  * `<relation field id>><field id>` and `via` names the relation. Offered only by a view's filter.
3260
3258
  */
3261
- via?: {
3259
+ via?: undefined | {
3262
3260
  id: string;
3263
3261
  fieldId: string;
3264
- } | undefined;
3262
+ };
3265
3263
  }
3266
3264
  interface ConditionRowProps {
3267
3265
  /** The words before the row: "Ask only when", "When". */
3268
3266
  lead: string;
3269
3267
  /** The expression as it stands, or null for "no condition at all". */
3270
- expr: RuleExpression | Record<string, unknown> | null | undefined;
3268
+ expr: Record<string, unknown> | RuleExpression | null | undefined;
3271
3269
  fields: ConditionField[];
3272
3270
  onChange: (next: RuleExpression | null) => void;
3273
3271
  /** What the empty option says: "always" on a form question, "every card" on a gate. */
@@ -3284,19 +3282,19 @@ interface ConditionRowProps {
3284
3282
  * Found by a screenshot: the homeowner's own rule — "a second quote from a DIFFERENT
3285
3283
  * contractor", a `sibling_count` — opened in the editor as "— pick a column —".
3286
3284
  */
3287
- declare function conditionIsSimple(expr: RuleExpression | Record<string, unknown> | null | undefined): boolean;
3285
+ declare function conditionIsSimple(expr: Record<string, unknown> | RuleExpression | null | undefined): boolean;
3288
3286
  /**
3289
3287
  * What a condition this row cannot draw actually ASKS, in the words the store uses for it.
3290
3288
  * Not a pretty-printer for the whole Rule language — enough that a person reading a rule
3291
3289
  * they cannot edit here still knows what it does before deciding to replace it.
3292
3290
  */
3293
- declare function conditionInWords(expr: RuleExpression | Record<string, unknown> | null | undefined, fields: ConditionField[]): string;
3291
+ declare function conditionInWords(expr: Record<string, unknown> | RuleExpression | null | undefined, fields: ConditionField[]): string;
3294
3292
  /**
3295
3293
  * A value typed into a text box, as the store should hold it. A number column compared
3296
3294
  * against the text "5000" is not the comparison anybody meant, and the store has no way
3297
3295
  * to guess which was intended after the fact.
3298
3296
  */
3299
- declare function conditionValue(typed: string): string | number | boolean;
3297
+ declare function conditionValue(typed: string): boolean | number | string;
3300
3298
  /** The one condition row. It writes the store's own Rule expression, by Field id. */
3301
3299
  declare function ConditionRow({ lead, expr, fields, onChange, emptyLabel, className }: ConditionRowProps): react.JSX.Element;
3302
3300
  /**
@@ -3307,11 +3305,11 @@ declare function ConditionRow({ lead, expr, fields, onChange, emptyLabel, classN
3307
3305
  * still limits it for a caller that wants a shallower builder (0 = one level of clauses and no
3308
3306
  * nested group). `conditionIsSimple` is still the leaf test and still exported.
3309
3307
  */
3310
- declare function conditionIsDrawable(expr: RuleExpression | Record<string, unknown> | null | undefined, depth?: number): boolean;
3308
+ declare function conditionIsDrawable(expr: Record<string, unknown> | RuleExpression | null | undefined, depth?: number): boolean;
3311
3309
  interface ConditionGroupProps {
3312
3310
  /** The words before the condition: "When", "Ask only when", "Show jobs where". */
3313
3311
  lead: string;
3314
- expr: RuleExpression | Record<string, unknown> | null | undefined;
3312
+ expr: Record<string, unknown> | RuleExpression | null | undefined;
3315
3313
  fields: ConditionField[];
3316
3314
  onChange: (next: RuleExpression | null) => void;
3317
3315
  /** What the empty option says: "always", "every card". */
@@ -3344,7 +3342,7 @@ declare function ConditionGroup({ lead, expr, fields, onChange, emptyLabel, allo
3344
3342
  /** The longest name a table keeps; a longer one is said, never cut. */
3345
3343
  declare const TABLE_NAME_MAX = 120;
3346
3344
  /** Why a typed table name cannot be kept, or null when it can. */
3347
- declare function tableNameProblem(typed: string): string | null;
3345
+ declare function tableNameProblem(typed: string): null | string;
3348
3346
  declare function TableRenameDialog({ tableId, name, open, onOpenChange, onRenamed, }: {
3349
3347
  tableId: Uuid;
3350
3348
  /** The table's name as it is kept now. */
@@ -3359,11 +3357,11 @@ interface ColumnsLook {
3359
3357
  /** Field keys the view hides. */
3360
3358
  hidden: readonly string[];
3361
3359
  /** The view's own column order (field keys), or null when the view draws in the table's order. */
3362
- order: readonly string[] | null;
3360
+ order: null | readonly string[];
3363
3361
  /** Write the view's next look. `order` is null when the view keeps no order of its own. */
3364
3362
  onChange: (next: {
3365
3363
  hidden: string[];
3366
- order: string[] | null;
3364
+ order: null | string[];
3367
3365
  }) => Promise<unknown> | unknown;
3368
3366
  }
3369
3367
 
@@ -3409,9 +3407,9 @@ interface TableSettingsProps {
3409
3407
  declare function TableSettings(props: TableSettingsProps): react.JSX.Element;
3410
3408
 
3411
3409
  /** Whether a Table document marks the table as Foundation. Absent is no — the store's own rule. */
3412
- declare function isFoundationTable(table: Pick<Table, "foundation"> | {
3410
+ declare function isFoundationTable(table: Pick<Table, "foundation"> | null | undefined | {
3413
3411
  foundation?: unknown;
3414
- } | null | undefined): boolean;
3412
+ }): boolean;
3415
3413
  declare function TableFoundationSwitch({ tableId, table }: {
3416
3414
  tableId: Uuid;
3417
3415
  table: Table;
@@ -3424,7 +3422,7 @@ declare function personColumns(fields: readonly Field$1[]): Field$1[];
3424
3422
  declare function TableAccessLevel({ tableId, fields }: {
3425
3423
  tableId: Uuid$1;
3426
3424
  fields: readonly Field$1[];
3427
- }): react.JSX.Element | null;
3425
+ }): null | react.JSX.Element;
3428
3426
 
3429
3427
  interface PeekProps {
3430
3428
  tableId: Uuid$1;
@@ -3466,7 +3464,7 @@ interface StandardRecordFormProps {
3466
3464
  onSaved?: ((recordId: Uuid$1) => void) | undefined;
3467
3465
  className?: string | undefined;
3468
3466
  /** The custom-fields half: its heading and the host's doors (agent door, own-table offer, noun). */
3469
- custom?: Omit<CustomFieldsSectionProps, "entityToken" | "recordId" | "className"> | undefined;
3467
+ custom?: Omit<CustomFieldsSectionProps, "className" | "entityToken" | "recordId"> | undefined;
3470
3468
  /** Rendered between the columns and the custom fields (a host's own controls on this row). */
3471
3469
  children?: ReactNode;
3472
3470
  }
@@ -3548,7 +3546,7 @@ interface PickOrAddItem {
3548
3546
  id: string;
3549
3547
  label: string;
3550
3548
  /** A second line that tells two same-named items apart. */
3551
- detail?: string | null | undefined;
3549
+ detail?: null | string | undefined;
3552
3550
  picked: boolean;
3553
3551
  /** The tooltip; defaults to the label. */
3554
3552
  title?: string | undefined;
@@ -3583,7 +3581,7 @@ interface PickOrAddProps {
3583
3581
  * (WALK3-FIX, 2026-10-07: Pick/Choose sat 4px shorter than the date box in the same grid row);
3584
3582
  * "compact" keeps the small button a filter row or a chooser draws.
3585
3583
  */
3586
- triggerSize?: "field" | "compact" | undefined;
3584
+ triggerSize?: "compact" | "field" | undefined;
3587
3585
  /** The trigger's visible word, e.g. "Pick", "Change", "Choose". */
3588
3586
  triggerText: string;
3589
3587
  triggerId?: string | undefined;
@@ -3598,11 +3596,11 @@ interface PickOrAddProps {
3598
3596
  /** When the list is empty. */
3599
3597
  empty?: ReactNode;
3600
3598
  /** The add line at the foot. Absent = no add line. */
3601
- add?: {
3599
+ add?: null | undefined | {
3602
3600
  label: string;
3603
3601
  onAdd: () => void;
3604
3602
  disabled?: boolean | undefined;
3605
- } | null | undefined;
3603
+ };
3606
3604
  /** The foot's own state, drawn in place of the add line when there is one (a name box, a "Reading that table…"). */
3607
3605
  foot?: ReactNode;
3608
3606
  /** Under the add line: a refusal of the add, with its own doors. */
@@ -3658,7 +3656,7 @@ declare function entityReferenceSpec(input: {
3658
3656
  required: boolean;
3659
3657
  };
3660
3658
  /** The sentence the panel shows before it lets a person save, or `null` when nothing is missing. */
3661
- declare function whatIsMissingForEntityReference(allowedTypes: readonly string[]): string | null;
3659
+ declare function whatIsMissingForEntityReference(allowedTypes: readonly string[]): null | string;
3662
3660
  interface EntityReferenceKindPickerProps {
3663
3661
  /** The chosen entity tokens (`config.allowed_types`). */
3664
3662
  value: readonly string[];
@@ -3759,7 +3757,7 @@ declare function FieldLabel({ field, htmlFor, children }: {
3759
3757
  htmlFor: string;
3760
3758
  children?: ReactNode;
3761
3759
  }): react.JSX.Element;
3762
- declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen, recordId }: FieldEditorControlProps): string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
3760
+ declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen, recordId }: FieldEditorControlProps): Iterable<ReactNode> | Promise<Iterable<ReactNode> | bigint | boolean | null | number | react.ReactElement<unknown, react.JSXElementConstructor<any> | string> | react.ReactPortal | string | undefined> | bigint | boolean | null | number | react.JSX.Element | string | undefined;
3763
3761
  /** The chip a picked record shows as — REC-2's "a record is a chip" in one place. */
3764
3762
  declare function RecordChip({ title, onRemove, className, }: {
3765
3763
  title: string;
@@ -3770,7 +3768,7 @@ declare function RecordChip({ title, onRemove, className, }: {
3770
3768
  /** One row of the list: a choice that was there (`id`) or one being added (`id: null`). */
3771
3769
  interface ChoiceListRow {
3772
3770
  /** The option record's id, or null for a choice this panel is adding. */
3773
- id: string | null;
3771
+ id: null | string;
3774
3772
  /** What it reads as. */
3775
3773
  words: string;
3776
3774
  /** A stable React key for a row that has no id yet. */
@@ -3784,9 +3782,9 @@ declare function choiceRowsFrom(options: readonly StoredRecord[], field?: Field)
3784
3782
  * WHAT A SAVE SENDS as `options`, or `undefined` when the list is what the store already holds
3785
3783
  * (so a rename of the column alone does not rewrite its choices).
3786
3784
  */
3787
- declare function choiceListPatch(start: readonly ChoiceListRow[], rows: readonly ChoiceListRow[]): Array<string | FieldOptionEdit> | undefined;
3785
+ declare function choiceListPatch(start: readonly ChoiceListRow[], rows: readonly ChoiceListRow[]): Array<FieldOptionEdit | string> | undefined;
3788
3786
  /** Why this list cannot be saved yet, in the panel's words, or null. */
3789
- declare function whatTheChoiceListIsMissing(rows: readonly ChoiceListRow[] | null): string | null;
3787
+ declare function whatTheChoiceListIsMissing(rows: null | readonly ChoiceListRow[]): null | string;
3790
3788
  declare function ChoiceListEditor({ field, isNew, rows, onRows, onStart, allowOther, rehome, onRehome, }: {
3791
3789
  /** The column, when it exists. Absent: a column being made, whose rows the panel holds. */
3792
3790
  field?: Field | undefined;
@@ -3824,7 +3822,7 @@ interface EmbeddedLook {
3824
3822
 
3825
3823
  /** The envelope for one key, when the document carries one. */
3826
3824
  declare function envelopeFor(document: RecordDocument | undefined, key: string): ValueEnvelope | undefined;
3827
- declare function renderValue(field: Field, value: unknown, document?: RecordDocument, labels?: LabelLookup, stillWaitingFor?: string | null, look?: EmbeddedLook | null, room?: "cell" | "full"): string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | null;
3825
+ declare function renderValue(field: Field, value: unknown, document?: RecordDocument, labels?: LabelLookup, stillWaitingFor?: null | string, look?: EmbeddedLook | null, room?: "cell" | "full"): Iterable<react.ReactNode> | Promise<Iterable<react.ReactNode> | bigint | boolean | null | number | react.ReactElement<unknown, react.JSXElementConstructor<any> | string> | react.ReactPortal | string | undefined> | bigint | boolean | null | number | react.JSX.Element | string;
3828
3826
  /**
3829
3827
  * The text of one scalar, with the Field's UNIT and FORMAT applied — FLD-N-1
3830
3828
  * says both change the MEANING — and with an id resolved to the NAME of the
@@ -3843,12 +3841,12 @@ declare function scalarText(field: Field, value: unknown, labels?: LabelLookup,
3843
3841
  * column say it for 10-13 seconds while the rest of the grid sat readable
3844
3842
  * behind it, and nothing on screen said what it was waiting for.
3845
3843
  */
3846
- stillWaitingFor?: string | null): string;
3844
+ stillWaitingFor?: null | string): string;
3847
3845
  /** The provenance badge a value carries when the store interned a source for it (SCR-27). */
3848
3846
  declare function ProvenanceBadge({ document, fieldKey }: {
3849
3847
  document: RecordDocument | undefined;
3850
3848
  fieldKey: string;
3851
- }): react.JSX.Element | null;
3849
+ }): null | react.JSX.Element;
3852
3850
  /**
3853
3851
  * THE VALUE, AS A COMPONENT, so a cell can resolve the ids it holds.
3854
3852
  *
@@ -3868,7 +3866,7 @@ declare function RecordValue({ field, value, document, format, withheld, inCell,
3868
3866
  * and the read doors give the value without its source — so the signature reader asks for it by
3869
3867
  * the record (`signature.tsx`). Every other kind ignores it.
3870
3868
  */
3871
- recordId?: string | null | undefined;
3869
+ recordId?: null | string | undefined;
3872
3870
  /**
3873
3871
  * The column's DECLARED format (`presentation.ts`), when it has one.
3874
3872
  *
@@ -3899,7 +3897,7 @@ declare function RecordValue({ field, value, document, format, withheld, inCell,
3899
3897
  * page. A structured value shows whole there, not as the grid's one line.
3900
3898
  */
3901
3899
  roomy?: boolean | undefined;
3902
- }): react.JSX.Element | null;
3900
+ }): null | react.JSX.Element;
3903
3901
  /**
3904
3902
  * WHAT ONE CARD SAYS — the kanban's, the calendar's, the gallery's and the pipeline's alike, so
3905
3903
  * no card can read a record differently from another. `field` is the card's title column
@@ -3911,7 +3909,7 @@ declare function cardWords(record: {
3911
3909
  hidden?: Record<string, HiddenFieldNotice> | null;
3912
3910
  } & Parameters<typeof rowName>[0], field: Field | undefined, labels?: LabelLookup): {
3913
3911
  text: string;
3914
- withheld: string | null;
3912
+ withheld: null | string;
3915
3913
  };
3916
3914
 
3917
3915
  declare const WORK_DUE_STATES: readonly ["overdue", "due_today", "scheduled", "undated", "finished"];
@@ -4023,19 +4021,19 @@ declare function bodyForReading(body: string, fields: Field[]): string;
4023
4021
  declare function isSignatureField(field: Field): boolean;
4024
4022
 
4025
4023
  /** The drawing a signature value holds, or null when it holds none (empty, or a signer's name). */
4026
- declare function drawnSignatureOf(value: unknown): string | null;
4024
+ declare function drawnSignatureOf(value: unknown): null | string;
4027
4025
  /** The word a text-only place (a card title, a sentence, an export) writes for a drawn signature. */
4028
4026
  declare const SIGNED_WORD = "Signed";
4029
4027
  /** A signature value in words: a drawing is "Signed"; a sealed name stays the name. */
4030
- declare function signatureWords(value: unknown): string | null;
4028
+ declare function signatureWords(value: unknown): null | string;
4031
4029
  /** The File a signature value's source names (`custom.form_submit`, `custom.sign_request_sign`). */
4032
- declare function signatureFileOf(source: unknown): string | null;
4030
+ declare function signatureFileOf(source: unknown): null | string;
4033
4031
  /**
4034
4032
  * The File a stored document's envelope names for one key, when the document carries its envelope
4035
4033
  * (`_values.<key>.src`, inline or a pointer into `_sources`). The read doors strip both, so a
4036
4034
  * screen usually has to ask (`SignatureDrawing`); a document that has them is answered here.
4037
4035
  */
4038
- declare function signatureFileIn(document: RecordDocument | null | undefined, key: string): string | null;
4036
+ declare function signatureFileIn(document: RecordDocument | null | undefined, key: string): null | string;
4039
4037
  /**
4040
4038
  * A signature as it reads anywhere a value is shown: the drawing, or the signer's name. A drawing
4041
4039
  * kept as a File (a form's, `custom.form_submit`) needs to know whose value this is: `recordId` and
@@ -4044,8 +4042,8 @@ declare function signatureFileIn(document: RecordDocument | null | undefined, ke
4044
4042
  declare function SignatureValue({ value, inCell, recordId, fieldKey, document, }: {
4045
4043
  value: unknown;
4046
4044
  inCell?: boolean | undefined;
4047
- recordId?: string | null | undefined;
4048
- fieldKey?: string | null | undefined;
4045
+ recordId?: null | string | undefined;
4046
+ fieldKey?: null | string | undefined;
4049
4047
  document?: RecordDocument | null | undefined;
4050
4048
  }): react.JSX.Element;
4051
4049
  /**
@@ -4054,7 +4052,7 @@ declare function SignatureValue({ value, inCell, recordId, fieldKey, document, }
4054
4052
  */
4055
4053
  declare function SignaturePad({ value, onChange, disabled, id, className, }: {
4056
4054
  value: unknown;
4057
- onChange: (value: string | null) => void;
4055
+ onChange: (value: null | string) => void;
4058
4056
  disabled?: boolean | undefined;
4059
4057
  id?: string | undefined;
4060
4058
  className?: string | undefined;
@@ -4068,16 +4066,16 @@ interface PickerTable {
4068
4066
  /** The Table document's own key for the same fact (`tableList()` spreads the document onto the Table). */
4069
4067
  kept_by_the_app?: boolean | null | undefined;
4070
4068
  /** `custom.table_facts`: which feature keeps it (`choices` for a value set). */
4071
- kept_for?: string | null | undefined;
4069
+ kept_for?: null | string | undefined;
4072
4070
  /** `custom.data_home_tables`: the store's one word for what it is (`list` for a value set). */
4073
- kind?: string | null | undefined;
4071
+ kind?: null | string | undefined;
4074
4072
  /** The table a value set belongs to (`custom.table_facts.used_in_table_id`). */
4075
- used_in_table_id?: string | null | undefined;
4073
+ used_in_table_id?: null | string | undefined;
4076
4074
  /** A checklist's steps, a booking page's slots, a workflow's states. */
4077
4075
  work_kind?: unknown;
4078
- slug?: string | null | undefined;
4076
+ slug?: null | string | undefined;
4079
4077
  /** When the table was made — what tells two lists apart once their column is gone. */
4080
- created_at?: string | null | undefined;
4078
+ created_at?: null | string | undefined;
4081
4079
  }
4082
4080
  /** A value set: the List a choice column keeps its choices in. */
4083
4081
  declare function isValueSet(table: PickerTable): boolean;
@@ -4102,7 +4100,7 @@ interface TablePickerEntries<T extends PickerTable> {
4102
4100
  */
4103
4101
  declare function tablePickerEntries<T extends PickerTable>(tables: readonly T[], options?: {
4104
4102
  showLists?: boolean;
4105
- keep?: string | null | undefined;
4103
+ keep?: null | string | undefined;
4106
4104
  }): TablePickerEntries<T>;
4107
4105
 
4108
4106
  /**
@@ -4121,14 +4119,14 @@ declare function ShowListsToggle({ count, on, onChange, className, }: {
4121
4119
  on: boolean;
4122
4120
  onChange: (on: boolean) => void;
4123
4121
  className?: string | undefined;
4124
- }): react.JSX.Element | null;
4122
+ }): null | react.JSX.Element;
4125
4123
 
4126
4124
  /** One Field of a package-owned Table, in the store's own words. */
4127
4125
  interface PlatformFieldSpec {
4128
4126
  key: string;
4129
4127
  label: string;
4130
4128
  /** FLD-1: one of the five behaviors. `text` covers the json-ish ones too. */
4131
- type: "text" | "range" | "list" | "relation" | "formula";
4129
+ type: "formula" | "list" | "range" | "relation" | "text";
4132
4130
  sort: number;
4133
4131
  required?: boolean;
4134
4132
  multi?: boolean;
@@ -4155,11 +4153,11 @@ interface PlatformTableSpec {
4155
4153
  }
4156
4154
  /** Find this organization's copy of a package-owned Table, declaring it the first time. */
4157
4155
  declare function ensurePlatformTable(client: RecordsClient, spec: PlatformTableSpec): Promise<{
4158
- ok: true;
4159
- data: Uuid;
4160
- } | {
4161
4156
  ok: false;
4162
4157
  error: RecordsError;
4158
+ } | {
4159
+ ok: true;
4160
+ data: Uuid;
4163
4161
  }>;
4164
4162
  interface UsePlatformTableState {
4165
4163
  tableId: Uuid | null;
@@ -4183,7 +4181,7 @@ declare function usePlatformTable(spec: PlatformTableSpec): UsePlatformTableStat
4183
4181
  /** What `useRecordVersion` hands a screen that writes the record more than once. */
4184
4182
  interface TrackedVersion {
4185
4183
  /** The version this screen is writing against, or `null` when none was read. */
4186
- version: number | null;
4184
+ version: null | number;
4187
4185
  /**
4188
4186
  * TELL IT THE STORE MOVED. Every successful write answers the record's NEW
4189
4187
  * version; a screen that does not hand it back here will write against the
@@ -4222,10 +4220,10 @@ declare function announceTableArchived({ notify, client, tableId, name, onRestor
4222
4220
 
4223
4221
  /** What a look may hold, with this package's grid look. */
4224
4222
  type ViewLook = base.ViewLook<GridPresentation>;
4225
- declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>) => Record<string, unknown>;
4226
- declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>;
4227
- declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>>>>;
4228
- declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4223
+ declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "answerField" | "collapsedColumns" | "conditionField" | "dateField" | "endField" | "groupField" | "imageField" | "layout" | "mapField" | "mapLngField" | "measure" | "parentField" | "presentation" | "sorts" | "startField" | "swimlaneField" | "where">>) => Record<string, unknown>;
4224
+ declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "answerField" | "collapsedColumns" | "conditionField" | "dateField" | "endField" | "groupField" | "imageField" | "layout" | "mapField" | "mapLngField" | "measure" | "parentField" | "presentation" | "sorts" | "startField" | "swimlaneField" | "where">>;
4225
+ declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "answerField" | "collapsedColumns" | "conditionField" | "dateField" | "endField" | "groupField" | "imageField" | "layout" | "mapField" | "mapLngField" | "measure" | "parentField" | "presentation" | "sorts" | "startField" | "swimlaneField" | "where">>>>>;
4226
+ declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "answerField" | "collapsedColumns" | "conditionField" | "dateField" | "endField" | "groupField" | "imageField" | "layout" | "mapField" | "mapLngField" | "measure" | "parentField" | "presentation" | "sorts" | "startField" | "swimlaneField" | "where">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4229
4227
  /** The words of the look bar. One sentence, then the doors. */
4230
4228
  declare const LOOK_WORDS: {
4231
4229
  /** The reason, for a tooltip or a screen reader — never a line on the page (interface-text). */
@@ -4286,7 +4284,7 @@ interface ViewSwitcherProps {
4286
4284
  * time to find it. Left out, a card is titled by a conventional name column, then the first
4287
4285
  * text column — never a checkbox or the column the board is grouped by.
4288
4286
  */
4289
- titleField?: string | null | undefined;
4287
+ titleField?: null | string | undefined;
4290
4288
  /**
4291
4289
  * THE QUESTION THE ADDRESS ASKED, in the store's one filter shape — the same
4292
4290
  * object the chart counted with. It narrows the grid AND the board through
@@ -4329,12 +4327,12 @@ interface ViewSwitcherProps {
4329
4327
  /** The grid as an embedded table (`GridProps.embedded`): its page furniture off. */
4330
4328
  embedded?: boolean | undefined;
4331
4329
  /** The viewer's own sort over the view's saved one (`GridProps.sortOverride`). */
4332
- sortOverride?: {
4330
+ sortOverride?: null | undefined | {
4333
4331
  field: string;
4334
4332
  direction: "asc" | "desc";
4335
- } | null | undefined;
4333
+ };
4336
4334
  /** The viewer's own search (`GridProps.searchOverride`): this viewer only, never saved, asked of the store. */
4337
- searchOverride?: string | null | undefined;
4335
+ searchOverride?: null | string | undefined;
4338
4336
  onSearchChange?: ((search: string) => void) | undefined;
4339
4337
  /**
4340
4338
  * `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
@@ -4360,7 +4358,7 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
4360
4358
  rows: ReadRow$1[];
4361
4359
  manual: boolean;
4362
4360
  /** How many records the view holds, as the store counted them (null when it did not count). */
4363
- total: number | null;
4361
+ total: null | number;
4364
4362
  /** Rows the store listed only as a header: this person cannot open them (never in `rows`). */
4365
4363
  locked: number;
4366
4364
  /** Show one more page of them. */
@@ -4388,8 +4386,8 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
4388
4386
  declare function ViewSwitcher(props: ViewSwitcherProps): react.JSX.Element;
4389
4387
 
4390
4388
  /** The host app's saved zone (IANA). `null` / junk clears it: the device zone applies. */
4391
- declare function setPersonTimeZone(next: string | null | undefined): void;
4392
- declare function getPersonTimeZone(): string | null;
4389
+ declare function setPersonTimeZone(next: null | string | undefined): void;
4390
+ declare function getPersonTimeZone(): null | string;
4393
4391
  /** Calls `listener` whenever the zone changes; returns the unsubscribe. */
4394
4392
  declare function subscribePersonTimeZone(listener: () => void): () => void;
4395
4393
  /**
@@ -4398,7 +4396,7 @@ declare function subscribePersonTimeZone(listener: () => void): () => void;
4398
4396
  */
4399
4397
  declare function personWallNow(at?: Date): Date;
4400
4398
 
4401
- type CalendarMode = "month" | "week" | "day" | "list";
4399
+ type CalendarMode = "day" | "list" | "month" | "week";
4402
4400
  interface CalendarViewProps {
4403
4401
  /** The table the records live in — the undo history's table, and where a new record is made. */
4404
4402
  tableId: Uuid$1;
@@ -4415,9 +4413,9 @@ interface CalendarViewProps {
4415
4413
  * THE END COLUMN THE VIEW KEEPS (`end_field`). Left out or null: the table's ONE other date column
4416
4414
  * when it has exactly one, else none until the person picks.
4417
4415
  */
4418
- endKey?: string | null | undefined;
4416
+ endKey?: null | string | undefined;
4419
4417
  /** The person picked an End: the host keeps it on the view (`end_field`). Unbound: kept for this visit. */
4420
- onEndFieldChange?: ((key: string | null) => void) | undefined;
4418
+ onEndFieldChange?: ((key: null | string) => void) | undefined;
4421
4419
  /** Does the host save what `onEndFieldChange` hands it? Default: when it is bound. */
4422
4420
  endKept?: boolean | undefined;
4423
4421
  /** The column that names each card (`cardTitleField`). */
@@ -4426,7 +4424,7 @@ interface CalendarViewProps {
4426
4424
  /** A move landed (or was undone, or refused): the host re-reads the rows it owns. */
4427
4425
  onMoved?: (() => void) | undefined;
4428
4426
  /** The person picked a Color by column: the host keeps it on the view (`presentation.style.colorBy`). */
4429
- onColorFieldChange?: ((key: string | null) => void) | undefined;
4427
+ onColorFieldChange?: ((key: null | string) => void) | undefined;
4430
4428
  /** May this person make records here? Without it the calendar offers no way to add one. */
4431
4429
  canCreate?: boolean | undefined;
4432
4430
  /** The view's membership sentence (`useViewRecords().membership`). */
@@ -4449,7 +4447,7 @@ interface CalendarViewProps {
4449
4447
  * dropped on a DATE-AND-TIME column (`moments`) is that day's LOCAL midnight as a full instant —
4450
4448
  * never the bare day, which the store would read as UTC midnight (the day before, west of Greenwich).
4451
4449
  */
4452
- declare function rescheduledValue(before: unknown, toDay: string, toMinute: number | null, moments?: boolean): unknown;
4450
+ declare function rescheduledValue(before: unknown, toDay: string, toMinute: null | number, moments?: boolean): unknown;
4453
4451
  /** Lay out one day's timed blocks side by side where they overlap (Google's column packing). */
4454
4452
  declare function packOverlaps<T extends {
4455
4453
  start: number;
@@ -4466,7 +4464,7 @@ interface MapLayoutProps {
4466
4464
  view: SavedViewSpec;
4467
4465
  fields: readonly Field$1[];
4468
4466
  rows: readonly ReadRow$1[];
4469
- titleKey: string | null;
4467
+ titleKey: null | string;
4470
4468
  openRecordId?: Uuid$1 | null | undefined;
4471
4469
  onOpenRecord?: ((recordId: Uuid$1) => void) | undefined;
4472
4470
  onChange: (patch: Partial<SavedViewSpec>) => void;
@@ -4482,7 +4480,7 @@ declare function MapLayout({ view, fields, rows, titleKey, openRecordId, onOpenR
4482
4480
  interface OrgNode {
4483
4481
  id: string;
4484
4482
  row: ReadRow;
4485
- parentId: string | null;
4483
+ parentId: null | string;
4486
4484
  children: OrgNode[];
4487
4485
  /** Number of records under this one, all levels. */
4488
4486
  below: number;
@@ -4535,14 +4533,14 @@ declare function fitTransform(w: number, h: number, bw: number, bh: number, pad?
4535
4533
  /** The columns a person can say "reports to" with: links to this very table. */
4536
4534
  declare function selfLinkFields(fields: readonly Field$1[], tableId: string): Field$1[];
4537
4535
  /** The two card lines: the view's choice (everything else hidden) or the first two filled columns. */
4538
- declare function orgCardFields(fields: readonly Field$1[], hidden: readonly string[] | undefined, exclude: readonly (string | null | undefined)[]): Field$1[];
4536
+ declare function orgCardFields(fields: readonly Field$1[], hidden: readonly string[] | undefined, exclude: readonly (null | string | undefined)[]): Field$1[];
4539
4537
  /** What the strip over the chart says about untidy data; empty when the data is tidy. */
4540
4538
  declare function orgNotes(forest: OrgForest, total: number): string[];
4541
4539
  interface OrgChartLayoutProps {
4542
4540
  view: SavedViewSpec;
4543
4541
  fields: readonly Field$1[];
4544
4542
  rows: readonly ReadRow$1[];
4545
- titleKey: string | null;
4543
+ titleKey: null | string;
4546
4544
  openRecordId?: Uuid$1 | null | undefined;
4547
4545
  onOpenRecord?: ((recordId: Uuid$1) => void) | undefined;
4548
4546
  onChange: (patch: Partial<SavedViewSpec>) => void;
@@ -4551,14 +4549,14 @@ interface OrgChartLayoutProps {
4551
4549
  }
4552
4550
  declare function OrgChartLayout({ view, fields, rows, titleKey, openRecordId, onOpenRecord, onChange, remembered, note }: OrgChartLayoutProps): react.JSX.Element;
4553
4551
 
4554
- type TimelineZoom = "day" | "week" | "month" | "quarter";
4552
+ type TimelineZoom = "day" | "month" | "quarter" | "week";
4555
4553
  declare const TIMELINE_ZOOMS: readonly TimelineZoom[];
4556
4554
  /** The settings a timeline is drawn by, by Field key. */
4557
4555
  interface TimelineSettings {
4558
- startKey: string | null;
4559
- endKey: string | null;
4560
- groupKey: string | null;
4561
- colorKey: string | null;
4556
+ startKey: null | string;
4557
+ endKey: null | string;
4558
+ groupKey: null | string;
4559
+ colorKey: null | string;
4562
4560
  }
4563
4561
  interface TimelineViewProps {
4564
4562
  /** The fields each bar shows after its title (the view's Card fields, v7 item 4). */
@@ -4573,13 +4571,13 @@ interface TimelineViewProps {
4573
4571
  /** The column that names each bar (`cardTitleField`). */
4574
4572
  titleField: Field$1 | undefined;
4575
4573
  /** The view's Start column (`date_field`). Left out: the table's one date column, else asked. */
4576
- startKey?: string | null | undefined;
4574
+ startKey?: null | string | undefined;
4577
4575
  /** The End column. Left out: the table's one other date column, else none. */
4578
- endKey?: string | null | undefined;
4576
+ endKey?: null | string | undefined;
4579
4577
  /** The Group by column (`group_field`). Left out: no lanes. */
4580
- groupKey?: string | null | undefined;
4578
+ groupKey?: null | string | undefined;
4581
4579
  /** The Color by column. Left out: the view's `style.colorBy`, else the table's one choice column. */
4582
- colorKey?: string | null | undefined;
4580
+ colorKey?: null | string | undefined;
4583
4581
  /** A setting changed: the host keeps what it can on the view. */
4584
4582
  onSettingsChange?: ((patch: Partial<TimelineSettings>) => void) | undefined;
4585
4583
  /** False when the host cannot keep the layout or the End on the view: the toolbar says so. */
@@ -4607,13 +4605,13 @@ interface TimelineViewProps {
4607
4605
  mayShape?: boolean | undefined;
4608
4606
  }
4609
4607
  /** THE ONE COLUMN THERE IS, or null — a setting picks itself only when nothing else could be meant. */
4610
- declare function onlyCandidate(candidates: readonly Field$1[]): string | null;
4608
+ declare function onlyCandidate(candidates: readonly Field$1[]): null | string;
4611
4609
  /** The columns a timeline can lay lanes out by: a choice, a person, a link, yes / no, or a worked-out column. */
4612
4610
  declare function groupableFields(all: readonly Field$1[]): Field$1[];
4613
4611
  declare function TimelineView({ cardFields, tableId, rows, fields, farFields, titleField, startKey, endKey, groupKey, colorKey, onSettingsChange, layoutKept, onOpenRecord, onMoved, note, style, initialZoom, initialDate, className, gantt, onGanttChange, mayShape, }: TimelineViewProps): react.JSX.Element;
4614
4612
 
4615
4613
  /** The color of each record's card under `colorKey` (null: the table's own decorations only). */
4616
- declare function useRowColorBy(all: readonly Field$1[], colorKey: string | null, style?: TableStyle | undefined): (row: ReadRow$1) => StyleColor | null;
4614
+ declare function useRowColorBy(all: readonly Field$1[], colorKey: null | string, style?: TableStyle | undefined): (row: ReadRow$1) => StyleColor | null;
4617
4615
 
4618
4616
  /** One cell a change touched: its value before and after, by Field key. */
4619
4617
  interface TouchedCell {
@@ -4645,9 +4643,9 @@ interface GridUndoStep {
4645
4643
  * `custom.field_restore` with every value it held, redo retires it again. Before this a column
4646
4644
  * delete was no step at all, so Cmd-Z after it silently undid the OLDER cell edit beneath it.
4647
4645
  */
4648
- retiredField?: {
4646
+ retiredField?: undefined | {
4649
4647
  fieldId: Uuid;
4650
- } | undefined;
4648
+ };
4651
4649
  }
4652
4650
  interface GridUndo {
4653
4651
  push: (step: GridUndoStep) => void;
@@ -4662,11 +4660,11 @@ interface GridUndo {
4662
4660
  };
4663
4661
  busy: boolean;
4664
4662
  /** The last thing said: what was done or undone, or the store's refusal. */
4665
- notice: {
4663
+ notice: null | {
4666
4664
  says: string;
4667
4665
  refusal: RecordsError | null;
4668
4666
  canUndo: boolean;
4669
- } | null;
4667
+ };
4670
4668
  dismiss: () => void;
4671
4669
  /**
4672
4670
  * Say something beside the last step without a step. `sticky` (a paste the store refused, a
@@ -4677,18 +4675,18 @@ interface GridUndo {
4677
4675
 
4678
4676
  /** What one write answered: done (with the version it made), or the store's refusal. */
4679
4677
  type MoveWritten = {
4680
- ok: true;
4681
- version: number | null;
4682
- } | {
4683
4678
  ok: false;
4684
4679
  error: RecordsError;
4680
+ } | {
4681
+ ok: true;
4682
+ version: null | number;
4685
4683
  };
4686
4684
  /**
4687
4685
  * THE WRITE ITSELF: ONE `recordUpdate`, against the version the caller drew the record at. `null`
4688
4686
  * means the caller does not know it — the write is then NOT sent, because a write with no version
4689
4687
  * is a write that can overwrite a colleague (said as a refusal, never silently).
4690
4688
  */
4691
- declare function moveRecordValue(client: Pick<ReturnType<typeof useRecordsClient>, "recordUpdate" | "recordUpdateAddingChoices">, recordId: Uuid, patch: Record<string, unknown>, expectedVersion: number | null): Promise<MoveWritten>;
4689
+ declare function moveRecordValue(client: Pick<ReturnType<typeof useRecordsClient>, "recordUpdate" | "recordUpdateAddingChoices">, recordId: Uuid, patch: Record<string, unknown>, expectedVersion: null | number): Promise<MoveWritten>;
4692
4690
  interface RecordMoves {
4693
4691
  /**
4694
4692
  * Move one record: `patch` is the new values by Field key, `before` the values it held (read from
@@ -4721,12 +4719,12 @@ interface RecordMoves {
4721
4719
  label: string;
4722
4720
  }) => Promise<Uuid | null>;
4723
4721
  /** The refusal the store gave the last move, and the record it is about — a badge on that card. */
4724
- refused: {
4722
+ refused: null | {
4725
4723
  recordId: Uuid;
4726
4724
  error: RecordsError;
4727
4725
  changedElsewhere: boolean;
4728
4726
  unread?: boolean | undefined;
4729
- } | null;
4727
+ };
4730
4728
  /** Say a sentence in the notice without a step (`sticky`: stays until dismissed). */
4731
4729
  say: (says: string, sticky?: boolean) => void;
4732
4730
  /** The package's undo history these moves are steps of. */
@@ -4748,7 +4746,7 @@ declare const ARCHIVE_MEANS = "Archiving never destroys anything. A record you r
4748
4746
  /** The sentence a person who may not restore reads INSTEAD of a control they cannot use. */
4749
4747
  declare function mayNotRestoreLine(why: string): string;
4750
4748
  /** What one row in the archive says, as one string — pulled out so the guard can read it. */
4751
- declare function archivedRowLine(row: ArchivedRow, titleKey?: string | null): string;
4749
+ declare function archivedRowLine(row: ArchivedRow, titleKey?: null | string): string;
4752
4750
  interface ArchivedViewProps {
4753
4751
  tableId: Uuid;
4754
4752
  /** Rows per page. The store refuses above its own ceiling by name rather than quietly serving fewer. */
@@ -4831,7 +4829,7 @@ declare function ViewBar({ tableId, activeViewId, onActiveView, seed, settings,
4831
4829
  /** One proposed change, in the proposer's words plus the exact act it asks for. */
4832
4830
  interface ProposedChange {
4833
4831
  id: string;
4834
- act: "add" | "update" | "remove";
4832
+ act: "add" | "remove" | "update";
4835
4833
  /**
4836
4834
  * The Table a NEW record lands in. Required for `add` and unused by `update`
4837
4835
  * and `remove`, which name a record instead — and it is optional for exactly
@@ -4861,10 +4859,10 @@ type ProposalOutcome = {
4861
4859
  settled: "accepted";
4862
4860
  sentence: string;
4863
4861
  } | {
4864
- settled: "rejected";
4862
+ settled: "refused";
4865
4863
  sentence: string;
4866
4864
  } | {
4867
- settled: "refused";
4865
+ settled: "rejected";
4868
4866
  sentence: string;
4869
4867
  };
4870
4868
  interface ProposalRowProps {
@@ -4890,7 +4888,7 @@ declare function ProposalRow({ change, outcome, onApply, onReject, readOnlyReaso
4890
4888
  declare const ACTION_KINDS: readonly ["approval", "assignment", "proposal"];
4891
4889
  type ActionKind = WorkInboxKind;
4892
4890
  /** How the rows are gathered under headings. `g` cycles kind → table → none. */
4893
- type InboxGrouping = "kind" | "table" | "none";
4891
+ type InboxGrouping = "kind" | "none" | "table";
4894
4892
  declare const INBOX_GROUPINGS: readonly InboxGrouping[];
4895
4893
  /** A person's three views of their inbox (lane S5-PRIME-2). `v` cycles them. */
4896
4894
  declare const INBOX_VIEWS: readonly WorkInboxView[];
@@ -4906,7 +4904,7 @@ interface SnoozeChoice {
4906
4904
  declare function snoozeChoices(now?: Date): SnoozeChoice[];
4907
4905
  interface InboxGroup {
4908
4906
  key: string;
4909
- label: string | null;
4907
+ label: null | string;
4910
4908
  items: WorkInboxItem[];
4911
4909
  }
4912
4910
  /** THE grouping, pure: the headings and, flattened, the order the keys walk. */
@@ -4954,7 +4952,7 @@ declare const TABLE_AS_OF_WORDS: {
4954
4952
  readonly pick: "Show this view as it was on a day.";
4955
4953
  };
4956
4954
  /** The two questions a past page asks the store: its rows, and how many rows there were. Pure; tested. */
4957
- declare function tableAsOfAsk(tableId: Uuid, asOf: AsOf, page: number, pageSize: number, zone: string | null): {
4955
+ declare function tableAsOfAsk(tableId: Uuid, asOf: AsOf, page: number, pageSize: number, zone: null | string): {
4958
4956
  query: {
4959
4957
  table_id: string;
4960
4958
  asOf: {
@@ -4974,11 +4972,11 @@ declare function tableAsOfAsk(tableId: Uuid, asOf: AsOf, page: number, pageSize:
4974
4972
  };
4975
4973
  };
4976
4974
  interface TableAsOfPage {
4977
- data: {
4975
+ data: null | {
4978
4976
  rows: ReadRow[];
4979
- total: number | null;
4977
+ total: null | number;
4980
4978
  sortIgnored: string[];
4981
- } | null;
4979
+ };
4982
4980
  loading: boolean;
4983
4981
  error: RecordsError | null;
4984
4982
  reload: () => void;
@@ -5002,7 +5000,7 @@ declare function TableAsOfButton({ value, onChange, questionOn, className, }: {
5002
5000
  * another table (custom.migrate_retype, acceptance test 9), and saying "Changed a column's kind"
5003
5001
  * there told a person something that never happened (lane CLOSE-CORE, live walk 2026-10-24).
5004
5002
  */
5005
- declare function migrationWords(verb: string, targetKind?: string | null): string;
5003
+ declare function migrationWords(verb: string, targetKind?: null | string): string;
5006
5004
  /** The record's Migration log, newest first, and a way to read it again. */
5007
5005
  declare function useMigrationLog(recordId: Uuid$1): {
5008
5006
  entries: MigrationEntry[] | null;
@@ -5010,7 +5008,7 @@ declare function useMigrationLog(recordId: Uuid$1): {
5010
5008
  reload: () => Promise<void>;
5011
5009
  };
5012
5010
  /** The live (not put back) change that made a record, newest first — what blocks a value restore. */
5013
- declare function liveRecordMakers(entries: readonly MigrationEntry[] | null): MigrationEntry[];
5011
+ declare function liveRecordMakers(entries: null | readonly MigrationEntry[]): MigrationEntry[];
5014
5012
  interface MigrationLogProps {
5015
5013
  entries: MigrationEntry[];
5016
5014
  /** The log's own read failed: said here, never a silent gap. */
@@ -5018,11 +5016,11 @@ interface MigrationLogProps {
5018
5016
  canUndo: boolean;
5019
5017
  whyNotUndo: string;
5020
5018
  /** Called after an undo landed, with the store's sentence, so History re-reads. */
5021
- onUndone: (said: string) => void | Promise<void>;
5019
+ onUndone: (said: string) => Promise<void> | void;
5022
5020
  className?: string;
5023
5021
  }
5024
5022
  /** The log itself: one line per change, Undo on each one still in force. */
5025
- declare function MigrationLog({ entries, readError, canUndo, whyNotUndo, onUndone, className }: MigrationLogProps): react.JSX.Element | null;
5023
+ declare function MigrationLog({ entries, readError, canUndo, whyNotUndo, onUndone, className }: MigrationLogProps): null | react.JSX.Element;
5026
5024
 
5027
5025
  interface CommentThreadProps {
5028
5026
  /** The Table the commented-on record belongs to — its Fields name an anchor. */
@@ -5040,7 +5038,7 @@ interface RecordFollowProps {
5040
5038
  recordId: Uuid$1;
5041
5039
  className?: string | undefined;
5042
5040
  }
5043
- declare function RecordFollow({ recordId, className }: RecordFollowProps): react.JSX.Element | null;
5041
+ declare function RecordFollow({ recordId, className }: RecordFollowProps): react.JSX.Element;
5044
5042
 
5045
5043
  interface FieldHistoryPanelProps {
5046
5044
  tableId: Uuid$1;
@@ -5057,9 +5055,9 @@ interface FieldHistoryPanelProps {
5057
5055
  declare function FieldHistoryPanel(props: FieldHistoryPanelProps): react.JSX.Element;
5058
5056
 
5059
5057
  interface FormResultsPanelProps {
5060
- form: SavedForm | (FormSpec & {
5058
+ form: (FormSpec & {
5061
5059
  id: Uuid$1;
5062
- });
5060
+ }) | SavedForm;
5063
5061
  className?: string | undefined;
5064
5062
  }
5065
5063
  declare function FormResultsPanel({ form, className }: FormResultsPanelProps): react.JSX.Element;
@@ -5113,11 +5111,11 @@ interface PortalsPanelProps {
5113
5111
  }
5114
5112
  /** What a door answered, for a view that never holds a client of its own. */
5115
5113
  type PortalAnswer<T> = {
5116
- ok: true;
5117
- data: T;
5118
- } | {
5119
5114
  ok: false;
5120
5115
  error: RecordsError;
5116
+ } | {
5117
+ ok: true;
5118
+ data: T;
5121
5119
  };
5122
5120
  /**
5123
5121
  * THE SENTENCE SAID BEFORE A REVOKE, and it is deliberately not generic.
@@ -5172,8 +5170,8 @@ interface PortalLookEditorProps {
5172
5170
  declare function PortalLookEditor({ card, onSaved, className }: PortalLookEditorProps): react.JSX.Element;
5173
5171
 
5174
5172
  interface AccentSwatchesProps {
5175
- value: PortalAccent | "";
5176
- onChange: (accent: PortalAccent | "") => void;
5173
+ value: "" | PortalAccent;
5174
+ onChange: (accent: "" | PortalAccent) => void;
5177
5175
  /** The colors the store accepts. Defaults to the shared seven. */
5178
5176
  options?: readonly PortalAccent[] | undefined;
5179
5177
  /** The words on the empty choice. */
@@ -5186,8 +5184,8 @@ interface PublicPicturePickerProps {
5186
5184
  label: string;
5187
5185
  /** The organization's public pictures, as the store listed them. */
5188
5186
  pictures: readonly PublicPicture[];
5189
- value: Uuid | "" | null | undefined;
5190
- onChange: (fileId: Uuid | "") => void;
5187
+ value: "" | Uuid | null | undefined;
5188
+ onChange: (fileId: "" | Uuid) => void;
5191
5189
  /** The words on the empty choice ("Organization logo", "No cover"). */
5192
5190
  noneLabel: string;
5193
5191
  className?: string | undefined;
@@ -5197,9 +5195,9 @@ declare function PublicPicturePicker({ label, pictures, value, onChange, noneLab
5197
5195
  /** What the frame draws, read from the store's look. Pure. */
5198
5196
  interface FormLookView {
5199
5197
  name: string;
5200
- logoUrl: string | null;
5201
- coverUrl: string | null;
5202
- bandClass: string | null;
5198
+ logoUrl: null | string;
5199
+ coverUrl: null | string;
5200
+ bandClass: null | string;
5203
5201
  monogramClass: string;
5204
5202
  primaryVars: Record<string, string> | null;
5205
5203
  footerLinks: Array<{
@@ -5212,7 +5210,7 @@ declare function formLookView(style: Partial<PortalStyle> | null | undefined, fa
5212
5210
  /** The logo tile: the business's picture, or its first letter on its color. */
5213
5211
  declare function FormLookLogo({ view, size }: {
5214
5212
  view: FormLookView;
5215
- size?: "sm" | "md";
5213
+ size?: "md" | "sm";
5216
5214
  }): react.JSX.Element;
5217
5215
  interface FormLookFrameProps {
5218
5216
  /** The look the store resolved (`presentation.look` from `custom.form_public`, or `formLookOptions().look`). */
@@ -5247,7 +5245,7 @@ interface DigestSchedulerProps {
5247
5245
  * name. It becomes the digest's name and, when a view has to be saved, the
5248
5246
  * view's name, so nothing in the list is called "Saved view".
5249
5247
  */
5250
- subjectName?: string | null | undefined;
5248
+ subjectName?: null | string | undefined;
5251
5249
  /**
5252
5250
  * The filters of the thing being scheduled, written straight into the saved
5253
5251
  * view — in the store's ONE filter shape (`RecordFilter`), which is what
@@ -5308,7 +5306,7 @@ declare function nextSummaryAt(subscription: Pick<MySubscription, "cadence" | "n
5308
5306
  declare function SubscriptionsPanel({ tableId, activeRuleId, className }: SubscriptionsPanelProps): react.JSX.Element;
5309
5307
 
5310
5308
  /** What a person is asking to have made, in the store's own word for it. */
5311
- type BuildableKind = "form" | "booking" | "portal" | "digest";
5309
+ type BuildableKind = "booking" | "digest" | "form" | "portal";
5312
5310
  interface BuildOrAskProps {
5313
5311
  /**
5314
5312
  * The sentence that says what this thing IS, in a practitioner's words —
@@ -5324,7 +5322,7 @@ interface BuildOrAskProps {
5324
5322
  * WHY NOT, in the store's words, shown where the button would have been.
5325
5323
  * A missing control with no explanation is the same dead end as a dead one.
5326
5324
  */
5327
- whyNot?: string | null | undefined;
5325
+ whyNot?: null | string | undefined;
5328
5326
  /**
5329
5327
  * The host's agent port. Unbound, the second button is absent and the
5330
5328
  * sentence below names what is missing. Bound but `mayBuild` false, it is
@@ -5360,7 +5358,7 @@ declare function viewNeedFor(layout: ViewLayout): ViewNeed | null;
5360
5358
  * same kind, so a column made here is indistinguishable from one made there. No `key`: the store
5361
5359
  * derives it from the name.
5362
5360
  */
5363
- declare function columnDeclarationFor(need: ViewNeed, label: string, options: readonly string[], fields: readonly Pick<Field, "sort">[] | null | undefined): NewFieldDeclaration;
5361
+ declare function columnDeclarationFor(need: ViewNeed, label: string, options: readonly string[], fields: null | readonly Pick<Field, "sort">[] | undefined): NewFieldDeclaration;
5364
5362
  interface ViewNeedsProps {
5365
5363
  layout: ViewLayout;
5366
5364
  tableId: Uuid;
@@ -5373,7 +5371,7 @@ interface ViewNeedsProps {
5373
5371
  onMade: (key: string) => void;
5374
5372
  className?: string | undefined;
5375
5373
  }
5376
- declare function ViewNeeds({ layout, tableId, fields, onMade, className }: ViewNeedsProps): react.JSX.Element | null;
5374
+ declare function ViewNeeds({ layout, tableId, fields, onMade, className }: ViewNeedsProps): null | react.JSX.Element;
5377
5375
 
5378
5376
  interface FormBuilderProps {
5379
5377
  /** The Table this form collects into. A form is a view on a real Table. */
@@ -5427,9 +5425,9 @@ declare const CHART_KINDS: ChartKind[];
5427
5425
  * scatter (one point per group: a measure along the bottom and one up the side).
5428
5426
  * `ChartBlock` draws them through its `shape` prop; a dashboard block never carries one.
5429
5427
  */
5430
- type ChartShape = ChartKind | "area" | "pie" | "stacked" | "scatter";
5428
+ type ChartShape = "area" | "pie" | "scatter" | "stacked" | ChartKind;
5431
5429
  /** What each shape needs before it can draw, in one sentence a block prints. */
5432
- declare const CHART_NEEDS: Record<ChartKind, string | null>;
5430
+ declare const CHART_NEEDS: Record<ChartKind, null | string>;
5433
5431
  /** ONE BLOCK, in the words a screen edits. */
5434
5432
  interface ChartSpec {
5435
5433
  /** The block's own id, kept across saves, resizes and moves; minted when absent (`withBlockIds`). */
@@ -5441,10 +5439,10 @@ interface ChartSpec {
5441
5439
  /** Field keys whose values become the groups. */
5442
5440
  groupBy?: string[];
5443
5441
  /** A date Field truncated to a period — what a line runs along. */
5444
- bucket?: {
5442
+ bucket?: null | {
5445
5443
  key: string;
5446
5444
  by: AggregateBucket;
5447
- } | null;
5445
+ };
5448
5446
  /** `count` needs no key; every other measure reads one Field. */
5449
5447
  measures?: AggregateMeasure[];
5450
5448
  /** A scalar is an equality; an object is a half-open moment window. */
@@ -5507,7 +5505,7 @@ declare const SERIES_COLORS: readonly ["hsl(var(--primary))", "hsl(var(--info))"
5507
5505
  * `null` means "this column is named, and this value has no name this reader may see" (—);
5508
5506
  * `undefined` means "not a named column", and the value is shown as the store gave it.
5509
5507
  */
5510
- type GroupNamer = (key: string, value: string) => string | null | undefined;
5508
+ type GroupNamer = (key: string, value: string) => null | string | undefined;
5511
5509
  /** The label one aggregate row carries — its groups, joined the way a person reads them. */
5512
5510
  declare function groupLabel(groups: Record<string, AggregateGroupValue>, named?: GroupNamer): string;
5513
5511
 
@@ -5531,8 +5529,8 @@ declare function ChartFrame({ config, height, className, children, }: {
5531
5529
  }): react.JSX.Element;
5532
5530
  /** One payload entry as Recharts injects it into a tooltip's `content` element. */
5533
5531
  interface TooltipEntry {
5534
- name?: string | number;
5535
- dataKey?: string | number;
5532
+ name?: number | string;
5533
+ dataKey?: number | string;
5536
5534
  value?: number | string;
5537
5535
  color?: string;
5538
5536
  payload?: Record<string, unknown>;
@@ -5548,17 +5546,17 @@ declare function ChartTooltipContent({ active, payload, label, config, className
5548
5546
  label?: ReactNode;
5549
5547
  config: ChartConfig;
5550
5548
  className?: string | undefined;
5551
- }): react.JSX.Element | null;
5549
+ }): null | react.JSX.Element;
5552
5550
  /** The app's legend, with its markup and its classes. */
5553
5551
  declare function ChartLegendContent({ payload, config, className, }: {
5554
5552
  payload?: ReadonlyArray<{
5555
- value?: string | number;
5553
+ value?: number | string;
5556
5554
  color?: string;
5557
- dataKey?: string | number;
5555
+ dataKey?: number | string;
5558
5556
  }>;
5559
5557
  config: ChartConfig;
5560
5558
  className?: string | undefined;
5561
- }): react.JSX.Element | null;
5559
+ }): null | react.JSX.Element;
5562
5560
 
5563
5561
  interface DocTemplateProps {
5564
5562
  /** The Table these templates render. */
@@ -5622,7 +5620,7 @@ interface NotifyRuleSpec {
5622
5620
  /** `instant` fires the moment a record enters the view; the rest are summaries. */
5623
5621
  cadence?: string;
5624
5622
  /** The summary's schedule — "monday 08:00". Meaningless for `instant`. */
5625
- schedule?: string | null;
5623
+ schedule?: null | string;
5626
5624
  channel?: string;
5627
5625
  /** The hours not to be told in. A send inside them is MOVED, never dropped. */
5628
5626
  quietHours?: QuietHours | null;
@@ -5663,14 +5661,14 @@ interface ChartBlockProps {
5663
5661
  * over every record, which adding the groups up would get wrong. `null` = the store had no total
5664
5662
  * ("–"). Absent: the drawn groups added up.
5665
5663
  */
5666
- centerTotal?: number | null | undefined;
5664
+ centerTotal?: null | number | undefined;
5667
5665
  /**
5668
5666
  * Value labels on the marks (the chart menu's "Data labels" switch): bars and columns at their end, line points
5669
5667
  * above, donut slices inside the ring (or outside with a leader for a thin slice). Labels that would collide are
5670
5668
  * left out, never drawn over each other; the card never changes size. `true`: values on bars and lines, each
5671
5669
  * slice's share on a donut; "value" / "share" choose for a donut.
5672
5670
  */
5673
- dataLabels?: boolean | "value" | "share" | undefined;
5671
+ dataLabels?: "share" | "value" | boolean | undefined;
5674
5672
  /** `false` draws no legend beside a donut and no value list under bars or a line. Default `true`. */
5675
5673
  legend?: boolean | undefined;
5676
5674
  /**
@@ -5683,16 +5681,16 @@ interface ChartBlockProps {
5683
5681
  * `bare` — the drawing alone, for a block a page already titles: no figure border, no padding,
5684
5682
  * no caption row. Default `card`.
5685
5683
  */
5686
- variant?: "card" | "bare" | undefined;
5684
+ variant?: "bare" | "card" | undefined;
5687
5685
  /**
5688
5686
  * The block answers a standard source (`{ kind: "entity", token }`, `EntityChartBlock`): its
5689
5687
  * groups are already words, so nothing is named from a custom Table's Fields, and its marks do
5690
5688
  * not open a custom Table's records.
5691
5689
  */
5692
- source?: {
5690
+ source?: undefined | {
5693
5691
  kind: "entity";
5694
5692
  token: string;
5695
- } | undefined;
5693
+ };
5696
5694
  /**
5697
5695
  * HOW THE ANSWER IS DRAWN when a chart VIEW draws more than the dashboard kinds (`ChartShape`): `area` (a line
5698
5696
  * filled to the axis), `pie` (a donut with no hole: the same component), `stacked` (a block grouped by TWO
@@ -5704,19 +5702,19 @@ interface ChartBlockProps {
5704
5702
  }
5705
5703
  declare function ChartBlock({ block, subject, tableName, className, centerValue, centerTotal, dataLabels, legend, groupColors, variant, source, shape }: ChartBlockProps): react.JSX.Element;
5706
5704
 
5707
- type ChartLayoutKind = "bar" | "line" | "donut" | "area" | "pie" | "stacked" | "scatter";
5705
+ type ChartLayoutKind = "area" | "bar" | "donut" | "line" | "pie" | "scatter" | "stacked";
5708
5706
  /**
5709
5707
  * THE VIEW'S SAVED WORDS AS THE ONE QUESTION the store answers. Pure, so a test can state it: a
5710
5708
  * measure that needs a Field it does not have falls back to a count and `fellBack` says so; a line
5711
5709
  * over a date column runs by month.
5712
5710
  */
5713
- declare function chartQuestion(view: Pick<SavedViewSpec, "groupField" | "measure" | "chartKind" | "chartMeasure"> & Partial<Pick<SavedViewSpec, "columnField" | "xField">>, fields: readonly Pick<Field$1, "key" | "type">[]): {
5711
+ declare function chartQuestion(view: Pick<SavedViewSpec, "chartKind" | "chartMeasure" | "groupField" | "measure"> & Partial<Pick<SavedViewSpec, "columnField" | "xField">>, fields: readonly Pick<Field$1, "key" | "type">[]): {
5714
5712
  kind: ChartLayoutKind;
5715
5713
  groupBy: string[];
5716
- bucket: {
5714
+ bucket: null | {
5717
5715
  key: string;
5718
5716
  by: "month";
5719
- } | null;
5717
+ };
5720
5718
  /** The first (for a scatter, the bottom axis) measure. */
5721
5719
  measure: AggregateMeasure;
5722
5720
  /** Every measure asked: one, or the scatter's two. */
@@ -5733,35 +5731,23 @@ interface ChartLayoutProps {
5733
5731
  }
5734
5732
  declare function ChartLayout({ view, fields, filter, onChange, remembered }: ChartLayoutProps): react.JSX.Element;
5735
5733
 
5736
- interface PivotLayoutProps {
5737
- view: SavedViewSpec;
5738
- fields: readonly Field$1[];
5739
- /** The filter the view's other layouts read with (its question plus any the address asked). */
5740
- filter?: StoreFilter$1 | undefined;
5741
- onChange: (patch: Partial<SavedViewSpec>) => void;
5742
- remembered: boolean;
5743
- }
5744
- /** What a pivot rows by when nobody chose: the first choice / status field, else the first plain column. */
5745
- declare function defaultPivotRows(fields: readonly Field$1[]): string | null;
5746
- declare function PivotLayout({ view, fields, filter, onChange, remembered }: PivotLayoutProps): react.JSX.Element;
5747
-
5748
5734
  declare const PIVOT_OPS: readonly ["count", "sum", "avg", "min", "max"];
5749
5735
  type PivotOp = (typeof PIVOT_OPS)[number];
5750
- declare const isPivotOp: (v: string | null | undefined) => v is PivotOp;
5736
+ declare const isPivotOp: (v: null | string | undefined) => v is PivotOp;
5751
5737
  declare const PIVOT_OP_LABEL: Record<PivotOp, string>;
5752
5738
  interface PivotQuestion {
5753
- rowKey: string | null;
5754
- colKey: string | null;
5739
+ rowKey: null | string;
5740
+ colKey: null | string;
5755
5741
  op: PivotOp;
5756
5742
  measure: AggregateMeasure;
5757
5743
  /** A sum, average, min or max with no number column counts instead; the screen says so. */
5758
5744
  fellBack: boolean;
5759
5745
  }
5760
5746
  interface PivotView {
5761
- groupField?: string | null | undefined;
5762
- columnField?: string | null | undefined;
5763
- measure?: string | null | undefined;
5764
- pivotMeasure?: string | null | undefined;
5747
+ groupField?: null | string | undefined;
5748
+ columnField?: null | string | undefined;
5749
+ measure?: null | string | undefined;
5750
+ pivotMeasure?: null | string | undefined;
5765
5751
  }
5766
5752
  /**
5767
5753
  * THE VIEW'S SAVED WORDS AS THE QUESTIONS. A Field the table no longer has is dropped (the pivot
@@ -5778,7 +5764,7 @@ interface PivotAxisItem {
5778
5764
  label: string;
5779
5765
  }
5780
5766
  interface PivotCell {
5781
- value: number | null;
5767
+ value: null | number;
5782
5768
  n: number;
5783
5769
  }
5784
5770
  interface PivotTable {
@@ -5798,7 +5784,29 @@ interface PivotAnswers {
5798
5784
  grand: readonly AggregateRow[];
5799
5785
  }
5800
5786
  /** Cross-tab the store's answers. `label` names one group value (links read as their record). */
5801
- declare function pivotTable(q: Pick<PivotQuestion, "rowKey" | "colKey" | "measure">, answers: PivotAnswers, label: (key: string, value: AggregateGroupValue) => string, limit?: number): PivotTable;
5787
+ declare function pivotTable(q: Pick<PivotQuestion, "colKey" | "measure" | "rowKey">, answers: PivotAnswers, label: (key: string, value: AggregateGroupValue) => string, limit?: number): PivotTable;
5788
+
5789
+ interface PivotLayoutProps {
5790
+ view: SavedViewSpec;
5791
+ fields: readonly Field$1[];
5792
+ /** The filter the view's other layouts read with (its question plus any the address asked). */
5793
+ filter?: StoreFilter$1 | undefined;
5794
+ onChange: (patch: Partial<SavedViewSpec>) => void;
5795
+ remembered: boolean;
5796
+ /**
5797
+ * A BUILT-IN SOURCE ("task", "project"): the same pivot over a module's rows, every number the drill door's
5798
+ * own answer (`platform.drill_ask`, `by` rows `across` columns, as the person) instead of the table store's.
5799
+ * `where` is the door's filter shape; a group names itself by the door's words (a lookup's record name).
5800
+ */
5801
+ source?: undefined | {
5802
+ kind: "entity";
5803
+ token: string;
5804
+ where?: Record<string, unknown> | undefined;
5805
+ };
5806
+ }
5807
+ /** What a pivot rows by when nobody chose: the first choice / status field, else the first plain column. */
5808
+ declare function defaultPivotRows(fields: readonly Field$1[]): null | string;
5809
+ declare function PivotLayout({ view, fields, filter, onChange, remembered, source }: PivotLayoutProps): react.JSX.Element;
5802
5810
 
5803
5811
  interface DashboardCanvasProps {
5804
5812
  /** The Table these blocks are about. */
@@ -5855,12 +5863,12 @@ declare function askExampleFor(fields: readonly Field[]): string;
5855
5863
  declare function TableAsk({ tableId, onOpenInQuestions, viewId }: TableAskProps): react.JSX.Element;
5856
5864
 
5857
5865
  type AskRead = {
5866
+ ok: false; /** One short sentence: what was not understood. */
5867
+ why: string;
5868
+ } | {
5858
5869
  ok: true;
5859
5870
  spec: QuestionSpec; /** The question as it was understood, in the builder's words. */
5860
5871
  reads: string;
5861
- } | {
5862
- ok: false; /** One short sentence: what was not understood. */
5863
- why: string;
5864
5872
  };
5865
5873
  /** The line under an empty box: the grammar by example. */
5866
5874
  declare const ASK_EXAMPLE = "count where Status is Open by Unit";
@@ -5876,7 +5884,7 @@ interface PageScreenProps {
5876
5884
  /** Make a new page on this Table instead (its starter: a list and a record panel), then open it. */
5877
5885
  newOnTable?: Uuid$1 | null | undefined;
5878
5886
  /** The signed-in person: "Assigned to me" is her own Person record. */
5879
- viewerUserId?: string | null | undefined;
5887
+ viewerUserId?: null | string | undefined;
5880
5888
  /** Told the id of the page `newOnTable` made. */
5881
5889
  onCreated?: ((pageId: Uuid$1) => void) | undefined;
5882
5890
  /** The page was archived: the host leaves it. */
@@ -5925,7 +5933,7 @@ interface ScopedRows {
5925
5933
  view_id?: Uuid | null;
5926
5934
  filter?: RecordFilter;
5927
5935
  columns?: string[];
5928
- me_field?: string | null;
5936
+ me_field?: null | string;
5929
5937
  me_only?: boolean;
5930
5938
  }
5931
5939
  interface PageBlockBase {
@@ -5947,7 +5955,7 @@ interface ListPageBlock extends PageBlockBase {
5947
5955
  /** The columns shown, by field key; left out, the first few the table declares. */
5948
5956
  columns?: string[];
5949
5957
  /** A person column. Offers "Assigned to me": the viewer's own Person record against it. */
5950
- me_field?: string | null;
5958
+ me_field?: null | string;
5951
5959
  /** Whether "Assigned to me" starts on. */
5952
5960
  me_default?: boolean;
5953
5961
  limit?: number;
@@ -5963,15 +5971,15 @@ interface RecordPageBlock extends PageBlockBase {
5963
5971
  interface LayoutPageBlock extends PageBlockBase, ScopedRows {
5964
5972
  kind: "layout";
5965
5973
  layout: ElementLayout;
5966
- group_field?: string | null;
5967
- date_field?: string | null;
5968
- end_field?: string | null;
5969
- image_field?: string | null;
5974
+ group_field?: null | string;
5975
+ date_field?: null | string;
5976
+ end_field?: null | string;
5977
+ image_field?: null | string;
5970
5978
  /** Map: the address or latitude column, and the longitude column when it is a latitude. */
5971
- map_field?: string | null;
5972
- map_lng_field?: string | null;
5979
+ map_field?: null | string;
5980
+ map_lng_field?: null | string;
5973
5981
  /** Org chart: the link column to this table that says who a record reports to. */
5974
- parent_field?: string | null;
5982
+ parent_field?: null | string;
5975
5983
  }
5976
5984
  /** Record review: the records on one side, the chosen one beside it, with next and previous. */
5977
5985
  interface ReviewPageBlock extends PageBlockBase, ScopedRows {
@@ -6033,7 +6041,7 @@ interface AppletPageBlock extends PageBlockBase {
6033
6041
  /** The applet (agent app) id; empty until chosen. */
6034
6042
  app_id: string;
6035
6043
  }
6036
- type PageBlock = ListPageBlock | LayoutPageBlock | ReviewPageBlock | NumberPageBlock | ImagePageBlock | EmbedPageBlock | RecordPageBlock | ButtonPageBlock | FormPageBlock | FilterPageBlock | ChartPageBlock | HeadingPageBlock | TextPageBlock | AppletPageBlock;
6044
+ type PageBlock = AppletPageBlock | ButtonPageBlock | ChartPageBlock | EmbedPageBlock | FilterPageBlock | FormPageBlock | HeadingPageBlock | ImagePageBlock | LayoutPageBlock | ListPageBlock | NumberPageBlock | RecordPageBlock | ReviewPageBlock | TextPageBlock;
6037
6045
  /** The `presentation.kind` that makes a dashboard record a Page. */
6038
6046
  declare const PAGE_KIND = "page";
6039
6047
  /** Is this dashboard row a Page? Every row with no kind is a dashboard (the store's default). */
@@ -6090,7 +6098,7 @@ interface PageCanvasProps {
6090
6098
  run: DashboardRunResult | null;
6091
6099
  /** The table a new element starts on. */
6092
6100
  subject: Uuid$1;
6093
- viewerUserId: string | null;
6101
+ viewerUserId: null | string;
6094
6102
  editing: boolean;
6095
6103
  canEdit: boolean;
6096
6104
  /** Re-state the page (blocks, charts or both). */
@@ -6108,9 +6116,9 @@ interface InterfaceScreenProps {
6108
6116
  /** Make a new interface on this table, then open it. */
6109
6117
  newOnTable?: Uuid$1 | null | undefined;
6110
6118
  /** The page open now (the host keeps it in the address). Left out: the first page. */
6111
- pageId?: string | null | undefined;
6119
+ pageId?: null | string | undefined;
6112
6120
  onPage?: ((pageId: string) => void) | undefined;
6113
- viewerUserId?: string | null | undefined;
6121
+ viewerUserId?: null | string | undefined;
6114
6122
  onCreated?: ((interfaceId: Uuid$1) => void) | undefined;
6115
6123
  onArchived?: (() => void) | undefined;
6116
6124
  /** Drawn when the interface is not there or not shared with this person (the host's Request access). */
@@ -6143,7 +6151,7 @@ interface InterfacePublished {
6143
6151
  pages: InterfacePage[];
6144
6152
  version: number;
6145
6153
  at: string;
6146
- by?: string | null;
6154
+ by?: null | string;
6147
6155
  }
6148
6156
  interface InterfaceVersion extends InterfacePublished {
6149
6157
  }
@@ -6171,7 +6179,7 @@ declare function interfaceCharts(shape: InterfaceShape): ChartSpec[];
6171
6179
  /** Does the draft differ from what viewers see? (Never published counts as a change once there is a page.) */
6172
6180
  declare function hasUnpublishedChanges(shape: InterfaceShape): boolean;
6173
6181
  /** PUBLISH: the draft becomes what viewers see, and a version is kept to restore. */
6174
- declare function publish(shape: InterfaceShape, at: string, by: string | null): InterfaceShape;
6182
+ declare function publish(shape: InterfaceShape, at: string, by: null | string): InterfaceShape;
6175
6183
  /** CLEAR UNPUBLISHED CHANGES: the draft goes back to what viewers see. */
6176
6184
  declare function clearUnpublished(shape: InterfaceShape): InterfaceShape;
6177
6185
  /** RESTORE a version INTO THE DRAFT (Airtable's way): the builder looks, then publishes. */
@@ -6215,27 +6223,23 @@ declare function FormsPanel({ tableId, activeFormId, asView, className }: FormsP
6215
6223
  * the sentence is shown, never a silent hide.
6216
6224
  */
6217
6225
  type FormAsked = {
6226
+ ok: false;
6227
+ message: string;
6228
+ error?: RecordsError | undefined;
6229
+ } | {
6218
6230
  ok: true;
6219
6231
  asks: ReadonlyArray<{
6220
6232
  field: string;
6221
6233
  asked: boolean;
6222
- said?: string | null;
6234
+ said?: null | string;
6223
6235
  }>;
6224
6236
  /** TYPEFORM-DUP: the ending the store's route reached (null: the thank-you screen). */
6225
- ending?: string | null | undefined;
6237
+ ending?: null | string | undefined;
6226
6238
  /** TYPEFORM-DUP: the score so far (null: the form carries no points). */
6227
- score?: number | null | undefined;
6228
- } | {
6229
- ok: false;
6230
- message: string;
6231
- error?: RecordsError | undefined;
6239
+ score?: null | number | undefined;
6232
6240
  };
6233
6241
  /** What the public arm's `onSubmit` answers. A refusal carries the door's words. */
6234
6242
  type FormSubmitOutcome = {
6235
- ok: true;
6236
- message?: string | null;
6237
- recordId?: Uuid$1 | null;
6238
- } | {
6239
6243
  ok: false;
6240
6244
  message: string;
6241
6245
  /**
@@ -6244,6 +6248,10 @@ type FormSubmitOutcome = {
6244
6248
  * has `message` still gets a notice built from it (lane REFUSAL-SWEEP).
6245
6249
  */
6246
6250
  error?: RecordsError | undefined;
6251
+ } | {
6252
+ ok: true;
6253
+ message?: null | string;
6254
+ recordId?: Uuid$1 | null;
6247
6255
  };
6248
6256
  interface FormRunnerProps {
6249
6257
  /** The complete spec. An agent wrote it; `FormBuilder` saved it; this runs it. */
@@ -6266,7 +6274,7 @@ interface FormRunnerProps {
6266
6274
  * PUBLIC ARM — the name of a decoy input. A person never fills it; a script
6267
6275
  * fills everything. The door decides what a filled one means, not this screen.
6268
6276
  */
6269
- honeypotKey?: string | null | undefined;
6277
+ honeypotKey?: null | string | undefined;
6270
6278
  /**
6271
6279
  * Answers the form starts with — a prefilled link, or a saved place being
6272
6280
  * resumed. They are ordinary answers: shown in their questions, changeable,
@@ -6309,7 +6317,7 @@ interface FormRunnerProps {
6309
6317
  declare function FormRunner(props: FormRunnerProps): react.JSX.Element;
6310
6318
 
6311
6319
  /** "40 points" for a cost in cents at `rate` points per dollar, or null when there is no rate. */
6312
- declare function costInPoints(cents: number | null | undefined, rate: number | null | undefined): string | null;
6320
+ declare function costInPoints(cents: null | number | undefined, rate: null | number | undefined): null | string;
6313
6321
 
6314
6322
  interface ChecklistRunnerProps {
6315
6323
  /** The Table runs are ABOUT. On a record page, the record's own table. */
@@ -6330,7 +6338,7 @@ interface ChecklistRunnerProps {
6330
6338
  quietWhenEmpty?: boolean | undefined;
6331
6339
  className?: string | undefined;
6332
6340
  }
6333
- declare function ChecklistRunner({ tableId, recordId, runId, includeClosed, offerToStart, quietWhenEmpty, className, }: ChecklistRunnerProps): react.JSX.Element | null;
6341
+ declare function ChecklistRunner({ tableId, recordId, runId, includeClosed, offerToStart, quietWhenEmpty, className, }: ChecklistRunnerProps): null | react.JSX.Element;
6334
6342
  /**
6335
6343
  * ONE STEP, AND WHAT IT ASKS FOR.
6336
6344
  *
@@ -6377,7 +6385,7 @@ declare function MyChecklistSteps({ className, onlyIds, onSteps, actions, }: {
6377
6385
  onSteps?: ((ids: string[]) => void) | undefined;
6378
6386
  /** The inbox's own controls for a step (snooze, done), drawn beside it. */
6379
6387
  actions?: ((stepId: Uuid$1) => ReactNode) | undefined;
6380
- }): react.JSX.Element | null;
6388
+ }): null | react.JSX.Element;
6381
6389
  interface ChecklistsPanelProps {
6382
6390
  tableId: Uuid$1;
6383
6391
  /** Open the record a run is about. */
@@ -6420,7 +6428,7 @@ declare function askableFields(fields: readonly Field[], hidden?: readonly strin
6420
6428
  * THE ONES LEFT OUT, NAMED. Absent is fine; absent and unexplained is the dead
6421
6429
  * end this package does not ship. Returns null when nothing was left out.
6422
6430
  */
6423
- declare function whyNotAskable(fields: readonly Field[], hidden?: readonly string[]): string | null;
6431
+ declare function whyNotAskable(fields: readonly Field[], hidden?: readonly string[]): null | string;
6424
6432
 
6425
6433
  /**
6426
6434
  * THE THREE THE STORE FILLS IN. Named here so this screen never offers them —
@@ -6466,12 +6474,12 @@ interface BookingSlotsProps {
6466
6474
  }
6467
6475
  /** The sentence when a link named a booking page this rail does not list. */
6468
6476
  declare const BOOKING_NOT_HERE_LINE: string;
6469
- declare function BookingSlots({ tableId, activeBookingId, className }: BookingSlotsProps): react.JSX.Element | null;
6477
+ declare function BookingSlots({ tableId, activeBookingId, className }: BookingSlotsProps): null | react.JSX.Element;
6470
6478
  /**
6471
6479
  * The next appointment, as a sentence. `next_at` is the store's answer over
6472
6480
  * every appointment this person may see — not over the page this screen loaded.
6473
6481
  */
6474
- declare function nextInWords(page: Pick<BookingSummary, "next_at" | "timezone" | "state">): string;
6482
+ declare function nextInWords(page: Pick<BookingSummary, "next_at" | "state" | "timezone">): string;
6475
6483
 
6476
6484
  /** The three things a phone captures. Each one writes the SAME kind of record. */
6477
6485
  declare const CAPTURE_MODES: readonly ["reading", "photo", "voice"];
@@ -6516,7 +6524,7 @@ interface CaptureRunProps {
6516
6524
  className?: string | undefined;
6517
6525
  }
6518
6526
  /** What control one question gets. `attachment` is why a phone opens its camera. */
6519
- declare function controlFor(field: CaptureField | undefined): "photo" | "voice" | "number" | "text" | "paragraph";
6527
+ declare function controlFor(field: CaptureField | undefined): "number" | "paragraph" | "photo" | "text" | "voice";
6520
6528
  declare function CaptureRun({ sheetId, face: given, className }: CaptureRunProps): react.JSX.Element;
6521
6529
 
6522
6530
  interface PortalShellProps {
@@ -6602,7 +6610,7 @@ interface RecordsMountProps {
6602
6610
  }
6603
6611
  declare function RecordsMount({ config, host, letTheStoreDecideRights, children, }: RecordsMountProps): react.JSX.Element;
6604
6612
 
6605
- type TableLane = "mine" | "organization" | "system" | "community" | "app";
6613
+ type TableLane = "app" | "community" | "mine" | "organization" | "system";
6606
6614
  /**
6607
6615
  * WHETHER THE STORE ITSELF KEEPS THIS TABLE FOR THE APP — a choice list made per
6608
6616
  * choice field, for one. The Table record's document carries `kept_by_the_app:
@@ -6665,7 +6673,7 @@ declare const SECTIONS_UNKNOWN: string;
6665
6673
  * Community, and a signed-in-only link lands there the day it exists. The chip
6666
6674
  * stays, because a lane that is empty today is still a lane a person chooses.
6667
6675
  */
6668
- type VisibilityLane = "mine" | "organization" | "community" | "world";
6676
+ type VisibilityLane = "community" | "mine" | "organization" | "world";
6669
6677
  declare const VISIBILITY_LANES: readonly VisibilityLane[];
6670
6678
  /**
6671
6679
  * THE LAW'S WORDS (access ladder Words table), and no other lane names: "Shown to" Only me /
@@ -6692,7 +6700,7 @@ interface TablesHomeProps {
6692
6700
  * it can go. Absent: the list asks the store once, for its first table. When the store cannot
6693
6701
  * name it, the chips are absent rather than a row of "unknown".
6694
6702
  */
6695
- organizationName?: string | null | undefined;
6703
+ organizationName?: null | string | undefined;
6696
6704
  /**
6697
6705
  * ONLY THE WAYS TO MAKE A TABLE — New table, Start from a template, and the import that
6698
6706
  * follows — and none of the lists (lane UI-FIX-18, VERIFIER-18 M3). A host page that already
@@ -6707,9 +6715,9 @@ interface TablesHomeProps {
6707
6715
  * THERE and passes how many times it was pressed; this list then draws no button row of its own,
6708
6716
  * and opens the name box when asked. Absent: the list draws its own buttons, as before.
6709
6717
  */
6710
- askedBy?: {
6718
+ askedBy?: undefined | {
6711
6719
  create: number;
6712
- } | undefined;
6720
+ };
6713
6721
  /**
6714
6722
  * WHERE "START FROM A TEMPLATE" LEADS (lane TEMPLATES, RETIRE-1): the host's published-template
6715
6723
  * gallery (matrx-frontend: /make's gallery, read through custom.templates and installed through
@@ -6734,7 +6742,7 @@ interface WhereItLivesProps {
6734
6742
  * until the store answers — and, on a row, instead of asking at all until the chip is pressed:
6735
6743
  * forty rows are not forty reads.
6736
6744
  */
6737
- knownOrganizationName?: string | null | undefined;
6745
+ knownOrganizationName?: null | string | undefined;
6738
6746
  /** After a move lands: the host re-reads (the list, its rows, the page). */
6739
6747
  onMoved?: ((to: {
6740
6748
  id: Uuid;
@@ -6748,7 +6756,7 @@ interface WhereItLivesProps {
6748
6756
  * `anchor` draws no chip at all: the panel opens over the place it is mounted when `openAsked`
6749
6757
  * increases — the table menu's "Move to…" (lane TABLE-ACTIONS) opens this same panel.
6750
6758
  */
6751
- variant?: "header" | "row" | "title" | "anchor" | undefined;
6759
+ variant?: "anchor" | "header" | "row" | "title" | undefined;
6752
6760
  /** Each increase opens the panel (the menu's "Move to…"). */
6753
6761
  openAsked?: number | undefined;
6754
6762
  }
@@ -6775,11 +6783,11 @@ declare function isViewAddressEmpty(state: ViewAddressState | null | undefined):
6775
6783
  /** The state as flat address words. Empty parts are left out, so a plain view has a plain address. */
6776
6784
  declare function viewAddressToParams(state: ViewAddressState | null | undefined): Record<string, string>;
6777
6785
  /** The address words back into a state; null when the address says nothing (or only nonsense). */
6778
- declare function viewAddressFromParams(get: (key: string) => string | null | undefined): ViewAddressState | null;
6786
+ declare function viewAddressFromParams(get: (key: string) => null | string | undefined): ViewAddressState | null;
6779
6787
  /** Two states that say the same thing — so a report that changes nothing is never sent. */
6780
6788
  declare function sameViewAddress(a: ViewAddressState | null | undefined, b: ViewAddressState | null | undefined): boolean;
6781
6789
 
6782
- type Rail = "none" | "settings" | "inbox" | "import" | "field" | "record" | "new-record" | "forms" | "bookings" | "checklists" | "notifications" | "portals" | "who-changed" | "export";
6790
+ type Rail = "bookings" | "checklists" | "export" | "field" | "forms" | "import" | "inbox" | "new-record" | "none" | "notifications" | "portals" | "record" | "settings" | "who-changed";
6783
6791
  interface TablePageProps$1 {
6784
6792
  tableId: Uuid;
6785
6793
  /**
@@ -6788,7 +6796,7 @@ interface TablePageProps$1 {
6788
6796
  * grid without search, bulk-select, Actions or pager; the view tabs and the filter / sort /
6789
6797
  * settings controls stay in one slim toolbar. One option on the one grid. Default `page`.
6790
6798
  */
6791
- presentation?: "page" | "embedded" | undefined;
6799
+ presentation?: "embedded" | "page" | undefined;
6792
6800
  /** The new-row line's words in an embedded table ("New page"). */
6793
6801
  newRowLabel?: string | undefined;
6794
6802
  /** A row, hovered, shows the design system's one Peek; click still opens the record. Default off. */
@@ -6798,7 +6806,7 @@ interface TablePageProps$1 {
6798
6806
  * viewer only, is never saved to the view, and is asked of the store's search. An embedded table
6799
6807
  * also draws its own magnifier (`onSearchChange` hears it).
6800
6808
  */
6801
- searchOverride?: string | null | undefined;
6809
+ searchOverride?: null | string | undefined;
6802
6810
  onSearchChange?: ((search: string) => void) | undefined;
6803
6811
  /**
6804
6812
  * `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
@@ -6852,7 +6860,7 @@ interface TablePageProps$1 {
6852
6860
  * host can write `?record=` — pushed when one opens, replaced when she steps to the next, so Back
6853
6861
  * closes it and a pasted link reopens it. Read back through `activeRecordId`.
6854
6862
  */
6855
- onRecordChange?: ((recordId: Uuid | null, how: "open" | "step" | "close") => void) | undefined;
6863
+ onRecordChange?: ((recordId: Uuid | null, how: "close" | "open" | "step") => void) | undefined;
6856
6864
  /**
6857
6865
  * WHICH VIEW THE ADDRESS NAMES — `grid`, `kanban`, `calendar`, `gallery` or
6858
6866
  * `dashboards`, exactly as the host read it out of `?view=`.
@@ -6866,7 +6874,7 @@ interface TablePageProps$1 {
6866
6874
  *
6867
6875
  * Absent, the page opens exactly as it did: on the saved view's own layout.
6868
6876
  */
6869
- activeView?: string | null | undefined;
6877
+ activeView?: null | string | undefined;
6870
6878
  /**
6871
6879
  * THE ADDRESS FOLLOWS THE PERSON. Called with the view they just picked — a
6872
6880
  * layout button or the Dashboards button — so the host can put it in the URL.
@@ -6888,7 +6896,7 @@ interface TablePageProps$1 {
6888
6896
  * It overrides the saved view's own `groupField` for this visit only, exactly
6889
6897
  * as `activeView` overrides its layout, and it is never written back.
6890
6898
  */
6891
- activeGroupField?: string | null | undefined;
6899
+ activeGroupField?: null | string | undefined;
6892
6900
  /**
6893
6901
  * WHAT THE PERSON CLICKED TO GET HERE — "Jobs by stage · Awaiting parts".
6894
6902
  *
@@ -6898,7 +6906,7 @@ interface TablePageProps$1 {
6898
6906
  * — and one showing MORE rows than the number promised is the number lying
6899
6907
  * twice.
6900
6908
  */
6901
- cameFrom?: string | null | undefined;
6909
+ cameFrom?: null | string | undefined;
6902
6910
  /**
6903
6911
  * WHICH RECORDS THE ADDRESS ASKED FOR, in the store's one filter shape.
6904
6912
  *
@@ -6931,7 +6939,7 @@ interface TablePageProps$1 {
6931
6939
  *
6932
6940
  * Absent, the page opens exactly as it did.
6933
6941
  */
6934
- activeRail?: string | null | undefined;
6942
+ activeRail?: null | string | undefined;
6935
6943
  /**
6936
6944
  * WHICH THING INSIDE THAT RAIL — the form, the portal or the digest rule the
6937
6945
  * link named. The rail opens ON it: the form's builder, the portal's card
@@ -6984,7 +6992,7 @@ interface TablePageProps$1 {
6984
6992
  className?: string | undefined;
6985
6993
  }
6986
6994
  /** What a host may bind in the table's one action list (`TablePage.actionHost`). */
6987
- type TablePageActionHost = Pick<TableActionHost, "origin" | "isFavorite" | "toggleFavorite" | "duplicate" | "move" | "extend" | "unavailableReasons"> & {
6995
+ type TablePageActionHost = Pick<TableActionHost, "duplicate" | "extend" | "isFavorite" | "move" | "origin" | "toggleFavorite" | "unavailableReasons"> & {
6988
6996
  /** After the page's own "Move to…" moved the table: the host re-reads where it lives. */
6989
6997
  onMoved?: (() => void) | undefined;
6990
6998
  /** After the page's own Duplicate landed a copy: the host opens it. Absent, its path is followed. */
@@ -6995,18 +7003,18 @@ interface TablePageHeaderChrome {
6995
7003
  /** Share and the table's one menu, for the host's header. Null while the table is not open. */
6996
7004
  actions: ReactNode;
6997
7005
  /** The table's name once it is read; null before. */
6998
- tableName: string | null;
7006
+ tableName: null | string;
6999
7007
  }
7000
7008
  /** The view as the page draws it right now (`TablePage.onShownViewChange`). */
7001
7009
  interface ShownViewReport {
7002
7010
  /** The saved view under the look; null while the views are read or when there are none. */
7003
- viewId: string | null;
7004
- viewName: string | null;
7011
+ viewId: null | string;
7012
+ viewName: null | string;
7005
7013
  /** "records" layouts (grid, kanban, calendar, gallery), or the main view. */
7006
7014
  showing: string;
7007
- groupField: string | null;
7008
- dateField: string | null;
7009
- swimlaneField: string | null;
7015
+ groupField: null | string;
7016
+ dateField: null | string;
7017
+ swimlaneField: null | string;
7010
7018
  /** Which of these the person's own look decides (never written onto the view). */
7011
7019
  fromLook: string[];
7012
7020
  /** Which of these the address decides for this visit. */
@@ -7031,7 +7039,7 @@ interface ShownViewReport {
7031
7039
  * QUESTION is holding rows back. A screen showing a subset without saying so
7032
7040
  * is a table lying about how much of itself it is.
7033
7041
  */
7034
- declare function cameFromLine(label: string, groupField: string | null, question?: string | null): string;
7042
+ declare function cameFromLine(label: string, groupField: null | string, question?: null | string): string;
7035
7043
  declare const TABLE_NOT_REACHABLE: string;
7036
7044
  /**
7037
7045
  * THE VIEW EVERY TABLE HAS, AND WHY IT IS NOT OPTIONAL.
@@ -7078,7 +7086,7 @@ declare const VIEW_NOT_SAVED_YET: string;
7078
7086
  * one of the ways to look at this table, not a Trash area of the app somebody
7079
7087
  * has to know exists.
7080
7088
  */
7081
- type MainView = "records" | "dashboards" | "archived" | "questions" | "form";
7089
+ type MainView = "archived" | "dashboards" | "form" | "questions" | "records";
7082
7090
  /**
7083
7091
  * WHAT THE PAGE IS SHOWING — the middle and the right-hand panel, as ONE answer.
7084
7092
  *
@@ -7103,11 +7111,11 @@ interface Surface {
7103
7111
  }
7104
7112
  /** Which button in the row was pressed. Exactly one of the two, always. */
7105
7113
  type SurfacePress = {
7106
- rail: Rail;
7107
- main?: never;
7108
- } | {
7109
7114
  main: MainView;
7110
7115
  rail?: never;
7116
+ } | {
7117
+ rail: Rail;
7118
+ main?: never;
7111
7119
  };
7112
7120
  /**
7113
7121
  * THE ONE FUNCTION THAT DECIDES BOTH, so a tab can never contradict the page.
@@ -7131,14 +7139,14 @@ declare function surfaceChosen(current: Surface, asking: SurfacePress): boolean;
7131
7139
  * WHAT THE PAGE OPENS SHOWING — one pure function, so the dead link can be shown failing.
7132
7140
  * See `TablePageProps.activeRecordId` for the defect it closes.
7133
7141
  */
7134
- declare function openingRail(activeRecordId: Uuid | null | undefined, activeRail?: string | null | undefined): {
7135
- rail: "record" | "none" | Exclude<LinkRail, "share">;
7142
+ declare function openingRail(activeRecordId: Uuid | null | undefined, activeRail?: null | string | undefined): {
7143
+ rail: "none" | "record" | Exclude<LinkRail, "share">;
7136
7144
  record: Uuid | null;
7137
7145
  };
7138
7146
  /** The rails a link may open, plus `share`, which opens the share dialog over the page. */
7139
- type LinkRail = "forms" | "bookings" | "checklists" | "notifications" | "portals" | "settings" | "import" | "inbox" | "export" | "field" | "share";
7147
+ type LinkRail = "bookings" | "checklists" | "export" | "field" | "forms" | "import" | "inbox" | "notifications" | "portals" | "settings" | "share";
7140
7148
  /** What a `?rail=` value means, or `null` when it means nothing here. */
7141
- declare function railFromParam(raw: string | null | undefined): LinkRail | null;
7149
+ declare function railFromParam(raw: null | string | undefined): LinkRail | null;
7142
7150
  /** The sentence a link that named a rail nobody has says. Never silent. */
7143
7151
  declare function unknownRailLine(raw: string): string;
7144
7152
  /** The sentence when the link asked for the share dialog and this person may not share. */
@@ -7159,10 +7167,10 @@ declare const SHARE_NOT_YOURS_LINE: string;
7159
7167
  * A `?dashboard=<id>` with no `?view=` still opens the canvas, because that
7160
7168
  * link predates this one and must keep working.
7161
7169
  */
7162
- declare function openingView(activeView: string | null | undefined, activeDashboardId: Uuid | null | undefined): {
7170
+ declare function openingView(activeView: null | string | undefined, activeDashboardId: Uuid | null | undefined): {
7163
7171
  main: MainView;
7164
7172
  layout: ViewLayout | null;
7165
- unknown: string | null;
7173
+ unknown: null | string;
7166
7174
  };
7167
7175
 
7168
7176
  /** A standard source, by its registry token. */
@@ -7183,7 +7191,7 @@ interface EntityBoardProps {
7183
7191
  onOpenRecord?: ((rowId: string) => void) | undefined;
7184
7192
  className?: string | undefined;
7185
7193
  }
7186
- declare function EntityBoard({ entity, groupBy, cardFields, onOpenRecord, className }: EntityBoardProps): react.JSX.Element | null;
7194
+ declare function EntityBoard({ entity, groupBy, cardFields, onOpenRecord, className }: EntityBoardProps): null | react.JSX.Element;
7187
7195
  interface EntityChartBlockProps {
7188
7196
  source: EntitySource;
7189
7197
  /** bar · column · line · donut · number · table */
@@ -7191,27 +7199,27 @@ interface EntityChartBlockProps {
7191
7199
  /** The Dimension to group by: a choice ("status") or a lookup ("stage_id"). Absent: one total. */
7192
7200
  by?: string | undefined;
7193
7201
  /** What to count: the rows (default) or a number column summed. */
7194
- measure?: {
7195
- op: "count";
7196
- } | {
7197
- op: "sum" | "avg" | "min" | "max";
7202
+ measure?: undefined | {
7203
+ op: "avg" | "max" | "min" | "sum";
7198
7204
  of: string;
7199
- } | undefined;
7205
+ } | {
7206
+ op: "count";
7207
+ };
7200
7208
  title?: string | undefined;
7201
7209
  /** The door's filter shape (a scalar is equality, a list any of them; a lookup by its words). */
7202
7210
  where?: Record<string, unknown> | undefined;
7203
7211
  /** One organization's rows only. Absent: every organization she can see. */
7204
7212
  organization?: string | undefined;
7205
7213
  centerValue?: boolean | undefined;
7206
- variant?: "card" | "bare" | undefined;
7214
+ variant?: "bare" | "card" | undefined;
7207
7215
  className?: string | undefined;
7208
7216
  }
7209
7217
  declare function EntityChartBlock({ source, kind, by, measure, title, where, organization, centerValue, variant, className }: EntityChartBlockProps): react.JSX.Element;
7210
- type EntityLayout = "grid" | "board";
7218
+ type EntityLayout = "board" | "grid";
7211
7219
  interface EntityTablePageProps {
7212
7220
  source: EntitySource;
7213
7221
  /** `embedded`: a table inside a page — no title row (the host draws it). Default `page`. */
7214
- presentation?: "page" | "embedded" | undefined;
7222
+ presentation?: "embedded" | "page" | undefined;
7215
7223
  /** Rows read for every layout. Default 100. */
7216
7224
  pageSize?: number | undefined;
7217
7225
  /** The layout it opens in. Default `grid`. */
@@ -7221,7 +7229,7 @@ interface EntityTablePageProps {
7221
7229
  groupBy?: string | undefined;
7222
7230
  onOpenRecord?: ((rowId: string) => void) | undefined;
7223
7231
  /** The viewer's own search, handed by the host; asked of the door. Never saved. */
7224
- searchOverride?: string | null | undefined;
7232
+ searchOverride?: null | string | undefined;
7225
7233
  onSearchChange?: ((search: string) => void) | undefined;
7226
7234
  /**
7227
7235
  * `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
@@ -7235,15 +7243,13 @@ interface EntityTablePageProps {
7235
7243
  declare function EntityTablePage(props: EntityTablePageProps): react.JSX.Element;
7236
7244
 
7237
7245
  type TablePageSource = {
7238
- kind: "table";
7239
- id: Uuid;
7240
- } | {
7241
7246
  kind: "entity";
7242
7247
  token: string;
7248
+ } | {
7249
+ kind: "table";
7250
+ id: Uuid;
7243
7251
  };
7244
- type TablePageProps = (TablePageProps$1 & {
7245
- source?: undefined;
7246
- }) | (Omit<TablePageProps$1, "tableId"> & {
7252
+ type TablePageProps = (Omit<TablePageProps$1, "tableId"> & {
7247
7253
  tableId?: undefined;
7248
7254
  source: TablePageSource;
7249
7255
  /** A standard source only: the layout it opens in, and the board's choice column. */
@@ -7251,6 +7257,8 @@ type TablePageProps = (TablePageProps$1 & {
7251
7257
  onLayoutChange?: ((layout: EntityLayout) => void) | undefined;
7252
7258
  groupBy?: string | undefined;
7253
7259
  onOpenRecord?: ((rowId: string) => void) | undefined;
7260
+ }) | (TablePageProps$1 & {
7261
+ source?: undefined;
7254
7262
  });
7255
7263
  declare function TablePage(props: TablePageProps): react.JSX.Element;
7256
7264
 
@@ -7264,10 +7272,10 @@ declare function useTableToolbarSlot(): HTMLElement | null | undefined;
7264
7272
  /** A layout's own controls, placed in the page's one toolbar row when there is one. */
7265
7273
  declare function InTableToolbar({ children }: {
7266
7274
  children: ReactNode;
7267
- }): react.JSX.Element | null;
7275
+ }): null | react.JSX.Element;
7268
7276
 
7269
7277
  /** What the roster can tell us about a user id. `null` when it cannot. */
7270
- type ResolveName = (userId: Uuid) => string | null;
7278
+ type ResolveName = (userId: Uuid) => null | string;
7271
7279
  /** The honest stand-in when nobody and nothing can put a name to the author. */
7272
7280
  declare const SOMEBODY = "somebody in this organization";
7273
7281
  /** The platform's own word for itself. Never "null", never "system_user". */
@@ -7289,9 +7297,9 @@ declare function actorBadge(actor: HistoryActor, resolve?: ResolveName | undefin
7289
7297
  /** What a cell knows about who last touched it. */
7290
7298
  interface WhoChanged {
7291
7299
  /** The short name for the badge, once known. `null` while nobody has asked. */
7292
- badge: string | null;
7300
+ badge: null | string;
7293
7301
  /** The whole sentence for the hover. `null` while nobody has asked. */
7294
- sentence: string | null;
7302
+ sentence: null | string;
7295
7303
  /** Ask. Idempotent, cached, and a no-op with no source mounted. */
7296
7304
  ask: () => void;
7297
7305
  }
@@ -7336,8 +7344,8 @@ interface ShareControlProps {
7336
7344
  * the control is absent for them, as before.
7337
7345
  */
7338
7346
  whyNot?: string | undefined;
7339
- size?: "sm" | "default" | undefined;
7340
- variant?: "ghost" | "outline" | "default" | undefined;
7347
+ size?: "default" | "sm" | undefined;
7348
+ variant?: "default" | "ghost" | "outline" | undefined;
7341
7349
  className?: string | undefined;
7342
7350
  }
7343
7351
  /** True when a host has bound a share dialog — so a caller can lay out its row. */
@@ -7378,23 +7386,23 @@ declare function ShareControl({ kind, organizationId, subjectId, name, may, init
7378
7386
  * outright carries a time: the older `format: "datetime"`, or the store's own Created / Last
7379
7387
  * changed stamps (instants by construction).
7380
7388
  */
7381
- declare function carriesTimeOfDay(field: Pick<Field, "type" | "config" | "format">, value?: unknown): boolean;
7389
+ declare function carriesTimeOfDay(field: Pick<Field, "config" | "format" | "type">, value?: unknown): boolean;
7382
7390
  /** A value that names a moment in the day, not just the day. */
7383
7391
  declare function hasTimePart(value: unknown): boolean;
7384
7392
  /** Is this Field a date column at all — a dated range, or the store's own time stamp? */
7385
- declare function isDateField(field: Pick<Field, "type" | "config">): boolean;
7393
+ declare function isDateField(field: Pick<Field, "config" | "type">): boolean;
7386
7394
  /**
7387
7395
  * The format a date-ish Field draws with, or `undefined` for a Field that is not one. With a
7388
7396
  * value, it is that value's own shape; without, the Field's (`carriesTimeOfDay`).
7389
7397
  * `presentation.formatForField` answers dates through this, so the grid and every card agree.
7390
7398
  */
7391
- declare function dateFormatFor(field: Pick<Field, "type" | "config" | "format">, value?: unknown): FieldFormatConfig | undefined;
7399
+ declare function dateFormatFor(field: Pick<Field, "config" | "format" | "type">, value?: unknown): FieldFormatConfig | undefined;
7392
7400
  /**
7393
7401
  * THE TEXT OF ONE DATE VALUE, in the viewer's language — through the design system's
7394
7402
  * registry, exactly as the grid prints it, in the value's own shape. `null` when the value is
7395
7403
  * not a date at all, so the caller can fall back to its own reading (THE FALLBACK LAW).
7396
7404
  */
7397
- declare function dateText(field: Pick<Field, "type" | "config" | "format">, value: unknown): string | null;
7405
+ declare function dateText(field: Pick<Field, "config" | "format" | "type">, value: unknown): null | string;
7398
7406
  /**
7399
7407
  * THE CALENDAR DAY a value falls on, as `YYYY-MM-DD` — the key a calendar files a card under.
7400
7408
  *
@@ -7402,7 +7410,7 @@ declare function dateText(field: Pick<Field, "type" | "config" | "format">, valu
7402
7410
  * logged at 5:13 PM Pacific on 24 September is on the 24th for the person in Pacific time,
7403
7411
  * even though it is already the 25th in UTC.
7404
7412
  */
7405
- declare function calendarDayOf(value: unknown): string | null;
7413
+ declare function calendarDayOf(value: unknown): null | string;
7406
7414
  /** The heading of one calendar day — `Apr 1, 2026` — built on local midnight, never UTC. */
7407
7415
  declare function calendarDayLabel(day: string): string;
7408
7416
  /** The day key of a moment, on the viewer's calendar. */
@@ -7440,16 +7448,16 @@ interface PipelineBoardProps {
7440
7448
  * The table's own title column (`title_field`), from the table the host already holds — each
7441
7449
  * card is named by it through `cardTitleField`. The board never reads the table again for it.
7442
7450
  */
7443
- titleKey?: string | null | undefined;
7451
+ titleKey?: null | string | undefined;
7444
7452
  /** A number column to total under each heading. The person picks it; nothing is guessed. */
7445
- measure?: string | null;
7453
+ measure?: null | string;
7446
7454
  /**
7447
7455
  * S2-PRIME — the question the cards under this board were read with, either shape. The
7448
7456
  * headings are counted by the store with THE SAME question (`pipelineBoard({filter})`), so a
7449
7457
  * column never says 16 over the 4 cards a view put in it.
7450
7458
  */
7451
7459
  filter?: StoreFilter$1 | null | undefined;
7452
- onMeasureChange?: ((key: string | null) => void) | undefined;
7460
+ onMeasureChange?: ((key: null | string) => void) | undefined;
7453
7461
  onOpenRecord?: ((recordId: Uuid$1) => void) | undefined;
7454
7462
  /** Called after a move lands, so the host re-reads the rows it owns. */
7455
7463
  onMoved?: (() => void) | undefined;
@@ -7476,12 +7484,12 @@ declare function PipelineBoard({ tableId, rows, titleKey, measure, filter, onMea
7476
7484
  /** The source's Dimensions, as the door says them; a choice and a relation read by their words. */
7477
7485
  declare function drillDimensionsOf(def: DrillDefinition | null, labels: ReadonlyMap<string, ReadonlyMap<string, string>>, options?: Readonly<Record<string, MatrxDrillDimensionOptions | undefined>> | undefined): MatrxDrillDimension[];
7478
7486
  /** What a host adds to a server Dimension: its group actions, its value's door, what names its values. */
7479
- type MatrxDrillDimensionOptions = Partial<Pick<MatrxDrillDimension, "groupActions" | "doorFor" | "labelFrom" | "labelFor" | "colorFor" | "entity">>;
7487
+ type MatrxDrillDimensionOptions = Partial<Pick<MatrxDrillDimension, "colorFor" | "doorFor" | "entity" | "groupActions" | "labelFor" | "labelFrom">>;
7480
7488
  /** One fixed filter of the host (one site): applied to every ask, said as a crumb no click removes. */
7481
7489
  interface DrillBase {
7482
7490
  /** The Dimension (or column) key. */
7483
7491
  key: string;
7484
- value: string | number | boolean | null;
7492
+ value: boolean | null | number | string;
7485
7493
  /** The crumb's name. Default the Dimension's label. */
7486
7494
  label?: string | undefined;
7487
7495
  /** The crumb's value words. Default the Dimension's words for the value. */
@@ -7494,7 +7502,7 @@ declare function drillPathsOf(def: DrillDefinition | null): string[][];
7494
7502
  /** The source's definition, asked once per source. */
7495
7503
  declare function useDrillDefinition(source: DrillSource | null): {
7496
7504
  def: DrillDefinition | null;
7497
- error: string | null;
7505
+ error: null | string;
7498
7506
  };
7499
7507
  /**
7500
7508
  * THE TRAIL IN THE CONTRACT'S WORDS: the host's flat filter, then each crumb — a period by its
@@ -7522,7 +7530,7 @@ declare function useDrillAnswers(args: {
7522
7530
  }): {
7523
7531
  answers: MatrxDrillAnswers;
7524
7532
  labels: ReadonlyMap<string, ReadonlyMap<string, string>>;
7525
- error: string | null;
7533
+ error: null | string;
7526
7534
  says: string[];
7527
7535
  };
7528
7536
  /**
@@ -7564,16 +7572,16 @@ declare function useDrill(args: {
7564
7572
  */
7565
7573
  declare function useAddressDrill(args: {
7566
7574
  /** A registry token or a declared definition's key; null asks nothing. */
7567
- token: string | null;
7575
+ token: null | string;
7568
7576
  enabled?: boolean;
7569
7577
  startWindow?: string | undefined;
7570
7578
  /** The address prefix. Default `drill`. */
7571
7579
  prefix?: string | undefined;
7572
- } & Omit<Parameters<typeof useDrill>[0], "source" | "question" | "onQuestionChange" | "enabled">): MatrxDataTableDrillConfig | null;
7580
+ } & Omit<Parameters<typeof useDrill>[0], "enabled" | "onQuestionChange" | "question" | "source">): MatrxDataTableDrillConfig | null;
7573
7581
 
7574
7582
  interface Ask {
7575
7583
  /** What the asked rows are grouped by: the Dimension, or none (the drilled value's own facts). */
7576
- outer: string | null;
7584
+ outer: null | string;
7577
7585
  fact: string;
7578
7586
  where: Record<string, unknown>;
7579
7587
  }
@@ -7589,7 +7597,7 @@ declare function drillLevelAsks(args: {
7589
7597
  names: Ask[];
7590
7598
  };
7591
7599
  /** One fact of one group, as a person reads it: its words, "Several", or blank. */
7592
- declare function drillFactWords(values: Map<string | null, string | null> | undefined, dim: MatrxDrillDimension | undefined): string | null;
7600
+ declare function drillFactWords(values: Map<null | string, null | string> | undefined, dim: MatrxDrillDimension | undefined): null | string;
7593
7601
  /**
7594
7602
  * THE LEVEL'S READS for a server drill: attributes as columns, the drilled value's header facts and
7595
7603
  * the `labelFrom` names, each through `drill_ask`. Nothing to read = nothing asked.
@@ -7627,7 +7635,7 @@ interface RecordActionSubject {
7627
7635
  /** The record's name as every card reads it (`recordNameIn` / `cardWords`). */
7628
7636
  name: string;
7629
7637
  }
7630
- type RecordHandler = (record: RecordActionSubject) => void | Promise<void>;
7638
+ type RecordHandler = (record: RecordActionSubject) => Promise<void> | void;
7631
7639
  /** THE SIDE EFFECTS THIS LIST CANNOT OWN. A handler left out keeps its action, disabled. */
7632
7640
  interface RecordActionHost {
7633
7641
  /** Origin for Copy link and Open in new tab. Default `https://www.aimatrx.com`. */
@@ -7640,7 +7648,7 @@ interface RecordActionHost {
7640
7648
  open?: RecordHandler;
7641
7649
  openInNewTab?: (url: string, record: RecordActionSubject) => void;
7642
7650
  /** Runs inside the click (the clipboard needs the gesture). */
7643
- copyText?: (text: string, record: RecordActionSubject) => void | Promise<void>;
7651
+ copyText?: (text: string, record: RecordActionSubject) => Promise<void> | void;
7644
7652
  duplicate?: RecordHandler;
7645
7653
  /** Merge another record of the same table into this one (`MergeRecordDialog`). */
7646
7654
  merge?: RecordHandler;
@@ -7713,31 +7721,31 @@ declare function RecordActionMenu({ tableId, row, name, onOpenRecord, onChanged,
7713
7721
 
7714
7722
  interface ViewActionHost {
7715
7723
  rename?: () => void;
7716
- duplicate?: () => void | Promise<void>;
7717
- archive?: () => void | Promise<void>;
7724
+ duplicate?: () => Promise<void> | void;
7725
+ archive?: () => Promise<void> | void;
7718
7726
  /** Lock or unlock the view (lane NOTION-SMALL-2). Left out, no lock verb is listed. */
7719
- toggleLock?: () => void | Promise<void>;
7727
+ toggleLock?: () => Promise<void> | void;
7720
7728
  /** Turn the view Personal (only its creator lists it) or Collaborative (VIEWS-AIRTABLE). Left out, no such verb. */
7721
- togglePersonal?: () => void | Promise<void>;
7729
+ togglePersonal?: () => Promise<void> | void;
7722
7730
  /** Move the view to a named section of the list. Left out, no such verb. */
7723
- moveToSection?: () => void | Promise<void>;
7731
+ moveToSection?: () => Promise<void> | void;
7724
7732
  /** Copy another view's settings onto this one (AT-RECORD, Airtable's "Copy view configuration"). Left out, no such verb. */
7725
- copySettings?: () => void | Promise<void>;
7733
+ copySettings?: () => Promise<void> | void;
7726
7734
  /**
7727
7735
  * SHARE THE VIEW BY LINK (lane VIEW-LINK, Airtable's "Create a shared view link"). Left out, no such verb. It is never
7728
7736
  * disabled by the table's structure right: who may make a link is the store's rule on the VIEW (Edit or Full), and the
7729
7737
  * host's panel says its refusal in a sentence.
7730
7738
  */
7731
- shareLink?: () => void | Promise<void>;
7739
+ shareLink?: () => Promise<void> | void;
7732
7740
  }
7733
7741
  /** `whyNot`: the person's reason they may not change this table's views, or null when they may. */
7734
- declare function viewActions(whyNot: string | null, host: ViewActionHost, locked?: boolean, personal?: boolean): ObjectAction[];
7742
+ declare function viewActions(whyNot: null | string, host: ViewActionHost, locked?: boolean, personal?: boolean): ObjectAction[];
7735
7743
 
7736
7744
  interface RecordNeighbors {
7737
7745
  index: number;
7738
7746
  total: number;
7739
- previous: string | null;
7740
- next: string | null;
7747
+ previous: null | string;
7748
+ next: null | string;
7741
7749
  }
7742
7750
 
7743
7751
  interface RecordPanelProps {
@@ -7891,16 +7899,16 @@ declare function TableReferenceDialog({ table, open, onOpenChange, }: {
7891
7899
  }): react.JSX.Element;
7892
7900
 
7893
7901
  /** What a "the app's code depends on this table" refusal names, or null for any other refusal. */
7894
- declare function codeDependsRefusal(error: RecordsError | null | undefined): {
7902
+ declare function codeDependsRefusal(error: RecordsError | null | undefined): null | {
7895
7903
  slug: string;
7896
- declaredIn: string | null;
7897
- } | null;
7904
+ declaredIn: null | string;
7905
+ };
7898
7906
 
7899
7907
  interface ArchiveDeliberatelyDialogProps {
7900
7908
  tableId: Uuid;
7901
7909
  name: string;
7902
7910
  slug: string;
7903
- declaredIn: string | null;
7911
+ declaredIn: null | string;
7904
7912
  open: boolean;
7905
7913
  onOpenChange: (open: boolean) => void;
7906
7914
  onArchived?: ((progress: TableArchiveProgress) => void) | undefined;
@@ -7928,7 +7936,7 @@ interface TemplatePreviewProps {
7928
7936
  }
7929
7937
  /** The in-memory store for a spec, built once per spec and day. */
7930
7938
  declare function useTemplatePreview(spec: TemplateSpec, today?: string): TemplatePreview$1;
7931
- declare function TemplatePreview({ spec, today, initialTable, host, aside, booking, className }: TemplatePreviewProps): react.JSX.Element | null;
7939
+ declare function TemplatePreview({ spec, today, initialTable, host, aside, booking, className }: TemplatePreviewProps): null | react.JSX.Element;
7932
7940
 
7933
7941
  /** One presented column, as the drill door names it. */
7934
7942
  interface EntityColumn {
@@ -7966,11 +7974,11 @@ interface FieldLookCheck {
7966
7974
  * the same table (`contrastWith.readsOnField`). Absent: the look uses the column's own options.
7967
7975
  */
7968
7976
  interface LookContext {
7969
- ground?: {
7977
+ ground?: null | {
7970
7978
  light?: string;
7971
7979
  dark?: string;
7972
7980
  label: string;
7973
- } | null;
7981
+ };
7974
7982
  }
7975
7983
  interface FieldLookViewProps {
7976
7984
  value: unknown;
@@ -8004,7 +8012,7 @@ interface FieldLook {
8004
8012
  /** Register (or replace) the look for a format id. Returns the id. */
8005
8013
  declare function registerFieldLook(look: FieldLook): string;
8006
8014
  /** The look drawn for this format, or undefined: the format's own drawing. */
8007
- declare function fieldLookFor(formatId: string | null | undefined): FieldLook | undefined;
8015
+ declare function fieldLookFor(formatId: null | string | undefined): FieldLook | undefined;
8008
8016
  /** Every registered look id, in registration order. */
8009
8017
  declare function fieldLookIds(): string[];
8010
8018
  /** The checks a look makes of one value; none when the format has no look or no checks. */
@@ -8025,11 +8033,11 @@ declare function Swatch({ color, className }: {
8025
8033
  * named in `contrastWith.readsOnField`) when the column reads per row, else the column's fixed
8026
8034
  * ground. A per-row column whose row names no ground has none — and is not checked.
8027
8035
  */
8028
- declare function colorPairGround(format: FieldFormatConfig, context?: LookContext): {
8036
+ declare function colorPairGround(format: FieldFormatConfig, context?: LookContext): null | {
8029
8037
  light?: string;
8030
8038
  dark?: string;
8031
8039
  label: string;
8032
- } | null;
8040
+ };
8033
8041
  /** The contrast of each side of a pair against its ground (`colorPairGround`), when it has one. */
8034
8042
  declare function colorPairContrast(pair: ColorPair, format: FieldFormatConfig, context?: LookContext): {
8035
8043
  light?: number;
@@ -8063,8 +8071,8 @@ declare const THEME_GROUNDS: {
8063
8071
  /** One theme's shadow on that theme's own ground. */
8064
8072
  declare function ShadowSwatch({ layers, theme, size }: {
8065
8073
  layers: readonly ShadowLayer[];
8066
- theme: "light" | "dark";
8067
- size?: "sm" | "lg";
8074
+ theme: "dark" | "light";
8075
+ size?: "lg" | "sm";
8068
8076
  }): react.JSX.Element;
8069
8077
  /** The layers of ONE shadow: x, y, blur, spread and color per layer; add or remove a layer. */
8070
8078
  declare function ShadowLayersEditor({ layers, onChange, disabled, id, label, }: {
@@ -8085,7 +8093,7 @@ declare const HTML_SAMPLE_LOOK_ID = "html_sample";
8085
8093
  /** A row name as a CSS variable name: "Card Foreground" → "card-foreground". */
8086
8094
  declare function tokenName(raw: string): string;
8087
8095
  /** The variables one table holds, per theme. Pure: rows + their fields in, variables out. */
8088
- declare function tokensFromRows(rows: readonly ReadRow$1[], fields: readonly Field$1[], titleField?: string | null): SampleTokenSet;
8096
+ declare function tokensFromRows(rows: readonly ReadRow$1[], fields: readonly Field$1[], titleField?: null | string): SampleTokenSet;
8089
8097
  /** Merge token sets in order; a later table wins a name both hold. */
8090
8098
  declare function mergeTokenSets(sets: readonly SampleTokenSet[]): SampleTokenSet;
8091
8099
  /**
@@ -8104,12 +8112,12 @@ declare function TableTokensProvider({ tableIds, children }: {
8104
8112
  * (`entityTable.tsx`). `filter` shows one parent's rows (a component table's `{ brand_id }`).
8105
8113
  */
8106
8114
  type SectionSource = {
8107
- kind: "table";
8108
- id: Uuid$1;
8109
- } | {
8110
8115
  kind: "entity";
8111
8116
  token: string;
8112
8117
  filter?: EntityFilter | undefined;
8118
+ } | {
8119
+ kind: "table";
8120
+ id: Uuid$1;
8113
8121
  };
8114
8122
  interface SectionCardProps {
8115
8123
  source: SectionSource;
@@ -8118,13 +8126,13 @@ interface SectionCardProps {
8118
8126
  /** One line under the heading. */
8119
8127
  description?: string | undefined;
8120
8128
  /** The field the rows are grouped by. Default: a column named group / set / section / category; `null` = no groups. */
8121
- groupBy?: string | null | undefined;
8129
+ groupBy?: null | string | undefined;
8122
8130
  /** The field that names each row. Default: the table's title field, else name / title / token. */
8123
8131
  nameField?: string | undefined;
8124
8132
  /** The value columns, in order. Default: every other column. */
8125
8133
  valueFields?: readonly string[] | undefined;
8126
8134
  /** The row's usage note. Default: a column named usage_note / note / notes; `null` = none. */
8127
- noteField?: string | null | undefined;
8135
+ noteField?: null | string | undefined;
8128
8136
  /** What one row is called on the Add dialog ("color", "spacing value"). Default "entry". */
8129
8137
  noun?: string | undefined;
8130
8138
  /** A look's check offered a fix and the person asked for it. Absent: the fix button is absent. */
@@ -8144,7 +8152,7 @@ interface SectionCardProps {
8144
8152
  className?: string | undefined;
8145
8153
  }
8146
8154
  /** The columns the card draws, from what the host named and what the table holds. */
8147
- declare function sectionColumns(fields: readonly Field$1[], titleField: string | null | undefined, props: Pick<SectionCardProps, "groupBy" | "nameField" | "valueFields" | "noteField">): {
8155
+ declare function sectionColumns(fields: readonly Field$1[], titleField: null | string | undefined, props: Pick<SectionCardProps, "groupBy" | "nameField" | "noteField" | "valueFields">): {
8148
8156
  name: string | undefined;
8149
8157
  group: string | undefined;
8150
8158
  note: string | undefined;
@@ -8165,7 +8173,7 @@ type EntitySectionSource = {
8165
8173
  filter?: EntityFilter | undefined;
8166
8174
  };
8167
8175
  /** The columns an entity section draws: what the host named, else the door's columns by their usual names. */
8168
- declare function entitySectionColumns(columns: readonly Column[], props: Pick<SectionCardProps, "groupBy" | "nameField" | "valueFields" | "noteField">, filter?: EntityFilter | null): {
8176
+ declare function entitySectionColumns(columns: readonly Column[], props: Pick<SectionCardProps, "groupBy" | "nameField" | "noteField" | "valueFields">, filter?: EntityFilter | null): {
8169
8177
  name: Column | undefined;
8170
8178
  group: Column | undefined;
8171
8179
  note: Column | undefined;