synapse-react-client 4.0.44 → 4.0.45
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/dist/SWC.index.d.ts +1 -1
- package/dist/SWC.index.js +2 -2
- package/dist/SWC.index.js.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.d.ts +2 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.js +126 -125
- package/dist/components/AccessRequirementList/AccessRequirementList.js.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementListItem.d.ts +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementListItem.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementListItem.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js +28 -16
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js +99 -97
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/RequestDataStep.d.ts +1 -4
- package/dist/components/AccessRequirementList/RequestDataStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/RequestDataStep.js +15 -18
- package/dist/components/AccessRequirementList/RequestDataStep.js.map +1 -1
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.d.ts.map +1 -1
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +52 -49
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.js.map +1 -1
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.d.ts +9 -0
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.d.ts.map +1 -0
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.js +45 -0
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.js.map +1 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.d.ts +22 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.d.ts.map +1 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.js +139 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.js.map +1 -0
- package/dist/components/Forum/ForumTable.d.ts +17 -5
- package/dist/components/Forum/ForumTable.d.ts.map +1 -1
- package/dist/components/Forum/ForumTable.js +94 -77
- package/dist/components/Forum/ForumTable.js.map +1 -1
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.d.ts.map +1 -1
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js +142 -108
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js.map +1 -1
- package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.d.ts.map +1 -1
- package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.js +15 -15
- package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.js.map +1 -1
- package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.d.ts.map +1 -1
- package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.js +57 -55
- package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +4 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts +5 -0
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js +37 -26
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js.map +1 -1
- package/dist/mocks/msw/handlers/discussionHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/discussionHandlers.js +40 -33
- package/dist/mocks/msw/handlers/discussionHandlers.js.map +1 -1
- package/dist/synapse-client/SynapseClient.d.ts +10 -0
- package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
- package/dist/synapse-client/SynapseClient.js +486 -482
- package/dist/synapse-client/SynapseClient.js.map +1 -1
- package/dist/synapse-client/index.js +3 -3
- package/dist/synapse-queries/KeyFactory.d.ts +13 -1
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +11 -1
- package/dist/synapse-queries/KeyFactory.js.map +1 -1
- package/dist/synapse-queries/dataaccess/index.js +4 -4
- package/dist/synapse-queries/dataaccess/useAccessRequirements.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useAccessRequirements.js +4 -1
- package/dist/synapse-queries/dataaccess/useAccessRequirements.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts +19 -5
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js +29 -21
- package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts +12 -0
- package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useFormTemplate.js +52 -30
- package/dist/synapse-queries/dataaccess/useFormTemplate.js.map +1 -1
- package/dist/synapse-queries/forum/useForum.d.ts +5 -1
- package/dist/synapse-queries/forum/useForum.d.ts.map +1 -1
- package/dist/synapse-queries/forum/useForum.js +23 -1
- package/dist/synapse-queries/forum/useForum.js.map +1 -1
- package/dist/synapse-queries/index.js +185 -184
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts +5 -3
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts.map +1 -1
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js +12 -15
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
- package/dist/utils/functions/getEndpoint.d.ts +1 -0
- package/dist/utils/functions/getEndpoint.d.ts.map +1 -1
- package/dist/utils/functions/getEndpoint.js +3 -3
- package/dist/utils/functions/getEndpoint.js.map +1 -1
- package/dist/utils/types/RequestableAccessRequirement.d.ts +8 -0
- package/dist/utils/types/RequestableAccessRequirement.d.ts.map +1 -0
- package/dist/utils/types/RequestableAccessRequirement.js +9 -0
- package/dist/utils/types/RequestableAccessRequirement.js.map +1 -0
- package/package.json +2 -2
- package/dist/testutils/ReactQueryMockUtils.js +0 -676
- package/dist/testutils/ReactQueryMockUtils.js.map +0 -1
package/dist/SWC.index.d.ts
CHANGED
|
@@ -44,7 +44,6 @@ declare const SynapseComponents: {
|
|
|
44
44
|
CuratorDashboard: import("react").LazyExoticComponent<typeof import("./features/curator/dashboard/CuratorDashboardRouter").default>;
|
|
45
45
|
DatasetItemsEditor: import("react").LazyExoticComponent<typeof import("./components/SynapseTable/datasets/DatasetItemsEditor").DatasetItemsEditor>;
|
|
46
46
|
DiscussionThread: import("react").LazyExoticComponent<typeof import("./components").DiscussionThread>;
|
|
47
|
-
DiscussionEmpty: import("react").LazyExoticComponent<typeof import("./components/Forum/DiscussionEmpty").default>;
|
|
48
47
|
DownloadCartPage: import("react").LazyExoticComponent<typeof import("./components").DownloadCartPage>;
|
|
49
48
|
EntityAclEditorModal: import("react").LazyExoticComponent<typeof import("./components/EntityAclEditor/EntityAclEditorModal").default>;
|
|
50
49
|
EntityActionMenu: import("react").LazyExoticComponent<typeof import("./components/entity/page/action_menu/EntityActionMenu").default>;
|
|
@@ -81,6 +80,7 @@ declare const SynapseComponents: {
|
|
|
81
80
|
EvaluationEditorPage: import("react").LazyExoticComponent<typeof import("./components").EvaluationEditorPage>;
|
|
82
81
|
FavoritesPage: import("react").LazyExoticComponent<typeof import("./components/favorites/FavoritesPage").default>;
|
|
83
82
|
ForumSearch: import("react").LazyExoticComponent<(props: import("./components/ForumSearch").ForumSearchProps) => React.ReactNode>;
|
|
83
|
+
ForumTable: import("react").LazyExoticComponent<typeof import("./components/Forum/ForumTable").ForumTable>;
|
|
84
84
|
FullWidthAlert: import("react").LazyExoticComponent<typeof import("./components").FullWidthAlert>;
|
|
85
85
|
GoogleAnalytics: import("react").LazyExoticComponent<typeof import("./components").GoogleAnalytics>;
|
|
86
86
|
GovernanceMarkdownGithub: import("react").LazyExoticComponent<typeof import("./components/Markdown/GovernanceMarkdownGithub").GovernanceMarkdownGithub>;
|
package/dist/SWC.index.js
CHANGED
|
@@ -42,7 +42,6 @@ var x = { BackendDestinationEnum: r }, S = {
|
|
|
42
42
|
CuratorDashboard: b(() => import("./features/curator/dashboard/CuratorDashboardRouter.js")),
|
|
43
43
|
DatasetItemsEditor: b(() => import("./components/SynapseTable/datasets/DatasetItemsEditor.js")),
|
|
44
44
|
DiscussionThread: b(() => import("./components/Forum/DiscussionThread.js")),
|
|
45
|
-
DiscussionEmpty: b(() => import("./components/Forum/DiscussionEmpty.js")),
|
|
46
45
|
DownloadCartPage: b(() => import("./components/DownloadCart/DownloadCartPage.js")),
|
|
47
46
|
EntityAclEditorModal: b(() => import("./components/EntityAclEditor/EntityAclEditorModal.js")),
|
|
48
47
|
EntityActionMenu: b(() => import("./components/entity/page/action_menu/EntityActionMenu.js")),
|
|
@@ -66,6 +65,7 @@ var x = { BackendDestinationEnum: r }, S = {
|
|
|
66
65
|
EvaluationEditorPage: b(() => import("./components/Evaluation/EvaluationEditorPage.js")),
|
|
67
66
|
FavoritesPage: b(() => import("./components/favorites/FavoritesPage.js")),
|
|
68
67
|
ForumSearch: b(() => import("./components/ForumSearch/ForumSearch.js")),
|
|
68
|
+
ForumTable: b(() => import("./components/Forum/ForumTable.js")),
|
|
69
69
|
FullWidthAlert: b(() => import("./components/FullWidthAlert/FullWidthAlert.js")),
|
|
70
70
|
GoogleAnalytics: b(() => import("./components/GoogleAnalytics/GoogleAnalytics.js")),
|
|
71
71
|
GovernanceMarkdownGithub: b(() => import("./components/Markdown/GovernanceMarkdownGithub.js")),
|
|
@@ -117,7 +117,7 @@ var x = { BackendDestinationEnum: r }, S = {
|
|
|
117
117
|
sendSearchResultsReturnedEvent: y,
|
|
118
118
|
sendSearchResultReturnedEvent: v,
|
|
119
119
|
sendSearchResultClickedEvent: _
|
|
120
|
-
}, T = "4.0.
|
|
120
|
+
}, T = "4.0.45";
|
|
121
121
|
//#endregion
|
|
122
122
|
export { w as Analytics, a as HttpClient, d as Palettes, o as SynapseClient, C as SynapseComponents, n as SynapseConstants, S as SynapseContext, x as SynapseEnums, m as SynapseQueries, T as SynapseReactClientVersion, p as SynapseSessionManager, i as xssOptions };
|
|
123
123
|
|
package/dist/SWC.index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SWC.index.js","names":[],"sources":["../src/SWC.index.ts"],"sourcesContent":["/**\n * SWC.index.ts represents the entry point for the Synapse React Client library as it is published to NPM and\n * used by SynapseWebClient.\n *\n * If you wish to export a component or other object to be used by SynapseWebClient, you should add it to this file.\n */\n\nimport { lazy } from 'react'\nimport {\n displayToast,\n SynapseToastContainer,\n} from './components/ToastMessage/ToastMessage'\nimport SynapseClient, { HttpClient } from './synapse-client'\nimport * as SynapseQueries from './synapse-queries'\nimport Palettes from './theme/palette/Palettes'\nimport { SynapseConstants } from './utils'\nimport { sendAnalyticsEvent } from './utils/analytics/sendAnalyticsEvent'\nimport {\n sendSearchQuerySubmittedEvent,\n sendSearchResultClickedEvent,\n sendSearchResultReturnedEvent,\n sendSearchResultsReturnedEvent,\n} from './utils/analytics/sendSearchEvent'\nimport { FullContextProvider } from './utils/context/FullContextProvider'\nimport {\n SynapseContextConsumer,\n SynapseContextProvider,\n useSynapseContext,\n} from './utils/context/SynapseContext'\nimport { BackendDestinationEnum } from './utils/functions'\nimport { xssOptions } from './utils/functions/SanitizeHtmlUtils'\nimport { getCurrentCookiePreferences } from './utils/hooks'\nimport { SynapseSessionManager } from './utils/AppUtils'\n\n// Also include scss in the bundle\nimport './style/main.scss'\n\n// Injected at build time by Vite's `define`\ndeclare const __SRC_VERSION__: string\n\nconst SynapseEnums = {\n BackendDestinationEnum,\n}\n\nconst SynapseContext = {\n FullContextProvider,\n SynapseContextProvider,\n SynapseContextConsumer,\n useSynapseContext,\n}\n\nconst SynapseComponents = {\n AccessRequirementAclEditor: lazy(\n () => import('./components/AccessRequirementAclEditor'),\n ),\n AccessRequirementList: lazy(\n () => import('./components/AccessRequirementList/AccessRequirementList'),\n ),\n AccessRequirementRelatedProjectsList: lazy(\n () => import('./components/AccessRequirementRelatedProjectsList'),\n ),\n AccountLevelBadges: lazy(\n () => import('./components/AccountLevelBadges/AccountLevelBadges'),\n ),\n AddToDownloadListConfirmationAlert: lazy(\n () =>\n import('./components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert'),\n ),\n AvailableEvaluationQueueList: lazy(\n () =>\n import('./components/ChallengeSubmission/AvailableEvaluationQueueList'),\n ),\n CertificationQuiz: lazy(\n () => import('./components/CertificationQuiz/CertificationQuiz'),\n ),\n CookiesNotification: lazy(() => import('./components/CookiesNotification')),\n CreateOrUpdateAccessRequirementWizard: lazy(\n () => import('./components/CreateOrUpdateAccessRequirementWizard'),\n ),\n CreateOrUpdateDoiModal: lazy(\n () => import('./components/doi/CreateOrUpdateDoiModal'),\n ),\n CreateTableFromCsvDialog: lazy(\n () => import('./components/table/CsvPreview/CreateTableFromCsvDialog'),\n ),\n CreateTableViewWizard: lazy(\n () => import('./components/CreateTableViewWizard/CreateTableViewWizard'),\n ),\n CreatedByModifiedBy: lazy(\n () => import('./components/entity/page/CreatedByModifiedBy'),\n ),\n CsvPreview: lazy(() => import('./components/table/CsvPreview/CsvPreview')),\n CuratorDashboard: lazy(\n () => import('./features/curator/dashboard/CuratorDashboardRouter'),\n ),\n DatasetItemsEditor: lazy(\n () => import('./components/SynapseTable/datasets/DatasetItemsEditor'),\n ),\n DiscussionThread: lazy(() => import('./components/Forum/DiscussionThread')),\n DiscussionEmpty: lazy(() => import('./components/Forum/DiscussionEmpty')),\n DownloadCartPage: lazy(\n () => import('./components/DownloadCart/DownloadCartPage'),\n ),\n EntityAclEditorModal: lazy(\n () => import('./components/EntityAclEditor/EntityAclEditorModal'),\n ),\n EntityActionMenu: lazy(\n () => import('./components/entity/page/action_menu/EntityActionMenu'),\n ),\n EntityBadgeIcons: lazy(\n () => import('./components/EntityBadgeIcons/EntityBadgeIcons'),\n ),\n EntityCitation: lazy(() => import('./components/EntityCitation')),\n ProjectInfo: lazy(() => import('./components/ProjectInfo/ProjectInfo')),\n EntityFinder: lazy(() => import('./components/EntityFinder/EntityFinder')),\n EntityForm: lazy(() => import('./components/EntityForm/EntityForm')),\n EntityHeaderTable: lazy(() => import('./components/EntityHeaderTable')),\n EntityModal: lazy(() => import('./components/entity/metadata/EntityModal')),\n EntityPageBreadcrumbs: lazy(\n () => import('./components/entity/page/breadcrumbs/EntityPageBreadcrumbs'),\n ),\n EntityPageTitleBar: lazy(\n () => import('./components/entity/page/title_bar/EntityPageTitleBar'),\n ),\n EntityTreeTable: lazy(\n () => import('./components/EntityTreeTable/EntityTreeTable'),\n ),\n EntitySidebar: lazy(() => import('./components/EntitySidebar/EntitySidebar')),\n EntityTypeIcon: lazy(() => import('./components/EntityIcon')),\n EntityUploadModal: lazy(\n () => import('./components/EntityUpload/EntityUploadModal'),\n ),\n EntityViewScopeEditorModal: lazy(\n () =>\n import('./components/EntityViewScopeEditor/EntityViewScopeEditorModal'),\n ),\n CreateProjectModal: lazy(() =>\n import('./components/CreateProjectModal/CreateProjectModal').then(m => ({\n default: m.CreateProjectModal,\n })),\n ),\n ErrorPage: lazy(() => import('./components/error/ErrorPage')),\n EvaluationCard: lazy(() => import('./components/Evaluation/EvaluationCard')),\n EvaluationEditorPage: lazy(\n () => import('./components/Evaluation/EvaluationEditorPage'),\n ),\n FavoritesPage: lazy(() => import('./components/favorites/FavoritesPage')),\n ForumSearch: lazy(() => import('./components/ForumSearch/ForumSearch')),\n FullWidthAlert: lazy(\n () => import('./components/FullWidthAlert/FullWidthAlert'),\n ),\n GoogleAnalytics: lazy(\n () => import('./components/GoogleAnalytics/GoogleAnalytics'),\n ),\n GovernanceMarkdownGithub: lazy(\n () => import('./components/Markdown/GovernanceMarkdownGithub'),\n ),\n GridPage: lazy(() => import('./features/curator/GridPage/GridPage')),\n HasAccess: lazy(() => import('./components/HasAccess/HasAccessV2')),\n HelpPopover: lazy(() => import('./components/HelpPopover/HelpPopover')),\n HtmlPreview: lazy(\n () => import('./components/FilePreview/HtmlPreview/HtmlPreview'),\n ),\n IDUReport: lazy(() => import('./components/IDUReport/IDUReport')),\n IconSvg: lazy(() => import('./components/IconSvg/IconSvg')),\n ImposeRestrictionDialog: lazy(\n () =>\n import('./components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog'),\n ),\n MetadataTasksPage: lazy(\n () =>\n import('./features/entity/metadata-task/components/MetadataTasksPageRouter'),\n ),\n OAuthManagement: lazy(\n () => import('./components/OAuthClientManagement/OAuthManagement'),\n ),\n OrientationBanner: lazy(\n () => import('./components/OrientationBanner/OrientationBanner'),\n ),\n PageProgress: lazy(() => import('./components/PageProgress/PageProgress')),\n ProjectDataAvailability: lazy(\n () => import('./components/ProjectStorage/ProjectDataAvailability'),\n ),\n ProjectVisibilityChip: lazy(\n () => import('./components/ProjectVisibilityChip/ProjectVisibilityChip'),\n ),\n ProvenanceGraph: lazy(\n () => import('./components/ProvenanceGraph/ProvenanceGraph'),\n ),\n QueryWrapperPlotNav: lazy(\n () => import('./components/QueryWrapperPlotNav/QueryWrapperPlotNav'),\n ),\n RejectProfileValidationRequestModal: lazy(\n () => import('./components/dataaccess/RejectProfileValidationRequestModal'),\n ),\n ReviewerDashboard: lazy(\n () => import('./components/dataaccess/ReviewerDashboard'),\n ),\n SearchQueryWrapperPlotNav: lazy(\n () =>\n import('./components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav'),\n ),\n ShareThisPage: lazy(() => import('./components/ShareThisPage')),\n SkeletonButton: lazy(() => import('./components/Skeleton/SkeletonButton')),\n SqlDefinedTableEditorModal: lazy(\n () =>\n import('./components/SqlDefinedTableEditor/SqlDefinedTableEditorModal'),\n ),\n StandaloneQueryWrapper: lazy(\n () => import('./components/StandaloneQueryWrapper/StandaloneQueryWrapper'),\n ),\n StatisticsPlot: lazy(() => import('./components/StatisticsPlot')),\n SubmissionViewScopeEditorModal: lazy(\n () =>\n import('./components/SubmissionViewScopeEditor/SubmissionViewScopeEditorModal'),\n ),\n SubscriptionPage: lazy(() => import('./components/SubscriptionPage')),\n SynapseChat: lazy(() => import('./components/SynapseChat/SynapseChat')),\n SynapseGrid: lazy(() => import('./components/DataGrid/SynapseGrid')),\n SynapseFooter: lazy(() => import('./components/SynapseFooter/SynapseFooter')),\n SynapseHomepageV2: lazy(\n () => import('./components/SynapseHomepageV2/SynapseHomepageV2'),\n ),\n SynapseNavDrawer: lazy(\n () => import('./components/SynapseNavDrawer/SynapseNavDrawer'),\n ),\n SynapsePlansPage: lazy(\n () => import('./components/SynapseHomepageV2/SynapsePlansPage'),\n ),\n SynapsePortalBanners: lazy(\n () => import('./components/SynapsePortalBanners/SynapsePortalBanners'),\n ),\n SynapseSearchPage: lazy(\n () => import('./components/SynapseSearchPageResults/SynapseSearchPage'),\n ),\n SynapseToastContainer,\n TableColumnSchemaEditor: lazy(\n () =>\n import('./components/TableColumnSchemaEditor/TableColumnSchemaEditor'),\n ),\n TrashCanList: lazy(() => import('./components/trash/TrashCanList')),\n UpdateTableWithCsvDialog: lazy(\n () => import('./components/table/CsvPreview/UpdateTableWithCsvDialog'),\n ),\n UserAccessRequestHistoryPlace: lazy(\n () =>\n import('./components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPlace'),\n ),\n UserCard: lazy(() => import('./components/UserCard/UserCard')),\n UserProfileLinks: lazy(\n () => import('./components/UserProfileLinks/UserProfileLinks'),\n ),\n displayToast,\n getCurrentCookiePreferences,\n}\n\nconst Analytics = {\n sendAnalyticsEvent,\n sendSearchQuerySubmittedEvent,\n sendSearchResultsReturnedEvent,\n sendSearchResultReturnedEvent,\n sendSearchResultClickedEvent,\n}\n\n// Include the version in the build\nconst SynapseReactClientVersion = __SRC_VERSION__\n\nexport {\n Analytics,\n HttpClient,\n SynapseReactClientVersion,\n SynapseComponents,\n SynapseConstants,\n SynapseClient,\n SynapseContext,\n SynapseEnums,\n SynapseQueries,\n Palettes,\n xssOptions,\n SynapseSessionManager,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwCA,IAAM,IAAe,EACnB,0BACF,GAEM,IAAiB;CACrB;CACA;CACA;CACA;AACF,GAEM,IAAoB;CACxB,4BAA4B,QACpB,OAAO,mDACf;CACA,uBAAuB,QACf,OAAO,8DACf;CACA,sCAAsC,QAC9B,OAAO,6DACf;CACA,oBAAoB,QACZ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,0BAA0B,QAClB,OAAO,4DACf;CACA,+BAA+B,QAE3B,OAAO,oFACX;CACA,UAAU,QAAW,OAAO,oCAAiC;CAC7D,kBAAkB,QACV,OAAO,oDACf;CACA;CACA;AACF,GAEM,IAAY;CAChB;CACA;CACA;CACA;CACA;AACF,GAGM,IAAA"}
|
|
1
|
+
{"version":3,"file":"SWC.index.js","names":[],"sources":["../src/SWC.index.ts"],"sourcesContent":["/**\n * SWC.index.ts represents the entry point for the Synapse React Client library as it is published to NPM and\n * used by SynapseWebClient.\n *\n * If you wish to export a component or other object to be used by SynapseWebClient, you should add it to this file.\n */\n\nimport { lazy } from 'react'\nimport {\n displayToast,\n SynapseToastContainer,\n} from './components/ToastMessage/ToastMessage'\nimport SynapseClient, { HttpClient } from './synapse-client'\nimport * as SynapseQueries from './synapse-queries'\nimport Palettes from './theme/palette/Palettes'\nimport { SynapseConstants } from './utils'\nimport { sendAnalyticsEvent } from './utils/analytics/sendAnalyticsEvent'\nimport {\n sendSearchQuerySubmittedEvent,\n sendSearchResultClickedEvent,\n sendSearchResultReturnedEvent,\n sendSearchResultsReturnedEvent,\n} from './utils/analytics/sendSearchEvent'\nimport { FullContextProvider } from './utils/context/FullContextProvider'\nimport {\n SynapseContextConsumer,\n SynapseContextProvider,\n useSynapseContext,\n} from './utils/context/SynapseContext'\nimport { BackendDestinationEnum } from './utils/functions'\nimport { xssOptions } from './utils/functions/SanitizeHtmlUtils'\nimport { getCurrentCookiePreferences } from './utils/hooks'\nimport { SynapseSessionManager } from './utils/AppUtils'\n\n// Also include scss in the bundle\nimport './style/main.scss'\n\n// Injected at build time by Vite's `define`\ndeclare const __SRC_VERSION__: string\n\nconst SynapseEnums = {\n BackendDestinationEnum,\n}\n\nconst SynapseContext = {\n FullContextProvider,\n SynapseContextProvider,\n SynapseContextConsumer,\n useSynapseContext,\n}\n\nconst SynapseComponents = {\n AccessRequirementAclEditor: lazy(\n () => import('./components/AccessRequirementAclEditor'),\n ),\n AccessRequirementList: lazy(\n () => import('./components/AccessRequirementList/AccessRequirementList'),\n ),\n AccessRequirementRelatedProjectsList: lazy(\n () => import('./components/AccessRequirementRelatedProjectsList'),\n ),\n AccountLevelBadges: lazy(\n () => import('./components/AccountLevelBadges/AccountLevelBadges'),\n ),\n AddToDownloadListConfirmationAlert: lazy(\n () =>\n import('./components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert'),\n ),\n AvailableEvaluationQueueList: lazy(\n () =>\n import('./components/ChallengeSubmission/AvailableEvaluationQueueList'),\n ),\n CertificationQuiz: lazy(\n () => import('./components/CertificationQuiz/CertificationQuiz'),\n ),\n CookiesNotification: lazy(() => import('./components/CookiesNotification')),\n CreateOrUpdateAccessRequirementWizard: lazy(\n () => import('./components/CreateOrUpdateAccessRequirementWizard'),\n ),\n CreateOrUpdateDoiModal: lazy(\n () => import('./components/doi/CreateOrUpdateDoiModal'),\n ),\n CreateTableFromCsvDialog: lazy(\n () => import('./components/table/CsvPreview/CreateTableFromCsvDialog'),\n ),\n CreateTableViewWizard: lazy(\n () => import('./components/CreateTableViewWizard/CreateTableViewWizard'),\n ),\n CreatedByModifiedBy: lazy(\n () => import('./components/entity/page/CreatedByModifiedBy'),\n ),\n CsvPreview: lazy(() => import('./components/table/CsvPreview/CsvPreview')),\n CuratorDashboard: lazy(\n () => import('./features/curator/dashboard/CuratorDashboardRouter'),\n ),\n DatasetItemsEditor: lazy(\n () => import('./components/SynapseTable/datasets/DatasetItemsEditor'),\n ),\n DiscussionThread: lazy(() => import('./components/Forum/DiscussionThread')),\n DownloadCartPage: lazy(\n () => import('./components/DownloadCart/DownloadCartPage'),\n ),\n EntityAclEditorModal: lazy(\n () => import('./components/EntityAclEditor/EntityAclEditorModal'),\n ),\n EntityActionMenu: lazy(\n () => import('./components/entity/page/action_menu/EntityActionMenu'),\n ),\n EntityBadgeIcons: lazy(\n () => import('./components/EntityBadgeIcons/EntityBadgeIcons'),\n ),\n EntityCitation: lazy(() => import('./components/EntityCitation')),\n ProjectInfo: lazy(() => import('./components/ProjectInfo/ProjectInfo')),\n EntityFinder: lazy(() => import('./components/EntityFinder/EntityFinder')),\n EntityForm: lazy(() => import('./components/EntityForm/EntityForm')),\n EntityHeaderTable: lazy(() => import('./components/EntityHeaderTable')),\n EntityModal: lazy(() => import('./components/entity/metadata/EntityModal')),\n EntityPageBreadcrumbs: lazy(\n () => import('./components/entity/page/breadcrumbs/EntityPageBreadcrumbs'),\n ),\n EntityPageTitleBar: lazy(\n () => import('./components/entity/page/title_bar/EntityPageTitleBar'),\n ),\n EntityTreeTable: lazy(\n () => import('./components/EntityTreeTable/EntityTreeTable'),\n ),\n EntitySidebar: lazy(() => import('./components/EntitySidebar/EntitySidebar')),\n EntityTypeIcon: lazy(() => import('./components/EntityIcon')),\n EntityUploadModal: lazy(\n () => import('./components/EntityUpload/EntityUploadModal'),\n ),\n EntityViewScopeEditorModal: lazy(\n () =>\n import('./components/EntityViewScopeEditor/EntityViewScopeEditorModal'),\n ),\n CreateProjectModal: lazy(() =>\n import('./components/CreateProjectModal/CreateProjectModal').then(m => ({\n default: m.CreateProjectModal,\n })),\n ),\n ErrorPage: lazy(() => import('./components/error/ErrorPage')),\n EvaluationCard: lazy(() => import('./components/Evaluation/EvaluationCard')),\n EvaluationEditorPage: lazy(\n () => import('./components/Evaluation/EvaluationEditorPage'),\n ),\n FavoritesPage: lazy(() => import('./components/favorites/FavoritesPage')),\n ForumSearch: lazy(() => import('./components/ForumSearch/ForumSearch')),\n ForumTable: lazy(() => import('./components/Forum/ForumTable')),\n FullWidthAlert: lazy(\n () => import('./components/FullWidthAlert/FullWidthAlert'),\n ),\n GoogleAnalytics: lazy(\n () => import('./components/GoogleAnalytics/GoogleAnalytics'),\n ),\n GovernanceMarkdownGithub: lazy(\n () => import('./components/Markdown/GovernanceMarkdownGithub'),\n ),\n GridPage: lazy(() => import('./features/curator/GridPage/GridPage')),\n HasAccess: lazy(() => import('./components/HasAccess/HasAccessV2')),\n HelpPopover: lazy(() => import('./components/HelpPopover/HelpPopover')),\n HtmlPreview: lazy(\n () => import('./components/FilePreview/HtmlPreview/HtmlPreview'),\n ),\n IDUReport: lazy(() => import('./components/IDUReport/IDUReport')),\n IconSvg: lazy(() => import('./components/IconSvg/IconSvg')),\n ImposeRestrictionDialog: lazy(\n () =>\n import('./components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog'),\n ),\n MetadataTasksPage: lazy(\n () =>\n import('./features/entity/metadata-task/components/MetadataTasksPageRouter'),\n ),\n OAuthManagement: lazy(\n () => import('./components/OAuthClientManagement/OAuthManagement'),\n ),\n OrientationBanner: lazy(\n () => import('./components/OrientationBanner/OrientationBanner'),\n ),\n PageProgress: lazy(() => import('./components/PageProgress/PageProgress')),\n ProjectDataAvailability: lazy(\n () => import('./components/ProjectStorage/ProjectDataAvailability'),\n ),\n ProjectVisibilityChip: lazy(\n () => import('./components/ProjectVisibilityChip/ProjectVisibilityChip'),\n ),\n ProvenanceGraph: lazy(\n () => import('./components/ProvenanceGraph/ProvenanceGraph'),\n ),\n QueryWrapperPlotNav: lazy(\n () => import('./components/QueryWrapperPlotNav/QueryWrapperPlotNav'),\n ),\n RejectProfileValidationRequestModal: lazy(\n () => import('./components/dataaccess/RejectProfileValidationRequestModal'),\n ),\n ReviewerDashboard: lazy(\n () => import('./components/dataaccess/ReviewerDashboard'),\n ),\n SearchQueryWrapperPlotNav: lazy(\n () =>\n import('./components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav'),\n ),\n ShareThisPage: lazy(() => import('./components/ShareThisPage')),\n SkeletonButton: lazy(() => import('./components/Skeleton/SkeletonButton')),\n SqlDefinedTableEditorModal: lazy(\n () =>\n import('./components/SqlDefinedTableEditor/SqlDefinedTableEditorModal'),\n ),\n StandaloneQueryWrapper: lazy(\n () => import('./components/StandaloneQueryWrapper/StandaloneQueryWrapper'),\n ),\n StatisticsPlot: lazy(() => import('./components/StatisticsPlot')),\n SubmissionViewScopeEditorModal: lazy(\n () =>\n import('./components/SubmissionViewScopeEditor/SubmissionViewScopeEditorModal'),\n ),\n SubscriptionPage: lazy(() => import('./components/SubscriptionPage')),\n SynapseChat: lazy(() => import('./components/SynapseChat/SynapseChat')),\n SynapseGrid: lazy(() => import('./components/DataGrid/SynapseGrid')),\n SynapseFooter: lazy(() => import('./components/SynapseFooter/SynapseFooter')),\n SynapseHomepageV2: lazy(\n () => import('./components/SynapseHomepageV2/SynapseHomepageV2'),\n ),\n SynapseNavDrawer: lazy(\n () => import('./components/SynapseNavDrawer/SynapseNavDrawer'),\n ),\n SynapsePlansPage: lazy(\n () => import('./components/SynapseHomepageV2/SynapsePlansPage'),\n ),\n SynapsePortalBanners: lazy(\n () => import('./components/SynapsePortalBanners/SynapsePortalBanners'),\n ),\n SynapseSearchPage: lazy(\n () => import('./components/SynapseSearchPageResults/SynapseSearchPage'),\n ),\n SynapseToastContainer,\n TableColumnSchemaEditor: lazy(\n () =>\n import('./components/TableColumnSchemaEditor/TableColumnSchemaEditor'),\n ),\n TrashCanList: lazy(() => import('./components/trash/TrashCanList')),\n UpdateTableWithCsvDialog: lazy(\n () => import('./components/table/CsvPreview/UpdateTableWithCsvDialog'),\n ),\n UserAccessRequestHistoryPlace: lazy(\n () =>\n import('./components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPlace'),\n ),\n UserCard: lazy(() => import('./components/UserCard/UserCard')),\n UserProfileLinks: lazy(\n () => import('./components/UserProfileLinks/UserProfileLinks'),\n ),\n displayToast,\n getCurrentCookiePreferences,\n}\n\nconst Analytics = {\n sendAnalyticsEvent,\n sendSearchQuerySubmittedEvent,\n sendSearchResultsReturnedEvent,\n sendSearchResultReturnedEvent,\n sendSearchResultClickedEvent,\n}\n\n// Include the version in the build\nconst SynapseReactClientVersion = __SRC_VERSION__\n\nexport {\n Analytics,\n HttpClient,\n SynapseReactClientVersion,\n SynapseComponents,\n SynapseConstants,\n SynapseClient,\n SynapseContext,\n SynapseEnums,\n SynapseQueries,\n Palettes,\n xssOptions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AAe,QAAW,OAAO,8CAA2C;CAC5E,mBAAmB,QACX,OAAO,sDACf;CACA,kBAAkB,QACV,OAAO,oDACf;CACA,kBAAkB,QACV,OAAO,qDACf;CACA,sBAAsB,QACd,OAAO,4DACf;CACA,mBAAmB,QACX,OAAO,6DACf;CACA;CACA,yBAAyB,QAErB,OAAO,kEACX;CACA,cAAc,QAAW,OAAO,qCAAkC;CAClE,0BAA0B,QAClB,OAAO,4DACf;CACA,+BAA+B,QAE3B,OAAO,oFACX;CACA,UAAU,QAAW,OAAO,oCAAiC;CAC7D,kBAAkB,QACV,OAAO,oDACf;CACA;CACA;AACF,GAEM,IAAY;CAChB;CACA;CACA;CACA;CACA;AACF,GAGM,IAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AccessRequirement, Renewal, Request, RestrictableObjectType } from '@sage-bionetworks/synapse-types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { RequestableAccessRequirement
|
|
3
|
+
import { RequestableAccessRequirement } from '@/utils/types/RequestableAccessRequirement';
|
|
4
|
+
import { RequestDataStep } from './RequestDataStep';
|
|
4
5
|
export type AccessRequirementListProps = {
|
|
5
6
|
numberOfFilesAffected?: number;
|
|
6
7
|
requestObjectName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessRequirementList.d.ts","sourceRoot":"","sources":["../../../src/components/AccessRequirementList/AccessRequirementList.tsx"],"names":[],"mappings":"AAmBA,OAAO,EACL,iBAAiB,EAKjB,OAAO,EACP,OAAO,EACP,sBAAsB,EAGvB,MAAM,iCAAiC,CAAA;AAGxC,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAA;AASpD,OAAO,
|
|
1
|
+
{"version":3,"file":"AccessRequirementList.d.ts","sourceRoot":"","sources":["../../../src/components/AccessRequirementList/AccessRequirementList.tsx"],"names":[],"mappings":"AAmBA,OAAO,EACL,iBAAiB,EAKjB,OAAO,EACP,OAAO,EACP,sBAAsB,EAG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ACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,KAAK,EAAE,0BAA0B,2CA0blC"}
|
|
@@ -14,35 +14,36 @@ import { EntityLink as s } from "../EntityLink.js";
|
|
|
14
14
|
import ae from "../UserOrTeamBadge/index.js";
|
|
15
15
|
import { AccessRequirementListItem as oe } from "./AccessRequirementListItem.js";
|
|
16
16
|
import { hasAccessorRequirement as c } from "../SetBasicAccessRequirementFields/GovernanceUtils.js";
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import le from "./ManagedACTAccessRequirementRequestFlow/
|
|
20
|
-
import ue from "./
|
|
21
|
-
import de from "./
|
|
22
|
-
import fe from "./ManagedACTAccessRequirementRequestFlow/
|
|
23
|
-
import pe from "./ManagedACTAccessRequirementRequestFlow/
|
|
24
|
-
import me from "./ManagedACTAccessRequirementRequestFlow/
|
|
25
|
-
import he from "./ManagedACTAccessRequirementRequestFlow/
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import
|
|
17
|
+
import { isRequestableAccessRequirement as se } from "../../utils/types/RequestableAccessRequirement.js";
|
|
18
|
+
import { RequestDataStep as l, getFirstRequestStep as u, getNextRequestStep as d, getPreviousRequestStep as ce } from "./RequestDataStep.js";
|
|
19
|
+
import le from "./ManagedACTAccessRequirementRequestFlow/CancelRequestDataAccess.js";
|
|
20
|
+
import ue from "./ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.js";
|
|
21
|
+
import de from "./JsonSchemaAccessRequirementRequestFlow/JsonSchemaRequestWizard.js";
|
|
22
|
+
import fe from "./ManagedACTAccessRequirementRequestFlow/RequestDataAccessSuccess.js";
|
|
23
|
+
import pe from "./ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js";
|
|
24
|
+
import me from "./ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.js";
|
|
25
|
+
import he from "./ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js";
|
|
26
|
+
import ge from "./ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js";
|
|
27
|
+
import f from "./ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js";
|
|
28
|
+
import p from "./RequirementItem/AuthenticatedRequirement.js";
|
|
29
|
+
import m from "./RequirementItem/CertificationRequirement.js";
|
|
30
|
+
import h from "./RequirementItem/TwoFactorAuthEnabledRequirement.js";
|
|
31
|
+
import g from "./RequirementItem/ValidationRequirement.js";
|
|
32
|
+
import { useMemo as _, useState as v } from "react";
|
|
33
|
+
import { Button as _e, Dialog as ve, DialogActions as ye, DialogContent as be, Typography as y, styled as b } from "@mui/material";
|
|
34
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
35
|
+
import { ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE as w, JSON_SCHEMA_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE as T, LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE as E, MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE as D, RestrictableObjectType as O, SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE as k, TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE as A } from "@sage-bionetworks/synapse-types";
|
|
36
|
+
import j from "lodash-es/noop";
|
|
37
|
+
import M from "lodash-es/groupBy";
|
|
37
38
|
//#region src/components/AccessRequirementList/AccessRequirementList.tsx
|
|
38
|
-
var
|
|
39
|
+
var N = [
|
|
40
|
+
k,
|
|
39
41
|
A,
|
|
40
|
-
|
|
41
|
-
O,
|
|
42
|
-
E,
|
|
42
|
+
D,
|
|
43
43
|
T,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
w,
|
|
45
|
+
E
|
|
46
|
+
], P = new Set(N), F = b(y, { label: "DialogSubsectionHeader" })(({ theme: e }) => ({
|
|
46
47
|
marginTop: e.spacing(4),
|
|
47
48
|
marginBottom: e.spacing(2),
|
|
48
49
|
paddingBottom: e.spacing(1),
|
|
@@ -50,88 +51,88 @@ var P = [
|
|
|
50
51
|
fontWeight: "bold",
|
|
51
52
|
borderBottom: "1px solid",
|
|
52
53
|
borderColor: e.palette.grey[200]
|
|
53
|
-
})),
|
|
54
|
-
function
|
|
55
|
-
let { onHide:
|
|
56
|
-
enabled: !!
|
|
54
|
+
})), I = (e) => e.some(L), L = (e) => !P.has(e.concreteType);
|
|
55
|
+
function R(b) {
|
|
56
|
+
let { onHide: w = j, renderAsModal: E = !1, numberOfFilesAffected: k, requestObjectName: A, customDialogActions: P, onSubmissionCreated: I = j, initialWizardEntry: L } = b, R = "entityId" in b, z = "teamId" in b, xe = "accessRequirementFromProps" in b, B = "subjectId" in b ? b.subjectId : R ? b.entityId : z ? b.teamId : void 0, V = "subjectType" in b ? b.subjectType : R ? O.ENTITY : z ? O.TEAM : void 0, { dialogTitle: H = "Data Access Request" } = b, { isAuthenticated: Se } = i(), [U, Ce] = v(L?.step ?? l.SHOW_ALL_ARS), we = ee(), [W, Te] = v(L?.accessRequirement), G = W?.concreteType === D ? W : void 0, K = W?.concreteType === T ? W : void 0, [Ee, De] = v(""), [Oe, ke] = v(), Ae = te(W), { data: je } = re(B, { enabled: B !== void 0 && V === O.TEAM }), { data: Me } = ne(B, { enabled: B !== void 0 && V === O.ENTITY }), q = (xe ? b.accessRequirementFromProps : void 0) ?? Me ?? je, { data: J } = ie((q ?? []).map((e) => String(e.id)), {
|
|
57
|
+
enabled: !!q,
|
|
57
58
|
staleTime: Infinity
|
|
58
|
-
}),
|
|
59
|
-
if (
|
|
60
|
-
let e =
|
|
61
|
-
return
|
|
59
|
+
}), Ne = _(() => {
|
|
60
|
+
if (q && J) {
|
|
61
|
+
let e = M(q, "concreteType");
|
|
62
|
+
return N.map((t) => {
|
|
62
63
|
let n = e[t];
|
|
63
|
-
return n ?
|
|
64
|
+
return n ? J.map((e) => n.find((t) => e === String(t.id))) : [];
|
|
64
65
|
}).flat().filter((e) => e !== void 0);
|
|
65
66
|
}
|
|
66
|
-
}, [
|
|
67
|
+
}, [q, J]), Y = (e) => {
|
|
67
68
|
let { accessRequirement: t, step: n, researchProjectId: r, dataAccessRequest: i } = e;
|
|
68
|
-
t &&
|
|
69
|
-
},
|
|
70
|
-
/* @__PURE__ */
|
|
69
|
+
t && Te(t), r && De(r), i && ke(i), Ce(n);
|
|
70
|
+
}, X = () => Y({ step: d(W, U) }), Z = () => Y({ step: ce(W, U) }), Pe = q?.some((e) => se(e) && e.isTwoFaRequired), Q = q?.some((e) => c(e) && e.isCertifiedUserRequired), Fe = q?.some((e) => c(e) && e.isValidatedProfileRequired), Ie = _(() => A || (k ? /* @__PURE__ */ C(x, { children: [
|
|
71
|
+
/* @__PURE__ */ S(o, {
|
|
71
72
|
icon: "file",
|
|
72
73
|
sx: { width: "30px" }
|
|
73
74
|
}),
|
|
74
75
|
" ",
|
|
75
|
-
|
|
76
|
+
k,
|
|
76
77
|
" ",
|
|
77
78
|
"File(s)"
|
|
78
|
-
] }) :
|
|
79
|
+
] }) : B !== void 0 && V === O.ENTITY ? /* @__PURE__ */ S(s, { entity: B }) : V === O.TEAM ? /* @__PURE__ */ S(ae, { principalId: B }) : (console.warn(`Unhandled case for AccessRequirementList requestDetails: ${V}: ${B}`), /* @__PURE__ */ S(x, {}))), [
|
|
80
|
+
k,
|
|
79
81
|
A,
|
|
80
|
-
|
|
81
|
-
V
|
|
82
|
-
H
|
|
82
|
+
B,
|
|
83
|
+
V
|
|
83
84
|
]), Le = [
|
|
84
85
|
l.UPDATE_ACCESSORS_AND_FILES,
|
|
85
86
|
l.UPDATE_RESEARCH_PROJECT,
|
|
86
87
|
l.REVIEW_DUC,
|
|
87
88
|
l.EDUC_PREVIEW
|
|
88
|
-
].includes(
|
|
89
|
-
switch (
|
|
89
|
+
].includes(U) && Ae ? "xl" : "md", $ = /* @__PURE__ */ S(x, {});
|
|
90
|
+
switch (U) {
|
|
90
91
|
case l.UPDATE_RESEARCH_PROJECT:
|
|
91
|
-
$ = /* @__PURE__ */
|
|
92
|
-
managedACTAccessRequirement:
|
|
92
|
+
$ = /* @__PURE__ */ S(pe, {
|
|
93
|
+
managedACTAccessRequirement: G,
|
|
93
94
|
onSave: (e) => {
|
|
94
|
-
|
|
95
|
-
step: d(
|
|
95
|
+
Y({
|
|
96
|
+
step: d(G, U),
|
|
96
97
|
researchProjectId: e.id
|
|
97
98
|
});
|
|
98
99
|
},
|
|
99
|
-
onHide:
|
|
100
|
+
onHide: w
|
|
100
101
|
});
|
|
101
102
|
break;
|
|
102
103
|
case l.UPDATE_ACCESSORS_AND_FILES:
|
|
103
|
-
$ = /* @__PURE__ */
|
|
104
|
-
researchProjectId:
|
|
105
|
-
managedACTAccessRequirement:
|
|
106
|
-
subjectId:
|
|
107
|
-
subjectType:
|
|
108
|
-
onHide:
|
|
104
|
+
$ = /* @__PURE__ */ S(ue, {
|
|
105
|
+
researchProjectId: Ee,
|
|
106
|
+
managedACTAccessRequirement: G,
|
|
107
|
+
subjectId: B ?? "",
|
|
108
|
+
subjectType: V ?? O.ENTITY,
|
|
109
|
+
onHide: w,
|
|
109
110
|
onCancel: (e) => {
|
|
110
|
-
|
|
111
|
+
Y({
|
|
111
112
|
step: l.PROMPT_CANCEL,
|
|
112
113
|
dataAccessRequest: e
|
|
113
114
|
});
|
|
114
115
|
},
|
|
115
116
|
onSubmissionCreated: (e) => {
|
|
116
|
-
|
|
117
|
+
Y({ step: l.COMPLETE }), I(e);
|
|
117
118
|
},
|
|
118
|
-
onBackClicked:
|
|
119
|
-
onEDucContinue:
|
|
119
|
+
onBackClicked: Z,
|
|
120
|
+
onEDucContinue: G?.eDucTemplateId ? X : void 0
|
|
120
121
|
});
|
|
121
122
|
break;
|
|
122
123
|
case l.REVIEW_DUC:
|
|
123
|
-
$ = /* @__PURE__ */
|
|
124
|
-
managedACTAccessRequirement:
|
|
125
|
-
onHide:
|
|
126
|
-
onBackClicked:
|
|
127
|
-
onCreateDuc:
|
|
124
|
+
$ = /* @__PURE__ */ S(me, {
|
|
125
|
+
managedACTAccessRequirement: W,
|
|
126
|
+
onHide: w,
|
|
127
|
+
onBackClicked: Z,
|
|
128
|
+
onCreateDuc: X
|
|
128
129
|
});
|
|
129
130
|
break;
|
|
130
131
|
case l.EDUC_PREVIEW:
|
|
131
|
-
$ = /* @__PURE__ */
|
|
132
|
-
managedACTAccessRequirement:
|
|
133
|
-
onHide:
|
|
134
|
-
onBackClicked:
|
|
132
|
+
$ = /* @__PURE__ */ S(he, {
|
|
133
|
+
managedACTAccessRequirement: W,
|
|
134
|
+
onHide: w,
|
|
135
|
+
onBackClicked: Z,
|
|
135
136
|
onSendForSignature: () => {
|
|
136
137
|
e("Your DUC has been emailed to your collaborators. You can check signature progress in your access request history.", "info", {
|
|
137
138
|
primaryButtonConfig: {
|
|
@@ -139,125 +140,125 @@ function z(x) {
|
|
|
139
140
|
href: `${n(t.PORTAL_ENDPOINT)}RequestHistory:default`
|
|
140
141
|
},
|
|
141
142
|
dismissOnPrimaryButtonClick: !0
|
|
142
|
-
}),
|
|
143
|
+
}), w();
|
|
143
144
|
},
|
|
144
|
-
onManualUpload:
|
|
145
|
+
onManualUpload: X
|
|
145
146
|
});
|
|
146
147
|
break;
|
|
147
148
|
case l.MANUAL_UPLOAD_DUC:
|
|
148
|
-
$ = /* @__PURE__ */
|
|
149
|
-
managedACTAccessRequirement:
|
|
150
|
-
subjectId:
|
|
151
|
-
subjectType:
|
|
152
|
-
onHide:
|
|
153
|
-
onBackClicked:
|
|
149
|
+
$ = /* @__PURE__ */ S(ge, {
|
|
150
|
+
managedACTAccessRequirement: W,
|
|
151
|
+
subjectId: B ?? "",
|
|
152
|
+
subjectType: V ?? O.ENTITY,
|
|
153
|
+
onHide: w,
|
|
154
|
+
onBackClicked: Z,
|
|
154
155
|
onSubmissionCreated: (e) => {
|
|
155
|
-
|
|
156
|
+
Y({ step: l.COMPLETE }), I(e);
|
|
156
157
|
}
|
|
157
158
|
});
|
|
158
159
|
break;
|
|
159
160
|
case l.SIGNATURE_STATUS:
|
|
160
|
-
$ = /* @__PURE__ */
|
|
161
|
-
managedACTAccessRequirement:
|
|
162
|
-
subjectId:
|
|
163
|
-
subjectType:
|
|
164
|
-
onHide:
|
|
161
|
+
$ = /* @__PURE__ */ S(f, {
|
|
162
|
+
managedACTAccessRequirement: W,
|
|
163
|
+
subjectId: B ?? "",
|
|
164
|
+
subjectType: V ?? O.ENTITY,
|
|
165
|
+
onHide: w,
|
|
165
166
|
onBackClicked: () => {
|
|
166
|
-
|
|
167
|
+
Y({ step: u(W) });
|
|
167
168
|
},
|
|
168
169
|
onSubmissionCreated: (e) => {
|
|
169
|
-
|
|
170
|
+
Y({ step: l.COMPLETE }), I(e);
|
|
170
171
|
}
|
|
171
172
|
});
|
|
172
173
|
break;
|
|
173
174
|
case l.SCHEMA_DRIVEN_REQUEST:
|
|
174
|
-
$ = /* @__PURE__ */
|
|
175
|
-
accessRequirement:
|
|
176
|
-
subjectId:
|
|
177
|
-
subjectType:
|
|
178
|
-
onHide:
|
|
175
|
+
$ = /* @__PURE__ */ S(de, {
|
|
176
|
+
accessRequirement: K,
|
|
177
|
+
subjectId: B ?? "",
|
|
178
|
+
subjectType: V ?? O.ENTITY,
|
|
179
|
+
onHide: w,
|
|
179
180
|
onCancel: (e) => {
|
|
180
|
-
|
|
181
|
+
Y({
|
|
181
182
|
step: l.PROMPT_CANCEL,
|
|
182
183
|
dataAccessRequest: e
|
|
183
184
|
});
|
|
184
185
|
},
|
|
185
186
|
onSubmissionCreated: (e) => {
|
|
186
|
-
|
|
187
|
+
Y({ step: l.COMPLETE }), I(e);
|
|
187
188
|
},
|
|
188
|
-
onEDucContinue:
|
|
189
|
+
onEDucContinue: K?.eDucTemplateId ? X : void 0
|
|
189
190
|
});
|
|
190
191
|
break;
|
|
191
192
|
case l.PROMPT_CANCEL:
|
|
192
|
-
$ = /* @__PURE__ */
|
|
193
|
-
modifiedDataAccessRequest:
|
|
194
|
-
onHide:
|
|
193
|
+
$ = /* @__PURE__ */ S(le, {
|
|
194
|
+
modifiedDataAccessRequest: Oe,
|
|
195
|
+
onHide: w
|
|
195
196
|
});
|
|
196
197
|
break;
|
|
197
198
|
case l.PROMPT_LOGIN:
|
|
198
|
-
r(
|
|
199
|
+
r(we.toString()), H = "Please Log In", $ = /* @__PURE__ */ S(x, {});
|
|
199
200
|
break;
|
|
200
201
|
case l.COMPLETE:
|
|
201
|
-
$ = /* @__PURE__ */
|
|
202
|
+
$ = /* @__PURE__ */ S(fe, { onHide: w });
|
|
202
203
|
break;
|
|
203
204
|
case l.SHOW_ALL_ARS:
|
|
204
|
-
default: $ = /* @__PURE__ */
|
|
205
|
-
|
|
206
|
-
title:
|
|
207
|
-
onCancel:
|
|
208
|
-
}) : /* @__PURE__ */
|
|
205
|
+
default: $ = /* @__PURE__ */ C(x, { children: [
|
|
206
|
+
E ? /* @__PURE__ */ S(a, {
|
|
207
|
+
title: H,
|
|
208
|
+
onCancel: w
|
|
209
|
+
}) : /* @__PURE__ */ S(y, {
|
|
209
210
|
variant: "h5",
|
|
210
211
|
sx: { mb: 2 },
|
|
211
|
-
children:
|
|
212
|
+
children: H
|
|
212
213
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ C(be, { children: [
|
|
215
|
+
/* @__PURE__ */ S(F, {
|
|
215
216
|
variant: "h4",
|
|
216
217
|
sx: { mt: 0 },
|
|
217
218
|
children: "What is this request for?"
|
|
218
219
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ S(y, {
|
|
220
221
|
variant: "body1",
|
|
221
222
|
component: "span",
|
|
222
223
|
children: Ie
|
|
223
224
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ S(F, {
|
|
225
226
|
variant: "h4",
|
|
226
227
|
children: "What do I need to do?"
|
|
227
228
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
|
|
230
|
-
Fe && /* @__PURE__ */
|
|
231
|
-
|
|
232
|
-
|
|
229
|
+
/* @__PURE__ */ S(p, {}),
|
|
230
|
+
Q && /* @__PURE__ */ S(m, {}),
|
|
231
|
+
Fe && /* @__PURE__ */ S(g, {}),
|
|
232
|
+
Pe && /* @__PURE__ */ S(h, {}),
|
|
233
|
+
Ne?.map((e) => /* @__PURE__ */ S(oe, {
|
|
233
234
|
accessRequirement: e,
|
|
234
|
-
subjectId:
|
|
235
|
-
subjectType:
|
|
236
|
-
onHide:
|
|
235
|
+
subjectId: B,
|
|
236
|
+
subjectType: V,
|
|
237
|
+
onHide: w,
|
|
237
238
|
onRequestAccess: (e) => {
|
|
238
|
-
|
|
239
|
+
Y({
|
|
239
240
|
accessRequirement: e,
|
|
240
|
-
step:
|
|
241
|
+
step: Se ? u(e) : l.PROMPT_LOGIN
|
|
241
242
|
});
|
|
242
243
|
}
|
|
243
244
|
}, e.id))
|
|
244
245
|
] }),
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ S(ye, { children: P || /* @__PURE__ */ S(x, { children: E && /* @__PURE__ */ S(_e, {
|
|
246
247
|
variant: "contained",
|
|
247
|
-
onClick:
|
|
248
|
+
onClick: w,
|
|
248
249
|
children: "Close"
|
|
249
250
|
}) }) })
|
|
250
251
|
] });
|
|
251
252
|
}
|
|
252
|
-
return
|
|
253
|
+
return E ? /* @__PURE__ */ S(ve, {
|
|
253
254
|
maxWidth: Le,
|
|
254
255
|
fullWidth: !0,
|
|
255
256
|
open: !0,
|
|
256
|
-
onClose:
|
|
257
|
+
onClose: w,
|
|
257
258
|
children: $
|
|
258
|
-
}) : /* @__PURE__ */
|
|
259
|
+
}) : /* @__PURE__ */ S(x, { children: $ });
|
|
259
260
|
}
|
|
260
261
|
//#endregion
|
|
261
|
-
export {
|
|
262
|
+
export { I as checkHasUnsupportedRequirement, R as default };
|
|
262
263
|
|
|
263
264
|
//# sourceMappingURL=AccessRequirementList.js.map
|