@ai-matrx/records-ui 0.116.67 → 0.116.68

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 (33) hide show
  1. package/CHANGELOG.md +63 -42
  2. package/dist/{SaveToTable-OYJH3OKN.js → SaveToTable-GU4RF65M.js} +3 -3
  3. package/dist/{chunk-O5K6Y3N3.js → chunk-4CI2HLX3.js} +1 -1
  4. package/dist/chunk-4CI2HLX3.js.map +1 -0
  5. package/dist/{chunk-NBL26U5K.js → chunk-6BTGCYPK.js} +2 -2
  6. package/dist/{chunk-EACZUXJO.js → chunk-6Q2RJEN5.js} +2 -2
  7. package/dist/{chunk-57CGHFPO.js → chunk-BWVNQYNC.js} +9 -9
  8. package/dist/chunk-BWVNQYNC.js.map +1 -0
  9. package/dist/{chunk-TEYXG4XD.js → chunk-K7OX6RG6.js} +1 -1
  10. package/dist/chunk-K7OX6RG6.js.map +1 -0
  11. package/dist/{chunk-W6FX3XVF.js → chunk-QNI75ZHU.js} +2 -2
  12. package/dist/helpers.cjs.map +1 -1
  13. package/dist/helpers.js.map +1 -1
  14. package/dist/html-frame.cjs.map +1 -1
  15. package/dist/html-frame.js +1 -1
  16. package/dist/index.cjs +58 -49
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +3 -3
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.js +67 -58
  21. package/dist/index.js.map +1 -1
  22. package/dist/pickers.cjs +4 -4
  23. package/dist/pickers.cjs.map +1 -1
  24. package/dist/pickers.js +4 -4
  25. package/dist/skeleton.js +3 -3
  26. package/package.json +6 -6
  27. package/dist/chunk-57CGHFPO.js.map +0 -1
  28. package/dist/chunk-O5K6Y3N3.js.map +0 -1
  29. package/dist/chunk-TEYXG4XD.js.map +0 -1
  30. /package/dist/{SaveToTable-OYJH3OKN.js.map → SaveToTable-GU4RF65M.js.map} +0 -0
  31. /package/dist/{chunk-NBL26U5K.js.map → chunk-6BTGCYPK.js.map} +0 -0
  32. /package/dist/{chunk-EACZUXJO.js.map → chunk-6Q2RJEN5.js.map} +0 -0
  33. /package/dist/{chunk-W6FX3XVF.js.map → chunk-QNI75ZHU.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ - **A person who may not add a custom field sees "Add field" disabled, with the reason as its tooltip (brand Overview review, 2026-10-21).** `CustomFieldsSection` printed the store's refusal ("Adding a column to … changes it for everybody in this organization …") as a paragraph on every record page; it is now the tooltip (and screen-reader text) of a disabled "Add field" in its usual place. "Make your own table" is unchanged. Guard: the T1.2 clause in `a-record-page-adds-a-field-with-the-tables-own-palette.test.tsx` (red before: no Add field). Consumer action: none.
6
+ - **US spelling: the British spelling of "color" no longer exists in this package (Arman, 2026-10-21).** Every label, template string, comment, identifier, CSS class/variable and test name that spelled it the British way now says color. Guard: `design-system/src/us-spelling.test.ts` scans all of `apps/` for the word. Consumer action: none for imports; if you matched on a British-spelled identifier, class or CSS variable from this package, use the `color` spelling; update the package.
5
7
  - **An empty section can be quiet (2026-10-21).** `SectionCard` takes `empty`: `"line"` (default) says "Nothing here yet."; `"quiet"` draws the header and its Add alone, for a page of many sections that start empty together (a design system board the AI fills), so the sentence is never repeated down the page. `SectionEmpty` is exported from `EntitySectionCard`. Guard: `an-empty-section-card-can-be-quiet.test.tsx` (red before: no `empty` option). Consumer action: none.
6
8
  - **A refused reference search is never drawn as an empty list (lane LINK-PICKER, 2026-10-20).** The entity-reference picker (`EntityReferenceControl`, the "Pick" on a column that points at a platform kind) drew the store's refusal AND, under it, "There is no <kind> you can open yet"; on a custom row's Pay period column a person saw a dead picker. When the search door refuses, only the refusal is drawn; "there is none" stays for a search that answered an empty list. The refusal itself came from the store (`custom.entity_reference_search` could not search a kind with no title column; fixed by migrations `linkpicker_a`, `_b`, `_c`). Guard: `a-refused-reference-search-is-never-an-empty-list.test.tsx` (red before). Consumer action: none.
7
9
  - **A hook that reads the store never drops a refusal (lane TABLEFACTS-SILENT, 2026-10-19).** `usePublicReadOnly` read a timed-out `table_facts` as "not public" and said nothing; thirteen sibling hooks did the same with their own reads (`useStageField`, `useFarFields`, `useStructureHidden`, `useTableDecorations`, `useChoiceOptions`, `useColumnSummaries` operations, `useLinkGroupNamer`, `useFormulaReadings`, `usePickerTables`, `useWholeTableCount`, `useRecordVersion`, `useAddedRows`, `useMemberQuestion`, `useNames`, the value counts). They now read through one shared seat (`readRefusals.tsx`: `askWithOneRetry`, `useReadRefusal`, `useReadAgain`): a refused read is asked once more by itself, then said in place as the shared timeout sentence with Try again by `ReadRefusalDock` (fixed over the page, so nothing moves; mounted by `TablePage` and `PageCanvas`), and cleared when an answer lands. Guard: `a-hook-that-reads-the-store-never-swallows-a-refusal.test.tsx` (red on 13 hooks before). Consumer action: none. Needs `@ai-matrx/records` whose memory store answers `table_facts` (a template preview otherwise shows the refusal).
@@ -25,27 +27,46 @@
25
27
  - **"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.
26
28
  - **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).
27
29
 
28
- - **The `html_sample` look: a component drawn as it looks (2026-10-17).** A column shown as "HTML sample" draws its HTML in `HtmlSampleFrame` — sandboxed markup and CSS only (`sandbox="allow-same-origin"`, never `allow-scripts`; a CSP that loads only inline styles, images and fonts), seamless (no border, transparent, the host's colour scheme, no inner scroll) and as tall as its content. The sample gets the design tokens as CSS variables (`SAMPLE_TOKEN_NAMES`: `--background`, `--foreground`, `--primary`, `--border`, `--radius`…) from the host page, or from `HtmlSampleTokensProvider`; the theme follows the host live. Editor: the sample, "</>" opens its HTML with a live preview (Done / Escape return). Check: fixed colours instead of tokens, with a "Use tokens" fix ask. `HtmlSampleFrame` ships alone as the new light subpath `@ai-matrx/records-ui/html-frame` (react + cn only) for any host drawing written HTML seamlessly. Consumer action: none.
30
+ - **The `html_sample` look: a component drawn as it looks (2026-10-17).** A column shown as "HTML sample" draws its HTML in `HtmlSampleFrame` — sandboxed markup and CSS only (`sandbox="allow-same-origin"`, never `allow-scripts`; a CSP that loads only inline styles, images and fonts), seamless (no border, transparent, the host's color scheme, no inner scroll) and as tall as its content. The sample gets the design tokens as CSS variables (`SAMPLE_TOKEN_NAMES`: `--background`, `--foreground`, `--primary`, `--border`, `--radius`…) from the host page, or from `HtmlSampleTokensProvider`; the theme follows the host live. Editor: the sample, "</>" opens its HTML with a live preview (Done / Escape return). Check: fixed colors instead of tokens, with a "Use tokens" fix ask. `HtmlSampleFrame` ships alone as the new light subpath `@ai-matrx/records-ui/html-frame` (react + cn only) for any host drawing written HTML seamlessly. Consumer action: none.
29
31
 
30
32
  - **The URL-cell link preview shows the site's real icon** even when the page metadata carries none (falls back to Google / DuckDuckGo favicons). Consumer action: none.
31
33
 
32
- - **A ring of many slices is visible again; a share never wraps.** Past 24 slices a donut's gap is half of each slice's share (`donutGap`, exported) and its slices draw no outline — before, a fixed 1° gap plus recharts' white 1px outline left a 200-group ring blank around its number. The legend's share column no longer wraps "23.5 %" onto two lines in a narrow card. Guard: `src/a-donut-says-the-hosts-total-and-colours.test.tsx`. Consumer action: none.
33
- - **`ChartBlock` says a host's total, its option colours, and no legend (CHART-CONVERGENCE, 2026-10-17).** Three new optional props, so Spaces draws its database chart (donut included) with ChartBlock and its own donut is deleted: `centerTotal` (the number a `centerValue` donut draws in its middle — the total over every record, or an average / min / max over every record; `null` draws "–"; absent = the drawn groups added up, as before), `groupColors` (a colour per group keyed by its stored value as text, `""` for no value — a choice column's option colours; bars, columns and donut slices and legend rows; single-group, uncompared blocks only) and `legend` (`false` hides the donut legend and the value list under bars / a line; default `true`). New export `colorOfGroup`. Guard: `src/a-donut-says-the-hosts-total-and-colours.test.tsx` (red without the props). Additive. Consumer action: none.
34
- - **Who else is looking at this table (AIRTABLE-PARITY row 183).** New optional host port `presence` on `RecordsUiHost` (`RecordsPresencePort`, bound with `createRecordsPresencePort` from `@ai-matrx/records/realtime`). `TablePage` draws `TablePresence` in its one toolbar row: avatars of the other people (+N past four), and each person's selected cell outlined in their colour; this person's selected cell is told to the others. Exports `TablePresence`, `useTablePresence`, `presenceOutlineCss` and the port types. Unbound: nothing drawn. Guard: `src/a-table-shows-who-else-is-looking.test.tsx`. Additive. Consumer action: bind `presence` to see colleagues.
34
+ - **A ring of many slices is visible again; a share never wraps.** Past 24 slices a donut's gap is half of each slice's share (`donutGap`, exported) and its slices draw no outline — before, a fixed 1° gap plus recharts' white 1px outline left a 200-group ring blank around its number. The legend's share column no longer wraps "23.5 %" onto two lines in a narrow card. Guard: `src/a-donut-says-the-hosts-total-and-colors.test.tsx`. Consumer action: none.
35
+ - **`ChartBlock` says a host's total, its option colors, and no legend (CHART-CONVERGENCE, 2026-10-17).** Three new optional props, so Spaces draws its database chart (donut included) with ChartBlock and its own donut is deleted: `centerTotal` (the number a `centerValue` donut draws in its middle — the total over every record, or an average / min / max over every record; `null` draws "–"; absent = the drawn groups added up, as before), `groupColors` (a color per group keyed by its stored value as text, `""` for no value — a choice column's option colors; bars, columns and donut slices and legend rows; single-group, uncompared blocks only) and `legend` (`false` hides the donut legend and the value list under bars / a line; default `true`). New export `colorOfGroup`. Guard: `src/a-donut-says-the-hosts-total-and-colors.test.tsx` (red without the props). Additive. Consumer action: none.
36
+ - **Who else is looking at this table (AIRTABLE-PARITY row 183).** New optional host port `presence` on `RecordsUiHost` (`RecordsPresencePort`, bound with `createRecordsPresencePort` from `@ai-matrx/records/realtime`). `TablePage` draws `TablePresence` in its one toolbar row: avatars of the other people (+N past four), and each person's selected cell outlined in their color; this person's selected cell is told to the others. Exports `TablePresence`, `useTablePresence`, `presenceOutlineCss` and the port types. Unbound: nothing drawn. Guard: `src/a-table-shows-who-else-is-looking.test.tsx`. Additive. Consumer action: bind `presence` to see colleagues.
35
37
  - **The light entries ship no package root** (records-ui front door, 2026-10-17). 0.116.1's `/helpers` imported `DECLARABLE_FIELD_KINDS` / `newerKindOf` from the `@ai-matrx/records` root (~360 KB, and `undefined` under any host test that mocks the root), and `/skeleton` took `cn` / `Skeleton` from the design-system root. They now read `@ai-matrx/records/field-kinds`, `@ai-matrx/records/views` (`isRuleFilter`), `@ai-matrx/design-system/cn` and `/skeleton`. Guard: `scripts/check-light-entries.mjs`, run by `build` — fails when `/helpers`, `/data-source`, `/skeleton`, `/table-shape` or `/first-page` (or a chunk they reach) imports either root; red on 0.116.1's dist. Needs `@ai-matrx/records` with `isRuleFilter` on `/views` and `@ai-matrx/design-system` with `/skeleton`. Consumer action: none.
