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.
Files changed (415) hide show
  1. package/dist/SWC.index.d.ts +1 -1
  2. package/dist/SWC.index.js +2 -2
  3. package/dist/SWC.index.js.map +1 -1
  4. package/dist/aridhia-queries/AridhiaKeyFactory.d.ts +1 -0
  5. package/dist/aridhia-queries/AridhiaKeyFactory.d.ts.map +1 -1
  6. package/dist/aridhia-queries/AridhiaKeyFactory.js +3 -0
  7. package/dist/aridhia-queries/AridhiaKeyFactory.js.map +1 -1
  8. package/dist/aridhia-queries/aridhiaTokenExchange.js +6 -6
  9. package/dist/aridhia-queries/index.d.ts +1 -0
  10. package/dist/aridhia-queries/index.d.ts.map +1 -1
  11. package/dist/aridhia-queries/index.js +11 -10
  12. package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.d.ts +19 -0
  13. package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.d.ts.map +1 -0
  14. package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.js +14 -0
  15. package/dist/aridhia-queries/useGetAridhiaVocabularyTerm.js.map +1 -0
  16. package/dist/components/AccessRequirementList/AccessApprovalCheckMark.d.ts.map +1 -1
  17. package/dist/components/AccessRequirementList/AccessApprovalCheckMark.js +6 -4
  18. package/dist/components/AccessRequirementList/AccessApprovalCheckMark.js.map +1 -1
  19. package/dist/components/AccessRequirementList/AccessRequirementList.d.ts +2 -1
  20. package/dist/components/AccessRequirementList/AccessRequirementList.d.ts.map +1 -1
  21. package/dist/components/AccessRequirementList/AccessRequirementList.js +126 -125
  22. package/dist/components/AccessRequirementList/AccessRequirementList.js.map +1 -1
  23. package/dist/components/AccessRequirementList/AccessRequirementListItem.d.ts +1 -1
  24. package/dist/components/AccessRequirementList/AccessRequirementListItem.d.ts.map +1 -1
  25. package/dist/components/AccessRequirementList/AccessRequirementListItem.js.map +1 -1
  26. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.js +1 -1
  27. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.js.map +1 -1
  28. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts.map +1 -1
  29. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js +28 -16
  30. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js.map +1 -1
  31. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts.map +1 -1
  32. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js +99 -97
  33. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js.map +1 -1
  34. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js +1 -1
  35. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js.map +1 -1
  36. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewCollaboratorsAndSigningOfficialAccordion.js +1 -1
  37. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewCollaboratorsAndSigningOfficialAccordion.js.map +1 -1
  38. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts.map +1 -1
  39. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js +11 -8
  40. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js.map +1 -1
  41. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts +1 -1
  42. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts.map +1 -1
  43. package/dist/components/AccessRequirementList/RequestDataStep.d.ts +1 -4
  44. package/dist/components/AccessRequirementList/RequestDataStep.d.ts.map +1 -1
  45. package/dist/components/AccessRequirementList/RequestDataStep.js +15 -18
  46. package/dist/components/AccessRequirementList/RequestDataStep.js.map +1 -1
  47. package/dist/components/AccessTokenPage/AccessTokenPage.js +1 -1
  48. package/dist/components/AccessTokenPage/AccessTokenPage.js.map +1 -1
  49. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js +1 -1
  50. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js.map +1 -1
  51. package/dist/components/Aridhia/DarWizard/DarSectionForm.d.ts.map +1 -1
  52. package/dist/components/Aridhia/DarWizard/DarSectionForm.js +17 -13
  53. package/dist/components/Aridhia/DarWizard/DarSectionForm.js.map +1 -1
  54. package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.d.ts +3 -3
  55. package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.d.ts.map +1 -1
  56. package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js +33 -34
  57. package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js.map +1 -1
  58. package/dist/components/Aridhia/fairFormToRjsf.js +1 -1
  59. package/dist/components/Aridhia/fairFormToRjsf.js.map +1 -1
  60. package/dist/components/Authentication/LastLoginInfo.js +1 -1
  61. package/dist/components/Authentication/LastLoginInfo.js.map +1 -1
  62. package/dist/components/CertificationQuiz/CertificationQuiz.js +1 -1
  63. package/dist/components/CertificationQuiz/CertificationQuiz.js.map +1 -1
  64. package/dist/components/ChallengeSubmission/AvailableEvaluationQueueList.js +1 -1
  65. package/dist/components/ChallengeSubmission/AvailableEvaluationQueueList.js.map +1 -1
  66. package/dist/components/ChallengeSubmission/EvaluationQueueCurrentRoundInfo.js +1 -1
  67. package/dist/components/ChallengeSubmission/EvaluationQueueCurrentRoundInfo.js.map +1 -1
  68. package/dist/components/ChallengeSubmission/SubmissionDirectoryList.js +6 -6
  69. package/dist/components/ChallengeSubmission/SubmissionDirectoryList.js.map +1 -1
  70. package/dist/components/ChallengeTeamWizard/ChallengeTeamTable.d.ts.map +1 -1
  71. package/dist/components/ChallengeTeamWizard/ChallengeTeamTable.js +4 -4
  72. package/dist/components/ChallengeTeamWizard/ChallengeTeamTable.js.map +1 -1
  73. package/dist/components/ChallengeTeamWizard/SelectChallengeTeam.js +4 -4
  74. package/dist/components/CitationPopover/CitationPopoverContent.js +4 -4
  75. package/dist/components/CitationPopover/CitationPopoverContent.js.map +1 -1
  76. package/dist/components/ComponentCollapse.d.ts.map +1 -1
  77. package/dist/components/ComponentCollapse.js +2 -1
  78. package/dist/components/ComponentCollapse.js.map +1 -1
  79. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.d.ts.map +1 -1
  80. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +52 -49
  81. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
  82. package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
  83. package/dist/components/DataGrid/SynapseGrid.js +231 -219
  84. package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
  85. package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts.map +1 -1
  86. package/dist/components/DataGrid/SyncGridWithSourceButton.js +5 -4
  87. package/dist/components/DataGrid/SyncGridWithSourceButton.js.map +1 -1
  88. package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.d.ts.map +1 -1
  89. package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.js +7 -5
  90. package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.js.map +1 -1
  91. package/dist/components/DataGrid/components/ExportCsvFromGridButton.js +4 -4
  92. package/dist/components/DataGrid/components/ExportCsvFromGridButton.js.map +1 -1
  93. package/dist/components/DataGrid/components/ReorderColumnsButton.js +4 -4
  94. package/dist/components/DataGrid/components/ReorderColumnsButton.js.map +1 -1
  95. package/dist/components/DataGrid/components/ReorderColumnsDialog.d.ts.map +1 -1
  96. package/dist/components/DataGrid/components/ReorderColumnsDialog.js +12 -8
  97. package/dist/components/DataGrid/components/ReorderColumnsDialog.js.map +1 -1
  98. package/dist/components/DataGrid/components/UploadCsvToGridButton.js +1 -1
  99. package/dist/components/DataGrid/components/UploadCsvToGridButton.js.map +1 -1
  100. package/dist/components/DataGrid/hooks/useGridUndoRedo.js +5 -5
  101. package/dist/components/DataGrid/utils/applyModelChange.d.ts.map +1 -1
  102. package/dist/components/DataGrid/utils/applyModelChange.js +14 -14
  103. package/dist/components/DataGrid/utils/applyModelChange.js.map +1 -1
  104. package/dist/components/DataGrid/utils/columnFactory.js +1 -1
  105. package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
  106. package/dist/components/DataGrid/utils/splitPatch.d.ts.map +1 -1
  107. package/dist/components/DataGrid/utils/splitPatch.js +22 -13
  108. package/dist/components/DataGrid/utils/splitPatch.js.map +1 -1
  109. package/dist/components/DownloadCart/DownloadCartPage.js +1 -1
  110. package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
  111. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.d.ts.map +1 -1
  112. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +2 -1
  113. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
  114. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.module.js.map +1 -1
  115. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.module.scss +1 -3
  116. package/dist/components/EntityBadgeIcons/EntityBadgeIcons.d.ts.map +1 -1
  117. package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js +16 -10
  118. package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js.map +1 -1
  119. package/dist/components/EntityDownloadButton/EntityDownloadButton.js +1 -1
  120. package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
  121. package/dist/components/EntityFinder/EntityFinder.js +4 -4
  122. package/dist/components/EntityFinder/EntityIdTextField.js +1 -1
  123. package/dist/components/EntityFinder/EntityIdTextField.js.map +1 -1
  124. package/dist/components/EntityFinder/tree/VirtualizedTree.d.ts.map +1 -1
  125. package/dist/components/EntityFinder/tree/VirtualizedTree.js +5 -4
  126. package/dist/components/EntityFinder/tree/VirtualizedTree.js.map +1 -1
  127. package/dist/components/EntityHeaderTable/EntityHeaderTable.js +1 -1
  128. package/dist/components/EntityHeaderTable/EntityHeaderTable.js.map +1 -1
  129. package/dist/components/EntityTreeTable/components/EntityNameCell.d.ts.map +1 -1
  130. package/dist/components/EntityTreeTable/components/EntityNameCell.js +2 -1
  131. package/dist/components/EntityTreeTable/components/EntityNameCell.js.map +1 -1
  132. package/dist/components/EntityUpload/FileUploadProgress.d.ts.map +1 -1
  133. package/dist/components/EntityUpload/FileUploadProgress.js +11 -7
  134. package/dist/components/EntityUpload/FileUploadProgress.js.map +1 -1
  135. package/dist/components/Evaluation/round_limits/EvaluationRoundLimitOptionsList.d.ts.map +1 -1
  136. package/dist/components/Evaluation/round_limits/EvaluationRoundLimitOptionsList.js +4 -3
  137. package/dist/components/Evaluation/round_limits/EvaluationRoundLimitOptionsList.js.map +1 -1
  138. package/dist/components/ExperimentalMode/ExperimentalMode.js +1 -1
  139. package/dist/components/ExperimentalMode/ExperimentalMode.js.map +1 -1
  140. package/dist/components/ExternalFileHandleLink/ExternalFileHandleLink.js +1 -1
  141. package/dist/components/ExternalFileHandleLink/ExternalFileHandleLink.js.map +1 -1
  142. package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.d.ts.map +1 -1
  143. package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js +2 -1
  144. package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js.map +1 -1
  145. package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.d.ts.map +1 -1
  146. package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js +2 -1
  147. package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js.map +1 -1
  148. package/dist/components/FormTemplateEditor/FieldLibrary.d.ts.map +1 -1
  149. package/dist/components/FormTemplateEditor/FieldLibrary.js +2 -1
  150. package/dist/components/FormTemplateEditor/FieldLibrary.js.map +1 -1
  151. package/dist/components/FormTemplateEditor/FieldLibraryRow.js +4 -4
  152. package/dist/components/FormTemplateEditor/FieldLibraryRow.js.map +1 -1
  153. package/dist/components/FormTemplateEditor/FormStructurePanel.js +1 -1
  154. package/dist/components/FormTemplateEditor/FormStructurePanel.js.map +1 -1
  155. package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js +1 -1
  156. package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js.map +1 -1
  157. package/dist/components/FormTemplateEditor/StepCard.d.ts.map +1 -1
  158. package/dist/components/FormTemplateEditor/StepCard.js +15 -10
  159. package/dist/components/FormTemplateEditor/StepCard.js.map +1 -1
  160. package/dist/components/FormTemplateEditor/StepFieldRow.d.ts.map +1 -1
  161. package/dist/components/FormTemplateEditor/StepFieldRow.js +11 -6
  162. package/dist/components/FormTemplateEditor/StepFieldRow.js.map +1 -1
  163. package/dist/components/FormTemplateEditor/TemplateFileHandleField.d.ts.map +1 -1
  164. package/dist/components/FormTemplateEditor/TemplateFileHandleField.js +2 -1
  165. package/dist/components/FormTemplateEditor/TemplateFileHandleField.js.map +1 -1
  166. package/dist/components/FormTemplateEditor/useSaveFormTemplate.d.ts.map +1 -1
  167. package/dist/components/FormTemplateEditor/useSaveFormTemplate.js.map +1 -1
  168. package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.d.ts +9 -0
  169. package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.d.ts.map +1 -0
  170. package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.js +45 -0
  171. package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.js.map +1 -0
  172. package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.d.ts +22 -0
  173. package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.d.ts.map +1 -0
  174. package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.js +139 -0
  175. package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.js.map +1 -0
  176. package/dist/components/Forum/ForumTable.d.ts +17 -5
  177. package/dist/components/Forum/ForumTable.d.ts.map +1 -1
  178. package/dist/components/Forum/ForumTable.js +94 -77
  179. package/dist/components/Forum/ForumTable.js.map +1 -1
  180. package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js +45 -45
  181. package/dist/components/GenericCard/PortalDOI/PortalDOI.js +5 -5
  182. package/dist/components/GenericCard/PortalDOI/PortalDOI.js.map +1 -1
  183. package/dist/components/GenericCard/TableRowGenericCard.js +1 -1
  184. package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
  185. package/dist/components/HelpPopover/HelpPopover.js +1 -1
  186. package/dist/components/HelpPopover/HelpPopover.js.map +1 -1
  187. package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
  188. package/dist/components/IconSvg/IconSvg.js +154 -47
  189. package/dist/components/IconSvg/IconSvg.js.map +1 -1
  190. package/dist/components/JsonSchemaForm/templates/ButtonTemplate.d.ts.map +1 -1
  191. package/dist/components/JsonSchemaForm/templates/ButtonTemplate.js +19 -16
  192. package/dist/components/JsonSchemaForm/templates/ButtonTemplate.js.map +1 -1
  193. package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.d.ts.map +1 -1
  194. package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js +2 -1
  195. package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js.map +1 -1
  196. package/dist/components/JsonSchemaForm/widgets/PhoneWidget.d.ts +9 -0
  197. package/dist/components/JsonSchemaForm/widgets/PhoneWidget.d.ts.map +1 -0
  198. package/dist/components/JsonSchemaForm/widgets/PhoneWidget.js +21 -0
  199. package/dist/components/JsonSchemaForm/widgets/PhoneWidget.js.map +1 -0
  200. package/dist/components/Markdown/MarkdownCollapse.d.ts.map +1 -1
  201. package/dist/components/Markdown/MarkdownCollapse.js +3 -1
  202. package/dist/components/Markdown/MarkdownCollapse.js.map +1 -1
  203. package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js +1 -1
  204. package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js.map +1 -1
  205. package/dist/components/OAuthClientManagement/OAuthManagement.js +14 -13
  206. package/dist/components/OAuthClientManagement/OAuthManagement.js.map +1 -1
  207. package/dist/components/PortalList/PortalCard.d.ts.map +1 -1
  208. package/dist/components/PortalList/PortalCard.js +6 -5
  209. package/dist/components/PortalList/PortalCard.js.map +1 -1
  210. package/dist/components/PortalList/PortalList.js +4 -4
  211. package/dist/components/PortalList/PortalList.js.map +1 -1
  212. package/dist/components/ProjectVisibilityChip/ProjectVisibilityChip.js +6 -6
  213. package/dist/components/QueryBuilder/FilterConditionRow.js +4 -4
  214. package/dist/components/QueryCountButton/QueryCountButton.js +5 -5
  215. package/dist/components/QueryCountButton/QueryCountButton.js.map +1 -1
  216. package/dist/components/ReleaseCard/ReleaseCardLarge.js +5 -5
  217. package/dist/components/ReleaseCard/ReleaseCardLarge.js.map +1 -1
  218. package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.d.ts.map +1 -1
  219. package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js +142 -108
  220. package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js.map +1 -1
  221. package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.d.ts.map +1 -1
  222. package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.js +15 -15
  223. package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.js.map +1 -1
  224. package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.d.ts.map +1 -1
  225. package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.js +57 -55
  226. package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.js.map +1 -1
  227. package/dist/components/ShareThisPage/ShareThisPage.js +4 -4
  228. package/dist/components/ShareThisPage/ShareThisPage.js.map +1 -1
  229. package/dist/components/SustainabilityScorecard/DialLayout.js +1 -1
  230. package/dist/components/SustainabilityScorecard/DialLayout.js.map +1 -1
  231. package/dist/components/SustainabilityScorecard/SustainabilityScorecard.js +1 -1
  232. package/dist/components/SustainabilityScorecard/SustainabilityScorecard.js.map +1 -1
  233. package/dist/components/SynapseChat/SynapseChat.js +1 -1
  234. package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
  235. package/dist/components/SynapseChat/SynapseChatInteraction.d.ts.map +1 -1
  236. package/dist/components/SynapseChat/SynapseChatInteraction.js +2 -1
  237. package/dist/components/SynapseChat/SynapseChatInteraction.js.map +1 -1
  238. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.js +1 -1
  239. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.js.map +1 -1
  240. package/dist/components/SynapseFooter/SynapseFooter.js +1 -1
  241. package/dist/components/SynapseFooter/SynapseFooter.js.map +1 -1
  242. package/dist/components/SynapseHomepageV2/SynapseFeaturedDatasetItem.js +1 -1
  243. package/dist/components/SynapseHomepageV2/SynapseFeaturedDatasetItem.js.map +1 -1
  244. package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.d.ts.map +1 -1
  245. package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.js +2 -1
  246. package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.js.map +1 -1
  247. package/dist/components/SynapseHomepageV2/SynapseInActionItem.js +4 -4
  248. package/dist/components/SynapseHomepageV2/SynapseInActionItem.js.map +1 -1
  249. package/dist/components/SynapseHomepageV2/SynapseTrendingProjectsItem.js +1 -1
  250. package/dist/components/SynapseHomepageV2/SynapseTrendingProjectsItem.js.map +1 -1
  251. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.d.ts.map +1 -1
  252. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js +4 -1
  253. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js.map +1 -1
  254. package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js +1 -1
  255. package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js.map +1 -1
  256. package/dist/components/SynapseSearchPageResults/SynapseSearchPageResults.js +1 -1
  257. package/dist/components/SynapseSearchPageResults/SynapseSearchPageResults.js.map +1 -1
  258. package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.d.ts.map +1 -1
  259. package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js +12 -9
  260. package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js.map +1 -1
  261. package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +4 -4
  262. package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js.map +1 -1
  263. package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js +140 -140
  264. package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js.map +1 -1
  265. package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js +1 -1
  266. package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js.map +1 -1
  267. package/dist/components/TableColumnSchemaEditor/ImportTableColumnsButton.js +1 -1
  268. package/dist/components/TableColumnSchemaEditor/ImportTableColumnsButton.js.map +1 -1
  269. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorUtils.d.ts.map +1 -1
  270. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorUtils.js.map +1 -1
  271. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js +9 -9
  272. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js.map +1 -1
  273. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormActions.d.ts.map +1 -1
  274. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormActions.js +6 -4
  275. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormActions.js.map +1 -1
  276. package/dist/components/TanStackTable/ColumnHeader.js +1 -1
  277. package/dist/components/TanStackTable/ColumnHeader.js.map +1 -1
  278. package/dist/components/TeamSubjectsSelector/TeamBadgeOrError.js +1 -1
  279. package/dist/components/TeamSubjectsSelector/TeamBadgeOrError.js.map +1 -1
  280. package/dist/components/TeamSubjectsSelector/TeamSubjectsSelector.d.ts.map +1 -1
  281. package/dist/components/TeamSubjectsSelector/TeamSubjectsSelector.js +4 -3
  282. package/dist/components/TeamSubjectsSelector/TeamSubjectsSelector.js.map +1 -1
  283. package/dist/components/Webhook/WebhookDashboard.js +1 -1
  284. package/dist/components/Webhook/WebhookDashboard.js.map +1 -1
  285. package/dist/components/dataaccess/AccessRequirementDashboard.js +4 -4
  286. package/dist/components/dataaccess/AccessRequirementDashboard.js.map +1 -1
  287. package/dist/components/dataaccess/AccessRequirementTable.js +1 -1
  288. package/dist/components/dataaccess/AccessRequirementTable.js.map +1 -1
  289. package/dist/components/dataaccess/EDucTemplateTable.d.ts.map +1 -1
  290. package/dist/components/dataaccess/EDucTemplateTable.js +13 -11
  291. package/dist/components/dataaccess/EDucTemplateTable.js.map +1 -1
  292. package/dist/components/dataaccess/FormTemplateTable.js +6 -6
  293. package/dist/components/dataaccess/FormTemplateTable.js.map +1 -1
  294. package/dist/components/dataaccess/ReviewerDashboard.js +17 -17
  295. package/dist/components/dataaccess/ReviewerDashboard.js.map +1 -1
  296. package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js +4 -4
  297. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
  298. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +4 -1
  299. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
  300. package/dist/components/doi/CreateOrUpdateDoiModal.js +1 -1
  301. package/dist/components/doi/CreateOrUpdateDoiModal.js.map +1 -1
  302. package/dist/components/download_list/DownloadDetails.d.ts.map +1 -1
  303. package/dist/components/download_list/DownloadDetails.js +12 -10
  304. package/dist/components/download_list/DownloadDetails.js.map +1 -1
  305. package/dist/components/entity/metadata/AnnotationsTable.js +1 -1
  306. package/dist/components/entity/metadata/AnnotationsTable.js.map +1 -1
  307. package/dist/components/entity/page/CreatedByModifiedBy.js +1 -1
  308. package/dist/components/entity/page/CreatedByModifiedBy.js.map +1 -1
  309. package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts.map +1 -1
  310. package/dist/components/entity/page/action_menu/EntityActionMenu.js.map +1 -1
  311. package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js +1 -1
  312. package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js.map +1 -1
  313. package/dist/components/error/ErrorChip.d.ts.map +1 -1
  314. package/dist/components/error/ErrorChip.js +2 -1
  315. package/dist/components/error/ErrorChip.js.map +1 -1
  316. package/dist/components/table/CsvPreview/CreateTableFromCsvDialog.js +14 -14
  317. package/dist/components/table/CsvPreview/CsvPreviewWithOptions.js +4 -4
  318. package/dist/components/table/CsvPreview/CsvPreviewWithOptions.js.map +1 -1
  319. package/dist/components/widgets/facet-nav/FacetNavPanel.js +1 -1
  320. package/dist/components/widgets/facet-nav/FacetNavPanel.js.map +1 -1
  321. package/dist/features/curator/dashboard/components/NextStepButton.d.ts.map +1 -1
  322. package/dist/features/curator/dashboard/components/NextStepButton.js +7 -6
  323. package/dist/features/curator/dashboard/components/NextStepButton.js.map +1 -1
  324. package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js +8 -8
  325. package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js.map +1 -1
  326. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js +4 -4
  327. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js.map +1 -1
  328. package/dist/features/entity/metadata-task/components/MetadataTasksPage.js +4 -4
  329. package/dist/features/entity/metadata-task/components/MetadataTasksPage.js.map +1 -1
  330. package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js +1 -1
  331. package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js.map +1 -1
  332. package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js +4 -4
  333. package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js.map +1 -1
  334. package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.js +1 -1
  335. package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.js.map +1 -1
  336. package/dist/features/entity/metadata-task/create-task/TaskFormHeader.js +1 -1
  337. package/dist/features/entity/metadata-task/create-task/TaskFormHeader.js.map +1 -1
  338. package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.js +10 -10
  339. package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.js.map +1 -1
  340. package/dist/features/team/invitation/components/OpenInvitationsToUserCard.js +1 -1
  341. package/dist/features/team/invitation/components/OpenInvitationsToUserCard.js.map +1 -1
  342. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts +5 -0
  343. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts.map +1 -1
  344. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js +37 -26
  345. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js.map +1 -1
  346. package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts +8 -0
  347. package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts.map +1 -1
  348. package/dist/mocks/msw/handlers/aridhiaHandlers.js +52 -41
  349. package/dist/mocks/msw/handlers/aridhiaHandlers.js.map +1 -1
  350. package/dist/mocks/msw/handlers/discussionHandlers.d.ts.map +1 -1
  351. package/dist/mocks/msw/handlers/discussionHandlers.js +40 -33
  352. package/dist/mocks/msw/handlers/discussionHandlers.js.map +1 -1
  353. package/dist/mocks/msw/handlers/entityHandlers.d.ts.map +1 -1
  354. package/dist/mocks/msw/handlers/entityHandlers.js +70 -67
  355. package/dist/mocks/msw/handlers/entityHandlers.js.map +1 -1
  356. package/dist/mocks/msw/handlers/gridHandlers.js +2 -2
  357. package/dist/mocks/msw/handlers/gridHandlers.js.map +1 -1
  358. package/dist/mocks/msw/server.d.ts.map +1 -1
  359. package/dist/mocks/msw/server.js +4 -2
  360. package/dist/mocks/msw/server.js.map +1 -1
  361. package/dist/synapse-client/SynapseClient.d.ts +10 -0
  362. package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
  363. package/dist/synapse-client/SynapseClient.js +486 -482
  364. package/dist/synapse-client/SynapseClient.js.map +1 -1
  365. package/dist/synapse-client/index.js +3 -3
  366. package/dist/synapse-queries/KeyFactory.d.ts +13 -1
  367. package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
  368. package/dist/synapse-queries/KeyFactory.js +11 -1
  369. package/dist/synapse-queries/KeyFactory.js.map +1 -1
  370. package/dist/synapse-queries/dataaccess/index.js +4 -4
  371. package/dist/synapse-queries/dataaccess/useAccessRequirements.d.ts.map +1 -1
  372. package/dist/synapse-queries/dataaccess/useAccessRequirements.js +4 -1
  373. package/dist/synapse-queries/dataaccess/useAccessRequirements.js.map +1 -1
  374. package/dist/synapse-queries/dataaccess/useEDuc.d.ts +19 -5
  375. package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
  376. package/dist/synapse-queries/dataaccess/useEDuc.js +29 -21
  377. package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
  378. package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts +12 -0
  379. package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts.map +1 -1
  380. package/dist/synapse-queries/dataaccess/useFormTemplate.js +52 -30
  381. package/dist/synapse-queries/dataaccess/useFormTemplate.js.map +1 -1
  382. package/dist/synapse-queries/forum/useForum.d.ts +5 -1
  383. package/dist/synapse-queries/forum/useForum.d.ts.map +1 -1
  384. package/dist/synapse-queries/forum/useForum.js +23 -1
  385. package/dist/synapse-queries/forum/useForum.js.map +1 -1
  386. package/dist/synapse-queries/index.js +185 -184
  387. package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts +5 -3
  388. package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts.map +1 -1
  389. package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js +12 -15
  390. package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js.map +1 -1
  391. package/dist/synapse-queries/user/useGetUserChallenges.d.ts.map +1 -1
  392. package/dist/synapse-queries/user/useGetUserChallenges.js.map +1 -1
  393. package/dist/theme/DefaultTheme.d.ts.map +1 -1
  394. package/dist/theme/DefaultTheme.js +4 -1
  395. package/dist/theme/DefaultTheme.js.map +1 -1
  396. package/dist/tsconfig.build.tsbuildinfo +1 -1
  397. package/dist/utils/APIConstants.d.ts.map +1 -1
  398. package/dist/utils/APIConstants.js.map +1 -1
  399. package/dist/utils/AppUtils/AppUtils.js +1 -1
  400. package/dist/utils/AppUtils/AppUtils.js.map +1 -1
  401. package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
  402. package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
  403. package/dist/utils/functions/EntityTypeUtils.d.ts.map +1 -1
  404. package/dist/utils/functions/EntityTypeUtils.js.map +1 -1
  405. package/dist/utils/functions/getEndpoint.d.ts +1 -0
  406. package/dist/utils/functions/getEndpoint.d.ts.map +1 -1
  407. package/dist/utils/functions/getEndpoint.js +3 -3
  408. package/dist/utils/functions/getEndpoint.js.map +1 -1
  409. package/dist/utils/types/RequestableAccessRequirement.d.ts +8 -0
  410. package/dist/utils/types/RequestableAccessRequirement.d.ts.map +1 -0
  411. package/dist/utils/types/RequestableAccessRequirement.js +9 -0
  412. package/dist/utils/types/RequestableAccessRequirement.js.map +1 -0
  413. package/package.json +6 -5
  414. package/dist/testutils/ReactQueryMockUtils.js +0 -676
  415. 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