@ai-matrx/records-ui 0.116.19 → 0.116.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ - **Build guard moves to the shared `../scripts/check-ships-once.mjs --apart first-page,helpers,data-source` (2026-10-18).** It replaces the private `scripts/check-client-modules-ship-once.mjs` (removed). It checks the client side the same way, and also checks the server side and stamps; the light doors stay apart. Output unchanged. Consumer action: none.
5
6
  - **Package build and current design-system shortcut contract.** The server-safe `/first-page` bindings now emit a complete declaration instead of failing TS4023 on inferred sibling types. Table action chords use the design system's current `formatTapShortcut` export; the prior npm release still imported the removed `formatShortcut` name and broke consumer bundles with current design-system. Consumer action: refresh `@ai-matrx/records-ui` to latest alongside current `@ai-matrx/design-system`.
6
7
  - **"Let AI fill" with Describe image now names the attachment columns it reads.** Setting up a column from the Describe image preset declares `inputs` = the table's attachment column keys (via `@ai-matrx/records` `presetInputs`); before, no `inputs` were sent, the model was shown nothing and every row answered "nothing found". The server shows the model the row's image attachments. Needs `@ai-matrx/records` with `presetInputs`. Consumer action: none.
7
8
  - **A pivot table is a view, and a chart view draws four more shapes (PIVOT-VIEW, 2026-10-18).** New layout `pivot` (`PivotLayout`, pure `pivot.ts`): rows by one Field, columns by another (optional), a count / sum / average / min / max in each cell, and the totals row, totals column and corner asked of the store as their own aggregates (an average of averages is never shown). A cell is a button that opens the records behind it through the host's `openRecords`; the box is reserved from the first frame (`min-h-[16rem]`, skeleton `pivot`) and a narrow screen scrolls under a pinned first column. The chart layout (`chart_kind`) now also draws `area`, `pie` (a donut with no hole: the same component, no middle total), `stacked` (two groups: `column_field` is the stack) and `scatter` (one point per group: `x_field` along, `measure` up, sum or average) through `ChartBlock`'s new optional `shape` prop, with data labels, the legend and the click-through of the other shapes; the chart layout's menu keeps `presentation.chartLabels` and `presentation.chartLegend` on the view. `stackRows`, `BASE_KIND_OF_SHAPE`, `ChartShape`, `pretty` are exported. Needs migration `20261018121500_pivot_a_view_can_be_a_pivot_and_a_chart_can_be_more.sql`. Consumer action: none (a host that lists `PAGE_VIEWS` gains Pivot).
@@ -22,11 +23,53 @@
22
23
  - Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
23
24
  - **New subpath `@ai-matrx/records-ui/data-source`:** `recordsDataSource`, `personActor` and the who-changed words (`whenWords`, `actorWords`, `actorBadge`, `lastChangeSentence`, `SOMEBODY`, `THE_SYSTEM`) alone. `/helpers` also carries the field-type words, the colour resolver and the table builders, which read `@ai-matrx/records/core`; this entry reaches `@ai-matrx/kit` only, and shares the one data-source cache with `/helpers` and the root. Additive. Consumer action: a shell-reachable service that only binds its supabase client or says when imports from `/data-source`.
24
25
 
25
- ## 0.116.19
26
+ ## 0.116.20
26
27
 
27
28
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
28
29
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
29
30
 
31
+ ## 0.116.19
32
+
33
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
34
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
35
+ Diff: `git diff d9fc54dbbd f3181e5ed5 -- apps/shared/records-ui/src`
36
+
37
+ Changed shipped source files (54):
38
+ - `apps/shared/records-ui/src/BookingBuilder.tsx`
39
+ - `apps/shared/records-ui/src/ChartBlock.tsx`
40
+ - `apps/shared/records-ui/src/ChecklistRunner.tsx`
41
+ - `apps/shared/records-ui/src/CustomFieldsSection.tsx`
42
+ - `apps/shared/records-ui/src/DashboardCanvas.tsx`
43
+ - `apps/shared/records-ui/src/EmbedFrame.tsx`
44
+ - `apps/shared/records-ui/src/FieldEditor.tsx`
45
+ - `apps/shared/records-ui/src/FieldFormatPicker.tsx`
46
+ - `apps/shared/records-ui/src/FieldRetype.tsx`
47
+ - `apps/shared/records-ui/src/FormResultsPanel.tsx`
48
+ - `apps/shared/records-ui/src/FormRunner.tsx`
49
+ - `apps/shared/records-ui/src/FormsPanel.tsx`
50
+ - ...and 42 more
51
+
52
+ ## 0.116.18
53
+
54
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
55
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
56
+ Diff: `git diff 115d07b8f3 d9fc54dbbd -- apps/shared/records-ui/src`
57
+
58
+ Changed shipped source files (71):
59
+ - `apps/shared/records-ui/src/ArchivedDisclosure.tsx`
60
+ - `apps/shared/records-ui/src/BookingBuilder.tsx`
61
+ - `apps/shared/records-ui/src/CalendarLinks.tsx`
62
+ - `apps/shared/records-ui/src/CalendarSubscribe.tsx`
63
+ - `apps/shared/records-ui/src/ChartBlock.tsx`
64
+ - `apps/shared/records-ui/src/ChartLayout.tsx`
65
+ - `apps/shared/records-ui/src/DashboardCanvas.tsx`
66
+ - `apps/shared/records-ui/src/DocTemplate.tsx`
67
+ - `apps/shared/records-ui/src/Enrich.tsx`
68
+ - `apps/shared/records-ui/src/FieldHistoryPanel.tsx`
69
+ - `apps/shared/records-ui/src/FieldRetype.tsx`
70
+ - `apps/shared/records-ui/src/FormBuilder.tsx`
71
+ - ...and 59 more
72
+
30
73
  ## 0.116.17
