@opencloning/store 1.9.1 → 1.9.2
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 +7 -0
- package/package.json +1 -1
- package/src/cloning.js +1 -1
- package/src/cloning_utils.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @opencloning/store
|
|
2
2
|
|
|
3
|
+
## 1.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#736](https://github.com/OpenCloning/OpenCloning_frontend/pull/736) [`bc045f9`](https://github.com/OpenCloning/OpenCloning_frontend/commit/bc045f9e74b4d5b84250dcb5a77b93de99e4d684) Thanks [@manulera](https://github.com/manulera)! - \* Unify load paths under single hook
|
|
8
|
+
- Remove warnings when adding db files to design tab
|
|
9
|
+
|
|
3
10
|
## 1.9.1
|
|
4
11
|
|
|
5
12
|
## 1.9.0
|
package/package.json
CHANGED
package/src/cloning.js
CHANGED
package/src/cloning_utils.js
CHANGED
|
@@ -3,6 +3,13 @@ import { flipContainedRange, getRangeLength } from '@teselagen/range-utils';
|
|
|
3
3
|
|
|
4
4
|
export const isSequenceInputOfAnySource = (id, sources) => (sources.find((source) => source.input.some(({sequence}) => sequence === id))) !== undefined;
|
|
5
5
|
|
|
6
|
+
export function getEmptyPlaceholderSource(sources) {
|
|
7
|
+
if (sources.length === 1 && sources[0].type === null) {
|
|
8
|
+
return sources[0];
|
|
9
|
+
}
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
export function getSourcesTakingSequenceAsInput(sources, sequenceId) {
|
|
7
14
|
return sources.filter((s) => s.input.some(({sequence}) => sequence === sequenceId));
|
|
8
15
|
}
|