@cccsaurora/howler-ui 2.14.0-dev.263 → 2.14.0-dev.265
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 +19 -0
- package/api/action/index.ts +36 -0
- package/api/action/operations.ts +11 -0
- package/api/analytic/comments/index.ts +27 -0
- package/api/analytic/comments/react.ts +14 -0
- package/api/analytic/favourite.ts +14 -0
- package/api/analytic/index.ts +27 -0
- package/api/analytic/notebooks/index.ts +15 -0
- package/api/analytic/owner.ts +11 -0
- package/api/analytic/rules.ts +13 -0
- package/api/auth/apikey.ts +20 -0
- package/api/auth/index.ts +9 -0
- package/api/auth/login.ts +35 -0
- package/api/configs/index.ts +10 -0
- package/api/dossier/hit.ts +10 -0
- package/api/dossier/index.ts +26 -0
- package/api/help.ts +71 -0
- package/api/hit/assign.ts +11 -0
- package/api/hit/comments/index.ts +27 -0
- package/api/hit/comments/react.ts +15 -0
- package/api/hit/index.ts +56 -0
- package/api/hit/labels.ts +16 -0
- package/api/hit/overwrite.ts +11 -0
- package/api/hit/transition.ts +12 -0
- package/api/index.ts +301 -0
- package/api/notebook/environments.ts +14 -0
- package/api/notebook/index.ts +20 -0
- package/api/overview/index.ts +22 -0
- package/api/search/action.ts +12 -0
- package/api/search/analytic.ts +12 -0
- package/api/search/count/hit.ts +11 -0
- package/api/search/count/index.ts +18 -0
- package/api/search/dossier.ts +12 -0
- package/api/search/eql/hit.ts +12 -0
- package/api/search/facet/hit.ts +11 -0
- package/api/search/facet/index.ts +19 -0
- package/api/search/fields/hit.ts +12 -0
- package/api/search/fields/index.ts +29 -0
- package/api/search/fields/user.ts +14 -0
- package/api/search/grouped/hit.ts +15 -0
- package/api/search/grouped/index.ts +34 -0
- package/api/search/grouped/user.ts +30 -0
- package/api/search/histogram/hit.ts +11 -0
- package/api/search/histogram/index.ts +20 -0
- package/api/search/hit.ts +17 -0
- package/api/search/index.ts +63 -0
- package/api/search/overview.ts +12 -0
- package/api/search/sigma/hit.ts +12 -0
- package/api/search/template.ts +12 -0
- package/api/search/user.ts +21 -0
- package/api/search/view.ts +12 -0
- package/api/template/index.ts +22 -0
- package/api/user/avatar/index.ts +10 -0
- package/api/user/groups.ts +12 -0
- package/api/user/index.ts +20 -0
- package/api/user/whoami.ts +11 -0
- package/api/view/favourite.ts +14 -0
- package/api/view/index.ts +25 -0
- package/branding/AppBrand.tsx +161 -0
- package/commons/components/app/AppConfigs.ts +179 -0
- package/commons/components/app/AppConstants.ts +11 -0
- package/commons/components/app/AppContexts.ts +142 -0
- package/commons/components/app/AppDefaults.ts +52 -0
- package/commons/components/app/AppNotificationService.ts +7 -0
- package/commons/components/app/AppProvider.tsx +86 -0
- package/commons/components/app/AppSearchService.ts +33 -0
- package/commons/components/app/AppSkeleton.tsx +321 -0
- package/commons/components/app/AppUserService.ts +21 -0
- package/commons/components/app/hooks/index.ts +18 -0
- package/commons/components/app/hooks/useApp.tsx +6 -0
- package/commons/components/app/hooks/useAppBanner.tsx +7 -0
- package/commons/components/app/hooks/useAppBar.tsx +6 -0
- package/commons/components/app/hooks/useAppBarHeight.tsx +27 -0
- package/commons/components/app/hooks/useAppBarScrollTrigger.tsx +8 -0
- package/commons/components/app/hooks/useAppBreadcrumbs.tsx +6 -0
- package/commons/components/app/hooks/useAppConfigs.tsx +54 -0
- package/commons/components/app/hooks/useAppLanguage.tsx +29 -0
- package/commons/components/app/hooks/useAppLayout.tsx +6 -0
- package/commons/components/app/hooks/useAppLeftNav.tsx +6 -0
- package/commons/components/app/hooks/useAppLogo.tsx +9 -0
- package/commons/components/app/hooks/useAppNotification.tsx +6 -0
- package/commons/components/app/hooks/useAppQuickSearch.tsx +6 -0
- package/commons/components/app/hooks/useAppSearchService.tsx +7 -0
- package/commons/components/app/hooks/useAppSitemap.tsx +84 -0
- package/commons/components/app/hooks/useAppSwitcher.tsx +6 -0
- package/commons/components/app/hooks/useAppTheme.tsx +23 -0
- package/commons/components/app/hooks/useAppUser.tsx +7 -0
- package/commons/components/app/providers/AppBarProvider.tsx +48 -0
- package/commons/components/app/providers/AppBreadcrumbsProvider.tsx +53 -0
- package/commons/components/app/providers/AppLayoutProvider.tsx +114 -0
- package/commons/components/app/providers/AppLeftNavProvider.tsx +30 -0
- package/commons/components/app/providers/AppNotificationProvider.tsx +49 -0
- package/commons/components/app/providers/AppQuickSearchProvider.tsx +32 -0
- package/commons/components/app/providers/AppSearchServiceProvider.tsx +65 -0
- package/commons/components/app/providers/AppSnackbarProvider.tsx +16 -0
- package/commons/components/app/providers/AppSwitcherProvider.tsx +16 -0
- package/commons/components/app/providers/AppUserProvider.tsx +22 -0
- package/commons/components/breadcrumbs/BreadcrumbIcon.tsx +21 -0
- package/commons/components/breadcrumbs/BreadcrumbLastItem.tsx +40 -0
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.tsx +43 -0
- package/commons/components/breadcrumbs/BreadcrumbList.tsx +87 -0
- package/commons/components/breadcrumbs/Breadcrumbs.tsx +40 -0
- package/commons/components/display/AppAvatar.tsx +34 -0
- package/commons/components/display/AppInfoPanel.tsx +30 -0
- package/commons/components/display/AppListEmpty.tsx +5 -0
- package/commons/components/display/AppToc.tsx +160 -0
- package/commons/components/display/hooks/useAppColor.tsx +21 -0
- package/commons/components/leftnav/LeftNavDrawer.tsx +172 -0
- package/commons/components/leftnav/LeftNavGroup.tsx +144 -0
- package/commons/components/leftnav/LeftNavItem.tsx +73 -0
- package/commons/components/notification/FeedModels.ts +163 -0
- package/commons/components/notification/Notification.tsx +152 -0
- package/commons/components/notification/elements/NotificationCloseButton.tsx +14 -0
- package/commons/components/notification/elements/NotificationContainer.tsx +87 -0
- package/commons/components/notification/elements/NotificationEndOfPage.tsx +48 -0
- package/commons/components/notification/elements/NotificationError.tsx +24 -0
- package/commons/components/notification/elements/NotificationHeader.tsx +41 -0
- package/commons/components/notification/elements/NotificationItems.tsx +47 -0
- package/commons/components/notification/elements/NotificationSkeleton.tsx +59 -0
- package/commons/components/notification/elements/NotificationTopNavButton.tsx +27 -0
- package/commons/components/notification/elements/item/NotificationItem.tsx +44 -0
- package/commons/components/notification/elements/item/NotificationItemAuthor.tsx +72 -0
- package/commons/components/notification/elements/item/NotificationItemContent.tsx +29 -0
- package/commons/components/notification/elements/item/NotificationItemDate.tsx +14 -0
- package/commons/components/notification/elements/item/NotificationItemImage.tsx +19 -0
- package/commons/components/notification/elements/item/NotificationItemTag.tsx +18 -0
- package/commons/components/notification/elements/item/NotificationItemTitle.tsx +38 -0
- package/commons/components/notification/index.tsx +2 -0
- package/commons/components/pages/PageCardCentered.tsx +32 -0
- package/commons/components/pages/PageCenter.tsx +46 -0
- package/commons/components/pages/PageContent.tsx +13 -0
- package/commons/components/pages/PageFullScreen.tsx +74 -0
- package/commons/components/pages/PageFullWidth.tsx +30 -0
- package/commons/components/pages/PageHeader.tsx +117 -0
- package/commons/components/pages/hooks/usePageProps.tsx +41 -0
- package/commons/components/search/AppSearch.tsx +256 -0
- package/commons/components/search/AppSearchInput.tsx +104 -0
- package/commons/components/search/AppSearchResult.tsx +66 -0
- package/commons/components/topnav/AppBar.tsx +137 -0
- package/commons/components/topnav/AppName.tsx +53 -0
- package/commons/components/topnav/AppSwitcher.tsx +116 -0
- package/commons/components/topnav/Notifications.tsx +16 -0
- package/commons/components/topnav/ThemeSelection.tsx +143 -0
- package/commons/components/topnav/ThemeSelectionIcon.tsx +39 -0
- package/commons/components/topnav/UserProfile.tsx +196 -0
- package/commons/components/utils/hooks/useClipboard.tsx +31 -0
- package/commons/components/utils/hooks/useEnv.tsx +13 -0
- package/commons/components/utils/hooks/useFullscreenStatus.tsx +47 -0
- package/commons/components/utils/hooks/useGravatar.tsx +13 -0
- package/commons/components/utils/hooks/useLocalStorage.ts +75 -0
- package/commons/components/utils/hooks/useLocalStorageItem.tsx +45 -0
- package/commons/components/utils/hooks/useThemeBuilder.tsx +55 -0
- package/commons/components/utils/keyboard.ts +61 -0
- package/components/app/App.tsx +434 -0
- package/components/app/AppContainer.tsx +19 -0
- package/components/app/drawers/ApiKeyDrawer.tsx +173 -0
- package/components/app/drawers/AppDrawerType.ts +7 -0
- package/components/app/drawers/AssignUserDrawer.tsx +126 -0
- package/components/app/drawers/ViewGroupsDrawer.tsx +24 -0
- package/components/app/hooks/useMatchers.tsx +107 -0
- package/components/app/hooks/useTitle.tsx +77 -0
- package/components/app/providers/AnalyticProvider.tsx +87 -0
- package/components/app/providers/ApiConfigProvider.tsx +31 -0
- package/components/app/providers/AppDrawerProvider.tsx +54 -0
- package/components/app/providers/AvatarProvider.tsx +47 -0
- package/components/app/providers/CustomPluginProvider.tsx +19 -0
- package/components/app/providers/FavouritesProvider.tsx +157 -0
- package/components/app/providers/FieldProvider.tsx +34 -0
- package/components/app/providers/HitProvider.tsx +164 -0
- package/components/app/providers/HitSearchProvider.tsx +248 -0
- package/components/app/providers/LocalStorageProvider.tsx +67 -0
- package/components/app/providers/ModalProvider.tsx +57 -0
- package/components/app/providers/OverviewProvider.tsx +90 -0
- package/components/app/providers/ParameterProvider.tsx +270 -0
- package/components/app/providers/SocketProvider.tsx +329 -0
- package/components/app/providers/UserListProvider.tsx +56 -0
- package/components/app/providers/ViewProvider.tsx +207 -0
- package/components/elements/Comment.tsx +315 -0
- package/components/elements/EditRow.tsx +268 -0
- package/components/elements/PluginChip.tsx +32 -0
- package/components/elements/PluginTypography.tsx +31 -0
- package/components/elements/ThemedEditor.tsx +130 -0
- package/components/elements/UserList.tsx +79 -0
- package/components/elements/addons/buttons/CustomButton.tsx +93 -0
- package/components/elements/addons/buttons/CustomIconButton.tsx +122 -0
- package/components/elements/addons/buttons/index.ts +7 -0
- package/components/elements/addons/layout/FlexOne.tsx +6 -0
- package/components/elements/addons/layout/FlexPort.tsx +39 -0
- package/components/elements/addons/layout/FlexVertical.tsx +28 -0
- package/components/elements/addons/layout/vsbox/VSBox.tsx +52 -0
- package/components/elements/addons/layout/vsbox/VSBoxContent.tsx +13 -0
- package/components/elements/addons/layout/vsbox/VSBoxElement.tsx +60 -0
- package/components/elements/addons/layout/vsbox/VSBoxHeader.tsx +41 -0
- package/components/elements/addons/lists/TuiList.tsx +31 -0
- package/components/elements/addons/lists/TuiListBase.tsx +98 -0
- package/components/elements/addons/lists/TuiListElement.tsx +51 -0
- package/components/elements/addons/lists/TuiListMenu.tsx +61 -0
- package/components/elements/addons/lists/TuiListProvider.tsx +162 -0
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.tsx +60 -0
- package/components/elements/addons/lists/index.tsx +25 -0
- package/components/elements/addons/lists/table/TuiTable.tsx +151 -0
- package/components/elements/addons/lists/table/TuiTableBody.tsx +77 -0
- package/components/elements/addons/lists/table/TuiTableHead.tsx +29 -0
- package/components/elements/addons/lists/table/TuiTableHeader.tsx +15 -0
- package/components/elements/addons/lists/table/TuiTableLayout.ts +53 -0
- package/components/elements/addons/lists/table/index.tsx +24 -0
- package/components/elements/addons/search/SearchPagination.tsx +26 -0
- package/components/elements/addons/search/SearchTotal.tsx +35 -0
- package/components/elements/addons/search/phrase/Phrase.tsx +175 -0
- package/components/elements/addons/search/phrase/PhraseConsumer.ts +35 -0
- package/components/elements/addons/search/phrase/PhraseLexer.ts +167 -0
- package/components/elements/addons/search/phrase/index.ts +86 -0
- package/components/elements/addons/search/phrase/word/WordLexer.ts +10 -0
- package/components/elements/addons/search/phrase/word/WordSuggester.ts +9 -0
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.ts +21 -0
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.ts +21 -0
- package/components/elements/display/ActionButton.tsx +40 -0
- package/components/elements/display/Classification.tsx +29 -0
- package/components/elements/display/DocumentationButton.tsx +46 -0
- package/components/elements/display/DynamicTabs.tsx +52 -0
- package/components/elements/display/HandlebarsMarkdown.tsx +105 -0
- package/components/elements/display/HowlerAvatar.tsx +66 -0
- package/components/elements/display/HowlerAvatarHeader.tsx +37 -0
- package/components/elements/display/HowlerCard.tsx +10 -0
- package/components/elements/display/Image.tsx +43 -0
- package/components/elements/display/ItemManager.tsx +146 -0
- package/components/elements/display/Markdown.tsx +200 -0
- package/components/elements/display/Modal.tsx +44 -0
- package/components/elements/display/Notebook.tsx +7 -0
- package/components/elements/display/QueryResultText.tsx +25 -0
- package/components/elements/display/TextDivider.tsx +48 -0
- package/components/elements/display/TypingIndicator.tsx +41 -0
- package/components/elements/display/UserPageWrapper.tsx +20 -0
- package/components/elements/display/features/DevelopmentBanner.tsx +24 -0
- package/components/elements/display/features/DevelopmentIcon.tsx +24 -0
- package/components/elements/display/handlebars/helpers.tsx +276 -0
- package/components/elements/display/icons/BundleButton.tsx +77 -0
- package/components/elements/display/icons/Iconified.tsx +16 -0
- package/components/elements/display/icons/SocketBadge.tsx +82 -0
- package/components/elements/display/icons/svg/howler-icon-darkmode.svg +1 -0
- package/components/elements/display/icons/svg/howler-icon-lightmode.svg +1 -0
- package/components/elements/display/icons/svg/howler-logo-full.svg +1 -0
- package/components/elements/display/icons/svg/howler-logo.svg +1 -0
- package/components/elements/display/json/JSONViewer.tsx +98 -0
- package/components/elements/display/markdownPlugins/tabs.ts +81 -0
- package/components/elements/display/modals/ConfirmDeleteModal.tsx +32 -0
- package/components/elements/display/modals/ConfirmNotebookModal.tsx +32 -0
- package/components/elements/display/modals/CreateActionModal.tsx +63 -0
- package/components/elements/display/modals/LoginErrorModal.tsx +31 -0
- package/components/elements/display/modals/RationaleModal.tsx +59 -0
- package/components/elements/hit/HitActions.tsx +298 -0
- package/components/elements/hit/HitBanner.tsx +367 -0
- package/components/elements/hit/HitBannerTooltip.tsx +41 -0
- package/components/elements/hit/HitCard.tsx +42 -0
- package/components/elements/hit/HitComments.tsx +372 -0
- package/components/elements/hit/HitDetails.tsx +324 -0
- package/components/elements/hit/HitLabels.tsx +265 -0
- package/components/elements/hit/HitLayout.ts +5 -0
- package/components/elements/hit/HitNotebooks.tsx +264 -0
- package/components/elements/hit/HitOutline.tsx +56 -0
- package/components/elements/hit/HitOverview.tsx +53 -0
- package/components/elements/hit/HitQuickSearch.tsx +111 -0
- package/components/elements/hit/HitRelated.tsx +18 -0
- package/components/elements/hit/HitShortcuts.ts +5 -0
- package/components/elements/hit/HitSummary.tsx +301 -0
- package/components/elements/hit/HitWorklog.tsx +201 -0
- package/components/elements/hit/actions/ButtonActions.tsx +269 -0
- package/components/elements/hit/actions/DropdownActions.tsx +157 -0
- package/components/elements/hit/actions/SharedComponents.tsx +40 -0
- package/components/elements/hit/aggregate/HitGraph.tsx +351 -0
- package/components/elements/hit/elements/Assigned.tsx +71 -0
- package/components/elements/hit/elements/EscalationChip.tsx +26 -0
- package/components/elements/hit/elements/HitTimestamp.tsx +81 -0
- package/components/elements/hit/outlines/DefaultOutline.tsx +107 -0
- package/components/elements/hit/outlines/al/AssemblyLineRules.tsx +130 -0
- package/components/elements/hit/related/PivotLink.tsx +67 -0
- package/components/elements/hit/related/RelatedIcon.tsx +51 -0
- package/components/elements/hit/related/RelatedLink.tsx +43 -0
- package/components/elements/view/ViewTitle.tsx +61 -0
- package/components/hooks/useHitActions.tsx +276 -0
- package/components/hooks/useHitSelection.tsx +102 -0
- package/components/hooks/useMyApi.tsx +64 -0
- package/components/hooks/useMyChart.tsx +164 -0
- package/components/hooks/useMyLocalStorage.ts +20 -0
- package/components/hooks/useMyPreferences.tsx +309 -0
- package/components/hooks/useMySearch.tsx +77 -0
- package/components/hooks/useMySitemap.tsx +248 -0
- package/components/hooks/useMySnackbar.tsx +67 -0
- package/components/hooks/useMyTheme.tsx +34 -0
- package/components/hooks/useMyUser.tsx +39 -0
- package/components/hooks/useMyUserFunctions.tsx +166 -0
- package/components/hooks/useMyUserList.tsx +15 -0
- package/components/hooks/useMyUtils.tsx +16 -0
- package/components/hooks/useScrollRestoration.tsx +37 -0
- package/components/logins/Login.tsx +62 -0
- package/components/logins/auth/OAuthLogin.tsx +49 -0
- package/components/logins/auth/UserPassLogin.tsx +57 -0
- package/components/logins/hooks/useLogin.tsx +101 -0
- package/components/routes/404.tsx +24 -0
- package/components/routes/ErrorBoundary.tsx +44 -0
- package/components/routes/ErrorOccured.tsx +28 -0
- package/components/routes/Logout.tsx +56 -0
- package/components/routes/action/edit/ActionEditor.tsx +358 -0
- package/components/routes/action/shared/ActionReportDisplay.tsx +84 -0
- package/components/routes/action/shared/OperationEntry.tsx +121 -0
- package/components/routes/action/shared/OperationStep.tsx +219 -0
- package/components/routes/action/useMyActionFunctions.tsx +225 -0
- package/components/routes/action/view/ActionDetails.tsx +205 -0
- package/components/routes/action/view/ActionSearch.tsx +249 -0
- package/components/routes/action/view/Integrations.tsx +49 -0
- package/components/routes/admin/users/UserEditor.tsx +55 -0
- package/components/routes/admin/users/UserSearch.tsx +228 -0
- package/components/routes/advanced/QueryBuilder.tsx +584 -0
- package/components/routes/advanced/QueryEditor.tsx +148 -0
- package/components/routes/advanced/RuleModal.tsx +217 -0
- package/components/routes/advanced/eqlCompletionProvider.ts +94 -0
- package/components/routes/advanced/eqlTokenProvider.ts +110 -0
- package/components/routes/advanced/historyCompletionProvider.ts +61 -0
- package/components/routes/advanced/luceneCompletionProvider.ts +111 -0
- package/components/routes/advanced/luceneTokenProvider.ts +131 -0
- package/components/routes/advanced/yamlCompletionProvider.ts +58 -0
- package/components/routes/analytics/AnalyticComments.tsx +218 -0
- package/components/routes/analytics/AnalyticDetails.tsx +343 -0
- package/components/routes/analytics/AnalyticHitComments.tsx +99 -0
- package/components/routes/analytics/AnalyticNotebooks.tsx +185 -0
- package/components/routes/analytics/AnalyticOverview.tsx +165 -0
- package/components/routes/analytics/AnalyticOverviews.tsx +75 -0
- package/components/routes/analytics/AnalyticSearch.tsx +301 -0
- package/components/routes/analytics/AnalyticTemplates.tsx +77 -0
- package/components/routes/analytics/RuleView.tsx +80 -0
- package/components/routes/analytics/TriageSettings.tsx +146 -0
- package/components/routes/analytics/widgets/Assessment.tsx +71 -0
- package/components/routes/analytics/widgets/Created.tsx +61 -0
- package/components/routes/analytics/widgets/Detection.tsx +11 -0
- package/components/routes/analytics/widgets/Escalation.tsx +65 -0
- package/components/routes/analytics/widgets/Stacked.tsx +109 -0
- package/components/routes/analytics/widgets/Status.tsx +21 -0
- package/components/routes/dossiers/DossierCard.tsx +48 -0
- package/components/routes/dossiers/DossierEditor.tsx +247 -0
- package/components/routes/dossiers/Dossiers.tsx +173 -0
- package/components/routes/dossiers/LeadEditor.tsx +122 -0
- package/components/routes/dossiers/LeadForm.tsx +106 -0
- package/components/routes/dossiers/PivotForm.tsx +311 -0
- package/components/routes/help/ActionDocumentation.tsx +77 -0
- package/components/routes/help/ActionIntroductionDocumentation.tsx +128 -0
- package/components/routes/help/ApiDocumentation.tsx +217 -0
- package/components/routes/help/AuthDocumentation.tsx +26 -0
- package/components/routes/help/BundleDocumentation.tsx +17 -0
- package/components/routes/help/ClientDocumentation.tsx +27 -0
- package/components/routes/help/Help.tsx +96 -0
- package/components/routes/help/HitBannerDocumentation.tsx +71 -0
- package/components/routes/help/HitDocumentation.tsx +77 -0
- package/components/routes/help/HitLabelsDocumentation.tsx +57 -0
- package/components/routes/help/HitLinksDocumentation.tsx +23 -0
- package/components/routes/help/HitSchemaDocumentation.tsx +253 -0
- package/components/routes/help/NotebookDocumentation.tsx +28 -0
- package/components/routes/help/OverviewDocumentation.tsx +21 -0
- package/components/routes/help/RetentionDocumentation.tsx +55 -0
- package/components/routes/help/SearchDocumentation.tsx +700 -0
- package/components/routes/help/TemplateDocumentation.tsx +73 -0
- package/components/routes/help/ViewDocumentation.tsx +32 -0
- package/components/routes/help/components/HelpTabs.tsx +47 -0
- package/components/routes/help/markdown/en/actionIntroduction.md +33 -0
- package/components/routes/help/markdown/en/authentication.md +261 -0
- package/components/routes/help/markdown/en/bundles.md +70 -0
- package/components/routes/help/markdown/en/client.md +213 -0
- package/components/routes/help/markdown/en/links.md +37 -0
- package/components/routes/help/markdown/en/notebook.md +157 -0
- package/components/routes/help/markdown/en/retention.md +15 -0
- package/components/routes/help/markdown/en/schema.md +20 -0
- package/components/routes/help/markdown/en/templates.md +23 -0
- package/components/routes/help/markdown/en/views.md +11 -0
- package/components/routes/help/markdown/fr/actionIntroduction.md +33 -0
- package/components/routes/help/markdown/fr/authentication.md +259 -0
- package/components/routes/help/markdown/fr/bundles.md +70 -0
- package/components/routes/help/markdown/fr/client.md +209 -0
- package/components/routes/help/markdown/fr/links.md +37 -0
- package/components/routes/help/markdown/fr/notebook.md +157 -0
- package/components/routes/help/markdown/fr/retention.md +15 -0
- package/components/routes/help/markdown/fr/schema.md +20 -0
- package/components/routes/help/markdown/fr/templates.md +23 -0
- package/components/routes/help/markdown/fr/views.md +11 -0
- package/components/routes/hits/search/BundleParentMenu.tsx +73 -0
- package/components/routes/hits/search/BundleScroller.tsx +8 -0
- package/components/routes/hits/search/CustomSort.tsx +94 -0
- package/components/routes/hits/search/HitBrowser.tsx +318 -0
- package/components/routes/hits/search/HitContextMenu.tsx +260 -0
- package/components/routes/hits/search/HitQuery.tsx +268 -0
- package/components/routes/hits/search/InformationPane.tsx +430 -0
- package/components/routes/hits/search/SearchPane.tsx +291 -0
- package/components/routes/hits/search/ViewLink.tsx +96 -0
- package/components/routes/hits/search/grid/AddColumnModal.tsx +98 -0
- package/components/routes/hits/search/grid/ColumnHeader.tsx +70 -0
- package/components/routes/hits/search/grid/EnhancedCell.tsx +50 -0
- package/components/routes/hits/search/grid/HitGrid.tsx +342 -0
- package/components/routes/hits/search/grid/HitRow.tsx +121 -0
- package/components/routes/hits/search/shared/CustomSpan.tsx +54 -0
- package/components/routes/hits/search/shared/HitFilter.tsx +110 -0
- package/components/routes/hits/search/shared/HitSort.tsx +111 -0
- package/components/routes/hits/search/shared/QuerySettings.tsx +40 -0
- package/components/routes/hits/search/shared/SearchSpan.tsx +68 -0
- package/components/routes/hits/view/HitViewer.tsx +372 -0
- package/components/routes/hits/view/LeadRenderer.tsx +42 -0
- package/components/routes/home/AddNewCard.tsx +295 -0
- package/components/routes/home/AnalyticCard.tsx +68 -0
- package/components/routes/home/EntryWrapper.tsx +54 -0
- package/components/routes/home/ViewCard.tsx +96 -0
- package/components/routes/home/index.tsx +278 -0
- package/components/routes/overviews/OverviewCard.tsx +51 -0
- package/components/routes/overviews/OverviewEditor.tsx +102 -0
- package/components/routes/overviews/OverviewViewer.tsx +387 -0
- package/components/routes/overviews/Overviews.tsx +179 -0
- package/components/routes/overviews/markdownExtendedTokenProvider.ts +296 -0
- package/components/routes/overviews/startingTemplate.ts +40 -0
- package/components/routes/overviews/template/en.md +167 -0
- package/components/routes/overviews/template/fr.md +167 -0
- package/components/routes/settings/AdminSection.tsx +18 -0
- package/components/routes/settings/LocalSection.tsx +168 -0
- package/components/routes/settings/ProfileSection.tsx +138 -0
- package/components/routes/settings/SecuritySection.tsx +95 -0
- package/components/routes/settings/Settings.tsx +51 -0
- package/components/routes/settings/SettingsSection.tsx +28 -0
- package/components/routes/templates/TemplateCard.tsx +38 -0
- package/components/routes/templates/TemplateDnD.tsx +51 -0
- package/components/routes/templates/TemplateEditor.tsx +121 -0
- package/components/routes/templates/TemplateViewer.tsx +285 -0
- package/components/routes/templates/Templates.tsx +187 -0
- package/components/routes/views/ViewComposer.tsx +317 -0
- package/components/routes/views/Views.tsx +379 -0
- package/i18n.ts +50 -0
- package/index.tsx +19 -0
- package/locales/en/help/main.json +13 -0
- package/locales/en/help/search.json +186 -0
- package/locales/en/translation.json +799 -0
- package/locales/fr/help/main.json +13 -0
- package/locales/fr/help/search.json +186 -0
- package/locales/fr/translation.json +797 -0
- package/models/ActionTypes.d.ts +2 -1
- package/models/WithMetadata.d.ts +5 -4
- package/models/entities/HowlerUser.d.ts +2 -1
- package/models/entities/generated/Action.d.ts +2 -1
- package/models/entities/generated/Analytic.d.ts +4 -3
- package/models/entities/generated/Assemblyline.d.ts +9 -8
- package/models/entities/generated/Attachment.d.ts +2 -1
- package/models/entities/generated/Aws.d.ts +3 -2
- package/models/entities/generated/Cbs.d.ts +2 -1
- package/models/entities/generated/Cloud.d.ts +6 -5
- package/models/entities/generated/Container.d.ts +2 -1
- package/models/entities/generated/Destination.d.ts +6 -5
- package/models/entities/generated/Dns.d.ts +3 -2
- package/models/entities/generated/Dossier.d.ts +3 -2
- package/models/entities/generated/Elf.d.ts +4 -3
- package/models/entities/generated/Email.d.ts +9 -8
- package/models/entities/generated/Enrichment.d.ts +3 -2
- package/models/entities/generated/Faas.d.ts +2 -1
- package/models/entities/generated/File.d.ts +2 -1
- package/models/entities/generated/Geo.d.ts +2 -1
- package/models/entities/generated/Hit.d.ts +37 -36
- package/models/entities/generated/HitFile.d.ts +5 -4
- package/models/entities/generated/Howler.d.ts +9 -8
- package/models/entities/generated/HowlerDossier.d.ts +2 -1
- package/models/entities/generated/Http.d.ts +3 -2
- package/models/entities/generated/Image.d.ts +2 -1
- package/models/entities/generated/Indicator.d.ts +3 -2
- package/models/entities/generated/IndicatorFile.d.ts +5 -4
- package/models/entities/generated/Ingress.d.ts +2 -1
- package/models/entities/generated/Lead.d.ts +2 -1
- package/models/entities/generated/Mitre.d.ts +3 -2
- package/models/entities/generated/Observer.d.ts +4 -3
- package/models/entities/generated/Original.d.ts +4 -3
- package/models/entities/generated/Parent.d.ts +5 -4
- package/models/entities/generated/ParentParent.d.ts +6 -5
- package/models/entities/generated/Pivot.d.ts +3 -2
- package/models/entities/generated/Process.d.ts +7 -6
- package/models/entities/generated/ProcessParent.d.ts +7 -6
- package/models/entities/generated/Registry.d.ts +2 -1
- package/models/entities/generated/Request.d.ts +2 -1
- package/models/entities/generated/Response.d.ts +2 -1
- package/models/entities/generated/Sharepoint.d.ts +3 -2
- package/models/entities/generated/Source.d.ts +6 -5
- package/models/entities/generated/SourceOriginal.d.ts +4 -3
- package/models/entities/generated/Threat.d.ts +8 -7
- package/models/entities/generated/ThreatIndicator.d.ts +3 -2
- package/models/entities/generated/Tls.d.ts +3 -2
- package/models/entities/generated/User.d.ts +2 -1
- package/models/entities/generated/UserAgent.d.ts +3 -2
- package/models/entities/generated/UserUser.d.ts +2 -1
- package/models/entities/generated/View.d.ts +2 -1
- package/models/socket/HitUpdate.d.ts +2 -1
- package/package.json +576 -154
- package/plugins/HowlerPlugin.ts +375 -0
- package/plugins/store.ts +152 -0
- package/rest/AxiosClient.ts +81 -0
- package/rest/FetchClient.ts +27 -0
- package/rest/index.ts +12 -0
- package/setupTests.ts +17 -0
- package/utils/Throttler.ts +43 -0
- package/utils/actionUtils.ts +112 -0
- package/utils/constants.tsx +131 -0
- package/utils/hit.json +30356 -0
- package/utils/hitFunctions.ts +10 -0
- package/utils/localStorage.ts +54 -0
- package/utils/menuUtils.ts +274 -0
- package/utils/sessionStorage.ts +59 -0
- package/utils/socketUtils.ts +11 -0
- package/utils/stringUtils.ts +57 -0
- package/utils/utils.ts +222 -0
- package/utils/xsrf.ts +17 -0
- package/Notification-BHyOHttL.js +0 -324
- package/TuiList-D7-CH2oS.js +0 -48
- package/api/action/execute.d.ts +0 -3
- package/api/action/execute.js +0 -5
- package/api/action/index.d.ts +0 -10
- package/api/action/index.js +0 -11
- package/api/action/operations.d.ts +0 -3
- package/api/action/operations.js +0 -5
- package/api/analytic/comments/index.d.ts +0 -13
- package/api/analytic/comments/index.js +0 -9
- package/api/analytic/comments/react.d.ts +0 -3
- package/api/analytic/comments/react.js +0 -6
- package/api/analytic/favourite.d.ts +0 -7
- package/api/analytic/favourite.js +0 -6
- package/api/analytic/index.d.ts +0 -12
- package/api/analytic/index.js +0 -12
- package/api/analytic/notebooks/index.d.ts +0 -10
- package/api/analytic/notebooks/index.js +0 -6
- package/api/analytic/owner.d.ts +0 -5
- package/api/analytic/owner.js +0 -5
- package/api/analytic/rules.d.ts +0 -3
- package/api/analytic/rules.js +0 -5
- package/api/auth/apikey.d.ts +0 -8
- package/api/auth/apikey.js +0 -6
- package/api/auth/index.d.ts +0 -4
- package/api/auth/index.js +0 -6
- package/api/auth/login.d.ts +0 -14
- package/api/auth/login.js +0 -7
- package/api/configs/index.d.ts +0 -3
- package/api/configs/index.js +0 -5
- package/api/dossier/hit.d.ts +0 -2
- package/api/dossier/hit.js +0 -4
- package/api/dossier/index.d.ts +0 -8
- package/api/dossier/index.js +0 -9
- package/api/help.d.ts +0 -55
- package/api/help.js +0 -5
- package/api/hit/assign.d.ts +0 -3
- package/api/hit/assign.js +0 -5
- package/api/hit/comments/index.d.ts +0 -13
- package/api/hit/comments/index.js +0 -9
- package/api/hit/comments/react.d.ts +0 -3
- package/api/hit/comments/react.js +0 -6
- package/api/hit/index.d.ts +0 -35
- package/api/hit/index.js +0 -12
- package/api/hit/labels.d.ts +0 -5
- package/api/hit/labels.js +0 -6
- package/api/hit/overwrite.d.ts +0 -3
- package/api/hit/overwrite.js +0 -5
- package/api/hit/transition.d.ts +0 -4
- package/api/hit/transition.js +0 -5
- package/api/index.d.ts +0 -142
- package/api/index.js +0 -21
- package/api/notebook/environments.d.ts +0 -10
- package/api/notebook/environments.js +0 -5
- package/api/notebook/index.d.ts +0 -14
- package/api/notebook/index.js +0 -6
- package/api/overview/index.d.ts +0 -6
- package/api/overview/index.js +0 -8
- package/api/search/action.d.ts +0 -4
- package/api/search/action.js +0 -5
- package/api/search/analytic.d.ts +0 -4
- package/api/search/analytic.js +0 -5
- package/api/search/count/hit.d.ts +0 -3
- package/api/search/count/hit.js +0 -5
- package/api/search/count/index.d.ts +0 -10
- package/api/search/count/index.js +0 -5
- package/api/search/dossier.d.ts +0 -4
- package/api/search/dossier.js +0 -5
- package/api/search/eql/hit.d.ts +0 -4
- package/api/search/eql/hit.js +0 -5
- package/api/search/facet/hit.d.ts +0 -5
- package/api/search/facet/hit.js +0 -5
- package/api/search/facet/index.d.ts +0 -13
- package/api/search/facet/index.js +0 -5
- package/api/search/fields/hit.d.ts +0 -3
- package/api/search/fields/hit.js +0 -5
- package/api/search/fields/index.d.ts +0 -19
- package/api/search/fields/index.js +0 -8
- package/api/search/fields/user.d.ts +0 -3
- package/api/search/fields/user.js +0 -5
- package/api/search/grouped/hit.d.ts +0 -4
- package/api/search/grouped/hit.js +0 -5
- package/api/search/grouped/index.d.ts +0 -25
- package/api/search/grouped/index.js +0 -6
- package/api/search/grouped/user.d.ts +0 -7
- package/api/search/grouped/user.js +0 -5
- package/api/search/histogram/hit.d.ts +0 -3
- package/api/search/histogram/hit.js +0 -5
- package/api/search/histogram/index.d.ts +0 -14
- package/api/search/histogram/index.js +0 -5
- package/api/search/hit.d.ts +0 -7
- package/api/search/hit.js +0 -7
- package/api/search/index.d.ts +0 -53
- package/api/search/index.js +0 -17
- package/api/search/overview.d.ts +0 -4
- package/api/search/overview.js +0 -5
- package/api/search/sigma/hit.d.ts +0 -4
- package/api/search/sigma/hit.js +0 -5
- package/api/search/template.d.ts +0 -4
- package/api/search/template.js +0 -5
- package/api/search/user.d.ts +0 -7
- package/api/search/user.js +0 -5
- package/api/search/view.d.ts +0 -4
- package/api/search/view.js +0 -5
- package/api/template/index.d.ts +0 -6
- package/api/template/index.js +0 -8
- package/api/user/avatar/index.d.ts +0 -2
- package/api/user/avatar/index.js +0 -5
- package/api/user/groups.d.ts +0 -6
- package/api/user/groups.js +0 -5
- package/api/user/index.d.ts +0 -10
- package/api/user/index.js +0 -9
- package/api/user/whoami.d.ts +0 -3
- package/api/user/whoami.js +0 -5
- package/api/view/favourite.d.ts +0 -7
- package/api/view/favourite.js +0 -6
- package/api/view/index.d.ts +0 -8
- package/api/view/index.js +0 -9
- package/assets/howler-ui.css +0 -21
- package/branding/AppBrand.d.ts +0 -85
- package/branding/AppBrand.js +0 -135
- package/branding/howler/favicon.svg +0 -38
- package/branding/howler/name-dark.svg +0 -21
- package/branding/howler/name-light.svg +0 -21
- package/branding/howler/noswoosh-dark.svg +0 -24
- package/branding/howler/noswoosh-light.svg +0 -28
- package/branding/howler/swoosh-dark.svg +0 -41
- package/branding/howler/swoosh-light.svg +0 -45
- package/commons/components/app/AppConfigs.d.ts +0 -137
- package/commons/components/app/AppConfigs.js +0 -1
- package/commons/components/app/AppConstants.d.ts +0 -10
- package/commons/components/app/AppConstants.js +0 -14
- package/commons/components/app/AppContexts.d.ts +0 -105
- package/commons/components/app/AppContexts.js +0 -23
- package/commons/components/app/AppDefaults.d.ts +0 -6
- package/commons/components/app/AppDefaults.js +0 -42
- package/commons/components/app/AppNotificationService.d.ts +0 -6
- package/commons/components/app/AppNotificationService.js +0 -1
- package/commons/components/app/AppProvider.d.ts +0 -15
- package/commons/components/app/AppProvider.js +0 -44
- package/commons/components/app/AppSearchService.d.ts +0 -21
- package/commons/components/app/AppSearchService.js +0 -1
- package/commons/components/app/AppSkeleton.d.ts +0 -5
- package/commons/components/app/AppSkeleton.js +0 -259
- package/commons/components/app/AppUserService.d.ts +0 -17
- package/commons/components/app/AppUserService.js +0 -1
- package/commons/components/app/hooks/index.d.ts +0 -18
- package/commons/components/app/hooks/index.js +0 -40
- package/commons/components/app/hooks/useApp.d.ts +0 -1
- package/commons/components/app/hooks/useApp.js +0 -8
- package/commons/components/app/hooks/useAppBanner.d.ts +0 -1
- package/commons/components/app/hooks/useAppBanner.js +0 -14
- package/commons/components/app/hooks/useAppBar.d.ts +0 -1
- package/commons/components/app/hooks/useAppBar.js +0 -8
- package/commons/components/app/hooks/useAppBarHeight.d.ts +0 -2
- package/commons/components/app/hooks/useAppBarHeight.js +0 -26
- package/commons/components/app/hooks/useAppBarScrollTrigger.d.ts +0 -1
- package/commons/components/app/hooks/useAppBarScrollTrigger.js +0 -10
- package/commons/components/app/hooks/useAppBreadcrumbs.d.ts +0 -1
- package/commons/components/app/hooks/useAppBreadcrumbs.js +0 -8
- package/commons/components/app/hooks/useAppConfigs.d.ts +0 -59
- package/commons/components/app/hooks/useAppConfigs.js +0 -39
- package/commons/components/app/hooks/useAppLanguage.d.ts +0 -6
- package/commons/components/app/hooks/useAppLanguage.js +0 -23
- package/commons/components/app/hooks/useAppLayout.d.ts +0 -1
- package/commons/components/app/hooks/useAppLayout.js +0 -8
- package/commons/components/app/hooks/useAppLeftNav.d.ts +0 -1
- package/commons/components/app/hooks/useAppLeftNav.js +0 -8
- package/commons/components/app/hooks/useAppLogo.d.ts +0 -1
- package/commons/components/app/hooks/useAppLogo.js +0 -11
- package/commons/components/app/hooks/useAppNotification.d.ts +0 -1
- package/commons/components/app/hooks/useAppNotification.js +0 -8
- package/commons/components/app/hooks/useAppQuickSearch.d.ts +0 -1
- package/commons/components/app/hooks/useAppQuickSearch.js +0 -8
- package/commons/components/app/hooks/useAppSearchService.d.ts +0 -2
- package/commons/components/app/hooks/useAppSearchService.js +0 -8
- package/commons/components/app/hooks/useAppSitemap.d.ts +0 -13
- package/commons/components/app/hooks/useAppSitemap.js +0 -60
- package/commons/components/app/hooks/useAppSwitcher.d.ts +0 -1
- package/commons/components/app/hooks/useAppSwitcher.js +0 -8
- package/commons/components/app/hooks/useAppTheme.d.ts +0 -8
- package/commons/components/app/hooks/useAppTheme.js +0 -20
- package/commons/components/app/hooks/useAppUser.d.ts +0 -2
- package/commons/components/app/hooks/useAppUser.js +0 -8
- package/commons/components/app/providers/AppBarProvider.d.ts +0 -10
- package/commons/components/app/providers/AppBarProvider.js +0 -35
- package/commons/components/app/providers/AppBreadcrumbsProvider.d.ts +0 -6
- package/commons/components/app/providers/AppBreadcrumbsProvider.js +0 -41
- package/commons/components/app/providers/AppLayoutProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLayoutProvider.js +0 -95
- package/commons/components/app/providers/AppLeftNavProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLeftNavProvider.js +0 -29
- package/commons/components/app/providers/AppNotificationProvider.d.ts +0 -6
- package/commons/components/app/providers/AppNotificationProvider.js +0 -33
- package/commons/components/app/providers/AppQuickSearchProvider.d.ts +0 -8
- package/commons/components/app/providers/AppQuickSearchProvider.js +0 -26
- package/commons/components/app/providers/AppSearchServiceProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSearchServiceProvider.js +0 -49
- package/commons/components/app/providers/AppSnackbarProvider.d.ts +0 -3
- package/commons/components/app/providers/AppSnackbarProvider.js +0 -14
- package/commons/components/app/providers/AppSwitcherProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSwitcherProvider.js +0 -15
- package/commons/components/app/providers/AppUserProvider.d.ts +0 -8
- package/commons/components/app/providers/AppUserProvider.js +0 -18
- package/commons/components/breadcrumbs/BreadcrumbIcon.d.ts +0 -6
- package/commons/components/breadcrumbs/BreadcrumbIcon.js +0 -16
- package/commons/components/breadcrumbs/BreadcrumbLastItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLastItem.js +0 -40
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.js +0 -44
- package/commons/components/breadcrumbs/BreadcrumbList.d.ts +0 -11
- package/commons/components/breadcrumbs/BreadcrumbList.js +0 -74
- package/commons/components/breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/commons/components/breadcrumbs/Breadcrumbs.js +0 -45
- package/commons/components/display/AppAvatar.d.ts +0 -8
- package/commons/components/display/AppAvatar.js +0 -28
- package/commons/components/display/AppInfoPanel.d.ts +0 -5
- package/commons/components/display/AppInfoPanel.js +0 -33
- package/commons/components/display/AppListEmpty.d.ts +0 -2
- package/commons/components/display/AppListEmpty.js +0 -8
- package/commons/components/display/AppToc.d.ts +0 -19
- package/commons/components/display/AppToc.js +0 -116
- package/commons/components/display/hooks/useAppColor.d.ts +0 -5
- package/commons/components/display/hooks/useAppColor.js +0 -15
- package/commons/components/leftnav/LeftNavDrawer.d.ts +0 -2
- package/commons/components/leftnav/LeftNavDrawer.js +0 -141
- package/commons/components/leftnav/LeftNavGroup.d.ts +0 -7
- package/commons/components/leftnav/LeftNavGroup.js +0 -125
- package/commons/components/leftnav/LeftNavItem.d.ts +0 -10
- package/commons/components/leftnav/LeftNavItem.js +0 -50
- package/commons/components/notification/FeedModels.d.ts +0 -64
- package/commons/components/notification/FeedModels.js +0 -91
- package/commons/components/notification/Notification.d.ts +0 -10
- package/commons/components/notification/Notification.js +0 -8
- package/commons/components/notification/elements/NotificationCloseButton.d.ts +0 -3
- package/commons/components/notification/elements/NotificationCloseButton.js +0 -8
- package/commons/components/notification/elements/NotificationContainer.d.ts +0 -16
- package/commons/components/notification/elements/NotificationContainer.js +0 -10
- package/commons/components/notification/elements/NotificationEndOfPage.d.ts +0 -5
- package/commons/components/notification/elements/NotificationEndOfPage.js +0 -41
- package/commons/components/notification/elements/NotificationError.d.ts +0 -2
- package/commons/components/notification/elements/NotificationError.js +0 -27
- package/commons/components/notification/elements/NotificationHeader.d.ts +0 -8
- package/commons/components/notification/elements/NotificationHeader.js +0 -41
- package/commons/components/notification/elements/NotificationItems.d.ts +0 -12
- package/commons/components/notification/elements/NotificationItems.js +0 -10
- package/commons/components/notification/elements/NotificationSkeleton.d.ts +0 -2
- package/commons/components/notification/elements/NotificationSkeleton.js +0 -54
- package/commons/components/notification/elements/NotificationTopNavButton.d.ts +0 -9
- package/commons/components/notification/elements/NotificationTopNavButton.js +0 -14
- package/commons/components/notification/elements/item/NotificationItem.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItem.js +0 -10
- package/commons/components/notification/elements/item/NotificationItemAuthor.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItemAuthor.js +0 -63
- package/commons/components/notification/elements/item/NotificationItemContent.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemContent.js +0 -9
- package/commons/components/notification/elements/item/NotificationItemDate.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemDate.js +0 -9
- package/commons/components/notification/elements/item/NotificationItemImage.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemImage.js +0 -20
- package/commons/components/notification/elements/item/NotificationItemTag.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemTag.js +0 -16
- package/commons/components/notification/elements/item/NotificationItemTitle.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemTitle.js +0 -8
- package/commons/components/notification/index.d.ts +0 -2
- package/commons/components/notification/index.js +0 -13
- package/commons/components/pages/PageCardCentered.d.ts +0 -5
- package/commons/components/pages/PageCardCentered.js +0 -35
- package/commons/components/pages/PageCenter.d.ts +0 -8
- package/commons/components/pages/PageCenter.js +0 -39
- package/commons/components/pages/PageContent.d.ts +0 -7
- package/commons/components/pages/PageContent.js +0 -11
- package/commons/components/pages/PageFullScreen.d.ts +0 -10
- package/commons/components/pages/PageFullScreen.js +0 -57
- package/commons/components/pages/PageFullWidth.d.ts +0 -11
- package/commons/components/pages/PageFullWidth.js +0 -18
- package/commons/components/pages/PageHeader.d.ts +0 -23
- package/commons/components/pages/PageHeader.js +0 -83
- package/commons/components/pages/hooks/usePageProps.d.ts +0 -24
- package/commons/components/pages/hooks/usePageProps.js +0 -28
- package/commons/components/search/AppSearch.d.ts +0 -1
- package/commons/components/search/AppSearch.js +0 -211
- package/commons/components/search/AppSearchInput.d.ts +0 -11
- package/commons/components/search/AppSearchInput.js +0 -68
- package/commons/components/search/AppSearchResult.d.ts +0 -4
- package/commons/components/search/AppSearchResult.js +0 -43
- package/commons/components/topnav/AppBar.d.ts +0 -5
- package/commons/components/topnav/AppBar.js +0 -119
- package/commons/components/topnav/AppName.d.ts +0 -4
- package/commons/components/topnav/AppName.js +0 -52
- package/commons/components/topnav/AppSwitcher.d.ts +0 -2
- package/commons/components/topnav/AppSwitcher.js +0 -76
- package/commons/components/topnav/Notifications.d.ts +0 -2
- package/commons/components/topnav/Notifications.js +0 -19
- package/commons/components/topnav/ThemeSelection.d.ts +0 -2
- package/commons/components/topnav/ThemeSelection.js +0 -89
- package/commons/components/topnav/ThemeSelectionIcon.d.ts +0 -2
- package/commons/components/topnav/ThemeSelectionIcon.js +0 -31
- package/commons/components/topnav/UserProfile.d.ts +0 -5
- package/commons/components/topnav/UserProfile.js +0 -144
- package/commons/components/utils/hooks/useClipboard.d.ts +0 -3
- package/commons/components/utils/hooks/useClipboard.js +0 -31
- package/commons/components/utils/hooks/useEnv.d.ts +0 -1
- package/commons/components/utils/hooks/useEnv.js +0 -14
- package/commons/components/utils/hooks/useFullscreenStatus.d.ts +0 -2
- package/commons/components/utils/hooks/useFullscreenStatus.js +0 -37
- package/commons/components/utils/hooks/useGravatar.d.ts +0 -2
- package/commons/components/utils/hooks/useGravatar.js +0 -11
- package/commons/components/utils/hooks/useLocalStorage.d.ts +0 -12
- package/commons/components/utils/hooks/useLocalStorage.js +0 -50
- package/commons/components/utils/hooks/useLocalStorageItem.d.ts +0 -14
- package/commons/components/utils/hooks/useLocalStorageItem.js +0 -31
- package/commons/components/utils/hooks/useThemeBuilder.d.ts +0 -7
- package/commons/components/utils/hooks/useThemeBuilder.js +0 -61
- package/commons/components/utils/keyboard.d.ts +0 -30
- package/commons/components/utils/keyboard.js +0 -70
- package/components/app/App.d.ts +0 -3
- package/components/app/App.js +0 -342
- package/components/app/AppContainer.d.ts +0 -3
- package/components/app/AppContainer.js +0 -12
- package/components/app/drawers/ApiKeyDrawer.d.ts +0 -6
- package/components/app/drawers/ApiKeyDrawer.js +0 -143
- package/components/app/drawers/AppDrawerType.d.ts +0 -6
- package/components/app/drawers/AppDrawerType.js +0 -1
- package/components/app/drawers/AssignUserDrawer.d.ts +0 -9
- package/components/app/drawers/AssignUserDrawer.js +0 -104
- package/components/app/drawers/ViewGroupsDrawer.d.ts +0 -7
- package/components/app/drawers/ViewGroupsDrawer.js +0 -11
- package/components/app/hooks/useMatchers.d.ts +0 -9
- package/components/app/hooks/useMatchers.js +0 -84
- package/components/app/hooks/useTitle.d.ts +0 -2
- package/components/app/hooks/useTitle.js +0 -64
- package/components/app/providers/AnalyticProvider.d.ts +0 -10
- package/components/app/providers/AnalyticProvider.js +0 -63
- package/components/app/providers/ApiConfigProvider.d.ts +0 -9
- package/components/app/providers/ApiConfigProvider.js +0 -24
- package/components/app/providers/AppDrawerProvider.d.ts +0 -10
- package/components/app/providers/AppDrawerProvider.js +0 -38
- package/components/app/providers/AvatarProvider.d.ts +0 -7
- package/components/app/providers/AvatarProvider.js +0 -32
- package/components/app/providers/CustomPluginProvider.d.ts +0 -3
- package/components/app/providers/CustomPluginProvider.js +0 -16
- package/components/app/providers/FavouritesProvider.d.ts +0 -4
- package/components/app/providers/FavouritesProvider.js +0 -136
- package/components/app/providers/FieldProvider.d.ts +0 -9
- package/components/app/providers/FieldProvider.js +0 -22
- package/components/app/providers/HitProvider.d.ts +0 -22
- package/components/app/providers/HitProvider.js +0 -103
- package/components/app/providers/HitSearchProvider.d.ts +0 -27
- package/components/app/providers/HitSearchProvider.js +0 -188
- package/components/app/providers/LocalStorageProvider.d.ts +0 -13
- package/components/app/providers/LocalStorageProvider.js +0 -49
- package/components/app/providers/ModalProvider.d.ts +0 -16
- package/components/app/providers/ModalProvider.js +0 -34
- package/components/app/providers/OverviewProvider.d.ts +0 -13
- package/components/app/providers/OverviewProvider.js +0 -68
- package/components/app/providers/ParameterProvider.d.ts +0 -26
- package/components/app/providers/ParameterProvider.js +0 -166
- package/components/app/providers/SocketProvider.d.ts +0 -57
- package/components/app/providers/SocketProvider.js +0 -175
- package/components/app/providers/UserListProvider.d.ts +0 -12
- package/components/app/providers/UserListProvider.js +0 -40
- package/components/app/providers/ViewProvider.d.ts +0 -23
- package/components/app/providers/ViewProvider.js +0 -163
- package/components/elements/Comment.d.ts +0 -17
- package/components/elements/Comment.js +0 -258
- package/components/elements/EditRow.d.ts +0 -14
- package/components/elements/EditRow.js +0 -208
- package/components/elements/PluginChip.d.ts +0 -9
- package/components/elements/PluginChip.js +0 -24
- package/components/elements/PluginTypography.d.ts +0 -9
- package/components/elements/PluginTypography.js +0 -24
- package/components/elements/ThemedEditor.d.ts +0 -3
- package/components/elements/ThemedEditor.js +0 -119
- package/components/elements/UserList.d.ts +0 -9
- package/components/elements/UserList.js +0 -67
- package/components/elements/addons/buttons/CustomButton.d.ts +0 -12
- package/components/elements/addons/buttons/CustomButton.js +0 -59
- package/components/elements/addons/buttons/CustomIconButton.d.ts +0 -15
- package/components/elements/addons/buttons/CustomIconButton.js +0 -81
- package/components/elements/addons/buttons/index.d.ts +0 -3
- package/components/elements/addons/buttons/index.js +0 -8
- package/components/elements/addons/layout/FlexOne.d.ts +0 -4
- package/components/elements/addons/layout/FlexOne.js +0 -9
- package/components/elements/addons/layout/FlexPort.d.ts +0 -12
- package/components/elements/addons/layout/FlexPort.js +0 -32
- package/components/elements/addons/layout/FlexVertical.d.ts +0 -8
- package/components/elements/addons/layout/FlexVertical.js +0 -23
- package/components/elements/addons/layout/vsbox/VSBox.d.ts +0 -16
- package/components/elements/addons/layout/vsbox/VSBox.js +0 -31
- package/components/elements/addons/layout/vsbox/VSBoxContent.d.ts +0 -4
- package/components/elements/addons/layout/vsbox/VSBoxContent.js +0 -8
- package/components/elements/addons/layout/vsbox/VSBoxElement.d.ts +0 -8
- package/components/elements/addons/layout/vsbox/VSBoxElement.js +0 -33
- package/components/elements/addons/layout/vsbox/VSBoxHeader.d.ts +0 -5
- package/components/elements/addons/layout/vsbox/VSBoxHeader.js +0 -36
- package/components/elements/addons/lists/TuiList.d.ts +0 -8
- package/components/elements/addons/lists/TuiList.js +0 -8
- package/components/elements/addons/lists/TuiListBase.d.ts +0 -10
- package/components/elements/addons/lists/TuiListBase.js +0 -82
- package/components/elements/addons/lists/TuiListElement.d.ts +0 -9
- package/components/elements/addons/lists/TuiListElement.js +0 -8
- package/components/elements/addons/lists/TuiListMenu.d.ts +0 -49
- package/components/elements/addons/lists/TuiListMenu.js +0 -45
- package/components/elements/addons/lists/TuiListProvider.d.ts +0 -22
- package/components/elements/addons/lists/TuiListProvider.js +0 -125
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.d.ts +0 -5
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.js +0 -43
- package/components/elements/addons/lists/index.d.ts +0 -19
- package/components/elements/addons/lists/index.js +0 -7
- package/components/elements/addons/lists/table/TuiTable.d.ts +0 -14
- package/components/elements/addons/lists/table/TuiTable.js +0 -114
- package/components/elements/addons/lists/table/TuiTableBody.d.ts +0 -14
- package/components/elements/addons/lists/table/TuiTableBody.js +0 -47
- package/components/elements/addons/lists/table/TuiTableHead.d.ts +0 -8
- package/components/elements/addons/lists/table/TuiTableHead.js +0 -21
- package/components/elements/addons/lists/table/TuiTableHeader.d.ts +0 -6
- package/components/elements/addons/lists/table/TuiTableHeader.js +0 -11
- package/components/elements/addons/lists/table/TuiTableLayout.d.ts +0 -12
- package/components/elements/addons/lists/table/TuiTableLayout.js +0 -47
- package/components/elements/addons/lists/table/index.d.ts +0 -15
- package/components/elements/addons/lists/table/index.js +0 -4
- package/components/elements/addons/search/SearchPagination.d.ts +0 -9
- package/components/elements/addons/search/SearchPagination.js +0 -17
- package/components/elements/addons/search/SearchTotal.d.ts +0 -8
- package/components/elements/addons/search/SearchTotal.js +0 -27
- package/components/elements/addons/search/phrase/Phrase.d.ts +0 -19
- package/components/elements/addons/search/phrase/Phrase.js +0 -137
- package/components/elements/addons/search/phrase/PhraseConsumer.d.ts +0 -13
- package/components/elements/addons/search/phrase/PhraseConsumer.js +0 -30
- package/components/elements/addons/search/phrase/PhraseLexer.d.ts +0 -26
- package/components/elements/addons/search/phrase/PhraseLexer.js +0 -121
- package/components/elements/addons/search/phrase/index.d.ts +0 -40
- package/components/elements/addons/search/phrase/index.js +0 -49
- package/components/elements/addons/search/phrase/word/WordLexer.d.ts +0 -5
- package/components/elements/addons/search/phrase/word/WordLexer.js +0 -11
- package/components/elements/addons/search/phrase/word/WordSuggester.d.ts +0 -6
- package/components/elements/addons/search/phrase/word/WordSuggester.js +0 -11
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.d.ts +0 -7
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.js +0 -20
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.d.ts +0 -7
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.js +0 -20
- package/components/elements/display/ActionButton.d.ts +0 -8
- package/components/elements/display/ActionButton.js +0 -36
- package/components/elements/display/Classification.d.ts +0 -3
- package/components/elements/display/Classification.js +0 -31
- package/components/elements/display/DocumentationButton.d.ts +0 -3
- package/components/elements/display/DocumentationButton.js +0 -36
- package/components/elements/display/DynamicTabs.d.ts +0 -8
- package/components/elements/display/DynamicTabs.js +0 -26
- package/components/elements/display/HandlebarsMarkdown.d.ts +0 -9
- package/components/elements/display/HandlebarsMarkdown.js +0 -77
- package/components/elements/display/HowlerAvatar.d.ts +0 -6
- package/components/elements/display/HowlerAvatar.js +0 -53
- package/components/elements/display/HowlerAvatarHeader.d.ts +0 -6
- package/components/elements/display/HowlerAvatarHeader.js +0 -30
- package/components/elements/display/HowlerCard.d.ts +0 -3
- package/components/elements/display/HowlerCard.js +0 -8
- package/components/elements/display/Image.d.ts +0 -3
- package/components/elements/display/Image.js +0 -45
- package/components/elements/display/ItemManager.d.ts +0 -25
- package/components/elements/display/ItemManager.js +0 -119
- package/components/elements/display/Markdown.d.ts +0 -10
- package/components/elements/display/Markdown.js +0 -156
- package/components/elements/display/Modal.d.ts +0 -3
- package/components/elements/display/Modal.js +0 -39
- package/components/elements/display/Notebook.d.ts +0 -4
- package/components/elements/display/Notebook.js +0 -9
- package/components/elements/display/QueryResultText.d.ts +0 -6
- package/components/elements/display/QueryResultText.js +0 -28
- package/components/elements/display/TextDivider.d.ts +0 -3
- package/components/elements/display/TextDivider.js +0 -42
- package/components/elements/display/TypingIndicator.d.ts +0 -2
- package/components/elements/display/TypingIndicator.js +0 -44
- package/components/elements/display/UserPageWrapper.d.ts +0 -6
- package/components/elements/display/UserPageWrapper.js +0 -11
- package/components/elements/display/features/DevelopmentBanner.d.ts +0 -3
- package/components/elements/display/features/DevelopmentBanner.js +0 -19
- package/components/elements/display/features/DevelopmentIcon.d.ts +0 -3
- package/components/elements/display/features/DevelopmentIcon.js +0 -17
- package/components/elements/display/handlebars/helpers.d.ts +0 -12
- package/components/elements/display/handlebars/helpers.js +0 -229
- package/components/elements/display/icons/BundleButton.d.ts +0 -6
- package/components/elements/display/icons/BundleButton.js +0 -70
- package/components/elements/display/icons/Iconified.d.ts +0 -9
- package/components/elements/display/icons/Iconified.js +0 -14
- package/components/elements/display/icons/SocketBadge.d.ts +0 -5
- package/components/elements/display/icons/SocketBadge.js +0 -79
- package/components/elements/display/json/JSONViewer.d.ts +0 -8
- package/components/elements/display/json/JSONViewer.js +0 -86
- package/components/elements/display/markdownPlugins/tabs.d.ts +0 -3
- package/components/elements/display/markdownPlugins/tabs.js +0 -66
- package/components/elements/display/modals/ConfirmDeleteModal.d.ts +0 -5
- package/components/elements/display/modals/ConfirmDeleteModal.js +0 -24
- package/components/elements/display/modals/ConfirmNotebookModal.d.ts +0 -5
- package/components/elements/display/modals/ConfirmNotebookModal.js +0 -24
- package/components/elements/display/modals/CreateActionModal.d.ts +0 -5
- package/components/elements/display/modals/CreateActionModal.js +0 -54
- package/components/elements/display/modals/LoginErrorModal.d.ts +0 -5
- package/components/elements/display/modals/LoginErrorModal.js +0 -24
- package/components/elements/display/modals/RationaleModal.d.ts +0 -5
- package/components/elements/display/modals/RationaleModal.js +0 -50
- package/components/elements/hit/HitActions.d.ts +0 -6
- package/components/elements/hit/HitActions.js +0 -255
- package/components/elements/hit/HitBanner.d.ts +0 -15
- package/components/elements/hit/HitBanner.js +0 -330
- package/components/elements/hit/HitBannerTooltip.d.ts +0 -6
- package/components/elements/hit/HitBannerTooltip.js +0 -39
- package/components/elements/hit/HitCard.d.ts +0 -7
- package/components/elements/hit/HitCard.js +0 -33
- package/components/elements/hit/HitComments.d.ts +0 -11
- package/components/elements/hit/HitComments.js +0 -280
- package/components/elements/hit/HitDetails.d.ts +0 -5
- package/components/elements/hit/HitDetails.js +0 -238
- package/components/elements/hit/HitLabels.d.ts +0 -6
- package/components/elements/hit/HitLabels.js +0 -210
- package/components/elements/hit/HitLayout.d.ts +0 -5
- package/components/elements/hit/HitLayout.js +0 -9
- package/components/elements/hit/HitNotebooks.d.ts +0 -8
- package/components/elements/hit/HitNotebooks.js +0 -213
- package/components/elements/hit/HitOutline.d.ts +0 -9
- package/components/elements/hit/HitOutline.js +0 -43
- package/components/elements/hit/HitOverview.d.ts +0 -6
- package/components/elements/hit/HitOverview.js +0 -35
- package/components/elements/hit/HitQuickSearch.d.ts +0 -8
- package/components/elements/hit/HitQuickSearch.js +0 -118
- package/components/elements/hit/HitRelated.d.ts +0 -6
- package/components/elements/hit/HitRelated.js +0 -10
- package/components/elements/hit/HitShortcuts.d.ts +0 -5
- package/components/elements/hit/HitShortcuts.js +0 -9
- package/components/elements/hit/HitSummary.d.ts +0 -11
- package/components/elements/hit/HitSummary.js +0 -234
- package/components/elements/hit/HitWorklog.d.ts +0 -10
- package/components/elements/hit/HitWorklog.js +0 -163
- package/components/elements/hit/actions/ButtonActions.d.ts +0 -12
- package/components/elements/hit/actions/ButtonActions.js +0 -215
- package/components/elements/hit/actions/DropdownActions.d.ts +0 -12
- package/components/elements/hit/actions/DropdownActions.js +0 -98
- package/components/elements/hit/actions/SharedComponents.d.ts +0 -18
- package/components/elements/hit/actions/SharedComponents.js +0 -27
- package/components/elements/hit/aggregate/HitGraph.d.ts +0 -5
- package/components/elements/hit/aggregate/HitGraph.js +0 -321
- package/components/elements/hit/elements/Assigned.d.ts +0 -9
- package/components/elements/hit/elements/Assigned.js +0 -65
- package/components/elements/hit/elements/EscalationChip.d.ts +0 -9
- package/components/elements/hit/elements/EscalationChip.js +0 -24
- package/components/elements/hit/elements/HitTimestamp.d.ts +0 -8
- package/components/elements/hit/elements/HitTimestamp.js +0 -73
- package/components/elements/hit/outlines/DefaultOutline.d.ts +0 -12
- package/components/elements/hit/outlines/DefaultOutline.js +0 -77
- package/components/elements/hit/outlines/al/AssemblyLineRules.d.ts +0 -5
- package/components/elements/hit/outlines/al/AssemblyLineRules.js +0 -87
- package/components/elements/hit/related/PivotLink.d.ts +0 -10
- package/components/elements/hit/related/PivotLink.js +0 -49
- package/components/elements/hit/related/RelatedIcon.d.ts +0 -8
- package/components/elements/hit/related/RelatedIcon.js +0 -50
- package/components/elements/hit/related/RelatedLink.d.ts +0 -8
- package/components/elements/hit/related/RelatedLink.js +0 -42
- package/components/elements/view/ViewTitle.d.ts +0 -10
- package/components/elements/view/ViewTitle.js +0 -45
- package/components/hooks/useHitActions.d.ts +0 -14
- package/components/hooks/useHitActions.js +0 -229
- package/components/hooks/useHitSelection.d.ts +0 -8
- package/components/hooks/useHitSelection.js +0 -86
- package/components/hooks/useMyApi.d.ts +0 -10
- package/components/hooks/useMyApi.js +0 -49
- package/components/hooks/useMyChart.d.ts +0 -275
- package/components/hooks/useMyChart.js +0 -131
- package/components/hooks/useMyLocalStorage.d.ts +0 -17
- package/components/hooks/useMyLocalStorage.js +0 -19
- package/components/hooks/useMyPreferences.d.ts +0 -3
- package/components/hooks/useMyPreferences.js +0 -272
- package/components/hooks/useMySearch.d.ts +0 -4
- package/components/hooks/useMySearch.js +0 -59
- package/components/hooks/useMySitemap.d.ts +0 -3
- package/components/hooks/useMySitemap.js +0 -206
- package/components/hooks/useMySnackbar.d.ts +0 -8
- package/components/hooks/useMySnackbar.js +0 -56
- package/components/hooks/useMyTheme.d.ts +0 -3
- package/components/hooks/useMyTheme.js +0 -30
- package/components/hooks/useMyUser.d.ts +0 -4
- package/components/hooks/useMyUser.js +0 -31
- package/components/hooks/useMyUserFunctions.d.ts +0 -118
- package/components/hooks/useMyUserFunctions.js +0 -143
- package/components/hooks/useMyUserList.d.ts +0 -4
- package/components/hooks/useMyUserList.js +0 -12
- package/components/hooks/useMyUtils.d.ts +0 -4
- package/components/hooks/useMyUtils.js +0 -18
- package/components/hooks/useScrollRestoration.d.ts +0 -7
- package/components/hooks/useScrollRestoration.js +0 -25
- package/components/logins/Login.d.ts +0 -2
- package/components/logins/Login.js +0 -47
- package/components/logins/auth/OAuthLogin.d.ts +0 -6
- package/components/logins/auth/OAuthLogin.js +0 -40
- package/components/logins/auth/UserPassLogin.d.ts +0 -2
- package/components/logins/auth/UserPassLogin.js +0 -51
- package/components/logins/hooks/useLogin.d.ts +0 -7
- package/components/logins/hooks/useLogin.js +0 -87
- package/components/routes/404.d.ts +0 -3
- package/components/routes/404.js +0 -16
- package/components/routes/ErrorBoundary.d.ts +0 -14
- package/components/routes/ErrorBoundary.js +0 -32
- package/components/routes/ErrorOccured.d.ts +0 -3
- package/components/routes/ErrorOccured.js +0 -20
- package/components/routes/Logout.d.ts +0 -3
- package/components/routes/Logout.js +0 -46
- package/components/routes/action/edit/ActionEditor.d.ts +0 -14
- package/components/routes/action/edit/ActionEditor.js +0 -275
- package/components/routes/action/shared/ActionReportDisplay.d.ts +0 -7
- package/components/routes/action/shared/ActionReportDisplay.js +0 -51
- package/components/routes/action/shared/OperationEntry.d.ts +0 -13
- package/components/routes/action/shared/OperationEntry.js +0 -84
- package/components/routes/action/shared/OperationStep.d.ts +0 -11
- package/components/routes/action/shared/OperationStep.js +0 -151
- package/components/routes/action/useMyActionFunctions.d.ts +0 -19
- package/components/routes/action/useMyActionFunctions.js +0 -201
- package/components/routes/action/view/ActionDetails.d.ts +0 -2
- package/components/routes/action/view/ActionDetails.js +0 -177
- package/components/routes/action/view/ActionSearch.d.ts +0 -3
- package/components/routes/action/view/ActionSearch.js +0 -214
- package/components/routes/action/view/Integrations.d.ts +0 -3
- package/components/routes/action/view/Integrations.js +0 -34
- package/components/routes/admin/users/UserEditor.d.ts +0 -3
- package/components/routes/admin/users/UserEditor.js +0 -57
- package/components/routes/admin/users/UserSearch.d.ts +0 -3
- package/components/routes/admin/users/UserSearch.js +0 -179
- package/components/routes/advanced/QueryBuilder.d.ts +0 -3
- package/components/routes/advanced/QueryBuilder.js +0 -497
- package/components/routes/advanced/QueryEditor.d.ts +0 -14
- package/components/routes/advanced/QueryEditor.js +0 -117
- package/components/routes/advanced/RuleModal.d.ts +0 -7
- package/components/routes/advanced/RuleModal.js +0 -189
- package/components/routes/advanced/eqlCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/eqlCompletionProvider.js +0 -81
- package/components/routes/advanced/eqlTokenProvider.d.ts +0 -8
- package/components/routes/advanced/eqlTokenProvider.js +0 -84
- package/components/routes/advanced/historyCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/historyCompletionProvider.js +0 -51
- package/components/routes/advanced/luceneCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/luceneCompletionProvider.js +0 -91
- package/components/routes/advanced/luceneTokenProvider.d.ts +0 -9
- package/components/routes/advanced/luceneTokenProvider.js +0 -101
- package/components/routes/advanced/yamlCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/yamlCompletionProvider.js +0 -50
- package/components/routes/analytics/AnalyticComments.d.ts +0 -7
- package/components/routes/analytics/AnalyticComments.js +0 -190
- package/components/routes/analytics/AnalyticDetails.d.ts +0 -2
- package/components/routes/analytics/AnalyticDetails.js +0 -254
- package/components/routes/analytics/AnalyticHitComments.d.ts +0 -6
- package/components/routes/analytics/AnalyticHitComments.js +0 -71
- package/components/routes/analytics/AnalyticNotebooks.d.ts +0 -7
- package/components/routes/analytics/AnalyticNotebooks.js +0 -138
- package/components/routes/analytics/AnalyticOverview.d.ts +0 -7
- package/components/routes/analytics/AnalyticOverview.js +0 -103
- package/components/routes/analytics/AnalyticOverviews.d.ts +0 -6
- package/components/routes/analytics/AnalyticOverviews.js +0 -72
- package/components/routes/analytics/AnalyticSearch.d.ts +0 -3
- package/components/routes/analytics/AnalyticSearch.js +0 -233
- package/components/routes/analytics/AnalyticTemplates.d.ts +0 -6
- package/components/routes/analytics/AnalyticTemplates.js +0 -70
- package/components/routes/analytics/RuleView.d.ts +0 -7
- package/components/routes/analytics/RuleView.js +0 -74
- package/components/routes/analytics/TriageSettings.d.ts +0 -7
- package/components/routes/analytics/TriageSettings.js +0 -104
- package/components/routes/analytics/widgets/Assessment.d.ts +0 -5
- package/components/routes/analytics/widgets/Assessment.js +0 -58
- package/components/routes/analytics/widgets/Created.d.ts +0 -5
- package/components/routes/analytics/widgets/Created.js +0 -52
- package/components/routes/analytics/widgets/Detection.d.ts +0 -6
- package/components/routes/analytics/widgets/Detection.js +0 -11
- package/components/routes/analytics/widgets/Escalation.d.ts +0 -6
- package/components/routes/analytics/widgets/Escalation.js +0 -51
- package/components/routes/analytics/widgets/Stacked.d.ts +0 -7
- package/components/routes/analytics/widgets/Stacked.js +0 -87
- package/components/routes/analytics/widgets/Status.d.ts +0 -5
- package/components/routes/analytics/widgets/Status.js +0 -21
- package/components/routes/dossiers/DossierCard.d.ts +0 -8
- package/components/routes/dossiers/DossierCard.js +0 -24
- package/components/routes/dossiers/DossierEditor.d.ts +0 -2
- package/components/routes/dossiers/DossierEditor.js +0 -198
- package/components/routes/dossiers/Dossiers.d.ts +0 -2
- package/components/routes/dossiers/Dossiers.js +0 -146
- package/components/routes/dossiers/LeadEditor.d.ts +0 -13
- package/components/routes/dossiers/LeadEditor.js +0 -119
- package/components/routes/dossiers/LeadForm.d.ts +0 -8
- package/components/routes/dossiers/LeadForm.js +0 -98
- package/components/routes/dossiers/PivotForm.d.ts +0 -13
- package/components/routes/dossiers/PivotForm.js +0 -278
- package/components/routes/help/ActionDocumentation.d.ts +0 -8
- package/components/routes/help/ActionDocumentation.js +0 -62
- package/components/routes/help/ActionIntroductionDocumentation.d.ts +0 -3
- package/components/routes/help/ActionIntroductionDocumentation.js +0 -103
- package/components/routes/help/ApiDocumentation.d.ts +0 -3
- package/components/routes/help/ApiDocumentation.js +0 -139
- package/components/routes/help/AuthDocumentation.d.ts +0 -3
- package/components/routes/help/AuthDocumentation.js +0 -20
- package/components/routes/help/BundleDocumentation.d.ts +0 -3
- package/components/routes/help/BundleDocumentation.js +0 -84
- package/components/routes/help/ClientDocumentation.d.ts +0 -3
- package/components/routes/help/ClientDocumentation.js +0 -20
- package/components/routes/help/Help.d.ts +0 -2
- package/components/routes/help/Help.js +0 -61
- package/components/routes/help/HitBannerDocumentation.d.ts +0 -3
- package/components/routes/help/HitBannerDocumentation.js +0 -62
- package/components/routes/help/HitDocumentation.d.ts +0 -3
- package/components/routes/help/HitDocumentation.js +0 -83
- package/components/routes/help/HitLabelsDocumentation.d.ts +0 -3
- package/components/routes/help/HitLabelsDocumentation.js +0 -46
- package/components/routes/help/HitLinksDocumentation.d.ts +0 -3
- package/components/routes/help/HitLinksDocumentation.js +0 -56
- package/components/routes/help/HitSchemaDocumentation.d.ts +0 -3
- package/components/routes/help/HitSchemaDocumentation.js +0 -159
- package/components/routes/help/NotebookDocumentation.d.ts +0 -3
- package/components/routes/help/NotebookDocumentation.js +0 -19
- package/components/routes/help/OverviewDocumentation.d.ts +0 -3
- package/components/routes/help/OverviewDocumentation.js +0 -15
- package/components/routes/help/RetentionDocumentation.d.ts +0 -3
- package/components/routes/help/RetentionDocumentation.js +0 -48
- package/components/routes/help/SearchDocumentation.d.ts +0 -3
- package/components/routes/help/SearchDocumentation.js +0 -515
- package/components/routes/help/TemplateDocumentation.d.ts +0 -3
- package/components/routes/help/TemplateDocumentation.js +0 -60
- package/components/routes/help/ViewDocumentation.d.ts +0 -3
- package/components/routes/help/ViewDocumentation.js +0 -29
- package/components/routes/help/components/HelpTabs.d.ts +0 -6
- package/components/routes/help/components/HelpTabs.js +0 -40
- package/components/routes/help/markdown/en/actionIntroduction.md.js +0 -1
- package/components/routes/help/markdown/en/authentication.md.js +0 -1
- package/components/routes/help/markdown/en/bundles.md.js +0 -1
- package/components/routes/help/markdown/en/client.md.js +0 -1
- package/components/routes/help/markdown/en/links.md.js +0 -1
- package/components/routes/help/markdown/en/notebook.md.js +0 -1
- package/components/routes/help/markdown/en/retention.md.js +0 -1
- package/components/routes/help/markdown/en/schema.md.js +0 -1
- package/components/routes/help/markdown/en/templates.md.js +0 -1
- package/components/routes/help/markdown/en/views.md.js +0 -1
- package/components/routes/help/markdown/fr/actionIntroduction.md.js +0 -1
- package/components/routes/help/markdown/fr/authentication.md.js +0 -1
- package/components/routes/help/markdown/fr/bundles.md.js +0 -1
- package/components/routes/help/markdown/fr/client.md.js +0 -1
- package/components/routes/help/markdown/fr/links.md.js +0 -1
- package/components/routes/help/markdown/fr/notebook.md.js +0 -1
- package/components/routes/help/markdown/fr/retention.md.js +0 -1
- package/components/routes/help/markdown/fr/schema.md.js +0 -1
- package/components/routes/help/markdown/fr/templates.md.js +0 -1
- package/components/routes/help/markdown/fr/views.md.js +0 -1
- package/components/routes/hits/search/BundleParentMenu.d.ts +0 -6
- package/components/routes/hits/search/BundleParentMenu.js +0 -54
- package/components/routes/hits/search/BundleScroller.d.ts +0 -2
- package/components/routes/hits/search/BundleScroller.js +0 -9
- package/components/routes/hits/search/CustomSort.d.ts +0 -2
- package/components/routes/hits/search/CustomSort.js +0 -88
- package/components/routes/hits/search/HitBrowser.d.ts +0 -3
- package/components/routes/hits/search/HitBrowser.js +0 -258
- package/components/routes/hits/search/HitContextMenu.d.ts +0 -7
- package/components/routes/hits/search/HitContextMenu.js +0 -209
- package/components/routes/hits/search/HitQuery.d.ts +0 -9
- package/components/routes/hits/search/HitQuery.js +0 -237
- package/components/routes/hits/search/InformationPane.d.ts +0 -5
- package/components/routes/hits/search/InformationPane.js +0 -377
- package/components/routes/hits/search/SearchPane.d.ts +0 -3
- package/components/routes/hits/search/SearchPane.js +0 -222
- package/components/routes/hits/search/ViewLink.d.ts +0 -2
- package/components/routes/hits/search/ViewLink.js +0 -77
- package/components/routes/hits/search/grid/AddColumnModal.d.ts +0 -8
- package/components/routes/hits/search/grid/AddColumnModal.js +0 -92
- package/components/routes/hits/search/grid/ColumnHeader.d.ts +0 -8
- package/components/routes/hits/search/grid/ColumnHeader.js +0 -70
- package/components/routes/hits/search/grid/EnhancedCell.d.ts +0 -8
- package/components/routes/hits/search/grid/EnhancedCell.js +0 -50
- package/components/routes/hits/search/grid/HitGrid.d.ts +0 -3
- package/components/routes/hits/search/grid/HitGrid.js +0 -274
- package/components/routes/hits/search/grid/HitRow.d.ts +0 -10
- package/components/routes/hits/search/grid/HitRow.js +0 -102
- package/components/routes/hits/search/shared/CustomSpan.d.ts +0 -2
- package/components/routes/hits/search/shared/CustomSpan.js +0 -54
- package/components/routes/hits/search/shared/HitFilter.d.ts +0 -4
- package/components/routes/hits/search/shared/HitFilter.js +0 -99
- package/components/routes/hits/search/shared/HitSort.d.ts +0 -4
- package/components/routes/hits/search/shared/HitSort.js +0 -91
- package/components/routes/hits/search/shared/QuerySettings.d.ts +0 -6
- package/components/routes/hits/search/shared/QuerySettings.js +0 -41
- package/components/routes/hits/search/shared/SearchSpan.d.ts +0 -5
- package/components/routes/hits/search/shared/SearchSpan.js +0 -59
- package/components/routes/hits/view/HitViewer.d.ts +0 -7
- package/components/routes/hits/view/HitViewer.js +0 -336
- package/components/routes/hits/view/LeadRenderer.d.ts +0 -7
- package/components/routes/hits/view/LeadRenderer.js +0 -34
- package/components/routes/home/AddNewCard.d.ts +0 -7
- package/components/routes/home/AddNewCard.js +0 -216
- package/components/routes/home/AnalyticCard.d.ts +0 -7
- package/components/routes/home/AnalyticCard.js +0 -43
- package/components/routes/home/EntryWrapper.d.ts +0 -7
- package/components/routes/home/EntryWrapper.js +0 -58
- package/components/routes/home/ViewCard.d.ts +0 -7
- package/components/routes/home/ViewCard.js +0 -64
- package/components/routes/home/index.d.ts +0 -3
- package/components/routes/home/index.js +0 -244
- package/components/routes/overviews/OverviewCard.d.ts +0 -8
- package/components/routes/overviews/OverviewCard.js +0 -25
- package/components/routes/overviews/OverviewEditor.d.ts +0 -12
- package/components/routes/overviews/OverviewEditor.js +0 -81
- package/components/routes/overviews/OverviewViewer.d.ts +0 -2
- package/components/routes/overviews/OverviewViewer.js +0 -316
- package/components/routes/overviews/Overviews.d.ts +0 -2
- package/components/routes/overviews/Overviews.js +0 -148
- package/components/routes/overviews/markdownExtendedTokenProvider.d.ts +0 -3
- package/components/routes/overviews/markdownExtendedTokenProvider.js +0 -262
- package/components/routes/overviews/startingTemplate.d.ts +0 -1
- package/components/routes/overviews/startingTemplate.js +0 -36
- package/components/routes/overviews/template/en.md.js +0 -1
- package/components/routes/overviews/template/fr.md.js +0 -1
- package/components/routes/settings/AdminSection.d.ts +0 -3
- package/components/routes/settings/AdminSection.js +0 -13
- package/components/routes/settings/LocalSection.d.ts +0 -3
- package/components/routes/settings/LocalSection.js +0 -127
- package/components/routes/settings/ProfileSection.d.ts +0 -10
- package/components/routes/settings/ProfileSection.js +0 -98
- package/components/routes/settings/SecuritySection.d.ts +0 -10
- package/components/routes/settings/SecuritySection.js +0 -71
- package/components/routes/settings/Settings.d.ts +0 -3
- package/components/routes/settings/Settings.js +0 -56
- package/components/routes/settings/SettingsSection.d.ts +0 -7
- package/components/routes/settings/SettingsSection.js +0 -22
- package/components/routes/templates/TemplateCard.d.ts +0 -7
- package/components/routes/templates/TemplateCard.js +0 -26
- package/components/routes/templates/TemplateDnD.d.ts +0 -8
- package/components/routes/templates/TemplateDnD.js +0 -44
- package/components/routes/templates/TemplateEditor.d.ts +0 -9
- package/components/routes/templates/TemplateEditor.js +0 -104
- package/components/routes/templates/TemplateViewer.d.ts +0 -2
- package/components/routes/templates/TemplateViewer.js +0 -219
- package/components/routes/templates/Templates.d.ts +0 -2
- package/components/routes/templates/Templates.js +0 -156
- package/components/routes/views/ViewComposer.d.ts +0 -3
- package/components/routes/views/ViewComposer.js +0 -276
- package/components/routes/views/Views.d.ts +0 -2
- package/components/routes/views/Views.js +0 -301
- package/hit-CQYBTSKb.js +0 -7
- package/i18n.d.ts +0 -3
- package/i18n.js +0 -1909
- package/images/doggie.png +0 -0
- package/index-BPPnUdfP.js +0 -1157
- package/index.d.ts +0 -0
- package/index.js +0 -13
- package/locales/en/help/main.json.d.ts +0 -16
- package/locales/en/help/search.json.d.ts +0 -189
- package/locales/en/translation.json.d.ts +0 -802
- package/locales/fr/help/main.json.d.ts +0 -16
- package/locales/fr/help/search.json.d.ts +0 -189
- package/locales/fr/translation.json.d.ts +0 -800
- package/manifest.json +0 -16
- package/plugins/HowlerPlugin.d.ts +0 -114
- package/plugins/HowlerPlugin.js +0 -276
- package/plugins/store.d.ts +0 -95
- package/plugins/store.js +0 -105
- package/rest/AxiosClient.d.ts +0 -10
- package/rest/AxiosClient.js +0 -68
- package/rest/FetchClient.d.ts +0 -7
- package/rest/FetchClient.js +0 -19
- package/rest/index.d.ts +0 -6
- package/rest/index.js +0 -1
- package/robots.txt +0 -3
- package/scripts/background.js +0 -14
- package/serve.json +0 -14
- package/setupTests.d.ts +0 -0
- package/tests/MockLocalStorage.d.ts +0 -5
- package/tests/server-handlers.d.ts +0 -5
- package/tests/server.d.ts +0 -3
- package/utils/Throttler.d.ts +0 -9
- package/utils/Throttler.js +0 -43
- package/utils/actionUtils.d.ts +0 -31
- package/utils/actionUtils.js +0 -41
- package/utils/constants.d.ts +0 -79
- package/utils/constants.js +0 -131
- package/utils/hit.json.d.ts +0 -30359
- package/utils/hitFunctions.d.ts +0 -2
- package/utils/hitFunctions.js +0 -12
- package/utils/localStorage.d.ts +0 -21
- package/utils/localStorage.js +0 -35
- package/utils/menuUtils.d.ts +0 -89
- package/utils/menuUtils.js +0 -247
- package/utils/sessionStorage.d.ts +0 -7
- package/utils/sessionStorage.js +0 -50
- package/utils/socketUtils.d.ts +0 -8
- package/utils/socketUtils.js +0 -6
- package/utils/stringUtils.d.ts +0 -8
- package/utils/stringUtils.js +0 -52
- package/utils/utils.d.ts +0 -33
- package/utils/utils.js +0 -193
- package/utils/xsrf.d.ts +0 -2
- package/utils/xsrf.js +0 -12
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
3
|
+
import useMyLocalStorage from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
4
|
+
import type { PropsWithChildren } from 'react';
|
|
5
|
+
import { createContext, useCallback, useEffect, useRef, useState } from 'react';
|
|
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
|
+
|
|
10
|
+
export type ListenerType<K extends keyof WebSocketEventMap> = (this: WebSocket, ev: WebSocketEventMap[K]) => void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The type of the data returned from the server during a WebSocket connection.
|
|
14
|
+
* The only guaranteed keys are error, message and status.
|
|
15
|
+
*/
|
|
16
|
+
export type RecievedDataType<T = { [index: string]: any }> = T & {
|
|
17
|
+
error: boolean;
|
|
18
|
+
message: string;
|
|
19
|
+
type: string;
|
|
20
|
+
status: number;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Enum to help track the status of the Websocket, since the corresponding websocket enums are directly on the object
|
|
25
|
+
*/
|
|
26
|
+
export enum Status {
|
|
27
|
+
CLOSED = WebSocket.CLOSED,
|
|
28
|
+
CLOSING = WebSocket.CLOSING,
|
|
29
|
+
CONNECTING = WebSocket.CONNECTING,
|
|
30
|
+
OPEN = WebSocket.OPEN
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface SocketContextType {
|
|
34
|
+
/**
|
|
35
|
+
* Add a listener for events from the websocket connection.
|
|
36
|
+
* @param key The unique key used to track this listener
|
|
37
|
+
* @param v The listener function
|
|
38
|
+
*/
|
|
39
|
+
addListener: <T = { [index: string]: any }>(key: string, v: (data: RecievedDataType<T>) => void) => void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Remove a listener from the websocket connection.
|
|
43
|
+
* @param key The unique key used to track the listener we're removing
|
|
44
|
+
*/
|
|
45
|
+
removeListener: (key: string) => void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Wrapper function for WebSocket.send(...). Used to send data to the server.
|
|
49
|
+
*/
|
|
50
|
+
emit: (data: any) => void;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The status of the websocket connection.
|
|
54
|
+
*/
|
|
55
|
+
status: Status;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Manually attempt reconnecting to the server.
|
|
59
|
+
*/
|
|
60
|
+
reconnect: () => void;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Helper function to tell if the socket is open
|
|
64
|
+
*/
|
|
65
|
+
isOpen: () => boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const SocketContext = createContext<SocketContextType>(null);
|
|
69
|
+
|
|
70
|
+
const SocketProvider: React.FC<PropsWithChildren> = ({ children }) => {
|
|
71
|
+
const { get } = useMyLocalStorage();
|
|
72
|
+
|
|
73
|
+
// In order to persist the connection through state changes, we use a ref
|
|
74
|
+
const socket = useRef<WebSocket>();
|
|
75
|
+
|
|
76
|
+
// Due to react setState race conditions, listeners are also stored in a ref
|
|
77
|
+
const listeners = useRef<{ [index: string]: ListenerType<'message'> }>({});
|
|
78
|
+
|
|
79
|
+
// We will need to use the app token to authenticate.
|
|
80
|
+
// Note the token MUST BE either an app token or a JWT - user/pass or apikey authentication isn't allowed
|
|
81
|
+
const appToken = get<string>(StorageKey.APP_TOKEN);
|
|
82
|
+
|
|
83
|
+
const [status, setStatus] = useState<Status>(Status.CLOSED);
|
|
84
|
+
// Track whether we should retry the connection to the server
|
|
85
|
+
const [retry, setRetry] = useState(true);
|
|
86
|
+
// Track the number of failed attempts when connecting to the server
|
|
87
|
+
const [failedAttempts, setFailedAttempts] = useState(0);
|
|
88
|
+
|
|
89
|
+
const onClose: ListenerType<'close'> = useCallback(
|
|
90
|
+
e => {
|
|
91
|
+
// https://www.rfc-editor.org/rfc/rfc6455:
|
|
92
|
+
// 1006 is a reserved value and MUST NOT be set as a status code in a
|
|
93
|
+
// Close control frame by an endpoint. It is designated for use in
|
|
94
|
+
// applications expecting a status code to indicate that the
|
|
95
|
+
// connection was closed abnormally, e.g., without sending or
|
|
96
|
+
// receiving a Close control frame.
|
|
97
|
+
if (e.code === 1006) {
|
|
98
|
+
setTimeout(() => setRetry(true), 1000 * Math.pow(2, failedAttempts));
|
|
99
|
+
setFailedAttempts(failedAttempts + 1);
|
|
100
|
+
}
|
|
101
|
+
// https://www.rfc-editor.org/rfc/rfc6455:
|
|
102
|
+
// 1008 indicates that an endpoint is terminating the connection
|
|
103
|
+
// because it has received a message that violates its policy. This
|
|
104
|
+
// is a generic status code that can be returned when there is no
|
|
105
|
+
// other more suitable status code (e.g., 1003 or 1009) or if there
|
|
106
|
+
// is a need to hide specific details about the policy.
|
|
107
|
+
//
|
|
108
|
+
// In our case, we use 1008 to indicate the connection did something wrong.
|
|
109
|
+
// For more granular error handling, we provide a status code equivalent
|
|
110
|
+
// To the HTTP status codes we know (400, 401, 403, etc.).
|
|
111
|
+
else if (e.code === 1008) {
|
|
112
|
+
try {
|
|
113
|
+
// Check to see if there's any data we can parse, or if it's just a bad connection
|
|
114
|
+
const data: RecievedDataType = JSON.parse(e.reason);
|
|
115
|
+
|
|
116
|
+
// If we are unauthorized, we can update the token through the usual process and tell
|
|
117
|
+
// the connection to retry with the new token
|
|
118
|
+
if (data.status === 401) {
|
|
119
|
+
api.user.whoami.get().then(() => setRetry(true));
|
|
120
|
+
} else {
|
|
121
|
+
console.error(data);
|
|
122
|
+
setRetry(false);
|
|
123
|
+
}
|
|
124
|
+
} catch (err) {
|
|
125
|
+
// There's no useful data, or the refresh attempt failed.
|
|
126
|
+
// Either way, we can't really do anything
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
setStatus(Status.CLOSED);
|
|
131
|
+
},
|
|
132
|
+
[failedAttempts]
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Handler for errors with the websocket connection
|
|
137
|
+
*/
|
|
138
|
+
const onWsError: ListenerType<'error'> = useCallback(() => {
|
|
139
|
+
setStatus(Status.CLOSING);
|
|
140
|
+
socket.current?.close();
|
|
141
|
+
setStatus(Status.CLOSED);
|
|
142
|
+
|
|
143
|
+
// Exponential fall off of connection attempts (1s, then 2, 4, 8, 16, etc.)
|
|
144
|
+
setTimeout(() => setRetry(true), 1000 * Math.pow(2, failedAttempts));
|
|
145
|
+
setFailedAttempts(failedAttempts + 1);
|
|
146
|
+
}, [failedAttempts]);
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Handler for messages sent form the server NOT RELATED to the websocket connection itself
|
|
150
|
+
*
|
|
151
|
+
* i.e. We sent bad data, did something the server didn't like, etc.
|
|
152
|
+
*/
|
|
153
|
+
const onMessageError: ListenerType<'message'> = useCallback(e => {
|
|
154
|
+
try {
|
|
155
|
+
const data: RecievedDataType = JSON.parse(e.data);
|
|
156
|
+
|
|
157
|
+
if (data?.error || data?.status >= 400) {
|
|
158
|
+
console.warn(data?.message || 'Websocket Error');
|
|
159
|
+
}
|
|
160
|
+
} catch (err) {
|
|
161
|
+
console.warn('Websocket Error');
|
|
162
|
+
}
|
|
163
|
+
}, []);
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Handler called when the page unloads, used to gracefully close the socket.
|
|
167
|
+
*
|
|
168
|
+
* This isn't a hard requirement to run, but it's good form.
|
|
169
|
+
*/
|
|
170
|
+
const onBeforeUnload = useCallback(() => socket.current?.close(), []);
|
|
171
|
+
|
|
172
|
+
// Effect used to start a connection to the websocket server
|
|
173
|
+
useEffect(() => {
|
|
174
|
+
// If the socket is already open, ovbviously we don't need to connect again
|
|
175
|
+
if ([Status.OPEN, Status.CONNECTING].includes(status)) {
|
|
176
|
+
if (status === Status.OPEN) {
|
|
177
|
+
setRetry(false);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// If we aren't retrying or we don't have an app token we can use, we don't continue
|
|
184
|
+
if (!retry || !appToken) return;
|
|
185
|
+
|
|
186
|
+
setRetry(false);
|
|
187
|
+
|
|
188
|
+
// Here we go!
|
|
189
|
+
setStatus(Status.CONNECTING);
|
|
190
|
+
|
|
191
|
+
const host = window.location.host.includes('localhost') ? 'localhost:5000' : window.location.host;
|
|
192
|
+
const protocol = window.location.protocol.startsWith('http:') ? 'ws' : 'wss';
|
|
193
|
+
const ws = new WebSocket(`${protocol}://${host}/socket/v1/connect`);
|
|
194
|
+
|
|
195
|
+
// Add our listeners to the websocket
|
|
196
|
+
ws.addEventListener('close', onClose);
|
|
197
|
+
ws.addEventListener('error', onWsError);
|
|
198
|
+
ws.addEventListener('message', onMessageError);
|
|
199
|
+
|
|
200
|
+
ws.addEventListener('open', () => {
|
|
201
|
+
socket.current = ws;
|
|
202
|
+
|
|
203
|
+
// Hooray! The connection was successful.
|
|
204
|
+
// But we aren't done yet - we need to authenticate before doing anything else.
|
|
205
|
+
// So, we send the token
|
|
206
|
+
ws.send(appToken);
|
|
207
|
+
|
|
208
|
+
// Just for this first response, we add a custom listener to the socket.
|
|
209
|
+
// It waits for a response from our token message, and ensures the server accepted it
|
|
210
|
+
const onAuth: ListenerType<'message'> = e => {
|
|
211
|
+
ws.removeEventListener('message', onAuth);
|
|
212
|
+
|
|
213
|
+
const data: RecievedDataType = JSON.parse(e.data);
|
|
214
|
+
|
|
215
|
+
// If there's no error, the token was accepted and we're good to go!
|
|
216
|
+
if (!data.error) {
|
|
217
|
+
console.debug(data.message);
|
|
218
|
+
setStatus(Status.OPEN);
|
|
219
|
+
setRetry(false);
|
|
220
|
+
setFailedAttempts(0);
|
|
221
|
+
|
|
222
|
+
// If there is, the server will close the socket and the token refreshing code will take over
|
|
223
|
+
} else {
|
|
224
|
+
console.error(data.message);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
ws.addEventListener('message', onAuth);
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
window.addEventListener('beforeunload', onBeforeUnload);
|
|
232
|
+
}, [appToken, status, onBeforeUnload, onClose, onWsError, onMessageError, retry]);
|
|
233
|
+
|
|
234
|
+
// Handler for when the socket opens
|
|
235
|
+
useEffect(() => {
|
|
236
|
+
// The socket is open, so we can add any listeners that were waiting for it to open
|
|
237
|
+
if (status === Status.OPEN) {
|
|
238
|
+
Object.values(listeners.current).forEach(l => {
|
|
239
|
+
socket.current?.removeEventListener('message', l);
|
|
240
|
+
socket.current?.addEventListener('message', l);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}, [listeners, status]);
|
|
244
|
+
|
|
245
|
+
// Handler for when the socket closes
|
|
246
|
+
useEffect(() => {
|
|
247
|
+
if (!socket.current) return;
|
|
248
|
+
|
|
249
|
+
if ([Status.CLOSED, Status.CLOSING].includes(status)) {
|
|
250
|
+
socket.current.removeEventListener('close', onClose);
|
|
251
|
+
socket.current.removeEventListener('error', onWsError);
|
|
252
|
+
socket.current.removeEventListener('message', onMessageError);
|
|
253
|
+
|
|
254
|
+
Object.values(listeners.current).forEach(l => socket.current.removeEventListener('message', l));
|
|
255
|
+
listeners.current = {};
|
|
256
|
+
|
|
257
|
+
window.removeEventListener('beforeunload', onBeforeUnload);
|
|
258
|
+
|
|
259
|
+
socket.current.close();
|
|
260
|
+
socket.current = null;
|
|
261
|
+
}
|
|
262
|
+
}, [status, socket, appToken, onBeforeUnload, onClose, onWsError, onMessageError]);
|
|
263
|
+
|
|
264
|
+
const addListener: SocketContextType['addListener'] = useCallback((key, callback) => {
|
|
265
|
+
// If a listener with the same key already exists, remove it.
|
|
266
|
+
if (listeners.current[key]) {
|
|
267
|
+
socket.current?.removeEventListener('message', listeners[key]);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// We wrap the callback so that all the listeners don't need to JSON.parse the data
|
|
271
|
+
const wrapped: ListenerType<'message'> = ev => {
|
|
272
|
+
const parsedData = JSON.parse(ev.data) as RecievedDataType;
|
|
273
|
+
|
|
274
|
+
if (isHitUpdate(parsedData) && parsedData.status < 300) {
|
|
275
|
+
setStored(StorageKey.ETAG, {
|
|
276
|
+
...getStored(StorageKey.ETAG),
|
|
277
|
+
[parsedData.hit.howler.id]: parsedData.version
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
setAxiosCache(parsedData.version, {
|
|
281
|
+
api_response: parsedData.hit,
|
|
282
|
+
api_error_message: '',
|
|
283
|
+
api_server_version: '',
|
|
284
|
+
api_status_code: parsedData.status
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
callback(parsedData as RecievedDataType<any>);
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
socket.current?.addEventListener('message', wrapped);
|
|
292
|
+
|
|
293
|
+
listeners.current[key] = wrapped;
|
|
294
|
+
}, []);
|
|
295
|
+
|
|
296
|
+
const removeListener: SocketContextType['removeListener'] = useCallback((key: string) => {
|
|
297
|
+
socket.current?.removeEventListener('message', listeners.current[key]);
|
|
298
|
+
|
|
299
|
+
delete listeners.current[key];
|
|
300
|
+
}, []);
|
|
301
|
+
|
|
302
|
+
const emit: SocketContextType['emit'] = useCallback(
|
|
303
|
+
data => {
|
|
304
|
+
if (typeof data !== 'string') {
|
|
305
|
+
data = JSON.stringify(data);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
if (status !== Status.OPEN || !socket.current) {
|
|
309
|
+
console.warn('socket closed, not sending');
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
socket.current?.send(data);
|
|
314
|
+
},
|
|
315
|
+
[status]
|
|
316
|
+
);
|
|
317
|
+
|
|
318
|
+
const isOpen = useCallback(() => status === Status.OPEN, [status]);
|
|
319
|
+
|
|
320
|
+
const reconnect: SocketContextType['reconnect'] = useCallback(() => setRetry(true), []);
|
|
321
|
+
|
|
322
|
+
return (
|
|
323
|
+
<SocketContext.Provider value={{ addListener, removeListener, emit, status, reconnect, isOpen }}>
|
|
324
|
+
{children}
|
|
325
|
+
</SocketContext.Provider>
|
|
326
|
+
);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
export default SocketProvider;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
5
|
+
import { createContext, useCallback, useState } from 'react';
|
|
6
|
+
|
|
7
|
+
interface UserListContextType {
|
|
8
|
+
users: { [id: string]: HowlerUser };
|
|
9
|
+
searchUsers: (query: string) => void;
|
|
10
|
+
fetchUsers: (ids: Set<string>) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const UserListContext = createContext<UserListContextType>(null);
|
|
14
|
+
|
|
15
|
+
const UserListProvider: FC<PropsWithChildren> = ({ children }) => {
|
|
16
|
+
const { dispatchApi } = useMyApi();
|
|
17
|
+
|
|
18
|
+
const [users, setUsers] = useState<{ [id: string]: HowlerUser }>({});
|
|
19
|
+
|
|
20
|
+
const searchUsers = useCallback(
|
|
21
|
+
async (query: string) => {
|
|
22
|
+
const newUsers = (
|
|
23
|
+
await dispatchApi(api.search.user.post({ query, rows: 1000 }), {
|
|
24
|
+
throwError: false,
|
|
25
|
+
logError: false,
|
|
26
|
+
showError: false
|
|
27
|
+
})
|
|
28
|
+
)?.items?.reduce((dict, user) => ({ ...dict, [user.username]: user }), {});
|
|
29
|
+
|
|
30
|
+
setUsers(_users => ({
|
|
31
|
+
..._users,
|
|
32
|
+
...newUsers
|
|
33
|
+
}));
|
|
34
|
+
},
|
|
35
|
+
[dispatchApi]
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
const fetchUsers = useCallback(
|
|
39
|
+
async (ids: Set<string>) => {
|
|
40
|
+
ids.delete('Unknown');
|
|
41
|
+
|
|
42
|
+
const idsToGet = Array.from(ids.values()).filter(id => !Object.keys(users).includes(id));
|
|
43
|
+
|
|
44
|
+
if (idsToGet.length <= 0) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
await searchUsers(`id:${[...idsToGet].join(' OR ')}`);
|
|
49
|
+
},
|
|
50
|
+
[searchUsers, users]
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return <UserListContext.Provider value={{ users, fetchUsers, searchUsers }}>{children}</UserListContext.Provider>;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export default UserListProvider;
|
|
@@ -0,0 +1,207 @@
|
|
|
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
|
+
import { has, omit } from 'lodash-es';
|
|
6
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
7
|
+
import type { View } from '@cccsaurora/howler-ui/models/entities/generated/View';
|
|
8
|
+
import { useCallback, useEffect, useState, type FC, type PropsWithChildren } from 'react';
|
|
9
|
+
import { useLocation, useParams } from 'react-router-dom';
|
|
10
|
+
import { createContext, useContextSelector } from 'use-context-selector';
|
|
11
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
12
|
+
|
|
13
|
+
export interface ViewContextType {
|
|
14
|
+
defaultView: string;
|
|
15
|
+
setDefaultView: (viewId: string) => void;
|
|
16
|
+
views: { [viewId: string]: View };
|
|
17
|
+
addFavourite: (id: string) => Promise<void>;
|
|
18
|
+
removeFavourite: (id: string) => Promise<void>;
|
|
19
|
+
fetchViews: (ids?: string[]) => Promise<View[]>;
|
|
20
|
+
addView: (v: View) => Promise<View>;
|
|
21
|
+
editView: (id: string, newView: Partial<Omit<View, 'view_id' | 'owner'>>) => Promise<View>;
|
|
22
|
+
removeView: (id: string) => Promise<void>;
|
|
23
|
+
getCurrentView: (config?: { viewId?: string; lazy?: boolean }) => Promise<View>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const ViewContext = createContext<ViewContextType>(null);
|
|
27
|
+
|
|
28
|
+
const ViewProvider: FC<PropsWithChildren> = ({ children }) => {
|
|
29
|
+
const { dispatchApi } = useMyApi();
|
|
30
|
+
const appUser = useAppUser<HowlerUser>();
|
|
31
|
+
const [defaultView, setDefaultView] = useMyLocalStorageItem<string>(StorageKey.DEFAULT_VIEW);
|
|
32
|
+
const location = useLocation();
|
|
33
|
+
const routeParams = useParams();
|
|
34
|
+
|
|
35
|
+
const [views, setViews] = useState<{ [viewId: string]: View }>({});
|
|
36
|
+
|
|
37
|
+
const fetchViews: ViewContextType['fetchViews'] = useCallback(
|
|
38
|
+
async (ids?: string[]) => {
|
|
39
|
+
if (!ids) {
|
|
40
|
+
const newViews = (await dispatchApi(api.view.get(), { throwError: false })) ?? [];
|
|
41
|
+
|
|
42
|
+
setViews(_views => ({
|
|
43
|
+
..._views,
|
|
44
|
+
...Object.fromEntries(newViews.map(_view => [_view.view_id, _view]))
|
|
45
|
+
}));
|
|
46
|
+
|
|
47
|
+
return newViews;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const missingIds = ids.filter(_id => !has(views, _id));
|
|
51
|
+
|
|
52
|
+
if (missingIds.length < 1) {
|
|
53
|
+
return ids.map(id => views[id]);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
try {
|
|
57
|
+
const response = await dispatchApi(
|
|
58
|
+
api.search.view.post({
|
|
59
|
+
query: `view_id:(${missingIds.join(' OR ')})`,
|
|
60
|
+
rows: missingIds.length,
|
|
61
|
+
sort: 'title asc'
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
const newViews = Object.fromEntries(response.items.map(_view => [_view.view_id, _view]));
|
|
66
|
+
|
|
67
|
+
setViews(_views => ({
|
|
68
|
+
..._views,
|
|
69
|
+
...Object.fromEntries(missingIds.map(_view_id => [_view_id, null])),
|
|
70
|
+
...newViews
|
|
71
|
+
}));
|
|
72
|
+
|
|
73
|
+
return ids.map(id => views[id] ?? newViews[id]);
|
|
74
|
+
} catch (e) {
|
|
75
|
+
// eslint-disable-next-line no-console
|
|
76
|
+
console.warn(e);
|
|
77
|
+
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
[dispatchApi, views]
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
if (!defaultView || has(views, defaultView)) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
(async () => {
|
|
90
|
+
const result = await fetchViews([defaultView]);
|
|
91
|
+
|
|
92
|
+
if (!result.length) {
|
|
93
|
+
setDefaultView(undefined);
|
|
94
|
+
}
|
|
95
|
+
})();
|
|
96
|
+
}, [defaultView, fetchViews, setDefaultView, views]);
|
|
97
|
+
|
|
98
|
+
const getCurrentView: ViewContextType['getCurrentView'] = useCallback(
|
|
99
|
+
async ({ viewId, lazy = false } = {}) => {
|
|
100
|
+
if (!viewId) {
|
|
101
|
+
viewId = location.pathname.startsWith('/views') ? routeParams.id : defaultView;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (!viewId) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (!has(views, viewId) && !lazy) {
|
|
109
|
+
return (await fetchViews([viewId]))[0];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return views[viewId];
|
|
113
|
+
},
|
|
114
|
+
[defaultView, fetchViews, location.pathname, routeParams.id, views]
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
const editView: ViewContextType['editView'] = useCallback(
|
|
118
|
+
async (id, partialView) => {
|
|
119
|
+
const result = await dispatchApi(api.view.put(id, partialView));
|
|
120
|
+
|
|
121
|
+
setViews(_views => ({
|
|
122
|
+
..._views,
|
|
123
|
+
[id]: { ...(_views[id] ?? {}), ...partialView }
|
|
124
|
+
}));
|
|
125
|
+
|
|
126
|
+
return result;
|
|
127
|
+
},
|
|
128
|
+
[dispatchApi]
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
const addFavourite: ViewContextType['addFavourite'] = useCallback(
|
|
132
|
+
async (id: string) => {
|
|
133
|
+
await dispatchApi(api.view.favourite.post(id));
|
|
134
|
+
|
|
135
|
+
appUser.setUser({
|
|
136
|
+
...appUser.user,
|
|
137
|
+
favourite_views: [...appUser.user.favourite_views, id]
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
[appUser, dispatchApi]
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
const addView: ViewContextType['addView'] = useCallback(
|
|
144
|
+
async (view: View) => {
|
|
145
|
+
const newView = await dispatchApi(api.view.post(view));
|
|
146
|
+
|
|
147
|
+
setViews(_views => ({ ..._views, [newView.view_id]: newView }));
|
|
148
|
+
|
|
149
|
+
addFavourite(newView.view_id);
|
|
150
|
+
|
|
151
|
+
return newView;
|
|
152
|
+
},
|
|
153
|
+
[addFavourite, dispatchApi]
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
const removeFavourite: ViewContextType['removeFavourite'] = useCallback(
|
|
157
|
+
async (id: string) => {
|
|
158
|
+
await dispatchApi(api.view.favourite.del(id));
|
|
159
|
+
|
|
160
|
+
appUser.setUser({
|
|
161
|
+
...appUser.user,
|
|
162
|
+
favourite_views: appUser.user.favourite_views.filter(v => v !== id)
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
[appUser, dispatchApi]
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
const removeView: ViewContextType['removeView'] = useCallback(
|
|
169
|
+
async (id: string) => {
|
|
170
|
+
const result = await dispatchApi(api.view.del(id));
|
|
171
|
+
|
|
172
|
+
setViews(_views => omit(_views, id));
|
|
173
|
+
|
|
174
|
+
if (appUser.user?.favourite_views.includes(id)) {
|
|
175
|
+
removeFavourite(id);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return result;
|
|
179
|
+
},
|
|
180
|
+
[appUser.user?.favourite_views, dispatchApi, removeFavourite]
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
return (
|
|
184
|
+
<ViewContext.Provider
|
|
185
|
+
value={{
|
|
186
|
+
views,
|
|
187
|
+
addFavourite,
|
|
188
|
+
removeFavourite,
|
|
189
|
+
fetchViews,
|
|
190
|
+
addView,
|
|
191
|
+
editView,
|
|
192
|
+
removeView,
|
|
193
|
+
defaultView,
|
|
194
|
+
setDefaultView,
|
|
195
|
+
getCurrentView
|
|
196
|
+
}}
|
|
197
|
+
>
|
|
198
|
+
{children}
|
|
199
|
+
</ViewContext.Provider>
|
|
200
|
+
);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export const useViewContextSelector = <Selected,>(selector: (value: ViewContextType) => Selected): Selected => {
|
|
204
|
+
return useContextSelector<ViewContextType, Selected>(ViewContext, selector);
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export default ViewProvider;
|