@remit/web-client 0.0.297 → 0.0.299

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 (36) hide show
  1. package/package.json +1 -1
  2. package/src/components/calendar/CalendarEventPane.stories.tsx +16 -0
  3. package/src/components/calendar/OpenCalendarEvent.tsx +23 -6
  4. package/src/components/calendar/WriteCalendarEvent.tsx +8 -4
  5. package/src/components/calendar/calendar-write-flow.render.test.ts +39 -22
  6. package/src/components/compose/ComposeForm.tsx +116 -0
  7. package/src/components/compose/attachment-only-source.render.test.ts +1 -0
  8. package/src/components/compose/compose-send-stops-autosave.render.test.ts +1 -0
  9. package/src/components/compose/compose-starts-a-second-message.render.test.ts +1 -0
  10. package/src/components/compose/forward-autosave-is-not-fatal.render.test.ts +1 -0
  11. package/src/components/compose/quote-leaves-with-the-send.render.test.ts +1 -0
  12. package/src/components/compose/reopened-draft-writes-nothing.render.test.ts +1 -0
  13. package/src/components/compose/reply-all-on-resumed-draft.render.test.ts +1 -0
  14. package/src/hooks/calendar/calendar-collections.render.test.ts +23 -1
  15. package/src/hooks/calendar/draft.test.ts +179 -30
  16. package/src/hooks/calendar/draft.ts +59 -33
  17. package/src/hooks/calendar/index.ts +5 -1
  18. package/src/hooks/calendar/instance.test.ts +70 -0
  19. package/src/hooks/calendar/instance.ts +28 -15
  20. package/src/hooks/calendar/recurrence-rule.test.ts +43 -1
  21. package/src/hooks/calendar/recurrence-rule.ts +44 -0
  22. package/src/hooks/calendar/resource.test.ts +44 -1
  23. package/src/hooks/calendar/resource.ts +30 -0
  24. package/src/hooks/calendar/selection.ts +7 -4
  25. package/src/hooks/calendar/useDraftClashes.ts +3 -1
  26. package/src/hooks/calendar/window.test.ts +28 -0
  27. package/src/hooks/calendar/window.ts +20 -0
  28. package/src/hooks/useComposeAttachments.ts +103 -0
  29. package/src/hooks/useIntelligenceCalendar.ts +2 -0
  30. package/src/hooks/useIntelligenceData.ts +2 -2
  31. package/src/lib/calendar-format.ts +7 -2
  32. package/src/lib/compose-attachment-controller.test.ts +242 -0
  33. package/src/lib/compose-attachment-controller.ts +415 -0
  34. package/src/routes/settings/-accounts.test.ts +18 -0
  35. package/src/routes/settings/accounts.tsx +8 -1
  36. package/src/test-support/fixtures.ts +1 -0
@@ -64,6 +64,10 @@ export function mapOauthError(code: string): string {
64
64
  return "You cancelled the sign-in.";
65
65
  }
66
66
 
67
+ if (lower === "scope_not_granted") {
68
+ return "Microsoft did not grant access to every service you picked. Sign in again and accept each permission Microsoft asks for.";
69
+ }
70
+
67
71
  if (
68
72
  lower === "consent_required" ||
69
73
  lower.includes("admin_consent") ||
@@ -440,7 +444,10 @@ function AccountsSettings() {
440
444
  onClick: () => {
441
445
  setReconnectingAccountId(account.accountId);
442
446
  reconnectMutation.mutate({
443
- body: { email: account.email },
447
+ body: {
448
+ email: account.email,
449
+ services: account.syncedServices,
450
+ },
444
451
  });
445
452
  },
446
453
  }
@@ -41,6 +41,7 @@ export const makeAccount = (
41
41
  email: "alice@example.com",
42
42
  authType: "password",
43
43
  syncedServices: ["Mail"],
44
+ grantedScopes: [],
44
45
  imapHost: "imap.example.com",
45
46
  imapPort: 993,
46
47
  imapTls: true,