ketcher-react 2.2.0 → 2.3.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.
Files changed (200) hide show
  1. package/LICENSE +1 -1
  2. package/dist/Editor.d.ts +3 -0
  3. package/dist/contexts/appContext.d.ts +6 -0
  4. package/dist/contexts/index.d.ts +3 -2
  5. package/dist/hooks/index.d.ts +1 -0
  6. package/dist/hooks/useAppContext.d.ts +1 -0
  7. package/dist/hooks/useResizeObserver.d.ts +1 -1
  8. package/dist/hooks/useSettingsContext.d.ts +1 -1
  9. package/dist/index.css +3 -2
  10. package/dist/index.css.map +1 -1
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +16256 -21706
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.js +16169 -21618
  15. package/dist/index.modern.js.map +1 -1
  16. package/dist/script/api.d.ts +2 -2
  17. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +1 -1
  18. package/dist/script/editor/Editor.d.ts +11 -4
  19. package/dist/script/editor/actions/bond.d.ts +24 -24
  20. package/dist/script/editor/actions/reaction.d.ts +1 -1
  21. package/dist/script/editor/actions/text.d.ts +6 -0
  22. package/dist/script/editor/actions/utils.d.ts +1 -2
  23. package/dist/script/editor/operations/CanvasLoad.d.ts +1 -1
  24. package/dist/script/editor/operations/EnhancedFlagMove.d.ts +1 -1
  25. package/dist/script/editor/operations/FragmentStereoFlag.d.ts +3 -5
  26. package/dist/script/editor/operations/LoopMove.d.ts +1 -1
  27. package/dist/script/editor/operations/OperationType.d.ts +5 -0
  28. package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +41 -0
  29. package/dist/script/{chem/struct/simpleObject.d.ts → editor/operations/Text/TextMove.d.ts} +12 -15
  30. package/dist/script/{util/pool.d.ts → editor/operations/Text/TextUpdate.d.ts} +14 -10
  31. package/dist/script/editor/operations/Text/index.d.ts +3 -0
  32. package/dist/script/editor/operations/atom/AtomAttr.d.ts +1 -1
  33. package/dist/script/editor/operations/atom/AtomMove.d.ts +1 -1
  34. package/dist/script/editor/operations/base.d.ts +2 -2
  35. package/dist/script/editor/operations/bond/BondAttr.d.ts +1 -1
  36. package/dist/script/editor/operations/bond/BondMove.d.ts +1 -1
  37. package/dist/script/editor/operations/bond/index.d.ts +15 -0
  38. package/dist/script/{util/pile.d.ts → editor/operations/calcimplicitH.d.ts} +8 -10
  39. package/dist/script/editor/operations/fragment.d.ts +1 -1
  40. package/dist/script/editor/operations/fragmentStereoAtom.d.ts +1 -1
  41. package/dist/script/editor/operations/index.d.ts +2 -0
  42. package/dist/script/editor/operations/rxn/index.d.ts +18 -1
  43. package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +1 -1
  44. package/dist/script/editor/operations/sgroup/index.d.ts +1 -1
  45. package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -2
  46. package/dist/script/editor/operations/simpleObject.d.ts +9 -11
  47. package/dist/script/editor/shared/action.d.ts +2 -2
  48. package/dist/script/editor/shared/utils.d.ts +2 -2
  49. package/dist/script/editor/tool/attach.d.ts +4 -1
  50. package/dist/script/editor/tool/enhanced-stereo.d.ts +2 -1
  51. package/dist/script/editor/tool/helper/lasso.d.ts +3 -0
  52. package/dist/script/editor/tool/helper/locate.d.ts +2 -0
  53. package/dist/script/editor/tool/index.d.ts +2 -0
  54. package/dist/script/editor/tool/reactionarrow.d.ts +4 -4
  55. package/dist/script/editor/tool/rotate.d.ts +1 -1
  56. package/dist/script/editor/tool/text.d.ts +27 -0
  57. package/dist/script/editor/utils/elementOffset.d.ts +1 -1
  58. package/dist/script/index.d.ts +1 -1
  59. package/dist/script/ketcher.d.ts +1 -2
  60. package/dist/script/render/draw.d.ts +13 -7
  61. package/dist/script/render/index.d.ts +5 -5
  62. package/dist/script/render/restruct/GeneralEnumTypes.d.ts +35 -0
  63. package/dist/script/render/restruct/ReEnhancedFlag.d.ts +28 -0
  64. package/dist/script/render/restruct/ReObject.d.ts +32 -0
  65. package/dist/script/render/restruct/ReSimpleObject.d.ts +40 -0
  66. package/dist/script/render/restruct/ReStruct.d.ts +110 -0
  67. package/dist/script/render/restruct/ReText.d.ts +38 -0
  68. package/dist/script/render/restruct/index.d.ts +5 -84
  69. package/dist/script/render/restruct/reatom.d.ts +41 -17
  70. package/dist/script/render/restruct/rebond.d.ts +36 -26
  71. package/dist/script/render/restruct/redatasgroupdata.d.ts +3 -7
  72. package/dist/script/render/restruct/refrag.d.ts +3 -7
  73. package/dist/script/render/restruct/reloop.d.ts +4 -8
  74. package/dist/script/render/restruct/rergroup.d.ts +4 -7
  75. package/dist/script/render/restruct/rerxnarrow.d.ts +3 -7
  76. package/dist/script/render/restruct/rerxnplus.d.ts +3 -7
  77. package/dist/script/render/restruct/resgroup.d.ts +3 -6
  78. package/dist/script/render/restruct/visel.d.ts +1 -2
  79. package/dist/script/render/util.d.ts +1 -1
  80. package/dist/script/ui/action/action.types.d.ts +1 -1
  81. package/dist/script/ui/action/atoms.d.ts +1 -1
  82. package/dist/script/ui/action/debug.d.ts +2 -2
  83. package/dist/script/ui/action/index.d.ts +392 -2
  84. package/dist/script/ui/action/templates.d.ts +10 -1
  85. package/dist/script/ui/action/tools.d.ts +16 -1
  86. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +12 -0
  87. package/dist/script/{chem/molfile/molfile.test.d.ts → ui/component/form/colorPicker/ColorPicker.test.d.ts} +0 -0
  88. package/dist/script/ui/component/view/savebutton.d.ts +1 -5
  89. package/dist/script/ui/data/convert/structConverter.d.ts +3 -3
  90. package/dist/script/ui/data/convert/structconv.d.ts +6 -4
  91. package/dist/script/ui/data/schema/options-schema.d.ts +25 -167
  92. package/dist/script/ui/data/schema/struct-schema.d.ts +20 -2
  93. package/dist/script/ui/data/templates.d.ts +1 -1
  94. package/dist/script/ui/dialog/index.d.ts +43 -7
  95. package/dist/script/ui/dialog/template/TemplateLib.d.ts +1 -1
  96. package/dist/script/ui/dialog/template/TemplateTable.d.ts +1 -1
  97. package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +2 -0
  98. package/dist/script/ui/state/constants.d.ts +7 -0
  99. package/dist/script/ui/state/editor/index.d.ts +1 -2
  100. package/dist/script/ui/state/modal/form.d.ts +10 -2
  101. package/dist/script/ui/state/options/index.d.ts +4 -3
  102. package/dist/script/ui/state/shared.d.ts +1 -1
  103. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +6 -8
  104. package/dist/script/ui/views/components/Dialog/index.d.ts +1 -1
  105. package/dist/script/ui/views/components/index.d.ts +1 -2
  106. package/dist/script/ui/views/modal/Modal.d.ts +4 -7
  107. package/dist/script/{format/chemGraph/toGraph/simpleObjectToGraph.d.ts → ui/views/modal/components/Text/Text.d.ts} +4 -5
  108. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +14 -0
  109. package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +1 -0
  110. package/dist/script/{util/scale.d.ts → ui/views/modal/components/Text/index.d.ts} +2 -8
  111. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +18 -0
  112. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +24 -2
  113. package/dist/script/ui/views/modal/components/document/Open/index.d.ts +1 -1
  114. package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +4 -0
  115. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +16 -1
  116. package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +35 -13
  117. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +20 -0
  118. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +36 -0
  119. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +6 -0
  120. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
  121. package/dist/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
  122. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +20 -0
  123. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +24 -0
  124. package/dist/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
  125. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +20 -0
  126. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +32 -0
  127. package/dist/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
  128. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +20 -0
  129. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +10 -0
  130. package/dist/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
  131. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +20 -0
  132. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +28 -0
  133. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +19 -0
  134. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
  135. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
  136. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
  137. package/dist/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
  138. package/dist/script/ui/views/modal/modal.types.d.ts +28 -0
  139. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +2 -1
  140. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +1 -1
  141. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +15 -1
  142. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +15 -0
  143. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +15 -0
  144. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -1
  145. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
  146. package/package.json +7 -3
  147. package/dist/script/chem/element-color.d.ts +0 -2
  148. package/dist/script/chem/element.d.ts +0 -57
  149. package/dist/script/chem/generics.d.ts +0 -5
  150. package/dist/script/chem/molfile/common.d.ts +0 -34
  151. package/dist/script/chem/molfile/index.d.ts +0 -10
  152. package/dist/script/chem/molfile/molfile.d.ts +0 -47
  153. package/dist/script/chem/molfile/molfileFormat.d.ts +0 -1
  154. package/dist/script/chem/molfile/parseSGroup.d.ts +0 -42
  155. package/dist/script/chem/molfile/utils.d.ts +0 -66
  156. package/dist/script/chem/molfile/v2000.d.ts +0 -10
  157. package/dist/script/chem/molfile/v3000.d.ts +0 -10
  158. package/dist/script/chem/sdf.d.ts +0 -10
  159. package/dist/script/chem/smiles/cis_trans.d.ts +0 -25
  160. package/dist/script/chem/smiles/dfs.d.ts +0 -53
  161. package/dist/script/chem/smiles/index.d.ts +0 -5
  162. package/dist/script/chem/smiles/stereocenters.d.ts +0 -26
  163. package/dist/script/chem/struct/atom.d.ts +0 -66
  164. package/dist/script/chem/struct/atomlist.d.ts +0 -10
  165. package/dist/script/chem/struct/bond.d.ts +0 -72
  166. package/dist/script/chem/struct/fragment.d.ts +0 -50
  167. package/dist/script/chem/struct/index.d.ts +0 -137
  168. package/dist/script/chem/struct/rgroup.d.ts +0 -19
  169. package/dist/script/chem/struct/sgforest.d.ts +0 -42
  170. package/dist/script/chem/struct/sgroup.d.ts +0 -68
  171. package/dist/script/format/chemGraph/convertStruct.d.ts +0 -2
  172. package/dist/script/format/chemGraph/fromGraph/moleculeToStruct.d.ts +0 -10
  173. package/dist/script/format/chemGraph/fromGraph/rgroupToStruct.d.ts +0 -3
  174. package/dist/script/format/chemGraph/fromGraph/rxnToStruct.d.ts +0 -1
  175. package/dist/script/format/chemGraph/fromGraph/simpleObjectToStruct.d.ts +0 -1
  176. package/dist/script/format/chemGraph/index.d.ts +0 -13
  177. package/dist/script/format/chemGraph/toGraph/headerToGraph.d.ts +0 -1
  178. package/dist/script/format/chemGraph/toGraph/moleculeToGraph.d.ts +0 -4
  179. package/dist/script/format/chemGraph/toGraph/prepare.d.ts +0 -14
  180. package/dist/script/format/chemGraph/toGraph/rgroupToGraph.d.ts +0 -5
  181. package/dist/script/format/chemGraph/toGraph/rxnToGraph.d.ts +0 -10
  182. package/dist/script/format/graphValidator.d.ts +0 -1
  183. package/dist/script/format/schemes/moleculeSchema.d.ts +0 -596
  184. package/dist/script/format/schemes/rgroupSchema.d.ts +0 -60
  185. package/dist/script/format/schemes/rootSchema.d.ts +0 -102
  186. package/dist/script/format/schemes/rxnSchemas.d.ts +0 -58
  187. package/dist/script/format/schemes/simpleObjectSchema.d.ts +0 -45
  188. package/dist/script/format/utils.d.ts +0 -1
  189. package/dist/script/render/restruct/reenhancedflag.d.ts +0 -15
  190. package/dist/script/render/restruct/reobject.d.ts +0 -15
  191. package/dist/script/render/restruct/resimpleobject.d.ts +0 -23
  192. package/dist/script/ui/dialog/toolbox/atom.d.ts +0 -2
  193. package/dist/script/ui/dialog/toolbox/attach.d.ts +0 -2
  194. package/dist/script/ui/dialog/toolbox/automap.d.ts +0 -18
  195. package/dist/script/ui/dialog/toolbox/bond.d.ts +0 -2
  196. package/dist/script/ui/dialog/toolbox/enhanced-stereo.d.ts +0 -2
  197. package/dist/script/ui/dialog/toolbox/rgroup-logic.d.ts +0 -2
  198. package/dist/script/util/banner.d.ts +0 -0
  199. package/dist/script/util/box2abs.d.ts +0 -23
  200. package/dist/script/util/vec2.d.ts +0 -75
