@remit/web-client 0.0.347 → 0.0.349

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 (57) hide show
  1. package/dist/src/components/mail/BriefPane.js +3 -3
  2. package/dist/src/components/mail/CheckAgainProvider.d.ts +30 -0
  3. package/dist/src/components/mail/CheckAgainProvider.js +194 -0
  4. package/dist/src/components/mail/CollectionList.js +4 -2
  5. package/dist/src/components/mail/CollectionPane.js +3 -3
  6. package/dist/src/components/mail/ConversationView.d.ts +7 -8
  7. package/dist/src/components/mail/ConversationView.js +4 -4
  8. package/dist/src/components/mail/DailyBrief.js +11 -6
  9. package/dist/src/components/mail/IntelligencePane.d.ts +2 -2
  10. package/dist/src/components/mail/IntelligencePane.js +33 -4
  11. package/dist/src/components/mail/MailSidebarAdapter.js +17 -6
  12. package/dist/src/components/mail/MailboxPane.js +10 -12
  13. package/dist/src/components/mail/MessageActionMenu.d.ts +3 -1
  14. package/dist/src/components/mail/MessageActionMenu.js +3 -3
  15. package/dist/src/components/mail/MessageCard.js +9 -1
  16. package/dist/src/components/mail/MessageList.js +11 -2
  17. package/dist/src/components/mail/MessageListItem.d.ts +4 -2
  18. package/dist/src/components/mail/MessageListItem.js +4 -6
  19. package/dist/src/components/mail/SpamBannerSlot.d.ts +10 -0
  20. package/dist/src/components/mail/SpamBannerSlot.js +56 -0
  21. package/dist/src/components/mail/SwipeableMessageRow.d.ts +3 -2
  22. package/dist/src/components/mail/SwipeableMessageRow.js +6 -6
  23. package/dist/src/components/mail/ThreadListInteraction.d.ts +2 -0
  24. package/dist/src/components/mail/ThreadListInteraction.js +12 -2
  25. package/dist/src/components/settings/classification/FailureBanner.js +3 -4
  26. package/dist/src/components/settings/spam/SpamSettingsPanel.d.ts +6 -0
  27. package/dist/src/components/settings/spam/SpamSettingsPanel.js +176 -0
  28. package/dist/src/hooks/useIntelligenceData.d.ts +2 -4
  29. package/dist/src/hooks/useIntelligenceData.js +1 -127
  30. package/dist/src/hooks/useJunkMailboxIds.d.ts +2 -0
  31. package/dist/src/hooks/useJunkMailboxIds.js +17 -0
  32. package/dist/src/lib/brief.d.ts +1 -1
  33. package/dist/src/lib/brief.js +3 -3
  34. package/dist/src/lib/check-again.d.ts +33 -0
  35. package/dist/src/lib/check-again.js +66 -0
  36. package/dist/src/lib/conversation-target.d.ts +3 -2
  37. package/dist/src/lib/result-folder.js +7 -0
  38. package/dist/src/lib/spam-overview.d.ts +23 -0
  39. package/dist/src/lib/spam-overview.js +44 -0
  40. package/dist/src/lib/spam.d.ts +32 -0
  41. package/dist/src/lib/spam.js +38 -0
  42. package/dist/src/lib/thread-search-tokens.js +3 -1
  43. package/dist/src/routeTree.gen.d.ts +27 -5
  44. package/dist/src/routeTree.gen.js +7 -0
  45. package/dist/src/routes/__root.js +2 -1
  46. package/dist/src/routes/settings/filters.d.ts +6 -2
  47. package/dist/src/routes/settings/filters.js +10 -3
  48. package/dist/src/routes/settings/senders.d.ts +14 -2
  49. package/dist/src/routes/settings/senders.js +32 -15
  50. package/dist/src/routes/settings/spam.d.ts +1 -0
  51. package/dist/src/routes/settings/spam.js +15 -0
  52. package/dist/src/routes/settings.js +6 -1
  53. package/dist/src/routing/spam-link.d.ts +3 -0
  54. package/dist/src/routing/spam-link.js +12 -0
  55. package/package.json +2 -2
  56. package/dist/src/components/mail/AuthenticityBanner.d.ts +0 -14
  57. package/dist/src/components/mail/AuthenticityBanner.js +0 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client",
3
- "version": "0.0.347",
3
+ "version": "0.0.349",
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": {
@@ -91,7 +91,7 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "@hookform/resolvers": "5.4.0",
94
- "@remit/ui": "0.0.238",
94
+ "@remit/ui": "0.0.240",
95
95
  "@tanstack/react-query": "5.101.2",
96
96
  "@tanstack/react-query-devtools": "5.101.2",
97
97
  "@tanstack/react-router": "1.170.18",
@@ -1,14 +0,0 @@
1
- import type { RemitImapMessageAuthenticity } from "@remit/api-http-client/types.gen.ts";
2
- /**
3
- * Danger banner rendered above the thread body when DKIM mismatch is detected.
4
- * Design spec (03-reading-and-intelligence.md): "a danger banner renders above
5
- * the body: 'This message claims to be a company but was sent from a personal
6
- * mailbox.' with a 'Why?' link that opens/highlights this section."
7
- *
8
- * The link sits in the sentence at the sentence's own size. Set apart as
9
- * smaller, right-floated chrome it read as a label rather than the way in.
10
- */
11
- export declare function AuthenticityBanner({ authenticity, onOpenIntelligence, }: {
12
- authenticity: RemitImapMessageAuthenticity;
13
- onOpenIntelligence?: () => void;
14
- }): import("react").JSX.Element | null;
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ShieldAlert } from "@remit/ui/icons";
3
- /**
4
- * Danger banner rendered above the thread body when DKIM mismatch is detected.
5
- * Design spec (03-reading-and-intelligence.md): "a danger banner renders above
6
- * the body: 'This message claims to be a company but was sent from a personal
7
- * mailbox.' with a 'Why?' link that opens/highlights this section."
8
- *
9
- * The link sits in the sentence at the sentence's own size. Set apart as
10
- * smaller, right-floated chrome it read as a label rather than the way in.
11
- */
12
- export function AuthenticityBanner({ authenticity, onOpenIntelligence, }) {
13
- if (!authenticity.dkimMismatch)
14
- return null;
15
- return (_jsxs("div", { className: "flex items-start gap-2 rounded-none border-b border-danger/20 bg-danger-soft px-5 py-2.5 text-sm", children: [_jsx(ShieldAlert, { className: "mt-0.5 size-4 shrink-0 text-danger" }), _jsxs("p", { className: "flex-1 leading-snug text-fg", children: ["This message claims to be from", " ", _jsx("span", { className: "font-semibold", children: authenticity.fromDomain }), " but was sent", authenticity.dkimDomain
16
- ? ` via ${authenticity.dkimDomain}`
17
- : " from a different domain", ".", " ", onOpenIntelligence && (_jsx("button", { type: "button", onClick: onOpenIntelligence, className: "font-medium text-danger hover:underline", children: "Why?" }))] })] }));
18
- }