36
38
  - **`/helpers` carries every name a host calls outside a screen (records-ui front door, 2026-10-16).** New on `@ai-matrx/records-ui/helpers`: `whatYouMayDo`, `isPage`, `isInterface`, `laneFor`, `platformOwned`, `TableLane`, `bodyFieldOf`, `readLooks`, `viewFromRow`, `VIEW_ADDRESS_KEYS`, `isViewAddressEmpty`, `sameViewAddress`, `viewAddressFromParams`, `viewAddressToParams`, `ViewAddressState`, `ViewAddressSort`, `googleCalendarUrl`, `webcalUrl`, `FIELD_SENSITIVITY_LABEL`, `CUSTOM_FIELD_ADDABLE_TYPES`, `refusalForAPerson`, `codeDependsRefusal`, `announceTableArchived`, `skeletonLayoutFor`, `RECORDS_SKELETON_LAYOUTS`, `RecordsSkeletonLayout`, `endingsFromDocument`, `hiddenFromLink`, `themeFromDocument`, `welcomeFromDocument` (the store's `/forms` readers), `gridContextSnapshot`, `recordActions` and its types. To keep the entry light, the pure parts moved into their own modules (`skeletonLayout.ts`, `viewAddressParams.ts`, `tableLanes.ts`, `bodyField.ts`, `codeDependsRefusal.ts`, `standardFieldChoices.ts`) and `views.ts`, `viewLook.ts`, `viewKeys.ts` lost a `"use client"` they never needed (no React in them). Not moved, because they reach screens or React: `cardWords`, `scalarText` (`values.tsx`), `saveTableDescription` (`@ai-matrx/records/react`), and every hook and provider (`useRecordRights`, `useRecordsUi`, `useRecordLabels`, `useRecordActionHost`, `RecordsUiProvider`, `RecordLabelProvider`) — they read contexts only the screens provide. The root still exports every name it exported. Guard: `helpers-entry-is-light.test.tsx` (green). Consumer action: new names on /helpers — a host file that imports one of them from the root can take it from `/helpers` instead.
37
39
  - **New subpath `@ai-matrx/records-ui/skeleton`:** `RecordsSkeleton`, `TablePageSkeleton`, `useRememberedPageRows`, `useRememberedLayout`, `skeletonLayoutFor` and the skeleton constants, without the root. It is in the split client group, so it shares its one copy of `RecordsSkeleton.tsx` with the root (593 B entry over ~46 KB of shared chunks; React and the design system's data table only). Guard: `skeleton-entry-is-light.test.ts`. Consumer action: a host that loads the root lazily paints `/skeleton` while the root is out.
38
40
  - **Map and Org chart layouts (lane AT-VIEWS).** Two new `ViewSwitcher` layouts, so a saved Map or Org chart keeps its view, filter, share link and interface-page place like every layout. `MapLayout` pins an address or latitude/longitude column (addresses are looked up once through the new optional host port `geocodeAddress` and saved on the record into Latitude/Longitude columns); the picture is the host's `mapCanvas` port (`MapCanvasProps`, with the exported `clusterPins` for dense pins) — this package adds no map library, and without a canvas the located records are listed. `OrgChartLayout` draws a self-link column as a tree (collapse/expand, pan, pinch and button zoom, Fit; loops, missing and multiple bosses and several roots are said above the chart). New exports: `MapLayout`, `OrgChartLayout`, `buildOrgForest`, `layoutOrg`, `clusterPins`, `placeRows`, `MapCanvasProps` and friends. Consumer action: bind `mapCanvas` and `geocodeAddress` on `RecordsUiHost` to get the map picture and address lookup.
39
41
  - **The client entries ship each module once (0.116.0, build only).** `index`, `table-shape`, `object-actions` and `pickers` are now built as one split ESM group: a module two of them reach lives in one shared `chunk-*.js` instead of a copy per entry, and `SaveToTable` (the root's `import()`) is its own lazy chunk. Before: client ESM 3,374,887 B in 4 files, `dist/index.js` 2,710,479 B as one module, `dist/pickers.js` 623,095 B re-inlining 89 of the same source files. After: 2,698,094 B in 12 files, largest `index.js` 1,849,502 B, `pickers.js` 912 B. Every client file carries `"use client"`; `first-page`, `helpers` and `data-source` are unchanged (no banner, shaken). CJS stays unsplit. Every export path and every exported name is identical (scripted, ESM and CJS). Guard: `scripts/check-client-modules-ship-once.mjs`, run by `build`, fails when one source file sits in more than one client file (red on the old build: 90 modules). Consumer action: none — same exports.
40
- - **`/helpers` no longer reaches `@ai-matrx/records/core`.** The field-type words, colour resolver, rights and table builders now read `@ai-matrx/records/field-kinds` (needs `@ai-matrx/records` with that subpath), so importing a helper no longer puts the ~600 KB store client on the host's first paint. Guard: `helpers-entry-is-light.test.tsx` fails if `/helpers` reaches `/core` or the records root. Consumer action: none.
42
+ - **`/helpers` no longer reaches `@ai-matrx/records/core`.** The field-type words, color resolver, rights and table builders now read `@ai-matrx/records/field-kinds` (needs `@ai-matrx/records` with that subpath), so importing a helper no longer puts the ~600 KB store client on the host's first paint. Guard: `helpers-entry-is-light.test.tsx` fails if `/helpers` reaches `/core` or the records root. Consumer action: none.
41
43
  - Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
42
- - **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`.
44
+ - **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 color 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`.
43
45
 
44
- ## 0.116.67
46
+ ## 0.116.68
45
47
 
46
48
  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.
47
49
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
48
50
 
51
+ ## 0.116.67
52
+
53
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
54
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
55
+ Diff: `git diff 4ec002e815 855fdd06c9 -- apps/shared/records-ui/src`
56
+
57
+ Changed shipped source files (2):
58
+ - `apps/shared/records-ui/src/EntitySectionCard.tsx`
59
+ - `apps/shared/records-ui/src/SectionCard.tsx`
60
+
61
+ ## 0.116.66
62
+
63
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
64
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
65
+ Diff: `git diff 2d22605e6d 4ec002e815 -- apps/shared/records-ui/src`
66
+
67
+ Changed shipped source files (1):
68
+ - `apps/shared/records-ui/src/dataSource.ts`
69
+
49
70
  ## 0.116.65
50
71
 
51
72
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -1025,7 +1046,7 @@ Changed shipped source files (9):
1025
1046
  ## 0.115.91
1026
1047
  ### Unreleased
1027
1048
 
1028
- - AT-INTERFACE — **Interfaces** (Airtable Interface Designer parity on the Page model): `InterfaceScreen` (named pages, icon and colour, draft / Publish / Clear changes / History restore, Share, Print), `PageCanvas` (the one canvas `PageScreen` now also draws on), new page elements `layout` (grid, gallery, kanban, calendar, timeline through `ViewSwitcher`), `review` (record review with next/previous and field groups), `number`, `image`, `embed`, field groups on the record panel, "current user" rule (`me_only`), CSV per row element and `printElement`. A viewer outside the organization reads every element through `custom.interface_rows` (`InterfaceDoorProvider`). "Add block" is now "Add element" (`ADD_CHOICES`). Needs `@ai-matrx/records` with `interfaceRead` / `interfaceRows`. Consumer action: mount `InterfaceScreen` at an interface route; nothing changes for existing Pages.
1049
+ - AT-INTERFACE — **Interfaces** (Airtable Interface Designer parity on the Page model): `InterfaceScreen` (named pages, icon and color, draft / Publish / Clear changes / History restore, Share, Print), `PageCanvas` (the one canvas `PageScreen` now also draws on), new page elements `layout` (grid, gallery, kanban, calendar, timeline through `ViewSwitcher`), `review` (record review with next/previous and field groups), `number`, `image`, `embed`, field groups on the record panel, "current user" rule (`me_only`), CSV per row element and `printElement`. A viewer outside the organization reads every element through `custom.interface_rows` (`InterfaceDoorProvider`). "Add block" is now "Add element" (`ADD_CHOICES`). Needs `@ai-matrx/records` with `interfaceRead` / `interfaceRows`. Consumer action: mount `InterfaceScreen` at an interface route; nothing changes for existing Pages.
1029
1050
 
1030
1051
  - The internal `isUserId` helper (a local UUID regex) is gone; every caller uses `@ai-matrx/kit/uuid`'s `isUuidShape`, the same any-version, case-insensitive contract. It was never a public export. No consumer action.
1031
1052
 
@@ -1245,7 +1266,7 @@ No source changes intended and no consumer action required.
1245
1266
  ### Unreleased
1246
1267
 
1247
1268
  - **No native `<select>` left in the package.** The last nine screens (bookings, checklists, form flow, portals, stage rules, notify rules, dashboard shape/width, digest schedule) and the demo shell now use the design system's `Select` (`@ai-matrx/design-system/controls`); the native-select allowlist is empty, so the guard fails on any new one. `NotifyRuleEditor` keeps its form field names through hidden inputs.
1248
- - **`@ai-matrx/records-ui/helpers` — the light door (page-weight campaign, 2026-10-13).** The root entry is one "use client" bundle of every screen (~2.4 MB, the grid and recharts with it), and a host service that imported one helper from it put the whole package on every page. `/helpers` (~25 KB, no React, no "use client", shaken) serves `personActor`, `recordsDataSource`, `setPersonTimeZone` / `getPersonTimeZone` / `personWallNow` / `subscribePersonTimeZone`, `tableRightsAt`, `NO_RIGHTS`, the names (`tableName`, `fieldName`, `recordName`, …), `whenWords` and the other who-changed words, `withheldNoticeOf` / `withheldSentence` / `WITHHELD_WORD`, `fieldTypeLabel` and the parity helpers, `tablePickerEntries` / `isValueSet` / `isKeptTable`, `declareTable` and the table builders, `resolveTableStyle` / `styleFromDecorations`, and the host contract's types (`RecordsUiHost`, `OpenRecordsAsk`, `AgentBuildAsk`, `TableRights`, `PickerTable`, `NewFieldSpec`, …). The root re-exports every name (new: `subscribePersonTimeZone`). The person's zone and the one-data-source-per-client cache moved into realm-wide `globalSlot`s, so `/helpers` and the root share ONE instance though each bundles its own copy of the code. The pure halves were split out of their screens: `dataSource.ts` (from `RecordsMount.tsx`), `personZone.ts` (from `personTime.ts`), `tableRights.ts` (from `host.tsx`), `withheldNotice.ts` (from `withheld.tsx`), `tablePickerEntries.ts` (from `tablePicking.tsx`); `choiceLooks.ts` / `presentation.ts` read their colour values from design-system's pure `data-table/table-style` instead of the data-table root. Guard: `src/helpers-entry-is-light.test.tsx` (the helper graph reaches no React, screen or heavy entry; every helper is also a root export; the zone and the cache are shared by a second copy of the code — red with a module-level `let`). Consumer action: a module that imports only these helpers from the root imports them from `/helpers`.
1269
+ - **`@ai-matrx/records-ui/helpers` — the light door (page-weight campaign, 2026-10-13).** The root entry is one "use client" bundle of every screen (~2.4 MB, the grid and recharts with it), and a host service that imported one helper from it put the whole package on every page. `/helpers` (~25 KB, no React, no "use client", shaken) serves `personActor`, `recordsDataSource`, `setPersonTimeZone` / `getPersonTimeZone` / `personWallNow` / `subscribePersonTimeZone`, `tableRightsAt`, `NO_RIGHTS`, the names (`tableName`, `fieldName`, `recordName`, …), `whenWords` and the other who-changed words, `withheldNoticeOf` / `withheldSentence` / `WITHHELD_WORD`, `fieldTypeLabel` and the parity helpers, `tablePickerEntries` / `isValueSet` / `isKeptTable`, `declareTable` and the table builders, `resolveTableStyle` / `styleFromDecorations`, and the host contract's types (`RecordsUiHost`, `OpenRecordsAsk`, `AgentBuildAsk`, `TableRights`, `PickerTable`, `NewFieldSpec`, …). The root re-exports every name (new: `subscribePersonTimeZone`). The person's zone and the one-data-source-per-client cache moved into realm-wide `globalSlot`s, so `/helpers` and the root share ONE instance though each bundles its own copy of the code. The pure halves were split out of their screens: `dataSource.ts` (from `RecordsMount.tsx`), `personZone.ts` (from `personTime.ts`), `tableRights.ts` (from `host.tsx`), `withheldNotice.ts` (from `withheld.tsx`), `tablePickerEntries.ts` (from `tablePicking.tsx`); `choiceLooks.ts` / `presentation.ts` read their color values from design-system's pure `data-table/table-style` instead of the data-table root. Guard: `src/helpers-entry-is-light.test.tsx` (the helper graph reaches no React, screen or heavy entry; every helper is also a root export; the zone and the cache are shared by a second copy of the code — red with a module-level `let`). Consumer action: a module that imports only these helpers from the root imports them from `/helpers`.
1249
1270
 
1250
1271
  ## 0.115.70
1251
1272
 
@@ -1938,7 +1959,7 @@ No source changes intended and no consumer action required.
1938
1959
  ## 0.113.4
1939
1960
  ### Unreleased
1940
1961
 
1941
- SPACES-ASKS. A Status choice with no colour of its own wears its group's colour wherever a status renders (grid cell, board
1962
+ SPACES-ASKS. A Status choice with no color of its own wears its group's color wherever a status renders (grid cell, board
1942
1963
  column, card, record page, pickers): To-do grey, In progress blue, Complete green (`statusGroupColor`, read by `storedChoiceColor`;
1943
1964
  a choice the column paints keeps its own). The header mark of Created time / Last edited time / Created by / Last edited by is
1944
1965
  its own (a clock, a person) instead of the formula mark (`withTypeMark`). Notion's `prop("Col")` formula syntax is accepted by
@@ -2941,7 +2962,7 @@ No source changes intended and no consumer action required.
2941
2962
 
2942
2963
  - Speed (T5.3 / PROOF-BOOK 1.18): a merged-grid open asks the store 11 times in the clinic bench
2943
2964
  (was 16): the table's own version is read only when a write needs it (two controls each read it on
2944
- every open: 2 × `record_headers` + 2 × `io_revisions`), and the colours are not read again when
2965
+ every open: 2 × `record_headers` + 2 × `io_revisions`), and the colors are not read again when
2945
2966
  the Field list first arrives. A cell write on a LIVE page no longer re-reads the whole page — its
