@ai-matrx/records 0.77.1 → 0.77.2

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 (38) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/app-table/index.cjs +3 -2
  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 +3 -2
  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 +4 -2
  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 +4 -2
  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 +4 -2
  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 +4 -2
  29. package/dist/index.js.map +1 -1
  30. package/dist/react/index.cjs +5 -3
  31. package/dist/react/index.cjs.map +1 -1
  32. package/dist/react/index.d.cts +6 -1
  33. package/dist/react/index.d.ts +6 -1
  34. package/dist/react/index.js +5 -3
  35. package/dist/react/index.js.map +1 -1
  36. package/dist/{table-kind-C5jsmotR.d.ts → table-kind-Da21ZLdJ.d.ts} +6 -1
  37. package/dist/{table-kind-DrVhYZbX.d.cts → table-kind-HAQ6WNxZ.d.cts} +6 -1
  38. package/package.json +3 -3
@@ -989,14 +989,16 @@ function moveConsequence(home, to) {
989
989
  var PERMISSION_LEVELS = [
990
990
  "viewer",
991
991
  "commenter",
992
+ "edit_content",
992
993
  "editor",
993
994
  "admin"
994
995
  ];
995
996
  var ORDINAL = {
996
997
  viewer: 1,
997
998
  commenter: 2,
998
- editor: 3,
999
- admin: 4
999
+ edit_content: 3,
1000
+ editor: 4,
1001
+ admin: 5
1000
1002
  };
1001
1003
  function atLeast(held, needed) {
1002
1004
  if (!held) return false;
@@ -10132,7 +10134,7 @@ function createTableDataPort({ client, aliases }) {
10132
10134
  const levels = await seat(binding).myLevels({ ids: [binding.tableId] });
10133
10135
  level = levels.ok ? levels.data[0]?.level ?? null : null;
10134
10136
  }
10135
- const may = atLeast(level, "editor");
10137
+ const may = atLeast(level, "edit_content");
10136
10138
  out.push({ alias, label: binding.label ?? table.data?.name ?? alias, kind: "table", canCreate: may, canUpdate: may });
10137
10139
  }
10138
10140
  return { ok: true, data: out };