@remit/web-client 0.0.189 → 0.0.190

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client",
3
- "version": "0.0.189",
3
+ "version": "0.0.190",
4
4
  "type": "module",
5
5
  "description": "Remit web client, published as composable primitives — the app shell, auth shells, and runtime config. A distributor imports what it composes and bundles it.",
6
6
  "exports": {
@@ -92,7 +92,9 @@ const seededClient = (trashMailboxId: string): QueryClient => {
92
92
  makeConfig([
93
93
  makeAccount({
94
94
  accountId: "acc-1",
95
- folderAppointments: [{ role: "Trash", mailboxId: trashMailboxId }],
95
+ folderAppointments: [
96
+ { role: "Trash", source: "Appointed", mailboxId: trashMailboxId },
97
+ ],
96
98
  }),
97
99
  ]),
98
100
  );
@@ -46,8 +46,8 @@ const mailboxes: RemitImapMailboxResponse[] = [
46
46
  ];
47
47
 
48
48
  const appointments: RemitImapFolderAppointment[] = [
49
- { role: "Inbox", mailboxId: "inbox" },
50
- { role: "Archive", mailboxId: "archive" },
49
+ { role: "Inbox", source: "Appointed", mailboxId: "inbox" },
50
+ { role: "Archive", source: "Appointed", mailboxId: "archive" },
51
51
  ];
52
52
 
53
53
  // The role labels the app resolves through i18n, so a folder appointed to a
@@ -213,7 +213,7 @@ describe("DeleteFolderDialog", () => {
213
213
  allMailboxes: [...mailboxes, trash],
214
214
  folderAppointments: [
215
215
  ...appointments,
216
- { role: "Trash", mailboxId: "trash" },
216
+ { role: "Trash", source: "Appointed", mailboxId: "trash" },
217
217
  ],
218
218
  });
219
219
  assert.match(container.textContent ?? "", /Delete Trash/);
@@ -11,7 +11,7 @@ import {
11
11
  const appoint = (
12
12
  role: RemitImapFolderAppointment["role"],
13
13
  mailboxId: string | undefined,
14
- ): RemitImapFolderAppointment => ({ role, mailboxId });
14
+ ): RemitImapFolderAppointment => ({ role, source: "Appointed", mailboxId });
15
15
 
16
16
  describe("buildMailboxRoleMap", () => {
17
17
  test("maps mailboxId to its appointed role", () => {
@@ -44,7 +44,7 @@ const make = (
44
44
  const appoint = (
45
45
  role: RemitImapFolderAppointment["role"],
46
46
  mailboxId: string,
47
- ): RemitImapFolderAppointment => ({ role, mailboxId });
47
+ ): RemitImapFolderAppointment => ({ role, source: "Appointed", mailboxId });
48
48
 
49
49
  const applePaths = [
50
50
  make({ mailboxId: "mb-inbox", fullPath: "INBOX" }),
@@ -28,7 +28,7 @@ const make = (
28
28
  const appoint = (
29
29
  role: RemitImapFolderAppointment["role"],
30
30
  mailboxId: string,
31
- ): RemitImapFolderAppointment => ({ role, mailboxId });
31
+ ): RemitImapFolderAppointment => ({ role, source: "Appointed", mailboxId });
32
32
 
33
33
  describe("buildMoveTargets — excluded destinations (#236, #976)", () => {
34
34
  test("drops the account's appointed Drafts and Sent mailboxes", () => {
@@ -24,10 +24,10 @@ const ACCOUNT_ID = "acc-1";
24
24
  const account = makeAccount({
25
25
  accountId: ACCOUNT_ID,
26
26
  folderAppointments: [
27
- { role: "Inbox", mailboxId: "mbx-inbox" },
28
- { role: "Drafts", mailboxId: "mbx-concepten" },
29
- { role: "Sent", mailboxId: "mbx-verzonden" },
30
- { role: "Archive", mailboxId: "mbx-archief" },
27
+ { role: "Inbox", source: "Appointed", mailboxId: "mbx-inbox" },
28
+ { role: "Drafts", source: "Appointed", mailboxId: "mbx-concepten" },
29
+ { role: "Sent", source: "Appointed", mailboxId: "mbx-verzonden" },
30
+ { role: "Archive", source: "Appointed", mailboxId: "mbx-archief" },
31
31
  ],
32
32
  });
33
33