2946
2967
  realtime notice re-reads the written row. Guard: `a-table-load-asks-the-store-within-its-budget.test.tsx`.
2947
2968
  - One undo stack (PROOF-BOOK 1.5): a record added from the grid is an undo step (Undo archives it).
@@ -3690,7 +3711,7 @@ No source changes intended and no consumer action required.
3690
3711
  ## 0.93.63
3691
3712
  ### Unreleased
3692
3713
 
3693
- - **A read-only grid shows no write control, anywhere** (merged-grid leftovers, 2026-09-28): the tables picker's preview (host `rights` port at Viewer) still drew the table's own row buttons and agent hand-offs on every row, and its right-click and header menus listed Paste, Clear, Insert, Duplicate, Delete, Rename, Colour, Highlight, New record and Add column as disabled items. `Grid` now derives ONE `readOnly` (editing off, or a host `rights` answer that neither writes nor restructures) and every write door asks it; the menus keep only the `READS` allow-list (`gridMenus.ts` — copy, open, history, filter, sort, hide), so a new write item can never leak into a preview. An ordinary viewer's grid is unchanged (write items stay, disabled with the sentence that says why). Proof: `a-read-only-grid-shows-no-write-control.test.tsx`, red on 0.93.52 (2 of 3). Consumer action: none.
3714
+ - **A read-only grid shows no write control, anywhere** (merged-grid leftovers, 2026-09-28): the tables picker's preview (host `rights` port at Viewer) still drew the table's own row buttons and agent hand-offs on every row, and its right-click and header menus listed Paste, Clear, Insert, Duplicate, Delete, Rename, Color, Highlight, New record and Add column as disabled items. `Grid` now derives ONE `readOnly` (editing off, or a host `rights` answer that neither writes nor restructures) and every write door asks it; the menus keep only the `READS` allow-list (`gridMenus.ts` — copy, open, history, filter, sort, hide), so a new write item can never leak into a preview. An ordinary viewer's grid is unchanged (write items stay, disabled with the sentence that says why). Proof: `a-read-only-grid-shows-no-write-control.test.tsx`, red on 0.93.52 (2 of 3). Consumer action: none.
3694
3715
  - **The layout toolbar is never cut in a narrow host** (merged-grid leftovers, 2026-09-28): the slot keeps room for the layout toolbar's "…" (`min-w-9`) and the reserved "Your look" place shrinks first. With design-system's `usePinnedFold`, "New record" in a chat artifact or the smallest table window is whole or one press away behind "…". Consumer action: none.
