@digitaldefiance/express-suite-react-components 2.9.37 → 2.9.38

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 (257) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +4 -5
  3. package/src/auth/Private.tsx +17 -0
  4. package/src/auth/PrivateRoute.tsx +28 -0
  5. package/src/auth/UnAuth.tsx +16 -0
  6. package/src/auth/UnAuthRoute.tsx +30 -0
  7. package/src/auth/{index.d.ts → index.ts} +1 -2
  8. package/src/components/ApiAccess.tsx +174 -0
  9. package/src/components/BackupCodeLoginForm.tsx +488 -0
  10. package/src/components/BackupCodesForm.tsx +286 -0
  11. package/src/components/ChangePasswordForm.tsx +272 -0
  12. package/src/components/ConfirmationDialog.tsx +48 -0
  13. package/src/components/CurrencyCodeSelector.tsx +60 -0
  14. package/src/components/CurrencyInput.tsx +80 -0
  15. package/src/components/DashboardPage.tsx +24 -0
  16. package/src/components/DropdownMenu.tsx +92 -0
  17. package/src/components/ExpirationSecondsSelector.tsx +60 -0
  18. package/src/components/Flag.tsx +52 -0
  19. package/src/components/ForgotPasswordForm.tsx +173 -0
  20. package/src/components/LoginForm.tsx +455 -0
  21. package/src/components/LogoutPage.tsx +21 -0
  22. package/src/components/RegisterForm.tsx +602 -0
  23. package/src/components/ResetPasswordForm.tsx +246 -0
  24. package/src/components/SideMenu.tsx +46 -0
  25. package/src/components/SideMenuListItem.tsx +74 -0
  26. package/src/components/TopMenu.tsx +145 -0
  27. package/src/components/TranslatedTitle.tsx +29 -0
  28. package/src/components/UserLanguageSelector.tsx +45 -0
  29. package/src/components/UserMenu.tsx +15 -0
  30. package/src/components/UserSettingsForm.tsx +505 -0
  31. package/src/components/VerifyEmailPage.tsx +184 -0
  32. package/src/components/{index.d.ts → index.ts} +1 -1
  33. package/src/contexts/AuthProvider.spec.tsx +1195 -0
  34. package/src/contexts/AuthProvider.tsx +924 -0
  35. package/src/contexts/I18nProvider.tsx +114 -0
  36. package/src/contexts/MenuContext.tsx +398 -0
  37. package/src/contexts/SuiteConfigProvider.tsx +93 -0
  38. package/src/contexts/ThemeProvider.tsx +67 -0
  39. package/src/contexts/{index.d.ts → index.ts} +0 -1
  40. package/src/hooks/{index.d.ts → index.ts} +0 -1
  41. package/src/hooks/useBackupCodes.ts +105 -0
  42. package/src/hooks/useEmailVerification.ts +49 -0
  43. package/src/hooks/useExpiringValue.ts +78 -0
  44. package/src/hooks/useLocalStorage.ts +18 -0
  45. package/src/hooks/useUserSettings.ts +269 -0
  46. package/src/{index.d.ts → index.ts} +1 -1
  47. package/src/interfaces/IAppConfig.ts +5 -0
  48. package/src/interfaces/IMenuConfig.ts +11 -0
  49. package/src/interfaces/IMenuOption.ts +55 -0
  50. package/src/interfaces/index.ts +3 -0
  51. package/src/services/__mocks__/authService.ts +14 -0
  52. package/src/services/api.ts +13 -0
  53. package/src/services/authService.ts +500 -0
  54. package/src/services/authenticatedApi.ts +17 -0
  55. package/src/services/index.ts +3 -0
  56. package/src/types/MenuType.ts +15 -0
  57. package/src/types/expirationSeconds.ts +18 -0
  58. package/src/types/index.ts +1 -0
  59. package/src/types/translation.ts +20 -0
  60. package/src/wrappers/BackupCodeLoginWrapper.tsx +34 -0
  61. package/src/wrappers/BackupCodesWrapper.tsx +28 -0
  62. package/src/wrappers/ChangePasswordFormWrapper.tsx +34 -0
  63. package/src/wrappers/LoginFormWrapper.tsx +59 -0
  64. package/src/wrappers/LogoutPageWrapper.tsx +30 -0
  65. package/src/wrappers/RegisterFormWrapper.tsx +61 -0
  66. package/src/wrappers/UserSettingsFormWrapper.tsx +39 -0
  67. package/src/wrappers/VerifyEmailPageWrapper.tsx +27 -0
  68. package/src/wrappers/{index.d.ts → index.tsx} +8 -1
  69. package/src/auth/Private.d.ts +0 -6
  70. package/src/auth/Private.d.ts.map +0 -1
  71. package/src/auth/Private.js +0 -14
  72. package/src/auth/PrivateRoute.d.ts +0 -8
  73. package/src/auth/PrivateRoute.d.ts.map +0 -1
  74. package/src/auth/PrivateRoute.js +0 -23
  75. package/src/auth/UnAuth.d.ts +0 -6
  76. package/src/auth/UnAuth.d.ts.map +0 -1
  77. package/src/auth/UnAuth.js +0 -14
  78. package/src/auth/UnAuthRoute.d.ts +0 -8
  79. package/src/auth/UnAuthRoute.d.ts.map +0 -1
  80. package/src/auth/UnAuthRoute.js +0 -22
  81. package/src/auth/index.d.ts.map +0 -1
  82. package/src/auth/index.js +0 -10
  83. package/src/components/ApiAccess.d.ts +0 -16
  84. package/src/components/ApiAccess.d.ts.map +0 -1
  85. package/src/components/ApiAccess.js +0 -77
  86. package/src/components/BackupCodeLoginForm.d.ts +0 -43
  87. package/src/components/BackupCodeLoginForm.d.ts.map +0 -1
  88. package/src/components/BackupCodeLoginForm.js +0 -139
  89. package/src/components/BackupCodesForm.d.ts +0 -26
  90. package/src/components/BackupCodesForm.d.ts.map +0 -1
  91. package/src/components/BackupCodesForm.js +0 -120
  92. package/src/components/ChangePasswordForm.d.ts +0 -26
  93. package/src/components/ChangePasswordForm.d.ts.map +0 -1
  94. package/src/components/ChangePasswordForm.js +0 -78
  95. package/src/components/ConfirmationDialog.d.ts +0 -13
  96. package/src/components/ConfirmationDialog.d.ts.map +0 -1
  97. package/src/components/ConfirmationDialog.js +0 -10
  98. package/src/components/CurrencyCodeSelector.d.ts +0 -9
  99. package/src/components/CurrencyCodeSelector.d.ts.map +0 -1
  100. package/src/components/CurrencyCodeSelector.js +0 -31
  101. package/src/components/CurrencyInput.d.ts +0 -13
  102. package/src/components/CurrencyInput.d.ts.map +0 -1
  103. package/src/components/CurrencyInput.js +0 -22
  104. package/src/components/DashboardPage.d.ts +0 -8
  105. package/src/components/DashboardPage.d.ts.map +0 -1
  106. package/src/components/DashboardPage.js +0 -10
  107. package/src/components/DropdownMenu.d.ts +0 -9
  108. package/src/components/DropdownMenu.d.ts.map +0 -1
  109. package/src/components/DropdownMenu.js +0 -56
  110. package/src/components/ExpirationSecondsSelector.d.ts +0 -13
  111. package/src/components/ExpirationSecondsSelector.d.ts.map +0 -1
  112. package/src/components/ExpirationSecondsSelector.js +0 -32
  113. package/src/components/Flag.d.ts +0 -20
  114. package/src/components/Flag.d.ts.map +0 -1
  115. package/src/components/Flag.js +0 -43
  116. package/src/components/ForgotPasswordForm.d.ts +0 -18
  117. package/src/components/ForgotPasswordForm.d.ts.map +0 -1
  118. package/src/components/ForgotPasswordForm.js +0 -61
  119. package/src/components/LoginForm.d.ts +0 -44
  120. package/src/components/LoginForm.d.ts.map +0 -1
  121. package/src/components/LoginForm.js +0 -122
  122. package/src/components/LogoutPage.d.ts +0 -8
  123. package/src/components/LogoutPage.d.ts.map +0 -1
  124. package/src/components/LogoutPage.js +0 -16
  125. package/src/components/RegisterForm.d.ts +0 -56
  126. package/src/components/RegisterForm.d.ts.map +0 -1
  127. package/src/components/RegisterForm.js +0 -140
  128. package/src/components/ResetPasswordForm.d.ts +0 -23
  129. package/src/components/ResetPasswordForm.d.ts.map +0 -1
  130. package/src/components/ResetPasswordForm.js +0 -78
  131. package/src/components/SideMenu.d.ts +0 -8
  132. package/src/components/SideMenu.d.ts.map +0 -1
  133. package/src/components/SideMenu.js +0 -25
  134. package/src/components/SideMenuListItem.d.ts +0 -13
  135. package/src/components/SideMenuListItem.d.ts.map +0 -1
  136. package/src/components/SideMenuListItem.js +0 -44
  137. package/src/components/TopMenu.d.ts +0 -24
  138. package/src/components/TopMenu.d.ts.map +0 -1
  139. package/src/components/TopMenu.js +0 -35
  140. package/src/components/TranslatedTitle.d.ts +0 -7
  141. package/src/components/TranslatedTitle.d.ts.map +0 -1
  142. package/src/components/TranslatedTitle.js +0 -15
  143. package/src/components/UserLanguageSelector.d.ts +0 -4
  144. package/src/components/UserLanguageSelector.d.ts.map +0 -1
  145. package/src/components/UserLanguageSelector.js +0 -31
  146. package/src/components/UserMenu.d.ts +0 -4
  147. package/src/components/UserMenu.d.ts.map +0 -1
  148. package/src/components/UserMenu.js +0 -12
  149. package/src/components/UserSettingsForm.d.ts +0 -57
  150. package/src/components/UserSettingsForm.d.ts.map +0 -1
  151. package/src/components/UserSettingsForm.js +0 -126
  152. package/src/components/VerifyEmailPage.d.ts +0 -23
  153. package/src/components/VerifyEmailPage.d.ts.map +0 -1
  154. package/src/components/VerifyEmailPage.js +0 -70
  155. package/src/components/index.d.ts.map +0 -1
  156. package/src/components/index.js +0 -28
  157. package/src/contexts/AuthProvider.d.ts +0 -152
  158. package/src/contexts/AuthProvider.d.ts.map +0 -1
  159. package/src/contexts/AuthProvider.js +0 -502
  160. package/src/contexts/I18nProvider.d.ts +0 -16
  161. package/src/contexts/I18nProvider.d.ts.map +0 -1
  162. package/src/contexts/I18nProvider.js +0 -46
  163. package/src/contexts/MenuContext.d.ts +0 -20
  164. package/src/contexts/MenuContext.d.ts.map +0 -1
  165. package/src/contexts/MenuContext.js +0 -273
  166. package/src/contexts/SuiteConfigProvider.d.ts +0 -44
  167. package/src/contexts/SuiteConfigProvider.d.ts.map +0 -1
  168. package/src/contexts/SuiteConfigProvider.js +0 -43
  169. package/src/contexts/ThemeProvider.d.ts +0 -15
  170. package/src/contexts/ThemeProvider.d.ts.map +0 -1
  171. package/src/contexts/ThemeProvider.js +0 -36
  172. package/src/contexts/index.d.ts.map +0 -1
  173. package/src/contexts/index.js +0 -8
  174. package/src/hooks/index.d.ts.map +0 -1
  175. package/src/hooks/index.js +0 -8
  176. package/src/hooks/useBackupCodes.d.ts +0 -15
  177. package/src/hooks/useBackupCodes.d.ts.map +0 -1
  178. package/src/hooks/useBackupCodes.js +0 -74
  179. package/src/hooks/useEmailVerification.d.ts +0 -10
  180. package/src/hooks/useEmailVerification.d.ts.map +0 -1
  181. package/src/hooks/useEmailVerification.js +0 -40
  182. package/src/hooks/useExpiringValue.d.ts +0 -14
  183. package/src/hooks/useExpiringValue.d.ts.map +0 -1
  184. package/src/hooks/useExpiringValue.js +0 -53
  185. package/src/hooks/useLocalStorage.d.ts +0 -2
  186. package/src/hooks/useLocalStorage.d.ts.map +0 -1
  187. package/src/hooks/useLocalStorage.js +0 -15
  188. package/src/hooks/useUserSettings.d.ts +0 -48
  189. package/src/hooks/useUserSettings.d.ts.map +0 -1
  190. package/src/hooks/useUserSettings.js +0 -169
  191. package/src/index.d.ts.map +0 -1
  192. package/src/index.js +0 -12
  193. package/src/interfaces/IAppConfig.d.ts +0 -6
  194. package/src/interfaces/IAppConfig.d.ts.map +0 -1
  195. package/src/interfaces/IAppConfig.js +0 -2
  196. package/src/interfaces/IMenuConfig.d.ts +0 -11
  197. package/src/interfaces/IMenuConfig.d.ts.map +0 -1
  198. package/src/interfaces/IMenuConfig.js +0 -2
  199. package/src/interfaces/IMenuOption.d.ts +0 -58
  200. package/src/interfaces/IMenuOption.d.ts.map +0 -1
  201. package/src/interfaces/IMenuOption.js +0 -2
  202. package/src/interfaces/index.d.ts +0 -4
  203. package/src/interfaces/index.d.ts.map +0 -1
  204. package/src/interfaces/index.js +0 -6
  205. package/src/services/__mocks__/authService.d.ts +0 -21
  206. package/src/services/__mocks__/authService.d.ts.map +0 -1
  207. package/src/services/__mocks__/authService.js +0 -15
  208. package/src/services/api.d.ts +0 -3
  209. package/src/services/api.d.ts.map +0 -1
  210. package/src/services/api.js +0 -14
  211. package/src/services/authService.d.ts +0 -72
  212. package/src/services/authService.d.ts.map +0 -1
  213. package/src/services/authService.js +0 -335
  214. package/src/services/authenticatedApi.d.ts +0 -3
  215. package/src/services/authenticatedApi.d.ts.map +0 -1
  216. package/src/services/authenticatedApi.js +0 -18
  217. package/src/services/index.d.ts +0 -4
  218. package/src/services/index.d.ts.map +0 -1
  219. package/src/services/index.js +0 -6
  220. package/src/types/MenuType.d.ts +0 -11
  221. package/src/types/MenuType.d.ts.map +0 -1
  222. package/src/types/MenuType.js +0 -12
  223. package/src/types/expirationSeconds.d.ts +0 -3
  224. package/src/types/expirationSeconds.d.ts.map +0 -1
  225. package/src/types/expirationSeconds.js +0 -17
  226. package/src/types/index.d.ts +0 -2
  227. package/src/types/index.d.ts.map +0 -1
  228. package/src/types/index.js +0 -4
  229. package/src/types/translation.d.ts +0 -10
  230. package/src/types/translation.d.ts.map +0 -1
  231. package/src/types/translation.js +0 -9
  232. package/src/wrappers/BackupCodeLoginWrapper.d.ts +0 -8
  233. package/src/wrappers/BackupCodeLoginWrapper.d.ts.map +0 -1
  234. package/src/wrappers/BackupCodeLoginWrapper.js +0 -20
  235. package/src/wrappers/BackupCodesWrapper.d.ts +0 -7
  236. package/src/wrappers/BackupCodesWrapper.d.ts.map +0 -1
  237. package/src/wrappers/BackupCodesWrapper.js +0 -17
  238. package/src/wrappers/ChangePasswordFormWrapper.d.ts +0 -8
  239. package/src/wrappers/ChangePasswordFormWrapper.d.ts.map +0 -1
  240. package/src/wrappers/ChangePasswordFormWrapper.js +0 -21
  241. package/src/wrappers/LoginFormWrapper.d.ts +0 -9
  242. package/src/wrappers/LoginFormWrapper.d.ts.map +0 -1
  243. package/src/wrappers/LoginFormWrapper.js +0 -43
  244. package/src/wrappers/LogoutPageWrapper.d.ts +0 -9
  245. package/src/wrappers/LogoutPageWrapper.d.ts.map +0 -1
  246. package/src/wrappers/LogoutPageWrapper.js +0 -21
  247. package/src/wrappers/RegisterFormWrapper.d.ts +0 -9
  248. package/src/wrappers/RegisterFormWrapper.d.ts.map +0 -1
  249. package/src/wrappers/RegisterFormWrapper.js +0 -31
  250. package/src/wrappers/UserSettingsFormWrapper.d.ts +0 -8
  251. package/src/wrappers/UserSettingsFormWrapper.d.ts.map +0 -1
  252. package/src/wrappers/UserSettingsFormWrapper.js +0 -24
  253. package/src/wrappers/VerifyEmailPageWrapper.d.ts +0 -8
  254. package/src/wrappers/VerifyEmailPageWrapper.d.ts.map +0 -1
  255. package/src/wrappers/VerifyEmailPageWrapper.js +0 -20
  256. package/src/wrappers/index.d.ts.map +0 -1
  257. package/src/wrappers/index.js +0 -20
