@opencloning/ui 1.2.0 → 1.3.0

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 (31) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +4 -3
  3. package/src/components/assembler/Assembler.cy.jsx +364 -0
  4. package/src/components/assembler/Assembler.jsx +298 -205
  5. package/src/components/assembler/AssemblerPart.cy.jsx +52 -0
  6. package/src/components/assembler/AssemblerPart.jsx +51 -79
  7. package/src/components/assembler/ExistingSyntaxDialog.cy.jsx +194 -0
  8. package/src/components/assembler/ExistingSyntaxDialog.jsx +65 -0
  9. package/src/components/assembler/PlasmidSyntaxTable.jsx +83 -0
  10. package/src/components/assembler/assembler_utils.js +134 -0
  11. package/src/components/assembler/assembler_utils.test.js +193 -0
  12. package/src/components/assembler/assembly_component.module.css +1 -1
  13. package/src/components/assembler/graph_utils.js +153 -0
  14. package/src/components/assembler/graph_utils.test.js +239 -0
  15. package/src/components/assembler/index.js +9 -0
  16. package/src/components/assembler/useAssembler.js +59 -22
  17. package/src/components/assembler/useCombinatorialAssembly.js +76 -0
  18. package/src/components/assembler/usePlasmidsLogic.js +82 -0
  19. package/src/components/eLabFTW/utils.js +0 -9
  20. package/src/components/index.js +2 -0
  21. package/src/components/navigation/SelectTemplateDialog.jsx +0 -1
  22. package/src/components/primers/DownloadPrimersButton.jsx +0 -1
  23. package/src/components/primers/PrimerList.jsx +4 -3
  24. package/src/components/primers/import_primers/ImportPrimersButton.jsx +0 -1
  25. package/src/version.js +1 -1
  26. package/vitest.config.js +2 -4
  27. package/src/components/DraggableDialogPaper.jsx +0 -16
  28. package/src/components/assembler/AssemblePartWidget.jsx +0 -252
  29. package/src/components/assembler/StopIcon.jsx +0 -34
  30. package/src/components/assembler/assembler_data2.json +0 -50
  31. package/src/components/assembler/moclo.json +0 -110