3695
3716
 
3696
3717
  ## 0.93.62
@@ -4040,7 +4061,7 @@ No source changes intended and no consumer action required.
4040
4061
  - **Field editor, existing choice column:** the "type the choices one per line" box is replaced by `ChoiceListEditor` — the column's live choices read through `fieldOptions` in `metadata.option_position` order, each one's words edited in place, Add a choice, Remove, Move up / down. Save sends `options` as the ordered list (`{id, words}` for a choice that was there, plain words for a new one) in the panel's one `fieldUpdate` call, and nothing when the list is unchanged. An empty list or the same words twice is said beside Save and not sent. A column being CREATED keeps the one-per-line box.
4041
4062
  - **The enum nudge on every choice cell of both grids.** Words typed into a choice cell that are not a choice ask `Add “<words>” to the choices for <Column>?` — Add · Keep as typed · Cancel, Keep as typed only when the column takes other values. Add saves through `recordUpdateAddingChoices` (one call); Keep as typed is the normal save; Cancel puts the cell back. The `custom/choice_nudge` knob (`useChoiceNudge` / `choiceNudgeOf`, read once per client) decides: `always_add` adds without asking; `never_add` keeps as typed if allowed, otherwise says the words are not one of the choices with Cancel only. The decision is `decideTypedChoice` from `@ai-matrx/records`.
4042
4063
  - **The allow-other picker's Add line stops lying.** It used to send the word, which the store kept as an other value without adding it. Its foot now asks the same question; Add really adds (in a grid cell as a `ChoiceAddition` the grid saves in one call; in the record form through `fieldUpdate`'s `options_add`, then the cell takes the words), Keep as typed sends the words.
