@remit/web-client 0.0.58 → 0.0.59
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 +1 -1
- package/src/lib/auto-moved.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/web-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
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": {
|
package/src/lib/auto-moved.ts
CHANGED
|
@@ -17,15 +17,15 @@ const FROM_PLACEMENT_LABEL: Record<string, string> = {
|
|
|
17
17
|
* (verdict/confidence/dryRun never surface) — mirrors the no-jargon precedent
|
|
18
18
|
* in `rescue-candidates.ts`.
|
|
19
19
|
*/
|
|
20
|
-
export const autoMovedLabel = (fromPlacement: string): string =>
|
|
21
|
-
`Moved from ${FROM_PLACEMENT_LABEL[fromPlacement] ?? "another folder"} by Remit`;
|
|
20
|
+
export const autoMovedLabel = (fromPlacement: string | undefined): string =>
|
|
21
|
+
`Moved from ${FROM_PLACEMENT_LABEL[fromPlacement ?? ""] ?? "another folder"} by Remit`;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* The mailbox the verdict's `action` implies as the destination — where the
|
|
25
25
|
* message should currently sit for the move to still be "in effect".
|
|
26
26
|
*/
|
|
27
27
|
const impliedDestinationMailboxId = (
|
|
28
|
-
action: string,
|
|
28
|
+
action: string | undefined,
|
|
29
29
|
mailboxes: AutoMovedRoleMailboxes,
|
|
30
30
|
): string | undefined => {
|
|
31
31
|
if (action === PlacementAction.MoveToInbox) return mailboxes.inboxMailboxId;
|
|
@@ -59,7 +59,7 @@ export const isAutoMoveInEffect = (
|
|
|
59
59
|
* account has no mailbox appointed to that role.
|
|
60
60
|
*/
|
|
61
61
|
export const resolveUndoTargetMailboxId = (
|
|
62
|
-
fromPlacement: string,
|
|
62
|
+
fromPlacement: string | undefined,
|
|
63
63
|
mailboxes: AutoMovedRoleMailboxes,
|
|
64
64
|
): string | undefined => {
|
|
65
65
|
if (fromPlacement === "inbox") return mailboxes.inboxMailboxId;
|