@ai-matrx/records-ui 0.115.51 → 0.115.53

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/dist/index.d.cts CHANGED
@@ -1679,7 +1679,7 @@ type GridGrouping = {
1679
1679
  order?: GroupOrder;
1680
1680
  /** The sections this view keeps shut, by the primitive's own group key. */
1681
1681
  collapsed?: string[];
1682
- /** The grouped column drawn as a column too. Absent = it steps aside (the headers name its value). */
1682
+ /** The grouped column stays drawn as a column (Airtable). Absent = shown; `false` = the person stepped it aside. */
1683
1683
  showColumn?: boolean;
1684
1684
  /**
1685
1685
  * SUB-GROUPS (lane S1-PRIME VIEW-KEYS; ui-bench LISTS "sub-grouping"): up to two more levels
@@ -6420,8 +6420,8 @@ interface ShareControlProps {
6420
6420
  /** What to call it in the dialog's title. */
6421
6421
  name?: string | undefined;
6422
6422
  /**
6423
- * Whether this person may pass this on — `custom.share_grant` asks for Admin
6424
- * ON THE THING. A caller that already holds the answer (a table screen has
6423
+ * Whether this person may pass this on — `custom.share_grant` asks Edit
6424
+ * ON THE THING (the dialog then offers only the levels `iam.may_grant_as` allows). A caller that already holds the answer (a table screen has
6425
6425
  * the table's rights in its hand) passes it; left out, this asks the store
6426
6426
  * itself for the subject named above. Either way it is an ANSWER and never an
6427
6427
  * assumption, which is the whole of this lane.
package/dist/index.d.ts CHANGED
@@ -1679,7 +1679,7 @@ type GridGrouping = {
1679
1679
  order?: GroupOrder;
1680
1680
  /** The sections this view keeps shut, by the primitive's own group key. */
1681
1681
  collapsed?: string[];
1682
- /** The grouped column drawn as a column too. Absent = it steps aside (the headers name its value). */
1682
+ /** The grouped column stays drawn as a column (Airtable). Absent = shown; `false` = the person stepped it aside. */
1683
1683
  showColumn?: boolean;
1684
1684
  /**
1685
1685
  * SUB-GROUPS (lane S1-PRIME VIEW-KEYS; ui-bench LISTS "sub-grouping"): up to two more levels
@@ -6420,8 +6420,8 @@ interface ShareControlProps {
6420
6420
  /** What to call it in the dialog's title. */
6421
6421
  name?: string | undefined;
6422
6422
  /**
6423
- * Whether this person may pass this on — `custom.share_grant` asks for Admin
6424
- * ON THE THING. A caller that already holds the answer (a table screen has
6423
+ * Whether this person may pass this on — `custom.share_grant` asks Edit
6424
+ * ON THE THING (the dialog then offers only the levels `iam.may_grant_as` allows). A caller that already holds the answer (a table screen has
6425
6425
  * the table's rights in its hand) passes it; left out, this asks the store
6426
6426
  * itself for the subject named above. Either way it is an ANSWER and never an
6427
6427
  * assumption, which is the whole of this lane.
package/dist/index.js CHANGED
@@ -38,8 +38,10 @@ var NEEDS = {
38
38
  organise: "editor",
39
39
  // custom.record_delete
40
40
  remove: "editor",
41
- // custom.share_grant — passing your access on is an administrator's right
42
- share: "admin",
41
+ // custom.share_grant — ONE-LADDER (2026-10-10): Edit may pass View / Comment / Edit on inside the
42
+ // organization (iam.may_grant_as, knobs access.sharing/*). Which levels, and to whom, is the share
43
+ // dialog's own question (iam.my_grantable_levels); the Share button only has to open for Edit.
44
+ share: "editor",
43
45
  // custom.field_declare / field_update / field_retire / table settings
44
46
  structure: "admin"
45
47
  };
@@ -3998,7 +4000,7 @@ function parseGrouping(raw) {
3998
4000
  const collapsed = raw["collapsed"].filter((k) => typeof k === "string");
3999
4001
  if (collapsed.length > 0) out.collapsed = collapsed;
4000
4002
  }
4001
- if (raw["showColumn"] === true) out.showColumn = true;
4003
+ if (typeof raw["showColumn"] === "boolean") out.showColumn = raw["showColumn"];
4002
4004
  if (Array.isArray(raw["then"])) {
4003
4005
  const then = [];
4004
4006
  for (const level of raw["then"]) {
@@ -26837,7 +26839,8 @@ function GridBody({
26837
26839
  ...facts ? { groupFacts: facts } : {},
26838
26840
  ...!rowsGrouped && view?.order ? { order: view.order } : {},
26839
26841
  ...view?.collapsed ? { collapsed: view.collapsed } : {},
26840
- ...view?.showColumn ? { showColumn: true } : {},
26842
+ // Airtable keeps the grouped column visible; only an explicit `false` steps it aside.
26843
+ showColumn: view?.showColumn !== false,
26841
26844
  ...onPresentationChange ? {
26842
26845
  onColumnIdChange: (columnId2) => {
26843
26846
  if (columnId2 === null) {
@@ -26871,8 +26874,7 @@ function GridBody({
26871
26874
  onShowColumnChange: (show) => {
26872
26875
  const current = presentation.grouping;
26873
26876
  if (!current) return;
26874
- const { showColumn: _was, ...rest } = current;
26875
- writeLook({ ...presentation, grouping: show ? { ...rest, showColumn: true } : rest });
26877
+ writeLook({ ...presentation, grouping: { ...current, showColumn: show } });
26876
26878
  }
26877
26879
  } : {}
26878
26880
  };
@@ -33129,6 +33131,12 @@ function lookAfterReset(look) {
33129
33131
  if (!look) return null;
33130
33132
  const kept = { ...look };
33131
33133
  for (const key of QUESTION_KEYS) delete kept[key];
33134
+ const presentation = kept["presentation"];
33135
+ if (presentation && typeof presentation === "object") {
33136
+ const { grouping: _grouping, ...layout } = presentation;
33137
+ if (Object.keys(layout).length > 0) kept["presentation"] = layout;
33138
+ else delete kept["presentation"];
33139
+ }
33132
33140
  for (const key of Object.keys(kept)) if (kept[key] === void 0) delete kept[key];
33133
33141
  return Object.keys(kept).length > 0 ? kept : null;
33134
33142
  }