4043
- - **A re-worded choice keeps its colour** (`lookFollowsRenames`, ColumnLook): the field editor carries the column's look from a choice's old words to its new ones in the same save, so fixing "Cusor" to "Cursor" keeps its blue.
4064
+ - **A re-worded choice keeps its color** (`lookFollowsRenames`, ColumnLook): the field editor carries the column's look from a choice's old words to its new ones in the same save, so fixing "Cusor" to "Cursor" keeps its blue.
4044
4065
  - **A choice column may start with no choices** (lane CHOICE-COLUMN-EDIT b, BREAKER-1): the new-column panel no longer refuses a Choice column with no choices ("Type the choices this column offers, one per line.") and the per-choice list no longer refuses an empty list; it says "No choices yet. Add the first one here, or type it into a cell and answer Add." The store makes such a column an empty list (it used to refuse, and the Sheet's Add column kept it as plain text).
4045
4066
  - New package exports: `ChoiceListEditor`, `choiceListPatch`, `choiceRowsFrom`, `whatTheChoiceListIsMissing`, `ChoiceListRow`, `useChoiceNudge`, `choiceNudgeOf`, `ChoiceAddition`, `isChoiceAddition`, `choiceAddition`, `withoutAddition`, `ChoiceAsk`, `ChoiceAskButtons`, `choiceAskSentence`, `notAChoiceSentence`; `FieldEditorControlProps` gains `onCommit`, `onCancel`, `addsChoices`. `TypedDraft.judged` may now be `{ ask }`.
4046
4067
  - **Proof:** `a-choice-cell-asks-before-it-adds.test.tsx` (Cedar Ridge Veterinary Clinic, merged and classic grids), `an-existing-choice-is-reworded-in-place.test.tsx` (Account Type: Cusor → Cursor), and the updated `a-choice-that-takes-other-values-adds-what-you-typed.test.tsx` — all RED on the previous bytes.
@@ -4114,7 +4135,7 @@ No source changes intended and no consumer action required.
4114
4135
  table offers "Add the first row". The grid (merged and classic) and the kanban, calendar and
4115
4136
  gallery all ask the same resolver. `Grid` / `ViewSwitcher` take `onClearFilter` to clear the
4116
4137
  view's own filter; `TablePage` binds it to the same clear the Filter control uses.
4117
- - **The phone's Tools sheet holds Colours and Summaries** — "Colour rows by", "Colour rules…", and
4138
+ - **The phone's Tools sheet holds Colors and Summaries** — "Color rows by", "Color rules…", and
4118
4139
  "Summarize a column … as …", through the same writes the header menus use.
4119
4140
  - **A choice column's header filter counts its options** — "Scheduled (312)", counted by the store
4120
4141
  (`custom.record_aggregate` grouped by the column, under the view's filter and every other column's
@@ -4146,7 +4167,7 @@ Needs `@ai-matrx/design-system` 0.46.0 (`toolbar.overflow`, `CHOICE_CHIP_CLASS`,
4146
4167
  with Undo/Redo and New record kept beside it. On a phone the Tools sheet holds every control:
4147
4168
  search, sort, the view filter, group by, the layout, columns, copy/export, Reorder, New record,
4148
4169
  Share. One control height (32px).
4149
- - **Choice chips can be read.** Coloured options wear `CHOICE_CHIP_CLASS`; options with no colour
4170
+ - **Choice chips can be read.** Colored options wear `CHOICE_CHIP_CLASS`; options with no color
4150
4171
  are a neutral chip, never bare text.
4151
4172
  - **A new column lands at the end.** Declared one past the last column's `sort`; columns tie-break
4152
4173
  by the order they were made, never by key; a view with a kept column order gets the new key
@@ -4208,7 +4229,7 @@ Needs `@ai-matrx/design-system` 0.45.0 (`spreadsheet.controllerRef`, Space-to-op
4208
4229
  `a-key-is-never-spread-into-jsx.test.tsx` is a census of this package's source (it names the old
4209
4230
  line on 0.90.0).
4210
4231
 
4211
- ## 0.90.0 (2026-09-26 — merged grid tranches 6n + 6o, choice colours by option, DOM budget; needs @ai-matrx/records 0.58.22)
4232
+ ## 0.90.0 (2026-09-26 — merged grid tranches 6n + 6o, choice colors by option, DOM budget; needs @ai-matrx/records 0.58.22)
4212
4233
 
4213
4234
  - **6n · a row is added where you are.** The merged grid draws an "Add row" line under the last
4214
4235
  row (a footer row, `gridAddRow.tsx`), "Add the first row" on an empty table, and a slim "+" at
@@ -4222,18 +4243,18 @@ Needs `@ai-matrx/design-system` 0.45.0 (`spreadsheet.controllerRef`, Space-to-op
4222
4243
  - **6o · a phone.** Below 768 px the merged grid's own controls (sort state, undo/redo, reorder,
4223
4244
  New record, add column, Layout) fold into ONE "Tools" button that opens a bottom sheet; the row
4224
4245
  keeps search.
4225
- - **Colour rules on a choice column match by the OPTION** (the last lane's finding): a record holds
4246
+ - **Color rules on a choice column match by the OPTION** (the last lane's finding): a record holds
4226
4247
  the option's id (or a moved list's key) while a rule is written by the word. `paintByOption`
4227
4248
  (`gridColors.tsx`) resolves every spelling — id, key, word — to the option's id on the rule, the
4228
- value and the colour lookup, so "is Completed" paints a record holding the id AND one holding
4229
- `completed`, and a colour kept against a word paints a record holding its id. The rule editor
4249
+ value and the color lookup, so "is Completed" paints a record holding the id AND one holding
4250
+ `completed`, and a color kept against a word paints a record holding its id. The rule editor
4230
4251
  offers a choice column's options by word (`custom.field_options`, asked once it opens), keeps the
4231
4252
  option's id, and offers only is / is not / empty / not empty on a choice column.
4232
4253
  - **DOM budget:** a page-filling grid (`footer="sticky"`, a bounded scroller) windows its rows past
4233
4254
  40 instead of the primitive's default 150 — a 100-row page no longer draws every row.
4234
4255
  - **An open record panel follows the row label**: "Use as row label" and the row-label picker tell
4235
4256
  every screen on the table (`tableShapeChanged`), and `useTable` (records 0.58.22) re-reads on it.
4236
- - RED 11/13 → GREEN 13/13 in `the-merged-grid-adds-rows-folds-on-a-phone-and-colours-choices.test.tsx`.
4257
+ - RED 11/13 → GREEN 13/13 in `the-merged-grid-adds-rows-folds-on-a-phone-and-colors-choices.test.tsx`.
4237
4258
 
4238
4259
  ### Also in 0.90.0 — merged grid tranches 6j, 6l, 6m (needs @ai-matrx/design-system with `spreadsheet.onSelectionChange`)
4239
4260
 
@@ -4268,7 +4289,7 @@ Needs `@ai-matrx/design-system` 0.45.0 (`spreadsheet.controllerRef`, Space-to-op
4268
4289
  stored, in amber** — a Crew rating of 1250.5 drew five lit, clickable stars; the one-click stars
4269
4290
  now draw only for an empty value or one inside 0…max, and anything else falls to the registry's
4270
4291
  fallback (THE FALLBACK LAW). RED → GREEN in
4271
- `the-merged-grid-shows-formats-colours-summaries-and-row-labels.test.tsx`.
4292
+ `the-merged-grid-shows-formats-colors-summaries-and-row-labels.test.tsx`.
4272
4293
 
4273
4294
  ## 0.89.2
4274
4295
 
@@ -4314,23 +4335,23 @@ Presentation tranches in the same release (6e, 6g, 6h, 6i):
4314
4335
  - **6e · every format renders, edits and reads the same everywhere.** `RecordValue` draws a column's
4315
4336
  "Shows as" (`Field.display_format`) through the registry wherever it is called — grid, record
4316
4337
  panel, gallery, public page — with the older grid's rich drawings (`formattedValue.tsx`: stars,
4317
- a progress bar, mail / phone / web / maps links, a colour swatch, tag chips); card and sentence
4338
+ a progress bar, mail / phone / web / maps links, a color swatch, tag chips); card and sentence
4318
4339
  text (`scalarText`) reads it too. A rating is ONE click in the grid (both grids; a second press on
4319
4340
  the chosen star clears it). `FieldControl` is format-aware (`formatControls.tsx`): money typed
4320
4341
  with its symbol and commas, a percent kept as a fraction typed as the percent a person reads
4321
- (45 → 0.45), stars, time, colour, email/link/phone inputs. **"Shows as" is the whole registry**
4342
+ (45 → 0.45), stars, time, color, email/link/phone inputs. **"Shows as" is the whole registry**
4322
4343
  (`FieldFormatPicker.tsx`, replacing `ShowsAsPicker`): the formats that fit the column in the
4323
4344
  registry's groups, then "Other kinds · changes what the column stores" (never JSON or a raw list,
4324
4345
  never a worked-out kind), which retypes the column (`type` word) and sets its look in the SAME
4325
4346
  `field_update`; each format's own options (currency, stored-as 45 or 0.45, decimals, duration
4326
4347
  unit, out-of, date style, prefix/suffix, separators). Percent reads the stored `percentScale` and
4327
4348
  never guesses. A `display_format` of `formula` is never a look.
4328
- - **6g · colours through the table's one colour door** (`gridColors.tsx`, merged grid): header menu
4329
- "Colour by…" (rows by a choice/tick column, only its cells, stop; Colour rules…; Highlight
4349
+ - **6g · colors through the table's one color door** (`gridColors.tsx`, merged grid): header menu
4350
+ "Color by…" (rows by a choice/tick column, only its cells, stop; Color rules…; Highlight
4330
4351
  column), right-click "Highlight cell" / "Highlight row" — each press writes ONE leaf through
4331
4352
  `custom.table_decorate` by Field id and paints the store's answer at once. The rules dialog
4332
4353
  (first match wins, row or cell) saves the whole list as one leaf. `useTableDecorations(tableId,
4333
- revision)` re-reads on the table's realtime notice, so another person's colour arrives live, and
4354
+ revision)` re-reads on the table's realtime notice, so another person's color arrives live, and
4334
4355
  exposes `apply`. A person without editor on the table sees the controls with the reason.
4335
4356
  - **6h · the merged grid's footer is honest:** it appears only once a column is summarized
4336
4357
  ("Summarize column" in the header menu, `summaryMenuItem`, the store's measures) and goes with
@@ -4340,7 +4361,7 @@ Presentation tranches in the same release (6e, 6g, 6h, 6i):
4340
4361
  says the store's limit before anything is written (a store gap: the store names records by one
4341
4362
  column's words). The label column wears a mark; the right-click Row section is headed by the
4342
4363
  row's own name.
4343
- - RED → GREEN: `the-merged-grid-shows-formats-colours-summaries-and-row-labels.test.tsx` (18 of 20
4364
+ - RED → GREEN: `the-merged-grid-shows-formats-colors-summaries-and-row-labels.test.tsx` (18 of 20
4344
4365
  red on the 0.88.1 bytes; 20/20 green).
4345
4366
 
4346
4367
  ## 0.88.1 (2026-09-26)
@@ -4365,7 +4386,7 @@ Presentation tranches in the same release (6e, 6g, 6h, 6i):
4365
4386
  (`asksWhoChanged`, read off `code`), the cell's own badge, and the merged grid's right-click
4366
4387
  Cell section ("Who changed this? ⌥⇧H").
4367
4388
  - Test doubles: `store-rule-gaps.test.tsx` answers `field_options` (the column settings read an
4368
- existing choice column's words for its colours) — 0.87.0's CI publish failed on it.
4389
+ existing choice column's words for its colors) — 0.87.0's CI publish failed on it.
4369
4390
 
4370
4391
  ## Unreleased
4371
4392
 
@@ -4420,11 +4441,11 @@ Presentation tranches in the same release (6e, 6g, 6h, 6i):
4420
4441
  (`columnForField`, `workedOutFrom`, `reorderItems` still exported from `Grid`).
4421
4442
  - **A reader can copy (both grids):** readers get the spreadsheet cursor with `readOnly` — range
4422
4443
  select, select all, Cmd-C — and every write gesture says why it cannot run.
4423
- - **A choice wears the colour its column keeps (both grids, tranche 6f early):** the Field's own
4424
- `display_format.options.choices` colours (what the /data-v2 Sheet's seam writes) now paint choice
4425
- chips (design-system `CELL_TINT_CLASS`) and the colour-by lookup; a word with no kept colour
4444
+ - **A choice wears the color its column keeps (both grids, tranche 6f early):** the Field's own
4445
+ `display_format.options.choices` colors (what the /data-v2 Sheet's seam writes) now paint choice
4446
+ chips (design-system `CELL_TINT_CLASS`) and the color-by lookup; a word with no kept color
4426
4447
  still reads plain / hashes as before (`choiceLooks.ts`).
4427
- - **Column settings edit an existing column's look** (`FieldEditor`): per-choice colours
4448
+ - **Column settings edit an existing column's look** (`FieldEditor`): per-choice colors
4428
4449
  (`ChoiceColorsEditor`) and "Shows as" for plain columns (`ShowsAsPicker`, the design-system
4429
4450
  format registry), both sent as the Field's `display_format` in the same `field_update`;
4430
4451
  `formatForField` now honours a plain column's `display_format` (`shownAsOf`).
@@ -4491,7 +4512,7 @@ No source changes intended and no consumer action required.
4491
4512
  `text-muted-foreground` on the pressed `bg-secondary` tab (black on dark purple in light mode); the
4492
4513
  picker is the `subtle` surface and its Default tag the `neutral` Badge. Census, same class, fixed:
4493
4514
  `EntityReferenceControl` and `EntityReferenceKindPicker` (× on a secondary Badge) and `DocTemplate`
4494
- (version on a secondary tab) now inherit the surface's colour. Guard `crossedPairs` in
4515
+ (version on a secondary tab) now inherit the surface's color. Guard `crossedPairs` in
4495
4516
  `the-table-page-is-three-rows.test.tsx`.
4496
4517
  - On a table page the Grid's "Not live" is a word in the toolbar row (the reason on hover), not a
4497
4518
  line under it; the inline footer region is a plain scrolling block so the layout is as tall as
@@ -4531,7 +4552,7 @@ Needs `@ai-matrx/records` with `viewLookRead` / `viewLookSet` (0.58.15) and the
4531
4552
  production the owner's *Group by → Status* on a board became the tenant liaison's board the next
4532
4553
  time she opened it: `TablePage` merged every pick onto the shared view (`view_declare`). Now a
4533
4554
  pick of the board's grouping, the calendar's date field, a sort, a filter, a hidden column, a
4534
- width, a colour or the layout is kept for that person through `custom.view_look_set` and laid
4555
+ width, a color or the layout is kept for that person through `custom.view_look_set` and laid
4535
4556
  over the view (`applyLook`); a reload keeps it; nobody else sees it. The view row is never
4536
4557
  written by a pick. (Airtable and Notion's rule; Notion's "Save for everyone" / "Reset".)
4537
4558
  * **One line says so, with its doors** (`[data-view-look]`): *"You changed how this view looks. Only
@@ -4584,7 +4605,7 @@ The tagged 0.85.14 never reached npm: its deterministic gate failed on `NeverRec
4584
4605
  * **A look at a table never changes how it opens** (`TablePage.tsx`, `views.ts`; VERIFIER-21).
4585
4606
  Pressing Kanban or Calendar saved `layout` onto the table's DEFAULT view, so the next person to
4586
4607
  open the table landed in the last look anybody took. A press on the default view now carries
4587
- every other key it changed (a board's grouping, a calendar's date, a colour) and never `layout` or
4608
+ every other key it changed (a board's grouping, a calendar's date, a color) and never `layout` or
4588
4609
  `isDefault` (`viewPatchFor`); the store refuses them through `view_declare` by name. The one way to
4589
4610
  change how a table opens is the menu's **"Make <layout> the default"** — offered only to someone
4590
4611
  who may edit the table and only when what is showing is not already how it opens — sent through
@@ -4968,8 +4989,8 @@ No source changes intended and no consumer action required.
4968
4989
  **0.85.3 never reached npm** (the release run's automatic tag, run 36064683447): every test passed
4969
4990
  and vitest exited red on unhandled rejections again, this time from `TableSettings.hooks.test.tsx`,
4970
4991
  whose double never answered `row_actions` (GRID-TAILS' section) or `table_decorations` (the one
4971
- colour resolver). It now answers both with what the live store says for a table without actions or
4972
- colours. The gate was proven with zero unhandled errors on an origin/main export before this tag.
4992
+ color resolver). It now answers both with what the live store says for a table without actions or
4993
+ colors. The gate was proven with zero unhandled errors on an origin/main export before this tag.
4973
4994
 
4974
4995
  **Needs `@ai-matrx/design-system` 0.39.0** (S4's `toggleSelection`). 0.85.2's tag (run 35969941639)
4975
4996
  passed every test and failed the packed-consumer canary because the board imports
@@ -5027,7 +5048,7 @@ integrator's sweeps (`79b505cfa5`, `9a6618f2d0`, `452e363c2e`) rather than their
5027
5048
  hands a layout only the keys it reads; `viewSettingsPatch` is the writer's shape `saveViewPatch` sends.
5028
5049
  * `SavedViewSpec` gains `swimlaneField` (board swimlanes) and `collapsedColumns` (board columns kept shut);
5029
5050
  `GridGrouping` gains `then` (up to two sub-group levels) and keeps it when the look is written back whole
5030
- — a colour change no longer erases sub-groups.
5051
+ — a color change no longer erases sub-groups.
5031
5052
  * **A page open never writes.** `ViewBar`'s default seed is a read, then a declare only on absence: a table
5032
5053
  with a default view of any name (a renamed "All records") is opened without a write, and the loader no
5033
5054
  longer re-runs on every parent render (a host passing `seed={[…]}` inline re-read the views in a loop).
@@ -5054,7 +5075,7 @@ Softr's branded portal and the Stripe customer portal).
5054
5075
 
5055
5076
  * **`PortalLookEditor`** (new export), shown inside every portal card in `PortalsPanel`: the name
5056
5077
  clients see (empty = the organization's), a welcome line, a logo chosen from the organization's
5057
- own PUBLIC pictures (`card.logo_candidates`), a colour from the design system's seven names (the
5078
+ own PUBLIC pictures (`card.logo_candidates`), a color from the design system's seven names (the
5058
5079
  same swatches the table highlights use), footer links (`https://`, `mailto:`, `tel:`), and every
5059
5080
  form on the tables the portal shows — tick to offer it, optional button words, Up/Down order. Saved
5060
5081
  through `portalDeclare({ …, config })`, re-stating the portal exactly as the card read it; the
@@ -5133,7 +5154,7 @@ grain})` and the store's `uichamp_s3_*` files; on a store without them nothing n
5133
5154
  * **A number tile shows the trend and the target.** A block the store compared (`block.compare`)
5134
5155
  shows its total with an arrow and signed percent against the prior window ("16,930 ▼ -7.9% —
5135
5156
  September 2026 · 18,380 in August 2026"), and a block with a `target` draws a progress ring
5136
- ("Monthly target 25,000 · 68%"). The arrow is coloured only when the block declares a target (the
5157
+ ("Monthly target 25,000 · 68%"). The arrow is colored only when the block declares a target (the
5137
5158
  one declared fact that says up is good); otherwise it is the neutral tone.
5138
5159
  * **A compared chart draws the prior period behind the current one** in the palette's new
5139
5160
  comparison tone (`COMPARISON_COLOR`, `--muted-foreground`), with a legend naming both windows and a
@@ -6921,7 +6942,7 @@ what it adds is the store's judgement.
6921
6942
  * **Column headings carry the store's numbers** — the count, the chosen measure's
6922
6943
  total, and the column's limit — over every record this person may see, not over
6923
6944
  the page the screen happened to load. Which column is totalled is a fact about the
6924
- VIEW, saved on it like its colours.
6945
+ VIEW, saved on it like its colors.
6925
6946
  * **A work-in-progress limit shows on the column it belongs to**, and a column over
6926
6947
  its limit says so in a sentence rather than only turning red.
6927
6948
  * **A viewer's card has no drag handle at all.** Absent rather than dead.
@@ -7037,7 +7058,7 @@ not behind a toggle, because a value a machine guessed and a value a person type
7037
7058
  are different facts and the difference has to survive onto the screen. Hovering it
7038
7059
  gives the rest: who, when, what was read, how sure the model was, what it nearly
7039
7060
  said instead, and the one control that matters — taking the cell back. `stale`
7040
- rides beside it as a second WORD rather than a colour, because "this is six weeks
7061
+ rides beside it as a second WORD rather than a color, because "this is six weeks
7041
7062
  old" is a sentence and a hue has to be explained every time.
7042
7063
 
7043
7064
  `useEnrichCells` fetches a whole page's provenance in ONE `custom.enrich_cells`,
@@ -4,12 +4,12 @@ import {
4
4
  SAVE_TO_TABLE_TYPES,
5
5
  SaveToTable,
6
6
  shapesOfSource
7
- } from "./chunk-EACZUXJO.js";
7
+ } from "./chunk-6Q2RJEN5.js";
8
8
  import "./chunk-ABIUJCNS.js";
9
9
  import "./chunk-ZX4EFZSB.js";
10
10
  import "./chunk-6Z537SLG.js";
11
11
  import "./chunk-LBZZDHV6.js";
12
- import "./chunk-TEYXG4XD.js";
12
+ import "./chunk-K7OX6RG6.js";
13
13
  import "./chunk-WCQSJPLS.js";
14
14
  import "./chunk-HKYEHBQT.js";
15
15
  export {
@@ -17,4 +17,4 @@ export {
17
17
  SaveToTable,
18
18
  shapesOfSource
19
19
  };
20
- //# sourceMappingURL=SaveToTable-OYJH3OKN.js.map
20
+ //# sourceMappingURL=SaveToTable-GU4RF65M.js.map
@@ -258,4 +258,4 @@ export {
258
258
  sampleHeight,
259
259
  HtmlSampleFrame
260
260
  };
261
- //# sourceMappingURL=chunk-O5K6Y3N3.js.map
261
+ //# sourceMappingURL=chunk-4CI2HLX3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/looks/htmlFrame.tsx"],"sourcesContent":["\"use client\";\n\n// src/looks/htmlFrame.tsx — @ai-matrx/records-ui · THE SEAMLESS HTML FRAME (light: react + cn only)\n//\n// Shipped alone as `@ai-matrx/records-ui/html-frame`, so a host draws written HTML (the board's\n// Cover hero) without loading a screen. The html_sample look (htmlLook.tsx) draws its samples in it.\n// What the frame allows and why: see htmlLook.tsx's header.\n\nimport { createContext, useContext, useEffect, useRef, useState, type CSSProperties, type ReactNode } from \"react\";\nimport { cn } from \"@ai-matrx/design-system/cn\";\n/** The sandbox the frame wears. Markup and CSS only: never `allow-scripts` (see the header). */\nexport const HTML_SAMPLE_SANDBOX = \"allow-same-origin\";\n\n/** What a sample may load: inline styles, and images and fonts from data or https. Nothing else. */\nexport const HTML_SAMPLE_CSP =\n \"default-src 'none'; style-src 'unsafe-inline' https://fonts.googleapis.com; img-src data: blob: https:; font-src data: https:; media-src data: https:; script-src 'none'; connect-src 'none'; form-action 'none'\";\n\n/** The token names every sample can use as `var(--name)`. The agent skill names the same list. */\nexport const SAMPLE_TOKEN_NAMES = [\n \"background\",\n \"foreground\",\n \"card\",\n \"card-foreground\",\n \"popover\",\n \"popover-foreground\",\n \"muted\",\n \"muted-foreground\",\n \"primary\",\n \"primary-foreground\",\n \"secondary\",\n \"secondary-foreground\",\n \"accent\",\n \"accent-foreground\",\n \"destructive\",\n \"destructive-foreground\",\n \"success\",\n \"warning\",\n \"border\",\n \"input\",\n \"ring\",\n \"radius\",\n] as const;\n\nexport type SampleTheme = \"light\" | \"dark\";\n/** Token values by name, without the leading dashes: `{ primary: \"#1f4fe0\", radius: \"8px\" }`. */\nexport type SampleTokens = Readonly<Record<string, string>>;\nexport interface SampleTokenSet {\n light?: SampleTokens;\n dark?: SampleTokens;\n /** Web font families the samples name (a board's type styles); loaded from Google Fonts. */\n fonts?: readonly string[];\n}\n\n/** Families that are the system's own and need no loading. */\nconst SYSTEM_FAMILY = /^(system-ui|ui-[a-z-]+|-apple-system|blinkmacsystemfont|serif|sans-serif|monospace|cursive|fantasy|georgia|arial|helvetica|helvetica neue|times|times new roman|courier|courier new|verdana|tahoma|segoe ui|roboto mono|sf pro.*|menlo|monaco|consolas)$/i;\n\n/** The one stylesheet link that loads these families, or \"\" when none needs loading. */\nexport function fontLink(fonts: readonly string[] | undefined): string {\n const families = [...new Set((fonts ?? []).map((f) => f.trim()).filter((f) => /^[A-Za-z0-9 ]{2,40}$/.test(f) && !SYSTEM_FAMILY.test(f)))].slice(0, 8);\n if (families.length === 0) return \"\";\n const q = families.map((f) => `family=${f.replace(/ /g, \"+\")}:ital,wght@0,300..800;1,300..800`).join(\"&\");\n return `<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css2?${q}&display=swap\">`;\n}\n\nconst TokensContext = createContext<SampleTokenSet | null>(null);\n\n/** A host's own token values for every sample under it (a board's design-system tables). */\nexport function HtmlSampleTokensProvider({ tokens, children }: { tokens: SampleTokenSet | null; children: ReactNode }) {\n return <TokensContext.Provider value={tokens}>{children}</TokensContext.Provider>;\n}\n\n/** The token set a host provided for the samples under it (a board's design-system tables), or null. */\nexport function useSampleTokens(): SampleTokenSet | null {\n return useContext(TokensContext);\n}\n\n/** A hex color as the app's bare HSL triplet (\"210 80% 45%\"), or null for anything else. */\nexport function hexToHslTriplet(hex: string): string | null {\n const m = /^#([0-9a-f]{6})([0-9a-f]{2})?$/i.exec(hex.trim());\n if (!m) return null;\n const n = parseInt(m[1]!, 16);\n const [r, g, b] = [(n >> 16) & 255, (n >> 8) & 255, n & 255].map((c) => c / 255) as [number, number, number];\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n const d = max - min;\n let h = 0;\n const sat = d === 0 ? 0 : d / (1 - Math.abs(2 * l - 1));\n if (d !== 0) {\n if (max === r) h = ((g - b) / d) % 6;\n else if (max === g) h = (b - r) / d + 2;\n else h = (r - g) / d + 4;\n h *= 60;\n if (h < 0) h += 360;\n }\n const round = (x: number) => Math.round(x * 10) / 10;\n return `${round(h)} ${round(sat * 100)}% ${round(l * 100)}%`;\n}\n\n/**\n * The CSS variables that put app content (prose, controls) into the provided design system for one theme:\n * each color token the app keeps as an HSL triplet is overridden with the board's color, and the text takes\n * the board's body font. Nothing outside the scope changes.\n */\nexport function tokenScopeStyle(set: SampleTokenSet | null, theme: SampleTheme): Record<string, string> {\n const tokens = set?.[theme] ?? {};\n const out: Record<string, string> = {};\n for (const name of SAMPLE_TOKEN_NAMES) {\n const value = tokens[name];\n const triplet = value ? hexToHslTriplet(value) : null;\n if (triplet) out[`--${name}`] = triplet;\n }\n const safe = (v: string | undefined) => (v && !/[;{}<>]/.test(v) ? v : undefined);\n const body = safe(tokens[\"font-body\"]);\n if (body) {\n out.fontFamily = body;\n // The app's sans classes read these (Tailwind's `--font-sans`, the design system's typography token).\n out[\"--font-sans\"] = body;\n out[\"--typography-fontFamily-sans\"] = body;\n }\n // The scope paints the board's own ground, so the board's colors are read on the board's background in\n // both themes (a dark primary heading is never left on the app's card).\n const ground = safe(tokens[\"card\"]) ?? safe(tokens[\"background\"]);\n if (ground) out.backgroundColor = ground;\n // Text is the board's foreground; the app's accent hue (the blue a shared renderer's headings, links and\n // emphasis use) becomes the board's primary and link: inside the scope only, never the app's own pages.\n const fg = safe(tokens[\"foreground\"]);\n if (fg) out.color = fg;\n const primary = safe(tokens[\"primary\"]);\n const link = safe(tokens[\"link\"]) ?? primary;\n if (primary) {\n out[\"--color-blue-400\"] = primary;\n out[\"--color-blue-500\"] = primary;\n }\n if (link) out[\"--color-blue-600\"] = link;\n const display = safe(tokens[\"font-display\"]) ?? safe(tokens[\"font-title\"]);\n if (display) out[\"--token-scope-heading-font\"] = display;\n return out;\n}\n\n/** The host page's theme, followed as it changes. */\nexport function useHostTheme(): SampleTheme {\n const [theme, setTheme] = useState<SampleTheme>(() => hostTheme());\n useEffect(() => {\n if (typeof MutationObserver === \"undefined\" || typeof document === \"undefined\") return;\n const watch = new MutationObserver(() => setTheme(hostTheme()));\n watch.observe(document.documentElement, { attributes: true, attributeFilter: [\"class\", \"data-theme\"] });\n return () => watch.disconnect();\n }, []);\n return theme;\n}\n\n/**\n * APP CONTENT IN THE HOST'S DESIGN SYSTEM: everything under it (a cover's prose, a card's text) draws with the\n * provided tokens (a board's own colors and body font) in the page's current theme. No provided tokens: it is\n * a plain wrapper and the app's own tokens apply.\n */\nexport function TokenScope({ className, children }: { className?: string; children: ReactNode }) {\n const set = useSampleTokens();\n const theme = useHostTheme();\n const style = tokenScopeStyle(set, theme);\n return (\n <div data-token-scope={set ? \"\" : undefined} className={className} style={style as CSSProperties}>\n {/* Headings take the board's display font (a plain style can't reach them; scoped to this element only). */}\n {style[\"--token-scope-heading-font\"] ? (\n <style>{\"[data-token-scope] :is(h1,h2,h3,h4,h5,h6){font-family:var(--token-scope-heading-font)}\"}</style>\n ) : null}\n {children}\n </div>\n );\n}\n\n/** A bare HSL triplet (\"240 5% 96%\", how the app keeps its colors) becomes a color a sample can use. */\nexport function tokenValue(raw: string): string {\n const v = raw.trim();\n return /^-?\\d+(\\.\\d+)?(deg)?\\s+\\d+(\\.\\d+)?%\\s+\\d+(\\.\\d+)?%(\\s*\\/\\s*[\\d.]+%?)?$/.test(v) ? `hsl(${v})` : v;\n}\n\n/** The host page's theme: `dark` when its root wears the `dark` class or `data-theme=\"dark\"`. */\nexport function hostTheme(doc: Document | undefined = typeof document === \"undefined\" ? undefined : document): SampleTheme {\n const root = doc?.documentElement;\n if (!root) return \"light\";\n return root.classList.contains(\"dark\") || root.dataset.theme === \"dark\" ? \"dark\" : \"light\";\n}\n\n/** The host page's own token values, read from where the frame sits (so a themed region counts). */\nexport function hostTokens(at: Element | null): Record<string, string> {\n const out: Record<string, string> = {};\n if (!at || typeof getComputedStyle === \"undefined\") return out;\n const style = getComputedStyle(at);\n for (const name of SAMPLE_TOKEN_NAMES) {\n const raw = style.getPropertyValue(`--${name}`);\n if (raw && raw.trim()) out[name] = tokenValue(raw);\n }\n return out;\n}\n\n/** The `:root` block a sample reads its tokens from, plus the frame's own seamless reset. */\nexport function sampleStyle(tokens: SampleTokens, theme: SampleTheme, font?: string): string {\n const vars = Object.entries(tokens)\n .filter(([name, value]) => /^[a-z][a-z0-9-]*$/.test(name) && !/[;{}<>]/.test(value))\n .map(([name, value]) => `--${name}:${value};`)\n .join(\"\");\n const family = font && !/[;{}<>]/.test(font) ? font : \"system-ui, sans-serif\";\n return (\n `:root{${vars}color-scheme:${theme};}` +\n `html,body{margin:0;padding:0;background:transparent;overflow:hidden;}` +\n // bare-hsl-ok: the sample frame's :root holds full colors (tokenValue wraps each triple in hsl())\n `body{color:var(--foreground,${theme === \"dark\" ? \"#e8ebf1\" : \"#111827\"});font-family:${family};font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;}` +\n `*,*::before,*::after{box-sizing:border-box;}` +\n `#matrx-sample{display:flow-root;}`\n );\n}\n\n/** The whole document the frame draws: CSP, tokens, the reset, and the sample inside one measured box. */\nexport function sampleDocument(html: string, tokens: SampleTokens, theme: SampleTheme, font?: string, fonts?: readonly string[]): string {\n return (\n `<!doctype html><html class=\"${theme}\" style=\"color-scheme:${theme}\"><head><meta charset=\"utf-8\">` +\n `<meta http-equiv=\"Content-Security-Policy\" content=\"${HTML_SAMPLE_CSP}\">` +\n fontLink(fonts) +\n `<meta name=\"color-scheme\" content=\"${theme}\">` +\n `<style id=\"matrx-sample-tokens\">${sampleStyle(tokens, theme, font)}</style>` +\n `</head><body><div id=\"matrx-sample\">${html}</div></body></html>`\n );\n}\n\n/** A wheel inside a sample, re-dispatched on the frame element so the page or board around it scrolls. */\nexport function forwardWheel(target: HTMLIFrameElement | null, e: WheelEvent): void {\n if (!target) return;\n const r = target.getBoundingClientRect();\n target.dispatchEvent(\n new WheelEvent(\"wheel\", {\n bubbles: true,\n cancelable: true,\n deltaX: e.deltaX,\n deltaY: e.deltaY,\n deltaZ: e.deltaZ,\n deltaMode: e.deltaMode,\n clientX: r.left + e.clientX,\n clientY: r.top + e.clientY,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n shiftKey: e.shiftKey,\n altKey: e.altKey,\n }),\n );\n}\n\n/** The sample's drawn height in px, from its one measured box (margins included: it is a flow root). */\nexport function sampleHeight(doc: Document | null | undefined): number {\n const box = doc?.getElementById(\"matrx-sample\");\n if (!box) return 0;\n return Math.ceil(box.getBoundingClientRect().height || box.scrollHeight || 0);\n}\n\nexport interface HtmlSampleFrameProps {\n html: string;\n /** What a screen reader calls the frame. */\n title?: string;\n className?: string;\n /** Height before the sample has been measured, so the page does not jump when it loads. Default 24. */\n initialHeight?: number;\n}\n\n/**\n * THE SEAMLESS SAMPLE FRAME — markup and CSS only, transparent, borderless, as tall as its content,\n * with the host's tokens and theme. See the file header for what the sandbox allows.\n */\nexport function HtmlSampleFrame({ html, title = \"Sample\", className, initialHeight = 24 }: HtmlSampleFrameProps) {\n const frame = useRef<HTMLIFrameElement | null>(null);\n const given = useContext(TokensContext);\n const [height, setHeight] = useState(initialHeight);\n const [theme, setTheme] = useState<SampleTheme>(() => hostTheme());\n // The document is built once per html; a theme or token change after that is written into the\n // live frame (`paint`), never a reload.\n const fontsKey = (given?.fonts ?? []).join(\"|\");\n const [doc, setDoc] = useState(() => sampleDocument(html, given?.[theme] ?? {}, theme, undefined, given?.fonts));\n const built = useRef(`${html}\\u0000${fontsKey}`);\n\n const tokensFor = (t: SampleTheme): Record<string, string> => ({ ...hostTokens(frame.current), ...(given?.[t] ?? {}) });\n const fontOf = () => (frame.current && typeof getComputedStyle !== \"undefined\" ? getComputedStyle(frame.current).fontFamily : undefined);\n\n // A new html: a new document, opened in today's theme with today's tokens.\n // New fonts to load also rebuild (a stylesheet link is part of the document head).\n useEffect(() => {\n const key = `${html}\\u0000${fontsKey}`;\n if (built.current === key) return;\n built.current = key;\n setDoc(sampleDocument(html, tokensFor(theme), theme, fontOf(), given?.fonts));\n // eslint-disable-next-line react-hooks/exhaustive-deps -- the theme and tokens are written live below\n }, [html, fontsKey]);\n\n // The host's theme, followed as it changes.\n useEffect(() => {\n if (typeof MutationObserver === \"undefined\" || typeof document === \"undefined\") return;\n const watch = new MutationObserver(() => setTheme(hostTheme()));\n watch.observe(document.documentElement, { attributes: true, attributeFilter: [\"class\", \"data-theme\"] });\n return () => watch.disconnect();\n }, []);\n\n const measure = () => {\n const h = sampleHeight(frame.current?.contentDocument);\n if (h > 0) setHeight(h);\n };\n\n // Write the theme and tokens into the live document (same origin, no script inside it).\n const paint = () => {\n const inner = frame.current?.contentDocument;\n if (!inner?.documentElement) return;\n const style = inner.getElementById(\"matrx-sample-tokens\");\n if (style) style.textContent = sampleStyle(tokensFor(theme), theme, fontOf());\n inner.documentElement.className = theme;\n inner.documentElement.style.colorScheme = theme;\n measure();\n };\n\n useEffect(paint, [theme, given]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // The width the frame is given changes the sample's height (text wraps): measure again.\n useEffect(() => {\n const el = frame.current;\n if (!el || typeof ResizeObserver === \"undefined\") return;\n const ro = new ResizeObserver(() => measure());\n ro.observe(el);\n return () => ro.disconnect();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const onLoad = () => {\n paint();\n const inner = frame.current?.contentDocument;\n if (!inner) return;\n // Late images and fonts change the height after load.\n inner.addEventListener(\"load\", measure, true);\n void inner.fonts?.ready.then(measure).catch(() => undefined);\n const box = inner.getElementById(\"matrx-sample\");\n const View = inner.defaultView as (Window & { ResizeObserver?: typeof ResizeObserver }) | null;\n if (box && View?.ResizeObserver) new View.ResizeObserver(() => measure()).observe(box);\n // The sample never scrolls (it is as tall as its content), so a wheel over it belongs to the page or\n // board around it: hand it on to the frame element, where the host's own wheel handling sees it.\n inner.addEventListener(\"wheel\", (e) => forwardWheel(frame.current, e), { passive: true });\n };\n\n return (\n <iframe\n ref={frame}\n title={title}\n aria-label={title}\n data-records-html-sample=\"\"\n sandbox={HTML_SAMPLE_SANDBOX}\n referrerPolicy=\"no-referrer\"\n srcDoc={doc}\n onLoad={onLoad}\n scrolling=\"no\"\n className={cn(\"block w-full border-0 bg-transparent\", className)}\n style={{ height: `${height}px`, colorScheme: theme, overflow: \"hidden\"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AAM;AACnB,UAAM;AACN,UAAM,QAAQ,MAAM,SAAS;AAC7B,QAAI,CAAC,MAAO;AAEZ,UAAM,iBAAiB,QAAQ,SAAS,IAAI;AAC5C,SAAK,MAAM,OAAO,MAAM,KAAK,OAAO,EAAE,MAAM,MAAM,MAAS;AAC3D,UAAM,MAAM,MAAM,eAAe,cAAc;AAC/C,UAAM,OAAO,MAAM;AACnB,QAAI,OAAO,MAAM,eAAgB,KAAI,KAAK,eAAe,MAAM,QAAQ,CAAC,EAAE,QAAQ,GAAG;AAGrF,UAAM,iBAAiB,SAAS,CAAC,MAAM,aAAa,MAAM,SAAS,CAAC,GAAG,EAAE,SAAS,KAAK,CAAC;AAAA,EAC1F;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAK;AAAA,MACL;AAAA,MACA,cAAY;AAAA,MACZ,4BAAyB;AAAA,MACzB,SAAS;AAAA,MACT,gBAAe;AAAA,MACf,QAAQ;AAAA,MACR;AAAA,MACA,WAAU;AAAA,MACV,WAAW,GAAG,wCAAwC,SAAS;AAAA,MAC/D,OAAO,EAAE,QAAQ,GAAG,MAAM,MAAM,aAAa,OAAO,UAAU,SAAS;AAAA;AAAA,EACzE;AAEJ;","names":[]}
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  EMBEDDED_PLAIN_FOOTER_CLASS,
4
4
  EMBEDDED_TABLE_CLASS
