synapse-react-client 4.0.44 → 4.0.46
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/aridhia-queries/AridhiaKeyFactory.d.ts +1 -0
- package/dist/aridhia-queries/AridhiaKeyFactory.d.ts.map +1 -1
- package/dist/aridhia-queries/AridhiaKeyFactory.js +3 -0
- package/dist/aridhia-queries/AridhiaKeyFactory.js.map +1 -1
- package/dist/aridhia-queries/aridhiaTokenExchange.js +6 -6
- package/dist/aridhia-queries/index.d.ts +1 -0
- package/dist/aridhia-queries/index.d.ts.map +1 -1
- package/dist/aridhia-queries/index.js +11 -10
- package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.d.ts +19 -0
- package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.js +14 -0
- package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.js.map +1 -0
- package/dist/components/AccessRequirementList/AccessApprovalCheckMark.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/AccessApprovalCheckMark.js +6 -4
- package/dist/components/AccessRequirementList/AccessApprovalCheckMark.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/AccessorRequirementHelpText.js +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.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/ResearchProjectForm/ResearchProjectForm.js +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewCollaboratorsAndSigningOfficialAccordion.js +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewCollaboratorsAndSigningOfficialAccordion.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js +11 -8
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.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/AccessTokenPage/AccessTokenPage.js +1 -1
- package/dist/components/AccessTokenPage/AccessTokenPage.js.map +1 -1
- package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js +1 -1
- package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js.map +1 -1
- package/dist/components/Aridhia/DarWizard/DarSectionForm.d.ts.map +1 -1
- package/dist/components/Aridhia/DarWizard/DarSectionForm.js +17 -13
- package/dist/components/Aridhia/DarWizard/DarSectionForm.js.map +1 -1
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.d.ts +3 -3
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.d.ts.map +1 -1
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js +33 -34
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js.map +1 -1
- package/dist/components/Aridhia/fairFormToRjsf.js +1 -1
- package/dist/components/Aridhia/fairFormToRjsf.js.map +1 -1
- package/dist/components/Authentication/LastLoginInfo.js +1 -1
- package/dist/components/Authentication/LastLoginInfo.js.map +1 -1
- package/dist/components/CertificationQuiz/CertificationQuiz.js +1 -1
- package/dist/components/CertificationQuiz/CertificationQuiz.js.map +1 -1
- package/dist/components/ChallengeSubmission/AvailableEvaluationQueueList.js +1 -1
- package/dist/components/ChallengeSubmission/AvailableEvaluationQueueList.js.map +1 -1
- package/dist/components/ChallengeSubmission/EvaluationQueueCurrentRoundInfo.js +1 -1
- package/dist/components/ChallengeSubmission/EvaluationQueueCurrentRoundInfo.js.map +1 -1
- package/dist/components/ChallengeSubmission/SubmissionDirectoryList.js +6 -6
- package/dist/components/ChallengeSubmission/SubmissionDirectoryList.js.map +1 -1
- package/dist/components/ChallengeTeamWizard/ChallengeTeamTable.d.ts.map +1 -1
- package/dist/components/ChallengeTeamWizard/ChallengeTeamTable.js +4 -4
- package/dist/components/ChallengeTeamWizard/ChallengeTeamTable.js.map +1 -1
- package/dist/components/ChallengeTeamWizard/SelectChallengeTeam.js +4 -4
- package/dist/components/CitationPopover/CitationPopoverContent.js +4 -4
- package/dist/components/CitationPopover/CitationPopoverContent.js.map +1 -1
- package/dist/components/ComponentCollapse.d.ts.map +1 -1
- package/dist/components/ComponentCollapse.js +2 -1
- package/dist/components/ComponentCollapse.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/DataGrid/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +231 -219
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts.map +1 -1
- package/dist/components/DataGrid/SyncGridWithSourceButton.js +5 -4
- package/dist/components/DataGrid/SyncGridWithSourceButton.js.map +1 -1
- package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.d.ts.map +1 -1
- package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.js +7 -5
- package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.js.map +1 -1
- package/dist/components/DataGrid/components/ExportCsvFromGridButton.js +4 -4
- package/dist/components/DataGrid/components/ExportCsvFromGridButton.js.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsButton.js +4 -4
- package/dist/components/DataGrid/components/ReorderColumnsButton.js.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsDialog.d.ts.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsDialog.js +12 -8
- package/dist/components/DataGrid/components/ReorderColumnsDialog.js.map +1 -1
- package/dist/components/DataGrid/components/UploadCsvToGridButton.js +1 -1
- package/dist/components/DataGrid/components/UploadCsvToGridButton.js.map +1 -1
- package/dist/components/DataGrid/hooks/useGridUndoRedo.js +5 -5
- package/dist/components/DataGrid/utils/applyModelChange.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/applyModelChange.js +14 -14
- package/dist/components/DataGrid/utils/applyModelChange.js.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.js +1 -1
- package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
- package/dist/components/DataGrid/utils/splitPatch.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/splitPatch.js +22 -13
- package/dist/components/DataGrid/utils/splitPatch.js.map +1 -1
- package/dist/components/DownloadCart/DownloadCartPage.js +1 -1
- package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +2 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.module.js.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.module.scss +1 -3
- package/dist/components/EntityBadgeIcons/EntityBadgeIcons.d.ts.map +1 -1
- package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js +16 -10
- package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js.map +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
- package/dist/components/EntityFinder/EntityFinder.js +4 -4
- package/dist/components/EntityFinder/EntityIdTextField.js +1 -1
- package/dist/components/EntityFinder/EntityIdTextField.js.map +1 -1
- package/dist/components/EntityFinder/tree/VirtualizedTree.d.ts.map +1 -1
- package/dist/components/EntityFinder/tree/VirtualizedTree.js +5 -4
- package/dist/components/EntityFinder/tree/VirtualizedTree.js.map +1 -1
- package/dist/components/EntityHeaderTable/EntityHeaderTable.js +1 -1
- package/dist/components/EntityHeaderTable/EntityHeaderTable.js.map +1 -1
- package/dist/components/EntityTreeTable/components/EntityNameCell.d.ts.map +1 -1
- package/dist/components/EntityTreeTable/components/EntityNameCell.js +2 -1
- package/dist/components/EntityTreeTable/components/EntityNameCell.js.map +1 -1
- package/dist/components/EntityUpload/FileUploadProgress.d.ts.map +1 -1
- package/dist/components/EntityUpload/FileUploadProgress.js +11 -7
- package/dist/components/EntityUpload/FileUploadProgress.js.map +1 -1
- package/dist/components/Evaluation/round_limits/EvaluationRoundLimitOptionsList.d.ts.map +1 -1
- package/dist/components/Evaluation/round_limits/EvaluationRoundLimitOptionsList.js +4 -3
- package/dist/components/Evaluation/round_limits/EvaluationRoundLimitOptionsList.js.map +1 -1
- package/dist/components/ExperimentalMode/ExperimentalMode.js +1 -1
- package/dist/components/ExperimentalMode/ExperimentalMode.js.map +1 -1
- package/dist/components/ExternalFileHandleLink/ExternalFileHandleLink.js +1 -1
- package/dist/components/ExternalFileHandleLink/ExternalFileHandleLink.js.map +1 -1
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js +2 -1
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js.map +1 -1
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js +2 -1
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js.map +1 -1
- package/dist/components/FormTemplateEditor/FieldLibrary.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/FieldLibrary.js +2 -1
- package/dist/components/FormTemplateEditor/FieldLibrary.js.map +1 -1
- package/dist/components/FormTemplateEditor/FieldLibraryRow.js +4 -4
- package/dist/components/FormTemplateEditor/FieldLibraryRow.js.map +1 -1
- package/dist/components/FormTemplateEditor/FormStructurePanel.js +1 -1
- package/dist/components/FormTemplateEditor/FormStructurePanel.js.map +1 -1
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js +1 -1
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js.map +1 -1
- package/dist/components/FormTemplateEditor/StepCard.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/StepCard.js +15 -10
- package/dist/components/FormTemplateEditor/StepCard.js.map +1 -1
- package/dist/components/FormTemplateEditor/StepFieldRow.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/StepFieldRow.js +11 -6
- package/dist/components/FormTemplateEditor/StepFieldRow.js.map +1 -1
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.js +2 -1
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.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/GenericCard/DuoTermTags/DuoTermTags.js +45 -45
- package/dist/components/GenericCard/PortalDOI/PortalDOI.js +5 -5
- package/dist/components/GenericCard/PortalDOI/PortalDOI.js.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
- package/dist/components/HelpPopover/HelpPopover.js +1 -1
- package/dist/components/HelpPopover/HelpPopover.js.map +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
- package/dist/components/IconSvg/IconSvg.js +154 -47
- package/dist/components/IconSvg/IconSvg.js.map +1 -1
- package/dist/components/JsonSchemaForm/templates/ButtonTemplate.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/templates/ButtonTemplate.js +19 -16
- package/dist/components/JsonSchemaForm/templates/ButtonTemplate.js.map +1 -1
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js +2 -1
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js.map +1 -1
- package/dist/components/JsonSchemaForm/widgets/PhoneWidget.d.ts +9 -0
- package/dist/components/JsonSchemaForm/widgets/PhoneWidget.d.ts.map +1 -0
- package/dist/components/JsonSchemaForm/widgets/PhoneWidget.js +21 -0
- package/dist/components/JsonSchemaForm/widgets/PhoneWidget.js.map +1 -0
- package/dist/components/Markdown/MarkdownCollapse.d.ts.map +1 -1
- package/dist/components/Markdown/MarkdownCollapse.js +3 -1
- package/dist/components/Markdown/MarkdownCollapse.js.map +1 -1
- package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js +1 -1
- package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js.map +1 -1
- package/dist/components/OAuthClientManagement/OAuthManagement.js +14 -13
- package/dist/components/OAuthClientManagement/OAuthManagement.js.map +1 -1
- package/dist/components/PortalList/PortalCard.d.ts.map +1 -1
- package/dist/components/PortalList/PortalCard.js +6 -5
- package/dist/components/PortalList/PortalCard.js.map +1 -1
- package/dist/components/PortalList/PortalList.js +4 -4
- package/dist/components/PortalList/PortalList.js.map +1 -1
- package/dist/components/ProjectVisibilityChip/ProjectVisibilityChip.js +6 -6
- package/dist/components/QueryBuilder/FilterConditionRow.js +4 -4
- package/dist/components/QueryCountButton/QueryCountButton.js +5 -5
- package/dist/components/QueryCountButton/QueryCountButton.js.map +1 -1
- package/dist/components/ReleaseCard/ReleaseCardLarge.js +5 -5
- package/dist/components/ReleaseCard/ReleaseCardLarge.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/ShareThisPage/ShareThisPage.js +4 -4
- package/dist/components/ShareThisPage/ShareThisPage.js.map +1 -1
- package/dist/components/SustainabilityScorecard/DialLayout.js +1 -1
- package/dist/components/SustainabilityScorecard/DialLayout.js.map +1 -1
- package/dist/components/SustainabilityScorecard/SustainabilityScorecard.js +1 -1
- package/dist/components/SustainabilityScorecard/SustainabilityScorecard.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChat.js +1 -1
- package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.js +2 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.js.map +1 -1
- package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.js +1 -1
- package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.js.map +1 -1
- package/dist/components/SynapseFooter/SynapseFooter.js +1 -1
- package/dist/components/SynapseFooter/SynapseFooter.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseFeaturedDatasetItem.js +1 -1
- package/dist/components/SynapseHomepageV2/SynapseFeaturedDatasetItem.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.js +2 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseInActionItem.js +4 -4
- package/dist/components/SynapseHomepageV2/SynapseInActionItem.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseTrendingProjectsItem.js +1 -1
- package/dist/components/SynapseHomepageV2/SynapseTrendingProjectsItem.js.map +1 -1
- package/dist/components/SynapseNavDrawer/SynapseNavDrawer.d.ts.map +1 -1
- package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js +4 -1
- package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js.map +1 -1
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js +1 -1
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchPageResults.js +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchPageResults.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.d.ts.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js +12 -9
- package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +4 -4
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js.map +1 -1
- package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js +140 -140
- package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js +1 -1
- package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/ImportTableColumnsButton.js +1 -1
- package/dist/components/TableColumnSchemaEditor/ImportTableColumnsButton.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorUtils.d.ts.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorUtils.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js +9 -9
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormActions.d.ts.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormActions.js +6 -4
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormActions.js.map +1 -1
- package/dist/components/TanStackTable/ColumnHeader.js +1 -1
- package/dist/components/TanStackTable/ColumnHeader.js.map +1 -1
- package/dist/components/TeamSubjectsSelector/TeamBadgeOrError.js +1 -1
- package/dist/components/TeamSubjectsSelector/TeamBadgeOrError.js.map +1 -1
- package/dist/components/TeamSubjectsSelector/TeamSubjectsSelector.d.ts.map +1 -1
- package/dist/components/TeamSubjectsSelector/TeamSubjectsSelector.js +4 -3
- package/dist/components/TeamSubjectsSelector/TeamSubjectsSelector.js.map +1 -1
- package/dist/components/Webhook/WebhookDashboard.js +1 -1
- package/dist/components/Webhook/WebhookDashboard.js.map +1 -1
- package/dist/components/dataaccess/AccessRequirementDashboard.js +4 -4
- package/dist/components/dataaccess/AccessRequirementDashboard.js.map +1 -1
- package/dist/components/dataaccess/AccessRequirementTable.js +1 -1
- package/dist/components/dataaccess/AccessRequirementTable.js.map +1 -1
- package/dist/components/dataaccess/EDucTemplateTable.d.ts.map +1 -1
- package/dist/components/dataaccess/EDucTemplateTable.js +13 -11
- package/dist/components/dataaccess/EDucTemplateTable.js.map +1 -1
- package/dist/components/dataaccess/FormTemplateTable.js +6 -6
- package/dist/components/dataaccess/FormTemplateTable.js.map +1 -1
- package/dist/components/dataaccess/ReviewerDashboard.js +17 -17
- package/dist/components/dataaccess/ReviewerDashboard.js.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js +4 -4
- 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/components/doi/CreateOrUpdateDoiModal.js +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.js.map +1 -1
- package/dist/components/download_list/DownloadDetails.d.ts.map +1 -1
- package/dist/components/download_list/DownloadDetails.js +12 -10
- package/dist/components/download_list/DownloadDetails.js.map +1 -1
- package/dist/components/entity/metadata/AnnotationsTable.js +1 -1
- package/dist/components/entity/metadata/AnnotationsTable.js.map +1 -1
- package/dist/components/entity/page/CreatedByModifiedBy.js +1 -1
- package/dist/components/entity/page/CreatedByModifiedBy.js.map +1 -1
- package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts.map +1 -1
- package/dist/components/entity/page/action_menu/EntityActionMenu.js.map +1 -1
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js +1 -1
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js.map +1 -1
- package/dist/components/error/ErrorChip.d.ts.map +1 -1
- package/dist/components/error/ErrorChip.js +2 -1
- package/dist/components/error/ErrorChip.js.map +1 -1
- package/dist/components/table/CsvPreview/CreateTableFromCsvDialog.js +14 -14
- package/dist/components/table/CsvPreview/CsvPreviewWithOptions.js +4 -4
- package/dist/components/table/CsvPreview/CsvPreviewWithOptions.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.js +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.js.map +1 -1
- package/dist/features/curator/dashboard/components/NextStepButton.d.ts.map +1 -1
- package/dist/features/curator/dashboard/components/NextStepButton.js +7 -6
- package/dist/features/curator/dashboard/components/NextStepButton.js.map +1 -1
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js +8 -8
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js +4 -4
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js +4 -4
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js +4 -4
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.js +1 -1
- package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/TaskFormHeader.js +1 -1
- package/dist/features/entity/metadata-task/create-task/TaskFormHeader.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.js +10 -10
- package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.js.map +1 -1
- package/dist/features/team/invitation/components/OpenInvitationsToUserCard.js +1 -1
- package/dist/features/team/invitation/components/OpenInvitationsToUserCard.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/aridhiaHandlers.d.ts +8 -0
- package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/aridhiaHandlers.js +52 -41
- package/dist/mocks/msw/handlers/aridhiaHandlers.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/mocks/msw/handlers/entityHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/entityHandlers.js +70 -67
- package/dist/mocks/msw/handlers/entityHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/gridHandlers.js +2 -2
- package/dist/mocks/msw/handlers/gridHandlers.js.map +1 -1
- package/dist/mocks/msw/server.d.ts.map +1 -1
- package/dist/mocks/msw/server.js +4 -2
- package/dist/mocks/msw/server.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/synapse-queries/user/useGetUserChallenges.d.ts.map +1 -1
- package/dist/synapse-queries/user/useGetUserChallenges.js.map +1 -1
- package/dist/theme/DefaultTheme.d.ts.map +1 -1
- package/dist/theme/DefaultTheme.js +4 -1
- package/dist/theme/DefaultTheme.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/APIConstants.d.ts.map +1 -1
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/AppUtils/AppUtils.js +1 -1
- package/dist/utils/AppUtils/AppUtils.js.map +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/EntityTypeUtils.d.ts.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.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 +6 -5
- package/dist/testutils/ReactQueryMockUtils.js +0 -676
- package/dist/testutils/ReactQueryMockUtils.js.map +0 -1
|
@@ -1,676 +0,0 @@
|
|
|
1
|
-
import { useState as e } from "react";
|
|
2
|
-
//#region src/testutils/ReactQueryMockUtils.ts
|
|
3
|
-
function t() {
|
|
4
|
-
let t = vi.fn(), n = null, r = (e) => {
|
|
5
|
-
if (n) {
|
|
6
|
-
let r = {
|
|
7
|
-
data: e,
|
|
8
|
-
status: "success",
|
|
9
|
-
isSuccess: !0,
|
|
10
|
-
isPending: !1,
|
|
11
|
-
isLoading: !1,
|
|
12
|
-
isError: !1,
|
|
13
|
-
error: null,
|
|
14
|
-
isFetched: !0,
|
|
15
|
-
isFetchedAfterMount: !0,
|
|
16
|
-
isFetching: !1,
|
|
17
|
-
isInitialLoading: !1,
|
|
18
|
-
isLoadingError: !1,
|
|
19
|
-
isRefetchError: !1,
|
|
20
|
-
isRefetching: !1,
|
|
21
|
-
fetchStatus: "idle",
|
|
22
|
-
isPaused: !1,
|
|
23
|
-
dataUpdatedAt: Date.now(),
|
|
24
|
-
errorUpdatedAt: 0,
|
|
25
|
-
errorUpdateCount: 0,
|
|
26
|
-
failureCount: 0,
|
|
27
|
-
failureReason: null,
|
|
28
|
-
refetch: t,
|
|
29
|
-
isPlaceholderData: !1,
|
|
30
|
-
isStale: !1,
|
|
31
|
-
promise: Promise.resolve(e)
|
|
32
|
-
};
|
|
33
|
-
n(r);
|
|
34
|
-
} else console.warn("setSuccess called before mock query was rendered or setValue was captured.");
|
|
35
|
-
}, i = (e) => {
|
|
36
|
-
if (n) {
|
|
37
|
-
let r = {
|
|
38
|
-
data: void 0,
|
|
39
|
-
dataUpdatedAt: 0,
|
|
40
|
-
error: e,
|
|
41
|
-
errorUpdateCount: 1,
|
|
42
|
-
errorUpdatedAt: Date.now(),
|
|
43
|
-
failureCount: 1,
|
|
44
|
-
isError: !0,
|
|
45
|
-
isFetched: !1,
|
|
46
|
-
isFetchedAfterMount: !0,
|
|
47
|
-
isFetching: !1,
|
|
48
|
-
isLoadingError: !0,
|
|
49
|
-
isPlaceholderData: !1,
|
|
50
|
-
isRefetchError: !1,
|
|
51
|
-
isRefetching: !1,
|
|
52
|
-
isStale: !1,
|
|
53
|
-
isSuccess: !1,
|
|
54
|
-
refetch: t,
|
|
55
|
-
status: "error",
|
|
56
|
-
failureReason: null,
|
|
57
|
-
fetchStatus: "idle",
|
|
58
|
-
isInitialLoading: !1,
|
|
59
|
-
isPaused: !1,
|
|
60
|
-
isLoading: !1,
|
|
61
|
-
isPending: !1,
|
|
62
|
-
promise: new Promise(() => {})
|
|
63
|
-
};
|
|
64
|
-
n(r);
|
|
65
|
-
} else console.warn("setError called before mock query was rendered or setValue was captured.");
|
|
66
|
-
}, a = () => {
|
|
67
|
-
if (n) {
|
|
68
|
-
let e = {
|
|
69
|
-
data: void 0,
|
|
70
|
-
dataUpdatedAt: Date.now(),
|
|
71
|
-
error: null,
|
|
72
|
-
errorUpdateCount: 0,
|
|
73
|
-
errorUpdatedAt: 0,
|
|
74
|
-
failureCount: 0,
|
|
75
|
-
isError: !1,
|
|
76
|
-
isFetched: !0,
|
|
77
|
-
isFetchedAfterMount: !0,
|
|
78
|
-
isFetching: !0,
|
|
79
|
-
isLoading: !0,
|
|
80
|
-
isLoadingError: !1,
|
|
81
|
-
isPlaceholderData: !1,
|
|
82
|
-
isRefetchError: !1,
|
|
83
|
-
isRefetching: !1,
|
|
84
|
-
isStale: !1,
|
|
85
|
-
isSuccess: !1,
|
|
86
|
-
refetch: t,
|
|
87
|
-
status: "pending",
|
|
88
|
-
failureReason: null,
|
|
89
|
-
fetchStatus: "fetching",
|
|
90
|
-
isPending: !0,
|
|
91
|
-
isInitialLoading: !0,
|
|
92
|
-
isPaused: !1,
|
|
93
|
-
promise: new Promise(() => {})
|
|
94
|
-
};
|
|
95
|
-
n(e);
|
|
96
|
-
} else console.warn("setError called before mock query was rendered or setValue was captured.");
|
|
97
|
-
};
|
|
98
|
-
function o() {
|
|
99
|
-
if (n) {
|
|
100
|
-
let e = {
|
|
101
|
-
data: void 0,
|
|
102
|
-
dataUpdatedAt: 0,
|
|
103
|
-
error: null,
|
|
104
|
-
errorUpdateCount: 1,
|
|
105
|
-
errorUpdatedAt: Date.now(),
|
|
106
|
-
failureCount: 1,
|
|
107
|
-
isError: !1,
|
|
108
|
-
isFetched: !1,
|
|
109
|
-
isFetchedAfterMount: !1,
|
|
110
|
-
isFetching: !1,
|
|
111
|
-
isLoadingError: !1,
|
|
112
|
-
isPlaceholderData: !1,
|
|
113
|
-
isRefetchError: !1,
|
|
114
|
-
isRefetching: !1,
|
|
115
|
-
isStale: !1,
|
|
116
|
-
isSuccess: !1,
|
|
117
|
-
refetch: t,
|
|
118
|
-
status: "pending",
|
|
119
|
-
failureReason: null,
|
|
120
|
-
fetchStatus: "idle",
|
|
121
|
-
isInitialLoading: !1,
|
|
122
|
-
isPaused: !0,
|
|
123
|
-
isLoading: !1,
|
|
124
|
-
isPending: !0,
|
|
125
|
-
promise: new Promise(() => {})
|
|
126
|
-
};
|
|
127
|
-
n(e);
|
|
128
|
-
} else console.warn("setIdle called before mock query was rendered or setValue was captured.");
|
|
129
|
-
}
|
|
130
|
-
return {
|
|
131
|
-
mock: vi.fn(function() {
|
|
132
|
-
let [r, i] = e({
|
|
133
|
-
data: void 0,
|
|
134
|
-
fetchStatus: "fetching",
|
|
135
|
-
dataUpdatedAt: 0,
|
|
136
|
-
error: null,
|
|
137
|
-
errorUpdateCount: 0,
|
|
138
|
-
errorUpdatedAt: 0,
|
|
139
|
-
failureCount: 0,
|
|
140
|
-
failureReason: null,
|
|
141
|
-
isError: !1,
|
|
142
|
-
isFetched: !1,
|
|
143
|
-
isFetchedAfterMount: !1,
|
|
144
|
-
isFetching: !1,
|
|
145
|
-
isInitialLoading: !1,
|
|
146
|
-
isLoading: !0,
|
|
147
|
-
isLoadingError: !1,
|
|
148
|
-
isPaused: !1,
|
|
149
|
-
isPending: !0,
|
|
150
|
-
isPlaceholderData: !1,
|
|
151
|
-
isRefetchError: !1,
|
|
152
|
-
isRefetching: !1,
|
|
153
|
-
isStale: !1,
|
|
154
|
-
isSuccess: !1,
|
|
155
|
-
refetch: t,
|
|
156
|
-
status: "pending",
|
|
157
|
-
promise: new Promise(() => {})
|
|
158
|
-
});
|
|
159
|
-
return n = i, r;
|
|
160
|
-
}),
|
|
161
|
-
mockRefetch: t,
|
|
162
|
-
setSuccess: r,
|
|
163
|
-
setError: i,
|
|
164
|
-
setLoading: a,
|
|
165
|
-
setIdle: o
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
function n(e) {
|
|
169
|
-
return {
|
|
170
|
-
data: e,
|
|
171
|
-
dataUpdatedAt: Date.now(),
|
|
172
|
-
error: null,
|
|
173
|
-
errorUpdateCount: 0,
|
|
174
|
-
errorUpdatedAt: 0,
|
|
175
|
-
failureCount: 0,
|
|
176
|
-
isError: !1,
|
|
177
|
-
isFetched: !0,
|
|
178
|
-
isFetchedAfterMount: !0,
|
|
179
|
-
isFetching: !1,
|
|
180
|
-
isLoading: !1,
|
|
181
|
-
isLoadingError: !1,
|
|
182
|
-
isPlaceholderData: !1,
|
|
183
|
-
isRefetchError: !1,
|
|
184
|
-
isRefetching: !1,
|
|
185
|
-
isStale: !1,
|
|
186
|
-
isSuccess: !0,
|
|
187
|
-
refetch: vi.fn(),
|
|
188
|
-
status: "success",
|
|
189
|
-
failureReason: null,
|
|
190
|
-
fetchStatus: "idle",
|
|
191
|
-
isInitialLoading: !1,
|
|
192
|
-
isPaused: !1,
|
|
193
|
-
isPending: !1,
|
|
194
|
-
promise: Promise.resolve(e)
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
function r() {
|
|
198
|
-
return {
|
|
199
|
-
data: void 0,
|
|
200
|
-
dataUpdatedAt: Date.now(),
|
|
201
|
-
error: null,
|
|
202
|
-
errorUpdateCount: 0,
|
|
203
|
-
errorUpdatedAt: 0,
|
|
204
|
-
failureCount: 0,
|
|
205
|
-
isError: !1,
|
|
206
|
-
isFetched: !0,
|
|
207
|
-
isFetchedAfterMount: !0,
|
|
208
|
-
isFetching: !0,
|
|
209
|
-
isLoading: !0,
|
|
210
|
-
isLoadingError: !1,
|
|
211
|
-
isPlaceholderData: !1,
|
|
212
|
-
isRefetchError: !1,
|
|
213
|
-
isRefetching: !1,
|
|
214
|
-
isStale: !1,
|
|
215
|
-
isSuccess: !1,
|
|
216
|
-
refetch: vi.fn(),
|
|
217
|
-
status: "pending",
|
|
218
|
-
failureReason: null,
|
|
219
|
-
fetchStatus: "fetching",
|
|
220
|
-
isPending: !0,
|
|
221
|
-
isInitialLoading: !0,
|
|
222
|
-
isPaused: !1,
|
|
223
|
-
promise: new Promise(() => {})
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
function i(e) {
|
|
227
|
-
return {
|
|
228
|
-
data: void 0,
|
|
229
|
-
dataUpdatedAt: 0,
|
|
230
|
-
error: e,
|
|
231
|
-
errorUpdateCount: 1,
|
|
232
|
-
errorUpdatedAt: Date.now(),
|
|
233
|
-
failureCount: 1,
|
|
234
|
-
isError: !0,
|
|
235
|
-
isFetched: !1,
|
|
236
|
-
isFetchedAfterMount: !0,
|
|
237
|
-
isFetching: !1,
|
|
238
|
-
isLoadingError: !0,
|
|
239
|
-
isPlaceholderData: !1,
|
|
240
|
-
isRefetchError: !1,
|
|
241
|
-
isRefetching: !1,
|
|
242
|
-
isStale: !1,
|
|
243
|
-
isSuccess: !1,
|
|
244
|
-
refetch: vi.fn(),
|
|
245
|
-
status: "error",
|
|
246
|
-
failureReason: null,
|
|
247
|
-
fetchStatus: "idle",
|
|
248
|
-
isInitialLoading: !1,
|
|
249
|
-
isPaused: !1,
|
|
250
|
-
isLoading: !1,
|
|
251
|
-
isPending: !1,
|
|
252
|
-
promise: new Promise(() => {})
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
function a() {
|
|
256
|
-
return {
|
|
257
|
-
data: void 0,
|
|
258
|
-
dataUpdatedAt: 0,
|
|
259
|
-
error: null,
|
|
260
|
-
errorUpdateCount: 1,
|
|
261
|
-
errorUpdatedAt: Date.now(),
|
|
262
|
-
failureCount: 1,
|
|
263
|
-
isError: !1,
|
|
264
|
-
isFetched: !1,
|
|
265
|
-
isFetchedAfterMount: !1,
|
|
266
|
-
isFetching: !1,
|
|
267
|
-
isLoadingError: !1,
|
|
268
|
-
isPlaceholderData: !1,
|
|
269
|
-
isRefetchError: !1,
|
|
270
|
-
isRefetching: !1,
|
|
271
|
-
isStale: !1,
|
|
272
|
-
isSuccess: !1,
|
|
273
|
-
refetch: vi.fn(),
|
|
274
|
-
status: "pending",
|
|
275
|
-
failureReason: null,
|
|
276
|
-
fetchStatus: "idle",
|
|
277
|
-
isInitialLoading: !1,
|
|
278
|
-
isPaused: !0,
|
|
279
|
-
isLoading: !1,
|
|
280
|
-
isPending: !0,
|
|
281
|
-
promise: new Promise(() => {})
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
function o() {
|
|
285
|
-
let t = null;
|
|
286
|
-
function n(e) {
|
|
287
|
-
t ? t((t) => ({
|
|
288
|
-
...t,
|
|
289
|
-
variables: e
|
|
290
|
-
})) : console.warn("mutate or mutateAsync called before mock mutation was rendered or setValue was captured.");
|
|
291
|
-
}
|
|
292
|
-
let r = vi.fn(), i = vi.fn(), a = vi.fn(), o = r.mock.lastCall?.[0] ?? i.mock.lastCall?.[0];
|
|
293
|
-
function s(e) {
|
|
294
|
-
n(e), r(e);
|
|
295
|
-
}
|
|
296
|
-
function c(e) {
|
|
297
|
-
return n(e), i(e);
|
|
298
|
-
}
|
|
299
|
-
let l = (e) => {
|
|
300
|
-
if (t) {
|
|
301
|
-
let n = {
|
|
302
|
-
data: e,
|
|
303
|
-
mutate: s,
|
|
304
|
-
mutateAsync: c,
|
|
305
|
-
reset: a,
|
|
306
|
-
context: void 0,
|
|
307
|
-
error: null,
|
|
308
|
-
failureCount: 0,
|
|
309
|
-
isError: !1,
|
|
310
|
-
isIdle: !1,
|
|
311
|
-
isPaused: !1,
|
|
312
|
-
isSuccess: !0,
|
|
313
|
-
status: "success",
|
|
314
|
-
variables: o,
|
|
315
|
-
failureReason: null,
|
|
316
|
-
isPending: !1,
|
|
317
|
-
submittedAt: 0
|
|
318
|
-
};
|
|
319
|
-
t((e) => ({
|
|
320
|
-
...n,
|
|
321
|
-
variables: e.variables
|
|
322
|
-
}));
|
|
323
|
-
} else console.warn("setSuccess called before mock mutation was rendered or setValue was captured.");
|
|
324
|
-
}, u = (e) => {
|
|
325
|
-
if (t) {
|
|
326
|
-
let n = {
|
|
327
|
-
error: e,
|
|
328
|
-
data: void 0,
|
|
329
|
-
mutate: s,
|
|
330
|
-
mutateAsync: c,
|
|
331
|
-
reset: a,
|
|
332
|
-
context: void 0,
|
|
333
|
-
failureCount: 1,
|
|
334
|
-
isError: !0,
|
|
335
|
-
isIdle: !1,
|
|
336
|
-
isPaused: !1,
|
|
337
|
-
isSuccess: !1,
|
|
338
|
-
status: "error",
|
|
339
|
-
variables: o,
|
|
340
|
-
failureReason: e,
|
|
341
|
-
isPending: !1,
|
|
342
|
-
submittedAt: 0
|
|
343
|
-
};
|
|
344
|
-
t((e) => ({
|
|
345
|
-
...n,
|
|
346
|
-
variables: e.variables
|
|
347
|
-
}));
|
|
348
|
-
} else console.warn("setError called before mock mutation was rendered or setValue was captured.");
|
|
349
|
-
}, d = () => {
|
|
350
|
-
if (t) {
|
|
351
|
-
let e = {
|
|
352
|
-
data: void 0,
|
|
353
|
-
error: null,
|
|
354
|
-
mutate: s,
|
|
355
|
-
mutateAsync: c,
|
|
356
|
-
reset: a,
|
|
357
|
-
context: void 0,
|
|
358
|
-
failureCount: 0,
|
|
359
|
-
isError: !1,
|
|
360
|
-
isIdle: !1,
|
|
361
|
-
isPaused: !1,
|
|
362
|
-
isSuccess: !1,
|
|
363
|
-
status: "pending",
|
|
364
|
-
failureReason: null,
|
|
365
|
-
isPending: !0,
|
|
366
|
-
submittedAt: 0,
|
|
367
|
-
variables: o
|
|
368
|
-
};
|
|
369
|
-
t((t) => ({
|
|
370
|
-
...e,
|
|
371
|
-
variables: t.variables
|
|
372
|
-
}));
|
|
373
|
-
} else console.warn("setPending called before mock mutation was rendered or setValue was captured.");
|
|
374
|
-
};
|
|
375
|
-
function f() {
|
|
376
|
-
t ? t({
|
|
377
|
-
data: void 0,
|
|
378
|
-
error: null,
|
|
379
|
-
mutate: s,
|
|
380
|
-
mutateAsync: c,
|
|
381
|
-
reset: a,
|
|
382
|
-
variables: void 0,
|
|
383
|
-
context: void 0,
|
|
384
|
-
failureCount: 0,
|
|
385
|
-
isError: !1,
|
|
386
|
-
isIdle: !0,
|
|
387
|
-
isPaused: !1,
|
|
388
|
-
isSuccess: !1,
|
|
389
|
-
status: "idle",
|
|
390
|
-
failureReason: null,
|
|
391
|
-
isPending: !1,
|
|
392
|
-
submittedAt: 0
|
|
393
|
-
}) : console.warn("setIdle called before mock mutation was rendered or setValue was captured.");
|
|
394
|
-
}
|
|
395
|
-
return {
|
|
396
|
-
mock: vi.fn(function() {
|
|
397
|
-
let [n, r] = e({
|
|
398
|
-
data: void 0,
|
|
399
|
-
error: null,
|
|
400
|
-
mutate: s,
|
|
401
|
-
mutateAsync: c,
|
|
402
|
-
reset: a,
|
|
403
|
-
variables: void 0,
|
|
404
|
-
context: void 0,
|
|
405
|
-
failureCount: 0,
|
|
406
|
-
isError: !1,
|
|
407
|
-
isIdle: !0,
|
|
408
|
-
isPaused: !1,
|
|
409
|
-
isSuccess: !1,
|
|
410
|
-
status: "idle",
|
|
411
|
-
failureReason: null,
|
|
412
|
-
isPending: !1,
|
|
413
|
-
submittedAt: 0
|
|
414
|
-
});
|
|
415
|
-
return t = r, n;
|
|
416
|
-
}),
|
|
417
|
-
mockMutate: r,
|
|
418
|
-
mockMutateAsync: i,
|
|
419
|
-
mockReset: a,
|
|
420
|
-
setSuccess: l,
|
|
421
|
-
setError: u,
|
|
422
|
-
setPending: d,
|
|
423
|
-
setIdle: f
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
function s(e) {
|
|
427
|
-
return {
|
|
428
|
-
context: void 0,
|
|
429
|
-
data: void 0,
|
|
430
|
-
error: null,
|
|
431
|
-
failureCount: 0,
|
|
432
|
-
isError: !1,
|
|
433
|
-
isIdle: !0,
|
|
434
|
-
isPaused: !1,
|
|
435
|
-
isSuccess: !1,
|
|
436
|
-
mutate: vi.fn(),
|
|
437
|
-
mutateAsync: vi.fn().mockResolvedValue(e),
|
|
438
|
-
reset: vi.fn(),
|
|
439
|
-
status: "idle",
|
|
440
|
-
variables: void 0,
|
|
441
|
-
failureReason: null,
|
|
442
|
-
isPending: !1,
|
|
443
|
-
submittedAt: 0
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
function c(e, t) {
|
|
447
|
-
return {
|
|
448
|
-
context: void 0,
|
|
449
|
-
data: void 0,
|
|
450
|
-
error: null,
|
|
451
|
-
failureCount: 0,
|
|
452
|
-
isError: !1,
|
|
453
|
-
isIdle: !1,
|
|
454
|
-
isPaused: !1,
|
|
455
|
-
isSuccess: !1,
|
|
456
|
-
mutate: vi.fn(),
|
|
457
|
-
mutateAsync: vi.fn().mockResolvedValue(e),
|
|
458
|
-
reset: vi.fn(),
|
|
459
|
-
status: "pending",
|
|
460
|
-
variables: t,
|
|
461
|
-
failureReason: null,
|
|
462
|
-
isPending: !0,
|
|
463
|
-
submittedAt: 0
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
function l(e, t = !1) {
|
|
467
|
-
return {
|
|
468
|
-
data: { pages: e },
|
|
469
|
-
error: null,
|
|
470
|
-
isError: !1,
|
|
471
|
-
isPending: !1,
|
|
472
|
-
isLoading: !1,
|
|
473
|
-
isLoadingError: !1,
|
|
474
|
-
isRefetchError: !1,
|
|
475
|
-
isSuccess: !0,
|
|
476
|
-
status: "success",
|
|
477
|
-
fetchNextPage: vi.fn(),
|
|
478
|
-
fetchPreviousPage: vi.fn(),
|
|
479
|
-
hasNextPage: t,
|
|
480
|
-
hasPreviousPage: !1,
|
|
481
|
-
isFetchingNextPage: !1,
|
|
482
|
-
isFetchingPreviousPage: !1,
|
|
483
|
-
dataUpdatedAt: 0,
|
|
484
|
-
errorUpdatedAt: 0,
|
|
485
|
-
failureCount: 0,
|
|
486
|
-
failureReason: null,
|
|
487
|
-
errorUpdateCount: 0,
|
|
488
|
-
isFetched: !1,
|
|
489
|
-
isFetchedAfterMount: !1,
|
|
490
|
-
isFetching: !1,
|
|
491
|
-
isInitialLoading: !1,
|
|
492
|
-
isPaused: !1,
|
|
493
|
-
isPlaceholderData: !1,
|
|
494
|
-
isRefetching: !1,
|
|
495
|
-
isStale: !1,
|
|
496
|
-
refetch: vi.fn(),
|
|
497
|
-
fetchStatus: "idle",
|
|
498
|
-
isFetchNextPageError: !1,
|
|
499
|
-
isFetchPreviousPageError: !1,
|
|
500
|
-
promise: Promise.resolve({ pages: e })
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
function u() {
|
|
504
|
-
let t = vi.fn(), n = vi.fn(), r = vi.fn(), i = null;
|
|
505
|
-
return {
|
|
506
|
-
mock: vi.fn(function() {
|
|
507
|
-
let [a, o] = e({
|
|
508
|
-
data: void 0,
|
|
509
|
-
fetchStatus: "fetching",
|
|
510
|
-
dataUpdatedAt: 0,
|
|
511
|
-
error: null,
|
|
512
|
-
errorUpdateCount: 0,
|
|
513
|
-
errorUpdatedAt: 0,
|
|
514
|
-
failureCount: 0,
|
|
515
|
-
failureReason: null,
|
|
516
|
-
fetchNextPage: t,
|
|
517
|
-
fetchPreviousPage: n,
|
|
518
|
-
hasNextPage: !1,
|
|
519
|
-
hasPreviousPage: !1,
|
|
520
|
-
isError: !1,
|
|
521
|
-
isFetched: !1,
|
|
522
|
-
isFetchedAfterMount: !1,
|
|
523
|
-
isFetching: !1,
|
|
524
|
-
isFetchingNextPage: !1,
|
|
525
|
-
isFetchingPreviousPage: !1,
|
|
526
|
-
isInitialLoading: !1,
|
|
527
|
-
isLoading: !0,
|
|
528
|
-
isLoadingError: !1,
|
|
529
|
-
isPaused: !1,
|
|
530
|
-
isPending: !0,
|
|
531
|
-
isPlaceholderData: !1,
|
|
532
|
-
isRefetchError: !1,
|
|
533
|
-
isRefetching: !1,
|
|
534
|
-
isStale: !1,
|
|
535
|
-
isSuccess: !1,
|
|
536
|
-
refetch: r,
|
|
537
|
-
status: "pending",
|
|
538
|
-
isFetchNextPageError: !1,
|
|
539
|
-
isFetchPreviousPageError: !1,
|
|
540
|
-
promise: new Promise(() => {})
|
|
541
|
-
});
|
|
542
|
-
return i = o, a;
|
|
543
|
-
}),
|
|
544
|
-
mockFetchNextPage: t,
|
|
545
|
-
setSuccess: (e, a = !1, o = !1) => {
|
|
546
|
-
if (i) {
|
|
547
|
-
let s = {
|
|
548
|
-
data: {
|
|
549
|
-
pages: e,
|
|
550
|
-
pageParams: []
|
|
551
|
-
},
|
|
552
|
-
hasNextPage: a,
|
|
553
|
-
status: "success",
|
|
554
|
-
isSuccess: !0,
|
|
555
|
-
isPending: !1,
|
|
556
|
-
isLoading: !1,
|
|
557
|
-
isError: !1,
|
|
558
|
-
error: null,
|
|
559
|
-
isFetched: !0,
|
|
560
|
-
isFetchedAfterMount: !0,
|
|
561
|
-
isFetching: !1,
|
|
562
|
-
isInitialLoading: !1,
|
|
563
|
-
isLoadingError: !1,
|
|
564
|
-
isRefetchError: !1,
|
|
565
|
-
isRefetching: !1,
|
|
566
|
-
fetchStatus: o ? "fetching" : "idle",
|
|
567
|
-
isPaused: !1,
|
|
568
|
-
dataUpdatedAt: Date.now(),
|
|
569
|
-
errorUpdatedAt: 0,
|
|
570
|
-
errorUpdateCount: 0,
|
|
571
|
-
failureCount: 0,
|
|
572
|
-
failureReason: null,
|
|
573
|
-
fetchNextPage: t,
|
|
574
|
-
fetchPreviousPage: n,
|
|
575
|
-
refetch: r,
|
|
576
|
-
hasPreviousPage: !1,
|
|
577
|
-
isFetchingNextPage: o,
|
|
578
|
-
isFetchingPreviousPage: !1,
|
|
579
|
-
isPlaceholderData: !1,
|
|
580
|
-
isStale: !1,
|
|
581
|
-
isFetchPreviousPageError: !1,
|
|
582
|
-
isFetchNextPageError: !1,
|
|
583
|
-
promise: Promise.resolve({
|
|
584
|
-
pages: e,
|
|
585
|
-
pageParams: []
|
|
586
|
-
})
|
|
587
|
-
};
|
|
588
|
-
i(s);
|
|
589
|
-
} else console.warn("setSuccess called before useInfiniteQueryMock was rendered or setValue was captured.");
|
|
590
|
-
},
|
|
591
|
-
setError: (e) => {
|
|
592
|
-
if (i) {
|
|
593
|
-
let a = {
|
|
594
|
-
data: void 0,
|
|
595
|
-
hasNextPage: !1,
|
|
596
|
-
status: "error",
|
|
597
|
-
isSuccess: !1,
|
|
598
|
-
isPending: !1,
|
|
599
|
-
isLoading: !1,
|
|
600
|
-
isError: !0,
|
|
601
|
-
error: e,
|
|
602
|
-
isFetched: !0,
|
|
603
|
-
isFetchedAfterMount: !0,
|
|
604
|
-
isFetching: !1,
|
|
605
|
-
isInitialLoading: !1,
|
|
606
|
-
isLoadingError: !0,
|
|
607
|
-
isRefetchError: !1,
|
|
608
|
-
isRefetching: !1,
|
|
609
|
-
fetchStatus: "idle",
|
|
610
|
-
isPaused: !1,
|
|
611
|
-
dataUpdatedAt: Date.now(),
|
|
612
|
-
errorUpdatedAt: 0,
|
|
613
|
-
errorUpdateCount: 0,
|
|
614
|
-
failureCount: 0,
|
|
615
|
-
failureReason: null,
|
|
616
|
-
fetchNextPage: t,
|
|
617
|
-
fetchPreviousPage: n,
|
|
618
|
-
refetch: r,
|
|
619
|
-
hasPreviousPage: !1,
|
|
620
|
-
isFetchingNextPage: !1,
|
|
621
|
-
isFetchingPreviousPage: !1,
|
|
622
|
-
isPlaceholderData: !1,
|
|
623
|
-
isStale: !1,
|
|
624
|
-
isFetchNextPageError: !1,
|
|
625
|
-
isFetchPreviousPageError: !1,
|
|
626
|
-
promise: new Promise(() => {})
|
|
627
|
-
};
|
|
628
|
-
i(a);
|
|
629
|
-
} else console.warn("setError called before useInfiniteQueryMock was rendered or setValue was captured.");
|
|
630
|
-
},
|
|
631
|
-
setLoading: () => {
|
|
632
|
-
if (i) {
|
|
633
|
-
let e = {
|
|
634
|
-
data: void 0,
|
|
635
|
-
hasNextPage: !1,
|
|
636
|
-
status: "pending",
|
|
637
|
-
isSuccess: !1,
|
|
638
|
-
isPending: !0,
|
|
639
|
-
isLoading: !0,
|
|
640
|
-
isError: !1,
|
|
641
|
-
error: null,
|
|
642
|
-
isFetched: !0,
|
|
643
|
-
isFetchedAfterMount: !0,
|
|
644
|
-
isFetching: !1,
|
|
645
|
-
isInitialLoading: !1,
|
|
646
|
-
isLoadingError: !1,
|
|
647
|
-
isRefetchError: !1,
|
|
648
|
-
isRefetching: !1,
|
|
649
|
-
fetchStatus: "fetching",
|
|
650
|
-
isPaused: !1,
|
|
651
|
-
dataUpdatedAt: Date.now(),
|
|
652
|
-
errorUpdatedAt: 0,
|
|
653
|
-
errorUpdateCount: 0,
|
|
654
|
-
failureCount: 0,
|
|
655
|
-
failureReason: null,
|
|
656
|
-
fetchNextPage: t,
|
|
657
|
-
fetchPreviousPage: n,
|
|
658
|
-
refetch: r,
|
|
659
|
-
hasPreviousPage: !1,
|
|
660
|
-
isFetchingNextPage: !0,
|
|
661
|
-
isFetchingPreviousPage: !1,
|
|
662
|
-
isPlaceholderData: !1,
|
|
663
|
-
isStale: !1,
|
|
664
|
-
isFetchNextPageError: !1,
|
|
665
|
-
isFetchPreviousPageError: !1,
|
|
666
|
-
promise: new Promise(() => {})
|
|
667
|
-
};
|
|
668
|
-
i(e);
|
|
669
|
-
} else console.warn("setError called before useInfiniteQueryMock was rendered or setValue was captured.");
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
//#endregion
|
|
674
|
-
export { u as getUseInfiniteQueryMock, l as getUseInfiniteQuerySuccessMock, s as getUseMutationIdleMock, o as getUseMutationMock, c as getUseMutationPendingMock, i as getUseQueryErrorMock, a as getUseQueryIdleMock, r as getUseQueryLoadingMock, t as getUseQueryMock, n as getUseQuerySuccessMock };
|
|
675
|
-
|
|
676
|
-
//# sourceMappingURL=ReactQueryMockUtils.js.map
|