@ai-matrx/records-ui 0.116.23 → 0.116.25

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 (69) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/README.md +3 -3
  3. package/dist/SaveToTable-P3MPRSCW.js +20 -0
  4. package/dist/{chunk-MUK63ANA.js → chunk-4ZS4WEEE.js} +3 -3
  5. package/dist/chunk-4ZS4WEEE.js.map +1 -0
  6. package/dist/{chunk-SYHUPGCU.js → chunk-6Z537SLG.js} +1 -1
  7. package/dist/{chunk-SYHUPGCU.js.map → chunk-6Z537SLG.js.map} +1 -1
  8. package/dist/{chunk-ODABFEHG.js → chunk-7RSMA3NK.js} +3 -3
  9. package/dist/chunk-7RSMA3NK.js.map +1 -0
  10. package/dist/{chunk-VHZKLE63.js → chunk-FLIERNH7.js} +9 -9
  11. package/dist/chunk-FLIERNH7.js.map +1 -0
  12. package/dist/{chunk-ZNIXJ5RY.js → chunk-KQR2RA4V.js} +3 -3
  13. package/dist/{chunk-WQGFKNE2.js → chunk-OJTJ4HJI.js} +26 -26
  14. package/dist/chunk-OJTJ4HJI.js.map +1 -0
  15. package/dist/{chunk-PPWNFIJ5.js → chunk-OV6QBL5R.js} +2 -2
  16. package/dist/{chunk-PPWNFIJ5.js.map → chunk-OV6QBL5R.js.map} +1 -1
  17. package/dist/{chunk-5IX4BL72.js → chunk-QBMUTXTQ.js} +2 -2
  18. package/dist/{chunk-5IX4BL72.js.map → chunk-QBMUTXTQ.js.map} +1 -1
  19. package/dist/{chunk-MCDA6L7E.js → chunk-TC5S4VOW.js} +2 -2
  20. package/dist/chunk-TC5S4VOW.js.map +1 -0
  21. package/dist/{chunk-FECWKOWW.js → chunk-W7GR64CB.js} +1 -1
  22. package/dist/chunk-W7GR64CB.js.map +1 -0
  23. package/dist/{chunk-FHL4GG6R.js → chunk-WCQSJPLS.js} +2 -2
  24. package/dist/chunk-WCQSJPLS.js.map +1 -0
  25. package/dist/data-source.cjs.map +1 -1
  26. package/dist/data-source.d.cts +1 -1
  27. package/dist/data-source.d.ts +1 -1
  28. package/dist/data-source.js.map +1 -1
  29. package/dist/first-page.cjs.map +1 -1
  30. package/dist/first-page.d.cts +1 -1
  31. package/dist/first-page.d.ts +1 -1
  32. package/dist/first-page.js.map +1 -1
  33. package/dist/helpers.cjs +4 -4
  34. package/dist/helpers.cjs.map +1 -1
  35. package/dist/helpers.d.cts +9 -9
  36. package/dist/helpers.d.ts +9 -9
  37. package/dist/helpers.js +4 -4
  38. package/dist/helpers.js.map +1 -1
  39. package/dist/html-frame.cjs.map +1 -1
  40. package/dist/html-frame.d.cts +1 -1
  41. package/dist/html-frame.d.ts +1 -1
  42. package/dist/html-frame.js +1 -1
  43. package/dist/index.cjs +603 -251
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +162 -115
  46. package/dist/index.d.ts +162 -115
  47. package/dist/index.js +590 -224
  48. package/dist/index.js.map +1 -1
  49. package/dist/object-actions.cjs +2 -2
  50. package/dist/object-actions.cjs.map +1 -1
  51. package/dist/object-actions.js +3 -3
  52. package/dist/pickers.cjs +23 -23
  53. package/dist/pickers.cjs.map +1 -1
  54. package/dist/pickers.js +8 -8
  55. package/dist/skeleton.cjs.map +1 -1
  56. package/dist/skeleton.js +4 -4
  57. package/dist/table-shape.cjs.map +1 -1
  58. package/dist/table-shape.js +1 -1
  59. package/package.json +3 -3
  60. package/dist/SaveToTable-PGOQVYVS.js +0 -20
  61. package/dist/chunk-FECWKOWW.js.map +0 -1
  62. package/dist/chunk-FHL4GG6R.js.map +0 -1
  63. package/dist/chunk-MCDA6L7E.js.map +0 -1
  64. package/dist/chunk-MUK63ANA.js.map +0 -1
  65. package/dist/chunk-ODABFEHG.js.map +0 -1
  66. package/dist/chunk-VHZKLE63.js.map +0 -1
  67. package/dist/chunk-WQGFKNE2.js.map +0 -1
  68. /package/dist/{SaveToTable-PGOQVYVS.js.map → SaveToTable-P3MPRSCW.js.map} +0 -0
  69. /package/dist/{chunk-ZNIXJ5RY.js.map → chunk-KQR2RA4V.js.map} +0 -0
