@ai-matrx/records 0.77.1 → 0.77.3

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 (46) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/app-table/index.cjs +7 -6
  3. package/dist/app-table/index.cjs.map +1 -1
  4. package/dist/app-table/index.d.cts +3 -3
  5. package/dist/app-table/index.d.ts +3 -3
  6. package/dist/app-table/index.js +7 -6
  7. package/dist/app-table/index.js.map +1 -1
  8. package/dist/{client-BcGGEpNi.d.cts → client-DZ3UcU4_.d.cts} +1 -1
  9. package/dist/{client-BbzLb-sB.d.ts → client-ZIxyAOdh.d.ts} +1 -1
  10. package/dist/core/index.cjs +12 -8
  11. package/dist/core/index.cjs.map +1 -1
  12. package/dist/core/index.d.cts +4 -4
  13. package/dist/core/index.d.ts +4 -4
  14. package/dist/core/index.js +12 -8
  15. package/dist/core/index.js.map +1 -1
  16. package/dist/data/index.cjs +4 -3
  17. package/dist/data/index.cjs.map +1 -1
  18. package/dist/data/index.d.cts +2 -2
  19. package/dist/data/index.d.ts +2 -2
  20. package/dist/data/index.js +4 -3
  21. package/dist/data/index.js.map +1 -1
  22. package/dist/{declareTable-COEPJpke.d.cts → declareTable-BYZdFrt5.d.cts} +2 -2
  23. package/dist/{declareTable-Dxq0Aega.d.ts → declareTable-DGSJMqGx.d.ts} +2 -2
  24. package/dist/index.cjs +8 -4
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +8 -4
  29. package/dist/index.js.map +1 -1
  30. package/dist/memory/index.cjs +4 -1
  31. package/dist/memory/index.cjs.map +1 -1
  32. package/dist/memory/index.js +4 -1
  33. package/dist/memory/index.js.map +1 -1
  34. package/dist/react/index.cjs +13 -9
  35. package/dist/react/index.cjs.map +1 -1
  36. package/dist/react/index.d.cts +6 -1
  37. package/dist/react/index.d.ts +6 -1
  38. package/dist/react/index.js +13 -9
  39. package/dist/react/index.js.map +1 -1
  40. package/dist/{table-kind-C5jsmotR.d.ts → table-kind-Da21ZLdJ.d.ts} +6 -1
  41. package/dist/{table-kind-DrVhYZbX.d.cts → table-kind-HAQ6WNxZ.d.cts} +6 -1
  42. package/dist/templates/index.cjs +4 -2
  43. package/dist/templates/index.cjs.map +1 -1
  44. package/dist/templates/index.js +4 -2
  45. package/dist/templates/index.js.map +1 -1
  46. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
- import { N as NewFieldSpec } from '../declareTable-COEPJpke.cjs';
1
+ import { N as NewFieldSpec } from '../declareTable-BYZdFrt5.cjs';
2
2
  import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-B7iwye2k.cjs';
3
- import { R as RecordsClient } from '../client-BcGGEpNi.cjs';
4
- import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-DrVhYZbX.cjs';
3
+ import { R as RecordsClient } from '../client-DZ3UcU4_.cjs';
4
+ import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-HAQ6WNxZ.cjs';
5
5
  import '../field-BTW7h7Wh.cjs';
6
6
  import '../subscription-Br30ZwIt.cjs';
7
7
  import '../ports-PpvsH1cQ.cjs';
@@ -1,7 +1,7 @@
1
- import { N as NewFieldSpec } from '../declareTable-Dxq0Aega.js';
1
+ import { N as NewFieldSpec } from '../declareTable-DGSJMqGx.js';
2
2
  import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-B7iwye2k.js';
3
- import { R as RecordsClient } from '../client-BbzLb-sB.js';
4
- import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-C5jsmotR.js';
3
+ import { R as RecordsClient } from '../client-ZIxyAOdh.js';
4
+ import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-Da21ZLdJ.js';
5
5
  import '../field-D7I9yck6.js';
6
6
  import '../subscription-BWaRPLyo.js';
7
7
  import '../ports-CaYEF1dG.js';
@@ -1,4 +1,5 @@
1
1
  // src/app-table/graduate.ts
2
+ import { isUuidShape } from "@ai-matrx/kit/uuid";
2
3
  var TO_CUSTOM_FIELDS = "custom_fields";
3
4
  var TO_ASSOCIATION = "association";
4
5
  var GRADUATION_BASE_COLUMNS = [
@@ -58,10 +59,9 @@ function graduationProblems(fields, graduation) {
58
59
  }
59
60
  return problems;
60
61
  }
61
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
62
62
  function idsOf(value) {
63
63
  const list = Array.isArray(value) ? value : value === null || value === void 0 ? [] : [value];
64
- return list.filter((v) => typeof v === "string" && UUID.test(v));
64
+ return list.filter((v) => typeof v === "string" && isUuidShape(v));
65
65
  }
66
66
  function graduatedRow(fields, graduation, snapshot) {
67
67
  const row = {
@@ -592,7 +592,7 @@ function mapPgError(error, where) {
592
592
  }
593
593
 
594
594
  // src/relation.ts
595
- import { isUuidShape } from "@ai-matrx/kit/uuid";
595
+ import { isUuidShape as isUuidShape2 } from "@ai-matrx/kit/uuid";
596
596
  var REVERSE_LINKS_RECORDS_PER_CALL = 200;
597
597
  function sourceArchivedOf(value) {
598
598
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
@@ -635,7 +635,7 @@ function mintOpId() {
635
635
  }
636
636
 
637
637
  // src/choice.ts
638
- import { isUuidShape as isUuidShape2 } from "@ai-matrx/kit/uuid";
638
+ import { isUuidShape as isUuidShape3 } from "@ai-matrx/kit/uuid";
639
639
  var CHOICE_NUDGES = ["ask", "always_add", "never_add"];
640
640
  function asChoiceNudge(value) {
641
641
  return typeof value === "string" && CHOICE_NUDGES.includes(value) ? value : "ask";
@@ -790,8 +790,9 @@ function parseTableDuplicated(raw) {
790
790
  var ORDINAL = {
791
791
  viewer: 1,
792
792
  commenter: 2,
793
- editor: 3,
794
- admin: 4
793
+ edit_content: 3,
794
+ editor: 4,
795
+ admin: 5
795
796
  };
796
797
  function asPermissionLevel(word) {
797
798
  return typeof word === "string" && word in ORDINAL ? word : null;