@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 { R as RecordsClient } from './client-BcGGEpNi.cjs';
1
+ import { R as RecordsClient } from './client-DZ3UcU4_.cjs';
2
2
  import { F as FieldTypeWord, N as NewFieldDeclaration } from './field-BTW7h7Wh.cjs';
3
3
  import { U as Uuid, R as RecordsError } from './record-B7iwye2k.cjs';
4
- import { F as FieldDrift } from './table-kind-DrVhYZbX.cjs';
4
+ import { F as FieldDrift } from './table-kind-HAQ6WNxZ.cjs';
5
5
 
6
6
  /** One Field a person asked for, in the words a person uses (FLD-1 / FLD-11). */
7
7
  interface NewFieldSpec {
@@ -1,7 +1,7 @@
1
- import { R as RecordsClient } from './client-BbzLb-sB.js';
1
+ import { R as RecordsClient } from './client-ZIxyAOdh.js';
2
2
  import { F as FieldTypeWord, N as NewFieldDeclaration } from './field-D7I9yck6.js';
3
3
  import { U as Uuid, R as RecordsError } from './record-B7iwye2k.js';
4
- import { F as FieldDrift } from './table-kind-C5jsmotR.js';
4
+ import { F as FieldDrift } from './table-kind-Da21ZLdJ.js';
5
5
 
6
6
  /** One Field a person asked for, in the words a person uses (FLD-1 / FLD-11). */
7
7
  interface NewFieldSpec {
package/dist/index.cjs CHANGED
@@ -329,14 +329,16 @@ function sameDocument(a, b) {
329
329
  var PERMISSION_LEVELS = [
330
330
  "viewer",
331
331
  "commenter",
332
+ "edit_content",
332
333
  "editor",
333
334
  "admin"
334
335
  ];
335
336
  var ORDINAL = {
336
337
  viewer: 1,
337
338
  commenter: 2,
338
- editor: 3,
339
- admin: 4
339
+ edit_content: 3,
340
+ editor: 4,
341
+ admin: 5
340
342
  };
341
343
  function atLeast(held, needed) {
342
344
  if (!held) return false;
@@ -4636,6 +4638,9 @@ function scopeChip(scope) {
4636
4638
  return scope.title ? `About: ${scope.title}` : "About: this record";
4637
4639
  }
4638
4640
 
4641
+ // src/table-kind.ts
4642
+ var import_uuid5 = require("@ai-matrx/kit/uuid");
4643
+
4639
4644
  // src/table-kind-mapping.json
4640
4645
  var table_kind_mapping_default = {
4641
4646
  about: "THE ONE MAPPING from a store Field to a kind's three schemas (KINDS-GLUE wave 3 \xA72). Hand-written here; aidream copies it verbatim to packages/matrx-graph/matrx_graph/table_kind_mapping.json (scripts/generate_table_kind_mapping.py --check). Both languages derive from this file only: @ai-matrx/records src/table-kind.ts and matrx_graph.table_kinds. Keys of `kinds` are the store's field kinds (custom.field_kinds() plus the formula `system` kinds custom.field_kind_of answers). Stored mode only: `column_source_default` is custom.table_column_source's answer when the facts carry none (silence means the doctrine: Field rows are the columns); `platform_keys` mirrors custom.record_platform_keys() with each key's shape (parent_id: custom.containment_parent's uuid cast; icon: the record's own @ai-matrx/icons name, a string or null); `stored_patterns` mirror custom.validate_values' relation id regex and, for dates, refuse a string the timestamptz cast can never read (no digits, not a special word) while never refusing one it can.",
@@ -4714,14 +4719,13 @@ var table_kind_mapping_default = {
4714
4719
 
4715
4720
  // src/table-kind.ts
4716
4721
  var TABLE_KIND_PREFIX = "table:";
4717
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
4718
4722
  var KIND_KEY = "__kind";
4719
4723
  var M = table_kind_mapping_default;
4720
4724
  function tableKindMapping() {
4721
4725
  return M;
4722
4726
  }
4723
4727
  function isTableKind(slug) {
4724
- return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && UUID.test(slug.slice(TABLE_KIND_PREFIX.length));
4728
+ return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && (0, import_uuid5.isLowercaseUuidShape)(slug.slice(TABLE_KIND_PREFIX.length));
4725
4729
  }
4726
4730
  function tableKindSlug(tableId) {
4727
4731
  const slug = `${TABLE_KIND_PREFIX}${String(tableId).trim().toLowerCase()}`;