@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 +11 -1
- package/dist/{SaveToTable-VPLDWCSU.js → SaveToTable-OYJH3OKN.js} +3 -3
- package/dist/{chunk-QXPUBNYQ.js → chunk-57CGHFPO.js} +14 -4
- package/dist/{chunk-QXPUBNYQ.js.map → chunk-57CGHFPO.js.map} +1 -1
- package/dist/{chunk-WXYI4DKC.js → chunk-EACZUXJO.js} +2 -2
- package/dist/{chunk-4KWCNW7V.js → chunk-ZX4EFZSB.js} +2 -2
- package/dist/{chunk-4KWCNW7V.js.map → chunk-ZX4EFZSB.js.map} +1 -1
- package/dist/data-source.cjs +11 -1
- package/dist/data-source.cjs.map +1 -1
- package/dist/data-source.js +11 -1
- package/dist/data-source.js.map +1 -1
- package/dist/helpers.cjs +12 -2
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +12 -2
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/pickers.cjs +1 -1
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +4 -4
- /package/dist/{SaveToTable-VPLDWCSU.js.map → SaveToTable-OYJH3OKN.js.map} +0 -0
- /package/dist/{chunk-WXYI4DKC.js.map → chunk-EACZUXJO.js.map} +0 -0
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.
|
|
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-
|
|
7
|
+
} from "./chunk-EACZUXJO.js";
|
|
8
8
|
import "./chunk-ABIUJCNS.js";
|
|
9
|
-
import "./chunk-
|
|
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-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-OYJH3OKN.js.map
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
useRecordsUi,
|
|
56
56
|
useTableRights,
|
|
57
57
|
withoutInternalCodes
|
|
58
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
12505
|
+
//# sourceMappingURL=chunk-57CGHFPO.js.map
|