@databiosphere/findable-ui 10.2.0 → 12.0.0
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/.github/workflows/run-checks.yml +13 -0
- package/lib/apis/azul/common/constants.d.ts +0 -4
- package/lib/apis/azul/common/constants.js +0 -4
- package/lib/apis/azul/common/entities.d.ts +5 -5
- package/lib/apis/azul/common/filterTransformer.d.ts +3 -3
- package/lib/apis/azul/common/filterTransformer.js +1 -1
- package/lib/common/analytics/analytics.d.ts +1 -1
- package/lib/common/analytics/entities.d.ts +2 -2
- package/lib/common/entities.d.ts +5 -5
- package/lib/components/ComponentCreator/ComponentCreator.d.ts +0 -1
- package/lib/components/Detail/components/AccessibilityBadge/accessibilityBadge.d.ts +0 -1
- package/lib/components/Detail/components/DetailViewTable/detailViewTable.d.ts +1 -1
- package/lib/components/Detail/components/Table/components/TableBody/tableBody.d.ts +1 -2
- package/lib/components/Detail/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.d.ts +1 -2
- package/lib/components/Detail/components/Table/components/TableRows/tableRows.d.ts +1 -2
- package/lib/components/Detail/components/Table/table.d.ts +1 -2
- package/lib/components/Detail/detail.stories.d.ts +4 -2
- package/lib/components/Error/error.d.ts +0 -1
- package/lib/components/Error/error.js +1 -1
- package/lib/components/Error/error.stories.d.ts +3 -3
- package/lib/components/Error/error.styles.d.ts +11 -12
- package/lib/components/ErrorBoundary/errorBoundary.d.ts +1 -1
- package/lib/components/Export/common/entities.d.ts +2 -2
- package/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandForm/downloadCurlCommandForm.styles.d.ts +1 -2
- package/lib/components/Export/components/ExportForm/common/entities.d.ts +2 -2
- package/lib/components/Export/components/ExportForm/components/ExportFileSummaryForm/exportFileSummaryForm.d.ts +0 -1
- package/lib/components/Export/components/ExportForm/components/ExportFileSummaryForm/exportFileSummaryForm.js +1 -1
- package/lib/components/Export/components/ExportForm/components/ExportManifestDownloadFormatForm/exportManifestDownloadFormatForm.d.ts +0 -1
- package/lib/components/Export/components/ExportForm/components/ExportSpeciesForm/exportSpeciesForm.d.ts +0 -1
- package/lib/components/Export/components/ExportForm/exportForm.d.ts +3 -3
- package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +11 -40
- package/lib/components/Export/components/ExportMethod/exportMethod.stories.d.ts +4 -2
- package/lib/components/Export/components/ExportMethod/exportMethod.styles.d.ts +3 -4
- package/lib/components/Export/components/ExportSummary/components/ExportCurrentQuery/exportCurrentQuery.d.ts +1 -2
- package/lib/components/Export/components/ExportSummary/components/ExportSelectedDataSummary/exportSelectedDataSummary.d.ts +2 -2
- package/lib/components/Export/components/ExportSummary/exportSummary.styles.d.ts +4 -5
- package/lib/components/Export/components/ExportToTerra/components/ExportToTerraForm/exportToTerraForm.d.ts +0 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.d.ts +3 -4
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.d.ts +0 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.d.ts +0 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.d.ts +8 -9
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/components/FileManifestDownload/fileManifestDownload.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/components/FileManifestSpreadsheet/fileManifestSpreadsheet.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.d.ts +6 -11
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadForm/manifestDownloadForm.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadReady/manifestDownloadReady.styles.d.ts +1 -1
- package/lib/components/Export/export.styles.d.ts +13 -14
- package/lib/components/Filter/common/entities.d.ts +3 -3
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.d.ts +0 -1
- package/lib/components/Filter/components/Filter/filter.stories.d.ts +4 -2
- package/lib/components/Filter/components/Filter/filter.styles.d.ts +2 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +4 -35
- package/lib/components/Filter/components/FilterList/filterList.styles.d.ts +4 -12
- package/lib/components/Filter/components/FilterMenu/filterMenu.d.ts +0 -1
- package/lib/components/Filter/components/FilterMenu/filterMenu.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterMenu/filterMenu.styles.d.ts +8 -41
- package/lib/components/Filter/components/FilterMenuSearch/filterMenuSearch.d.ts +0 -1
- package/lib/components/Filter/components/FilterMenuSearch/filterMenuSearch.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.d.ts +1 -1
- package/lib/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.styles.d.ts +2 -3
- package/lib/components/Filter/components/FilterTag/filterTag.d.ts +0 -1
- package/lib/components/Filter/components/FilterTag/filterTag.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterTag/filterTag.styles.d.ts +4 -21
- package/lib/components/Filter/components/FilterTags/filterTags.d.ts +0 -1
- package/lib/components/Filter/components/FilterTags/filterTags.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterTags/filterTags.styles.d.ts +2 -3
- package/lib/components/Filter/components/Filters/filters.d.ts +0 -1
- package/lib/components/Filter/components/Filters/filters.stories.d.ts +3 -3
- package/lib/components/Filter/components/Filters/filters.styles.d.ts +4 -5
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.d.ts +0 -1
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.styles.d.ts +2 -3
- package/lib/components/Filter/components/SearchAllFilters/common/constants.d.ts +2 -2
- package/lib/components/Filter/components/SearchAllFilters/common/entites.d.ts +2 -2
- package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.d.ts +2 -12
- package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.d.ts +1 -1
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.d.ts +3 -3
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.d.ts +0 -1
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.d.ts +0 -1
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.d.ts +1 -1
- package/lib/components/Filter/components/VariableSizeList/VariableSizeList.d.ts +1 -2
- package/lib/components/Head/head.d.ts +0 -1
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.d.ts +0 -1
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.js +20 -51
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.stories.d.ts +4 -2
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.styles.d.ts +1 -1
- package/lib/components/Index/components/AzulFileDownload/common/constants.d.ts +3 -0
- package/lib/components/Index/components/AzulFileDownload/common/constants.js +3 -0
- package/lib/components/Index/components/Cell/cell.d.ts +0 -1
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.d.ts +0 -1
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.d.ts +1 -2
- package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.d.ts +4 -2
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.d.ts +3 -4
- package/lib/components/Index/components/Hero/hero.stories.d.ts +4 -2
- package/lib/components/Index/components/Hero/hero.styles.d.ts +6 -7
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +0 -1
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +2 -3
- package/lib/components/Index/components/NTagCell/nTagCell.d.ts +1 -2
- package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +4 -2
- package/lib/components/Index/components/Tabs/tabs.d.ts +0 -1
- package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +1 -1
- package/lib/components/Index/index.stories.d.ts +3 -3
- package/lib/components/Index/index.styles.d.ts +2 -3
- package/lib/components/Layout/components/AppLayout/appLayout.styles.d.ts +2 -3
- package/lib/components/Layout/components/BackPage/backPageView.js +1 -1
- package/lib/components/Layout/components/BackPage/backPageView.stories.d.ts +4 -2
- package/lib/components/Layout/components/BackPage/backPageView.styles.d.ts +22 -23
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.d.ts +2 -1
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.js +3 -2
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +3 -3
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.d.ts +7 -15
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.js +3 -3
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.d.ts +6 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.js +5 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.d.ts +4 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.js +13 -0
- package/lib/components/Layout/components/ContentLayout/common/entities.d.ts +1 -1
- package/lib/components/Layout/components/ContentLayout/contentLayout.styles.d.ts +16 -17
- package/lib/components/Layout/components/Floating/floating.d.ts +0 -1
- package/lib/components/Layout/components/Footer/footer.stories.d.ts +3 -3
- package/lib/components/Layout/components/Footer/footer.styles.d.ts +6 -6
- package/lib/components/Layout/components/Header/common/entities.d.ts +3 -2
- package/lib/components/Layout/components/Header/common/utils.d.ts +9 -1
- package/lib/components/Layout/components/Header/common/utils.js +16 -1
- package/lib/components/Layout/components/Header/components/Announcements/announcements.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/actions.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.js +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +4 -2
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +16 -79
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +4 -35
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Socials/socials.styles.d.ts +1 -2
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.js +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +4 -35
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.d.ts +6 -6
- package/lib/components/Layout/components/Header/components/Content/components/Logo/logo.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Logo/logo.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.d.ts +4 -5
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.js +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.d.ts +7 -42
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +6 -17
- package/lib/components/Layout/components/Header/components/Content/components/Socials/socials.styles.d.ts +1 -2
- package/lib/components/Layout/components/Header/components/Content/content.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/header.stories.d.ts +3 -3
- package/lib/components/Layout/components/Header/header.styles.d.ts +8 -8
- package/lib/components/Layout/components/Header/hooks/useHeaderVisibility.js +2 -1
- package/lib/components/Layout/components/Main/main.styles.d.ts +5 -6
- package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.d.ts +0 -1
- package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.js +1 -1
- package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.d.ts +6 -7
- package/lib/components/Layout/components/Nav/nav.stories.d.ts +3 -3
- package/lib/components/Layout/components/Nav/nav.styles.d.ts +6 -14
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.d.ts +0 -1
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.d.ts +4 -32
- package/lib/components/Layout/components/Outline/outline.styles.d.ts +9 -104
- package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.d.ts +3 -4
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.d.ts +2 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.d.ts +0 -1
- package/lib/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.stories.d.ts +4 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.d.ts +2 -3
- package/lib/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.d.ts +2 -3
- package/lib/components/Layout/components/Sidebar/sidebar.stories.d.ts +3 -3
- package/lib/components/Layout/components/Sidebar/sidebar.styles.d.ts +2 -3
- package/lib/components/Links/common/entities.d.ts +3 -4
- package/lib/components/Links/components/Link/components/ExploreViewLink/exploreViewLink.d.ts +0 -1
- package/lib/components/Links/links.stories.d.ts +4 -2
- package/lib/components/Loading/loading.d.ts +1 -2
- package/lib/components/Loading/loading.stories.d.ts +4 -2
- package/lib/components/Loading/loading.styles.d.ts +3 -4
- package/lib/components/Login/login.stories.d.ts +3 -3
- package/lib/components/Login/login.styles.d.ts +16 -17
- package/lib/components/NoResults/noResults.styles.d.ts +6 -7
- package/lib/components/Project/common/entities.d.ts +3 -3
- package/lib/components/Project/components/Citation/citation.d.ts +0 -1
- package/lib/components/Project/components/Citation/citation.stories.d.ts +1 -1
- package/lib/components/Project/components/Citation/citation.styles.d.ts +4 -5
- package/lib/components/Project/components/CollaboratingOrganizations/collaboratingOrganizations.d.ts +0 -1
- package/lib/components/Project/components/CollaboratingOrganizations/collaboratingOrganizations.stories.d.ts +4 -2
- package/lib/components/Project/components/Contacts/contacts.d.ts +0 -1
- package/lib/components/Project/components/Contacts/contacts.stories.d.ts +4 -2
- package/lib/components/Project/components/Contributors/contributors.d.ts +0 -1
- package/lib/components/Project/components/Contributors/contributors.stories.d.ts +4 -2
- package/lib/components/Project/components/DataCurators/dataCurators.d.ts +0 -1
- package/lib/components/Project/components/DataCurators/dataCurators.stories.d.ts +4 -2
- package/lib/components/Project/components/DataReleasePolicy/dataReleasePolicy.d.ts +0 -1
- package/lib/components/Project/components/DataReleasePolicy/dataReleasePolicy.stories.d.ts +4 -2
- package/lib/components/Project/components/Description/description.d.ts +0 -1
- package/lib/components/Project/components/Description/description.stories.d.ts +4 -2
- package/lib/components/Project/components/Details/details.d.ts +0 -1
- package/lib/components/Project/components/Details/details.stories.d.ts +4 -2
- package/lib/components/Project/components/Publications/publications.d.ts +0 -1
- package/lib/components/Project/components/Publications/publications.stories.d.ts +4 -2
- package/lib/components/Project/components/Sup/sup.styles.d.ts +2 -3
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.d.ts +0 -1
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.js +1 -1
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.stories.d.ts +4 -2
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.d.ts +6 -7
- package/lib/components/Redirect/redirect.d.ts +0 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.d.ts +5 -33
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/common/constants.js +2 -2
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/common/entities.d.ts +4 -4
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/common/utils.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.d.ts +5 -6
- package/lib/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.js +1 -1
- package/lib/components/Support/components/SupportRequest/supportRequest.d.ts +0 -1
- package/lib/components/Support/components/ViewSupport/viewSupport.styles.d.ts +2 -3
- package/lib/components/Table/common/gridTable.styles.d.ts +4 -12
- package/lib/components/Table/common/utils.d.ts +2 -2
- package/lib/components/Table/common/utils.js +17 -11
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +2 -3
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +4 -2
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +1 -1
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.d.ts +1 -2
- package/lib/components/Table/components/Pagination/pagination.d.ts +0 -1
- package/lib/components/Table/components/Pagination/pagination.stories.d.ts +4 -2
- package/lib/components/Table/components/Pagination/pagination.styles.d.ts +2 -3
- package/lib/components/Table/components/PaginationSummary/paginationSummary.d.ts +0 -1
- package/lib/components/Table/components/TableBody/tableBody.d.ts +1 -2
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.d.ts +1 -2
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.d.ts +7 -8
- package/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip.d.ts +0 -1
- package/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip.styles.d.ts +2 -3
- package/lib/components/Table/components/TableCell/components/NTagCell/nTagCell.d.ts +1 -2
- package/lib/components/Table/components/TableCell/components/RowSelectionCell/rowSelectionCell.d.ts +1 -2
- package/lib/components/Table/components/TableHead/components/HeadSelectionCell/headSelectionCell.d.ts +1 -2
- package/lib/components/Table/components/TableHead/tableHead.d.ts +1 -2
- package/lib/components/Table/components/TableRow/tableRow.styles.d.ts +4 -11
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.d.ts +1 -2
- package/lib/components/Table/components/TableRows/components/VirtualizedRow/virtualizedRow.d.ts +0 -1
- package/lib/components/Table/components/TableRows/tableRows.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.d.ts +1 -1
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.d.ts +2 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.d.ts +2 -3
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.d.ts +2 -3
- package/lib/components/Table/components/TableToolbar/components/RowPreview/rowPreview.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowSelection/components/DropdownMenu/dropdownMenu.d.ts +0 -1
- package/lib/components/Table/components/TableToolbar/components/RowSelection/components/DropdownMenu/dropdownMenu.styles.d.ts +1 -1
- package/lib/components/Table/components/TableToolbar/components/RowSelection/rowSelection.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowSelection/rowSelection.styles.d.ts +2 -3
- package/lib/components/Table/components/TableToolbar/tableToolbar.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/tableToolbar.styles.d.ts +3 -2
- package/lib/components/Table/features/RowPreview/entities.d.ts +1 -1
- package/lib/components/Table/features/entities.d.ts +5 -5
- package/lib/components/Table/table.d.ts +2 -3
- package/lib/components/Table/table.js +4 -4
- package/lib/components/Table/table.styles.d.ts +4 -12
- package/lib/components/TableCreator/tableCreator.d.ts +2 -3
- package/lib/components/TableCreator/tableCreator.styles.d.ts +2 -3
- package/lib/components/TempError/components/errorBox.d.ts +0 -1
- package/lib/components/TempError/tempError.d.ts +0 -1
- package/lib/components/common/Accordion/accordion.js +1 -1
- package/lib/components/common/Accordion/accordion.stories.d.ts +3 -3
- package/lib/components/common/Alert/alert.js +1 -1
- package/lib/components/common/Alert/alert.stories.d.ts +3 -3
- package/lib/components/common/Alert/alert.styles.d.ts +2 -2
- package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +2 -3
- package/lib/components/common/AnchorLink/anchorLink.d.ts +0 -1
- package/lib/components/common/AnchorLink/anchorLink.styles.d.ts +23 -25
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +1 -1
- package/lib/components/common/Banner/components/CookieBanner/cookieBanner.styles.d.ts +1 -2
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +1 -1
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +1 -1
- package/lib/components/common/Breadcrumbs/breadcrumbs.js +1 -1
- package/lib/components/common/Breadcrumbs/breadcrumbs.stories.d.ts +6 -4
- package/lib/components/common/Button/components/ButtonOutline/buttonOutline.styles.d.ts +1 -2
- package/lib/components/common/Button/components/ButtonText/buttonText.d.ts +0 -1
- package/lib/components/common/Button/components/ButtonText/buttonText.styles.d.ts +1 -2
- package/lib/components/common/Button/components/ButtonTextPrimary/buttonTextPrimary.d.ts +0 -1
- package/lib/components/common/Button/components/ButtonTextPrimary/buttonTextPrimary.styles.d.ts +1 -2
- package/lib/components/common/Button/components/ButtonTextUnderline/buttonTextUnderline.d.ts +0 -1
- package/lib/components/common/Button/components/ButtonTextUnderline/buttonTextUnderline.styles.d.ts +1 -2
- package/lib/components/common/Button/components/CallToActionButton/callToActionButton.d.ts +3 -1
- package/lib/components/common/Button/components/CallToActionButton/callToActionButton.js +2 -2
- package/lib/components/common/Button/components/CallToActionButton/callToActionButton.stories.d.ts +5 -3
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.d.ts +0 -1
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.d.ts +1 -2
- package/lib/components/common/Button/components/FileDownloadButton/fileDownloadButton.d.ts +0 -1
- package/lib/components/common/Button/components/HelpIconButton/helpIconButton.d.ts +0 -1
- package/lib/components/common/Button/components/HelpIconButton/helpIconButton.stories.d.ts +1 -1
- package/lib/components/common/Button/components/HelpIconButton/helpIconButton.styles.d.ts +2 -1
- package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +1 -2
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +3 -4
- package/lib/components/common/Button/components/NavigationButton/navigationButton.d.ts +0 -1
- package/lib/components/common/Button/components/NavigationButton/navigationButton.styles.d.ts +1 -2
- package/lib/components/common/Card/card.stories.d.ts +3 -3
- package/lib/components/common/Card/card.styles.d.ts +5 -6
- package/lib/components/common/Card/components/CardAction/cardAction.d.ts +0 -1
- package/lib/components/common/Card/components/CardActions/cardActions.styles.d.ts +2 -3
- package/lib/components/common/Card/components/CardMedia/cardMedia.d.ts +0 -1
- package/lib/components/common/Card/components/CardMedia/cardMedia.styles.d.ts +2 -3
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +3 -4
- package/lib/components/common/Code/code.d.ts +0 -1
- package/lib/components/common/Code/code.stories.d.ts +4 -3
- package/lib/components/common/Code/code.styles.d.ts +2 -3
- package/lib/components/common/CopyToClipboard/copyToClipboard.d.ts +0 -1
- package/lib/components/common/CopyToClipboard/copyToClipboard.stories.d.ts +3 -3
- package/lib/components/common/CustomIcon/components/AddIcon/addIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/AddLinkIcon/addLinkIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/AlertIcon/alertIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/BackArrowIcon/backArrowIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/CheckedIcon/checkedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ContactSupportIcon/contactSupportIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ContentCopyIcon/contentCopyIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/DiscourseIcon/discourseIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/DownloadIcon/downloadIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/EmailReadIcon/emailReadIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ErrorIcon/errorIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FacebookIcon/facebookIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FeedbackIcon/feedbackIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FormStatusCompletedIcon/formStatusCompletedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FormStatusIncompleteIcon/formStatusIncompleteIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ForwardArrowIcon/forwardArrowIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/GitHubIcon/gitHubIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/GoogleIcon/googleIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/HelpIcon/helpIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/InProgressIcon/inProgressIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/IndeterminateIcon/indeterminateIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/InfoIcon/infoIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/InventoryIcon/inventoryIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/LinkedInIcon/linkedInIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/LoadingIcon/loadingIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/OpenInNewIcon/openInNewIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/RadioCheckedIcon/radioCheckedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/RadioUncheckedIcon/radioUncheckedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/RemoveIcon/removeIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SearchIcon/searchIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SearchOffIcon/searchOffIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/Segment/segment.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SlackIcon/slackIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SouthIcon/southIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SuccessIcon/successIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UnLinkIcon/unLinkIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UncheckedErrorIcon/uncheckedErrorIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UncheckedIcon/uncheckedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UnfoldMoreIcon/unfoldMoreIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/WarningIcon/warningIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/XIcon/xIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/YouTubeIcon/youTubeIcon.d.ts +0 -1
- package/lib/components/common/Dialog/components/DialogTitle/dialogTitle.js +1 -1
- package/lib/components/common/Dot/dot.d.ts +0 -1
- package/lib/components/common/Dot/dot.styles.d.ts +2 -3
- package/lib/components/common/Drawer/components/DrawerTitle/drawerTitle.styles.d.ts +2 -3
- package/lib/components/common/Drawer/components/drawer.styles.d.ts +2 -3
- package/lib/components/common/DropdownMenu/common/entities.d.ts +2 -2
- package/lib/components/common/DropdownMenu/dropdownMenu.styles.d.ts +1 -1
- package/lib/components/common/EllipsisContent/ellipsisContent.styles.d.ts +3 -4
- package/lib/components/common/Form/components/Input/input.d.ts +0 -1
- package/lib/components/common/Form/components/Input/input.styles.d.ts +4 -19
- package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.d.ts +0 -1
- package/lib/components/common/Form/components/Select/select.d.ts +2 -2
- package/lib/components/common/Form/components/Select/select.styles.d.ts +4 -19
- package/lib/components/common/Form/components/UploadFile/uploadFile.d.ts +0 -1
- package/lib/components/common/Form/components/UploadFile/uploadFile.styles.d.ts +6 -39
- package/lib/components/common/IconBadge/iconBadge.d.ts +1 -1
- package/lib/components/common/IconBadge/iconBadge.styles.d.ts +2 -3
- package/lib/components/common/IconButton/iconButton.styles.d.ts +4 -30
- package/lib/components/common/Input/input.styles.d.ts +5 -20
- package/lib/components/common/KeyValuePairs/keyValuePairs.d.ts +5 -5
- package/lib/components/common/MDXMarkdown/components/Section/mdxSection.styles.d.ts +2 -3
- package/lib/components/common/Markdown/markdown.d.ts +3 -2
- package/lib/components/common/Markdown/markdown.js +3 -2
- package/lib/components/common/Paper/paper.d.ts +1 -1
- package/lib/components/common/Paper/paper.styles.d.ts +5 -6
- package/lib/components/common/Paper/paper.styles.js +1 -1
- package/lib/components/common/Progress/components/CircularProgress/circularProgress.styles.d.ts +2 -3
- package/lib/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.d.ts +0 -1
- package/lib/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.d.ts +1 -1
- package/lib/components/common/RadioGroup/radioGroup.d.ts +3 -4
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.d.ts +8 -40
- package/lib/components/common/Section/components/SectionDetailsEmpty/sectionDetailsEmpty.d.ts +0 -1
- package/lib/components/common/Section/components/SectionTitle/sectionTitle.d.ts +0 -1
- package/lib/components/common/Section/components/SectionTitle/sectionTitle.stories.d.ts +4 -2
- package/lib/components/common/Section/section.styles.d.ts +17 -17
- package/lib/components/common/Socials/socials.stories.d.ts +3 -4
- package/lib/components/common/Socials/socials.styles.d.ts +4 -4
- package/lib/components/common/Stack/components/Divider/divider.styles.d.ts +2 -11
- package/lib/components/common/StaticImage/staticImage.d.ts +1 -2
- package/lib/components/common/StaticImage/staticImage.stories.d.ts +4 -2
- package/lib/components/common/StatusBadge/statusBadge.d.ts +1 -1
- package/lib/components/common/StatusBadge/statusBadge.stories.d.ts +3 -4
- package/lib/components/common/StatusIcon/statusIcon.d.ts +1 -1
- package/lib/components/common/StatusIcon/statusIcon.stories.d.ts +4 -2
- package/lib/components/common/StatusIcon/statusIcon.styles.d.ts +2 -3
- package/lib/components/common/Tabs/tabs.d.ts +3 -3
- package/lib/components/common/Tabs/tabs.styles.d.ts +6 -34
- package/lib/components/common/Tag/tag.stories.d.ts +4 -2
- package/lib/components/common/Tag/tag.styles.d.ts +2 -2
- package/lib/components/common/Title/title.d.ts +1 -1
- package/lib/components/common/Title/title.styles.d.ts +2 -1
- package/lib/components/common/ToggleButtonGroup/toggleButtonGroup.d.ts +2 -3
- package/lib/components/common/ToggleButtonGroup/toggleButtonGroup.stories.d.ts +4 -2
- package/lib/components/common/Typography/common/entities.d.ts +1 -1
- package/lib/config/entities.d.ts +16 -16
- package/lib/entity/api/service.d.ts +3 -2
- package/lib/entity/apicf/service.d.ts +1 -1
- package/lib/entity/common/service.d.ts +2 -2
- package/lib/entity/service/model.d.ts +1 -1
- package/lib/hooks/useAsync.d.ts +1 -1
- package/lib/hooks/useAuthentication/common/entities.d.ts +1 -1
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +3 -3
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +2 -2
- package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +2 -2
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +2 -2
- package/lib/hooks/useAuthentication/useTokenClient.d.ts +1 -1
- package/lib/hooks/useBreakpoint.d.ts +1 -1
- package/lib/hooks/useBreakpointHelper.d.ts +2 -2
- package/lib/hooks/useCategoryFilter.d.ts +2 -2
- package/lib/hooks/useCurrentBreakpoint.d.ts +1 -1
- package/lib/hooks/useEntityService.d.ts +1 -1
- package/lib/hooks/useExploreMode.d.ts +1 -1
- package/lib/hooks/useExportToTerraResponseURL.d.ts +1 -1
- package/lib/hooks/useFetchEntity.d.ts +1 -1
- package/lib/hooks/useFileLocation.d.ts +7 -1
- package/lib/hooks/useFileLocation.js +13 -14
- package/lib/hooks/useFileManifest/common/entities.d.ts +4 -4
- package/lib/hooks/useFileManifest/useFileManifest.d.ts +1 -1
- package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +1 -1
- package/lib/hooks/useRequestFileLocation.d.ts +2 -2
- package/lib/hooks/useResizeObserver.d.ts +1 -1
- package/lib/hooks/useScroll.d.ts +2 -2
- package/lib/providers/authentication.d.ts +2 -2
- package/lib/providers/config.d.ts +1 -1
- package/lib/providers/exploreState/entities.d.ts +4 -4
- package/lib/providers/exploreState/initializer/utils.js +1 -1
- package/lib/providers/exploreState/payloads/entities.d.ts +6 -6
- package/lib/providers/exploreState.d.ts +20 -20
- package/lib/providers/fileManifestState.d.ts +12 -12
- package/lib/providers/layoutState.d.ts +4 -4
- package/lib/theme/common/breakpoints.d.ts +4 -4
- package/lib/theme/common/components.js +8 -8
- package/lib/theme/common/palette.d.ts +33 -127
- package/lib/theme/common/palette.js +57 -69
- package/lib/types/error.d.ts +1 -1
- package/lib/utils/tests.d.ts +12 -0
- package/lib/utils/tests.js +17 -0
- package/lib/viewModelBuilders/common/entities.d.ts +1 -1
- package/lib/views/ContentView/contentView.stories.d.ts +3 -3
- package/lib/views/EntityDetailView/entityDetailView.d.ts +0 -1
- package/lib/views/ExploreView/exploreView.d.ts +0 -1
- package/lib/views/ExportMethodView/exportMethodView.d.ts +0 -1
- package/lib/views/ExportView/exportView.d.ts +1 -2
- package/lib/views/LoginView/loginView.d.ts +0 -1
- package/package.json +16 -14
- package/src/apis/azul/common/constants.ts +0 -5
- package/src/apis/azul/common/filterTransformer.ts +1 -1
- package/src/common/analytics/analytics.ts +1 -1
- package/src/common/analytics/readme-analytics.md +15 -0
- package/src/components/Detail/components/Table/table.tsx +1 -1
- package/src/components/Error/error.tsx +1 -1
- package/src/components/Export/components/DownloadCurlCommand/downloadCurlCommand.tsx +1 -1
- package/src/components/Export/components/ExportForm/components/ExportFileSummaryForm/exportFileSummaryForm.tsx +1 -1
- package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.tsx +1 -1
- package/src/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.tsx +1 -1
- package/src/components/Filter/components/VariableSizeList/VariableSizeList.tsx +1 -1
- package/src/components/Index/components/AzulFileDownload/azulFileDownload.tsx +44 -63
- package/src/components/Index/components/AzulFileDownload/common/constants.ts +4 -0
- package/src/components/Index/components/NTag/components/Tooltip/tooltip.tsx +1 -1
- package/src/components/Layout/components/BackPage/backPageView.tsx +1 -1
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.ts +3 -3
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.tsx +5 -1
- package/src/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.ts +14 -0
- package/src/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.tsx +13 -0
- package/src/components/Layout/components/Header/common/entities.ts +1 -0
- package/src/components/Layout/components/Header/common/utils.ts +23 -1
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.tsx +1 -1
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.tsx +1 -1
- package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.tsx +2 -2
- package/src/components/Layout/components/Header/hooks/useHeaderVisibility.ts +3 -1
- package/src/components/Layout/components/Nav/components/NavBarHero/navBarHero.tsx +2 -2
- package/src/components/Layout/components/Outline/outline.styles.ts +1 -1
- package/src/components/Loading/loading.styles.ts +1 -1
- package/src/components/Loading/loading.tsx +1 -1
- package/src/components/Project/components/SupplementaryLinks/supplementaryLinks.tsx +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/common/constants.ts +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/common/utils.ts +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.tsx +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.tsx +1 -1
- package/src/components/Table/common/utils.ts +17 -15
- package/src/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip.tsx +1 -1
- package/src/components/common/Accordion/accordion.tsx +2 -2
- package/src/components/common/Alert/alert.tsx +1 -1
- package/src/components/common/Banner/components/CookieBanner/cookieBanner.tsx +1 -1
- package/src/components/common/Banner/components/DismissibleBanner/dismissibleBanner.tsx +1 -1
- package/src/components/common/Breadcrumbs/breadcrumbs.tsx +1 -1
- package/src/components/common/Button/components/CallToActionButton/callToActionButton.tsx +5 -0
- package/src/components/common/Code/code.tsx +1 -1
- package/src/components/common/CopyToClipboard/copyToClipboard.tsx +1 -1
- package/src/components/common/Dialog/components/DialogTitle/dialogTitle.tsx +1 -1
- package/src/components/common/Form/components/Input/input.tsx +1 -1
- package/src/components/common/Form/components/Select/select.tsx +2 -2
- package/src/components/common/IconBadge/iconBadge.styles.ts +1 -1
- package/src/components/common/Markdown/markdown.tsx +8 -2
- package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +1 -1
- package/src/components/common/Stack/components/Divider/divider.styles.tsx +1 -1
- package/src/entity/api/service.ts +1 -1
- package/src/hooks/useCurrentBreakpoint.ts +1 -1
- package/src/hooks/useEntityList.ts +1 -1
- package/src/hooks/useEntityService.ts +1 -1
- package/src/hooks/useFileLocation.ts +16 -14
- package/src/hooks/useFileManifest/useRequestFileManifest.ts +1 -1
- package/src/hooks/useRequestFileLocation.ts +1 -1
- package/src/hooks/useResizeObserver.ts +1 -1
- package/src/hooks/useWindowResize.ts +1 -1
- package/src/theme/common/palette.ts +57 -57
- package/src/utils/tests.ts +19 -0
- package/tests/azulFileDownload.test.tsx +86 -0
- package/tests/useFileLocation.test.ts +32 -0
- package/tsconfig.json +4 -1
|
@@ -1,43 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TabScrollButtonProps } from "@mui/material";
|
|
3
2
|
interface Props {
|
|
4
3
|
direction: TabScrollButtonProps["direction"];
|
|
5
4
|
disabled: TabScrollButtonProps["disabled"];
|
|
6
5
|
}
|
|
7
6
|
export declare const TabScrollFuzz: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme
|
|
9
|
-
as?:
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
10
9
|
} & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
11
|
-
export declare const Tab: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
disableFocusRipple?: boolean | undefined;
|
|
16
|
-
icon?: string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
17
|
-
iconPosition?: "top" | "bottom" | "end" | "start" | undefined;
|
|
18
|
-
label?: import("react").ReactNode;
|
|
19
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
20
|
-
value?: any;
|
|
21
|
-
wrapped?: boolean | undefined;
|
|
22
|
-
} & Omit<{
|
|
23
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
24
|
-
centerRipple?: boolean | undefined;
|
|
25
|
-
children?: import("react").ReactNode;
|
|
26
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
27
|
-
disabled?: boolean | undefined;
|
|
28
|
-
disableRipple?: boolean | undefined;
|
|
29
|
-
disableTouchRipple?: boolean | undefined;
|
|
30
|
-
focusRipple?: boolean | undefined;
|
|
31
|
-
focusVisibleClassName?: string | undefined;
|
|
32
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
33
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
34
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
35
|
-
tabIndex?: number | undefined;
|
|
36
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
37
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
38
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
39
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
40
|
-
}, "label" | keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "children" | "sx" | "disabled" | "value" | "action" | "icon" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "wrapped" | "iconPosition"> & {
|
|
41
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
export declare const Tab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, "label" | "style" | "className" | "classes" | "tabIndex" | "children" | "sx" | "disabled" | "value" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "icon" | "disableFocusRipple" | "wrapped" | "iconPosition"> & {
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
42
14
|
}, {}, {}>;
|
|
43
15
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentMeta } from "@storybook/react";
|
|
2
|
+
import { Tag } from "./tag";
|
|
3
|
+
declare const _default: ComponentMeta<typeof Tag>;
|
|
2
4
|
export default _default;
|
|
3
|
-
export declare const WarningTagStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react
|
|
5
|
+
export declare const WarningTagStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./tag").TagProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const TagDefault: import("@emotion/styled").StyledComponent<import("./tag").TagProps & {
|
|
2
|
-
theme?: import("@emotion/react").Theme
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
3
|
}, {}, {}>;
|
|
4
4
|
export declare const TagWarning: import("@emotion/styled").StyledComponent<import("./tag").TagProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
6
|
}, {}, {}>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Typography } from "@mui/material";
|
|
2
|
+
export declare const HeroTitle: typeof Typography;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ToggleButtonProps as MToggleButtonProps } from "@mui/material";
|
|
3
2
|
/**
|
|
4
3
|
* An extension of the basic Mui ToggleButtonGroup component with available ToggleButtonGroup props.
|
|
5
4
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
5
|
+
export type OnToggleButtonFn = () => void;
|
|
6
|
+
type ToggleButtonValue = MToggleButtonProps["value"];
|
|
8
7
|
export interface ToggleButton {
|
|
9
8
|
label: string;
|
|
10
9
|
onToggle: OnToggleButtonFn;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentMeta } from "@storybook/react";
|
|
2
|
+
import { ToggleButtonGroup } from "./toggleButtonGroup";
|
|
3
|
+
declare const _default: ComponentMeta<typeof ToggleButtonGroup>;
|
|
2
4
|
export default _default;
|
|
3
|
-
export declare const ToggleButtonGroupStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react
|
|
5
|
+
export declare const ToggleButtonGroupStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./toggleButtonGroup").ToggleButtonGroupProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TypographyProps as MTypographyProps } from "@mui/material";
|
|
2
|
-
export
|
|
2
|
+
export type TypographyProps = Omit<MTypographyProps, "children" | "component" | "ref"> | undefined;
|
package/lib/config/entities.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export interface ComponentConfig<T extends keyof JSX.IntrinsicElements | JSXElem
|
|
|
97
97
|
* Type to determine the array of components that will be created on using @see ComponentCreator.
|
|
98
98
|
* This can be an array of @see ComponentConfig or a function that returns an array of @see ComponentConfig
|
|
99
99
|
*/
|
|
100
|
-
export
|
|
100
|
+
export type ComponentsConfig = ComponentConfig[] | ((config: SiteConfig) => ComponentConfig[]);
|
|
101
101
|
/**
|
|
102
102
|
* Interface to determine the API URL and version.
|
|
103
103
|
*/
|
|
@@ -117,7 +117,7 @@ export interface DataSourceConfig {
|
|
|
117
117
|
/**
|
|
118
118
|
* Path for the entity
|
|
119
119
|
*/
|
|
120
|
-
export
|
|
120
|
+
export type EntityPath = string;
|
|
121
121
|
/**
|
|
122
122
|
* Interface used to define the entities and router that will be used on the application, alongside with
|
|
123
123
|
* the detail and the list page configuration.
|
|
@@ -140,7 +140,7 @@ export interface EntityConfig<T = any, I = any> extends TabConfig {
|
|
|
140
140
|
/**
|
|
141
141
|
* Entity mapper function.
|
|
142
142
|
*/
|
|
143
|
-
export
|
|
143
|
+
export type EntityMapper<T, I> = (input: I) => T;
|
|
144
144
|
/**
|
|
145
145
|
* Interface to define the export configuration for a given site.
|
|
146
146
|
*/
|
|
@@ -164,11 +164,11 @@ export interface FloatingConfig {
|
|
|
164
164
|
/**
|
|
165
165
|
* Get identifier function.
|
|
166
166
|
*/
|
|
167
|
-
export
|
|
167
|
+
export type GetIdFunction<T> = (detail: T) => string;
|
|
168
168
|
/**
|
|
169
169
|
* Get title function.
|
|
170
170
|
*/
|
|
171
|
-
export
|
|
171
|
+
export type GetTitleFunction<T> = (detail?: T) => string | undefined;
|
|
172
172
|
/**
|
|
173
173
|
* Google GIS authentication configuration.
|
|
174
174
|
*/
|
|
@@ -180,11 +180,11 @@ export interface GoogleGISAuthConfig {
|
|
|
180
180
|
/**
|
|
181
181
|
* Grid track configuration.
|
|
182
182
|
*/
|
|
183
|
-
export
|
|
184
|
-
export
|
|
185
|
-
export
|
|
186
|
-
export
|
|
187
|
-
export
|
|
183
|
+
export type GridTrackAuto = "auto";
|
|
184
|
+
export type GridTrackFlex = `${number}fr`;
|
|
185
|
+
export type GridTrackLength = `${number}px`;
|
|
186
|
+
export type GridTrackMaxContent = "max-content";
|
|
187
|
+
export type GridTrackMinContent = "min-content";
|
|
188
188
|
/**
|
|
189
189
|
* A min and max dimension specifying a size range greater than or equal to min and less than or equal to max.
|
|
190
190
|
* As a maximum, a GridTrackFlex value sets the track's flex factor and is invalid as a minimum.
|
|
@@ -197,7 +197,7 @@ export interface GridTrackMinMax {
|
|
|
197
197
|
* A selection of possible types of track sizing values of each track (column).
|
|
198
198
|
* See https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns#values.
|
|
199
199
|
*/
|
|
200
|
-
export
|
|
200
|
+
export type GridTrackSize = GridTrackAuto | GridTrackLength | GridTrackFlex | GridTrackMaxContent | GridTrackMinContent | GridTrackMinMax;
|
|
201
201
|
/**
|
|
202
202
|
* List configuration.
|
|
203
203
|
*/
|
|
@@ -229,7 +229,7 @@ export interface LoginNotice {
|
|
|
229
229
|
/**
|
|
230
230
|
* Option Method.
|
|
231
231
|
*/
|
|
232
|
-
export
|
|
232
|
+
export type OptionMethod = "GET" | "POST";
|
|
233
233
|
/**
|
|
234
234
|
* API options.
|
|
235
235
|
*/
|
|
@@ -266,7 +266,7 @@ export interface TrackFilterAppliedPayload {
|
|
|
266
266
|
/**
|
|
267
267
|
* Filter applied tracking function
|
|
268
268
|
*/
|
|
269
|
-
export
|
|
269
|
+
export type TrackFilterAppliedFunction = (payload: TrackFilterAppliedPayload) => void;
|
|
270
270
|
/**
|
|
271
271
|
* Filter opened tracking payload
|
|
272
272
|
*/
|
|
@@ -276,7 +276,7 @@ export interface TrackFilterOpenedPayload {
|
|
|
276
276
|
/**
|
|
277
277
|
* Filter opened tracking function
|
|
278
278
|
*/
|
|
279
|
-
export
|
|
279
|
+
export type TrackFilterOpenedFunction = (payload: TrackFilterOpenedPayload) => void;
|
|
280
280
|
interface TrackingConfig {
|
|
281
281
|
trackFilterApplied?: TrackFilterAppliedFunction;
|
|
282
282
|
trackFilterOpened?: TrackFilterOpenedFunction;
|
|
@@ -325,7 +325,7 @@ export interface SummaryConfig {
|
|
|
325
325
|
/**
|
|
326
326
|
* System status bind response function.
|
|
327
327
|
*/
|
|
328
|
-
export
|
|
328
|
+
export type SystemStatusBindResponseFn = <R>(response?: R) => SystemStatusResponse | undefined;
|
|
329
329
|
/**
|
|
330
330
|
* System status endpoint.
|
|
331
331
|
*/
|
|
@@ -352,7 +352,7 @@ export interface TerraAuthConfig {
|
|
|
352
352
|
* Theme options function.
|
|
353
353
|
* Defines theme options, and provides a reference to the specified theme.
|
|
354
354
|
*/
|
|
355
|
-
export
|
|
355
|
+
export type ThemeOptionsFn = (theme: Theme) => ThemeOptions;
|
|
356
356
|
/**
|
|
357
357
|
* View context.
|
|
358
358
|
*/
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Handles Project's API requests
|
|
3
3
|
*/
|
|
4
4
|
import { AzulCatalogResponse, AzulEntitiesResponse, AzulListParams, AzulSummaryResponse } from "../../apis/azul/common/entities";
|
|
5
|
+
import { FilterState } from "../../hooks/useCategoryFilter";
|
|
5
6
|
/**
|
|
6
7
|
* Make a GET or POST request for a list of entities
|
|
7
8
|
* @param apiPath - Path that will be used to compose the API url
|
|
@@ -19,7 +20,7 @@ export declare const fetchEntitiesFromQuery: (apiPath: string, listParams: AzulL
|
|
|
19
20
|
* @param listParams - Params to be used on the request.
|
|
20
21
|
* @returns @see ListResponseType
|
|
21
22
|
*/
|
|
22
|
-
export declare const fetchAllEntities: (apiPath: string, accessToken: string | undefined, catalog?: string
|
|
23
|
+
export declare const fetchAllEntities: (apiPath: string, accessToken: string | undefined, catalog?: string, listParams?: AzulListParams) => Promise<AzulEntitiesResponse>;
|
|
23
24
|
/**
|
|
24
25
|
* Fetch all catalogs and default catalog from given URL.
|
|
25
26
|
* @returns name of the default catalog and all available catalogs.
|
|
@@ -47,7 +48,7 @@ export declare const fetchEntityDetail: (id: string, apiPath: string, catalog: s
|
|
|
47
48
|
* @param accessToken - Auth token.
|
|
48
49
|
* @returns @see SummaryResponse
|
|
49
50
|
*/
|
|
50
|
-
export declare const fetchSummary: (filterState:
|
|
51
|
+
export declare const fetchSummary: (filterState: FilterState, catalog: string | undefined, accessToken: string | undefined) => Promise<AzulSummaryResponse>;
|
|
51
52
|
/**
|
|
52
53
|
* Fetch summary from given URL.
|
|
53
54
|
* @param path - URL.
|
|
@@ -18,7 +18,7 @@ export declare const fetchAllEntities: (apiPath: string, accessToken: string | u
|
|
|
18
18
|
* @param entityMapper - Entity mapper.
|
|
19
19
|
* @returns entity.
|
|
20
20
|
*/
|
|
21
|
-
export declare const fetchEntity: <T, I>(id: string, apiPath: string, entityMapper?: EntityMapper<T, I>
|
|
21
|
+
export declare const fetchEntity: <T, I>(id: string, apiPath: string, entityMapper?: EntityMapper<T, I>) => Promise<T>;
|
|
22
22
|
/**
|
|
23
23
|
* Fetch entity detail.
|
|
24
24
|
*/
|
|
@@ -5,11 +5,11 @@ import { AzulEntitiesResponse, AzulEntityStaticResponse } from "../../apis/azul/
|
|
|
5
5
|
* @param accessToken - Access token.
|
|
6
6
|
* @returns entities.
|
|
7
7
|
*/
|
|
8
|
-
export declare const fetchEntitiesFromURL: (URL: string, accessToken?: string
|
|
8
|
+
export declare const fetchEntitiesFromURL: (URL: string, accessToken?: string) => Promise<AzulEntitiesResponse>;
|
|
9
9
|
/**
|
|
10
10
|
* Fetch entity from the given URL.
|
|
11
11
|
* @param URL - URL.
|
|
12
12
|
* @param accessToken - Access token.
|
|
13
13
|
* @returns entity.
|
|
14
14
|
*/
|
|
15
|
-
export declare const fetchEntityFromURL: (URL: string, accessToken?: string
|
|
15
|
+
export declare const fetchEntityFromURL: (URL: string, accessToken?: string) => Promise<AzulEntityStaticResponse>;
|
package/lib/hooks/useAsync.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare enum AUTHENTICATION_STATUS {
|
|
|
6
6
|
COMPLETED = "COMPLETED",
|
|
7
7
|
INCOMPLETE = "INCOMPLETE"
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type LoginResponse = GoogleResponse | TerraResponse | TerraNIHResponse | TerraTermsOfServiceResponse;
|
|
10
10
|
export interface LoginResponseError {
|
|
11
11
|
message: string;
|
|
12
12
|
source: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoginStatus } from "./common/entities";
|
|
2
|
-
export
|
|
2
|
+
export type UserProfile = GoogleResponse;
|
|
3
3
|
export interface GoogleResponse {
|
|
4
4
|
email: string;
|
|
5
5
|
email_verified: boolean;
|
|
@@ -11,11 +11,11 @@ export interface GoogleResponse {
|
|
|
11
11
|
picture: string;
|
|
12
12
|
sub: string;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
type Status = LoginStatus<GoogleResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns user profile login status from configured endpoint.
|
|
17
17
|
* @param token - Token.
|
|
18
18
|
* @returns google profile login status.
|
|
19
19
|
*/
|
|
20
|
-
export declare const useFetchGoogleProfile: (token?: string
|
|
20
|
+
export declare const useFetchGoogleProfile: (token?: string) => Status;
|
|
21
21
|
export {};
|
|
@@ -3,7 +3,7 @@ interface DatasetPermission {
|
|
|
3
3
|
authorized: boolean;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type Status = LoginStatus<TerraNIHResponse>;
|
|
7
7
|
export interface TerraNIHResponse {
|
|
8
8
|
datasetPermissions: DatasetPermission[];
|
|
9
9
|
linkedNihUsername: string;
|
|
@@ -14,5 +14,5 @@ export interface TerraNIHResponse {
|
|
|
14
14
|
* @param token - Token.
|
|
15
15
|
* @returns Terra NIH login status.
|
|
16
16
|
*/
|
|
17
|
-
export declare const useFetchTerraNIHProfile: (token?: string
|
|
17
|
+
export declare const useFetchTerraNIHProfile: (token?: string) => Status;
|
|
18
18
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoginStatus } from "./common/entities";
|
|
2
|
-
|
|
2
|
+
type Status = LoginStatus<TerraResponse>;
|
|
3
3
|
export interface TerraResponse {
|
|
4
4
|
enabled: TerraResponseEnabled;
|
|
5
5
|
userInfo: TerraResponseUserInfo;
|
|
@@ -20,5 +20,5 @@ interface TerraResponseUserInfo {
|
|
|
20
20
|
* @param token - Token.
|
|
21
21
|
* @returns Terra profile login status.
|
|
22
22
|
*/
|
|
23
|
-
export declare const useFetchTerraProfile: (token?: string
|
|
23
|
+
export declare const useFetchTerraProfile: (token?: string) => Status;
|
|
24
24
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoginStatus } from "./common/entities";
|
|
2
|
-
|
|
2
|
+
type Status = LoginStatus<TerraTermsOfServiceResponse>;
|
|
3
3
|
export interface TerraTermsOfServiceResponse {
|
|
4
4
|
currentVersion: string;
|
|
5
5
|
isEnabled: boolean;
|
|
@@ -11,5 +11,5 @@ export interface TerraTermsOfServiceResponse {
|
|
|
11
11
|
* @param token - Token.
|
|
12
12
|
* @returns Terra terms of service login status.
|
|
13
13
|
*/
|
|
14
|
-
export declare const useFetchTerraTermsOfService: (token?: string
|
|
14
|
+
export declare const useFetchTerraTermsOfService: (token?: string) => Status;
|
|
15
15
|
export {};
|
|
@@ -8,7 +8,7 @@ export declare enum BREAKPOINT_FN_NAME {
|
|
|
8
8
|
ONLY = "only",
|
|
9
9
|
UP = "up"
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
export
|
|
11
|
+
type BreakpointFnName = BREAKPOINT_FN_NAME;
|
|
12
|
+
export type BreakpointKey = Breakpoint;
|
|
13
13
|
export declare const useBreakpointHelper: (fnName: BreakpointFnName, breakpointKey: BreakpointKey) => boolean;
|
|
14
14
|
export {};
|
|
@@ -3,7 +3,7 @@ import { CategoryConfig } from "../config/entities";
|
|
|
3
3
|
/**
|
|
4
4
|
* State backing filter functionality and calculations. Converted to view model for display.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type FilterState = Filters;
|
|
7
7
|
/**
|
|
8
8
|
* Shape of return value from this useCategoryFilter hook.
|
|
9
9
|
*/
|
|
@@ -15,7 +15,7 @@ export interface FilterInstance {
|
|
|
15
15
|
/**
|
|
16
16
|
* Function invoked when selected state of a category value is toggled or range is selected.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type OnFilterFn = (categoryKey: CategoryKey, selectedCategoryValue: CategoryValueKey, selected: boolean, categorySection?: string, searchTerm?: string) => void;
|
|
19
19
|
/**
|
|
20
20
|
* Build view-specific models from filter state, to facilitate easy rendering.
|
|
21
21
|
* @param categories - Categories, category value and their counts with the current filter applied.
|
|
@@ -13,5 +13,5 @@ export declare const getEntityService: <T, I>(entityConfig: EntityConfig, catalo
|
|
|
13
13
|
* @param entityListType - Entity list type (optional).
|
|
14
14
|
* @returns @see FetcherResponse
|
|
15
15
|
*/
|
|
16
|
-
export declare const useEntityService: <T, I>(entityListType?: string
|
|
16
|
+
export declare const useEntityService: <T, I>(entityListType?: string) => FetcherResponse<T, I>;
|
|
17
17
|
export {};
|
|
@@ -5,4 +5,4 @@ import { FileLocation } from "./useRequestFileLocation";
|
|
|
5
5
|
* @param fileLocation - Request file location.
|
|
6
6
|
* @returns export to Terra request and response URLs.
|
|
7
7
|
*/
|
|
8
|
-
export declare const useExportToTerraResponseURL: (requestParams?: URLSearchParams
|
|
8
|
+
export declare const useExportToTerraResponseURL: (requestParams?: URLSearchParams, fileLocation?: FileLocation) => string | undefined;
|
|
@@ -9,5 +9,5 @@ interface UseEntityDetailResponse<T> {
|
|
|
9
9
|
* @param detailViewProps - Statically loaded data, if any.
|
|
10
10
|
* @returns Object with the loaded data and a flag indicating is the data is loading.
|
|
11
11
|
*/
|
|
12
|
-
export declare const useFetchEntity: <T>(detailViewProps?: EntityDetailViewProps
|
|
12
|
+
export declare const useFetchEntity: <T>(detailViewProps?: EntityDetailViewProps) => UseEntityDetailResponse<T>;
|
|
13
13
|
export {};
|
|
@@ -2,4 +2,10 @@ import { UseRequestFileLocationResult } from "./useRequestFileLocation";
|
|
|
2
2
|
export interface UseFileLocation extends UseRequestFileLocationResult {
|
|
3
3
|
fileUrl?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const useFileLocation: (fileUrl?: string
|
|
5
|
+
export declare const useFileLocation: (fileUrl?: string) => UseFileLocation;
|
|
6
|
+
/**
|
|
7
|
+
* Prepends "/fetch" to the path of the specified file URL, if not already included.
|
|
8
|
+
* @param url - URL.
|
|
9
|
+
* @returns file URL with path prepended with "/fetch".
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildFetchFileUrl(url?: string): string | undefined;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { API_FILE_LOCATION_FETCH } from "../apis/azul/common/constants";
|
|
2
1
|
import { useRequestFileLocation, } from "./useRequestFileLocation";
|
|
2
|
+
const NOT_PREPENDED_WITH_FETCH_REGEX = /^(\/(?!fetch))/;
|
|
3
3
|
export const useFileLocation = (fileUrl) => {
|
|
4
|
-
// Prepend "/fetch" to the path of the specified file URL, if not already included.
|
|
5
4
|
const url = buildFetchFileUrl(fileUrl);
|
|
6
5
|
const fileLocation = useRequestFileLocation(url);
|
|
7
|
-
|
|
8
|
-
const { location } = data || {};
|
|
9
|
-
return { ...fileLocation, fileUrl: location };
|
|
6
|
+
return { ...fileLocation, fileUrl: fileLocation.data?.location };
|
|
10
7
|
};
|
|
11
8
|
/**
|
|
12
9
|
* Prepends "/fetch" to the path of the specified file URL, if not already included.
|
|
13
|
-
* @param
|
|
14
|
-
* @returns file
|
|
10
|
+
* @param url - URL.
|
|
11
|
+
* @returns file URL with path prepended with "/fetch".
|
|
15
12
|
*/
|
|
16
|
-
function buildFetchFileUrl(
|
|
17
|
-
if (!
|
|
13
|
+
export function buildFetchFileUrl(url) {
|
|
14
|
+
if (!url) {
|
|
18
15
|
return;
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
try {
|
|
18
|
+
const urlObj = new URL(url);
|
|
19
|
+
urlObj.pathname = urlObj.pathname.replace(NOT_PREPENDED_WITH_FETCH_REGEX, "/fetch/");
|
|
20
|
+
return urlObj.href;
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
throw new Error(`Invalid file URL: ${url}`);
|
|
24
24
|
}
|
|
25
|
-
return url.toString();
|
|
26
25
|
}
|
|
@@ -37,13 +37,13 @@ export declare enum FILE_MANIFEST_TYPE {
|
|
|
37
37
|
ENTITY_DOWNLOAD_MANIFEST = "ENTITY_DOWNLOAD_MANIFEST",
|
|
38
38
|
EXPORT_TO_TERRA = "EXPORT_TO_TERRA"
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export type FileManifestType = FILE_MANIFEST_TYPE;
|
|
41
41
|
export declare enum FILE_MANIFEST_STATE_STATUS {
|
|
42
42
|
ACTIVE = "ACTIVE",
|
|
43
43
|
INACTIVE = "INACTIVE"
|
|
44
44
|
}
|
|
45
|
-
export
|
|
46
|
-
export
|
|
45
|
+
export type FileManifestStateStatus = FILE_MANIFEST_STATE_STATUS;
|
|
46
|
+
export type SelectedSearchTermsBySearchKey = Map<CategoryKey, Set<CategoryValueKey>>;
|
|
47
47
|
/**
|
|
48
48
|
* Model of an individual facet value. For example, the term "Homo Sapiens" contained in the facet "Species".
|
|
49
49
|
*/
|
|
@@ -52,4 +52,4 @@ export interface Term {
|
|
|
52
52
|
name: string;
|
|
53
53
|
selected: boolean;
|
|
54
54
|
}
|
|
55
|
-
export
|
|
55
|
+
export type TermsByName = Map<string, Term>;
|
|
@@ -4,4 +4,4 @@ import { UseRequestFileLocationResult } from "../useRequestFileLocation";
|
|
|
4
4
|
* @param requestURL - Request URL.
|
|
5
5
|
* @returns file manifest request response, function and status.
|
|
6
6
|
*/
|
|
7
|
-
export declare const useFileManifest: (requestURL?: string
|
|
7
|
+
export declare const useFileManifest: (requestURL?: string) => UseRequestFileLocationResult;
|
|
@@ -6,4 +6,4 @@ import { Filters } from "../../common/entities";
|
|
|
6
6
|
* @param initialFilters - Filters to initialize file manifest request.
|
|
7
7
|
* @param fileSummaryFacetName - File summary facet name.
|
|
8
8
|
*/
|
|
9
|
-
export declare const useRequestFileManifest: (fileManifestFormat: ManifestDownloadFormat | undefined, initialFilters?: Filters | undefined, fileSummaryFacetName?: string
|
|
9
|
+
export declare const useRequestFileManifest: (fileManifestFormat: ManifestDownloadFormat | undefined, initialFilters?: Filters | undefined, fileSummaryFacetName?: string) => void;
|
|
@@ -13,7 +13,7 @@ export interface UseRequestFileLocationResult {
|
|
|
13
13
|
isSuccess: boolean;
|
|
14
14
|
run: () => void;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type Method = METHOD;
|
|
17
17
|
export declare enum METHOD {
|
|
18
18
|
GET = "GET",
|
|
19
19
|
PUT = "PUT"
|
|
@@ -32,4 +32,4 @@ export declare const getFileLocation: (url: string, accessToken: string | undefi
|
|
|
32
32
|
* @param method - Method to be used by the request
|
|
33
33
|
* @returns data object with the file location
|
|
34
34
|
*/
|
|
35
|
-
export declare const useRequestFileLocation: (url?: string
|
|
35
|
+
export declare const useRequestFileLocation: (url?: string, method?: Method) => UseRequestFileLocationResult;
|
package/lib/hooks/useScroll.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type ScrollType = "top" | "bottom";
|
|
2
|
+
type UseScrollReturn = () => void;
|
|
3
3
|
/**
|
|
4
4
|
* Hook used to scroll the to top or bottom of the page.
|
|
5
5
|
* This hook can only be used on the client-side.
|
|
@@ -5,8 +5,8 @@ import { TerraNIHResponse } from "../hooks/useAuthentication/useFetchTerraNIHPro
|
|
|
5
5
|
import { TerraResponse } from "../hooks/useAuthentication/useFetchTerraProfile";
|
|
6
6
|
import { TerraTermsOfServiceResponse } from "../hooks/useAuthentication/useFetchTerraTermsOfService";
|
|
7
7
|
export declare const ROUTE_LOGIN = "/login";
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type AuthenticateUserFn = () => void;
|
|
9
|
+
type RequestAuthenticationFn = () => void;
|
|
10
10
|
/**
|
|
11
11
|
* Model of authentication context.
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { EntityConfig, SiteConfig } from "../config/entities";
|
|
3
|
-
export
|
|
3
|
+
export type ConfigContextProps = {
|
|
4
4
|
config: SiteConfig;
|
|
5
5
|
defaultEntityListType: string;
|
|
6
6
|
entityConfig: EntityConfig;
|
|
@@ -22,10 +22,10 @@ export interface EntityState {
|
|
|
22
22
|
savedFilterState: SelectedFilter[];
|
|
23
23
|
savedSelectCategories: SelectCategory[];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
export
|
|
25
|
+
export type EntityStateByCategoryGroupConfigKey = Map<CategoryGroupConfigKey, EntityState>;
|
|
26
|
+
export type CategoryGroupConfigKey = CategoryGroupConfig["key"];
|
|
27
27
|
export interface EntityStateSavedFilter extends Omit<SavedFilter, "sort"> {
|
|
28
28
|
sorting?: ColumnSort[];
|
|
29
29
|
}
|
|
30
|
-
export
|
|
31
|
-
export
|
|
30
|
+
export type ListItem = any;
|
|
31
|
+
export type SavedFilterByCategoryValueKey = Map<CategoryValueKey, EntityStateSavedFilter>;
|
|
@@ -26,7 +26,7 @@ function buildSavedSelectCategories(savedFilters) {
|
|
|
26
26
|
return [
|
|
27
27
|
{
|
|
28
28
|
key: SELECT_CATEGORY_KEY.SAVED_FILTERS,
|
|
29
|
-
label: "",
|
|
29
|
+
label: "", // Label is applied in filter hook where it has access to the config.
|
|
30
30
|
values: savedFilters.map(({ title }) => ({
|
|
31
31
|
count: 1,
|
|
32
32
|
key: title,
|