ketcher-react 2.25.0 → 2.26.0-rc.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 (51) hide show
  1. package/dist/components/Buttons/IconButton/IconButton.d.ts +1 -2
  2. package/dist/components/Buttons/IconButton/IconButtonBase.d.ts +17 -0
  3. package/dist/components/Buttons/IconButton/IconButtonCustomIcon.d.ts +17 -0
  4. package/dist/components/Buttons/IconButton/index.d.ts +1 -0
  5. package/dist/components/Buttons/IconButton/styles.d.ts +4 -0
  6. package/dist/components/Buttons/IconButton/types.d.ts +11 -3
  7. package/dist/components/Icon/utils/iconNameToIcon.d.ts +7 -1
  8. package/dist/components/MonomerPreview/AmbiguousMonomerPreview/AmbiguousMonomerPreview.d.ts +2 -4
  9. package/dist/constants.d.ts +20 -0
  10. package/dist/index.css +1 -1
  11. package/dist/index.css.map +1 -1
  12. package/dist/index.js +2047 -1399
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.js +2046 -1400
  15. package/dist/index.modern.js.map +1 -1
  16. package/dist/script/builders/ketcher/CustomButtons.d.ts +5 -0
  17. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +2 -1
  18. package/dist/script/editor/Editor.d.ts +4 -1
  19. package/dist/script/editor/tool/helper/dropAndMerge.d.ts +1 -1
  20. package/dist/script/editor/tool/select/index.d.ts +7 -0
  21. package/dist/script/editor/tool/{select.d.ts → select/select.d.ts} +7 -12
  22. package/dist/script/editor/tool/select/select.helpers.d.ts +17 -0
  23. package/dist/script/editor/tool/select/select.types.d.ts +1 -0
  24. package/dist/script/editor/tool/select/selectViewOnly.d.ts +14 -0
  25. package/dist/script/index.d.ts +3 -1
  26. package/dist/script/ui/action/action.types.d.ts +5 -4
  27. package/dist/script/ui/action/createCopyOfSelected.d.ts +14 -0
  28. package/dist/script/ui/action/fullscreen.d.ts +1 -0
  29. package/dist/script/ui/action/help.d.ts +1 -0
  30. package/dist/script/ui/action/highlightColors/HighlightColors.d.ts +6 -0
  31. package/dist/script/ui/action/highlightColors/style.d.ts +25 -0
  32. package/dist/script/ui/action/index.d.ts +19 -705
  33. package/dist/script/ui/action/server.d.ts +3 -0
  34. package/dist/script/ui/action/tools.d.ts +3 -0
  35. package/dist/script/ui/action/zoom.d.ts +4 -0
  36. package/dist/script/ui/component/view/savebutton.d.ts +2 -3
  37. package/dist/script/ui/state/options/index.d.ts +38 -2
  38. package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +7 -2
  39. package/dist/script/ui/views/components/ContextMenu/hooks/useChangeBondDirection.d.ts +3 -0
  40. package/dist/script/ui/views/components/ContextMenu/hooks/useMonomerExpansionHandlers.d.ts +4 -0
  41. package/dist/script/ui/views/components/ContextMenu/menuItems/MacromoleculeMenuItems.d.ts +3 -0
  42. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -0
  43. package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +1 -1
  44. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +2 -1
  45. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +2 -1
  46. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +2 -4
  47. package/dist/script/ui/views/toolbars/TopToolbar/CustomButtons.d.ts +8 -0
  48. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +1 -1
  49. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +3 -1
  50. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbarIconButton.d.ts +3 -0
  51. package/package.json +1 -1
