@protobase/ui 0.46.10 → 0.46.11

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.
@@ -7,6 +7,7 @@ const text = defineMessages({
7
7
  wrongEmailOrPassword: "The email or password is not right.",
8
8
  wrongPassword: "The password is not right.",
9
9
  wrongCode: "The code is not right.",
10
+ wrongOrExpiredCode: "The code is not right, or has expired. Ask for a new one.",
10
11
  codeExpired: "The code has expired. Ask for a new one.",
11
12
  tooManyCodes: "Too many wrong codes. Ask for a new one.",
12
13
  wrongBackupCode: "The backup code is not right, or was used before.",
@@ -35,6 +36,7 @@ const text = defineMessages({
35
36
  wrongEmailOrPassword: "Het e-mailadres of wachtwoord klopt niet.",
36
37
  wrongPassword: "Het wachtwoord klopt niet.",
37
38
  wrongCode: "De code klopt niet.",
39
+ wrongOrExpiredCode: "De code klopt niet, of is verlopen. Vraag een nieuwe aan.",
38
40
  codeExpired: "De code is verlopen. Vraag een nieuwe aan.",
39
41
  tooManyCodes: "Te veel verkeerde codes. Vraag een nieuwe aan.",
40
42
  wrongBackupCode: "De back-upcode klopt niet, of is al eerder gebruikt.",
@@ -81,8 +83,9 @@ const providerText = defineMessages({
81
83
  const messages = {
82
84
  INVALID_EMAIL_OR_PASSWORD: "wrongEmailOrPassword",
83
85
  INVALID_PASSWORD: "wrongPassword",
84
- INVALID_OTP: "wrongCode",
86
+ INVALID_OTP: "wrongOrExpiredCode",
85
87
  OTP_EXPIRED: "codeExpired",
88
+ OTP_HAS_EXPIRED: "codeExpired",
86
89
  TOO_MANY_ATTEMPTS: "tooManyCodes",
87
90
  INVALID_CODE: "wrongCode",
88
91
  INVALID_BACKUP_CODE: "wrongBackupCode",
@@ -3,6 +3,7 @@ import { defineMessages } from "../locale/messages.js";
3
3
  const text = defineMessages({
4
4
  en: {
5
5
  organizations: "Organizations",
6
+ manageOrganizations: "Manage organizations",
6
7
  organization: "Organization",
7
8
  members: "Members",
8
9
  invitations: "Invitations",
@@ -91,6 +92,7 @@ const text = defineMessages({
91
92
  },
92
93
  nl: {
93
94
  organizations: "Organisaties",
95
+ manageOrganizations: "Organisaties beheren",
94
96
  organization: "Organisatie",
95
97
  members: "Leden",
96
98
  invitations: "Uitnodigingen",
@@ -24,7 +24,8 @@ const roleLabel = (roles, name) => roles.find((role) => role.name === name)?.lab
24
24
  const managesOrganization = (current) => current?.role === "owner" || current?.role === "admin";
25
25
  /**
26
26
  * The organization pages in the profile menu: every organization of the person, and for the one they work in its
27
- * details, and for its owners and admins its members and invitations.
27
+ * details, and for its owners and admins its members and invitations. The first is "Manage organizations", as the
28
+ * switcher above it already lists the organizations.
28
29
  */
29
30
  const organizationMenuItems = (basePath, path, current) => {
30
31
  const item = (id, label, icon, target) => ({
@@ -35,7 +36,7 @@ const organizationMenuItems = (basePath, path, current) => {
35
36
  active: path === target
36
37
  });
37
38
  return [
38
- item("organizations", text("organizations"), Network, organizationsPath),
39
+ item("organizations", text("manageOrganizations"), Network, organizationsPath),
39
40
  ...current?.organization ? [item("organization", text("organization"), Building2, organizationPath)] : [],
40
41
  ...managesOrganization(current) ? [item("members", text("members"), Users, membersPath), item("invitations", text("invitations"), Mail, invitationsPath)] : []
41
42
  ];
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.46.10";
2
+ var version = "0.46.11";
3
3
  var protobase = { "pluginApi": 1 };
4
4
  //#endregion
5
5
  export { protobase, version };