Skip to content

Commit

Permalink
feat: exports via main button don't include orphans (#4296) (#4306)
Browse files Browse the repository at this point in the history
* feat: exports via main button don't include orphans (#4296)

* chore: update findable to v17.0.0 (#4296)

---------

Co-authored-by: Fran McDade <[email protected]>
  • Loading branch information
frano-m and Fran McDade authored Dec 12, 2024
1 parent a3d3190 commit 58892a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
import { MANIFEST_DOWNLOAD_FORMAT } from "@databiosphere/findable-ui/lib/apis/azul/common/entities";
import { FileManifestDownload } from "@databiosphere/findable-ui/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/components/FileManifestDownload/fileManifestDownload";
import { ManifestDownloadEntityProps } from "@databiosphere/findable-ui/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity";
import { FILE_MANIFEST_TYPE } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/common/entities";
import { useRequestFileManifest } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/useRequestFileManifest";
import { useFileManifest } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/useFileManifest";

export const ManifestDownloadEntity = ({
filters,
}: Omit<
ManifestDownloadEntityProps,
"fileManifestType" | "metadataFilters"
>): JSX.Element => {
useRequestFileManifest(
FILE_MANIFEST_TYPE.ENTITY_DOWNLOAD_MANIFEST,
MANIFEST_DOWNLOAD_FORMAT.COMPACT,
filters,
undefined
);
return (
<>
<FileManifestDownload filters={filters} />
</>
);
}: Pick<ManifestDownloadEntityProps, "filters">): JSX.Element => {
useFileManifest(filters);
return <FileManifestDownload filters={filters} />;
};
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"check-system-status:anvil-cmg": "esrun e2e/anvil/anvil-check-system-status.ts"
},
"dependencies": {
"@databiosphere/findable-ui": "15.0.2",
"@databiosphere/findable-ui": "17.0.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mdx-js/loader": "^3.0.1",
Expand Down

0 comments on commit 58892a6

Please sign in to comment.