@ai-matrx/records-ui 0.116.109 → 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.
Files changed (33) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/dist/{SaveToTable-WZ4BELUI.js → SaveToTable-PDRY5OXB.js} +4 -4
  3. package/dist/{chunk-TABDUUEC.js → chunk-266JKBAS.js} +16 -3
  4. package/dist/chunk-266JKBAS.js.map +1 -0
  5. package/dist/{chunk-T7SXM6ZL.js → chunk-FD4GYJX6.js} +3 -3
  6. package/dist/{chunk-NS2VEKMS.js → chunk-FZVW6XVB.js} +2 -2
  7. package/dist/{chunk-TZ2KUSHH.js → chunk-HTZPVHDG.js} +26 -5
  8. package/dist/chunk-HTZPVHDG.js.map +1 -0
  9. package/dist/{chunk-K7OX6RG6.js → chunk-JTEIYLII.js} +3 -1
  10. package/dist/chunk-JTEIYLII.js.map +1 -0
  11. package/dist/{chunk-D7LNXDKV.js → chunk-Z3EUU2NM.js} +2 -2
  12. package/dist/helpers.cjs +17 -2
  13. package/dist/helpers.cjs.map +1 -1
  14. package/dist/helpers.js +17 -2
  15. package/dist/helpers.js.map +1 -1
  16. package/dist/index.cjs +414 -349
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +7 -2
  19. package/dist/index.d.ts +7 -2
  20. package/dist/index.js +221 -191
  21. package/dist/index.js.map +1 -1
  22. package/dist/pickers.cjs +195 -160
  23. package/dist/pickers.cjs.map +1 -1
  24. package/dist/pickers.js +4 -4
  25. package/dist/skeleton.js +3 -3
  26. package/package.json +2 -2
  27. package/dist/chunk-K7OX6RG6.js.map +0 -1
  28. package/dist/chunk-TABDUUEC.js.map +0 -1
  29. package/dist/chunk-TZ2KUSHH.js.map +0 -1
  30. /package/dist/{SaveToTable-WZ4BELUI.js.map → SaveToTable-PDRY5OXB.js.map} +0 -0
  31. /package/dist/{chunk-T7SXM6ZL.js.map → chunk-FD4GYJX6.js.map} +0 -0
  32. /package/dist/{chunk-NS2VEKMS.js.map → chunk-FZVW6XVB.js.map} +0 -0
  33. /package/dist/{chunk-D7LNXDKV.js.map → chunk-Z3EUU2NM.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,10 +1,36 @@
1
1
  # Changelog
2
2
 
3
- ## 0.116.109
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
+
24
+ ## 0.116.109
25
+
26
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
27
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
28
+ Diff: `git diff d324df1734 5a535efe67 -- apps/shared/records-ui/src`
29
+
30
+ Changed shipped source files (2):
31
+ - `apps/shared/records-ui/src/DocRender.tsx`
32
+ - `apps/shared/records-ui/src/DocTemplate.tsx`
33
+
8
34
  ## 0.116.108
9
35
 
10
36
  Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 45e5dca239 d324df1734 -- apps/shared/records-ui/src`
@@ -3,12 +3,12 @@ import {
3
3
  SAVE_TO_TABLE_TYPES,
4
4
  SaveToTable,
5
5
  shapesOfSource
6
- } from "./chunk-T7SXM6ZL.js";
6
+ } from "./chunk-FD4GYJX6.js";
7
7
  import "./chunk-MTA5CGMH.js";
8
- import "./chunk-TABDUUEC.js";
8
+ import "./chunk-266JKBAS.js";
9
9
  import "./chunk-YHPVSUK6.js";
10
10
  import "./chunk-LBZZDHV6.js";
11
- import "./chunk-K7OX6RG6.js";
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-WZ4BELUI.js.map
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 sentence = raw.trim();
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-TABDUUEC.js.map
1802
+ //# sourceMappingURL=chunk-266JKBAS.js.map