@ai-matrx/records-ui 0.116.43 → 0.116.45
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 +32 -1
- package/dist/{SaveToTable-4B67TPSC.js → SaveToTable-SL5DUNI4.js} +3 -3
- package/dist/{chunk-THRMANHB.js → chunk-F4SAKQKQ.js} +3 -3
- package/dist/{chunk-KEILC5XG.js → chunk-NKZBAIU4.js} +37 -16
- package/dist/chunk-NKZBAIU4.js.map +1 -0
- package/dist/{chunk-OKAAPN6O.js → chunk-XKI6S5KF.js} +6 -6
- package/dist/chunk-XKI6S5KF.js.map +1 -0
- package/dist/index.cjs +2313 -2274
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +235 -221
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +491 -468
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +6 -6
- package/dist/chunk-KEILC5XG.js.map +0 -1
- package/dist/chunk-OKAAPN6O.js.map +0 -1
- /package/dist/{SaveToTable-4B67TPSC.js.map → SaveToTable-SL5DUNI4.js.map} +0 -0
- /package/dist/{chunk-THRMANHB.js.map → chunk-F4SAKQKQ.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -29,11 +29,42 @@
|
|
|
29
29
|
- Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
|
|
30
30
|
- **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`.
|
|
31
31
|
|
|
32
|
-
## 0.116.
|
|
32
|
+
## 0.116.45
|
|
33
33
|
|
|
34
34
|
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.
|
|
35
35
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
36
36
|
|
|
37
|
+
## 0.116.44
|
|
38
|
+
|
|
39
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
40
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
41
|
+
Diff: `git diff 3c991a52a9 3b2b1c9db5 -- apps/shared/records-ui/src`
|
|
42
|
+
|
|
43
|
+
Changed shipped source files (16):
|
|
44
|
+
- `apps/shared/records-ui/src/CaptureSheet.tsx`
|
|
45
|
+
- `apps/shared/records-ui/src/ChecklistRunner.tsx`
|
|
46
|
+
- `apps/shared/records-ui/src/DocTemplate.tsx`
|
|
47
|
+
- `apps/shared/records-ui/src/EmbedFrame.tsx`
|
|
48
|
+
- `apps/shared/records-ui/src/FormBuilder.tsx`
|
|
49
|
+
- `apps/shared/records-ui/src/FormRunner.tsx`
|
|
50
|
+
- `apps/shared/records-ui/src/Grid.tsx`
|
|
51
|
+
- `apps/shared/records-ui/src/ImportWizard.tsx`
|
|
52
|
+
- `apps/shared/records-ui/src/Peek.tsx`
|
|
53
|
+
- `apps/shared/records-ui/src/Pipeline.tsx`
|
|
54
|
+
- `apps/shared/records-ui/src/RecordForm.tsx`
|
|
55
|
+
- `apps/shared/records-ui/src/ReverseColumns.tsx`
|
|
56
|
+
- ...and 4 more
|
|
57
|
+
|
|
58
|
+
## 0.116.43
|
|
59
|
+
|
|
60
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
61
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
62
|
+
Diff: `git diff d3e2ad171d 3c991a52a9 -- apps/shared/records-ui/src`
|
|
63
|
+
|
|
64
|
+
Changed shipped source files (2):
|
|
65
|
+
- `apps/shared/records-ui/src/Refusal.tsx`
|
|
66
|
+
- `apps/shared/records-ui/src/ViewNeeds.tsx`
|
|
67
|
+
|
|
37
68
|
## 0.116.42
|
|
38
69
|
|
|
39
70
|
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-XKI6S5KF.js";
|
|
8
8
|
import "./chunk-KQR2RA4V.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-NKZBAIU4.js";
|
|
10
10
|
import "./chunk-6Z537SLG.js";
|
|
11
11
|
import "./chunk-OV6QBL5R.js";
|
|
12
12
|
import "./chunk-4ZS4WEEE.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
SaveToTable,
|
|
18
18
|
shapesOfSource
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=SaveToTable-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-SL5DUNI4.js.map
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
useRecordsUi,
|
|
55
55
|
useTableRights,
|
|
56
56
|
withoutInternalCodes
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-NKZBAIU4.js";
|
|
58
58
|
import {
|
|
59
59
|
kindItemWords,
|
|
60
60
|
kindLabel,
|
|
@@ -4784,7 +4784,7 @@ import { AlchemyMenu } from "@ai-matrx/alchemy/react";
|
|
|
4784
4784
|
import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
4785
4785
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4786
4786
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4787
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4787
|
+
var SaveToTable = lazy(() => import("./SaveToTable-SL5DUNI4.js").then((m) => ({ default: m.SaveToTable })));
|
|
4788
4788
|
var LONGEST_READ = 5e5;
|
|
4789
4789
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4790
4790
|
function isPlainObject(v) {
|
|
@@ -12325,4 +12325,4 @@ export {
|
|
|
12325
12325
|
RecordNameText,
|
|
12326
12326
|
HeldChangeDecision
|
|
12327
12327
|
};
|
|
12328
|
-
//# sourceMappingURL=chunk-
|
|
12328
|
+
//# sourceMappingURL=chunk-F4SAKQKQ.js.map
|
|
@@ -374,7 +374,7 @@ function withoutInternalCodes(text) {
|
|
|
374
374
|
|
|
375
375
|
// src/Refusal.tsx
|
|
376
376
|
import { archivedOrganizationId } from "@ai-matrx/records/core";
|
|
377
|
-
import { Alert as Alert2, AlertDescription as AlertDescription2, AlertTitle as AlertTitle2, ErrorBox, cn as cn2 } from "@ai-matrx/design-system";
|
|
377
|
+
import { Alert as Alert2, AlertDescription as AlertDescription2, AlertTitle as AlertTitle2, ErrorBox, TIMED_OUT_SENTENCE as TIMED_OUT_SENTENCE2, cn as cn2 } from "@ai-matrx/design-system";
|
|
378
378
|
|
|
379
379
|
// src/ArchivedOrganizationNotice.tsx
|
|
380
380
|
import { useEffect, useState } from "react";
|
|
@@ -450,8 +450,17 @@ function ArchivedOrganizationNotice({
|
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
+
// src/refusalSaid.ts
|
|
454
|
+
import { TIMED_OUT_SENTENCE, isTimedOutError } from "@ai-matrx/design-system";
|
|
455
|
+
function refusalTimedOut(error) {
|
|
456
|
+
return isTimedOutError(error);
|
|
457
|
+
}
|
|
458
|
+
function refusalSaid(error) {
|
|
459
|
+
return refusalTimedOut(error) ? TIMED_OUT_SENTENCE : refusalSentence(error);
|
|
460
|
+
}
|
|
461
|
+
|
|
453
462
|
// src/Refusal.tsx
|
|
454
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
463
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
455
464
|
function hintIsMachineIdentity(hint) {
|
|
456
465
|
return isMachineIdentity(hint);
|
|
457
466
|
}
|
|
@@ -473,7 +482,8 @@ function RefusalNotice({
|
|
|
473
482
|
if (archivedOrg) {
|
|
474
483
|
return /* @__PURE__ */ jsx3(ArchivedOrganizationNotice, { organizationId: archivedOrg, error, className });
|
|
475
484
|
}
|
|
476
|
-
const
|
|
485
|
+
const said = refusalForAPerson(error);
|
|
486
|
+
const plain = refusalTimedOut(error) ? { ...said, sentence: TIMED_OUT_SENTENCE2, storeSaid: true } : said;
|
|
477
487
|
const doors = onKeepEditing || onDiscard || onRetry ? /* @__PURE__ */ jsxs2("div", { className: "flex flex-wrap items-center gap-1 pt-0.5", "data-refusal-doors": "", children: [
|
|
478
488
|
onRetry ? /* @__PURE__ */ jsx3(
|
|
479
489
|
"button",
|
|
@@ -528,19 +538,28 @@ function RefusalNotice({
|
|
|
528
538
|
}
|
|
529
539
|
);
|
|
530
540
|
}
|
|
531
|
-
function RefusalLine({
|
|
541
|
+
function RefusalLine({
|
|
542
|
+
error,
|
|
543
|
+
className,
|
|
544
|
+
onRetry
|
|
545
|
+
}) {
|
|
532
546
|
const plain = refusalForAPerson(error);
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
547
|
+
const timedOut = refusalTimedOut(error);
|
|
548
|
+
const line = timedOut ? TIMED_OUT_SENTENCE2 : refusalLineForAPerson(error);
|
|
549
|
+
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
550
|
+
/* @__PURE__ */ jsx3(
|
|
551
|
+
ErrorBox,
|
|
552
|
+
{
|
|
553
|
+
"data-refusal-line": "",
|
|
554
|
+
className: cn2("whitespace-normal break-words text-xs text-destructive [overflow-wrap:anywhere]", className),
|
|
555
|
+
message: archivedOrganizationId(error) ? "This organization is archived. An owner can restore it." : line,
|
|
556
|
+
error,
|
|
557
|
+
origin: "records-ui/RefusalLine",
|
|
558
|
+
...plain.forEngineers ? { "data-for-engineers": plain.forEngineers } : {}
|
|
559
|
+
}
|
|
560
|
+
),
|
|
561
|
+
timedOut && onRetry ? /* @__PURE__ */ jsx3("button", { type: "button", "data-refusal-retry": "", className: "rounded border px-2 py-0.5 text-xs hover:bg-muted", onClick: onRetry, children: "Try again" }) : null
|
|
562
|
+
] });
|
|
544
563
|
}
|
|
545
564
|
|
|
546
565
|
// src/PickOrAdd.tsx
|
|
@@ -1357,6 +1376,8 @@ export {
|
|
|
1357
1376
|
refusalLineForAPerson,
|
|
1358
1377
|
refusalIsMissingInput,
|
|
1359
1378
|
withoutInternalCodes,
|
|
1379
|
+
refusalTimedOut,
|
|
1380
|
+
refusalSaid,
|
|
1360
1381
|
hintIsMachineIdentity,
|
|
1361
1382
|
hintForAPerson,
|
|
1362
1383
|
RefusalNotice,
|
|
@@ -1409,4 +1430,4 @@ export {
|
|
|
1409
1430
|
choiceNudgeOf,
|
|
1410
1431
|
useChoiceNudge
|
|
1411
1432
|
};
|
|
1412
|
-
//# sourceMappingURL=chunk-
|
|
1433
|
+
//# sourceMappingURL=chunk-NKZBAIU4.js.map
|