@@ -0,0 +1,59 @@
1
+ import { FC } from 'react';
2
+ import { useNavigate } from 'react-router-dom';
3
+ import { SecureString, EmailString } from '@digitaldefiance/ecies-lib';
4
+ import { LoginForm, LoginFormValues, LoginFormProps } from '../components/LoginForm';
5
+ import { useAuth, useSuiteConfig } from '../contexts';
6
+ import { SuiteCoreStringKey, TranslatableSuiteError } from '@digitaldefiance/suite-core-lib';
7
+
8
+ export interface LoginFormWrapperProps {
9
+ onSuccess?: () => void;
10
+ redirectTo?: string;
11
+ componentProps?: Partial<Omit<LoginFormProps, 'onSubmit'>>;
12
+ }
13
+
14
+ export const LoginFormWrapper: FC<LoginFormWrapperProps> = ({
15
+ onSuccess,
16
+ redirectTo,
17
+ componentProps = {},
18
+ }) => {
19
+ const { directLogin, passwordLogin } = useAuth();
20
+ const navigate = useNavigate();
21
+ const { routes } = useSuiteConfig();
22
+
23
+ const handleSubmit = async (values: LoginFormValues) => {
24
+ const email = values.email && values.email.trim().length > 0 ? new EmailString(values.email) : undefined;
25
+ const username = values.username && values.username.trim() ? values.username : undefined;
26
+
27
+ if (values.password) {
28
+ const result = await passwordLogin(
29
+ new SecureString(values.password),
30
+ username,
31
+ email
32
+ );
33
+ if ('error' in result) {
34
+ throw new Error(result.error);
35
+ }
36
+ if (onSuccess) {
37
+ onSuccess();
38
+ }
39
+ navigate(redirectTo || routes.dashboard || '/dashboard');
40
+ } else if (values.mnemonic) {
41
+ const result = await directLogin(
42
+ new SecureString(values.mnemonic),
43
+ username,
44
+ email
45
+ );
46
+ if ('error' in result) {
47
+ throw new Error(result.error);
48
+ }
49
+ if (onSuccess) {
50
+ onSuccess();
51
+ }
52
+ navigate(redirectTo || routes.dashboard || '/dashboard');
53
+ } else {
54
+ throw new TranslatableSuiteError(SuiteCoreStringKey.Error_NoPasswordOrMnemonicProvided);
55
+ }
56
+ };
57
+
58
+ return <LoginForm onSubmit={handleSubmit} {...componentProps} />;
59
+ };
@@ -0,0 +1,30 @@
1
+ import { FC } from 'react';
2
+ import { useNavigate } from 'react-router-dom';
3
+ import { LogoutPage } from '../components/LogoutPage';
4
+ import { useAuth, useSuiteConfig } from '../contexts';
5
+
6
+ export interface LogoutPageWrapperProps {
7
+ onSuccess?: () => void;
8
+ redirectTo?: string;
9
+ componentProps?: Partial<React.ComponentProps<typeof LogoutPage>>;
10
+ }
11
+
12
+ export const LogoutPageWrapper: FC<LogoutPageWrapperProps> = ({
13
+ onSuccess,
14
+ redirectTo,
15
+ componentProps = {},
16
+ }) => {
17
+ const { logout } = useAuth();
18
+ const navigate = useNavigate();
19
+ const { routes } = useSuiteConfig();
20
+
21
+ const handleLogout = async () => {
22
+ await logout();
23
+ if (onSuccess) {
24
+ onSuccess();
25
+ }
26
+ navigate(redirectTo || routes.login || '/login');
27
+ };
28
+
29
+ return <LogoutPage onLogout={handleLogout} onNavigate={navigate} {...componentProps} />;
30
+ };
@@ -0,0 +1,61 @@
1
+ import { FC } from 'react';
2
+ import { useNavigate } from 'react-router-dom';
3
+ import {
4
+ RegisterForm,
5
+ RegisterFormProps,
6
+ RegisterFormValues,
7
+ } from '../components/RegisterForm';
8
+ import { useAuth, useSuiteConfig } from '../contexts';
9
+
10
+ export interface RegisterFormWrapperProps {
11
+ onSuccess?: () => void;
12
+ redirectTo?: string;
13
+ componentProps?: Partial<
14
+ Omit<RegisterFormProps, 'onSubmit' | 'timezones' | 'getInitialTimezone'>
15
+ >;
16
+ }
17
+
18
+ export const RegisterFormWrapper: FC<RegisterFormWrapperProps> = ({
19
+ onSuccess,
20
+ redirectTo,
21
+ componentProps = {},
22
+ }) => {
23
+ const { register } = useAuth();
24
+ const navigate = useNavigate();
25
+ const { routes, timezones } = useSuiteConfig();
26
+
27
+ const handleSubmit = async (values: RegisterFormValues) => {
28
+ const result = await register(
29
+ values.username,
30
+ values.email,
31
+ values.timezone || 'UTC',
32
+ values.password
33
+ );
34
+ if ('error' in result) {
35
+ throw new Error(result.error);
36
+ }
37
+ if (onSuccess) {
38
+ onSuccess();
39
+ }
40
+ navigate(redirectTo || routes.verifyEmail || '/verify-email');
41
+ return result;
42
+ };
43
+
44
+ const defaultTimezones = timezones || [
45
+ 'UTC',
46
+ 'America/New_York',
47
+ 'America/Los_Angeles',
48
+ 'Europe/London',
49
+ ];
50
+
51
+ return (
52
+ <RegisterForm
53
+ onSubmit={handleSubmit}
54
+ timezones={defaultTimezones}
55
+ getInitialTimezone={() =>
56
+ Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC'
57
+ }
58
+ {...componentProps}
59
+ />
60
+ );
61
+ };
@@ -0,0 +1,39 @@
1
+ import { FC } from 'react';
2
+ import { UserSettingsForm, UserSettingsFormValues, UserSettingsFormProps } from '../components/UserSettingsForm';
3
+ import { useSuiteConfig } from '../contexts';
4
+ import { useUserSettingsPublic } from '../hooks';
5
+ import { getSuiteCoreTranslation, SuiteCoreStringKey } from '@digitaldefiance/suite-core-lib';
6
+
7
+ export interface UserSettingsFormWrapperProps {
8
+ onSuccess?: () => void;
9
+ componentProps?: Partial<Omit<UserSettingsFormProps, 'initialValues' | 'onSubmit' | 'languages'>>;
10
+ }
11
+
12
+ export const UserSettingsFormWrapper: FC<UserSettingsFormWrapperProps> = ({
13
+ onSuccess,
14
+ componentProps = {},
15
+ }) => {
16
+ const { settings, isLoading, updateSettings } = useUserSettingsPublic();
17
+ const { languages } = useSuiteConfig();
18
+
19
+ const handleSubmit = async (values: UserSettingsFormValues) => {
20
+ const result = await updateSettings(values);
21
+ if ('success' in result && result.success && onSuccess) {
22
+ onSuccess();
23
+ }
24
+ return result;
25
+ };
26
+
27
+ if (isLoading || !settings) {
28
+ return <div>{getSuiteCoreTranslation(SuiteCoreStringKey.Common_Loading)}...</div>;
29
+ }
30
+
31
+ return (
32
+ <UserSettingsForm
33
+ initialValues={settings}
34
+ onSubmit={handleSubmit}
35
+ languages={languages}
36
+ {...componentProps}
37
+ />
38
+ );
39
+ };
@@ -0,0 +1,27 @@
1
+ import { FC } from 'react';
2
+ import { VerifyEmailPage } from '../components/VerifyEmailPage';
3
+ import { useEmailVerification } from '../hooks';
4
+
5
+ export interface VerifyEmailPageWrapperProps {
6
+ onSuccess?: () => void;
7
+ componentProps?: Partial<React.ComponentProps<typeof VerifyEmailPage>>;
8
+ }
9
+
10
+ export const VerifyEmailPageWrapper: FC<VerifyEmailPageWrapperProps> = ({
11
+ onSuccess,
12
+ componentProps = {},
13
+ }) => {
14
+ const searchParams = new URLSearchParams(window.location.search);
15
+ const token = searchParams.get('token');
16
+ const { verifyEmail } = useEmailVerification();
17
+
18
+ const handleVerify = async (verificationToken: string) => {
19
+ const result = await verifyEmail(verificationToken);
20
+ if (result.success && onSuccess) {
21
+ onSuccess();
22
+ }
23
+ return result;
24
+ };
25
+
26
+ return <VerifyEmailPage token={token} onVerify={handleVerify} {...componentProps} />;
27
+ };
@@ -1,17 +1,24 @@
1
+ // Re-export all wrapper components from their individual files
1
2
  export { BackupCodeLoginWrapper } from './BackupCodeLoginWrapper';
