@cccsaurora/howler-ui 2.14.0-dev.264 → 2.14.0-dev.266
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/api/action/execute.ts +3 -3
- package/api/action/index.ts +5 -5
- package/api/action/operations.ts +3 -3
- package/api/analytic/comments/index.ts +4 -4
- package/api/analytic/comments/react.ts +2 -2
- package/api/analytic/favourite.ts +2 -2
- package/api/analytic/index.ts +7 -7
- package/api/analytic/notebooks/index.ts +3 -3
- package/api/analytic/owner.ts +3 -3
- package/api/analytic/rules.ts +3 -3
- package/api/auth/apikey.ts +2 -2
- package/api/auth/index.ts +3 -3
- package/api/auth/login.ts +3 -3
- package/api/configs/index.ts +2 -2
- package/api/dossier/hit.ts +2 -2
- package/api/dossier/index.ts +2 -2
- package/api/help.ts +1 -1
- package/api/hit/assign.ts +3 -3
- package/api/hit/comments/index.ts +4 -4
- package/api/hit/comments/react.ts +2 -2
- package/api/hit/index.ts +7 -7
- package/api/hit/labels.ts +4 -4
- package/api/hit/overwrite.ts +3 -3
- package/api/hit/transition.ts +4 -4
- package/api/index.ts +18 -18
- package/api/notebook/environments.ts +2 -2
- package/api/notebook/index.ts +4 -4
- package/api/overview/index.ts +2 -2
- package/api/search/action.ts +4 -4
- package/api/search/analytic.ts +4 -4
- package/api/search/count/hit.ts +3 -3
- package/api/search/count/index.ts +3 -3
- package/api/search/dossier.ts +4 -4
- package/api/search/eql/hit.ts +4 -4
- package/api/search/facet/hit.ts +3 -3
- package/api/search/facet/index.ts +3 -3
- package/api/search/fields/hit.ts +3 -3
- package/api/search/fields/index.ts +4 -4
- package/api/search/fields/user.ts +4 -4
- package/api/search/grouped/hit.ts +4 -4
- package/api/search/grouped/index.ts +4 -4
- package/api/search/grouped/user.ts +4 -4
- package/api/search/histogram/hit.ts +3 -3
- package/api/search/histogram/index.ts +3 -3
- package/api/search/hit.ts +6 -6
- package/api/search/index.ts +14 -14
- package/api/search/overview.ts +4 -4
- package/api/search/sigma/hit.ts +4 -4
- package/api/search/template.ts +4 -4
- package/api/search/user.ts +4 -4
- package/api/search/view.ts +4 -4
- package/api/template/index.ts +2 -2
- package/api/user/avatar/index.ts +2 -2
- package/api/user/groups.ts +2 -2
- package/api/user/index.ts +5 -5
- package/api/user/whoami.ts +3 -3
- package/api/view/favourite.ts +2 -2
- package/api/view/index.ts +3 -3
- package/commons/components/app/AppConfigs.ts +2 -2
- package/commons/components/app/AppContexts.ts +5 -5
- package/commons/components/app/AppDefaults.ts +1 -1
- package/commons/components/app/AppNotificationService.ts +1 -1
- package/commons/components/app/AppProvider.tsx +14 -14
- package/commons/components/app/AppSearchService.ts +1 -1
- package/commons/components/app/AppSkeleton.tsx +4 -4
- package/commons/components/app/hooks/useApp.tsx +1 -1
- package/commons/components/app/hooks/useAppBanner.tsx +1 -1
- package/commons/components/app/hooks/useAppBar.tsx +1 -1
- package/commons/components/app/hooks/useAppBreadcrumbs.tsx +1 -1
- package/commons/components/app/hooks/useAppConfigs.tsx +2 -2
- package/commons/components/app/hooks/useAppLanguage.tsx +2 -2
- package/commons/components/app/hooks/useAppLayout.tsx +1 -1
- package/commons/components/app/hooks/useAppLeftNav.tsx +1 -1
- package/commons/components/app/hooks/useAppLogo.tsx +2 -2
- package/commons/components/app/hooks/useAppNotification.tsx +1 -1
- package/commons/components/app/hooks/useAppQuickSearch.tsx +1 -1
- package/commons/components/app/hooks/useAppSearchService.tsx +2 -2
- package/commons/components/app/hooks/useAppSitemap.tsx +3 -3
- package/commons/components/app/hooks/useAppSwitcher.tsx +1 -1
- package/commons/components/app/hooks/useAppTheme.tsx +1 -1
- package/commons/components/app/hooks/useAppUser.tsx +2 -2
- package/commons/components/app/providers/AppBarProvider.tsx +9 -9
- package/commons/components/app/providers/AppBreadcrumbsProvider.tsx +5 -5
- package/commons/components/app/providers/AppLayoutProvider.tsx +7 -7
- package/commons/components/app/providers/AppLeftNavProvider.tsx +5 -5
- package/commons/components/app/providers/AppNotificationProvider.tsx +1 -1
- package/commons/components/app/providers/AppQuickSearchProvider.tsx +6 -6
- package/commons/components/app/providers/AppSearchServiceProvider.tsx +3 -3
- package/commons/components/app/providers/AppSwitcherProvider.tsx +3 -3
- package/commons/components/app/providers/AppUserProvider.tsx +2 -2
- package/commons/components/breadcrumbs/BreadcrumbIcon.tsx +1 -1
- package/commons/components/breadcrumbs/BreadcrumbLastItem.tsx +2 -2
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.tsx +2 -2
- package/commons/components/breadcrumbs/BreadcrumbList.tsx +3 -3
- package/commons/components/breadcrumbs/Breadcrumbs.tsx +2 -2
- package/commons/components/display/AppAvatar.tsx +1 -1
- package/commons/components/display/AppListEmpty.tsx +1 -1
- package/commons/components/display/AppToc.tsx +3 -3
- package/commons/components/display/hooks/useAppColor.tsx +1 -1
- package/commons/components/leftnav/LeftNavDrawer.tsx +4 -4
- package/commons/components/leftnav/LeftNavGroup.tsx +3 -3
- package/commons/components/leftnav/LeftNavItem.tsx +2 -2
- package/commons/components/notification/Notification.tsx +4 -4
- package/commons/components/notification/elements/NotificationCloseButton.tsx +1 -1
- package/commons/components/notification/elements/NotificationContainer.tsx +5 -5
- package/commons/components/notification/elements/NotificationEndOfPage.tsx +1 -1
- package/commons/components/notification/elements/NotificationItems.tsx +2 -2
- package/commons/components/notification/elements/item/NotificationItem.tsx +7 -7
- package/commons/components/notification/elements/item/NotificationItemAuthor.tsx +1 -1
- package/commons/components/notification/elements/item/NotificationItemContent.tsx +1 -1
- package/commons/components/notification/elements/item/NotificationItemDate.tsx +1 -1
- package/commons/components/notification/elements/item/NotificationItemTitle.tsx +1 -1
- package/commons/components/pages/PageCenter.tsx +2 -2
- package/commons/components/pages/PageContent.tsx +1 -1
- package/commons/components/pages/PageFullScreen.tsx +3 -3
- package/commons/components/pages/PageFullWidth.tsx +1 -1
- package/commons/components/pages/PageHeader.tsx +1 -1
- package/commons/components/search/AppSearch.tsx +4 -4
- package/commons/components/search/AppSearchResult.tsx +4 -4
- package/commons/components/topnav/AppBar.tsx +9 -9
- package/commons/components/topnav/AppName.tsx +1 -1
- package/commons/components/topnav/AppSwitcher.tsx +1 -1
- package/commons/components/topnav/Notifications.tsx +2 -2
- package/commons/components/topnav/ThemeSelection.tsx +3 -3
- package/commons/components/topnav/ThemeSelectionIcon.tsx +2 -2
- package/commons/components/topnav/UserProfile.tsx +4 -4
- package/commons/components/utils/hooks/useLocalStorageItem.tsx +1 -1
- package/commons/components/utils/hooks/useThemeBuilder.tsx +2 -2
- package/components/app/App.tsx +57 -57
- package/components/app/AppContainer.tsx +1 -1
- package/components/app/drawers/ApiKeyDrawer.tsx +5 -5
- package/components/app/drawers/AssignUserDrawer.tsx +6 -6
- package/components/app/drawers/ViewGroupsDrawer.tsx +1 -1
- package/components/app/hooks/useMatchers.tsx +2 -2
- package/components/app/hooks/useTitle.tsx +1 -1
- package/components/app/providers/AnalyticProvider.tsx +5 -5
- package/components/app/providers/ApiConfigProvider.tsx +1 -1
- package/components/app/providers/AppDrawerProvider.tsx +1 -1
- package/components/app/providers/AvatarProvider.tsx +2 -2
- package/components/app/providers/CustomPluginProvider.tsx +1 -1
- package/components/app/providers/FavouritesProvider.tsx +3 -3
- package/components/app/providers/FieldProvider.tsx +3 -3
- package/components/app/providers/HitProvider.tsx +5 -5
- package/components/app/providers/HitSearchProvider.tsx +12 -12
- package/components/app/providers/LocalStorageProvider.tsx +2 -2
- package/components/app/providers/OverviewProvider.tsx +3 -3
- package/components/app/providers/ParameterProvider.tsx +1 -1
- package/components/app/providers/SocketProvider.tsx +5 -5
- package/components/app/providers/UserListProvider.tsx +3 -3
- package/components/app/providers/ViewProvider.tsx +7 -7
- package/components/elements/Comment.tsx +7 -7
- package/components/elements/EditRow.tsx +1 -1
- package/components/elements/PluginChip.tsx +1 -1
- package/components/elements/PluginTypography.tsx +1 -1
- package/components/elements/ThemedEditor.tsx +3 -3
- package/components/elements/UserList.tsx +1 -1
- package/components/elements/addons/layout/FlexPort.tsx +1 -1
- package/components/elements/addons/layout/FlexVertical.tsx +2 -2
- package/components/elements/addons/layout/vsbox/VSBox.tsx +1 -1
- package/components/elements/addons/lists/TuiList.tsx +1 -1
- package/components/elements/addons/lists/TuiListBase.tsx +2 -2
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.tsx +2 -2
- package/components/elements/addons/lists/table/TuiTable.tsx +1 -1
- package/components/elements/addons/lists/table/TuiTableBody.tsx +1 -1
- package/components/elements/addons/lists/table/TuiTableHead.tsx +1 -1
- package/components/elements/addons/search/phrase/Phrase.tsx +1 -1
- package/components/elements/display/ActionButton.tsx +4 -4
- package/components/elements/display/Classification.tsx +1 -1
- package/components/elements/display/HandlebarsMarkdown.tsx +2 -2
- package/components/elements/display/HowlerAvatar.tsx +3 -3
- package/components/elements/display/HowlerAvatarHeader.tsx +1 -1
- package/components/elements/display/ItemManager.tsx +7 -7
- package/components/elements/display/Markdown.tsx +1 -1
- package/components/elements/display/Modal.tsx +1 -1
- package/components/elements/display/UserPageWrapper.tsx +2 -2
- package/components/elements/display/features/DevelopmentBanner.tsx +2 -2
- package/components/elements/display/features/DevelopmentIcon.tsx +2 -2
- package/components/elements/display/handlebars/helpers.tsx +4 -4
- package/components/elements/display/icons/BundleButton.tsx +1 -1
- package/components/elements/display/icons/SocketBadge.tsx +2 -2
- package/components/elements/display/json/JSONViewer.tsx +7 -7
- package/components/elements/display/modals/ConfirmDeleteModal.tsx +1 -1
- package/components/elements/display/modals/ConfirmNotebookModal.tsx +1 -1
- package/components/elements/display/modals/CreateActionModal.tsx +3 -3
- package/components/elements/display/modals/RationaleModal.tsx +2 -2
- package/components/elements/hit/HitActions.tsx +13 -13
- package/components/elements/hit/HitBanner.tsx +6 -6
- package/components/elements/hit/HitBannerTooltip.tsx +1 -1
- package/components/elements/hit/HitCard.tsx +1 -1
- package/components/elements/hit/HitComments.tsx +11 -11
- package/components/elements/hit/HitDetails.tsx +2 -2
- package/components/elements/hit/HitLabels.tsx +6 -6
- package/components/elements/hit/HitNotebooks.tsx +8 -8
- package/components/elements/hit/HitOutline.tsx +4 -4
- package/components/elements/hit/HitOverview.tsx +4 -4
- package/components/elements/hit/HitQuickSearch.tsx +4 -4
- package/components/elements/hit/HitRelated.tsx +1 -1
- package/components/elements/hit/HitSummary.tsx +13 -13
- package/components/elements/hit/HitWorklog.tsx +7 -7
- package/components/elements/hit/actions/DropdownActions.tsx +1 -1
- package/components/elements/hit/aggregate/HitGraph.tsx +8 -8
- package/components/elements/hit/elements/Assigned.tsx +4 -4
- package/components/elements/hit/elements/EscalationChip.tsx +2 -2
- package/components/elements/hit/elements/HitTimestamp.tsx +3 -3
- package/components/elements/hit/outlines/DefaultOutline.tsx +4 -4
- package/components/elements/hit/outlines/al/AssemblyLineRules.tsx +2 -2
- package/components/elements/hit/related/PivotLink.tsx +3 -3
- package/components/elements/hit/related/RelatedIcon.tsx +2 -2
- package/components/elements/hit/related/RelatedLink.tsx +1 -1
- package/components/elements/view/ViewTitle.tsx +1 -1
- package/components/hooks/useHitActions.tsx +12 -12
- package/components/hooks/useHitSelection.tsx +7 -7
- package/components/hooks/useMyApi.tsx +2 -2
- package/components/hooks/useMyLocalStorage.ts +5 -5
- package/components/hooks/useMyPreferences.tsx +6 -6
- package/components/hooks/useMySearch.tsx +7 -7
- package/components/hooks/useMySitemap.tsx +2 -2
- package/components/hooks/useMyTheme.tsx +1 -1
- package/components/hooks/useMyUser.tsx +2 -2
- package/components/hooks/useMyUserFunctions.tsx +8 -8
- package/components/hooks/useMyUserList.tsx +1 -1
- package/components/hooks/useMyUtils.tsx +1 -1
- package/components/logins/Login.tsx +4 -4
- package/components/logins/auth/OAuthLogin.tsx +3 -3
- package/components/logins/hooks/useLogin.tsx +11 -11
- package/components/routes/404.tsx +1 -1
- package/components/routes/ErrorOccured.tsx +2 -2
- package/components/routes/Logout.tsx +3 -3
- package/components/routes/action/edit/ActionEditor.tsx +13 -13
- package/components/routes/action/shared/ActionReportDisplay.tsx +2 -2
- package/components/routes/action/shared/OperationEntry.tsx +4 -4
- package/components/routes/action/shared/OperationStep.tsx +8 -8
- package/components/routes/action/useMyActionFunctions.tsx +9 -9
- package/components/routes/action/view/ActionDetails.tsx +12 -12
- package/components/routes/action/view/ActionSearch.tsx +14 -14
- package/components/routes/action/view/Integrations.tsx +2 -2
- package/components/routes/admin/users/UserEditor.tsx +8 -8
- package/components/routes/admin/users/UserSearch.tsx +19 -19
- package/components/routes/advanced/QueryBuilder.tsx +14 -14
- package/components/routes/advanced/QueryEditor.tsx +3 -3
- package/components/routes/advanced/RuleModal.tsx +10 -10
- package/components/routes/advanced/eqlCompletionProvider.ts +1 -1
- package/components/routes/advanced/historyCompletionProvider.ts +2 -2
- package/components/routes/advanced/luceneCompletionProvider.ts +3 -3
- package/components/routes/advanced/yamlCompletionProvider.ts +1 -1
- package/components/routes/analytics/AnalyticComments.tsx +9 -9
- package/components/routes/analytics/AnalyticDetails.tsx +12 -12
- package/components/routes/analytics/AnalyticHitComments.tsx +8 -8
- package/components/routes/analytics/AnalyticNotebooks.tsx +9 -9
- package/components/routes/analytics/AnalyticOverview.tsx +6 -6
- package/components/routes/analytics/AnalyticOverviews.tsx +3 -3
- package/components/routes/analytics/AnalyticSearch.tsx +15 -15
- package/components/routes/analytics/AnalyticTemplates.tsx +5 -5
- package/components/routes/analytics/RuleView.tsx +4 -4
- package/components/routes/analytics/TriageSettings.tsx +6 -6
- package/components/routes/analytics/widgets/Assessment.tsx +5 -5
- package/components/routes/analytics/widgets/Created.tsx +4 -4
- package/components/routes/analytics/widgets/Detection.tsx +2 -2
- package/components/routes/analytics/widgets/Escalation.tsx +5 -5
- package/components/routes/analytics/widgets/Stacked.tsx +3 -3
- package/components/routes/analytics/widgets/Status.tsx +2 -2
- package/components/routes/dossiers/DossierCard.tsx +3 -3
- package/components/routes/dossiers/DossierEditor.tsx +5 -5
- package/components/routes/dossiers/Dossiers.tsx +10 -10
- package/components/routes/dossiers/LeadEditor.tsx +3 -3
- package/components/routes/dossiers/LeadForm.tsx +1 -1
- package/components/routes/dossiers/PivotForm.tsx +4 -4
- package/components/routes/help/ActionDocumentation.tsx +3 -3
- package/components/routes/help/ActionIntroductionDocumentation.tsx +7 -7
- package/components/routes/help/ApiDocumentation.tsx +8 -8
- package/components/routes/help/AuthDocumentation.tsx +3 -3
- package/components/routes/help/BundleDocumentation.tsx +1 -1
- package/components/routes/help/ClientDocumentation.tsx +3 -3
- package/components/routes/help/Help.tsx +5 -5
- package/components/routes/help/HitBannerDocumentation.tsx +5 -5
- package/components/routes/help/HitDocumentation.tsx +2 -2
- package/components/routes/help/HitLabelsDocumentation.tsx +1 -1
- package/components/routes/help/HitLinksDocumentation.tsx +2 -2
- package/components/routes/help/HitSchemaDocumentation.tsx +3 -3
- package/components/routes/help/NotebookDocumentation.tsx +3 -3
- package/components/routes/help/OverviewDocumentation.tsx +3 -3
- package/components/routes/help/RetentionDocumentation.tsx +7 -7
- package/components/routes/help/SearchDocumentation.tsx +6 -6
- package/components/routes/help/TemplateDocumentation.tsx +5 -5
- package/components/routes/help/ViewDocumentation.tsx +3 -3
- package/components/routes/hits/search/BundleParentMenu.tsx +5 -5
- package/components/routes/hits/search/BundleScroller.tsx +1 -1
- package/components/routes/hits/search/CustomSort.tsx +2 -2
- package/components/routes/hits/search/HitBrowser.tsx +10 -10
- package/components/routes/hits/search/HitContextMenu.tsx +11 -11
- package/components/routes/hits/search/HitQuery.tsx +5 -5
- package/components/routes/hits/search/InformationPane.tsx +35 -35
- package/components/routes/hits/search/SearchPane.tsx +21 -21
- package/components/routes/hits/search/ViewLink.tsx +3 -3
- package/components/routes/hits/search/grid/AddColumnModal.tsx +3 -3
- package/components/routes/hits/search/grid/ColumnHeader.tsx +2 -2
- package/components/routes/hits/search/grid/EnhancedCell.tsx +1 -1
- package/components/routes/hits/search/grid/HitGrid.tsx +12 -12
- package/components/routes/hits/search/grid/HitRow.tsx +7 -7
- package/components/routes/hits/search/shared/CustomSpan.tsx +1 -1
- package/components/routes/hits/search/shared/HitFilter.tsx +4 -4
- package/components/routes/hits/search/shared/HitSort.tsx +2 -2
- package/components/routes/hits/search/shared/QuerySettings.tsx +2 -2
- package/components/routes/hits/search/shared/SearchSpan.tsx +3 -3
- package/components/routes/hits/view/HitViewer.tsx +28 -28
- package/components/routes/hits/view/LeadRenderer.tsx +3 -3
- package/components/routes/home/AddNewCard.tsx +5 -5
- package/components/routes/home/AnalyticCard.tsx +3 -3
- package/components/routes/home/ViewCard.tsx +7 -7
- package/components/routes/home/index.tsx +9 -9
- package/components/routes/overviews/OverviewCard.tsx +3 -3
- package/components/routes/overviews/OverviewEditor.tsx +2 -2
- package/components/routes/overviews/OverviewViewer.tsx +13 -13
- package/components/routes/overviews/Overviews.tsx +10 -10
- package/components/routes/overviews/startingTemplate.ts +1 -1
- package/components/routes/settings/AdminSection.tsx +1 -1
- package/components/routes/settings/LocalSection.tsx +4 -4
- package/components/routes/settings/ProfileSection.tsx +4 -4
- package/components/routes/settings/SecuritySection.tsx +5 -5
- package/components/routes/settings/Settings.tsx +6 -6
- package/components/routes/templates/TemplateCard.tsx +1 -1
- package/components/routes/templates/TemplateEditor.tsx +4 -4
- package/components/routes/templates/TemplateViewer.tsx +10 -10
- package/components/routes/templates/Templates.tsx +11 -11
- package/components/routes/views/ViewComposer.tsx +21 -21
- package/components/routes/views/Views.tsx +16 -16
- package/index.tsx +3 -3
- package/models/entities/HowlerUser.d.ts +1 -1
- package/models/socket/HitUpdate.d.ts +1 -1
- package/package.json +577 -604
- package/plugins/HowlerPlugin.ts +12 -12
- package/plugins/store.ts +1 -1
- package/rest/AxiosClient.ts +3 -3
- package/rest/FetchClient.ts +2 -2
- package/rest/index.ts +1 -1
- package/utils/actionUtils.ts +2 -2
- package/utils/hitFunctions.ts +1 -1
- package/utils/localStorage.ts +1 -1
- package/utils/sessionStorage.ts +1 -1
- package/utils/socketUtils.ts +2 -2
- package/components/app/hooks/useMatchers.test.ts +0 -328
- package/components/app/providers/ViewProvider.test.tsx +0 -244
- package/tests/MockLocalStorage.ts +0 -46
- package/tests/server-handlers.ts +0 -114
- package/tests/server.ts +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PersonOff } from '@mui/icons-material';
|
|
2
2
|
import { Autocomplete, Avatar, Box, Button, CircularProgress, Stack, TextField, Typography } from '@mui/material';
|
|
3
|
-
import api from 'api';
|
|
4
|
-
import HowlerAvatar from 'components/elements/display/HowlerAvatar';
|
|
5
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
6
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
7
|
-
import useMyUserList from 'components/hooks/useMyUserList';
|
|
8
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
3
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
4
|
+
import HowlerAvatar from '@cccsaurora/howler-ui/components/elements/display/HowlerAvatar';
|
|
5
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
6
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
7
|
+
import useMyUserList from '@cccsaurora/howler-ui/components/hooks/useMyUserList';
|
|
8
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
9
9
|
import type { FC } from 'react';
|
|
10
10
|
import { useCallback, useMemo, useState } from 'react';
|
|
11
11
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box, Divider, Stack, Typography } from '@mui/material';
|
|
2
|
-
import type { GroupDetailsResponse } from 'api/user/groups';
|
|
2
|
+
import type { GroupDetailsResponse } from '@cccsaurora/howler-ui/api/user/groups';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
|
|
5
5
|
type ViewGroupsDrawerProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
import { has } from 'lodash-es';
|
|
3
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
4
|
-
import type { WithMetadata } from 'models/WithMetadata';
|
|
3
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
4
|
+
import type { WithMetadata } from '@cccsaurora/howler-ui/models/WithMetadata';
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
import { useContextSelector } from 'use-context-selector';
|
|
7
7
|
import { HitContext } from '../providers/HitProvider';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import useMySitemap from 'components/hooks/useMySitemap';
|
|
1
|
+
import useMySitemap from '@cccsaurora/howler-ui/components/hooks/useMySitemap';
|
|
2
2
|
import { capitalize } from 'lodash-es';
|
|
3
3
|
import { useCallback, useContext, useEffect } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import type { HowlerSearchResponse } from 'api/search';
|
|
3
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
4
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
5
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
5
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
6
6
|
import { createContext, useCallback, useEffect, useState, type FC, type PropsWithChildren } from 'react';
|
|
7
7
|
|
|
8
8
|
interface AnalyticContextType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Drawer, Typography } from '@mui/material';
|
|
2
|
-
import PageContent from 'commons/components/pages/PageContent';
|
|
2
|
+
import PageContent from '@cccsaurora/howler-ui/commons/components/pages/PageContent';
|
|
3
3
|
import type { FC, PropsWithChildren } from 'react';
|
|
4
4
|
import { createContext, useCallback, useMemo, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
3
3
|
import type { FC, PropsWithChildren } from 'react';
|
|
4
4
|
import { createContext, useCallback } from 'react';
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QueryStats, SavedSearch } from '@mui/icons-material';
|
|
2
|
-
import type { AppLeftNavElement, AppLeftNavGroup } from 'commons/components/app/AppConfigs';
|
|
3
|
-
import { useAppLeftNav, useAppUser } from 'commons/components/app/hooks';
|
|
2
|
+
import type { AppLeftNavElement, AppLeftNavGroup } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
3
|
+
import { useAppLeftNav, useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
4
|
import { sortBy, uniq } from 'lodash-es';
|
|
5
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
5
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
6
6
|
import { createContext, useCallback, useContext, useEffect, type FC, type PropsWithChildren } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { useContextSelector } from 'use-context-selector';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import type { SearchField } from 'api/search/fields';
|
|
3
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { SearchField } from '@cccsaurora/howler-ui/api/search/fields';
|
|
3
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
4
4
|
import type { FC, PropsWithChildren } from 'react';
|
|
5
5
|
import { createContext, useCallback, useState } from 'react';
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
3
3
|
import { uniq } from 'lodash-es';
|
|
4
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
5
|
-
import type { HitUpdate } from 'models/socket/HitUpdate';
|
|
6
|
-
import type { WithMetadata } from 'models/WithMetadata';
|
|
4
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
5
|
+
import type { HitUpdate } from '@cccsaurora/howler-ui/models/socket/HitUpdate';
|
|
6
|
+
import type { WithMetadata } from '@cccsaurora/howler-ui/models/WithMetadata';
|
|
7
7
|
import type { FC, PropsWithChildren } from 'react';
|
|
8
8
|
import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import { createContext, useContextSelector } from 'use-context-selector';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import type { HowlerSearchResponse } from 'api/search';
|
|
3
|
-
import { HitLayout } from 'components/elements/hit/HitLayout';
|
|
4
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
5
|
-
import useMyLocalStorage, { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
6
|
-
import i18n from 'i18n';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import { HitLayout } from '@cccsaurora/howler-ui/components/elements/hit/HitLayout';
|
|
4
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
5
|
+
import useMyLocalStorage, { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
6
|
+
import i18n from '@cccsaurora/howler-ui/i18n';
|
|
7
7
|
import isNull from 'lodash-es/isNull';
|
|
8
8
|
import isUndefined from 'lodash-es/isUndefined';
|
|
9
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
10
|
-
import type { WithMetadata } from 'models/WithMetadata';
|
|
9
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
10
|
+
import type { WithMetadata } from '@cccsaurora/howler-ui/models/WithMetadata';
|
|
11
11
|
import {
|
|
12
12
|
useCallback,
|
|
13
13
|
useEffect,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
import { isMobile } from 'react-device-detect';
|
|
22
22
|
import { useLocation, useParams } from 'react-router-dom';
|
|
23
23
|
import { createContext, useContextSelector } from 'use-context-selector';
|
|
24
|
-
import { StorageKey } from 'utils/constants';
|
|
25
|
-
import { getStored } from 'utils/localStorage';
|
|
26
|
-
import Throttler from 'utils/Throttler';
|
|
27
|
-
import { convertCustomDateRangeToLucene, convertDateToLucene } from 'utils/utils';
|
|
24
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
25
|
+
import { getStored } from '@cccsaurora/howler-ui/utils/localStorage';
|
|
26
|
+
import Throttler from '@cccsaurora/howler-ui/utils/Throttler';
|
|
27
|
+
import { convertCustomDateRangeToLucene, convertDateToLucene } from '@cccsaurora/howler-ui/utils/utils';
|
|
28
28
|
import { HitContext } from './HitProvider';
|
|
29
29
|
import { ParameterContext } from './ParameterProvider';
|
|
30
30
|
import { ViewContext } from './ViewProvider';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import useLocalStorage from 'commons/components/utils/hooks/useLocalStorage';
|
|
1
|
+
import useLocalStorage from '@cccsaurora/howler-ui/commons/components/utils/hooks/useLocalStorage';
|
|
2
2
|
import type { FC, PropsWithChildren } from 'react';
|
|
3
3
|
import { createContext, useCallback, useEffect, useState } from 'react';
|
|
4
|
-
import { MY_LOCAL_STORAGE_PREFIX, StorageKey } from 'utils/constants';
|
|
4
|
+
import { MY_LOCAL_STORAGE_PREFIX, StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
5
5
|
|
|
6
6
|
type ValuesType = { [K in StorageKey]?: any };
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
3
|
-
import type { Overview } from 'models/entities/generated/Overview';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
3
|
+
import type { Overview } from '@cccsaurora/howler-ui/models/entities/generated/Overview';
|
|
4
4
|
import type { FC, PropsWithChildren } from 'react';
|
|
5
5
|
import { createContext, useCallback, useState } from 'react';
|
|
6
6
|
|
|
@@ -3,7 +3,7 @@ import type { FC, PropsWithChildren } from 'react';
|
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { useLocation, useParams, useSearchParams } from 'react-router-dom';
|
|
5
5
|
import { createContext, useContextSelector } from 'use-context-selector';
|
|
6
|
-
import Throttler from 'utils/Throttler';
|
|
6
|
+
import Throttler from '@cccsaurora/howler-ui/utils/Throttler';
|
|
7
7
|
|
|
8
8
|
interface ParameterProviderType {
|
|
9
9
|
selected?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import api from 'api';
|
|
3
|
-
import useMyLocalStorage from 'components/hooks/useMyLocalStorage';
|
|
2
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
3
|
+
import useMyLocalStorage from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
4
4
|
import type { PropsWithChildren } from 'react';
|
|
5
5
|
import { createContext, useCallback, useEffect, useRef, useState } from 'react';
|
|
6
|
-
import { StorageKey } from 'utils/constants';
|
|
7
|
-
import { getStored, setAxiosCache, setStored } from 'utils/sessionStorage';
|
|
8
|
-
import { isHitUpdate } from 'utils/socketUtils';
|
|
6
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
7
|
+
import { getStored, setAxiosCache, setStored } from '@cccsaurora/howler-ui/utils/sessionStorage';
|
|
8
|
+
import { isHitUpdate } from '@cccsaurora/howler-ui/utils/socketUtils';
|
|
9
9
|
|
|
10
10
|
export type ListenerType<K extends keyof WebSocketEventMap> = (this: WebSocket, ev: WebSocketEventMap[K]) => void;
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
3
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
3
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
4
4
|
import type { FC, PropsWithChildren } from 'react';
|
|
5
5
|
import { createContext, useCallback, useState } from 'react';
|
|
6
6
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
3
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
4
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
3
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
4
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
5
5
|
import { has, omit } from 'lodash-es';
|
|
6
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
7
|
-
import type { View } from 'models/entities/generated/View';
|
|
6
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
7
|
+
import type { View } from '@cccsaurora/howler-ui/models/entities/generated/View';
|
|
8
8
|
import { useCallback, useEffect, useState, type FC, type PropsWithChildren } from 'react';
|
|
9
9
|
import { useLocation, useParams } from 'react-router-dom';
|
|
10
10
|
import { createContext, useContextSelector } from 'use-context-selector';
|
|
11
|
-
import { StorageKey } from 'utils/constants';
|
|
11
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
12
12
|
|
|
13
13
|
export interface ViewContextType {
|
|
14
14
|
defaultView: string;
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
Typography,
|
|
32
32
|
type Theme
|
|
33
33
|
} from '@mui/material';
|
|
34
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
35
|
-
import FlexOne from 'components/elements/addons/layout/FlexOne';
|
|
36
|
-
import useMyUtils from 'components/hooks/useMyUtils';
|
|
37
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
38
|
-
import type { Comment as AnalyticComment } from 'models/entities/generated/Comment';
|
|
39
|
-
import type { HowlerComment } from 'models/entities/generated/HowlerComment';
|
|
34
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
35
|
+
import FlexOne from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexOne';
|
|
36
|
+
import useMyUtils from '@cccsaurora/howler-ui/components/hooks/useMyUtils';
|
|
37
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
38
|
+
import type { Comment as AnalyticComment } from '@cccsaurora/howler-ui/models/entities/generated/Comment';
|
|
39
|
+
import type { HowlerComment } from '@cccsaurora/howler-ui/models/entities/generated/HowlerComment';
|
|
40
40
|
import type { FC, KeyboardEventHandler, ReactNode } from 'react';
|
|
41
41
|
import { memo, useCallback, useMemo, useState } from 'react';
|
|
42
42
|
import { useTranslation } from 'react-i18next';
|
|
43
|
-
import { compareTimestamp, twitterShort } from 'utils/utils';
|
|
43
|
+
import { compareTimestamp, twitterShort } from '@cccsaurora/howler-ui/utils/utils';
|
|
44
44
|
import HowlerAvatar from './display/HowlerAvatar';
|
|
45
45
|
import HowlerCard from './display/HowlerCard';
|
|
46
46
|
import Markdown from './display/Markdown';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
TextField,
|
|
12
12
|
Typography
|
|
13
13
|
} from '@mui/material';
|
|
14
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
14
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
15
15
|
import { isNull, isUndefined } from 'lodash-es';
|
|
16
16
|
import type { KeyboardEventHandler } from 'react';
|
|
17
17
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chip, type ChipProps } from '@mui/material';
|
|
2
|
-
import howlerPluginStore from 'plugins/store';
|
|
2
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
3
3
|
import { type FC, type ReactNode } from 'react';
|
|
4
4
|
import { usePluginStore } from 'react-pluggable';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Typography, type TypographyProps } from '@mui/material';
|
|
2
|
-
import howlerPluginStore from 'plugins/store';
|
|
2
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
3
3
|
import { type FC, type ReactNode } from 'react';
|
|
4
4
|
import { usePluginStore } from 'react-pluggable';
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EditorProps, Monaco } from '@monaco-editor/react';
|
|
2
2
|
import { Editor, useMonaco } from '@monaco-editor/react';
|
|
3
3
|
import { useTheme } from '@mui/material';
|
|
4
|
-
import type { AppThemeConfigs } from 'commons/components/app/AppConfigs';
|
|
5
|
-
import useThemeBuilder from 'commons/components/utils/hooks/useThemeBuilder';
|
|
6
|
-
import useMyTheme from 'components/hooks/useMyTheme';
|
|
4
|
+
import type { AppThemeConfigs } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
5
|
+
import useThemeBuilder from '@cccsaurora/howler-ui/commons/components/utils/hooks/useThemeBuilder';
|
|
6
|
+
import useMyTheme from '@cccsaurora/howler-ui/components/hooks/useMyTheme';
|
|
7
7
|
import type { editor } from 'monaco-editor';
|
|
8
8
|
import { memo, useCallback, useEffect, useMemo, type FC } from 'react';
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SxProps, Theme } from '@mui/material';
|
|
2
2
|
import { Autocomplete, Box, IconButton, Popover, TextField, Typography } from '@mui/material';
|
|
3
|
-
import { UserListContext } from 'components/app/providers/UserListProvider';
|
|
3
|
+
import { UserListContext } from '@cccsaurora/howler-ui/components/app/providers/UserListProvider';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { useContext, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PageProps } from 'commons/components/pages/hooks/usePageProps';
|
|
2
|
-
import usePageProps from 'commons/components/pages/hooks/usePageProps';
|
|
1
|
+
import type { PageProps } from '@cccsaurora/howler-ui/commons/components/pages/hooks/usePageProps';
|
|
2
|
+
import usePageProps from '@cccsaurora/howler-ui/commons/components/pages/hooks/usePageProps';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stack, type StackProps } from '@mui/material';
|
|
2
|
-
import { useAppBar, useAppBarHeight } from 'commons/components/app/hooks';
|
|
2
|
+
import { useAppBar, useAppBarHeight } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
3
3
|
import { createContext, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
|
|
5
5
|
type VSBoxProps = StackProps & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AppListEmpty from 'commons/components/display/AppListEmpty';
|
|
1
|
+
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import type { TuiListItemOnSelect, TuiListItemRenderer } from '.';
|
|
4
4
|
import TuiListBase from './TuiListBase';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { emphasize, styled } from '@mui/material';
|
|
2
|
-
import { useAppBar, useAppBarHeight, useAppLayout } from 'commons/components/app/hooks';
|
|
3
|
-
import useTuiListKeyboard from 'components/elements/addons/lists/hooks/useTuiListKeyboard';
|
|
2
|
+
import { useAppBar, useAppBarHeight, useAppLayout } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
3
|
+
import useTuiListKeyboard from '@cccsaurora/howler-ui/components/elements/addons/lists/hooks/useTuiListKeyboard';
|
|
4
4
|
import { memo, useCallback, useContext, useEffect, useLayoutEffect, useRef, type ReactNode } from 'react';
|
|
5
5
|
import type { TuiListItem, TuiListItemOnSelect } from '.';
|
|
6
6
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isArrowDown, isArrowUp, isEnter } from 'commons/components/utils/keyboard';
|
|
1
|
+
import { isArrowDown, isArrowUp, isEnter } from '@cccsaurora/howler-ui/commons/components/utils/keyboard';
|
|
2
2
|
import { useCallback, useContext, useMemo } from 'react';
|
|
3
|
-
import Throttler from 'utils/Throttler';
|
|
3
|
+
import Throttler from '@cccsaurora/howler-ui/utils/Throttler';
|
|
4
4
|
import type { TuiListItemOnSelect } from '..';
|
|
5
5
|
import { TuiListItemsContext, type TuiListItemsState } from '../TuiListProvider';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { darken, emphasize, lighten, styled } from '@mui/material';
|
|
2
|
-
import FlexPort from 'components/elements/addons/layout/FlexPort';
|
|
2
|
+
import FlexPort from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexPort';
|
|
3
3
|
import { useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { useResizeDetector } from 'react-resize-detector';
|
|
5
5
|
import type { TuiTableCellRenderer, TuiTableColumn, TuiTableRowDetailRenderer } from '.';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Collapse } from '@mui/material';
|
|
2
|
-
import AppListEmpty from 'commons/components/display/AppListEmpty';
|
|
2
|
+
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
3
3
|
import { get } from 'lodash-es';
|
|
4
4
|
import { useCallback } from 'react';
|
|
5
5
|
import type { TuiTableCellRenderer, TuiTableColumn, TuiTableRowDetailRenderer } from '.';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VSBoxContext } from 'components/elements/addons/layout/vsbox/VSBox';
|
|
1
|
+
import { VSBoxContext } from '@cccsaurora/howler-ui/components/elements/addons/layout/vsbox/VSBox';
|
|
2
2
|
import { useContext } from 'react';
|
|
3
3
|
import type { TuiTableColumn } from '.';
|
|
4
4
|
import TuiTableHeader from './TuiTableHeader';
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
TextField,
|
|
10
10
|
type TextFieldProps
|
|
11
11
|
} from '@mui/material';
|
|
12
|
-
import { parseEvent } from 'commons/components/utils/keyboard';
|
|
12
|
+
import { parseEvent } from '@cccsaurora/howler-ui/commons/components/utils/keyboard';
|
|
13
13
|
import { type ChangeEvent, type KeyboardEvent, type ReactElement, useEffect, useRef, useState } from 'react';
|
|
14
14
|
import type { PhraseAnalysis, PhraseSuggester } from '.';
|
|
15
15
|
import type PhraseLexer from './PhraseLexer';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Button, type ButtonProps } from '@mui/material';
|
|
2
|
-
import api from 'api';
|
|
3
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
4
|
-
import useMyActionFunctions from 'components/routes/action/useMyActionFunctions';
|
|
5
|
-
import type { Action } from 'models/entities/generated/Action';
|
|
2
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
3
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
4
|
+
import useMyActionFunctions from '@cccsaurora/howler-ui/components/routes/action/useMyActionFunctions';
|
|
5
|
+
import type { Action } from '@cccsaurora/howler-ui/models/entities/generated/Action';
|
|
6
6
|
import { useEffect, useState, type FC } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chip, useMediaQuery, useTheme } from '@mui/material';
|
|
2
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
2
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
import { useContext, useMemo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -4,8 +4,8 @@ import asyncHelpers from 'handlebars-async-helpers';
|
|
|
4
4
|
import type { FC, ReactElement } from 'react';
|
|
5
5
|
import { memo, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import Throttler from 'utils/Throttler';
|
|
8
|
-
import { hashCode } from 'utils/utils';
|
|
7
|
+
import Throttler from '@cccsaurora/howler-ui/utils/Throttler';
|
|
8
|
+
import { hashCode } from '@cccsaurora/howler-ui/utils/utils';
|
|
9
9
|
import Markdown, { type MarkdownProps } from '../display/Markdown';
|
|
10
10
|
import { useHelpers } from './handlebars/helpers';
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AvatarProps, SxProps, Theme } from '@mui/material';
|
|
2
2
|
import { Avatar, Tooltip, useTheme } from '@mui/material';
|
|
3
|
-
import { AvatarContext } from 'components/app/providers/AvatarProvider';
|
|
3
|
+
import { AvatarContext } from '@cccsaurora/howler-ui/components/app/providers/AvatarProvider';
|
|
4
4
|
import { memo, useCallback, useContext, useEffect, useState, type FC, type ReactNode } from 'react';
|
|
5
|
-
import { nameToInitials } from 'utils/stringUtils';
|
|
6
|
-
import { stringToColor } from 'utils/utils';
|
|
5
|
+
import { nameToInitials } from '@cccsaurora/howler-ui/utils/stringUtils';
|
|
6
|
+
import { stringToColor } from '@cccsaurora/howler-ui/utils/utils';
|
|
7
7
|
|
|
8
8
|
type HowlerAvatarProps = AvatarProps & {
|
|
9
9
|
userId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Grid, styled, Typography, useTheme } from '@mui/material';
|
|
2
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
2
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
import HowlerAvatar from './HowlerAvatar';
|
|
5
5
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Box, Fab, IconButton, LinearProgress, Stack, Tooltip, Typography, useMediaQuery } from '@mui/material';
|
|
2
|
-
import PageCenter from 'commons/components/pages/PageCenter';
|
|
2
|
+
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
|
|
5
5
|
import { Add, Search } from '@mui/icons-material';
|
|
6
|
-
import type { HowlerSearchResponse } from 'api/search';
|
|
7
|
-
import type { TuiListItemOnSelect, TuiListItemRenderer } from 'components/elements/addons/lists';
|
|
8
|
-
import { TuiList } from 'components/elements/addons/lists';
|
|
9
|
-
import SearchPagination from 'components/elements/addons/search/SearchPagination';
|
|
10
|
-
import SearchTotal from 'components/elements/addons/search/SearchTotal';
|
|
11
|
-
import ErrorBoundary from 'components/routes/ErrorBoundary';
|
|
6
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
7
|
+
import type { TuiListItemOnSelect, TuiListItemRenderer } from '@cccsaurora/howler-ui/components/elements/addons/lists';
|
|
8
|
+
import { TuiList } from '@cccsaurora/howler-ui/components/elements/addons/lists';
|
|
9
|
+
import SearchPagination from '@cccsaurora/howler-ui/components/elements/addons/search/SearchPagination';
|
|
10
|
+
import SearchTotal from '@cccsaurora/howler-ui/components/elements/addons/search/SearchTotal';
|
|
11
|
+
import ErrorBoundary from '@cccsaurora/howler-ui/components/routes/ErrorBoundary';
|
|
12
12
|
import type { FC, ReactNode } from 'react';
|
|
13
13
|
import Phrase from '../addons/search/phrase/Phrase';
|
|
14
14
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TableRow,
|
|
13
13
|
useTheme
|
|
14
14
|
} from '@mui/material';
|
|
15
|
-
import { useAppTheme } from 'commons/components/app/hooks';
|
|
15
|
+
import { useAppTheme } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
16
16
|
import mermaid from 'mermaid';
|
|
17
17
|
import { memo, useEffect, type FC, type ReactElement } from 'react';
|
|
18
18
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box, Modal as MuiModal } from '@mui/material';
|
|
2
|
-
import { ModalContext } from 'components/app/providers/ModalProvider';
|
|
2
|
+
import { ModalContext } from '@cccsaurora/howler-ui/components/app/providers/ModalProvider';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
import { useCallback, useContext } from 'react';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Grid, Stack } from '@mui/material';
|
|
2
|
-
import PageCenter from 'commons/components/pages/PageCenter';
|
|
3
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
2
|
+
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
3
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
4
4
|
import type { FC, PropsWithChildren } from 'react';
|
|
5
5
|
import HowlerAvatarHeader from './HowlerAvatarHeader';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Alert, AlertTitle } from '@mui/material';
|
|
2
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
2
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { StorageKey } from 'utils/constants';
|
|
5
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
6
6
|
|
|
7
7
|
const DevelopmentBanner: FC = () => {
|
|
8
8
|
const { t } = useTranslation();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WarningAmberOutlined } from '@mui/icons-material';
|
|
2
2
|
import { Tooltip } from '@mui/material';
|
|
3
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
3
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { StorageKey } from 'utils/constants';
|
|
6
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
7
7
|
|
|
8
8
|
const DevelopmentIcon: FC = () => {
|
|
9
9
|
const { t } = useTranslation();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
import { Paper, Table, TableBody, TableCell, TableHead, TableRow } from '@mui/material';
|
|
3
|
-
import AppListEmpty from 'commons/components/display/AppListEmpty';
|
|
4
|
-
import HitCard from 'components/elements/hit/HitCard';
|
|
5
|
-
import { HitLayout } from 'components/elements/hit/HitLayout';
|
|
3
|
+
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
4
|
+
import HitCard from '@cccsaurora/howler-ui/components/elements/hit/HitCard';
|
|
5
|
+
import { HitLayout } from '@cccsaurora/howler-ui/components/elements/hit/HitLayout';
|
|
6
6
|
import { flatten } from 'flat';
|
|
7
7
|
import Handlebars from 'handlebars';
|
|
8
8
|
import { capitalize, get, groupBy, isObject } from 'lodash-es';
|
|
9
|
-
import howlerPluginStore from 'plugins/store';
|
|
9
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
10
10
|
import { useMemo, type ReactElement } from 'react';
|
|
11
11
|
import { usePluginStore } from 'react-pluggable';
|
|
12
12
|
import ActionButton from '../ActionButton';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountTree } from '@mui/icons-material';
|
|
2
2
|
import { ListItemText, Menu, MenuItem, Typography } from '@mui/material';
|
|
3
|
-
import TuiIconButton from 'components/elements/addons/buttons/CustomIconButton';
|
|
3
|
+
import TuiIconButton from '@cccsaurora/howler-ui/components/elements/addons/buttons/CustomIconButton';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { useCallback, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CloudSync } from '@mui/icons-material';
|
|
2
2
|
import { Badge, IconButton, styled, Tooltip } from '@mui/material';
|
|
3
3
|
import { green, red, yellow } from '@mui/material/colors';
|
|
4
|
-
import { SocketContext, Status } from 'components/app/providers/SocketProvider';
|
|
5
|
-
import i18n from 'i18n';
|
|
4
|
+
import { SocketContext, Status } from '@cccsaurora/howler-ui/components/app/providers/SocketProvider';
|
|
5
|
+
import i18n from '@cccsaurora/howler-ui/i18n';
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
import { useContext } from 'react';
|
|
8
8
|
|