@ai-matrx/records-ui 0.115.90 → 0.115.91
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 +22 -2
- package/dist/index.cjs +19 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -14
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +5 -6
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +5 -6
- package/dist/pickers.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.115.91
|
|
4
|
+
### Unreleased
|
|
5
|
+
|
|
6
|
+
- The internal `isUserId` helper (a local UUID regex) is gone; every caller uses `@ai-matrx/kit/uuid`'s `isUuidShape`, the same any-version, case-insensitive contract. It was never a public export. No consumer action.
|
|
7
|
+
|
|
3
8
|
## 0.115.90
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
11
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
12
|
+
Diff: `git diff 152b8592f0 c55c74416d -- apps/shared/records-ui/src`
|
|
13
|
+
|
|
14
|
+
Changed shipped source files (2):
|
|
15
|
+
- `apps/shared/records-ui/src/FieldRetype.tsx`
|
|
16
|
+
- `apps/shared/records-ui/src/personRetype.ts`
|
|
17
|
+
|
|
18
|
+
## 0.115.89
|
|
19
|
+
|
|
20
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
21
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
22
|
+
Diff: `git diff 7560bf9edf 152b8592f0 -- apps/shared/records-ui/src`
|
|
23
|
+
|
|
24
|
+
Changed shipped source files (2):
|
|
25
|
+
- `apps/shared/records-ui/src/FieldRetype.tsx`
|
|
26
|
+
- `apps/shared/records-ui/src/personRetype.ts`
|
|
7
27
|
|
|
8
28
|
## 0.115.88
|
|
9
29
|
|
package/dist/index.cjs
CHANGED
|
@@ -3147,12 +3147,11 @@ function PersonPicker({ field: field2, value, onChange, disabled, id, className,
|
|
|
3147
3147
|
] });
|
|
3148
3148
|
}
|
|
3149
3149
|
|
|
3150
|
+
// src/memberNames.ts
|
|
3151
|
+
var import_uuid3 = require("@ai-matrx/kit/uuid");
|
|
3152
|
+
|
|
3150
3153
|
// src/userIds.ts
|
|
3151
|
-
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
3152
3154
|
var PERSON_NOT_IN_ORGANIZATION = "A person no longer in this organization";
|
|
3153
|
-
function isUserId(value) {
|
|
3154
|
-
return typeof value === "string" && UUID.test(value);
|
|
3155
|
-
}
|
|
3156
3155
|
|
|
3157
3156
|
// src/memberNames.ts
|
|
3158
3157
|
function memberWords(member) {
|
|
@@ -3198,7 +3197,7 @@ async function resolveKeptPerson(client, id, roster) {
|
|
|
3198
3197
|
}
|
|
3199
3198
|
function useKeptPeople(value, roster) {
|
|
3200
3199
|
const client = (0, import_react14.useOptionalRecordsClient)();
|
|
3201
|
-
const ids = (0, import_react13.useMemo)(() => (Array.isArray(value) ? value : [value]).filter(
|
|
3200
|
+
const ids = (0, import_react13.useMemo)(() => (Array.isArray(value) ? value : [value]).filter(import_uuid3.isUuidShape), [value]);
|
|
3202
3201
|
const key = ids.join(",");
|
|
3203
3202
|
const [people, setPeople] = (0, import_react13.useState)(null);
|
|
3204
3203
|
(0, import_react13.useEffect)(() => {
|
|
@@ -3217,10 +3216,11 @@ var recordVersions_exports = {};
|
|
|
3217
3216
|
__reExport(recordVersions_exports, require("@ai-matrx/records/versions"));
|
|
3218
3217
|
|
|
3219
3218
|
// src/personRetype.ts
|
|
3219
|
+
var import_uuid4 = require("@ai-matrx/kit/uuid");
|
|
3220
3220
|
var PAGE = 500;
|
|
3221
3221
|
var CEILING = 2e4;
|
|
3222
3222
|
function idsIn(value) {
|
|
3223
|
-
return (Array.isArray(value) ? value : [value]).filter(
|
|
3223
|
+
return (Array.isArray(value) ? value : [value]).filter(import_uuid4.isUuidShape);
|
|
3224
3224
|
}
|
|
3225
3225
|
async function readPersonColumn(client, tableId, key) {
|
|
3226
3226
|
const out = [];
|
|
@@ -7759,6 +7759,7 @@ function withFormulaDisplayNow(field2, fields, kindOf, currencyCodeOf) {
|
|
|
7759
7759
|
|
|
7760
7760
|
// src/values.tsx
|
|
7761
7761
|
var import_records21 = require("@ai-matrx/records");
|
|
7762
|
+
var import_uuid7 = require("@ai-matrx/kit/uuid");
|
|
7762
7763
|
|
|
7763
7764
|
// src/personNames.ts
|
|
7764
7765
|
var import_react44 = require("react");
|
|
@@ -7822,6 +7823,7 @@ var import_records20 = require("@ai-matrx/records");
|
|
|
7822
7823
|
var import_react45 = require("react");
|
|
7823
7824
|
var import_react46 = require("@ai-matrx/records/react");
|
|
7824
7825
|
var import_design_system25 = require("@ai-matrx/design-system");
|
|
7826
|
+
var import_uuid5 = require("@ai-matrx/kit/uuid");
|
|
7825
7827
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
7826
7828
|
function same(a, b) {
|
|
7827
7829
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
@@ -7901,7 +7903,7 @@ function RetiredValues({
|
|
|
7901
7903
|
const field2 = fields.find((f) => f.key === entry.key);
|
|
7902
7904
|
const name = field2 ? fieldName(field2) : entry.label ?? entry.key;
|
|
7903
7905
|
const shown5 = field2 ? scalarText(field2, entry.value) : typeof entry.value === "string" ? entry.value : JSON.stringify(entry.value);
|
|
7904
|
-
const holdsUserId = (Array.isArray(entry.value) ? entry.value : [entry.value]).some(
|
|
7906
|
+
const holdsUserId = (Array.isArray(entry.value) ? entry.value : [entry.value]).some(import_uuid5.isUuidShape);
|
|
7905
7907
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-0.5", "data-records-retired-key": entry.key, children: [
|
|
7906
7908
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-wrap items-baseline gap-2", children: [
|
|
7907
7909
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-muted-foreground", children: name }),
|
|
@@ -7922,6 +7924,7 @@ function RetiredValues({
|
|
|
7922
7924
|
}
|
|
7923
7925
|
|
|
7924
7926
|
// src/cellMarks.tsx
|
|
7927
|
+
var import_uuid6 = require("@ai-matrx/kit/uuid");
|
|
7925
7928
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
7926
7929
|
function keptAsideFor(document2, key) {
|
|
7927
7930
|
const doc = document2;
|
|
@@ -7951,7 +7954,7 @@ function keptAsideReason(field2, entry) {
|
|
|
7951
7954
|
function KeptAsideValue({ field: field2, entry, shown: shown5 }) {
|
|
7952
7955
|
const why = keptAsideReason(field2, entry);
|
|
7953
7956
|
const open = useRecordsUi().openPerson;
|
|
7954
|
-
const person = (Array.isArray(entry.value) ? entry.value : [entry.value]).find(
|
|
7957
|
+
const person = (Array.isArray(entry.value) ? entry.value : [entry.value]).find(import_uuid6.isUuidShape);
|
|
7955
7958
|
const opens = open && typeof person === "string";
|
|
7956
7959
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
7957
7960
|
"span",
|
|
@@ -8177,7 +8180,7 @@ function LivePersonChip({ id, name }) {
|
|
|
8177
8180
|
var NEVER_AN_ID_KINDS = /* @__PURE__ */ new Set(["member", "person", "number", "currency", "percent", "date", "datetime", "checkbox", "boolean"]);
|
|
8178
8181
|
function personWordsOf(kind2, value) {
|
|
8179
8182
|
const items = Array.isArray(value) ? value : [value];
|
|
8180
|
-
const ids = items.filter(
|
|
8183
|
+
const ids = items.filter(import_uuid7.isUuidShape);
|
|
8181
8184
|
if (ids.length === 0) return null;
|
|
8182
8185
|
const wordsColumn = !NEVER_AN_ID_KINDS.has(kind2);
|
|
8183
8186
|
const named = ids.map((id) => knownPerson(id));
|
|
@@ -42694,6 +42697,7 @@ function ActionInbox({
|
|
|
42694
42697
|
}
|
|
42695
42698
|
|
|
42696
42699
|
// src/HistoryPanel.tsx
|
|
42700
|
+
var import_uuid8 = require("@ai-matrx/kit/uuid");
|
|
42697
42701
|
var import_react250 = require("react");
|
|
42698
42702
|
|
|
42699
42703
|
// src/undoChange.ts
|
|
@@ -43440,7 +43444,7 @@ function whenText(at) {
|
|
|
43440
43444
|
function say(value, field2) {
|
|
43441
43445
|
if (value === null || value === void 0 || value === "") return "nothing";
|
|
43442
43446
|
if (field2) return scalarText(field2, value);
|
|
43443
|
-
const ids = (Array.isArray(value) ? value : [value]).filter(
|
|
43447
|
+
const ids = (Array.isArray(value) ? value : [value]).filter(import_uuid8.isUuidShape);
|
|
43444
43448
|
if (ids.length > 0 && ids.length === (Array.isArray(value) ? value.length : 1)) {
|
|
43445
43449
|
return ids.map((id) => knownPerson(id) ?? PERSON_NOT_IN_ORGANIZATION).join(", ");
|
|
43446
43450
|
}
|
|
@@ -43450,6 +43454,7 @@ function say(value, field2) {
|
|
|
43450
43454
|
}
|
|
43451
43455
|
|
|
43452
43456
|
// src/CommentThread.tsx
|
|
43457
|
+
var import_uuid9 = require("@ai-matrx/kit/uuid");
|
|
43453
43458
|
var import_react252 = require("react");
|
|
43454
43459
|
var import_react253 = require("@ai-matrx/records/react");
|
|
43455
43460
|
var import_design_system119 = require("@ai-matrx/design-system");
|
|
@@ -43684,7 +43689,7 @@ function Line2({
|
|
|
43684
43689
|
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)("p", { className: "whitespace-pre-wrap text-xs", children: comment.body }),
|
|
43685
43690
|
comment.mentions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("p", { className: "text-[10px] text-muted-foreground", children: [
|
|
43686
43691
|
"Told: ",
|
|
43687
|
-
comment.mentions.map((m) =>
|
|
43692
|
+
comment.mentions.map((m) => (0, import_uuid9.isUuidShape)(m.name) ? PERSON_NOT_IN_ORGANIZATION : m.name).join(", ")
|
|
43688
43693
|
] }) : null
|
|
43689
43694
|
] });
|
|
43690
43695
|
}
|
|
@@ -54047,7 +54052,7 @@ function useSlotScroll(slot) {
|
|
|
54047
54052
|
}
|
|
54048
54053
|
|
|
54049
54054
|
// src/TablePage.tsx
|
|
54050
|
-
var
|
|
54055
|
+
var import_uuid10 = require("@ai-matrx/kit/uuid");
|
|
54051
54056
|
var import_outbound4 = require("@ai-matrx/kit/outbound");
|
|
54052
54057
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
54053
54058
|
var RAIL_TITLE = {
|
|
@@ -54279,7 +54284,7 @@ function openingView(activeView, activeDashboardId) {
|
|
|
54279
54284
|
}
|
|
54280
54285
|
function savedViewFromParam(activeView) {
|
|
54281
54286
|
const word = typeof activeView === "string" ? activeView.trim() : "";
|
|
54282
|
-
return (0,
|
|
54287
|
+
return (0, import_uuid10.isUuidShape)(word) ? word.toLowerCase() : null;
|
|
54283
54288
|
}
|
|
54284
54289
|
function addressForView(view, layout) {
|
|
54285
54290
|
return view && !view.isDefault ? view.id : layout;
|
|
@@ -55317,7 +55322,7 @@ function TablePage({
|
|
|
55317
55322
|
QuestionPanel,
|
|
55318
55323
|
{
|
|
55319
55324
|
tableId,
|
|
55320
|
-
activeQuestionId: questionsFromLink && activeItemId && (0,
|
|
55325
|
+
activeQuestionId: questionsFromLink && activeItemId && (0, import_uuid10.isUuidShape)(activeItemId) ? activeItemId : null,
|
|
55321
55326
|
draft: questionDraft
|
|
55322
55327
|
}
|
|
55323
55328
|
) : main === "archived" ? (
|