@databiosphere/findable-ui 50.8.0 → 51.0.1
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/lib/auth/constants/auth.d.ts +5 -0
- package/lib/{providers/authentication/auth/constants.js → auth/constants/auth.js} +4 -1
- package/lib/auth/constants/authentication.d.ts +5 -0
- package/lib/{providers/authentication/authentication/constants.js → auth/constants/authentication.js} +4 -1
- package/lib/auth/constants/credentials.d.ts +5 -0
- package/lib/{providers/authentication/credentials/constants.js → auth/constants/credentials.js} +3 -0
- package/lib/auth/constants/token.d.ts +5 -0
- package/lib/{providers/authentication/token/constants.js → auth/constants/token.js} +3 -0
- package/lib/{providers/authentication/auth/context.d.ts → auth/contexts/auth.d.ts} +4 -1
- package/lib/{providers/authentication/auth/context.js → auth/contexts/auth.js} +4 -1
- package/lib/auth/contexts/authentication.d.ts +5 -0
- package/lib/{providers/authentication/authentication/context.js → auth/contexts/authentication.js} +4 -1
- package/lib/auth/contexts/credentials.d.ts +5 -0
- package/lib/{providers/authentication/credentials/context.js → auth/contexts/credentials.js} +4 -1
- package/lib/{providers/authentication/auth/dispatch.d.ts → auth/dispatch/auth.d.ts} +2 -2
- package/lib/{providers/authentication/auth/dispatch.js → auth/dispatch/auth.js} +2 -2
- package/lib/{providers/authentication/authentication/dispatch.d.ts → auth/dispatch/authentication.d.ts} +2 -2
- package/lib/{providers/authentication/authentication/dispatch.js → auth/dispatch/authentication.js} +2 -2
- package/lib/auth/dispatch/credentials.d.ts +12 -0
- package/lib/{providers/authentication/credentials/dispatch.js → auth/dispatch/credentials.js} +3 -3
- package/lib/{providers/authentication/token/dispatch.d.ts → auth/dispatch/token.d.ts} +3 -3
- package/lib/{providers/authentication/token/dispatch.js → auth/dispatch/token.js} +3 -3
- package/lib/{providers/authentication/auth/hook.d.ts → auth/hooks/useAuth.d.ts} +1 -1
- package/lib/{providers/authentication/auth/hook.js → auth/hooks/useAuth.js} +1 -1
- package/lib/auth/hooks/useAuthReducer.d.ts +7 -0
- package/lib/auth/hooks/useAuthReducer.js +13 -0
- package/lib/{providers/authentication/authentication/hook.d.ts → auth/hooks/useAuthentication.d.ts} +1 -1
- package/lib/{providers/authentication/authentication/hook.js → auth/hooks/useAuthentication.js} +1 -1
- package/lib/auth/hooks/useAuthenticationReducer.d.ts +7 -0
- package/lib/auth/hooks/useAuthenticationReducer.js +13 -0
- package/lib/{providers/authentication/credentials/hook.d.ts → auth/hooks/useCredentials.d.ts} +1 -1
- package/lib/{providers/authentication/credentials/hook.js → auth/hooks/useCredentials.js} +1 -1
- package/lib/auth/hooks/useCredentialsReducer.d.ts +6 -0
- package/lib/{hooks/authentication/credentials → auth/hooks}/useCredentialsReducer.js +6 -2
- package/lib/{providers/authentication/auth/reducer.d.ts → auth/reducers/auth.d.ts} +1 -1
- package/lib/{providers/authentication/auth/reducer.js → auth/reducers/auth.js} +13 -2
- package/lib/{providers/authentication/authentication/reducer.d.ts → auth/reducers/authentication.d.ts} +1 -1
- package/lib/{providers/authentication/authentication/reducer.js → auth/reducers/authentication.js} +13 -2
- package/lib/{providers/authentication/credentials/reducer.d.ts → auth/reducers/credentials.d.ts} +1 -1
- package/lib/{providers/authentication/credentials/reducer.js → auth/reducers/credentials.js} +14 -3
- package/lib/{providers/authentication/token/reducer.d.ts → auth/reducers/token.d.ts} +1 -1
- package/lib/{providers/authentication/token/reducer.js → auth/reducers/token.js} +2 -2
- package/lib/{providers/authentication/auth/types.d.ts → auth/types/auth.d.ts} +41 -5
- package/lib/{providers/authentication/auth/types.js → auth/types/auth.js} +6 -0
- package/lib/{providers/authentication/authentication/types.d.ts → auth/types/authentication.d.ts} +46 -4
- package/lib/{providers/authentication/authentication/types.js → auth/types/authentication.js} +6 -0
- package/lib/auth/types/common.d.ts +4 -0
- package/lib/{providers/authentication/credentials/types.d.ts → auth/types/credentials.d.ts} +31 -4
- package/lib/{providers/authentication/credentials/types.js → auth/types/credentials.js} +3 -0
- package/lib/auth/types/loginProvider.d.ts +11 -0
- package/lib/{providers/authentication/token/types.d.ts → auth/types/token.d.ts} +29 -5
- package/lib/{providers/authentication/token/types.js → auth/types/token.js} +3 -0
- package/lib/common/chart/sort/utils.d.ts +1 -1
- package/lib/components/ComponentCreator/ComponentCreator.js +1 -1
- package/lib/components/ComponentCreator/components/RenderComponent/renderComponent.d.ts +1 -1
- package/lib/components/ErrorBoundary/errorBoundary.d.ts +1 -1
- package/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandForm/downloadCurlCommandForm.d.ts +1 -1
- package/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandNotStarted/downloadCurlCommandNotStarted.d.ts +1 -1
- package/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandReady/downloadCurlCommandReady.d.ts +1 -1
- package/lib/components/Export/components/DownloadCurlCommand/downloadCurlCommand.d.ts +1 -1
- package/lib/components/Export/components/ExportForm/components/ExportButton/exportButton.d.ts +1 -1
- package/lib/components/Export/components/ExportForm/components/ExportExecutionEnvironmentForm/exportExecutionEnvironmentForm.d.ts +1 -1
- package/lib/components/Export/components/ExportForm/exportForm.d.ts +1 -1
- package/lib/components/Export/components/ExportToTerra/components/ExportToTerraForm/exportToTerraForm.d.ts +1 -1
- package/lib/components/Export/components/ExportToTerra/components/ExportToTerraNotStarted/exportToTerraNotStarted.d.ts +1 -1
- package/lib/components/Export/components/ExportToTerra/components/ExportToTerraReady/exportToTerraReady.d.ts +1 -1
- package/lib/components/Export/components/ExportToTerra/components/ExportToTerraReady/exportToTerraReady.js +2 -2
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/components/AcceptTerraTOS/acceptTerraTOS.js +1 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.js +2 -2
- package/lib/components/Export/components/ExportToTerra/exportToTerra.d.ts +1 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/components/FileManifestDownload/fileManifestDownload.js +1 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadNotStarted/manifestDownloadNotStarted.d.ts +1 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadReady/manifestDownloadReady.d.ts +1 -1
- package/lib/components/Export/components/ManifestDownload/manifestDownload.d.ts +1 -1
- package/lib/components/Filter/components/VariableSizeListItem/variableSizeListItem.d.ts +1 -1
- package/lib/components/Filter/components/adapters/tanstack/ColumnFiltersAdapter/types.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.js +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/search.d.ts +1 -1
- package/lib/components/Login/components/Buttons/buttons.d.ts +1 -1
- package/lib/components/Login/components/Buttons/buttons.js +1 -1
- package/lib/components/Login/components/Buttons/types.d.ts +5 -5
- package/lib/components/Login/hooks/useUserLogin/types.d.ts +1 -1
- package/lib/components/Login/hooks/useUserLogin/useUserLogin.js +1 -1
- package/lib/components/Login/login.d.ts +1 -1
- package/lib/components/Login/login.js +1 -1
- package/lib/components/Login/types.d.ts +3 -4
- package/lib/components/MarkdownRenderer/components/Anchor/anchor.d.ts +1 -1
- package/lib/components/MarkdownRenderer/components/Table/table.d.ts +1 -1
- package/lib/components/MarkdownRenderer/markdownRenderer.js +2 -2
- package/lib/components/MarkdownRenderer/types.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.d.ts +1 -1
- package/lib/components/common/Button/components/CallToActionButton/callToActionButton.d.ts +1 -1
- package/lib/components/common/Chip/components/Beta/beta.styles.js +1 -1
- package/lib/components/common/IconBadge/iconBadge.d.ts +1 -1
- package/lib/components/common/IconButton/iconButton.d.ts +1 -1
- package/lib/components/common/Input/input.d.ts +1 -1
- package/lib/components/common/KeyValuePairs/keyValuePairs.d.ts +1 -1
- package/lib/components/common/Progress/components/CircularProgress/circularProgress.d.ts +1 -1
- package/lib/components/common/Stack/components/Divider/divider.d.ts +1 -1
- package/lib/components/common/StatusIcon/statusIcon.d.ts +1 -1
- package/lib/config/entities.d.ts +4 -4
- package/lib/google/config.d.ts +7 -0
- package/lib/google/config.js +14 -0
- package/lib/google/constants.d.ts +16 -0
- package/lib/google/constants.js +24 -0
- package/lib/google/hooks/useGoogleSignInService.d.ts +8 -0
- package/lib/{providers/googleSignInAuthentication → google}/hooks/useGoogleSignInService.js +7 -2
- package/lib/{hooks/authentication/token → google/hooks}/useTokenReducer.d.ts +2 -1
- package/lib/{hooks/authentication/token → google/hooks}/useTokenReducer.js +3 -2
- package/lib/google/provider.d.ts +11 -0
- package/lib/{providers/googleSignInAuthentication → google}/provider.js +19 -11
- package/lib/google/service.d.ts +18 -0
- package/lib/{providers/googleSignInAuthentication/service → google}/service.js +20 -9
- package/lib/google/session-controller.d.ts +11 -0
- package/lib/{components/Authentication/components/SessionController/components/GoogleSessionController/SessionController.js → google/session-controller.js} +14 -6
- package/lib/google/types.d.ts +58 -0
- package/lib/{providers/authentication/authentication/utils.d.ts → google/utils/auth.d.ts} +6 -0
- package/lib/{providers/authentication/authentication/utils.js → google/utils/auth.js} +10 -0
- package/lib/{providers/googleSignInAuthentication/profile/utils.d.ts → google/utils/profile.d.ts} +2 -2
- package/lib/{providers/googleSignInAuthentication/profile/utils.js → google/utils/profile.js} +1 -1
- package/lib/hooks/authentication/profile/types.d.ts +1 -1
- package/lib/hooks/authentication/profile/useProfile.js +3 -3
- package/lib/hooks/authentication/providers/types.d.ts +1 -1
- package/lib/hooks/authentication/session/useSessionActive.d.ts +2 -2
- package/lib/hooks/authentication/session/useSessionActive.js +2 -2
- package/lib/hooks/authentication/terra/useAuthenticationForm.js +1 -1
- package/lib/hooks/authentication/terra/useAuthenticationNIHExpiry.js +2 -2
- package/lib/hooks/authentication/token/types.d.ts +1 -1
- package/lib/hooks/authentication/token/useToken.js +1 -1
- package/lib/hooks/useEntityList.js +10 -0
- package/lib/{components/Authentication/components/SessionController/components/NextSessionController → nextauth}/constants.d.ts +8 -2
- package/lib/{components/Authentication/components/SessionController/components/NextSessionController → nextauth}/constants.js +8 -2
- package/lib/nextauth/hooks/useNextAuthService.d.ts +6 -0
- package/lib/{providers/nextAuthAuthentication → nextauth}/hooks/useNextAuthService.js +7 -3
- package/lib/nextauth/provider.d.ts +12 -0
- package/lib/{providers/nextAuthAuthentication → nextauth}/provider.js +16 -7
- package/lib/nextauth/service.d.ts +20 -0
- package/lib/{providers/nextAuthAuthentication/service → nextauth}/service.js +14 -0
- package/lib/nextauth/session-controller.d.ts +10 -0
- package/lib/{components/Authentication/components/SessionController/components/NextSessionController/SessionController.js → nextauth/session-controller.js} +11 -4
- package/lib/{providers/nextAuthAuthentication → nextauth}/types.d.ts +9 -0
- package/lib/{components/Authentication/components/SessionController/components/NextSessionController → nextauth}/utils.d.ts +2 -2
- package/lib/{components/Authentication/components/SessionController/components/NextSessionController → nextauth}/utils.js +2 -2
- package/lib/providers/exploreState.js +1 -10
- package/lib/providers/loginGuard/provider.js +1 -1
- package/lib/terra/constants.d.ts +28 -0
- package/lib/{providers/authentication/terra/hooks/common → terra}/constants.js +16 -1
- package/lib/terra/context.d.ts +5 -0
- package/lib/{providers/authentication/terra → terra}/context.js +4 -1
- package/lib/{providers/authentication/terra → terra}/hooks/useFetchProfiles.d.ts +12 -4
- package/lib/{providers/authentication/terra → terra}/hooks/useFetchProfiles.js +9 -4
- package/lib/{providers/authentication/terra → terra}/hooks/useFetchTerraNIHProfile.d.ts +2 -6
- package/lib/{providers/authentication/terra → terra}/hooks/useFetchTerraNIHProfile.js +4 -5
- package/lib/terra/hooks/useFetchTerraProfile.d.ts +10 -0
- package/lib/{providers/authentication/terra → terra}/hooks/useFetchTerraProfile.js +4 -5
- package/lib/{providers/authentication/terra → terra}/hooks/useFetchTerraTermsOfService.d.ts +2 -7
- package/lib/{providers/authentication/terra → terra}/hooks/useFetchTerraTermsOfService.js +4 -5
- package/lib/{providers/authentication/terra/hook.d.ts → terra/hooks/useTerraProfile.d.ts} +1 -1
- package/lib/{providers/authentication/terra/hook.js → terra/hooks/useTerraProfile.js} +1 -1
- package/lib/terra/provider.d.ts +10 -0
- package/lib/{providers/authentication/terra → terra}/provider.js +13 -6
- package/lib/terra/types/common.d.ts +50 -0
- package/lib/terra/types/common.js +19 -0
- package/lib/terra/types/context.d.ts +12 -0
- package/lib/terra/types/terra-nih.d.ts +8 -0
- package/lib/{providers/authentication/terra/hooks/useFetchTerraProfile.d.ts → terra/types/terra-profile.d.ts} +9 -8
- package/lib/terra/types/terra-tos.d.ts +9 -0
- package/lib/terra/types/terra-tos.js +1 -0
- package/lib/terra/utils.d.ts +47 -0
- package/lib/{providers/authentication/terra → terra}/utils.js +45 -2
- package/lib/utils/mdx/plugins/rehypeSlug.d.ts +1 -1
- package/lib/views/ExploreView/entityList/filters/components/ToggleButtonGroup/toggleButtonGroup.js +2 -3
- package/lib/views/ExploreView/entityList/filters/components/ToggleButtonGroup/toggleButtonGroup.styles.js +1 -1
- package/lib/views/ExploreView/exploreView.js +2 -2
- package/lib/views/LoginView/loginView.d.ts +2 -2
- package/lib/views/ResearchView/assistant/components/Drawer/drawer.js +2 -2
- package/lib/views/ResearchView/assistant/components/Input/input.styles.js +1 -1
- package/lib/views/ResearchView/assistant/components/Input/stories/input.stories.js +1 -1
- package/lib/views/ResearchView/assistant/components/Messages/components/PromptMessage/components/Chips/chips.styles.js +1 -1
- package/lib/views/ResearchView/assistant/components/Messages/messages.js +1 -1
- package/lib/views/ResearchView/assistant/components/Messages/messages.styles.js +1 -1
- package/lib/views/ResearchView/assistant/components/Messages/stories/args.js +1 -1
- package/lib/views/ResearchView/assistant/components/Messages/stories/messages.stories.js +1 -1
- package/lib/views/ResearchView/assistant/components/ToggleButtonGroup/stories/toggleButtonGroup.stories.js +1 -1
- package/lib/views/ResearchView/assistant/components/ToggleButtonGroup/toggleButtonGroup.js +2 -2
- package/lib/views/ResearchView/assistant/stories/assistant.stories.js +1 -1
- package/lib/views/ResearchView/state/query/hooks/UseSubmit/hook.js +2 -2
- package/package.json +15 -1
- package/types/data-explorer-ui.d.ts +12 -12
- package/lib/components/Authentication/components/SessionController/components/GoogleSessionController/SessionController.d.ts +0 -3
- package/lib/components/Authentication/components/SessionController/components/GoogleSessionController/types.d.ts +0 -6
- package/lib/components/Authentication/components/SessionController/components/NextSessionController/SessionController.d.ts +0 -3
- package/lib/components/Authentication/components/SessionController/components/NextSessionController/types.d.ts +0 -4
- package/lib/hooks/authentication/auth/useAuthReducer.d.ts +0 -2
- package/lib/hooks/authentication/auth/useAuthReducer.js +0 -8
- package/lib/hooks/authentication/authentication/useAuthenticationReducer.d.ts +0 -2
- package/lib/hooks/authentication/authentication/useAuthenticationReducer.js +0 -8
- package/lib/hooks/authentication/credentials/useCredentialsReducer.d.ts +0 -2
- package/lib/providers/authentication/auth/actions.d.ts +0 -8
- package/lib/providers/authentication/auth/actions.js +0 -12
- package/lib/providers/authentication/auth/constants.d.ts +0 -2
- package/lib/providers/authentication/authentication/actions.d.ts +0 -8
- package/lib/providers/authentication/authentication/actions.js +0 -12
- package/lib/providers/authentication/authentication/constants.d.ts +0 -2
- package/lib/providers/authentication/authentication/context.d.ts +0 -2
- package/lib/providers/authentication/common/types.d.ts +0 -1
- package/lib/providers/authentication/credentials/actions.d.ts +0 -8
- package/lib/providers/authentication/credentials/actions.js +0 -12
- package/lib/providers/authentication/credentials/constants.d.ts +0 -2
- package/lib/providers/authentication/credentials/context.d.ts +0 -2
- package/lib/providers/authentication/credentials/dispatch.d.ts +0 -12
- package/lib/providers/authentication/terra/context.d.ts +0 -2
- package/lib/providers/authentication/terra/hooks/common/constants.d.ts +0 -6
- package/lib/providers/authentication/terra/hooks/common/entities.d.ts +0 -21
- package/lib/providers/authentication/terra/hooks/common/entities.js +0 -7
- package/lib/providers/authentication/terra/hooks/common/utils.d.ts +0 -15
- package/lib/providers/authentication/terra/hooks/common/utils.js +0 -25
- package/lib/providers/authentication/terra/hooks/utils.d.ts +0 -16
- package/lib/providers/authentication/terra/hooks/utils.js +0 -19
- package/lib/providers/authentication/terra/provider.d.ts +0 -3
- package/lib/providers/authentication/terra/types.d.ts +0 -20
- package/lib/providers/authentication/terra/types.js +0 -6
- package/lib/providers/authentication/terra/utils.d.ts +0 -19
- package/lib/providers/authentication/token/constants.d.ts +0 -2
- package/lib/providers/googleSignInAuthentication/common/types.d.ts +0 -17
- package/lib/providers/googleSignInAuthentication/constants.d.ts +0 -4
- package/lib/providers/googleSignInAuthentication/constants.js +0 -12
- package/lib/providers/googleSignInAuthentication/hooks/useGoogleSignInService.d.ts +0 -3
- package/lib/providers/googleSignInAuthentication/profile/types.d.ts +0 -14
- package/lib/providers/googleSignInAuthentication/provider.d.ts +0 -3
- package/lib/providers/googleSignInAuthentication/service/constants.d.ts +0 -4
- package/lib/providers/googleSignInAuthentication/service/constants.js +0 -9
- package/lib/providers/googleSignInAuthentication/service/service.d.ts +0 -6
- package/lib/providers/googleSignInAuthentication/types.d.ts +0 -6
- package/lib/providers/nextAuthAuthentication/hooks/useNextAuthService.d.ts +0 -2
- package/lib/providers/nextAuthAuthentication/provider.d.ts +0 -3
- package/lib/providers/nextAuthAuthentication/service/service.d.ts +0 -6
- /package/lib/{hooks/authentication/session → auth/hooks}/useSessionIdleTimer.d.ts +0 -0
- /package/lib/{hooks/authentication/session → auth/hooks}/useSessionIdleTimer.js +0 -0
- /package/lib/{components/Authentication/components/SessionController/components/GoogleSessionController/types.js → auth/types/common.js} +0 -0
- /package/lib/{components/Authentication/components/SessionController/components/NextSessionController/types.js → auth/types/loginProvider.js} +0 -0
- /package/lib/{providers/authentication/common/utils.d.ts → auth/utils/initializer.d.ts} +0 -0
- /package/lib/{providers/authentication/common/utils.js → auth/utils/initializer.js} +0 -0
- /package/lib/{providers/authentication/common → google}/types.js +0 -0
- /package/lib/{providers/googleSignInAuthentication/common → nextauth}/types.js +0 -0
- /package/lib/{providers/googleSignInAuthentication/profile/types.js → terra/types/context.js} +0 -0
- /package/lib/{providers/googleSignInAuthentication/types.js → terra/types/terra-nih.js} +0 -0
- /package/lib/{providers/nextAuthAuthentication/types.js → terra/types/terra-profile.js} +0 -0
package/lib/{providers/authentication/authentication/types.d.ts → auth/types/authentication.d.ts}
RENAMED
|
@@ -1,46 +1,88 @@
|
|
|
1
1
|
import { Dispatch } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Authentication status enum.
|
|
4
|
+
*/
|
|
2
5
|
export declare enum AUTHENTICATION_STATUS {
|
|
3
6
|
PENDING = "PENDING",
|
|
4
7
|
SETTLED = "SETTLED"
|
|
5
8
|
}
|
|
6
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Authentication action type - union of all possible authentication actions.
|
|
11
|
+
*/
|
|
12
|
+
export type AuthenticationAction = RequestAuthenticationAction | AuthenticationResetStateAction | UpdateAuthenticationAction;
|
|
13
|
+
/**
|
|
14
|
+
* Authentication action kinds.
|
|
15
|
+
*/
|
|
7
16
|
export declare enum AuthenticationActionKind {
|
|
8
17
|
RequestAuthentication = "REQUEST_AUTHENTICATION",
|
|
9
18
|
ResetState = "RESET_STATE",
|
|
10
19
|
UpdateAuthentication = "UPDATE_AUTHENTICATION"
|
|
11
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Authentication context properties.
|
|
23
|
+
*/
|
|
12
24
|
export interface AuthenticationContextProps {
|
|
13
25
|
authenticationDispatch: Dispatch<AuthenticationAction> | null;
|
|
14
26
|
authenticationState: AuthenticationState;
|
|
15
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Authentication state.
|
|
30
|
+
*/
|
|
16
31
|
export interface AuthenticationState {
|
|
17
32
|
initialState?: AuthenticationState;
|
|
18
33
|
profile: Profile<UserProfile>;
|
|
19
34
|
status: AUTHENTICATION_STATUS;
|
|
20
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Base profile interface.
|
|
38
|
+
*/
|
|
21
39
|
export interface BaseProfile {
|
|
22
40
|
id?: string;
|
|
23
41
|
name: string;
|
|
24
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Profile type - can be undefined.
|
|
45
|
+
*/
|
|
25
46
|
export type Profile<P extends BaseProfile> = P | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Request authentication action.
|
|
49
|
+
*/
|
|
26
50
|
export type RequestAuthenticationAction = {
|
|
27
51
|
payload: RequestAuthenticationPayload;
|
|
28
52
|
type: AuthenticationActionKind.RequestAuthentication;
|
|
29
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Request authentication payload.
|
|
56
|
+
*/
|
|
30
57
|
export type RequestAuthenticationPayload = undefined;
|
|
31
|
-
|
|
32
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Authentication reset state action.
|
|
60
|
+
*/
|
|
61
|
+
export type AuthenticationResetStateAction = {
|
|
62
|
+
payload: AuthenticationResetStatePayload;
|
|
33
63
|
type: AuthenticationActionKind.ResetState;
|
|
34
64
|
};
|
|
35
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Authentication reset state payload.
|
|
67
|
+
*/
|
|
68
|
+
export type AuthenticationResetStatePayload = undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Update authentication action.
|
|
71
|
+
*/
|
|
36
72
|
export type UpdateAuthenticationAction = {
|
|
37
73
|
payload: UpdateAuthenticationPayload;
|
|
38
74
|
type: AuthenticationActionKind.UpdateAuthentication;
|
|
39
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Update authentication payload.
|
|
78
|
+
*/
|
|
40
79
|
export interface UpdateAuthenticationPayload {
|
|
41
80
|
profile?: Profile<UserProfile>;
|
|
42
81
|
status?: AUTHENTICATION_STATUS;
|
|
43
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* User profile interface.
|
|
85
|
+
*/
|
|
44
86
|
export interface UserProfile extends BaseProfile {
|
|
45
87
|
email: string;
|
|
46
88
|
image?: string;
|
package/lib/{providers/authentication/authentication/types.js → auth/types/authentication.js}
RENAMED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication status enum.
|
|
3
|
+
*/
|
|
1
4
|
export var AUTHENTICATION_STATUS;
|
|
2
5
|
(function (AUTHENTICATION_STATUS) {
|
|
3
6
|
AUTHENTICATION_STATUS["PENDING"] = "PENDING";
|
|
4
7
|
AUTHENTICATION_STATUS["SETTLED"] = "SETTLED";
|
|
5
8
|
})(AUTHENTICATION_STATUS || (AUTHENTICATION_STATUS = {}));
|
|
9
|
+
/**
|
|
10
|
+
* Authentication action kinds.
|
|
11
|
+
*/
|
|
6
12
|
export var AuthenticationActionKind;
|
|
7
13
|
(function (AuthenticationActionKind) {
|
|
8
14
|
AuthenticationActionKind["RequestAuthentication"] = "REQUEST_AUTHENTICATION";
|
|
@@ -1,24 +1,51 @@
|
|
|
1
1
|
import { Dispatch } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Credentials type.
|
|
4
|
+
*/
|
|
2
5
|
export type Credentials<C = string | undefined> = C;
|
|
3
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Credentials action type - union of all possible credentials actions.
|
|
8
|
+
*/
|
|
9
|
+
export type CredentialsAction = CredentialsResetStateAction | UpdateCredentialsAction;
|
|
10
|
+
/**
|
|
11
|
+
* Credentials action kinds.
|
|
12
|
+
*/
|
|
4
13
|
export declare enum CredentialsActionKind {
|
|
5
14
|
ResetState = "RESET_STATE",
|
|
6
15
|
UpdateCredentials = "STORE_CREDENTIALS"
|
|
7
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Credentials context properties.
|
|
19
|
+
*/
|
|
8
20
|
export interface CredentialsContextProps {
|
|
9
21
|
credentialsDispatch: Dispatch<CredentialsAction> | null;
|
|
10
22
|
credentialsState: CredentialsState;
|
|
11
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Credentials state.
|
|
26
|
+
*/
|
|
12
27
|
export interface CredentialsState {
|
|
13
28
|
credentials: Credentials;
|
|
14
29
|
}
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Credentials reset state action.
|
|
32
|
+
*/
|
|
33
|
+
export type CredentialsResetStateAction = {
|
|
34
|
+
payload: CredentialsResetStatePayload;
|
|
17
35
|
type: CredentialsActionKind.ResetState;
|
|
18
36
|
};
|
|
19
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Credentials reset state payload.
|
|
39
|
+
*/
|
|
40
|
+
export type CredentialsResetStatePayload = undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Update credentials action.
|
|
43
|
+
*/
|
|
20
44
|
export type UpdateCredentialsAction = {
|
|
21
45
|
payload: UpdateCredentialsPayload;
|
|
22
46
|
type: CredentialsActionKind.UpdateCredentials;
|
|
23
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* Update credentials payload.
|
|
50
|
+
*/
|
|
24
51
|
export type UpdateCredentialsPayload = Credentials;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ProviderId } from "./common";
|
|
3
|
+
/**
|
|
4
|
+
* Login provider interface - provider-agnostic representation of an auth provider.
|
|
5
|
+
* This is used by Login components instead of NextAuth's ClientSafeProvider.
|
|
6
|
+
*/
|
|
7
|
+
export interface LoginProvider {
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
id: ProviderId;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
@@ -1,27 +1,51 @@
|
|
|
1
1
|
import { Dispatch } from "react";
|
|
2
|
-
import { ProviderId } from "
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ProviderId } from "./common";
|
|
3
|
+
/**
|
|
4
|
+
* Token reset state action.
|
|
5
|
+
*/
|
|
6
|
+
export interface TokenResetStateAction {
|
|
7
|
+
payload: TokenResetStatePayload;
|
|
5
8
|
type: TokenActionKind.ResetState;
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Token reset state payload.
|
|
12
|
+
*/
|
|
13
|
+
export type TokenResetStatePayload = undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Token action type - union of all possible token actions.
|
|
16
|
+
*/
|
|
17
|
+
export type TokenAction = TokenResetStateAction | UpdateTokenAction;
|
|
18
|
+
/**
|
|
19
|
+
* Token action kinds.
|
|
20
|
+
*/
|
|
9
21
|
export declare enum TokenActionKind {
|
|
10
22
|
ResetState = "RESET_TOKEN",
|
|
11
23
|
UpdateToken = "UPDATE_TOKEN"
|
|
12
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Token context properties.
|
|
27
|
+
*/
|
|
13
28
|
export interface TokenContextProps {
|
|
14
29
|
tokenDispatch: Dispatch<TokenAction> | null;
|
|
15
30
|
tokenState: TokenState;
|
|
16
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Token state.
|
|
34
|
+
*/
|
|
17
35
|
export interface TokenState {
|
|
18
36
|
providerId: ProviderId | undefined;
|
|
19
37
|
token: string | undefined;
|
|
20
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Update token action.
|
|
41
|
+
*/
|
|
21
42
|
export interface UpdateTokenAction {
|
|
22
43
|
payload: UpdateTokenPayload;
|
|
23
44
|
type: TokenActionKind.UpdateToken;
|
|
24
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Update token payload.
|
|
48
|
+
*/
|
|
25
49
|
export interface UpdateTokenPayload {
|
|
26
50
|
providerId: ProviderId | undefined;
|
|
27
51
|
token: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { createElement } from "react";
|
|
3
|
+
import { useAuth } from "../../auth/hooks/useAuth";
|
|
3
4
|
import { useConfig } from "../../hooks/useConfig";
|
|
4
5
|
import { useExploreState } from "../../hooks/useExploreState";
|
|
5
6
|
import { useFileManifestState } from "../../hooks/useFileManifestState";
|
|
6
7
|
import { useSystemStatus } from "../../hooks/useSystemStatus";
|
|
7
|
-
import { useAuth } from "../../providers/authentication/auth/hook";
|
|
8
8
|
/**
|
|
9
9
|
* ComponentCreator uses React API to create components based on the component configs, instead of using JSX.
|
|
10
10
|
* That way we can continue to create UI components without having to worry about if they should be able to transform model data into props.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dispatch, JSX, SetStateAction } from "react";
|
|
2
2
|
import { ExecutionEnvironment, FormFacet } from "../../../../common/entities";
|
|
3
3
|
import { OnRequestManifestFn } from "../../../ExportForm/exportForm";
|
|
4
4
|
export interface DownloadCurlCommandFormProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dispatch, ElementType, JSX, SetStateAction } from "react";
|
|
2
2
|
import { FileManifestState } from "../../../../../../providers/fileManifestState";
|
|
3
3
|
import { ExecutionEnvironment, FormFacet } from "../../../../common/entities";
|
|
4
4
|
export interface DownloadCurlCommandNotStartedProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, JSX } from "react";
|
|
2
2
|
import { Filters } from "../../../../common/entities";
|
|
3
3
|
import { FileManifestState } from "../../../../providers/fileManifestState";
|
|
4
4
|
import { FormFacet, ManifestDownloadFormat } from "../../common/entities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dispatch, JSX, SetStateAction } from "react";
|
|
2
2
|
import { ExecutionEnvironment } from "../../../../common/entities";
|
|
3
3
|
export interface ExportExecutionEnvironmentFormProps {
|
|
4
4
|
executionEnvironment: ExecutionEnvironment;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dispatch, JSX, SetStateAction } from "react";
|
|
2
2
|
import { FileManifestFormatState } from "../../../../../../hooks/useFileManifest/useFileManifestFormat";
|
|
3
3
|
import { FormFacet, ManifestDownloadFormat } from "../../../../common/entities";
|
|
4
4
|
import { OnRequestManifestFn } from "../../../ExportForm/exportForm";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, JSX } from "react";
|
|
2
2
|
import { FileManifestFormatState } from "../../../../../../hooks/useFileManifest/useFileManifestFormat";
|
|
3
3
|
import { FileManifestState } from "../../../../../../providers/fileManifestState";
|
|
4
4
|
import { FormFacet, ManifestDownloadFormat } from "../../../../common/entities";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Link } from "@mui/material";
|
|
3
|
+
import { BUTTON_PROPS } from "../../../../../../styles/common/mui/button";
|
|
2
4
|
import { FluidPaper } from "../../../../../common/Paper/paper.styles";
|
|
3
5
|
import { ANCHOR_TARGET, REL_ATTRIBUTE, } from "../../../../../Links/common/entities";
|
|
4
6
|
import { Section, SectionActions, SectionContent, } from "../../../../export.styles";
|
|
5
|
-
import { BUTTON_PROPS } from "../../../../../../styles/common/mui/button";
|
|
6
|
-
import { Button, Link } from "@mui/material";
|
|
7
7
|
export const ExportToTerraReady = ({ ExportToTerraSuccess, exportURL, }) => {
|
|
8
8
|
return (_jsx(FluidPaper, { children: _jsxs(Section, { children: [_jsx(SectionContent, { children: _jsx(ExportToTerraSuccess, {}) }), _jsx(SectionActions, { children: _jsx(Button, { color: BUTTON_PROPS.COLOR.PRIMARY, component: Link, href: exportURL, rel: REL_ATTRIBUTE.NO_OPENER_NO_REFERRER, target: ANCHOR_TARGET.BLANK, variant: BUTTON_PROPS.VARIANT.CONTAINED, children: "Open Terra" }) })] }) }));
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useConfig } from "../../../../../../../../../../hooks/useConfig";
|
|
3
|
-
import { useTerraProfile } from "../../../../../../../../../../
|
|
3
|
+
import { useTerraProfile } from "../../../../../../../../../../terra/hooks/useTerraProfile";
|
|
4
4
|
import { ButtonPrimary } from "../../../../../../../../../common/Button/components/ButtonPrimary/buttonPrimary";
|
|
5
5
|
import { ANCHOR_TARGET, REL_ATTRIBUTE, } from "../../../../../../../../../Links/common/entities";
|
|
6
6
|
import { FormStep } from "../../formStep";
|
package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from "@mui/material";
|
|
3
|
+
import { useAuth } from "../../../../../../auth/hooks/useAuth";
|
|
4
|
+
import { AUTH_STATUS } from "../../../../../../auth/types/auth";
|
|
3
5
|
import { ONBOARDING_STEP, useAuthenticationForm, } from "../../../../../../hooks/authentication/terra/useAuthenticationForm";
|
|
4
|
-
import { useAuth } from "../../../../../../providers/authentication/auth/hook";
|
|
5
|
-
import { AUTH_STATUS } from "../../../../../../providers/authentication/auth/types";
|
|
6
6
|
import { TYPOGRAPHY_PROPS } from "../../../../../../styles/common/mui/typography";
|
|
7
7
|
import { FluidPaper, GridPaper, } from "../../../../../common/Paper/paper.styles";
|
|
8
8
|
import { SectionTitle } from "../../../../../common/Section/components/SectionTitle/sectionTitle";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, JSX } from "react";
|
|
2
2
|
import { Filters } from "../../../../common/entities";
|
|
3
3
|
import { FileManifestState } from "../../../../providers/fileManifestState";
|
|
4
4
|
import { FormFacet, ManifestDownloadFormat } from "../../common/entities";
|
|
@@ -4,13 +4,13 @@ import copy from "copy-to-clipboard";
|
|
|
4
4
|
import { useDownloadStatus } from "../../../../../../../../hooks/useDownloadStatus";
|
|
5
5
|
import { useFileManifestDownload } from "../../../../../../../../hooks/useFileManifest/useFileManifestDownload";
|
|
6
6
|
import { useLoginGuard } from "../../../../../../../../providers/loginGuard/hook";
|
|
7
|
-
import { trackDatasetFileManifestRequested } from "../../../../../../common/tracking";
|
|
8
7
|
import { BUTTON_PROPS } from "../../../../../../../common/Button/constants";
|
|
9
8
|
import { ButtonGroup } from "../../../../../../../common/ButtonGroup/buttonGroup";
|
|
10
9
|
import { ContentCopyIconSmall, DownloadIconSmall, } from "../../../../../../../common/CustomIcon/common/constants";
|
|
11
10
|
import { FluidPaper, GridPaper, } from "../../../../../../../common/Paper/paper.styles";
|
|
12
11
|
import { Loading, LOADING_PANEL_STYLE, } from "../../../../../../../Loading/loading";
|
|
13
12
|
import { GridTable } from "../../../../../../../Table/common/gridTable.styles";
|
|
13
|
+
import { trackDatasetFileManifestRequested } from "../../../../../../common/tracking";
|
|
14
14
|
import { TOOLTIP_PROPS } from "../../constants";
|
|
15
15
|
import { SectionTitle, TableContainer, } from "../../manifestDownloadEntity.styles";
|
|
16
16
|
export const FileManifestDownload = ({ filters, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, JSX } from "react";
|
|
2
2
|
import { FileManifestState } from "../../../../../../providers/fileManifestState";
|
|
3
3
|
import { FormFacet } from "../../../../common/entities";
|
|
4
4
|
export interface ManifestDownloadNotStartedProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, JSX } from "react";
|
|
2
2
|
import { Filters } from "../../../../common/entities";
|
|
3
3
|
import { FileManifestState } from "../../../../providers/fileManifestState";
|
|
4
4
|
import { FormFacet, ManifestDownloadFormat } from "../../common/entities";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, JSX } from "react";
|
|
2
2
|
import { CategoryKey } from "../../../../common/entities";
|
|
3
3
|
import { OnFilterFn } from "../../../../hooks/useCategoryFilter";
|
|
4
4
|
import { FilterMenuSearchMatch } from "../../common/entities";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RowData, Table, TableMeta as TanStackTableMeta } from "@tanstack/react-table";
|
|
2
|
+
import { JSX } from "react";
|
|
2
3
|
import { FILTER_SORT } from "../../../../../../common/filters/sort/config/types";
|
|
3
4
|
import { CategoryGroup } from "../../../../../../config/entities";
|
|
4
5
|
import { SurfaceProps } from "../../../surfaces/types";
|
|
5
|
-
import { JSX } from "react";
|
|
6
6
|
export interface ColumnFiltersAdapterProps<T extends RowData> {
|
|
7
7
|
renderSurface: (props: SurfaceProps) => JSX.Element | null;
|
|
8
8
|
table: Table<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps as MButtonProps, IconButtonProps as MIconButtonProps } from "@mui/material";
|
|
2
|
-
import {
|
|
2
|
+
import { ElementType, JSX } from "react";
|
|
3
3
|
export interface AuthenticationProps {
|
|
4
4
|
authenticationEnabled?: boolean;
|
|
5
5
|
Button: ElementType<MButtonProps> | ElementType<MIconButtonProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
|
-
import { UserProfile } from "../../../../../../../../../../../../
|
|
2
|
+
import { UserProfile } from "../../../../../../../../../../../../auth/types/authentication";
|
|
3
3
|
export interface AuthenticationMenuProps {
|
|
4
4
|
profile: UserProfile;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MenuItem } from "@mui/material";
|
|
3
3
|
import { Fragment } from "react";
|
|
4
|
-
import { useAuth } from "../../../../../../../../../../../../
|
|
4
|
+
import { useAuth } from "../../../../../../../../../../../../auth/hooks/useAuth";
|
|
5
5
|
import { useMenu } from "../../../../../../../../../../../common/Menu/hooks/useMenu";
|
|
6
6
|
import { AuthenticationMenu as Menu, StyledAvatar, UserIcon, UserNames, UserSummary, } from "./authenticationMenu.styles";
|
|
7
7
|
import { MENU_PROPS } from "./constants";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps as MButtonProps, IconButtonProps as MIconButtonProps } from "@mui/material";
|
|
2
|
-
import {
|
|
2
|
+
import { ElementType, JSX } from "react";
|
|
3
3
|
export interface SearchProps {
|
|
4
4
|
Button: ElementType<MButtonProps> | ElementType<MIconButtonProps>;
|
|
5
5
|
closeMenu: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
2
|
import { Props } from "./types";
|
|
3
|
-
export declare const Buttons:
|
|
3
|
+
export declare const Buttons: ({ className, handleLogin, providers, ...props }: Props) => JSX.Element[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../Button/button";
|
|
3
3
|
export const Buttons = ({ className, handleLogin, providers = [], ...props /* Mui ButtonProps */ }) => {
|
|
4
|
-
return providers?.map((provider) => (_jsx(Button, { className: className, endIcon:
|
|
4
|
+
return providers?.map((provider) => (_jsx(Button, { className: className, endIcon: provider.icon, onClick: () => handleLogin(provider.id), ...props, children: provider.name }, provider.id)));
|
|
5
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonProps } from "@mui/material";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ProviderId } from "../../../../auth/types/common";
|
|
3
|
+
import { LoginProvider } from "../../../../auth/types/loginProvider";
|
|
4
4
|
import { BaseComponentProps } from "../../../types";
|
|
5
|
-
export interface Props
|
|
6
|
-
handleLogin: (providerId:
|
|
7
|
-
providers?:
|
|
5
|
+
export interface Props extends BaseComponentProps, ButtonProps {
|
|
6
|
+
handleLogin: (providerId: ProviderId) => void;
|
|
7
|
+
providers?: LoginProvider[];
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProviderId } from "../../../../
|
|
1
|
+
import { ProviderId } from "../../../../auth/types/common";
|
|
2
2
|
import { UseUserConsent } from "../useUserConsent/types";
|
|
3
3
|
export interface UseUserLogin extends Omit<UseUserConsent, "handleError" | "state"> {
|
|
4
4
|
consentState: Pick<UseUserConsent["state"], "isDisabled" | "isError">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
-
import { useAuth } from "../../../../
|
|
2
|
+
import { useAuth } from "../../../../auth/hooks/useAuth";
|
|
3
3
|
import { useUserConsent } from "../useUserConsent/useUserConsent";
|
|
4
4
|
export const useUserLogin = () => {
|
|
5
5
|
const { service: { requestLogin } = {} } = useAuth();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
2
|
import { Props } from "./types";
|
|
3
|
-
export declare const Login:
|
|
3
|
+
export declare const Login: ({ providers, termsOfService, text, title, warning, }: Props) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox, Typography } from "@mui/material";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
|
-
import { useAuth } from "../../
|
|
4
|
+
import { useAuth } from "../../auth/hooks/useAuth";
|
|
5
5
|
import { TYPOGRAPHY_PROPS } from "../../styles/common/mui/typography";
|
|
6
6
|
import { CheckedIcon } from "../common/CustomIcon/components/CheckedIcon/checkedIcon";
|
|
7
7
|
import { UncheckedErrorIcon } from "../common/CustomIcon/components/UncheckedErrorIcon/uncheckedErrorIcon";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ClientSafeProvider } from "next-auth/react";
|
|
2
1
|
import { ReactNode } from "react";
|
|
3
|
-
import {
|
|
4
|
-
export interface Props
|
|
5
|
-
providers?:
|
|
2
|
+
import { LoginProvider } from "../../auth/types/loginProvider";
|
|
3
|
+
export interface Props {
|
|
4
|
+
providers?: LoginProvider[];
|
|
6
5
|
termsOfService?: ReactNode;
|
|
7
6
|
text?: ReactNode;
|
|
8
7
|
title: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnchorHTMLAttributes, ClassAttributes, JSX } from "react";
|
|
2
2
|
import { BaseComponentProps } from "../../../types";
|
|
3
3
|
/**
|
|
4
4
|
* rehype-sanitize's default schema allows only a limited set of attributes on <a> elements:
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BaseComponentProps } from "components/types";
|
|
2
|
-
import {
|
|
2
|
+
import { ClassAttributes, JSX, TableHTMLAttributes } from "react";
|
|
3
3
|
export declare const Table: (props: BaseComponentProps & ClassAttributes<HTMLTableElement> & TableHTMLAttributes<HTMLTableElement>) => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from "@mui/material";
|
|
3
|
-
import { useEffect, useMemo, useState,
|
|
3
|
+
import { isValidElement, useEffect, useMemo, useState, } from "react";
|
|
4
|
+
import * as production from "react/jsx-runtime";
|
|
4
5
|
import rehypeRaw from "rehype-raw";
|
|
5
6
|
import rehypeReact from "rehype-react";
|
|
6
|
-
import * as production from "react/jsx-runtime";
|
|
7
7
|
import rehypeSanitize from "rehype-sanitize";
|
|
8
8
|
import remarkGfm from "remark-gfm";
|
|
9
9
|
import remarkParse from "remark-parse";
|