5
- } from "./chunk-W6FX3XVF.js";
5
+ } from "./chunk-QNI75ZHU.js";
6
6
 
7
7
  // src/skeletonLayout.ts
8
8
  var RECORDS_SKELETON_LAYOUTS = [
@@ -302,4 +302,4 @@ export {
302
302
  RecordsSkeleton,
303
303
  TablePageSkeleton
304
304
  };
305
- //# sourceMappingURL=chunk-NBL26U5K.js.map
305
+ //# sourceMappingURL=chunk-6BTGCYPK.js.map
@@ -38,7 +38,7 @@ import {
38
38
  fieldTypeLabel,
39
39
  hasTimePart,
40
40
  isDateField
41
- } from "./chunk-TEYXG4XD.js";
41
+ } from "./chunk-K7OX6RG6.js";
42
42
  import {
43
43
  fieldTypeChoice
44
44
  } from "./chunk-WCQSJPLS.js";
@@ -5093,4 +5093,4 @@ export {
5093
5093
  shapesOfSource,
5094
5094
  SaveToTable
5095
5095
  };
5096
- //# sourceMappingURL=chunk-EACZUXJO.js.map
5096
+ //# sourceMappingURL=chunk-6Q2RJEN5.js.map
@@ -5,11 +5,11 @@ import {
5
5
  isYearValue,
6
6
  shownAsOf,
7
7
  useEmbeddedLook
8
- } from "./chunk-W6FX3XVF.js";
8
+ } from "./chunk-QNI75ZHU.js";
9
9
  import {
10
10
  HtmlSampleFrame,
11
11
  HtmlSampleTokensProvider
12
- } from "./chunk-O5K6Y3N3.js";
12
+ } from "./chunk-4CI2HLX3.js";
13
13
  import {
14
14
  ABSENCE_WORD_LABEL,
15
15
  CONTEXT_POLICY_LABEL,
@@ -81,7 +81,7 @@ import {
81
81
  storedChoiceColor,
82
82
  subscribePersonTimeZone,
83
83
  systemStampOf
84
- } from "./chunk-TEYXG4XD.js";
84
+ } from "./chunk-K7OX6RG6.js";
85
85
  import {
86
86
  ADD_FIELD_SAVE_LABEL,
87
87
  EDIT_FIELD_SAVE_LABEL,
@@ -1032,19 +1032,19 @@ function HtmlSampleEditor({ value, onChange, disabled, id, label }) {
1032
1032
  /* @__PURE__ */ jsx3("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx3(Button2, { type: "button", variant: "outline", onClick: done, children: "Done" }) })
1033
1033
  ] });
