@ai-matrx/records-ui 0.93.118 → 0.93.120
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 +12 -0
- package/dist/index.cjs +22 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.93.120
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records-ui/v0.93.119..npm/records-ui/v0.93.120 -- apps/shared/records-ui`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.93.119
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/records-ui/v0.93.118..npm/records-ui/v0.93.119 -- apps/shared/records-ui`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.93.118
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/index.cjs
CHANGED
|
@@ -16679,6 +16679,7 @@ function GridBody({
|
|
|
16679
16679
|
}
|
|
16680
16680
|
) : null,
|
|
16681
16681
|
question.refused.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { role: "status", "data-records-filter-refused": "", className: "text-xs text-muted-foreground", children: question.refused.join(" ") }) : null,
|
|
16682
|
+
storePaged && (serverRead.data?.sortIgnored.length ?? 0) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { role: "status", "data-records-sort-ignored": serverRead.data?.sortIgnored.join(" "), className: "text-xs text-muted-foreground", children: "Sort skipped: column not available" }) : null,
|
|
16682
16683
|
runner.outcome && !(merged && runner.outcome.kind === "ran" && runner.outcome.undo !== null) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ActionOutcomeNotice, { outcome: runner.outcome, onUndo: () => void runner.undo(), onDismiss: runner.dismiss }) : null,
|
|
16683
16684
|
duplicated ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { role: "status", "data-records-duplicated": "", className: "flex items-center gap-2 rounded border border-border bg-muted/40 px-2 py-1 text-xs", children: [
|
|
16684
16685
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: duplicated }),
|
|
@@ -32124,15 +32125,33 @@ function personActor(userId) {
|
|
|
32124
32125
|
function recordsDataSource(client, fallbackSchema = "custom") {
|
|
32125
32126
|
const supabase = client;
|
|
32126
32127
|
return {
|
|
32127
|
-
rpc(fn, args, options) {
|
|
32128
|
-
const
|
|
32129
|
-
|
|
32128
|
+
async rpc(fn, args, options) {
|
|
32129
|
+
const schema = options?.schema ?? fallbackSchema;
|
|
32130
|
+
if (schema === "custom" && supabase.auth?.getSession && !await hasSession(supabase.auth.getSession)) {
|
|
32131
|
+
return { data: null, error: SIGNED_OUT };
|
|
32132
|
+
}
|
|
32133
|
+
const on = supabase.schema(schema);
|
|
32134
|
+
return await on.rpc(fn, args);
|
|
32130
32135
|
},
|
|
32131
32136
|
schema(name) {
|
|
32132
32137
|
return supabase.schema(name);
|
|
32133
32138
|
}
|
|
32134
32139
|
};
|
|
32135
32140
|
}
|
|
32141
|
+
var SIGNED_OUT = {
|
|
32142
|
+
code: "42501",
|
|
32143
|
+
message: "Nobody is signed in, so there is nothing to read.",
|
|
32144
|
+
hint: "Sign in, then try again.",
|
|
32145
|
+
details: null
|
|
32146
|
+
};
|
|
32147
|
+
async function hasSession(getSession) {
|
|
32148
|
+
try {
|
|
32149
|
+
const answer = await getSession();
|
|
32150
|
+
return Boolean(answer?.data?.session);
|
|
32151
|
+
} catch {
|
|
32152
|
+
return true;
|
|
32153
|
+
}
|
|
32154
|
+
}
|
|
32136
32155
|
|
|
32137
32156
|
// src/TablePage.tsx
|
|
32138
32157
|
var import_react195 = require("react");
|