@ai-matrx/records-ui 0.116.64 → 0.116.66

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,21 @@
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.64
43
+ ## 0.116.66
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.64
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 996211f8f7 9e86d982ea -- apps/shared/records-ui/src`
53
+
54
+ Changed shipped source files (2):
55
+ - `apps/shared/records-ui/src/Condition.tsx`
56
+ - `apps/shared/records-ui/src/ViewFilter.tsx`
57
+
48
58
  ## 0.116.63
49
59
 
50
60
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -4,9 +4,9 @@ import {
4
4
  SAVE_TO_TABLE_TYPES,
5
5
  SaveToTable,
6
6
  shapesOfSource
7
- } from "./chunk-WXYI4DKC.js";
7
+ } from "./chunk-EACZUXJO.js";
8
8
  import "./chunk-ABIUJCNS.js";
9
- import "./chunk-4KWCNW7V.js";
9
+ import "./chunk-ZX4EFZSB.js";
10
10
  import "./chunk-6Z537SLG.js";
11
11
  import "./chunk-LBZZDHV6.js";
12
12
  import "./chunk-TEYXG4XD.js";
@@ -17,4 +17,4 @@ export {
17
17
  SaveToTable,
18
18
  shapesOfSource
19
19
  };
20
- //# sourceMappingURL=SaveToTable-VPLDWCSU.js.map
20
+ //# sourceMappingURL=SaveToTable-OYJH3OKN.js.map
@@ -55,7 +55,7 @@ import {
55
55
  useRecordsUi,
56
56
  useTableRights,
57
57
  withoutInternalCodes
58
- } from "./chunk-4KWCNW7V.js";
58
+ } from "./chunk-ZX4EFZSB.js";
59
59
  import {
60
60
  kindItemWords,
61
61
  kindLabel,
@@ -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-VPLDWCSU.js").then((m) => ({ default: m.SaveToTable })));
4778
+ var SaveToTable = lazy(() => import("./SaveToTable-OYJH3OKN.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) {
@@ -11616,7 +11616,8 @@ function makeRecordsDataSource(client, fallbackSchema) {
11616
11616
  opensInOneCall: true,
11617
11617
  async rpc(fn, args, options) {
11618
11618
  const schema = options?.schema ?? fallbackSchema;
11619
- if (schema === "custom" && supabase.auth?.getSession && !await hasSession(supabase.auth.getSession)) {
11619
+ const getSession = schema === "custom" ? sessionReader(supabase) : void 0;
11620
+ if (getSession && !await hasSession(getSession)) {
11620
11621
  return { data: null, error: SIGNED_OUT };
11621
11622
  }
11622
11623
  const on = supabase.schema(schema);
@@ -11627,6 +11628,15 @@ function makeRecordsDataSource(client, fallbackSchema) {
11627
11628
  }
11628
11629
  };
11629
11630
  }
11631
+ function sessionReader(supabase) {
11632
+ try {
11633
+ const auth = supabase.auth;
11634
+ const getSession = auth?.getSession;
11635
+ return typeof getSession === "function" ? () => getSession.call(auth) : void 0;
11636
+ } catch {
11637
+ return void 0;
11638
+ }
11639
+ }
11630
11640
  var SIGNED_OUT = {
11631
11641
  code: "42501",
11632
11642
  message: "Nobody is signed in, so there is nothing to read.",
@@ -12492,4 +12502,4 @@ export {
12492
12502
  RecordNameText,
12493
12503
  HeldChangeDecision
12494
12504
  };
12495
- //# sourceMappingURL=chunk-QXPUBNYQ.js.map
12505
+ //# sourceMappingURL=chunk-57CGHFPO.js.map