@@ -1,34 +0,0 @@
1
- import React from 'react'
2
-
3
- function StopIcon({ color = 'currentColor', size = 24, ...props }) {
4
- return (
5
- <svg xmlns="http://www.w3.org/2000/svg"
6
- viewBox="0 0 24 24"
7
- width={size} height={size}
8
- role="img"
9
- aria-label="Stop sign icon"
10
- {...props}
11
- >
12
- <mask id="stop-mask">
13
- {/* Octagon area (visible part) */}
14
- <polygon fill="white"
15
- points="7.07,2 16.93,2 22,7.07 22,16.93 16.93,22 7.07,22 2,16.93 2,7.07" />
16
- {/* Text area (cut out) */}
17
- <text x="12" y="12.3"
18
- fill="black"
19
- fontFamily="Arial, Helvetica, sans-serif"
20
- fontWeight="700"
21
- fontSize="7.2"
22
- textAnchor="middle"
23
- dominantBaseline="middle">STOP</text>
24
- </mask>
25
-
26
- {/* Octagon using mask */}
27
- <rect width="24" height="24" fill={color} mask="url(#stop-mask)" />
28
- </svg>
29
- )
30
- }
31
-
32
- export default StopIcon
33
-
34
-
@@ -1,50 +0,0 @@
1
- [
2
- {
3
- "name": "A",
4
- "overhang": "GGAG"
5
- },
6
- {
7
- "name": "B",
8
- "overhang": "TACT"
9
- },
10
- {
11
- "name": "T1",
12
- "overhang": "CCAT"
13
- },
14
- {
15
- "name": "T2",
16
- "overhang": "GTCA"
17
- },
18
- {
19
- "name": "T3",
20
- "overhang": "TCCA"
21
- },
22
- {
23
- "name": "C",
24
- "overhang": "AATG"
25
- },
26
- {
27
- "name": "D",
28
- "overhang": "AGGT"
29
- },
30
- {
31
- "name": "T4",
32
- "overhang": "TTCG"
33
- },
34
- {
35
- "name": "T5",
36
- "overhang": "CGGC"
37
- },
38
- {
39
- "name": "E",
40
- "overhang": "GCTT"
41
- },
42
- {
43
- "name": "F",
44
- "overhang": "CGCT"
45
- },
46
- {
47
- "name": "backbone",
48
- "overhang": "GGAG"
49
- }
50
- ]
@@ -1,110 +0,0 @@
1
- [
2
- {
3
- "header": "Assembly connector",
4
- "body": "",
5
- "glyph": "three-prime-sticky-restriction-site",
6
- "left_overhang": "CCCT",
7
- "right_overhang": "AACG",
8
- "left_inside": "",
9
- "right_inside": "",
10
- "left_codon_start": null,
11
- "right_codon_start": null,
12
- "color": "#92C3DC"
13
- },
14
- {
15
- "header": "Promoter",
16
- "body": "",
17
- "glyph": "promoter",
18
- "left_overhang": "AACG",
19
- "right_overhang": "TATG",
20
- "left_inside": "",
21
- "right_inside": "",
22
- "left_codon_start": null,
23
- "right_codon_start": null,
24
- "color": "#B2D06E"
25
- },
26
- {
27
- "header": "Coding sequence",
28
- "body": "You can use the ATG from the fusion site as translation start. If possible omit STOP codon and make your protein in frame with the Ser.",
29
- "glyph": "cds",
30
- "left_overhang": "TATG",
31
- "right_overhang": "ATCC",
32
- "left_inside": "",
33
- "right_inside": "",
34
- "left_codon_start": 2,
35
- "right_codon_start": 2,
36
- "color": "#F1EC9B"
37
- },
38
- {
39
- "header": "Terminator",
40
- "body": "",
41
- "glyph": "terminator",
42
- "left_overhang": "ATCC",
43
- "right_overhang": "GCTG",
44
- "left_inside": "",
45
- "right_inside": "",
46
- "left_codon_start": null,
47
- "right_codon_start": null,
48
- "color": "#E2929E"
49
- },
50
- {
51
- "header": "Assembly connector",
52
- "body": "",
53
- "glyph": "three-prime-sticky-restriction-site",
54
- "left_overhang": "GCTG",
55
- "right_overhang": "TACA",
56
- "left_inside": "",
57
- "right_inside": "",
58
- "left_codon_start": null,
59
- "right_codon_start": null,
60
- "color": "#7C6AA9"
61
- },
62
- {
63
- "header": "Yeast marker",
64
- "body": "",
65
- "glyph": "engineered-region",
66
- "left_overhang": "TACA",
67
- "right_overhang": "GAGT",
68
- "left_inside": "",
69
- "right_inside": "",
70
- "left_codon_start": null,
71
- "right_codon_start": null,
72
- "color": "#EFD198"
73
- },
74
- {
75
- "header": "Yeast plasmid origin of replication",
76
- "body": "",
77
- "glyph": "origin-of-replication",
78
- "left_overhang": "GAGT",
79
- "right_overhang": "CCGA",
80
- "left_inside": "",
81
- "right_inside": "",
82
- "left_codon_start": null,
83
- "right_codon_start": null,
84
- "color": "#85643E"
85
- },
86
- {
87
- "header": "Bacterial marker and origin",
88
- "body": "",
89
- "glyph": "engineered-region",
90
- "left_overhang": "CCGA",
91
- "right_overhang": "CCCT",
92
- "left_inside": "",
93
- "right_inside": "",
94
- "left_codon_start": null,
95
- "right_codon_start": null,
96
- "color": "#7F7F7F"
97
- },
98
- {
99
- "header": "Dummy",
100
- "body": "promoter text",
101
- "glyph": "cds-stop",
102
- "left_overhang": "CATG",
103
- "right_overhang": "TATG",
104
- "left_inside": "AAAATA",
105
- "right_inside": "AATG",
106
- "left_codon_start": 2,
107
- "right_codon_start": 1,
108
- "color": "greenyellow"
109
- }
110
- ]