@@ -1,705 +1,19 @@
1
- export * from "./action.types";
2
- export default config;
3
- declare const config: {
4
- help: {
5
- shortcut: string[];
6
- action: () => void | undefined;
7
- hidden: (options: any) => boolean;
8
- };
9
- fullscreen: {
10
- title: string;
11
- action: () => void;
12
- hidden: (options: any) => boolean;
13
- };
14
- 'functional-groups': {
15
- shortcut: string;
16
- title: string;
17
- action: {
18
- dialog: string;
19
- prop: {
20
- tab: number;
21
- };
22
- };
23
- selected: (editor: any) => boolean;
24
- disabled: (_: any, __: any, options: any) => boolean;
25
- hidden: (options: any) => boolean;
26
- };
27
- 'template-lib': {
28
- shortcut: string;
29
- title: string;
30
- action: {
31
- dialog: string;
32
- prop: {
33
- tab: null;
34
- };
35
- };
36
- selected: (editor: any) => boolean;
37
- disabled: (editor: any, server: any, options: any) => boolean;
38
- hidden: (options: any) => boolean;
39
- };
40
- zoom: {
41
- shortcut: string[];
42
- selected: (editor: any) => any;
43
- action: (editor: any) => void;
44
- hidden: (options: any) => boolean;
45
- };
46
- 'zoom-out': {
47
- shortcut: string[];
48
- title: string;
49
- disabled: (editor: any) => boolean;
50
- action: (event: any) => (editor: any) => void;
51
- hidden: (options: any) => boolean;
52
- };
53
- 'zoom-in': {
54
- shortcut: string[];
55
- title: string;
56
- disabled: (editor: any) => boolean;
57
- action: (event: any) => (editor: any) => void;
58
- hidden: (options: any) => boolean;
59
- };
60
- 'zoom-list': {
61
- hidden: (options: any) => boolean;
62
- };
63
- hand: {
64
- title: string;
65
- shortcut: string;
66
- action: {
67
- tool: string;
68
- };
69
- hidden: (options: any) => boolean;
70
- };
71
- 'select-rectangle': {
72
- title: string;
73
- shortcut: string[];
74
- action: {
75
- tool: string;
76
- opts: string;
77
- };
78
- hidden: (options: any) => boolean;
79
- };
80
- 'select-lasso': {
81
- title: string;
82
- shortcut: string[];
83
- action: {
84
- tool: string;
85
- opts: string;
86
- };
87
- };
88
- 'select-fragment': {
89
- title: string;
90
- shortcut: string[];
91
- action: {
92
- tool: string;
93
- opts: string;
94
- };
95
- hidden: (options: any) => boolean;
96
- };
97
- erase: {
98
- title: string;
99
- shortcut: string[];
100
- action: {
101
- tool: string;
102
- opts: number;
103
- };
104
- hidden: (options: any) => boolean;
105
- };
106
- chain: {
107
- title: string;
108
- action: {
109
- tool: string;
110
- };
111
- hidden: (options: any) => boolean;
112
- };
113
- 'enhanced-stereo': {
114
- shortcut: string;
115
- title: string;
116
- action: {
117
- tool: string;
118
- };
119
- disabled: (editor: any) => boolean;
120
- hidden: (options: any) => boolean;
121
- };
122
- 'charge-plus': {
123
- shortcut: string;
124
- title: string;
125
- action: {
126
- tool: string;
127
- opts: number;
128
- };
129
- hidden: (options: any) => boolean;
130
- };
131
- 'charge-minus': {
132
- shortcut: string;
133
- title: string;
134
- action: {
135
- tool: string;
136
- opts: number;
137
- };
138
- hidden: (options: any) => boolean;
139
- };
140
- 'transform-rotate': {
141
- title: string;
142
- action: {
143
- tool: string;
144
- };
145
- hidden: (options: any) => boolean;
146
- };
147
- 'transform-flip-h': {
148
- shortcut: string;
149
- title: string;
150
- action: {
151
- tool: string;
152
- opts: string;
153
- };
154
- disabled: typeof import("./flips").isFlipDisabled;
155
- hidden: (options: any) => boolean;
156
- };
157
- 'transform-flip-v': {
158
- shortcut: string;
159
- title: string;
160
- action: {
161
- tool: string;
162
- opts: string;
163
- };
164
- disabled: typeof import("./flips").isFlipDisabled;
165
- hidden: (options: any) => boolean;
166
- };
167
- sgroup: {
168
- shortcut: string;
169
- title: string;
170
- action: {
171
- tool: string;
172
- };
173
- hidden: (options: any) => boolean;
174
- };
175
- arrows: {
176
- hidden: (options: any) => boolean;
177
- };
178
- 'reaction-arrow-open-angle': {
179
- title: string;
180
- action: {
181
- tool: string;
182
- opts: import("ketcher-core").RxnArrowMode;
183
- };
184
- hidden: (options: any) => boolean;
185
- };
186
- 'reaction-arrow-filled-triangle': {
187
- title: string;
188
- action: {
189
- tool: string;
190
- opts: import("ketcher-core").RxnArrowMode;
191
- };
192
- hidden: (options: any) => boolean;
193
- };
194
- 'reaction-arrow-filled-bow': {
195
- title: string;
196
- action: {
197
- tool: string;
198
- opts: import("ketcher-core").RxnArrowMode;
199
- };
200
- hidden: (options: any) => boolean;
201
- };
202
- 'reaction-arrow-dashed-open-angle': {
203
- title: string;
204
- action: {
205
- tool: string;
206
- opts: import("ketcher-core").RxnArrowMode;
207
- };
208
- hidden: (options: any) => boolean;
209
- };
210
- 'reaction-arrow-failed': {
211
- title: string;
212
- action: {
213
- tool: string;
214
- opts: import("ketcher-core").RxnArrowMode;
215
- };
216
- hidden: (options: any) => boolean;
217
- };
218
- 'reaction-arrow-retrosynthetic': {
219
- title: string;
220
- action: {
221
- tool: string;
222
- opts: import("ketcher-core").RxnArrowMode;
223
- };
224
- hidden: (options: any) => boolean;
225
- };
226
- 'reaction-arrow-both-ends-filled-triangle': {
227
- title: string;
228
- action: {
229
- tool: string;
230
- opts: import("ketcher-core").RxnArrowMode;
231
- };
232
- hidden: (options: any) => boolean;
233
- };
234
- 'reaction-arrow-equilibrium-filled-half-bow': {
235
- title: string;
236
- action: {
237
- tool: string;
238
- opts: import("ketcher-core").RxnArrowMode;
239
- };
240
- hidden: (options: any) => boolean;
241
- };
242
- 'reaction-arrow-equilibrium-filled-triangle': {
243
- title: string;
244
- action: {
245
- tool: string;
246
- opts: import("ketcher-core").RxnArrowMode;
247
- };
248
- hidden: (options: any) => boolean;
249
- };
250
- 'reaction-arrow-equilibrium-open-angle': {
251
- title: string;
252
- action: {
253
- tool: string;
254
- opts: import("ketcher-core").RxnArrowMode;
255
- };
256
- hidden: (options: any) => boolean;
257
- };
258
- 'reaction-arrow-unbalanced-equilibrium-filled-half-bow': {
259
- title: string;
260
- action: {
261
- tool: string;
262
- opts: import("ketcher-core").RxnArrowMode;
263
- };
264
- hidden: (options: any) => boolean;
265
- };
266
- 'reaction-arrow-unbalanced-equilibrium-open-half-angle': {
267
- title: string;
268
- action: {
269
- tool: string;
270
- opts: import("ketcher-core").RxnArrowMode;
271
- };
272
- hidden: (options: any) => boolean;
273
- };
274
- 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow': {
275
- title: string;
276
- action: {
277
- tool: string;
278
- opts: import("ketcher-core").RxnArrowMode;
279
- };
280
- hidden: (options: any) => boolean;
281
- };
282
- 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle': {
283
- title: string;
284
- action: {
285
- tool: string;
286
- opts: import("ketcher-core").RxnArrowMode;
287
- };
288
- hidden: (options: any) => boolean;
289
- };
290
- 'reaction-arrow-elliptical-arc-arrow-filled-bow': {
291
- title: string;
292
- action: {
293
- tool: string;
294
- opts: import("ketcher-core").RxnArrowMode;
295
- };
296
- hidden: (options: any) => boolean;
297
- };
298
- 'reaction-arrow-elliptical-arc-arrow-filled-triangle': {
299
- title: string;
300
- action: {
301
- tool: string;
302
- opts: import("ketcher-core").RxnArrowMode;
303
- };
304
- hidden: (options: any) => boolean;
305
- };
306
- 'reaction-arrow-elliptical-arc-arrow-open-angle': {
307
- title: string;
308
- action: {
309
- tool: string;
310
- opts: import("ketcher-core").RxnArrowMode;
311
- };
312
- hidden: (options: any) => boolean;
313
- };
314
- 'reaction-arrow-elliptical-arc-arrow-open-half-angle': {
315
- title: string;
316
- action: {
317
- tool: string;
318
- opts: import("ketcher-core").RxnArrowMode;
319
- };
320
- hidden: (options: any) => boolean;
321
- };
322
- "reaction-arrow-multitail": {
323
- title: string;
324
- action: {
325
- tool: string;
326
- opts: string;
327
- };
328
- hidden: (options: any) => boolean;
329
- };
330
- 'reaction-plus': {
331
- title: string;
332
- action: {
333
- tool: string;
334
- };
335
- hidden: (options: any) => boolean;
336
- };
337
- 'reaction-mapping-tools': {
338
- hidden: (options: any) => boolean;
339
- };
340
- 'reaction-map': {
341
- title: string;
342
- action: {
343
- tool: string;
344
- };
345
- hidden: (options: any) => boolean;
346
- };
347
- 'reaction-unmap': {
348
- title: string;
349
- action: {
350
- tool: string;
351
- };
352
- hidden: (options: any) => boolean;
353
- };
354
- rgroup: {
355
- hidden: (options: any) => boolean;
356
- };
357
- 'rgroup-label': {
358
- shortcut: string;
359
- title: string;
360
- action: {
361
- tool: string;
362
- };
363
- hidden: (options: any) => boolean;
364
- };
365
- 'rgroup-fragment': {
366
- shortcut: string[];
367
- title: string;
368
- action: {
369
- tool: string;
370
- };
371
- hidden: (options: any) => boolean;
372
- };
373
- 'rgroup-attpoints': {
374
- shortcut: string;
375
- title: string;
376
- action: {
377
- tool: string;
378
- };
379
- hidden: (options: any) => boolean;
380
- };
381
- shapes: {
382
- hidden: (options: any) => boolean;
383
- };
384
- 'shape-ellipse': {
385
- title: string;
386
- action: {
387
- tool: string;
388
- opts: import("ketcher-core").SimpleObjectMode;
389
- };
390
- hidden: (options: any) => boolean;
391
- };
392
- 'shape-rectangle': {
393
- title: string;
394
- action: {
395
- tool: string;
396
- opts: import("ketcher-core").SimpleObjectMode;
397
- };
398
- hidden: (options: any) => boolean;
399
- };
400
- 'shape-line': {
401
- title: string;
402
- action: {
403
- tool: string;
404
- opts: import("ketcher-core").SimpleObjectMode;
405
- };
406
- hidden: (options: any) => boolean;
407
- };
408
- text: {
409
- shortcut: string;
410
- title: string;
411
- action: {
412
- tool: string;
413
- };
414
- hidden: (options: any) => boolean;
415
- };
416
- bonds: {
417
- hidden: (options: any) => boolean;
418
- };
419
- images: {
420
- title: string;
421
- action: {
422
- tool: string;
423
- };
424
- hidden: (options: any) => boolean;
425
- };
426
- 'force-update': {
427
- shortcut: string;
428
- action: (editor: any) => void;
429
- hidden: (options: any) => boolean;
430
- };
431
- 'qs-serialize': {
432
- shortcut: string;
433
- action: (editor: any) => void;
434
- };
435
- hidden: (options: any) => boolean;
436
- layout: {
437
- shortcut: string;
438
- title: string;
439
- action: {
440
- thunk: (dispatch: any, getState: any) => void;
441
- };
442
- disabled: (editor: any, server: any, options: any) => boolean;
443
- hidden: (options: any) => boolean;
444
- };
445
- clean: {
446
- shortcut: string;
447
- title: string;
448
- action: {
449
- thunk: (dispatch: any, getState: any) => void;
450
- };
451
- disabled: (editor: any, server: any, options: any) => boolean;
452
- hidden: (options: any) => boolean;
453
- };
454
- arom: {
455
- shortcut: string;
456
- title: string;
457
- action: {
458
- thunk: (dispatch: any, getState: any) => void;
459
- };
460
- disabled: (editor: any, server: any, options: any) => boolean;
461
- hidden: (options: any) => boolean;
462
- };
463
- dearom: {
464
- shortcut: string;
465
- title: string;
466
- action: {
467
- thunk: (dispatch: any, getState: any) => void;
468
- };
469
- disabled: (editor: any, server: any, options: any) => boolean;
470
- hidden: (options: any) => boolean;
471
- };
472
- cip: {
473
- shortcut: string;
474
- title: string;
475
- action: {
476
- thunk: (dispatch: any, getState: any) => void;
477
- };
478
- disabled: (editor: any, server: any, options: any) => boolean;
479
- hidden: (options: any) => boolean;
480
- };
481
- check: {
482
- shortcut: string;
483
- title: string;
484
- action: {
485
- dialog: string;
486
- };
487
- disabled: (editor: any, server: any, options: any) => boolean;
488
- hidden: (options: any) => boolean;
489
- };
490
- analyse: {
491
- shortcut: string;
492
- title: string;
493
- action: {
494
- dialog: string;
495
- };
496
- disabled: (editor: any, server: any, options: any) => boolean;
497
- hidden: (options: any) => boolean;
498
- };
499
- recognize: {
500
- title: string;
501
- action: {
502
- dialog: string;
503
- };
504
- disabled: (editor: any, server: any, options: any) => boolean;
505
- hidden: (options: any) => boolean;
506
- };
507
- miew: {
508
- title: string;
509
- action: {
510
- dialog: string;
511
- };
512
- hidden: (options: any) => boolean;
513
- };
514
- 'explicit-hydrogens': {
515
- title: string;
516
- action: {
517
- thunk: (dispatch: any, getState: any) => void;
518
- };
519
- disabled: (editor: any, server: any, options: any) => boolean;
520
- hidden: (options: any) => boolean;
521
- };
522
- clear: {
523
- shortcut: string[];
524
- title: string;
525
- action: {
526
- thunk: (dispatch: any, getState: any) => void;
527
- };
528
- hidden: (options: any) => boolean;
529
- };
530
- open: {
531
- shortcut: string;
532
- title: string;
533
- action: {
534
- dialog: string;
535
- };
536
- hidden: (options: any) => boolean;
537
- };
538
- save: {
539
- shortcut: string;
540
- title: string;
541
- action: {
542
- dialog: string;
543
- };
544
- hidden: (options: any) => boolean;
545
- };
546
- 'atom-props': {
547
- title: string;
548
- action: {
549
- dialog: string;
550
- };
551
- hidden: (options: any) => boolean;
552
- };
553
- 'bond-props': {
554
- title: string;
555
- action: {
556
- dialog: string;
557
- };
558
- hidden: (options: any) => boolean;
559
- };
560
- undo: {
561
- shortcut: string;
562
- title: string;
563
- action: (editor: any) => void;
564
- disabled: (editor: any) => boolean;
565
- hidden: (options: any) => boolean;
566
- };
567
- redo: {
568
- shortcut: string[];
569
- title: string;
570
- action: (editor: any) => void;
571
- disabled: (editor: any) => boolean;
572
- hidden: (options: any) => boolean;
573
- };
574
- cut: {
575
- shortcut: string;
576
- title: string;
577
- action: {
578
- thunk: (dispatch: any, _: any) => void;
579
- };
580
- disabled: (editor: any) => boolean;
581
- hidden: (options: any) => boolean;
582
- };
583
- copies: {
584
- disabled: (editor: any) => boolean;
585
- hidden: (options: any) => boolean;
586
- };
587
- copy: {
588
- shortcut: string;
589
- title: string;
590
- action: {
591
- thunk: (dispatch: any, _: any) => void;
592
- };
593
- disabled: (editor: any) => boolean;
594
- hidden: (options: any) => boolean;
595
- };
596
- 'copy-image': {
597
- shortcut: string;
598
- title: string;
599
- action: () => void;
600
- disabled: (editor: any) => boolean;
601
- hidden: (options: any) => boolean;
602
- };
603
- 'copy-mol': {
604
- shortcut: string;
605
- title: string;
606
- action: () => void;
607
- disabled: (editor: any) => boolean;
608
- hidden: (options: any) => boolean;
609
- };
610
- 'copy-ket': {
611
- shortcut: string;
612
- title: string;
613
- action: () => void;
614
- disabled: (editor: any) => boolean;
615
- hidden: (options: any) => boolean;
616
- };
617
- paste: {
618
- shortcut: string;
619
- title: string;
620
- action: {
621
- thunk: (dispatch: any, _: any) => void;
622
- };
623
- selected: ({ actions }: {
624
- actions: any;
625
- }) => any;
626
- hidden: (options: any) => boolean;
627
- };
628
- settings: {
629
- title: string;
630
- action: {
631
- dialog: string;
632
- };
633
- hidden: (options: any) => boolean;
634
- };
635
- about: {
636
- title: string;
637
- action: {
638
- dialog: string;
639
- };
640
- hidden: (options: any) => boolean;
641
- };
642
- 'reaction-automap': {
643
- title: string;
644
- action: {
645
- dialog: string;
646
- };
647
- hidden: (options: any) => boolean;
648
- disabled: (editor: any, server: any, options: any) => boolean;
649
- };
650
- 'period-table': {
651
- title: string;
652
- action: {
653
- dialog: string;
654
- };
655
- hidden: (options: any) => boolean;
656
- };
657
- 'extended-table': {
658
- title: string;
659
- action: {
660
- dialog: string;
661
- };
662
- hidden: (options: any) => boolean;
663
- };
664
- 'select-all': {
665
- title: string;
666
- shortcut: string;
667
- action: {
668
- thunk: (dispatch: any, getState: any) => void;
669
- };
670
- hidden: (options: any) => boolean;
671
- };
672
- 'deselect-all': {
673
- title: string;
674
- shortcut: string;
675
- action: (editor: any) => void;
676
- hidden: (options: any) => boolean;
677
- };
678
- 'select-descriptors': {
679
- title: string;
680
- shortcut: string;
681
- action: {
682
- thunk: (dispatch: any, getState: any) => void;
683
- };
684
- hidden: (options: any) => boolean;
685
- };
686
- 'any-atom': {
687
- title: string;
688
- action: {
689
- tool: string;
690
- opts: {
691
- label: string;
692
- pseudo: string;
693
- type: string;
694
- };
695
- };
696
- hidden: (options: any) => boolean;
697
- };
698
- 'info-modal': {
699
- title: string;
700
- action: {
701
- dialog: string;
702
- };
703
- hidden: (options: any) => boolean;
704
- };
705
- };
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { Tools } from './action.types';
17
+ export * from './action.types';
18
+ declare const configWithNonViewOnlyActionsDisabled: Tools;
19
+ export default configWithNonViewOnlyActionsDisabled;