@ai-matrx/records-ui 0.104.2 → 0.106.0

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/dist/pickers.js CHANGED
@@ -1437,6 +1437,7 @@ import { atLeast } from "@ai-matrx/records";
1437
1437
  var LEVEL_WORD = {
1438
1438
  viewer: "Viewer",
1439
1439
  commenter: "Commenter",
1440
+ edit_content: "Content editor",
1440
1441
  editor: "Editor",
1441
1442
  admin: "Admin"
1442
1443
  };
@@ -1444,8 +1445,12 @@ var NEEDS = {
1444
1445
  read: "viewer",
1445
1446
  // custom.io_comment_write
1446
1447
  comment: "commenter",
1447
- // custom.record_update / custom.record_write
1448
- write: "editor",
1448
+ // custom.record_update / custom.record_write — `edit_content` changes rows and page content;
1449
+ // columns, views and settings (structure) stay with admin below, and sharing with admin.
1450
+ write: "edit_content",
1451
+ // custom.view_designate / view_declare / migrate_merge / record_restore — all ask `editor`: more than
1452
+ // changing content (`edit_content`), less than changing columns (`admin`).
1453
+ organise: "editor",
1449
1454
  // custom.record_delete
1450
1455
  remove: "editor",
1451
1456
  // custom.share_grant — passing your access on is an administrator's right
@@ -1463,6 +1468,7 @@ function sentenceFor(what, level) {
1463
1468
  read: "open this",
1464
1469
  comment: "leave a comment",
1465
1470
  write: "change anything here",
1471
+ organise: "organise this",
1466
1472
  remove: "delete this",
1467
1473
  share: "pass this on to somebody else",
1468
1474
  structure: "change the columns of this table"
@@ -1477,6 +1483,7 @@ function whatYouMayDo(level, known = true) {
1477
1483
  read: may("read"),
1478
1484
  comment: may("comment"),
1479
1485
  write: may("write"),
1486
+ organise: may("organise"),
1480
1487
  remove: may("remove"),
1481
1488
  share: may("share"),
1482
1489
  structure: may("structure"),