@teselagen/ove 0.5.16 → 0.5.18

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 (194) hide show
  1. package/AlignmentTool/index.d.ts +1 -1
  2. package/AlignmentView/HorizontalPanelDragHandle.d.ts +1 -1
  3. package/AlignmentView/Minimap.d.ts +3 -3
  4. package/AlignmentView/Mismatches.d.ts +2 -2
  5. package/AlignmentView/PairwiseAlignmentView.d.ts +2 -2
  6. package/AlignmentView/PerformantSelectionLayer.d.ts +1 -1
  7. package/AlignmentView/index.d.ts +7 -7
  8. package/AutoAnnotate.d.ts +1 -1
  9. package/AutoAnnotateBpMatchingDialog.d.ts +1 -1
  10. package/CircularView/Axis.d.ts +1 -1
  11. package/CircularView/AxisNumbers.d.ts +1 -1
  12. package/CircularView/CircularDnaSequence.d.ts +1 -1
  13. package/CircularView/CircularZoomMinimap.d.ts +1 -1
  14. package/CircularView/Cutsite.d.ts +1 -1
  15. package/CircularView/Cutsites.d.ts +1 -1
  16. package/CircularView/DeletionLayer.d.ts +1 -1
  17. package/CircularView/Feature.d.ts +1 -1
  18. package/CircularView/Labels/index.d.ts +1 -1
  19. package/CircularView/Orf.d.ts +1 -1
  20. package/CircularView/Part.d.ts +1 -1
  21. package/CircularView/PositionAnnotationOnCircle.d.ts +1 -1
  22. package/CircularView/Primer.d.ts +1 -1
  23. package/CircularView/RotateCircularViewSlider.d.ts +1 -1
  24. package/CircularView/VeTopRightContainer.d.ts +1 -1
  25. package/CircularView/ZoomCircularViewSlider.d.ts +1 -1
  26. package/CircularView/drawAnnotations.d.ts +1 -1
  27. package/CircularView/getInternalLabel.d.ts +1 -1
  28. package/CircularView/index.d.ts +2 -1
  29. package/CutsiteFilter/AdditionalCutsiteInfoDialog.d.ts +4 -4
  30. package/CutsiteFilter/index.d.ts +1 -1
  31. package/DigestTool/DigestTool.d.ts +2 -2
  32. package/DigestTool/Ladder.d.ts +1 -1
  33. package/Editor/DropHandler.d.ts +2 -2
  34. package/Editor/FillWindow.d.ts +2 -2
  35. package/Editor/index.d.ts +4 -4
  36. package/EnzymeViewer/index.d.ts +1 -1
  37. package/FindBar/index.d.ts +2 -2
  38. package/GlobalDialog.d.ts +1 -1
  39. package/LinearView/SequenceName.d.ts +1 -1
  40. package/LinearView/ZoomLinearView.d.ts +1 -1
  41. package/LinearView/index.d.ts +2 -2
  42. package/ManageEnzymes/index.d.ts +1 -1
  43. package/MenuBar/defaultConfig.d.ts +3 -3
  44. package/MenuBar/viewSubmenu.d.ts +3 -2
  45. package/README.md +2 -2
  46. package/Reflex/ReflexContainer.d.ts +4 -4
  47. package/Reflex/ReflexElement.d.ts +4 -4
  48. package/Reflex/ReflexSplitter.d.ts +3 -3
  49. package/Reflex/index.d.ts +4 -3
  50. package/RowItem/AnnotationContainerHolder.d.ts +1 -1
  51. package/RowItem/AnnotationPositioner.d.ts +2 -2
  52. package/RowItem/Axis.d.ts +1 -1
  53. package/RowItem/Caret/index.d.ts +1 -1
  54. package/RowItem/Chromatograms/Chromatogram.d.ts +1 -1
  55. package/RowItem/CutsiteSelectionLayers.d.ts +1 -1
  56. package/RowItem/Orf.d.ts +1 -1
  57. package/RowItem/Orfs.d.ts +1 -1
  58. package/RowItem/Sequence.d.ts +2 -2
  59. package/RowItem/StackedAnnotations/PointedAnnotation.d.ts +1 -1
  60. package/RowItem/StackedAnnotations/index.d.ts +1 -1
  61. package/RowItem/Translations/index.d.ts +1 -1
  62. package/RowItem/index.d.ts +1 -1
  63. package/RowView/index.d.ts +2 -1
  64. package/SimpleCircularOrLinearView.d.ts +1 -1
  65. package/SimpleOligoPreview.d.ts +1 -1
  66. package/StatusBar/MeltingTemp.d.ts +3 -3
  67. package/StatusBar/index.d.ts +3 -2
  68. package/ToolBar/ToolbarItem.d.ts +2 -2
  69. package/ToolBar/alignmentTool.d.ts +1 -1
  70. package/ToolBar/cutsiteTool.d.ts +1 -1
  71. package/ToolBar/downloadTool.d.ts +1 -1
  72. package/ToolBar/editTool.d.ts +1 -1
  73. package/ToolBar/featureTool.d.ts +1 -1
  74. package/ToolBar/findTool.d.ts +1 -1
  75. package/ToolBar/index.d.ts +1 -1
  76. package/ToolBar/inlineFindTool.d.ts +1 -1
  77. package/ToolBar/oligoTool.d.ts +1 -1
  78. package/ToolBar/orfTool.d.ts +1 -1
  79. package/ToolBar/partTool.d.ts +1 -1
  80. package/ToolBar/printTool.d.ts +1 -1
  81. package/ToolBar/redoTool.d.ts +1 -1
  82. package/ToolBar/saveTool.d.ts +1 -1
  83. package/ToolBar/undoTool.d.ts +1 -1
  84. package/ToolBar/versionHistoryTool.d.ts +1 -1
  85. package/ToolBar/visibilityTool.d.ts +1 -1
  86. package/VersionHistoryView/index.d.ts +2 -2
  87. package/commands/index.d.ts +7 -7
  88. package/helperComponents/AddOrEditAnnotationDialog/index.d.ts +1 -1
  89. package/helperComponents/AddOrEditFeatureDialog/index.d.ts +1 -1
  90. package/helperComponents/AddOrEditPartDialog/index.d.ts +1 -1
  91. package/helperComponents/AddOrEditPrimerDialog/index.d.ts +1 -1
  92. package/helperComponents/EnzymesDialog/index.d.ts +1 -1
  93. package/helperComponents/GoToDialog.d.ts +1 -1
  94. package/helperComponents/MergeFeaturesDialog/index.d.ts +1 -1
  95. package/helperComponents/MultipleSeqsDetectedOnImportDialog.d.ts +1 -1
  96. package/helperComponents/PinchHelper/PinchHelper.d.ts +1 -1
  97. package/helperComponents/PrintDialog/index.d.ts +1 -1
  98. package/helperComponents/PropertiesDialog/ColorPicker.d.ts +2 -2
  99. package/helperComponents/PropertiesDialog/GenericAnnotationProperties.d.ts +1 -1
  100. package/helperComponents/PropertiesDialog/SingleEnzymeCutsiteInfo.d.ts +1 -1
  101. package/helperComponents/PropertiesDialog/index.d.ts +2 -2
  102. package/helperComponents/PropertiesDialog/typeField.d.ts +1 -1
  103. package/helperComponents/PropertiesDialog/utils.d.ts +1 -1
  104. package/helperComponents/RemoveDuplicates/index.d.ts +1 -1
  105. package/helperComponents/RenameSequenceDialog.d.ts +1 -1
  106. package/helperComponents/SelectDialog.d.ts +1 -1
  107. package/helperComponents/UncontrolledSliderWithPlusMinusBtns.d.ts +2 -2
  108. package/helperComponents/VeWarning/index.d.ts +1 -1
  109. package/helperComponents/createSimpleDialog.d.ts +1 -1
  110. package/helperComponents/withHover.d.ts +3 -3
  111. package/index.cjs.js +9161 -7662
  112. package/index.d.ts +25 -25
  113. package/index.es.js +8722 -7223
  114. package/index.umd.js +7751 -7126
  115. package/package.json +7 -2
  116. package/redux/alignments.d.ts +4 -4
  117. package/redux/annotationLabelVisibility.d.ts +3 -3
  118. package/redux/annotationVisibility.d.ts +15 -15
  119. package/redux/annotationsToSupport.d.ts +3 -3
  120. package/redux/caretPosition.d.ts +3 -3
  121. package/redux/charWidth.d.ts +2 -2
  122. package/redux/copyOptions.d.ts +2 -2
  123. package/redux/createYourOwnEnzyme.d.ts +4 -4
  124. package/redux/deletionLayers.d.ts +4 -4
  125. package/redux/digestTool.d.ts +2 -2
  126. package/redux/featureLengthsToHide.d.ts +2 -2
  127. package/redux/findTool.d.ts +7 -7
  128. package/redux/frameTranslations.d.ts +4 -4
  129. package/redux/hoveredAnnotation.d.ts +3 -3
  130. package/redux/index.d.ts +7 -7
  131. package/redux/labelLineIntensity.d.ts +2 -2
  132. package/redux/labelSize.d.ts +2 -2
  133. package/redux/lastSavedId.d.ts +2 -2
  134. package/redux/minimumOrfSize.d.ts +2 -2
  135. package/redux/panelsShown.d.ts +10 -10
  136. package/redux/partLengthsToHide.d.ts +2 -2
  137. package/redux/primerLengthsToHide.d.ts +2 -2
  138. package/redux/propertiesTool.d.ts +1 -1
  139. package/redux/readOnly.d.ts +3 -3
  140. package/redux/replacementLayers.d.ts +4 -4
  141. package/redux/restrictionEnzymes.d.ts +4 -4
  142. package/redux/selectedAnnotations.d.ts +5 -5
  143. package/redux/selectedPartTags.d.ts +2 -2
  144. package/redux/selectionLayer.d.ts +3 -3
  145. package/redux/sequenceData/circular.d.ts +2 -2
  146. package/redux/sequenceData/description.d.ts +2 -2
  147. package/redux/sequenceData/features.d.ts +3 -3
  148. package/redux/sequenceData/index.d.ts +9 -9
  149. package/redux/sequenceData/lineageLines.d.ts +1 -1
  150. package/redux/sequenceData/materiallyAvailable.d.ts +2 -2
  151. package/redux/sequenceData/name.d.ts +2 -2
  152. package/redux/sequenceData/parts.d.ts +3 -3
  153. package/redux/sequenceData/primers.d.ts +3 -3
  154. package/redux/sequenceData/sequence.d.ts +2 -2
  155. package/redux/sequenceData/translations.d.ts +3 -3
  156. package/redux/sequenceDataHistory.d.ts +4 -4
  157. package/redux/showGCContent.d.ts +2 -2
  158. package/redux/toolBar.d.ts +1 -1
  159. package/redux/uppercaseSequenceMapFont.d.ts +2 -2
  160. package/redux/useAdditionalOrfStartCodons.d.ts +2 -2
  161. package/redux/utils/createMetaAction.d.ts +1 -1
  162. package/redux/versionHistory.d.ts +2 -2
  163. package/selectors/annotationSearchSelector.d.ts +1 -1
  164. package/selectors/cdsFeaturesSelector.d.ts +1 -1
  165. package/selectors/cutsiteLabelColorSelector.d.ts +1 -1
  166. package/selectors/cutsitesSelector.d.ts +1 -1
  167. package/selectors/featuresSelector.d.ts +1 -1
  168. package/selectors/filteredCutsitesSelector.d.ts +1 -1
  169. package/selectors/filteredFeaturesSelector.d.ts +1 -1
  170. package/selectors/filteredPartsSelector.d.ts +1 -1
  171. package/selectors/filteredPrimersSelector.d.ts +1 -1
  172. package/selectors/getAdditionalEnzymesSelector.d.ts +1 -1
  173. package/selectors/index.d.ts +19 -19
  174. package/selectors/orfsSelector.d.ts +1 -1
  175. package/selectors/partsSelector.d.ts +1 -1
  176. package/selectors/primersSelector.d.ts +1 -1
  177. package/selectors/restrictionEnzymesSelector.d.ts +1 -1
  178. package/selectors/searchLayersSelector.d.ts +1 -1
  179. package/selectors/selectedCutsitesSelector.d.ts +1 -1
  180. package/selectors/translationSearchMatchesSelector.d.ts +1 -1
  181. package/selectors/translationsRawSelector.d.ts +1 -1
  182. package/selectors/translationsSelector.d.ts +1 -1
  183. package/src/StatusBar/index.js +20 -3
  184. package/src/helperComponents/AddOrEditAnnotationDialog/index.js +2 -0
  185. package/src/withEditorInteractions/index.js +35 -8
  186. package/utils/editorUtils.d.ts +3 -3
  187. package/utils/useAAColorType.d.ts +1 -1
  188. package/utils/useAnnotationLimits.d.ts +2 -2
  189. package/utils/useChromatogramPrefs.d.ts +2 -2
  190. package/utils/useLadders.d.ts +1 -1
  191. package/utils/useMeltingTemp.d.ts +1 -1
  192. package/utils/useTmType.d.ts +1 -1
  193. package/withEditorInteractions/Keyboard.d.ts +2 -2
  194. package/withEditorInteractions/index.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any[]) & import("reselect").OutputSelectorFields<(args_0: any) => any[], {
1
+ declare const _default: ((state: any) => any[]) & import('reselect').OutputSelectorFields<(args_0: any) => any[], {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any) => any, {
1
+ declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -2,7 +2,7 @@ declare const _default: ((state: any) => {
2
2
  cutsitesByName: {};
3
3
  cutsitesById: {};
4
4
  cutsitesArray: never[];
5
- }) & import("reselect").OutputSelectorFields<(...args: any) => {
5
+ }) & import('reselect').OutputSelectorFields<(...args: any) => {
6
6
  cutsitesByName: {};
7
7
  cutsitesById: {};
8
8
  cutsitesArray: never[];
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any) => any, {
1
+ declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, {
1
+ declare const _default: ((state: any, ...params: any[]) => any) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => any, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => Partial<any>) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any) => Partial<any>, {
1
+ declare const _default: ((state: any) => Partial<any>) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any) => Partial<any>, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any[]) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any) => any[], {
1
+ declare const _default: ((state: any) => any[]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any) => any[], {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => Partial<any>) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any) => Partial<any>, {
1
+ declare const _default: ((state: any) => Partial<any>) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any) => Partial<any>, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any, ...params: any[]) => {}) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => {}, {
1
+ declare const _default: ((state: any, ...params: any[]) => {}) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => {}, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,3 +1,22 @@
1
+ import { default as translationsSelector } from './translationsSelector';
2
+ import { default as getAdditionalEnzymesSelector } from './getAdditionalEnzymesSelector';
3
+ import { default as cutsitesSelector } from './cutsitesSelector';
4
+ import { default as sequenceDataSelector } from './sequenceDataSelector';
5
+ import { default as sequenceLengthSelector } from './sequenceLengthSelector';
6
+ import { default as selectedCutsitesSelector } from './selectedCutsitesSelector';
7
+ import { default as orfsSelector } from './orfsSelector';
8
+ import { default as circularSelector } from './circularSelector';
9
+ import { default as annotationSearchSelector } from './annotationSearchSelector';
10
+ import { default as searchLayersSelector } from './searchLayersSelector';
11
+ import { default as filteredCutsitesSelector } from './filteredCutsitesSelector';
12
+ import { default as filteredRestrictionEnzymesSelector } from './filteredRestrictionEnzymesSelector';
13
+ import { default as filteredPrimersSelector } from './filteredPrimersSelector';
14
+ import { default as filteredFeaturesSelector } from './filteredFeaturesSelector';
15
+ import { default as filteredPartsSelector } from './filteredPartsSelector';
16
+ import { default as isEnzymeFilterAndSelector } from './isEnzymeFilterAndSelector';
17
+ import { default as restrictionEnzymesSelector } from './restrictionEnzymesSelector';
18
+ import { default as sequenceSelector } from './sequenceSelector';
19
+ import { default as cutsiteLabelColorSelector } from './cutsiteLabelColorSelector';
1
20
  declare namespace _default {
2
21
  export { translationsSelector };
3
22
  export { getAdditionalEnzymesSelector };
@@ -20,22 +39,3 @@ declare namespace _default {
20
39
  export { cutsiteLabelColorSelector };
21
40
  }
22
41
  export default _default;
23
- import translationsSelector from "./translationsSelector";
24
- import getAdditionalEnzymesSelector from "./getAdditionalEnzymesSelector";
25
- import cutsitesSelector from "./cutsitesSelector";
26
- import sequenceDataSelector from "./sequenceDataSelector";
27
- import sequenceLengthSelector from "./sequenceLengthSelector";
28
- import selectedCutsitesSelector from "./selectedCutsitesSelector";
29
- import orfsSelector from "./orfsSelector";
30
- import circularSelector from "./circularSelector";
31
- import annotationSearchSelector from "./annotationSearchSelector";
32
- import searchLayersSelector from "./searchLayersSelector";
33
- import filteredCutsitesSelector from "./filteredCutsitesSelector";
34
- import filteredRestrictionEnzymesSelector from "./filteredRestrictionEnzymesSelector";
35
- import filteredPrimersSelector from "./filteredPrimersSelector";
36
- import filteredFeaturesSelector from "./filteredFeaturesSelector";
37
- import filteredPartsSelector from "./filteredPartsSelector";
38
- import isEnzymeFilterAndSelector from "./isEnzymeFilterAndSelector";
39
- import restrictionEnzymesSelector from "./restrictionEnzymesSelector";
40
- import sequenceSelector from "./sequenceSelector";
41
- import cutsiteLabelColorSelector from "./cutsiteLabelColorSelector";
@@ -8,7 +8,7 @@ declare const _default: ((state: any) => {
8
8
  annotationTypePlural: string;
9
9
  isOrf: boolean;
10
10
  id: any;
11
- }[]) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any) => {
11
+ }[]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any) => {
12
12
  start: number;
13
13
  end: number;
14
14
  length: number;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any) => any, {
1
+ declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any) => any, {
1
+ declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, {
1
+ declare const _default: ((state: any, ...params: any[]) => any) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => any, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any[]) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any, args_5: any, args_6: any, args_7: any) => any[], {
1
+ declare const _default: ((state: any) => any[]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any, args_5: any, args_6: any, args_7: any) => any[], {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,7 +1,7 @@
1
1
  declare const _default: ((state: any) => {
2
2
  idStack: any;
3
3
  idMap: {};
4
- }) & import("reselect").OutputSelectorFields<(args_0: any) => {
4
+ }) & import('reselect').OutputSelectorFields<(args_0: any) => {
5
5
  idStack: any;
6
6
  idMap: {};
7
7
  }, {
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any, ...params: any[]) => unknown) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => unknown, {
1
+ declare const _default: ((state: any, ...params: any[]) => unknown) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => unknown, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any) => any, {
1
+ declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
2
2
  clearCache: () => void;
3
3
  }> & {
4
4
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- declare const _default: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any, args_1: unknown, args_2: any, args_3: {
1
+ declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any, args_1: unknown, args_2: any, args_3: {
2
2
  start: number;
3
3
  end: number;
4
4
  length: number;
@@ -19,14 +19,29 @@ import { handleReadOnlyChange } from "../ToolBar/editTool";
19
19
  const EditReadOnlyItem = connectToEditor(({ readOnly }) => ({
20
20
  readOnly
21
21
  }))(props => {
22
- const { onSave, readOnly, showReadOnly, disableSetReadOnly } = props;
22
+ const {
23
+ onSave,
24
+ readOnly,
25
+ showReadOnly,
26
+ disableSetReadOnly,
27
+ disableBpEditing
28
+ } = props;
23
29
  return showReadOnly ? (
24
30
  <StatusBarItem dataTest="veStatusBar-readOnly">
25
31
  {onSave ? (
26
32
  <HTMLSelect
33
+ data-tip={
34
+ !readOnly && disableBpEditing ? disableBpEditing : undefined
35
+ }
27
36
  options={[
28
- { label: "Read Only", value: "readOnly" },
29
- { label: "Editable", value: "editable" }
37
+ {
38
+ label: "Read Only",
39
+ value: "readOnly"
40
+ },
41
+ {
42
+ label: "Editable" + (disableBpEditing ? "*" : ""),
43
+ value: "editable"
44
+ }
30
45
  ]}
31
46
  disabled={disableSetReadOnly || !onSave} //the !onSave here is redundant
32
47
  className={Classes.MINIMAL}
@@ -209,6 +224,7 @@ const EditAvailabilityItem = connectToEditor(
209
224
 
210
225
  export function StatusBar({
211
226
  disableSetReadOnly,
227
+ disableBpEditing,
212
228
  onSave,
213
229
  editorName,
214
230
  showCircularity = true,
@@ -230,6 +246,7 @@ export function StatusBar({
230
246
  beforeReadOnlyChange={beforeReadOnlyChange}
231
247
  editorName={editorName}
232
248
  onSave={onSave}
249
+ disableBpEditing={disableBpEditing}
233
250
  disableSetReadOnly={disableSetReadOnly}
234
251
  showReadOnly={showReadOnly}
235
252
  />
@@ -254,6 +254,7 @@ class AddOrEditAnnotationDialog extends React.Component {
254
254
  updatedData = data;
255
255
  }
256
256
  }
257
+ const _bases = updatedData.bases || bases;
257
258
  if (!data.useLinkedOligo) {
258
259
  delete updatedData.bases;
259
260
  }
@@ -291,6 +292,7 @@ class AddOrEditAnnotationDialog extends React.Component {
291
292
 
292
293
  if (beforeAnnotationCreate) {
293
294
  const shouldContinue = await beforeAnnotationCreate({
295
+ bases: _bases,
294
296
  annotationTypePlural,
295
297
  annotation: newAnnotation,
296
298
  props: this.props,
@@ -213,10 +213,10 @@ function VectorInteractionHOC(Component /* options */) {
213
213
  } = this.props;
214
214
 
215
215
  if (disableBpEditing) {
216
- return window.toastr.warning("Sorry the underlying sequence is locked");
216
+ return this.createDisableBpEditingMsg();
217
217
  }
218
218
  if (readOnly) {
219
- return window.toastr.warning("Sorry the sequence is Read-Only");
219
+ return this.createReadOnlyMsg();
220
220
  }
221
221
  if (!(caretPosition > -1 || selectionLayer.start > -1)) {
222
222
  return window.toastr.warning("Please place the cursor before pasting");
@@ -344,6 +344,33 @@ function VectorInteractionHOC(Component /* options */) {
344
344
 
345
345
  handleCopy = this.handleCutOrCopy();
346
346
 
347
+ getDuplicateAction = () => {
348
+ if (!this.props.onDuplicate) {
349
+ return undefined;
350
+ }
351
+ return {
352
+ action: {
353
+ text: "Create a Duplicate?",
354
+ onClick: () => {
355
+ window.__tgClearAllToasts();
356
+ this.props.onDuplicate(this.props.sequenceData, this.props);
357
+ }
358
+ }
359
+ };
360
+ };
361
+ createDisableBpEditingMsg = () => {
362
+ window.toastr.warning(
363
+ this.props.disableBpEditing,
364
+ this.getDuplicateAction()
365
+ );
366
+ };
367
+ createReadOnlyMsg = () => {
368
+ window.toastr.warning(
369
+ "Sorry the sequence is Read-Only",
370
+ this.getDuplicateAction()
371
+ );
372
+ };
373
+
347
374
  handleDnaInsert = async ({ useEventPositioning }) => {
348
375
  const {
349
376
  caretPosition = -1,
@@ -358,10 +385,10 @@ function VectorInteractionHOC(Component /* options */) {
358
385
  const sequenceLength = sequenceData.sequence.length;
359
386
  const isReplace = selectionLayer.start > -1;
360
387
  if (disableBpEditing) {
361
- return window.toastr.warning("Sorry the underlying sequence is locked");
388
+ return this.createDisableBpEditingMsg();
362
389
  }
363
- if (readOnly || disableBpEditing) {
364
- window.toastr.warning("Sorry the sequence is Read-Only");
390
+ if (readOnly) {
391
+ return this.createReadOnlyMsg();
365
392
  } else {
366
393
  createSequenceInputPopup({
367
394
  useEventPositioning,
@@ -397,10 +424,10 @@ function VectorInteractionHOC(Component /* options */) {
397
424
  } = this.props;
398
425
  const sequenceLength = sequenceData.sequence.length;
399
426
  if (disableBpEditing) {
400
- return window.toastr.warning("Sorry the underlying sequence is locked");
427
+ return this.createDisableBpEditingMsg();
401
428
  }
402
- if (readOnly || disableBpEditing) {
403
- return window.toastr.warning("Sorry the sequence is Read-Only");
429
+ if (readOnly) {
430
+ return this.createReadOnlyMsg();
404
431
  }
405
432
  if (sequenceLength > 0) {
406
433
  let rangeToDelete = selectionLayer;
@@ -16,7 +16,7 @@ export function getNodeToRefocus(caretEl: any): any;
16
16
  export function getEmptyText({ sequenceData, caretPosition }: {
17
17
  sequenceData: any;
18
18
  caretPosition: any;
19
- }): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
19
+ }): import("react/jsx-runtime").JSX.Element | null;
20
20
  export function tryToRefocusEditor(): void;
21
21
  export function getCustomEnzymes(): any;
22
22
  export function addCustomEnzyme(newEnz: any): void;
@@ -25,12 +25,12 @@ export function getParedDownWarning({ nameUpper, maxToShow, isAdjustable }: {
25
25
  nameUpper: any;
26
26
  maxToShow: any;
27
27
  isAdjustable: any;
28
- }): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
29
  export function getClientX(event: any): any;
30
30
  export function getClientY(event: any): any;
31
31
  export function hideAnnByLengthFilter(hideOpts: any, ann: any, seqLen: any): any;
32
32
  export function getSelFromWrappedAddon(selectionLayer: any, sequenceLength: any): any;
33
33
  export function getStripedPattern({ color }: {
34
34
  color: any;
35
- }): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
35
+ }): import("react/jsx-runtime").JSX.Element;
36
36
  export function getEnzymeAliases(enzyme: any): any[];
@@ -1,2 +1,2 @@
1
1
  export default useAAColorType;
2
- declare function useAAColorType(): import("tg-use-local-storage-state").LocalStorageState<string>;
2
+ declare function useAAColorType(): import('tg-use-local-storage-state').LocalStorageState<string>;
@@ -1,9 +1,9 @@
1
1
  export function LimitAnnotations({ type, ...rest }: {
2
2
  [x: string]: any;
3
3
  type: any;
4
- }): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
5
  export default useAnnotationLimits;
6
- declare function useAnnotationLimits(): import("tg-use-local-storage-state").LocalStorageState<{
6
+ declare function useAnnotationLimits(): import('tg-use-local-storage-state').LocalStorageState<{
7
7
  features: number;
8
8
  parts: number;
9
9
  primers: number;
@@ -1,7 +1,7 @@
1
1
  export namespace chromatogramMenu {
2
2
  let text: string;
3
3
  let cmd: string;
4
- function component(props: any): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
4
+ function component(props: any): import("react/jsx-runtime").JSX.Element;
5
5
  let shouldDismissPopover: boolean;
6
6
  }
7
- export function useShowChromQualScores(): import("tg-use-local-storage-state").LocalStorageState<boolean>;
7
+ export function useShowChromQualScores(): import('tg-use-local-storage-state').LocalStorageState<boolean>;
@@ -1,2 +1,2 @@
1
1
  export default useLadders;
2
- declare function useLadders(): import("tg-use-local-storage-state").LocalStorageState<never[]>;
2
+ declare function useLadders(): import('tg-use-local-storage-state').LocalStorageState<never[]>;
@@ -1,2 +1,2 @@
1
1
  export default useMeltingTemp;
2
- declare function useMeltingTemp(): import("tg-use-local-storage-state").LocalStorageState<unknown>;
2
+ declare function useMeltingTemp(): import('tg-use-local-storage-state').LocalStorageState<unknown>;
@@ -1,2 +1,2 @@
1
1
  export default useTmType;
2
- declare function useTmType(): import("tg-use-local-storage-state").LocalStorageState<string>;
2
+ declare function useTmType(): import('tg-use-local-storage-state').LocalStorageState<string>;
@@ -1,3 +1,4 @@
1
+ import { default as React } from '../../../../node_modules/react';
1
2
  export default Clipboard;
2
3
  declare class Clipboard extends React.Component<any, any, any> {
3
4
  static defaultProps: {
@@ -10,7 +11,6 @@ declare class Clipboard extends React.Component<any, any, any> {
10
11
  handleKeyDown: (e: any) => void;
11
12
  origFocusedElement: Element | null | undefined;
12
13
  handleKeyUp: () => void;
13
- render(): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
14
+ render(): import("react/jsx-runtime").JSX.Element;
14
15
  node: HTMLInputElement | undefined;
15
16
  }
16
- import React from '../../../../node_modules/react';
@@ -1,2 +1,2 @@
1
1
  export default withEditorInteractions;
2
- declare const withEditorInteractions: import('../../../../node_modules/redux').Func0<(props: any) => import('../../../../node_modules/react/jsx-runtime').JSX.Element>;
2
+ declare const withEditorInteractions: import('../../../../node_modules/redux').Func0<(props: any) => import("react/jsx-runtime").JSX.Element>;