@remit/web-client 0.0.334 → 0.0.336
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/dist/src/auth/AccountMenu.js +5 -1
- package/dist/src/routeTree.gen.d.ts +16 -3
- package/dist/src/routeTree.gen.js +7 -0
- package/dist/src/routes/settings/-shared/help-copy.d.ts +1 -0
- package/dist/src/routes/settings/-shared/help-copy.js +1 -0
- package/dist/src/routes/settings/security.d.ts +1 -0
- package/dist/src/routes/settings/security.js +21 -0
- package/dist/src/routes/settings.js +23 -6
- package/dist/src/routing/sections.d.ts +1 -1
- package/dist/src/routing/sections.js +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { AccountMenu as AccountMenuView } from "@remit/ui";
|
|
3
|
+
import { useGoToSection } from "../routing/sections";
|
|
3
4
|
import { AccountSession } from "./AccountSession";
|
|
4
|
-
export const AccountMenu = () =>
|
|
5
|
+
export const AccountMenu = () => {
|
|
6
|
+
const goToSection = useGoToSection();
|
|
7
|
+
return (_jsx(AccountSession, { children: ({ email, signOut, securityUrl }) => (_jsx(AccountMenuView, { email: email, onOpenSecurity: securityUrl ? () => goToSection("security") : undefined, onSignOut: signOut })) }));
|
|
8
|
+
};
|
|
@@ -21,6 +21,7 @@ import { Route as SettingsFiltersRouteImport } from './routes/settings/filters';
|
|
|
21
21
|
import { Route as SettingsFoldersRouteImport } from './routes/settings/folders';
|
|
22
22
|
import { Route as SettingsLabelsRouteImport } from './routes/settings/labels';
|
|
23
23
|
import { Route as SettingsPeopleRouteImport } from './routes/settings/people';
|
|
24
|
+
import { Route as SettingsSecurityRouteImport } from './routes/settings/security';
|
|
24
25
|
import { Route as SettingsSendersRouteImport } from './routes/settings/senders';
|
|
25
26
|
import { Route as SettingsSuggestedVipsRouteImport } from './routes/settings/suggested-vips';
|
|
26
27
|
import { Route as SettingsWarningsRouteImport } from './routes/settings/warnings';
|
|
@@ -185,6 +186,7 @@ declare const SettingsFiltersRoute: import("@tanstack/router-core").Route<Regist
|
|
|
185
186
|
declare const SettingsFoldersRoute: import("@tanstack/router-core").Route<Register, import("@tanstack/router-core").Route<Register, import("@tanstack/react-router").RootRoute<Register, undefined, import("./router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/folders", "/settings/folders", "/settings/folders", "/settings/folders", undefined, import("@tanstack/router-core").ResolveParams<"/folders">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
186
187
|
declare const SettingsLabelsRoute: import("@tanstack/router-core").Route<Register, import("@tanstack/router-core").Route<Register, import("@tanstack/react-router").RootRoute<Register, undefined, import("./router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/labels", "/settings/labels", "/settings/labels", "/settings/labels", undefined, import("@tanstack/router-core").ResolveParams<"/labels">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
187
188
|
declare const SettingsPeopleRoute: import("@tanstack/router-core").Route<Register, import("@tanstack/router-core").Route<Register, import("@tanstack/react-router").RootRoute<Register, undefined, import("./router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/people", "/settings/people", "/settings/people", "/settings/people", undefined, import("@tanstack/router-core").ResolveParams<"/people">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
189
|
+
declare const SettingsSecurityRoute: import("@tanstack/router-core").Route<Register, import("@tanstack/router-core").Route<Register, import("@tanstack/react-router").RootRoute<Register, undefined, import("./router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/security", "/settings/security", "/settings/security", "/settings/security", undefined, import("@tanstack/router-core").ResolveParams<"/security">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
188
190
|
declare const SettingsSendersRoute: import("@tanstack/router-core").Route<Register, import("@tanstack/router-core").Route<Register, import("@tanstack/react-router").RootRoute<Register, undefined, import("./router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/senders", "/settings/senders", "/settings/senders", "/settings/senders", undefined, import("@tanstack/router-core").ResolveParams<"/senders">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
189
191
|
declare const SettingsSuggestedVipsRoute: import("@tanstack/router-core").Route<Register, import("@tanstack/router-core").Route<Register, import("@tanstack/react-router").RootRoute<Register, undefined, import("./router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/suggested-vips", "/settings/suggested-vips", "/settings/suggested-vips", "/settings/suggested-vips", undefined, import("@tanstack/router-core").ResolveParams<"/suggested-vips">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
190
192
|
declare const SettingsWarningsRoute: import("@tanstack/router-core").Route<Register, import("@tanstack/router-core").Route<Register, import("@tanstack/react-router").RootRoute<Register, undefined, import("./router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/warnings", "/settings/warnings", "/settings/warnings", "/settings/warnings", undefined, import("@tanstack/router-core").ResolveParams<"/warnings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
@@ -591,6 +593,7 @@ export interface FileRoutesByFullPath {
|
|
|
591
593
|
'/settings/folders': typeof SettingsFoldersRoute;
|
|
592
594
|
'/settings/labels': typeof SettingsLabelsRoute;
|
|
593
595
|
'/settings/people': typeof SettingsPeopleRoute;
|
|
596
|
+
'/settings/security': typeof SettingsSecurityRoute;
|
|
594
597
|
'/settings/senders': typeof SettingsSendersRoute;
|
|
595
598
|
'/settings/suggested-vips': typeof SettingsSuggestedVipsRoute;
|
|
596
599
|
'/settings/warnings': typeof SettingsWarningsRoute;
|
|
@@ -643,6 +646,7 @@ export interface FileRoutesByTo {
|
|
|
643
646
|
'/settings/folders': typeof SettingsFoldersRoute;
|
|
644
647
|
'/settings/labels': typeof SettingsLabelsRoute;
|
|
645
648
|
'/settings/people': typeof SettingsPeopleRoute;
|
|
649
|
+
'/settings/security': typeof SettingsSecurityRoute;
|
|
646
650
|
'/settings/senders': typeof SettingsSendersRoute;
|
|
647
651
|
'/settings/suggested-vips': typeof SettingsSuggestedVipsRoute;
|
|
648
652
|
'/settings/warnings': typeof SettingsWarningsRoute;
|
|
@@ -697,6 +701,7 @@ export interface FileRoutesById {
|
|
|
697
701
|
'/settings/folders': typeof SettingsFoldersRoute;
|
|
698
702
|
'/settings/labels': typeof SettingsLabelsRoute;
|
|
699
703
|
'/settings/people': typeof SettingsPeopleRoute;
|
|
704
|
+
'/settings/security': typeof SettingsSecurityRoute;
|
|
700
705
|
'/settings/senders': typeof SettingsSendersRoute;
|
|
701
706
|
'/settings/suggested-vips': typeof SettingsSuggestedVipsRoute;
|
|
702
707
|
'/settings/warnings': typeof SettingsWarningsRoute;
|
|
@@ -738,10 +743,10 @@ export interface FileRoutesById {
|
|
|
738
743
|
}
|
|
739
744
|
export interface FileRouteTypes {
|
|
740
745
|
fileRoutesByFullPath: FileRoutesByFullPath;
|
|
741
|
-
fullPaths: '/' | '/calendar' | '/import' | '/mail' | '/onboarding' | '/settings' | '/mail/$mailboxId' | '/mail/brief' | '/mail/flagged' | '/mail/outbox' | '/reset-password/$token' | '/settings/accounts' | '/settings/advanced' | '/settings/appearance' | '/settings/calendars' | '/settings/filters' | '/settings/folders' | '/settings/labels' | '/settings/people' | '/settings/senders' | '/settings/suggested-vips' | '/settings/warnings' | '/calendar/' | '/mail/' | '/settings/' | '/calendar/$view/$date' | '/mail/$mailboxId/$threadId' | '/mail/brief/$threadId' | '/mail/flagged/$threadId' | '/mail/$mailboxId/' | '/mail/brief/' | '/mail/flagged/' | '/mail/outbox/' | '/calendar/$view/$date/$calendarObjectId' | '/calendar/$view/$date/new' | '/mail/$mailboxId/$threadId/$messageId' | '/mail/$mailboxId/compose/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId' | '/mail/brief/compose/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId' | '/mail/flagged/compose/{-$outboxMessageId}' | '/mail/outbox/compose/{-$outboxMessageId}' | '/mail/outbox/draft/$outboxMessageId' | '/calendar/$view/$date/' | '/mail/$mailboxId/$threadId/' | '/mail/brief/$threadId/' | '/mail/flagged/$threadId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId' | '/calendar/$view/$date/$calendarObjectId/edit' | '/calendar/$view/$date/suggestion/$suggestionId' | '/calendar/$view/$date/task/$calendarTaskId' | '/calendar/$view/$date/$calendarObjectId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit' | '/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/';
|
|
746
|
+
fullPaths: '/' | '/calendar' | '/import' | '/mail' | '/onboarding' | '/settings' | '/mail/$mailboxId' | '/mail/brief' | '/mail/flagged' | '/mail/outbox' | '/reset-password/$token' | '/settings/accounts' | '/settings/advanced' | '/settings/appearance' | '/settings/calendars' | '/settings/filters' | '/settings/folders' | '/settings/labels' | '/settings/people' | '/settings/security' | '/settings/senders' | '/settings/suggested-vips' | '/settings/warnings' | '/calendar/' | '/mail/' | '/settings/' | '/calendar/$view/$date' | '/mail/$mailboxId/$threadId' | '/mail/brief/$threadId' | '/mail/flagged/$threadId' | '/mail/$mailboxId/' | '/mail/brief/' | '/mail/flagged/' | '/mail/outbox/' | '/calendar/$view/$date/$calendarObjectId' | '/calendar/$view/$date/new' | '/mail/$mailboxId/$threadId/$messageId' | '/mail/$mailboxId/compose/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId' | '/mail/brief/compose/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId' | '/mail/flagged/compose/{-$outboxMessageId}' | '/mail/outbox/compose/{-$outboxMessageId}' | '/mail/outbox/draft/$outboxMessageId' | '/calendar/$view/$date/' | '/mail/$mailboxId/$threadId/' | '/mail/brief/$threadId/' | '/mail/flagged/$threadId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId' | '/calendar/$view/$date/$calendarObjectId/edit' | '/calendar/$view/$date/suggestion/$suggestionId' | '/calendar/$view/$date/task/$calendarTaskId' | '/calendar/$view/$date/$calendarObjectId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit' | '/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/';
|
|
742
747
|
fileRoutesByTo: FileRoutesByTo;
|
|
743
|
-
to: '/' | '/import' | '/onboarding' | '/reset-password/$token' | '/settings/accounts' | '/settings/advanced' | '/settings/appearance' | '/settings/calendars' | '/settings/filters' | '/settings/folders' | '/settings/labels' | '/settings/people' | '/settings/senders' | '/settings/suggested-vips' | '/settings/warnings' | '/calendar' | '/mail' | '/settings' | '/mail/$mailboxId' | '/mail/brief' | '/mail/flagged' | '/mail/outbox' | '/calendar/$view/$date/new' | '/mail/$mailboxId/$threadId/$messageId' | '/mail/$mailboxId/compose/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId' | '/mail/brief/compose/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId' | '/mail/flagged/compose/{-$outboxMessageId}' | '/mail/outbox/compose/{-$outboxMessageId}' | '/mail/outbox/draft/$outboxMessageId' | '/calendar/$view/$date' | '/mail/$mailboxId/$threadId' | '/mail/brief/$threadId' | '/mail/flagged/$threadId' | '/calendar/$view/$date/$calendarObjectId/edit' | '/calendar/$view/$date/suggestion/$suggestionId' | '/calendar/$view/$date/task/$calendarTaskId' | '/calendar/$view/$date/$calendarObjectId' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit' | '/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId';
|
|
744
|
-
id: '__root__' | '/' | '/calendar' | '/import' | '/mail' | '/onboarding' | '/settings' | '/mail/$mailboxId' | '/mail/brief' | '/mail/flagged' | '/mail/outbox' | '/reset-password/$token' | '/settings/accounts' | '/settings/advanced' | '/settings/appearance' | '/settings/calendars' | '/settings/filters' | '/settings/folders' | '/settings/labels' | '/settings/people' | '/settings/senders' | '/settings/suggested-vips' | '/settings/warnings' | '/calendar/' | '/mail/' | '/settings/' | '/calendar/$view/$date' | '/mail/$mailboxId/$threadId' | '/mail/brief/$threadId' | '/mail/flagged/$threadId' | '/mail/$mailboxId/' | '/mail/brief/' | '/mail/flagged/' | '/mail/outbox/' | '/calendar/$view/$date/$calendarObjectId' | '/calendar/$view/$date/new' | '/mail/$mailboxId/$threadId/$messageId' | '/mail/$mailboxId/compose/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId' | '/mail/brief/compose/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId' | '/mail/flagged/compose/{-$outboxMessageId}' | '/mail/outbox/compose/{-$outboxMessageId}' | '/mail/outbox/draft/$outboxMessageId' | '/calendar/$view/$date/' | '/mail/$mailboxId/$threadId/' | '/mail/brief/$threadId/' | '/mail/flagged/$threadId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId' | '/calendar/$view/$date/$calendarObjectId/edit' | '/calendar/$view/$date/suggestion/$suggestionId' | '/calendar/$view/$date/task/$calendarTaskId' | '/calendar/$view/$date/$calendarObjectId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit' | '/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/';
|
|
748
|
+
to: '/' | '/import' | '/onboarding' | '/reset-password/$token' | '/settings/accounts' | '/settings/advanced' | '/settings/appearance' | '/settings/calendars' | '/settings/filters' | '/settings/folders' | '/settings/labels' | '/settings/people' | '/settings/security' | '/settings/senders' | '/settings/suggested-vips' | '/settings/warnings' | '/calendar' | '/mail' | '/settings' | '/mail/$mailboxId' | '/mail/brief' | '/mail/flagged' | '/mail/outbox' | '/calendar/$view/$date/new' | '/mail/$mailboxId/$threadId/$messageId' | '/mail/$mailboxId/compose/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId' | '/mail/brief/compose/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId' | '/mail/flagged/compose/{-$outboxMessageId}' | '/mail/outbox/compose/{-$outboxMessageId}' | '/mail/outbox/draft/$outboxMessageId' | '/calendar/$view/$date' | '/mail/$mailboxId/$threadId' | '/mail/brief/$threadId' | '/mail/flagged/$threadId' | '/calendar/$view/$date/$calendarObjectId/edit' | '/calendar/$view/$date/suggestion/$suggestionId' | '/calendar/$view/$date/task/$calendarTaskId' | '/calendar/$view/$date/$calendarObjectId' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit' | '/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId';
|
|
749
|
+
id: '__root__' | '/' | '/calendar' | '/import' | '/mail' | '/onboarding' | '/settings' | '/mail/$mailboxId' | '/mail/brief' | '/mail/flagged' | '/mail/outbox' | '/reset-password/$token' | '/settings/accounts' | '/settings/advanced' | '/settings/appearance' | '/settings/calendars' | '/settings/filters' | '/settings/folders' | '/settings/labels' | '/settings/people' | '/settings/security' | '/settings/senders' | '/settings/suggested-vips' | '/settings/warnings' | '/calendar/' | '/mail/' | '/settings/' | '/calendar/$view/$date' | '/mail/$mailboxId/$threadId' | '/mail/brief/$threadId' | '/mail/flagged/$threadId' | '/mail/$mailboxId/' | '/mail/brief/' | '/mail/flagged/' | '/mail/outbox/' | '/calendar/$view/$date/$calendarObjectId' | '/calendar/$view/$date/new' | '/mail/$mailboxId/$threadId/$messageId' | '/mail/$mailboxId/compose/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId' | '/mail/brief/compose/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId' | '/mail/flagged/compose/{-$outboxMessageId}' | '/mail/outbox/compose/{-$outboxMessageId}' | '/mail/outbox/draft/$outboxMessageId' | '/calendar/$view/$date/' | '/mail/$mailboxId/$threadId/' | '/mail/brief/$threadId/' | '/mail/flagged/$threadId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId' | '/calendar/$view/$date/$calendarObjectId/edit' | '/calendar/$view/$date/suggestion/$suggestionId' | '/calendar/$view/$date/task/$calendarTaskId' | '/calendar/$view/$date/$calendarObjectId/' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit' | '/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}' | '/calendar/$view/$date/$calendarObjectId/$recurrenceId/';
|
|
745
750
|
fileRoutesById: FileRoutesById;
|
|
746
751
|
}
|
|
747
752
|
export interface RootRouteChildren {
|
|
@@ -909,6 +914,13 @@ declare module '@tanstack/react-router' {
|
|
|
909
914
|
preLoaderRoute: typeof SettingsPeopleRouteImport;
|
|
910
915
|
parentRoute: typeof SettingsRoute;
|
|
911
916
|
};
|
|
917
|
+
'/settings/security': {
|
|
918
|
+
id: '/settings/security';
|
|
919
|
+
path: '/security';
|
|
920
|
+
fullPath: '/settings/security';
|
|
921
|
+
preLoaderRoute: typeof SettingsSecurityRouteImport;
|
|
922
|
+
parentRoute: typeof SettingsRoute;
|
|
923
|
+
};
|
|
912
924
|
'/settings/senders': {
|
|
913
925
|
id: '/settings/senders';
|
|
914
926
|
path: '/senders';
|
|
@@ -1427,6 +1439,7 @@ interface SettingsRouteChildren {
|
|
|
1427
1439
|
SettingsFoldersRoute: typeof SettingsFoldersRoute;
|
|
1428
1440
|
SettingsLabelsRoute: typeof SettingsLabelsRoute;
|
|
1429
1441
|
SettingsPeopleRoute: typeof SettingsPeopleRoute;
|
|
1442
|
+
SettingsSecurityRoute: typeof SettingsSecurityRoute;
|
|
1430
1443
|
SettingsSendersRoute: typeof SettingsSendersRoute;
|
|
1431
1444
|
SettingsSuggestedVipsRoute: typeof SettingsSuggestedVipsRoute;
|
|
1432
1445
|
SettingsWarningsRoute: typeof SettingsWarningsRoute;
|
|
@@ -27,6 +27,7 @@ import { Route as SettingsFiltersRouteImport } from './routes/settings/filters';
|
|
|
27
27
|
import { Route as SettingsFoldersRouteImport } from './routes/settings/folders';
|
|
28
28
|
import { Route as SettingsLabelsRouteImport } from './routes/settings/labels';
|
|
29
29
|
import { Route as SettingsPeopleRouteImport } from './routes/settings/people';
|
|
30
|
+
import { Route as SettingsSecurityRouteImport } from './routes/settings/security';
|
|
30
31
|
import { Route as SettingsSendersRouteImport } from './routes/settings/senders';
|
|
31
32
|
import { Route as SettingsSuggestedVipsRouteImport } from './routes/settings/suggested-vips';
|
|
32
33
|
import { Route as SettingsWarningsRouteImport } from './routes/settings/warnings';
|
|
@@ -172,6 +173,11 @@ const SettingsPeopleRoute = SettingsPeopleRouteImport.update({
|
|
|
172
173
|
path: '/people',
|
|
173
174
|
getParentRoute: () => SettingsRoute,
|
|
174
175
|
});
|
|
176
|
+
const SettingsSecurityRoute = SettingsSecurityRouteImport.update({
|
|
177
|
+
id: '/security',
|
|
178
|
+
path: '/security',
|
|
179
|
+
getParentRoute: () => SettingsRoute,
|
|
180
|
+
});
|
|
175
181
|
const SettingsSendersRoute = SettingsSendersRouteImport.update({
|
|
176
182
|
id: '/senders',
|
|
177
183
|
path: '/senders',
|
|
@@ -439,6 +445,7 @@ const SettingsRouteChildren = {
|
|
|
439
445
|
SettingsFoldersRoute: SettingsFoldersRoute,
|
|
440
446
|
SettingsLabelsRoute: SettingsLabelsRoute,
|
|
441
447
|
SettingsPeopleRoute: SettingsPeopleRoute,
|
|
448
|
+
SettingsSecurityRoute: SettingsSecurityRoute,
|
|
442
449
|
SettingsSendersRoute: SettingsSendersRoute,
|
|
443
450
|
SettingsSuggestedVipsRoute: SettingsSuggestedVipsRoute,
|
|
444
451
|
SettingsWarningsRoute: SettingsWarningsRoute,
|
|
@@ -2,4 +2,5 @@ export declare const sendersHelp: import("react").JSX.Element;
|
|
|
2
2
|
export declare const accountsHelp: import("react").JSX.Element;
|
|
3
3
|
export declare const appearanceHelp: import("react").JSX.Element;
|
|
4
4
|
export declare const advancedHelp: import("react").JSX.Element;
|
|
5
|
+
export declare const securityHelp: import("react").JSX.Element;
|
|
5
6
|
export declare const warningsHelp: import("react").JSX.Element;
|
|
@@ -4,4 +4,5 @@ export const sendersHelp = (_jsxs("div", { className: "space-y-3", children: [_j
|
|
|
4
4
|
export const accountsHelp = (_jsxs("div", { className: "space-y-3", children: [_jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Sync health" }), " shows the IMAP connection state and the last successful sync per account."] }), _jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Error" }), " means the last connection attempt failed \u2014 the raw server response is shown on the card. Reconnect re-runs the connection test from the add-account wizard."] }), _jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Muted" }), " accounts keep syncing but stay out of the daily brief and unified counts."] })] }));
|
|
5
5
|
export const appearanceHelp = (_jsxs("div", { className: "space-y-3", children: [_jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Density" }), " controls how much information fits on screen. Compact is great on smaller displays; Comfortable gives each item more breathing room."] }), _jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Theme" }), " switches between light, dark, and system-preference modes instantly. The change takes effect across the whole app immediately."] }), _jsx("p", { className: "text-2xs text-fg-subtle", children: "Preferences are stored locally in this browser. Server-side sync is coming soon." })] }));
|
|
6
6
|
export const advancedHelp = (_jsx("div", { className: "space-y-3", children: _jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Notification rules" }), " and data export are coming in a future release."] }) }));
|
|
7
|
+
export const securityHelp = (_jsxs("div", { className: "space-y-3", children: [_jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Two-factor authentication" }), " asks for a second proof when you sign in, so a stolen password alone is not enough."] }), _jsxs("p", { children: [_jsx("strong", { className: "text-fg", children: "Passkeys" }), " replace the password with the lock on your device."] })] }));
|
|
7
8
|
export const warningsHelp = (_jsxs("div", { className: "space-y-3", children: [_jsxs("p", { children: ["A message that fails to sync three times shows here. A", " ", _jsx("strong", { className: "text-fg", children: "retrying" }), " one is tried again every sync; a body that ", _jsx("strong", { className: "text-fg", children: "gave up" }), " is not. Either leaves the list once it syncs."] }), _jsxs("p", { children: ["A message Remit cannot read is", " ", _jsx("strong", { className: "text-fg", children: "set aside" }), " rather than skipped, and the folder keeps syncing. Setting one aside is a defect in Remit, so every entry can be reported with the diagnostics already attached."] }), _jsx("p", { children: "A report carries no folder name, subject, address, message content or error text." })] }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Route: import("@tanstack/router-core").Route<import("@tanstack/react-router").Register, import("@tanstack/router-core").Route<import("@tanstack/react-router").Register, import("@tanstack/react-router").RootRoute<import("@tanstack/react-router").Register, undefined, import("../../router").RouterContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/settings", "/settings", "/settings", "/settings", undefined, import("@tanstack/router-core").ResolveParams<"/settings">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/security", "/settings/security", "/settings/security", "/settings/security", undefined, import("@tanstack/router-core").ResolveParams<"/security">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SettingsShell } from "@remit/ui";
|
|
3
|
+
import { createFileRoute, useNavigate } from "@tanstack/react-router";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { AccountSession } from "../../auth/AccountSession";
|
|
6
|
+
import { SETTINGS_ID_TO_PATH, useSettingsNavItems } from "../settings";
|
|
7
|
+
import { securityHelp } from "./-shared/help-copy";
|
|
8
|
+
export const Route = createFileRoute("/settings/security")({
|
|
9
|
+
component: SecuritySettings,
|
|
10
|
+
});
|
|
11
|
+
function SecuritySettings() {
|
|
12
|
+
const navigate = useNavigate();
|
|
13
|
+
const navItems = useSettingsNavItems();
|
|
14
|
+
const [helpOpen, setHelpOpen] = useState(true);
|
|
15
|
+
const handleSelectNav = (id) => {
|
|
16
|
+
const path = SETTINGS_ID_TO_PATH[id];
|
|
17
|
+
if (path)
|
|
18
|
+
void navigate({ to: path });
|
|
19
|
+
};
|
|
20
|
+
return (_jsx(SettingsShell, { items: navItems, activeId: "security", title: "Security", description: "Protect your account with a second step and passkeys.", help: securityHelp, helpOpen: helpOpen, onToggleHelp: () => setHelpOpen((v) => !v), onSelect: handleSelectNav, onBackToMail: () => void navigate({ to: "/mail" }), children: _jsx("div", { className: "space-y-3 text-sm text-fg-muted", children: _jsx(AccountSession, { children: ({ securityUrl }) => securityUrl ? (_jsx("a", { href: securityUrl, className: "font-medium text-accent hover:underline", children: "Manage two-factor authentication and passkeys" })) : null }) }) }));
|
|
21
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createFileRoute, Outlet } from "@tanstack/react-router";
|
|
3
|
-
import { CalendarDays, Filter, FolderTree, Inbox, Palette, Tag, UserCog, Users, } from "lucide-react";
|
|
3
|
+
import { CalendarDays, Filter, FolderTree, Inbox, Palette, ShieldCheck, Tag, UserCog, Users, } from "lucide-react";
|
|
4
|
+
import { createContext, useContext } from "react";
|
|
5
|
+
import { useAuthProvider } from "../auth/provider";
|
|
4
6
|
import { AdvancedNavIcon } from "../components/settings/AdvancedNavIcon";
|
|
5
7
|
import { WarningsNavIcon } from "../components/settings/WarningsNavIcon";
|
|
6
8
|
import { usePeople } from "../hooks/usePeople";
|
|
@@ -48,6 +50,7 @@ export const SETTINGS_NAV_ITEMS = [
|
|
|
48
50
|
];
|
|
49
51
|
export const SETTINGS_ID_TO_PATH = {
|
|
50
52
|
accounts: "/settings/accounts",
|
|
53
|
+
security: "/settings/security",
|
|
51
54
|
senders: "/settings/senders",
|
|
52
55
|
folders: "/settings/folders",
|
|
53
56
|
filters: "/settings/filters",
|
|
@@ -58,6 +61,12 @@ export const SETTINGS_ID_TO_PATH = {
|
|
|
58
61
|
people: "/settings/people",
|
|
59
62
|
advanced: "/settings/advanced",
|
|
60
63
|
};
|
|
64
|
+
const SECURITY_NAV_ITEM = {
|
|
65
|
+
id: "security",
|
|
66
|
+
label: "Security",
|
|
67
|
+
icon: _jsx(ShieldCheck, { className: "size-4" }),
|
|
68
|
+
};
|
|
69
|
+
const SecurityUrlContext = createContext(undefined);
|
|
61
70
|
const PEOPLE_NAV_ITEM = {
|
|
62
71
|
id: "people",
|
|
63
72
|
label: "People",
|
|
@@ -69,18 +78,26 @@ const PEOPLE_NAV_ITEM = {
|
|
|
69
78
|
*/
|
|
70
79
|
export const useSettingsNavItems = () => {
|
|
71
80
|
const people = usePeople();
|
|
81
|
+
const securityUrl = useContext(SecurityUrlContext);
|
|
82
|
+
const items = [...SETTINGS_NAV_ITEMS];
|
|
83
|
+
if (securityUrl)
|
|
84
|
+
items.splice(1, 0, SECURITY_NAV_ITEM);
|
|
72
85
|
if (!people.isSuccess)
|
|
73
|
-
return
|
|
74
|
-
const advanced =
|
|
86
|
+
return items;
|
|
87
|
+
const advanced = items.findIndex((item) => item.id === "advanced");
|
|
75
88
|
return [
|
|
76
|
-
...
|
|
89
|
+
...items.slice(0, advanced),
|
|
77
90
|
PEOPLE_NAV_ITEM,
|
|
78
|
-
...
|
|
91
|
+
...items.slice(advanced),
|
|
79
92
|
];
|
|
80
93
|
};
|
|
94
|
+
const SettingsLayout = () => {
|
|
95
|
+
const { Account } = useAuthProvider();
|
|
96
|
+
return (_jsx(Account, { fallback: _jsx(SecurityUrlContext.Provider, { value: undefined, children: _jsx(Outlet, {}) }), children: ({ securityUrl }) => (_jsx(SecurityUrlContext.Provider, { value: securityUrl, children: _jsx(Outlet, {}) })) }));
|
|
97
|
+
};
|
|
81
98
|
/* ------------------------------------------------------------------ */
|
|
82
99
|
/* Route — pass-through */
|
|
83
100
|
/* ------------------------------------------------------------------ */
|
|
84
101
|
export const Route = createFileRoute("/settings")({
|
|
85
|
-
component:
|
|
102
|
+
component: SettingsLayout,
|
|
86
103
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* the moves that leave whatever the reader is on rather than open something
|
|
4
4
|
* under it, so they carry no panels and no query.
|
|
5
5
|
*/
|
|
6
|
-
export type AppSection = "brief" | "flagged" | "outbox" | "settings" | "accounts" | "importConfig";
|
|
6
|
+
export type AppSection = "brief" | "flagged" | "outbox" | "settings" | "accounts" | "security" | "importConfig";
|
|
7
7
|
/** Go to a top-level section by name, so no caller writes a path. */
|
|
8
8
|
export declare function useGoToSection(): (section: AppSection) => void;
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/web-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.336",
|
|
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.
|
|
94
|
+
"@remit/ui": "0.0.231",
|
|
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",
|