31
74
 
32
75
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -1678,7 +1678,7 @@ declare function laneFor(table: Table): TableLane;
1678
1678
  */
1679
1679
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1680
1680
 
1681
- 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>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>>>>;
1681
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
1682
1682
 
1683
1683
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1684
1684
 
package/dist/helpers.d.ts CHANGED
@@ -1678,7 +1678,7 @@ declare function laneFor(table: Table): TableLane;
1678
1678
  */
1679
1679
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1680
1680
 
1681
- 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>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>>>>;
1681
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
1682
1682
 
1683
1683
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1684
1684
 
package/dist/index.d.cts CHANGED
@@ -4020,10 +4020,10 @@ declare function announceTableArchived({ notify, client, tableId, name, onRestor
4020
4020
 
4021
4021
  /** What a look may hold, with this package's grid look. */
4022
4022
  type ViewLook = base.ViewLook<GridPresentation>;
4023
- declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>) => Record<string, unknown>;
4024
- declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>;
4025
- 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>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>>>>;
4026
- 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>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4023
+ declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>) => Record<string, unknown>;
4024
+ declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>;
4025
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
4026
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4027
4027
  /** The words of the look bar. One sentence, then the doors. */
4028
4028
  declare const LOOK_WORDS: {
4029
4029
  /** The reason, for a tooltip or a screen reader — never a line on the page (interface-text). */
package/dist/index.d.ts CHANGED
@@ -4020,10 +4020,10 @@ declare function announceTableArchived({ notify, client, tableId, name, onRestor
4020
4020
 
4021
4021
  /** What a look may hold, with this package's grid look. */
4022
4022
  type ViewLook = base.ViewLook<GridPresentation>;
4023
- declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>) => Record<string, unknown>;
4024
- declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>;
4025
- 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>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>>>>;
4026
- 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>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4023
+ declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>) => Record<string, unknown>;
4024
+ declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>;
4025
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
4026
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4027
4027
  /** The words of the look bar. One sentence, then the doors. */
4028
4028
  declare const LOOK_WORDS: {
4029
4029
  /** The reason, for a tooltip or a screen reader — never a line on the page (interface-text). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/records-ui",
3
- "version": "0.116.19",
3
+ "version": "0.116.20",
4
4
  "description": "The thirty-one canonical screens of the AI Matrx record store: grid, generated record form, field editor, table settings, relation picker, peek, views, import/export, custom fields, action inbox, history, comments, forms, charts, documents, record chat, AI field fill, checklists, bookings, offline capture, portals, public pages and embeds. Built on @ai-matrx/design-system's data table, carrying @ai-matrx/alchemy's menu, and reading and writing ONLY through @ai-matrx/records.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -136,13 +136,13 @@
136
136
  "@tanstack/react-query": ">=5.100.0"
137
137
  },
138
138
  "dependencies": {
139
- "@ai-matrx/alchemy": "latest",
140
139
  "@ai-matrx/content-ir": "latest",
141
140
  "@ai-matrx/data": "latest",
142
141
  "@ai-matrx/kit": "latest",
143
142
  "@ai-matrx/print": "latest",
143
+ "@ai-matrx/records": "latest",
144
144
  "@ai-matrx/design-system": "latest",
145
- "@ai-matrx/records": "latest"
145
+ "@ai-matrx/alchemy": "latest"
146
146
  },
147
147
  "devDependencies": {
148
148
  "@arethetypeswrong/cli": "^0.18.5",
@@ -192,7 +192,7 @@
192
192
  "layer": 6
193
193
  },
194
194
  "scripts": {
195
- "build": "pnpm clean && tsup && node ./scripts/stamp-client-boundary.mjs && node ./scripts/check-client-modules-ship-once.mjs && node ./scripts/check-light-entries.mjs && node ../scripts/check-node-env-not-inlined.mjs",
195
+ "build": "pnpm clean && tsup && node ./scripts/stamp-client-boundary.mjs && node ../scripts/check-ships-once.mjs --apart first-page,helpers,data-source && node ./scripts/check-light-entries.mjs && node ../scripts/check-node-env-not-inlined.mjs",
196
196
  "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
197
197
  "check:package": "pnpm check:label-in-name && pnpm build && node ../scripts/check-exports-agreement.mjs && publint && pnpm verify:tarball && node ../scripts/check-tarball-relative-imports.mjs --self-test && node ../scripts/check-tarball-relative-imports.mjs --pack . && node ../scripts/check-package-rules.mjs --self-test && node ../scripts/check-package-rules.mjs .",
198
198
  "check:label-in-name": "node ./scripts/check-label-in-name.mjs --self-test",
@@ -205,5 +205,5 @@
205
205
  "test:record": "RECORDS_UI_RECORD=1 vitest run demo/deterministic.test.tsx",
206
206
  "check:consumer-flags": "tsc --noEmit -p tsconfig.consumer.json"
207
207
  },
208
- "gitHead": "f3181e5ed5ae847b657a4a7b0424cdd68cd96366"
208
+ "gitHead": "1a5be7266f3a9df69341642c5dd48116ed0c411c"
209
209
  }