@remit/web-client 0.0.326 → 0.0.328

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 (52) hide show
  1. package/dist/src/components/mail/MailboxPane.js +2 -9
  2. package/dist/src/components/settings/AccountFormPanel.js +1 -1
  3. package/dist/src/hooks/useDeleteFolder.js +1 -7
  4. package/dist/src/hooks/useDeleteMessages.d.ts +0 -9
  5. package/dist/src/hooks/useDeleteMessages.js +0 -9
  6. package/dist/src/lib/calendar-route.d.ts +2 -6
  7. package/dist/src/lib/calendar-route.js +4 -2
  8. package/dist/src/lib/mail-search.d.ts +32 -74
  9. package/dist/src/lib/mail-search.js +11 -0
  10. package/dist/src/routeTree.gen.d.ts +551 -814
  11. package/dist/src/routes/calendar/$view.$date/$calendarObjectId/$recurrenceId.d.ts +4 -12
  12. package/dist/src/routes/calendar/$view.$date/$calendarObjectId/index.d.ts +4 -12
  13. package/dist/src/routes/calendar/$view.$date/$calendarObjectId.d.ts +4 -12
  14. package/dist/src/routes/calendar/$view.$date/index.d.ts +4 -12
  15. package/dist/src/routes/calendar/$view.$date/new.d.ts +4 -12
  16. package/dist/src/routes/calendar/$view.$date/suggestion.$suggestionId.d.ts +4 -12
  17. package/dist/src/routes/calendar/$view.$date.d.ts +4 -12
  18. package/dist/src/routes/calendar/index.d.ts +4 -12
  19. package/dist/src/routes/mail/$mailboxId/$threadId/$messageId/$mode.{-$outboxMessageId}.d.ts +13 -24
  20. package/dist/src/routes/mail/$mailboxId/$threadId/$messageId.d.ts +12 -16
  21. package/dist/src/routes/mail/$mailboxId/$threadId/index.d.ts +12 -16
  22. package/dist/src/routes/mail/$mailboxId/$threadId.d.ts +12 -16
  23. package/dist/src/routes/mail/$mailboxId/compose.{-$outboxMessageId}.d.ts +12 -16
  24. package/dist/src/routes/mail/$mailboxId/index.d.ts +12 -16
  25. package/dist/src/routes/mail/$mailboxId.d.ts +12 -16
  26. package/dist/src/routes/mail/brief/$threadId/$messageId/$mode.{-$outboxMessageId}.d.ts +13 -24
  27. package/dist/src/routes/mail/brief/$threadId/$messageId.d.ts +12 -16
  28. package/dist/src/routes/mail/brief/$threadId/index.d.ts +12 -16
  29. package/dist/src/routes/mail/brief/$threadId.d.ts +12 -16
  30. package/dist/src/routes/mail/brief/compose.{-$outboxMessageId}.d.ts +12 -16
  31. package/dist/src/routes/mail/brief/index.d.ts +12 -16
  32. package/dist/src/routes/mail/brief.d.ts +12 -16
  33. package/dist/src/routes/mail/flagged/$threadId/$messageId/$mode.{-$outboxMessageId}.d.ts +13 -24
  34. package/dist/src/routes/mail/flagged/$threadId/$messageId.d.ts +12 -16
  35. package/dist/src/routes/mail/flagged/$threadId/index.d.ts +12 -16
  36. package/dist/src/routes/mail/flagged/$threadId.d.ts +12 -16
  37. package/dist/src/routes/mail/flagged/compose.{-$outboxMessageId}.d.ts +12 -16
  38. package/dist/src/routes/mail/flagged/index.d.ts +12 -16
  39. package/dist/src/routes/mail/flagged.d.ts +12 -16
  40. package/dist/src/routes/mail/index.d.ts +24 -32
  41. package/dist/src/routes/mail/outbox/compose.{-$outboxMessageId}.d.ts +12 -16
  42. package/dist/src/routes/mail/outbox/draft/$outboxMessageId.d.ts +12 -16
  43. package/dist/src/routes/mail/outbox/index.d.ts +12 -16
  44. package/dist/src/routes/mail/outbox.d.ts +12 -16
  45. package/dist/src/routes/mail.d.ts +13 -14
  46. package/dist/src/routes/mail.js +2 -10
  47. package/dist/src/routes/settings/accounts.d.ts +1 -17
  48. package/dist/src/routing/index.d.ts +1 -1
  49. package/dist/src/routing/index.js +1 -1
  50. package/dist/src/routing/wizard-history.d.ts +10 -4
  51. package/dist/src/routing/wizard-history.js +2 -10
  52. package/package.json +2 -2
@@ -29,10 +29,6 @@ const stepId = z.enum([
29
29
  "review",
30
30
  "run",
31
31
  ]);
32
- export const wizardStepFromParam = (value) => {
33
- const parsed = stepId.safeParse(value);
34
- return parsed.success ? parsed.data : undefined;
35
- };
36
32
  /**
37
33
  * Which affordance opened the wizard. Absent is the selection bar; `search` is
38
34
  * the make-filter affordance in the search results header, whose clauses come
@@ -45,18 +41,14 @@ export const wizardStepFromParam = (value) => {
45
41
  * clauses (#477 3.4). One host answers either way.
46
42
  */
47
43
  const wizardEntry = z.literal("search");
48
- export const wizardEntryFromParam = (value) => {
49
- const parsed = wizardEntry.safeParse(value);
50
- return parsed.success ? parsed.data : undefined;
51
- };
52
- export const wizardEntryValue = z.unknown().transform(wizardEntryFromParam);
44
+ export const wizardEntryValue = wizardEntry.optional().catch(undefined);
53
45
  export const useWizardEntryValue = () => useSearch({ from: "/mail", select: (search) => search.wizardFrom });
54
46
  /**
55
47
  * The route's `wizard` field. A value the wizard cannot be on reads as no step
56
48
  * rather than as a validation failure, so a truncated or hand-typed link lands
57
49
  * on the mail list instead of the router's error screen.
58
50
  */
59
- export const wizardStepValue = z.unknown().transform(wizardStepFromParam);
51
+ export const wizardStepValue = stepId.optional().catch(undefined);
60
52
  export const ownedHistoryEntries = (steps, step) => stepIndex(steps, step) + 1;
61
53
  export const useWizardStepValue = () => useSearch({ from: "/mail", select: (search) => search.wizard });
62
54
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client",
3
- "version": "0.0.326",
3
+ "version": "0.0.328",
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": {
@@ -108,7 +108,7 @@
108
108
  "react-hook-form": "7.82.0",
109
109
  "react-i18next": "15.7.4",
110
110
  "vaul": "1.1.2",
111
- "zod": "3.25.76",
111
+ "zod": "4.6.7",
112
112
  "@remit/spellcheck-engine": "0.0.1"
113
113
  },
114
114
  "devDependencies": {