@ai-matrx/records-ui 0.116.46 → 0.116.47

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 (37) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/{SaveToTable-SWB2ZN5X.js → SaveToTable-HG3HQMAQ.js} +5 -5
  3. package/dist/{chunk-KQR2RA4V.js → chunk-ABIUJCNS.js} +3 -3
  4. package/dist/chunk-ABIUJCNS.js.map +1 -0
  5. package/dist/{chunk-Y5QOV3XA.js → chunk-K3B5IRXY.js} +3 -3
  6. package/dist/{chunk-OV6QBL5R.js → chunk-LBZZDHV6.js} +8 -8
  7. package/dist/chunk-LBZZDHV6.js.map +1 -0
  8. package/dist/{chunk-ZUQUZOL5.js → chunk-MDXDJVDB.js} +3 -3
  9. package/dist/chunk-MDXDJVDB.js.map +1 -0
  10. package/dist/{chunk-UTMV5ES2.js → chunk-VJDJQDDI.js} +7 -7
  11. package/dist/{chunk-UTMV5ES2.js.map → chunk-VJDJQDDI.js.map} +1 -1
  12. package/dist/helpers.cjs +9 -9
  13. package/dist/helpers.cjs.map +1 -1
  14. package/dist/helpers.js +9 -9
  15. package/dist/helpers.js.map +1 -1
  16. package/dist/index.cjs +30 -30
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +2 -2
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +22 -22
  21. package/dist/index.js.map +1 -1
  22. package/dist/object-actions.cjs +8 -8
  23. package/dist/object-actions.cjs.map +1 -1
  24. package/dist/object-actions.d.cts +1 -1
  25. package/dist/object-actions.d.ts +1 -1
  26. package/dist/object-actions.js +2 -2
  27. package/dist/{objectActions-Be9sBGvW.d.cts → objectActions-DK-qa5zC.d.cts} +1 -1
  28. package/dist/{objectActions-Be9sBGvW.d.ts → objectActions-DK-qa5zC.d.ts} +1 -1
  29. package/dist/pickers.cjs +8 -8
  30. package/dist/pickers.cjs.map +1 -1
  31. package/dist/pickers.js +3 -3
  32. package/package.json +2 -2
  33. package/dist/chunk-KQR2RA4V.js.map +0 -1
  34. package/dist/chunk-OV6QBL5R.js.map +0 -1
  35. package/dist/chunk-ZUQUZOL5.js.map +0 -1
  36. /package/dist/{SaveToTable-SWB2ZN5X.js.map → SaveToTable-HG3HQMAQ.js.map} +0 -0
  37. /package/dist/{chunk-Y5QOV3XA.js.map → chunk-K3B5IRXY.js.map} +0 -0
package/dist/helpers.js CHANGED
@@ -106,11 +106,11 @@ function personWallNow(at = /* @__PURE__ */ new Date()) {
106
106
  return new Date(n("year"), n("month") - 1, n("day"), n("hour"), n("minute"), n("second"));
107
107
  }
108
108
  var LEVEL_WORD = {
109
- viewer: "Viewer",
110
- commenter: "Commenter",
111
- edit_content: "Content editor",
112
- editor: "Editor",
113
- admin: "Admin"
109
+ viewer: "View access",
110
+ commenter: "Comment access",
111
+ edit_content: "Edit access",
112
+ editor: "Edit access",
113
+ admin: "Full access"
114
114
  };
115
115
  var NEEDS = {
116
116
  read: "viewer",
@@ -135,7 +135,7 @@ function levelNeededFor(what) {
135
135
  return NEEDS[what];
136
136
  }
137
137
  var NOT_YET = "Checking what you may do here. Nothing is offered until then.";
138
- var NOTHING_AT_ALL = "You have not been given this. Ask somebody who administers it to share it with you.";
138
+ var NOTHING_AT_ALL = "You have not been given this. Ask somebody with Full access on it to share it with you.";
139
139
  function sentenceFor(what, level) {
140
140
  if (level === null) return NOTHING_AT_ALL;
141
141
  const need = LEVEL_WORD[NEEDS[what]];
@@ -149,7 +149,7 @@ function sentenceFor(what, level) {
149
149
  share: "pass this on to somebody else",
150
150
  structure: "change the columns of this table"
151
151
  };
152
- return `You are ${have} here, and it takes ${need} to ${doing[what]}. Ask somebody who is Admin on it to move you up.`;
152
+ return `You have ${have} here, and it takes ${need} to ${doing[what]}. Ask somebody with Full access on it to move you up.`;
153
153
  }
154
154
  function whatYouMayDo(level, known = true) {
155
155
  const may = (what) => known && atLeast(level, NEEDS[what]);
@@ -1049,7 +1049,7 @@ function exampleOf(error) {
1049
1049
  const example = detail.example;
1050
1050
  return typeof example === "string" && example.trim() !== "" ? example.trim() : null;
1051
1051
  }
1052
- var TIMED_OUT_SAID = "This took too long. Please try again.";
1052
+ var TIMED_OUT_SAID = "That took too long. Nothing was lost; try again.";
1053
1053
  function refusalForAPerson(error) {
1054
1054
  const code = error.code ?? "internal";
1055
1055
  const timedOut = code === "timed_out" || error.sqlstate === "57014" || /canceling statement due to statement timeout/i.test(String(error.message ?? ""));
@@ -1211,7 +1211,7 @@ function rightsReason(rights, what, table) {
1211
1211
  if (!rights.known) return ACTION_CHECKING_ACCESS_REASON;
1212
1212
  if (rights[what]) return null;
1213
1213
  if (rights.level === null) return ACTION_NO_ACCESS_REASON;
1214
- return `Needs ${LEVEL_WORD[levelNeededFor(what)]} access`;
1214
+ return `Needs ${LEVEL_WORD[levelNeededFor(what)]}`;
1215
1215
  }
1216
1216
  var TABLE_ACTION_CHORDS = {
1217
1217
  "copy-link": { code: "KeyL", chord: "alt+shift+l" },