@@ -745,7 +745,7 @@ interface RecordsUiHost {
745
745
  * file picker — Airtable's "Attach" over your own files — rather than a second browser this
746
746
  * package would invent. `multiple`: the column holds several files; `accept`: the native
747
747
  * `accept` list, when the column restricts types. Resolves the host's file ids (the store turns
748
- * each into its kernel File record at the write door), or `null` when the person cancelled.
748
+ * each into its kernel File record at the write door), or `null` when the person canceled.
749
749
  *
750
750
  * Unbound, the editor offers `upload` alone; with neither bound it says no file store is bound
751
751
  * (`NO_UPLOAD_REASON`) — never a dead button.
@@ -972,8 +972,8 @@ interface RecordsUiHost {
972
972
  columnAccess?: (subject: ColumnAccessSubject) => ReactNode;
973
973
  /**
974
974
  * OPTIONAL. WHO ELSE IS LOOKING AT THIS TABLE (AIRTABLE-PARITY row 183). `join` opens the table's presence
975
- * room and answers the other people in it (name, avatar, colour, the cell each has selected); the table's
976
- * toolbar draws their avatars and the grid outlines each person's selected cell in their colour. The host
975
+ * room and answers the other people in it (name, avatar, color, the cell each has selected); the table's
976
+ * toolbar draws their avatars and the grid outlines each person's selected cell in their color. The host
977
977
  * owns the transport - matrx-frontend binds `createRecordsPresencePort` from `@ai-matrx/records/realtime` on its
978
978
  * one realtime manager. Unbound, nothing is drawn (never a dead control).
979
979
  */
@@ -1061,7 +1061,7 @@ interface RecordsUiHost {
1061
1061
  * a host normally opens its composer with it already typed, so the person
1062
1062
  * edits rather than starts.
1063
1063
  *
1064
- * Unbound, the "Ask an agent" button is ABSENT — not greyed — and every
1064
+ * Unbound, the "Ask an agent" button is ABSENT — not grayed — and every
1065
1065
  * builder's empty state says so in one sentence naming this port, with the
1066
1066
  * hand-built way still right there. The product walk of 2026-09-21 found the
1067
1067
  * opposite arrangement (the agent named and no builder at all), which left a
@@ -1280,7 +1280,7 @@ declare function actorWords(actor: HistoryActor, resolve?: ResolveName | undefin
1280
1280
  declare function whenWords(at: string, now?: Date): string;
1281
1281
  declare function lastChangeSentence(fieldLabel: string, entry: FieldHistoryEntry | null, resolve?: ResolveName | undefined): string;
1282
1282
  /**
1283
- * The SHORT form the badge wears once it knows: a name a person recognises at a
1283
+ * The SHORT form the badge wears once it knows: a name a person recognizes at a
1284
1284
  * glance, in the width of a cell corner. Never a uuid, never an email's domain.
1285
1285
  */
1286
1286
  declare function actorBadge(actor: HistoryActor, resolve?: ResolveName | undefined): string;
@@ -1331,7 +1331,7 @@ type LookFieldKind = "time" | "color_pair" | "measure" | "type_style" | "shadow"
1331
1331
  * Field whose expression is the system node (`fx.autonumber`, `fx.created_time`,
1332
1332
  * `fx.modified_time`, `config.system` naming which), so nobody types into them and every reader
1333
1333
  * that serves a worked-out value serves them. `custom.field_kinds()` does not publish them,
1334
- * because each is a formula, not a behaviour of its own. So they are named here, sent as their
1334
+ * because each is a formula, not a behavior of its own. So they are named here, sent as their
1335
1335
  * word through the `{ type }` arm, and a new autonumber column numbers the records already in
1336
1336
  * the table through `custom.autonumber_backfill`.
1337
1337
  */
@@ -1341,7 +1341,7 @@ declare const PARITY_LABEL: Record<ParityFieldType, string>;
1341
1341
  /** The "made of" sentence the store itself publishes, for the field editor's help text. */
1342
1342
  declare const PARITY_MADE_OF: Record<string, string>;
1343
1343
  /**
1344
- * Plain text and plain number are behaviours with no parity type of their own.
1344
+ * Plain text and plain number are behaviors with no parity type of their own.
1345
1345
  *
1346
1346
  * 🚨 THIS IS NOW AN ALIAS, AND THAT IS THE POINT (TAILS-3, 2026-09-21). The
1347
1347
  * classifier moved into `@ai-matrx/records` as `FieldKind` so that the editor a
@@ -1353,7 +1353,7 @@ declare const PARITY_MADE_OF: Record<string, string>;
1353
1353
  type EditorKind = FieldKind;
1354
1354
  /**
1355
1355
  * Which editor one Field wants. Reads the Field's own declaration only — the
1356
- * behaviour, the modifiers, the format, the relation target and the config —
1356
+ * behavior, the modifiers, the format, the relation target and the config —
1357
1357
  * because those are what the store stores, and a screen that guessed from a
1358
1358
  * value would draw a different editor for an empty record.
1359
1359
  *
@@ -1550,7 +1550,7 @@ type GridPresentation = {
1550
1550
  /**
1551
1551
  * THE BOARD'S OWN LOOK (lane BOARD-SWIMLANES, Notion's board options). All kept on the view, all
1552
1552
  * read only by the kanban layout. Absent means the board's default: columns wear their choice's
1553
- * colour, each heading shows its count, empty columns and lanes are drawn, cards are medium with
1553
+ * color, each heading shows its count, empty columns and lanes are drawn, cards are medium with
1554
1554
  * no preview.
1555
1555
  * boardSize card size: sets the column width, the preview's height and, small, drops the card's extras
1556
1556
  * boardPreview the FILE field drawn as a cover at the top of each card (absent = no preview)
package/dist/helpers.d.ts CHANGED
@@ -745,7 +745,7 @@ interface RecordsUiHost {
745
745
  * file picker — Airtable's "Attach" over your own files — rather than a second browser this
746
746
  * package would invent. `multiple`: the column holds several files; `accept`: the native
747
747
  * `accept` list, when the column restricts types. Resolves the host's file ids (the store turns
748
- * each into its kernel File record at the write door), or `null` when the person cancelled.
748
+ * each into its kernel File record at the write door), or `null` when the person canceled.
749
749
  *
750
750
  * Unbound, the editor offers `upload` alone; with neither bound it says no file store is bound
751
751
  * (`NO_UPLOAD_REASON`) — never a dead button.
@@ -972,8 +972,8 @@ interface RecordsUiHost {
972
972
  columnAccess?: (subject: ColumnAccessSubject) => ReactNode;
973
973
  /**
974
974
  * OPTIONAL. WHO ELSE IS LOOKING AT THIS TABLE (AIRTABLE-PARITY row 183). `join` opens the table's presence
975
- * room and answers the other people in it (name, avatar, colour, the cell each has selected); the table's
976
- * toolbar draws their avatars and the grid outlines each person's selected cell in their colour. The host
975
+ * room and answers the other people in it (name, avatar, color, the cell each has selected); the table's
976
+ * toolbar draws their avatars and the grid outlines each person's selected cell in their color. The host
977
977
  * owns the transport - matrx-frontend binds `createRecordsPresencePort` from `@ai-matrx/records/realtime` on its
978
978
  * one realtime manager. Unbound, nothing is drawn (never a dead control).
979
979
  */
@@ -1061,7 +1061,7 @@ interface RecordsUiHost {
1061
1061
  * a host normally opens its composer with it already typed, so the person
1062
1062
  * edits rather than starts.
1063
1063
  *
1064
- * Unbound, the "Ask an agent" button is ABSENT — not greyed — and every
1064
+ * Unbound, the "Ask an agent" button is ABSENT — not grayed — and every
1065
1065
  * builder's empty state says so in one sentence naming this port, with the
1066
1066
  * hand-built way still right there. The product walk of 2026-09-21 found the
1067
1067
  * opposite arrangement (the agent named and no builder at all), which left a
@@ -1280,7 +1280,7 @@ declare function actorWords(actor: HistoryActor, resolve?: ResolveName | undefin
1280
1280
  declare function whenWords(at: string, now?: Date): string;
1281
1281
  declare function lastChangeSentence(fieldLabel: string, entry: FieldHistoryEntry | null, resolve?: ResolveName | undefined): string;
1282
1282
  /**
1283
- * The SHORT form the badge wears once it knows: a name a person recognises at a
1283
+ * The SHORT form the badge wears once it knows: a name a person recognizes at a
1284
1284
  * glance, in the width of a cell corner. Never a uuid, never an email's domain.
1285
1285
  */
1286
1286
  declare function actorBadge(actor: HistoryActor, resolve?: ResolveName | undefined): string;
@@ -1331,7 +1331,7 @@ type LookFieldKind = "time" | "color_pair" | "measure" | "type_style" | "shadow"
1331
1331
  * Field whose expression is the system node (`fx.autonumber`, `fx.created_time`,
1332
1332
  * `fx.modified_time`, `config.system` naming which), so nobody types into them and every reader
1333
1333
  * that serves a worked-out value serves them. `custom.field_kinds()` does not publish them,
1334
- * because each is a formula, not a behaviour of its own. So they are named here, sent as their
1334
+ * because each is a formula, not a behavior of its own. So they are named here, sent as their
1335
1335
  * word through the `{ type }` arm, and a new autonumber column numbers the records already in
1336
1336
  * the table through `custom.autonumber_backfill`.
1337
1337
  */
@@ -1341,7 +1341,7 @@ declare const PARITY_LABEL: Record<ParityFieldType, string>;
1341
1341
  /** The "made of" sentence the store itself publishes, for the field editor's help text. */
1342
1342
  declare const PARITY_MADE_OF: Record<string, string>;
1343
1343
  /**
1344
- * Plain text and plain number are behaviours with no parity type of their own.
1344
+ * Plain text and plain number are behaviors with no parity type of their own.
1345
1345
  *
1346
1346
  * 🚨 THIS IS NOW AN ALIAS, AND THAT IS THE POINT (TAILS-3, 2026-09-21). The
1347
1347
  * classifier moved into `@ai-matrx/records` as `FieldKind` so that the editor a
@@ -1353,7 +1353,7 @@ declare const PARITY_MADE_OF: Record<string, string>;
1353
1353
  type EditorKind = FieldKind;
1354
1354
  /**
1355
1355
  * Which editor one Field wants. Reads the Field's own declaration only — the
1356
- * behaviour, the modifiers, the format, the relation target and the config —
1356
+ * behavior, the modifiers, the format, the relation target and the config —
1357
1357
  * because those are what the store stores, and a screen that guessed from a
1358
1358
  * value would draw a different editor for an empty record.
1359
1359
  *
@@ -1550,7 +1550,7 @@ type GridPresentation = {
1550
1550
  /**
1551
1551
  * THE BOARD'S OWN LOOK (lane BOARD-SWIMLANES, Notion's board options). All kept on the view, all
1552
1552
  * read only by the kanban layout. Absent means the board's default: columns wear their choice's
1553
- * colour, each heading shows its count, empty columns and lanes are drawn, cards are medium with
1553
+ * color, each heading shows its count, empty columns and lanes are drawn, cards are medium with
1554
1554
  * no preview.
1555
1555
  * boardSize card size: sets the column width, the preview's height and, small, drops the card's extras
1556
1556
  * boardPreview the FILE field drawn as a cover at the top of each card (absent = no preview)
package/dist/helpers.js CHANGED
@@ -144,7 +144,7 @@ function sentenceFor(what, level) {
144
144
  read: "open this",
145
145
  comment: "leave a comment",
146
146
  write: "change anything here",
147
- organise: "organise this",
147
+ organise: "organize this",
148
148
  remove: "delete this",
149
149
  share: "pass this on to somebody else",
150
150
  structure: "change the columns of this table"
@@ -363,7 +363,7 @@ var FIELD_TYPE_CATALOGUE = [
363
363
  { id: "phone", group: "Words", label: "Phone number", explanation: "A phone number, checked as you type." },
364
364
  { id: "url", group: "Words", label: "Link", explanation: "A web address that opens in a new tab when you click it." },
365
365
  { id: "address", group: "Words", label: "Address", explanation: "A street address in parts, opened in maps." },
366
- { id: "color_pair", group: "Words", label: "Colour", explanation: "A colour for light and dark, with a readability check." },
366
+ { id: "color_pair", group: "Words", label: "Color", explanation: "A color for light and dark, with a readability check." },
367
367
  { id: "type_style", group: "Words", label: "Type style", explanation: "A font, weight and size, shown as a sample." },
368
368
  { id: "shadow", group: "Words", label: "Shadow", explanation: "A shadow, shown on a card." },
369
369
  { id: "json", group: "Words", label: "JSON", explanation: "Structured data \u2014 a list or a set of named values \u2014 shown folded." },
@@ -457,7 +457,7 @@ function fieldTypeLabel(field) {
457
457
  const known = fieldTypeChoice(kind)?.label;
458
458
  if (known) return field.multi && kind !== "multi_select" ? `${known} (many)` : known;
459
459
  const plain = {
460
- // `boolean` is the BEHAVIOUR word; `checkbox` is the type a person picks. Both are
460
+ // `boolean` is the BEHAVIOR word; `checkbox` is the type a person picks. Both are
461
461
  // written the way a person writes them, never as a raw token.
462
462
  boolean: "Yes / no",
463
463
  date: "Date",
@@ -1062,7 +1062,7 @@ function refusalForAPerson(error) {
1062
1062
  const said = (messageIsForEngineers ? "" : message.kept ?? "").trim();
1063
1063
  const forEngineers = [
1064
1064
  error.sqlstate ? `SQLSTATE ${error.sqlstate}.` : null,
1065
- // The client's own note about a class it did not recognise, or a call that
1065
+ // The client's own note about a class it did not recognize, or a call that
1066
1066
  // never reached the store. It is rendered out of sight, never as a sentence.
1067
1067
  error.diagnostic ? error.diagnostic : null,
1068
1068
  messageIsForEngineers ? `Message: ${error.message}` : null,