2
3
  export type { BackupCodeLoginWrapperProps } from './BackupCodeLoginWrapper';
4
+
3
5
  export { BackupCodesWrapper } from './BackupCodesWrapper';
4
6
  export type { BackupCodesWrapperProps } from './BackupCodesWrapper';
7
+
5
8
  export { ChangePasswordFormWrapper } from './ChangePasswordFormWrapper';
6
9
  export type { ChangePasswordFormWrapperProps } from './ChangePasswordFormWrapper';
10
+
7
11
  export { LoginFormWrapper } from './LoginFormWrapper';
8
12
  export type { LoginFormWrapperProps } from './LoginFormWrapper';
13
+
9
14
  export { RegisterFormWrapper } from './RegisterFormWrapper';
10
15
  export type { RegisterFormWrapperProps } from './RegisterFormWrapper';
16
+
11
17
  export { LogoutPageWrapper } from './LogoutPageWrapper';
12
18
  export type { LogoutPageWrapperProps } from './LogoutPageWrapper';
19
+
13
20
  export { VerifyEmailPageWrapper } from './VerifyEmailPageWrapper';
14
21
  export type { VerifyEmailPageWrapperProps } from './VerifyEmailPageWrapper';
22
+
15
23
  export { UserSettingsFormWrapper } from './UserSettingsFormWrapper';
