@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.
- package/CHANGELOG.md +80 -0
- package/package.json +20 -14
- package/src/components/AppAlerts.jsx +7 -7
- package/src/components/CloningHistory.jsx +2 -0
- package/src/components/CloningSpeedDial.jsx +102 -0
- package/src/components/DownloadCloningStrategyDialog.jsx +2 -2
- package/src/components/LoadCloningHistoryWrapper.jsx +2 -2
- package/src/components/MainSequenceEditor.jsx +41 -34
- package/src/components/NetworkNode.jsx +35 -33
- package/src/components/OpenCloning.jsx +4 -3
- package/src/components/SequenceViewer.cy.jsx +27 -0
- package/src/components/SequenceViewer.jsx +211 -0
- package/src/components/annotation/AnnotationChangedAlert.jsx +26 -0
- package/src/components/annotation/useUpdateAnnotationInMainSequence.js +2 -2
- package/src/components/assembler/Assembler.jsx +3 -3
- package/src/components/domesticate/DomesticateDialog.jsx +274 -0
- package/src/components/form/GetRequestMultiSelect.jsx +0 -1
- package/src/components/form/PostRequestSelect.jsx +0 -1
- package/src/components/form/QuerySelect.jsx +128 -0
- package/src/components/form/QueryStatusWrapper.jsx +31 -0
- package/src/components/form/SubmitToDatabaseDialog.jsx +63 -58
- package/src/components/form/TextFieldQueryValidated.jsx +93 -0
- package/src/components/index.js +4 -0
- package/src/components/navigation/FeedbackDialog.jsx +1 -1
- package/src/components/navigation/MainAppBar.jsx +5 -5
- package/src/components/primers/import_primers/ImportPrimersButton.jsx +2 -2
- package/src/components/primers/import_primers/PrimerDatabaseImportForm.jsx +6 -3
- package/src/components/sources/FinishedSource.jsx +3 -0
- package/src/components/sources/MultipleOutputsSelector.cy.jsx +95 -0
- package/src/components/sources/MultipleOutputsSelector.jsx +32 -19
- package/src/components/sources/RecombinaseList.cy.jsx +1 -1
- package/src/components/sources/RecombinaseList.jsx +1 -1
- package/src/components/sources/SourceAssembly.jsx +36 -2
- package/src/components/sources/SourceRepositoryId.jsx +0 -1
- package/src/components/sources/SourceTypeSelector.jsx +1 -1
- package/src/components/verification/ImportSequencingFilesInput.jsx +17 -0
- package/src/components/verification/LoadFromDatabaseButton.jsx +17 -10
- package/src/components/verification/VerificationFileDialog.jsx +16 -22
- package/src/components/verification/index.js +1 -0
- package/src/config/defaultMainEditorProps.js +1 -0
- package/src/hooks/useAlerts.js +3 -4
- package/src/hooks/useBackendAPI.js +5 -2
- package/src/hooks/useCloningAlerts.js +7 -0
- package/src/hooks/useDebouncedSearchQuery.js +42 -0
- package/src/hooks/useLoadDatabaseFile.js +6 -2
- package/src/hooks/useSequencingAlignment.js +26 -0
- package/src/hooks/useSnapgeneHistoryEndpoint.js +3 -3
- package/src/hooks/useStoreEditor.js +10 -68
- package/src/hooks/useUrlParamsLoader.js +2 -2
- package/src/hooks/useValidateState.js +3 -3
- package/src/index.css +3 -11
- package/src/version.js +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
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 } =
|
|
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:
|
|
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.
|
|
2
|
+
export const version = "1.8.1";
|