@ai-matrx/records-ui 0.116.63 → 0.116.64

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
@@ -40,11 +40,26 @@
40
40
  - Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
41
41
  - **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`.
42
42
 
43
- ## 0.116.63
43
+ ## 0.116.64
44
44
 
45
45
  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.
46
46
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
47
47
 
48
+ ## 0.116.63
49
+
50
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
51
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
52
+ Diff: `git diff 5245b516bd 996211f8f7 -- apps/shared/records-ui/src`
53
+
54
+ Changed shipped source files (7):
55
+ - `apps/shared/records-ui/src/DigestScheduler.tsx`
56
+ - `apps/shared/records-ui/src/Grid.tsx`
57
+ - `apps/shared/records-ui/src/TablePage.tsx`
58
+ - `apps/shared/records-ui/src/ViewFilter.tsx`
59
+ - `apps/shared/records-ui/src/ViewSwitcher.tsx`
60
+ - `apps/shared/records-ui/src/gridLook.ts`
61
+ - `apps/shared/records-ui/src/gridPage.ts`
62
+
48
63
  ## 0.116.62
49
64
 
50
65
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -5562,6 +5562,11 @@ function linkedOf(expr) {
5562
5562
  return { via: rel["field"], inner: a["field"], op: match === "any" ? "eq" : "ne", value: b["const"] };
5563
5563
  }
5564
5564
  var FilterTermsContext = createContext3(false);
5565
+ var WithheldConditionFieldsContext = createContext3([]);
5566
+ function withheldConditionFields(fields, withheldKeys) {
5567
+ const withheld = new Set(withheldKeys ?? []);
5568
+ return fields.filter((f) => withheld.has(f.key)).map((f) => ({ id: f.id, key: f.key, label: f.label || f.key }));
5569
+ }
5565
5570
  var RELATIVE_DAY_TERMS = [
5566
5571
  { kind: "today", label: "is today" },
5567
5572
  { kind: "tomorrow", label: "is tomorrow" },
@@ -5815,6 +5820,7 @@ function conditionValue(typed) {
5815
5820
  function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", className }) {
5816
5821
  const node = expr ?? null;
5817
5822
  const filterTerms = useContext2(FilterTermsContext);
5823
+ const withheldFields = useContext2(WithheldConditionFieldsContext);
5818
5824
  const choiceListTerms = useContext2(ChoiceListTermsContext) || filterTerms;
5819
5825
  const relative = relativeDayOf(expr);
5820
5826
  const reader = meOf(expr);
@@ -5880,7 +5886,18 @@ function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", cla
5880
5886
  attrs: { "data-condition": "field" }
5881
5887
  }
5882
5888
  ),
5883
- onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */ jsx29(
5889
+ onField && !fields.some((f) => f.id === onField) && withheldFields.some((f) => f.id === onField) ? /* @__PURE__ */ jsxs25(
5890
+ "span",
5891
+ {
5892
+ className: "rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground",
5893
+ title: "This column is withheld from you, so this condition is skipped.",
5894
+ "data-records-condition-withheld": "",
5895
+ children: [
5896
+ withheldFields.find((f) => f.id === onField).label,
5897
+ " (withheld)"
5898
+ ]
5899
+ }
5900
+ ) : onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */ jsx29(
5884
5901
  "span",
5885
5902
  {
5886
5903
  className: "rounded bg-destructive px-1.5 py-0.5 text-[11px] font-medium text-destructive-foreground",
@@ -12418,6 +12435,8 @@ export {
12418
12435
  cardWords,
12419
12436
  CONDITION_OPS,
12420
12437
  FilterTermsContext,
12438
+ WithheldConditionFieldsContext,
12439
+ withheldConditionFields,
12421
12440
  conditionIsSimple,
12422
12441
  conditionInWords,
12423
12442
  conditionValue,
@@ -12473,4 +12492,4 @@ export {
12473
12492
  RecordNameText,
12474
12493
  HeldChangeDecision
12475
12494
  };
12476
- //# sourceMappingURL=chunk-X2WDIQIR.js.map
12495
+ //# sourceMappingURL=chunk-QXPUBNYQ.js.map