16
24
  export type { UserSettingsFormWrapperProps } from './UserSettingsFormWrapper';
17
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- export interface PrivateProps {
3
- children: ReactNode;
4
- }
5
- export declare const Private: FC<PrivateProps>;
6
- //# sourceMappingURL=Private.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Private.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/auth/Private.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAUpC,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Private = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const AuthProvider_1 = require("../contexts/AuthProvider");
7
- const Private = ({ children, }) => {
8
- const { isAuthenticated, isCheckingAuth } = (0, react_1.useContext)(AuthProvider_1.AuthContext);
9
- if (isCheckingAuth || !isAuthenticated) {
10
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
11
- }
12
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
13
- };
14
- exports.Private = Private;
@@ -1,8 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- interface PrivateRouteProps {
3
- children: ReactNode;
4
- redirectTo?: string;
5
- }
6
- export declare const PrivateRoute: FC<PrivateRouteProps>;
7
- export default PrivateRoute;
8
- //# sourceMappingURL=PrivateRoute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrivateRoute.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/auth/PrivateRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAMlD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAc9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivateRoute = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const react_router_dom_1 = require("react-router-dom");
7
- const AuthProvider_1 = require("../contexts/AuthProvider");
8
- const contexts_1 = require("../contexts");
9
- const suite_core_lib_1 = require("@digitaldefiance/suite-core-lib");
10
- const PrivateRoute = ({ children, redirectTo }) => {
11
- const { tComponent } = (0, contexts_1.useI18n)();
12
- const { isAuthenticated, isCheckingAuth } = (0, react_1.useContext)(AuthProvider_1.AuthContext);
13
- const location = (0, react_router_dom_1.useLocation)();
14
- if (isCheckingAuth) {
15
- return (0, jsx_runtime_1.jsxs)("div", { children: [tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.Common_CheckingAuthentication), "..."] });
16
- }
17
- if (!isAuthenticated) {
18
- return (0, jsx_runtime_1.jsx)(react_router_dom_1.Navigate, { to: redirectTo ?? "/login", state: { from: location }, replace: true });
19
- }
20
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
21
- };
22
- exports.PrivateRoute = PrivateRoute;
23
- exports.default = exports.PrivateRoute;
@@ -1,6 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- export interface UnAuthProps {
3
- children: ReactNode;
4
- }
5
- export declare const UnAuth: FC<UnAuthProps>;
6
- //# sourceMappingURL=UnAuth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnAuth.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/auth/UnAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAQlC,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnAuth = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const AuthProvider_1 = require("../contexts/AuthProvider");
7
- const UnAuth = ({ children }) => {
8
- const { isAuthenticated, isCheckingAuth } = (0, react_1.useContext)(AuthProvider_1.AuthContext);
9
- if (isCheckingAuth || isAuthenticated) {
10
- return null;
11
- }
12
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
13
- };
14
- exports.UnAuth = UnAuth;
@@ -1,8 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- export interface UnAuthRouteProps {
3
- children: ReactNode;
4
- redirectTo?: string;
5
- }
6
- export declare const UnAuthRoute: FC<UnAuthRouteProps>;
7
- export default UnAuthRoute;
8
- //# sourceMappingURL=UnAuthRoute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnAuthRoute.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/auth/UnAuthRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAKlD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiB5C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnAuthRoute = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const react_router_dom_1 = require("react-router-dom");
7
- const contexts_1 = require("../contexts");
8
- const suite_core_lib_1 = require("@digitaldefiance/suite-core-lib");
9
- const UnAuthRoute = ({ children, redirectTo = '/dashboard', }) => {
10
- const { isAuthenticated, isCheckingAuth } = (0, react_1.useContext)(contexts_1.AuthContext);
11
- const { tComponent } = (0, contexts_1.useI18n)();
12
- const location = (0, react_router_dom_1.useLocation)();
13
- if (isCheckingAuth) {
14
- return (0, jsx_runtime_1.jsxs)("div", { children: [tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.Common_CheckingAuthentication), "..."] });
15
- }
16
- if (isAuthenticated) {
17
- return (0, jsx_runtime_1.jsx)(react_router_dom_1.Navigate, { to: redirectTo ?? "/dashboard", state: { from: location }, replace: true });
18
- }
19
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
20
- };
21
- exports.UnAuthRoute = UnAuthRoute;
22
- exports.default = exports.UnAuthRoute;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAA"}
package/src/auth/index.js DELETED
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnAuthRoute = exports.PrivateRoute = void 0;
4
- const tslib_1 = require("tslib");
5
- var PrivateRoute_1 = require("./PrivateRoute");
6
- Object.defineProperty(exports, "PrivateRoute", { enumerable: true, get: function () { return tslib_1.__importDefault(PrivateRoute_1).default; } });
7
- var UnAuthRoute_1 = require("./UnAuthRoute");
8
- Object.defineProperty(exports, "UnAuthRoute", { enumerable: true, get: function () { return tslib_1.__importDefault(UnAuthRoute_1).default; } });
9
- tslib_1.__exportStar(require("./Private"), exports);
10
- tslib_1.__exportStar(require("./UnAuth"), exports);
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- export interface ApiAccessProps {
3
- token?: string | null;
4
- labels?: {
5
- title?: string;
6
- tokenNotAvailable?: string;
7
- copyButton?: string;
8
- notificationTitle?: string;
9
- copied?: string;
10
- copyFailed?: string;
11
- ok?: string;
12
- };
13
- }
14
- export declare const ApiAccess: FC<ApiAccessProps>;
15
- export default ApiAccess;
16
- //# sourceMappingURL=ApiAccess.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiAccess.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/ApiAccess.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AA2BrC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAmHxC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiAccess = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const suite_core_lib_1 = require("@digitaldefiance/suite-core-lib");
7
- const ContentCopy_1 = tslib_1.__importDefault(require("@mui/icons-material/ContentCopy"));
8
- const material_1 = require("@mui/material");
9
- const react_1 = require("react");
10
- const contexts_1 = require("../contexts");
11
- const ApiAccessContainer = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
12
- display: 'flex',
13
- flexDirection: 'column',
14
- alignItems: 'center',
15
- justifyContent: 'center',
16
- minHeight: '100vh',
17
- backgroundColor: theme.palette.background.default,
18
- padding: theme.spacing(3),
19
- }));
20
- const ApiAccessContent = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
21
- maxWidth: '600px',
22
- width: '100%',
23
- backgroundColor: theme.palette.background.paper,
24
- borderRadius: theme.shape.borderRadius,
25
- padding: theme.spacing(4),
26
- boxShadow: theme.shadows[3],
27
- }));
28
- const ApiAccessTitle = (0, material_1.styled)(material_1.Typography)(({ theme }) => ({
29
- marginBottom: theme.spacing(3),
30
- color: theme.palette.primary.main,
31
- }));
32
- const ApiAccess = ({ token: tokenProp, labels = {}, }) => {
33
- const { token: authToken } = (0, contexts_1.useAuth)();
34
- const token = tokenProp !== undefined ? tokenProp : authToken;
35
- const { tComponent } = (0, contexts_1.useI18n)();
36
- const [dialogOpen, setDialogOpen] = (0, react_1.useState)(false);
37
- const [isError, setIsError] = (0, react_1.useState)(false);
38
- const translatedLabels = {
39
- title: labels.title ||
40
- tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.ApiAccess_Title),
41
- tokenNotAvailable: labels.tokenNotAvailable ||
42
- tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.ApiAccess_TokenNotAvailable),
43
- copyButton: labels.copyButton ||
44
- tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.Common_CopyToClipboard),
45
- notificationTitle: labels.notificationTitle ||
46
- tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.Common_Notification),
47
- copied: labels.copied ||
48
- tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.Common_CopiedToClipboard),
49
- copyFailed: labels.copyFailed ||
50
- tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.Error_FailedToCopy),
51
- ok: labels.ok ||
52
- tComponent(suite_core_lib_1.SuiteCoreComponentId, suite_core_lib_1.SuiteCoreStringKey.Common_OK),
53
- };
54
- const copyToClipboard = async () => {
55
- if (token) {
56
- try {
57
- await navigator.clipboard.writeText(token);
58
- setIsError(false);
59
- setDialogOpen(true);
60
- }
61
- catch {
62
- setIsError(true);
63
- }
64
- }
65
- };
66
- const handleClose = () => {
67
- setDialogOpen(false);
68
- setIsError(false);
69
- };
70
- return ((0, jsx_runtime_1.jsxs)(ApiAccessContainer, { children: [(0, jsx_runtime_1.jsxs)(ApiAccessContent, { children: [(0, jsx_runtime_1.jsx)(ApiAccessTitle, { variant: "h4", align: "center", children: translatedLabels.title }), (0, jsx_runtime_1.jsx)(material_1.TextField, { fullWidth: true, multiline: true, rows: 4, value: token || translatedLabels.tokenNotAvailable, slotProps: {
71
- input: {
72
- readOnly: true,
73
- },
74
- }, variant: "outlined", margin: "normal" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", startIcon: (0, jsx_runtime_1.jsx)(ContentCopy_1.default, {}), onClick: copyToClipboard, fullWidth: true, style: { marginTop: '16px' }, children: translatedLabels.copyButton })] }), (0, jsx_runtime_1.jsxs)(material_1.Dialog, { open: dialogOpen, onClose: handleClose, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: translatedLabels.notificationTitle }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: isError ? translatedLabels.copyFailed : translatedLabels.copied }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClose, color: "primary", children: translatedLabels.ok }) })] })] }));
75
- };
76
- exports.ApiAccess = ApiAccess;
77
- exports.default = exports.ApiAccess;
@@ -1,43 +0,0 @@
1
- import { FC } from 'react';
2
- import * as Yup from 'yup';
3
- export interface BackupCodeLoginFormValues {
4
- email: string;
5
- username: string;
6
- code: string;
7
- newPassword?: string;
8
- confirmNewPassword?: string;
9
- recoverMnemonic: boolean;
10
- }
11
- export interface BackupCodeLoginFormProps {
12
- onSubmit: (identifier: string, code: string, isEmail: boolean, recoverMnemonic: boolean, newPassword?: string) => Promise<{
13
- token: string;
14
- codeCount: number;
15
- mnemonic?: string;
16
- message?: string;
17
- } | {
18
- error: string;
19
- status?: number;
20
- }>;
21
- onNavigate?: (path: string, state?: Record<string, unknown>) => void;
22
- isAuthenticated?: boolean;
23
- validationSchema?: Yup.ObjectSchema<BackupCodeLoginFormValues>;
24
- labels?: {
25
- title?: string;
26
- email?: string;
27
- username?: string;
28
- code?: string;
29
- newPassword?: string;
30
- confirmPassword?: string;
31
- recoverMnemonic?: string;
32
- login?: string;
33
- useUsername?: string;
34
- useEmail?: string;
35
- dashboard?: string;
36
- generateNewCodes?: string;
37
- mnemonicLabel?: string;
38
- codesRemaining?: string;
39
- };
40
- }
41
- export declare const BackupCodeLoginForm: FC<BackupCodeLoginFormProps>;
42
- export default BackupCodeLoginForm;
43
- //# sourceMappingURL=BackupCodeLoginForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackupCodeLoginForm.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/components/BackupCodeLoginForm.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,CACR,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,OAAO,EACxB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CACR;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GACzE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CACrC,CAAC;IACF,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACrE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC/D,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAya5D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}