@ai-matrx/records-ui 0.85.17 → 0.85.18

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
@@ -1,5 +1,19 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.85.18
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.85.17..npm/records-ui/v0.85.18 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## Unreleased
10
+
11
+ - `TablePage` takes `onShownViewChange(shown: ShownViewReport)` (lane V24-TAILS, VERIFIER-24 item 6):
12
+ the view exactly as the page draws it — saved view, the person's look laid over it, the address's
13
+ overrides — with which keys the look decides (`fromLook`), which the address decides
14
+ (`fromAddress`) and `lookDiffers`. A host's page capture reads it so "Board grouped by" names the
15
+ person's look, never "not chosen". `ShownViewReport` is exported. Additive; no consumer action.
16
+
3
17
  ## 0.85.17
4
18
 
5
19
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -22730,6 +22730,7 @@ function TablePage({
22730
22730
  activeItemId,
22731
22731
  leading,
22732
22732
  menuExtras,
22733
+ onShownViewChange,
22733
22734
  className
22734
22735
  }) {
22735
22736
  const client = (0, import_react147.useRecordsClient)();
@@ -22800,6 +22801,25 @@ function TablePage({
22800
22801
  };
22801
22802
  const show = (next) => press({ rail: next });
22802
22803
  const layoutShowing = main !== "records" ? null : hostLayout ?? shownLayout;
22804
+ const shownReport = {
22805
+ viewId: view?.id ?? null,
22806
+ viewName: view?.name ?? null,
22807
+ showing: layoutShowing ?? main,
22808
+ groupField: activeGroupField || shown3?.groupField || null,
22809
+ dateField: shown3?.dateField ?? null,
22810
+ swimlaneField: shown3?.swimlaneField ?? null,
22811
+ fromLook: look ? ["layout", "groupField", "dateField", "swimlaneField", "sorts", "where"].filter(
22812
+ (k) => look[k] !== void 0 && !(k === "groupField" && activeGroupField) && !(k === "layout" && layoutFromLink)
22813
+ ) : [],
22814
+ fromAddress: [...layoutFromLink ? ["layout"] : [], ...activeGroupField ? ["groupField"] : []],
22815
+ lookDiffers: view ? lookDiffers(view, look) : false
22816
+ };
22817
+ const shownSignature = JSON.stringify(shownReport);
22818
+ const reportRef = (0, import_react146.useRef)(onShownViewChange);
22819
+ reportRef.current = onShownViewChange;
22820
+ (0, import_react146.useEffect)(() => {
22821
+ reportRef.current?.(JSON.parse(shownSignature));
22822
+ }, [shownSignature]);
22803
22823
  const pickLayout = (next) => {
22804
22824
  setLayoutChosen(true);
22805
22825
  setHostLayout(null);