@@ -1,68 +0,0 @@
1
- export default SGroup;
2
- declare function SGroup(type: any): void;
3
- declare class SGroup {
4
- constructor(type: any);
5
- type: any;
6
- id: number;
7
- label: number;
8
- bracketBox: any;
9
- bracketDir: Vec2;
10
- areas: any[];
11
- highlight: boolean;
12
- highlighting: any;
13
- selected: boolean;
14
- selectionPlate: any;
15
- atoms: any[];
16
- patoms: any[];
17
- bonds: any[];
18
- xBonds: any[];
19
- neiAtoms: any[];
20
- pp: any;
21
- data: {
22
- mul: number;
23
- connectivity: string;
24
- name: string;
25
- subscript: string;
26
- attached: boolean;
27
- absolute: boolean;
28
- showUnits: boolean;
29
- nCharsToDisplay: number;
30
- tagChar: string;
31
- daspPos: number;
32
- fieldType: string;
33
- fieldName: string;
34
- fieldValue: string;
35
- units: string;
36
- query: string;
37
- queryOp: string;
38
- };
39
- getAttr(attr: any): any;
40
- getAttrs(): {};
41
- setAttr(attr: any, value: any): any;
42
- checkAttr(attr: any, value: any): boolean;
43
- }
44
- declare namespace SGroup {
45
- namespace TYPES {
46
- const MUL: number;
47
- const SRU: number;
48
- const SUP: number;
49
- const DAT: number;
50
- const GEN: number;
51
- }
52
- function filterAtoms(atoms: any, map: any): any[];
53
- function removeNegative(atoms: any): any[];
54
- function filter(mol: any, sg: any, atomMap: any): void;
55
- function clone(sgroup: any, aidMap: any): SGroup;
56
- function addAtom(sgroup: any, aid: any): void;
57
- function removeAtom(sgroup: any, aid: any): void;
58
- function getCrossBonds(inBonds: any, xBonds: any, mol: any, parentAtomSet: any): void;
59
- function bracketPos(sg: any, mol: any, xbonds: any): void;
60
- function getBracketParameters(mol: any, xbonds: any, atomSet: any, bb: any, d: any, n: any): any[];
61
- function getObjBBox(atoms: any, mol: any): Box2Abs;
62
- function getAtoms(mol: any, sg: any): any;
63
- function getBonds(mol: any, sg: any): any[];
64
- function prepareMulForSaving(sgroup: any, mol: any): void;
65
- function getMassCentre(mol: any, atoms: any): Vec2;
66
- }
67
- import Vec2 from "../../util/vec2";
68
- import Box2Abs from "../../util/box2abs";
@@ -1,2 +0,0 @@
1
- export function fromRlabel(rg: any): number[];
2
- export function toRlabel(values: any): number;
@@ -1,10 +0,0 @@
1
- export function moleculeToStruct(graphItem: any): Struct;
2
- export function atomToStruct(source: any): Atom;
3
- export function rglabelToStruct(source: any): Atom;
4
- export function atomListToStruct(source: any): Atom;
5
- export function bondToStruct(source: any): Bond;
6
- export function sgroupToStruct(source: any): SGroup;
7
- import Struct from "../../../chem/struct";
8
- import { Atom } from "../../../chem/struct";
9
- import { Bond } from "../../../chem/struct";
10
- import { SGroup } from "../../../chem/struct";
@@ -1,3 +0,0 @@
1
- export function rgroupToStruct(graphItem: any): import("../../../chem/struct").default;
2
- export function rgroupLogicToStruct(rglogic: any): RGroup;
3
- import RGroup from "../../../chem/struct/rgroup";
@@ -1 +0,0 @@
1
- export function rxnToStruct(graphItem: any, struct: any): any;
@@ -1 +0,0 @@
1
- export declare function simpleObjectToStruct(graphItem: any, struct: any): any;
@@ -1,13 +0,0 @@
1
- declare namespace _default {
2
- export { toGraph };
3
- export { fromGraph };
4
- }
5
- export default _default;
6
- /**
7
- * @param {import('ketcher-core').Struct} struct
8
- * @returns {import('ketcher-core').Graph} */
9
- declare function toGraph(struct: import('ketcher-core').Struct): import('ketcher-core').Graph;
10
- /**
11
- * @param {import('ketcher-core').Graph} graph
12
- * @returns {import('ketcher-core').Struct} */
13
- declare function fromGraph(graph: import('ketcher-core').Graph): import('ketcher-core').Struct;
@@ -1 +0,0 @@
1
- export function headerToGraph(struct: any): {} | null;
@@ -1,4 +0,0 @@
1
- export function moleculeToGraph(struct: any): {
2
- atoms: {}[];
3
- type: string;
4
- };
@@ -1,14 +0,0 @@
1
- export function prepareStructForGraph(struct: any): ({
2
- type: string;
3
- fragment: any;
4
- center: any;
5
- data: {
6
- rgnumber: any;
7
- rgroup: any;
8
- };
9
- } | {
10
- type: string;
11
- fragment: any;
12
- center: any;
13
- data?: undefined;
14
- })[];
@@ -1,5 +0,0 @@
1
- export function rgroupToGraph(struct: any, data: any): {
2
- type: string;
3
- atoms: {}[];
4
- rlogic: {};
5
- };
@@ -1,10 +0,0 @@
1
- export function arrowToGraph(arrowNode: any): {
2
- type: string;
3
- location: any[];
4
- prop: any;
5
- };
6
- export function plusToGraph(plusNode: any): {
7
- type: string;
8
- location: any[];
9
- prop: any;
10
- };
@@ -1 +0,0 @@
1
- export default function validate(graph: any): void;