@opencloning/ui 1.7.3 → 1.8.1

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 (52) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/package.json +20 -14
  3. package/src/components/AppAlerts.jsx +7 -7
  4. package/src/components/CloningHistory.jsx +2 -0
  5. package/src/components/CloningSpeedDial.jsx +102 -0
  6. package/src/components/DownloadCloningStrategyDialog.jsx +2 -2
  7. package/src/components/LoadCloningHistoryWrapper.jsx +2 -2
  8. package/src/components/MainSequenceEditor.jsx +41 -34
  9. package/src/components/NetworkNode.jsx +35 -33
  10. package/src/components/OpenCloning.jsx +4 -3
  11. package/src/components/SequenceViewer.cy.jsx +27 -0
  12. package/src/components/SequenceViewer.jsx +211 -0
  13. package/src/components/annotation/AnnotationChangedAlert.jsx +26 -0
  14. package/src/components/annotation/useUpdateAnnotationInMainSequence.js +2 -2
  15. package/src/components/assembler/Assembler.jsx +3 -3
  16. package/src/components/domesticate/DomesticateDialog.jsx +274 -0
  17. package/src/components/form/GetRequestMultiSelect.jsx +0 -1
  18. package/src/components/form/PostRequestSelect.jsx +0 -1
  19. package/src/components/form/QuerySelect.jsx +128 -0
  20. package/src/components/form/QueryStatusWrapper.jsx +31 -0
  21. package/src/components/form/SubmitToDatabaseDialog.jsx +63 -58
  22. package/src/components/form/TextFieldQueryValidated.jsx +93 -0
  23. package/src/components/index.js +4 -0
  24. package/src/components/navigation/FeedbackDialog.jsx +1 -1
  25. package/src/components/navigation/MainAppBar.jsx +5 -5
  26. package/src/components/primers/import_primers/ImportPrimersButton.jsx +2 -2
  27. package/src/components/primers/import_primers/PrimerDatabaseImportForm.jsx +6 -3
  28. package/src/components/sources/FinishedSource.jsx +3 -0
  29. package/src/components/sources/MultipleOutputsSelector.cy.jsx +95 -0
  30. package/src/components/sources/MultipleOutputsSelector.jsx +32 -19
  31. package/src/components/sources/RecombinaseList.cy.jsx +1 -1
  32. package/src/components/sources/RecombinaseList.jsx +1 -1
  33. package/src/components/sources/SourceAssembly.jsx +36 -2
  34. package/src/components/sources/SourceRepositoryId.jsx +0 -1
  35. package/src/components/sources/SourceTypeSelector.jsx +1 -1
  36. package/src/components/verification/ImportSequencingFilesInput.jsx +17 -0
  37. package/src/components/verification/LoadFromDatabaseButton.jsx +17 -10
  38. package/src/components/verification/VerificationFileDialog.jsx +16 -22
  39. package/src/components/verification/index.js +1 -0
  40. package/src/config/defaultMainEditorProps.js +1 -0
  41. package/src/hooks/useAlerts.js +3 -4
  42. package/src/hooks/useBackendAPI.js +5 -2
  43. package/src/hooks/useCloningAlerts.js +7 -0
  44. package/src/hooks/useDebouncedSearchQuery.js +42 -0
  45. package/src/hooks/useLoadDatabaseFile.js +6 -2
  46. package/src/hooks/useSequencingAlignment.js +26 -0
  47. package/src/hooks/useSnapgeneHistoryEndpoint.js +3 -3
  48. package/src/hooks/useStoreEditor.js +10 -68
  49. package/src/hooks/useUrlParamsLoader.js +2 -2
  50. package/src/hooks/useValidateState.js +3 -3
  51. package/src/index.css +3 -11
  52. package/src/version.js +1 -1
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import useAlerts from './useAlerts';
2
+ import useCloningAlerts from './useCloningAlerts';
3
3
  import useBackendRoute from './useBackendRoute';
4
4
  import useHttpClient from './useHttpClient';
5
5
 
6
6
  export default function useValidateState() {
7
7
  const backendRoute = useBackendRoute();
8
- const { addAlert } = useAlerts();
8
+ const { addAlert } = useCloningAlerts();
9
9
  const httpClient = useHttpClient();
10
10
 
11
11
  const validateState = React.useCallback(async (newState) => {
@@ -37,7 +37,7 @@ export default function useValidateState() {
37
37
  }
38
38
  return newState;
39
39
  }
40
- }, [addAlert, backendRoute]);
40
+ }, [addAlert, backendRoute, httpClient]);
41
41
 
42
42
  return validateState;
43
43
  }
package/src/index.css CHANGED
@@ -7,15 +7,6 @@ button {
7
7
  border-color: rgb(25, 118, 210);
8
8
  }
9
9
 
10
- ul.hidden-ancestors {
11
- display: none;
12
- }
13
-
14
- /* So that the eye icon is visible */
15
- li.hidden-ancestors {
16
- margin-bottom: 30px;
17
- }
18
-
19
10
  .app-container {
20
11
  display: flex;
21
12
  flex-direction: column;
@@ -288,14 +279,15 @@ div.MuiPaper-root[role=alert] {
288
279
  }
289
280
 
290
281
  div#global-error-message-wrapper {
291
- position: fixed;
282
+ position: relative;
292
283
  top: 0;
293
284
  z-index: 999;
294
285
  max-width: 25em;
295
286
  }
296
287
 
297
288
  div#global-error-message-wrapper > div {
298
- margin: 10px;
289
+ margin-left: 10px;
290
+ margin-bottom: 10px;
299
291
  /* Allow line breaks in very long strings only when necessary */
300
292
  word-break: break-word;
301
293
  }
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Version placeholder - replaced at publish time via prepack script
2
- export const version = "1.7.3";
2
+ export const version = "1.8.1";