@ai-matrx/records-ui 0.116.110 → 0.116.111
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 +17 -1
- package/dist/{SaveToTable-WZ4BELUI.js → SaveToTable-PDRY5OXB.js} +4 -4
- package/dist/{chunk-TABDUUEC.js → chunk-266JKBAS.js} +16 -3
- package/dist/chunk-266JKBAS.js.map +1 -0
- package/dist/{chunk-T7SXM6ZL.js → chunk-FD4GYJX6.js} +3 -3
- package/dist/{chunk-NS2VEKMS.js → chunk-FZVW6XVB.js} +2 -2
- package/dist/{chunk-TZ2KUSHH.js → chunk-HTZPVHDG.js} +26 -5
- package/dist/chunk-HTZPVHDG.js.map +1 -0
- package/dist/{chunk-K7OX6RG6.js → chunk-JTEIYLII.js} +3 -1
- package/dist/chunk-JTEIYLII.js.map +1 -0
- package/dist/{chunk-D7LNXDKV.js → chunk-Z3EUU2NM.js} +2 -2
- package/dist/helpers.cjs +17 -2
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +17 -2
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +371 -332
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +177 -174
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +195 -160
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +4 -4
- package/dist/skeleton.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-K7OX6RG6.js.map +0 -1
- package/dist/chunk-TABDUUEC.js.map +0 -1
- package/dist/chunk-TZ2KUSHH.js.map +0 -1
- /package/dist/{SaveToTable-WZ4BELUI.js.map → SaveToTable-PDRY5OXB.js.map} +0 -0
- /package/dist/{chunk-T7SXM6ZL.js.map → chunk-FD4GYJX6.js.map} +0 -0
- /package/dist/{chunk-NS2VEKMS.js.map → chunk-FZVW6XVB.js.map} +0 -0
- /package/dist/{chunk-D7LNXDKV.js.map → chunk-Z3EUU2NM.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.116.
|
|
3
|
+
## 0.116.111
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
7
7
|
|
|
8
|
+
## 0.116.110
|
|
9
|
+
|
|
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 5a535efe67 4a11216b9b -- apps/shared/records-ui/src`
|
|
13
|
+
|
|
14
|
+
Changed shipped source files (8):
|
|
15
|
+
- `apps/shared/records-ui/src/Enrich.tsx`
|
|
16
|
+
- `apps/shared/records-ui/src/Grid.tsx`
|
|
17
|
+
- `apps/shared/records-ui/src/HistoryPanel.tsx`
|
|
18
|
+
- `apps/shared/records-ui/src/MigrationLog.tsx`
|
|
19
|
+
- `apps/shared/records-ui/src/PastePreview.tsx`
|
|
20
|
+
- `apps/shared/records-ui/src/RecordPanel.tsx`
|
|
21
|
+
- `apps/shared/records-ui/src/SectionCard.tsx`
|
|
22
|
+
- `apps/shared/records-ui/src/ViewBar.tsx`
|
|
23
|
+
|
|
8
24
|
## 0.116.109
|
|
9
25
|
|
|
10
26
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
SAVE_TO_TABLE_TYPES,
|
|
4
4
|
SaveToTable,
|
|
5
5
|
shapesOfSource
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FD4GYJX6.js";
|
|
7
7
|
import "./chunk-MTA5CGMH.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-266JKBAS.js";
|
|
9
9
|
import "./chunk-YHPVSUK6.js";
|
|
10
10
|
import "./chunk-LBZZDHV6.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-JTEIYLII.js";
|
|
12
12
|
import "./chunk-WCQSJPLS.js";
|
|
13
13
|
import "./chunk-HKYEHBQT.js";
|
|
14
14
|
export {
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
SaveToTable,
|
|
17
17
|
shapesOfSource
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=SaveToTable-
|
|
19
|
+
//# sourceMappingURL=SaveToTable-PDRY5OXB.js.map
|
|
@@ -314,11 +314,21 @@ function peopleSentence(message) {
|
|
|
314
314
|
function refusalSentence(error) {
|
|
315
315
|
return refusalForAPerson(error).sentence;
|
|
316
316
|
}
|
|
317
|
+
var BUILD_LABEL = String.raw`(?:Test \d+ \([^)]{1,40}\)|[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+|[A-Z]{1,5}\d+[a-z]?)`;
|
|
318
|
+
var LEADING_BUILD_LABEL = new RegExp(String.raw`^${BUILD_LABEL}(?:\s*\/\s*${BUILD_LABEL})*:\s+`);
|
|
319
|
+
function withoutBuildLabel(sentence) {
|
|
320
|
+
const hit = LEADING_BUILD_LABEL.exec(sentence);
|
|
321
|
+
if (!hit) return { label: null, rest: sentence };
|
|
322
|
+
const rest = sentence.slice(hit[0].length).trim();
|
|
323
|
+
return { label: hit[0].trim(), rest: rest.charAt(0).toUpperCase() + rest.slice(1) };
|
|
324
|
+
}
|
|
317
325
|
function plainSentence(message) {
|
|
318
326
|
const dropped = [];
|
|
319
327
|
const kept2 = [];
|
|
320
328
|
for (const raw of message.split(/(?<=[.!?])\s+/)) {
|
|
321
|
-
const
|
|
329
|
+
const labelled = withoutBuildLabel(raw.trim());
|
|
330
|
+
if (labelled.label) dropped.push(labelled.label);
|
|
331
|
+
const sentence = labelled.rest;
|
|
322
332
|
if (sentence === "") continue;
|
|
323
333
|
const cleaned = withoutMachineClauses(sentence);
|
|
324
334
|
dropped.push(...cleaned.dropped);
|
|
@@ -326,6 +336,9 @@ function plainSentence(message) {
|
|
|
326
336
|
}
|
|
327
337
|
return { kept: kept2.length === 0 ? null : kept2.join(" "), dropped };
|
|
328
338
|
}
|
|
339
|
+
function readsAsASentence(text) {
|
|
340
|
+
return (text ?? "").trim().split(/\s+/).filter(Boolean).length >= 2;
|
|
341
|
+
}
|
|
329
342
|
function exampleOf(error) {
|
|
330
343
|
const detail = error.detail;
|
|
331
344
|
if (!detail || typeof detail !== "object") return null;
|
|
@@ -342,7 +355,7 @@ function refusalForAPerson(error) {
|
|
|
342
355
|
const title = timedOut ? TITLE["timed_out"] : TITLE[code] ?? "That was refused";
|
|
343
356
|
const hintIsForEngineers = isDeveloperHint(String(error.hint ?? ""));
|
|
344
357
|
const example = exampleOf(error);
|
|
345
|
-
const remedy = (example ? `Enter it like ${example}.` : null) ?? (hintIsForEngineers ? null : hint.kept) ?? (timedOut ? REMEDY["timed_out"] : REMEDY[code]) ?? REMEDY["internal"];
|
|
358
|
+
const remedy = (example ? `Enter it like ${example}.` : null) ?? (hintIsForEngineers || !readsAsASentence(hint.kept) ? null : hint.kept) ?? (timedOut ? REMEDY["timed_out"] : REMEDY[code]) ?? REMEDY["internal"];
|
|
346
359
|
const messageIsForEngineers = isEngineerText(String(error.message ?? ""));
|
|
347
360
|
const said = timedOut ? TIMED_OUT_SAID : (messageIsForEngineers ? "" : message.kept ?? "").trim();
|
|
348
361
|
const forEngineers = [
|
|
@@ -1786,4 +1799,4 @@ export {
|
|
|
1786
1799
|
choiceNudgeOf,
|
|
1787
1800
|
useChoiceNudge
|
|
1788
1801
|
};
|
|
1789
|
-
//# sourceMappingURL=chunk-
|
|
1802
|
+
//# sourceMappingURL=chunk-266JKBAS.js.map
|