1034
1034
  }
1035
- var FIXED_COLOUR = /#[0-9a-f]{3,8}\b|\brgba?\(|\bhsla?\(/i;
1035
+ var FIXED_COLOR = /#[0-9a-f]{3,8}\b|\brgba?\(|\bhsla?\(/i;
1036
1036
  function htmlSampleChecks(value, _format) {
1037
1037
  const html = htmlOf(value);
1038
1038
  if (!html.trim()) return [];
1039
1039
  const out = [];
1040
1040
  const styles = [...html.matchAll(/<style[^>]*>([\s\S]*?)<\/style>|style\s*=\s*"([^"]*)"/gi)].map((m) => m[1] ?? m[2] ?? "").join("\n");
1041
1041
  const outsideFallbacks = styles.replace(/var\([^()]*(\([^()]*\))?[^()]*\)/g, "");
1042
- if (FIXED_COLOUR.test(outsideFallbacks)) {
1042
+ if (FIXED_COLOR.test(outsideFallbacks)) {
1043
1043
  out.push({
1044
1044
  message: "fixed colors, not the theme's",
1045
1045
  fix: {
1046
1046
  label: "Use tokens",
1047
- // bare-hsl-ok: prose naming the frame's variables, not a colour
1047
+ // bare-hsl-ok: prose naming the frame's variables, not a color
1048
1048
  ask: "Rewrite this HTML sample so every color is one of the design system's CSS variables (var(--background), var(--foreground), var(--primary), var(--border)\u2026), keeping the markup and the look the same, so it follows light and dark."
1049
1049
  }
1050
1050
  });
@@ -1059,7 +1059,7 @@ var HTML_SAMPLE_LOOK = {
1059
1059
  Preview: HtmlSampleView,
1060
1060
  checks: htmlSampleChecks,
1061
1061
  starter: () => (
1062
- // bare-hsl-ok: sample HTML for the frame, whose :root holds full colours
1062
+ // bare-hsl-ok: sample HTML for the frame, whose :root holds full colors
1063
1063
  '<style>.b{font:inherit;padding:6px 12px;border-radius:var(--radius);border:1px solid transparent;background:var(--primary);color:var(--primary-foreground)}</style>\n<button class="b">Button</button>'
1064
1064
  )
1065
1065
  };
@@ -4775,7 +4775,7 @@ import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
4775
4775
  import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
4776
4776
  import { momentZoneOptions } from "@ai-matrx/design-system/field-formats";
4777
4777
  import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
4778
- var SaveToTable = lazy(() => import("./SaveToTable-OYJH3OKN.js").then((m) => ({ default: m.SaveToTable })));
4778
+ var SaveToTable = lazy(() => import("./SaveToTable-GU4RF65M.js").then((m) => ({ default: m.SaveToTable })));
4779
4779
  var LONGEST_READ = 5e5;
4780
4780
  var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
4781
4781
  function isPlainObject(v) {
@@ -12502,4 +12502,4 @@ export {
12502
12502
  RecordNameText,
12503
12503
  HeldChangeDecision
12504
12504
  };
12505
- //# sourceMappingURL=chunk-57CGHFPO.js.map
12505
+ //# sourceMappingURL=chunk-BWVNQYNC.js.map