ketcher-react 2.16.0-rc.4 → 2.17.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.
- package/dist/Editor.d.ts +1 -2
- package/dist/components/Accordion/Accordion.d.ts +1 -2
- package/dist/components/Buttons/Button/Button.d.ts +1 -2
- package/dist/components/Buttons/IconButton/IconButton.d.ts +1 -2
- package/dist/{script/ui/views/components → components}/Dialog/Dialog.d.ts +4 -4
- package/dist/{script/ui/views/components → components}/Dialog/index.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -2
- package/dist/components/Icon/utils/iconNameToIcon.d.ts +4 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/StructRender/StructRender.d.ts +1 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/constants.d.ts +0 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +2992 -2966
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3024 -2999
- package/dist/index.modern.js.map +1 -1
- package/dist/script/builders/ketcher/KetcherBuilder.d.ts +2 -1
- package/dist/script/editor/Editor.d.ts +5 -4
- package/dist/script/editor/HoverIcon.d.ts +1 -1
- package/dist/script/editor/tool/helper/dropAndMerge.d.ts +1 -1
- package/dist/script/editor/tool/select.d.ts +3 -1
- package/dist/script/editor/utils/structLayout.d.ts +1 -2
- package/dist/script/index.d.ts +4 -1
- package/dist/script/providers/index.d.ts +1 -0
- package/dist/script/providers/indigoProvider.d.ts +5 -0
- package/dist/script/ui/App/App.container.d.ts +3 -1
- package/dist/script/ui/App/App.d.ts +2 -1
- package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +1 -2
- package/dist/script/ui/App/AppHidden/AppHidden.d.ts +1 -2
- package/dist/script/ui/App/initApp.d.ts +2 -1
- package/dist/script/ui/action/atoms.d.ts +1 -1
- package/dist/script/ui/action/index.d.ts +3 -3
- package/dist/script/ui/action/templates.d.ts +1 -1
- package/dist/script/ui/action/tools.d.ts +1 -1
- package/dist/script/ui/action/zoom.d.ts +4 -4
- package/dist/script/ui/component/actionmenu.d.ts +1 -1
- package/dist/script/ui/component/cliparea/cliparea.d.ts +1 -1
- package/dist/script/ui/component/form/Input/Input.d.ts +1 -1
- package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +1 -1
- package/dist/script/ui/component/form/Select/Select.d.ts +2 -2
- package/dist/script/ui/component/form/buttonlist.d.ts +1 -1
- package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +1 -2
- package/dist/script/ui/component/form/combobox/combobox.d.ts +1 -1
- package/dist/script/ui/component/form/form/errorPopover.d.ts +1 -1
- package/dist/script/ui/component/form/form/form.d.ts +6 -6
- package/dist/script/ui/component/form/select-checkbox.d.ts +1 -1
- package/dist/script/ui/component/form/select-list.d.ts +1 -1
- package/dist/script/ui/component/form/systemfonts.d.ts +1 -1
- package/dist/script/ui/component/view/Atom/Atom.d.ts +1 -1
- package/dist/script/ui/component/view/Tabs/Tabs.d.ts +1 -1
- package/dist/script/ui/component/view/openbutton.d.ts +1 -1
- package/dist/script/ui/component/view/savebutton.d.ts +1 -1
- package/dist/script/ui/data/templates.d.ts +1 -1
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.container.d.ts +1 -2
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.d.ts +1 -2
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.test.utils.d.ts +3 -4
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.utils.d.ts +2 -3
- package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +1 -2
- package/dist/script/ui/dialog/template/template-attach.d.ts +2 -2
- package/dist/script/ui/dialog/toolbox/SDataFieldset.d.ts +1 -1
- package/dist/script/ui/dialog/toolbox/SGroupFieldset.d.ts +1 -1
- package/dist/script/ui/dialog/toolbox/labeledit.d.ts +2 -2
- package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +2 -2
- package/dist/script/ui/dialog/toolbox/sgroup.d.ts +2 -2
- package/dist/script/ui/state/editor/index.d.ts +1 -0
- package/dist/script/ui/state/functionalGroups/index.d.ts +7 -0
- package/dist/script/ui/state/saltsAndSolvents/index.d.ts +7 -0
- package/dist/script/ui/state/shared.d.ts +9 -0
- package/dist/script/ui/views/components/Cursor.d.ts +1 -1
- package/dist/script/ui/views/components/Spinner/LoadingCircles.d.ts +1 -2
- package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +14 -2
- package/dist/script/ui/views/components/StructEditor/helpers.d.ts +2 -3
- package/dist/script/ui/views/components/index.d.ts +1 -1
- package/dist/script/ui/views/modal/Modal.d.ts +1 -2
- package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +1 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +1 -1
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +2 -3
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +1 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +1 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +1 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/components/ButtonGenSet/ButtonGenSet.d.ts +1 -2
- package/dist/script/ui/views/modal/components/InfoModal/InfoModal.d.ts +1 -2
- package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +2 -2
- package/dist/script/ui/views/modal/components/PeriodTable/components/AtomInfo/AtomInfo.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/Header.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +1 -1
- package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +1 -2
- package/dist/script/ui/views/modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts +1 -2
- package/dist/script/ui/views/modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts +1 -2
- package/dist/script/ui/views/modal/components/Text/Text.d.ts +2 -3
- package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +1 -2
- package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +1 -2
- package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +1 -2
- package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +1 -2
- package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +1 -2
- package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +5 -5
- package/dist/script/ui/views/modal/components/meta/About/About.d.ts +1 -1
- package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -2
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Check/Check.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +1 -2
- package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +1 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/AtomElement/AtomElement.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +1 -2
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -2
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +1 -2
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +1 -2
- package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +1 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +1 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +1 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +1 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +1 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +1 -2
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +1 -2
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +1 -2
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +1 -2
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +1 -2
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +1 -2
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/Divider.d.ts +2 -3
- package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomInput.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +1 -2
- package/package.json +1 -1
- package/dist/script/ui/utils/optionsManager.d.ts +0 -10
- package/dist/script/ui/utils/settingsManager.d.ts +0 -25
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { Ketcher, ServiceMode, StructServiceProvider } from 'ketcher-core';
|
|
17
18
|
import { ButtonsConfig } from './ButtonsConfig';
|
|
18
19
|
import { Root } from 'react-dom/client';
|
|
@@ -24,7 +25,7 @@ declare class KetcherBuilder {
|
|
|
24
25
|
constructor();
|
|
25
26
|
appendApiAsync(structServiceProvider: StructServiceProvider): Promise<void>;
|
|
26
27
|
appendServiceMode(mode: ServiceMode): void;
|
|
27
|
-
appendUiAsync(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, errorHandler: (message: string) => void, buttons?: ButtonsConfig): Promise<void>;
|
|
28
|
+
appendUiAsync(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, errorHandler: (message: string) => void, buttons?: ButtonsConfig, togglerComponent?: JSX.Element): Promise<void>;
|
|
28
29
|
build(): Ketcher;
|
|
29
30
|
}
|
|
30
31
|
export { KetcherBuilder };
|
|
@@ -69,6 +69,7 @@ declare class Editor implements KetcherEditor {
|
|
|
69
69
|
updateFloatingTools: Subscription<FloatingToolsParams>;
|
|
70
70
|
};
|
|
71
71
|
lastEvent: any;
|
|
72
|
+
macromoleculeConvertionError: string | null | undefined;
|
|
72
73
|
constructor(clientArea: any, options: any);
|
|
73
74
|
isDitrty(): boolean;
|
|
74
75
|
setOrigin(): void;
|
|
@@ -79,14 +80,12 @@ declare class Editor implements KetcherEditor {
|
|
|
79
80
|
structToAddFragment(value: Struct): Struct;
|
|
80
81
|
setOptions(opts: string): false | import("ketcher-core/dist/application/render/render.types").RenderOptions;
|
|
81
82
|
options(value?: any): import("ketcher-core/dist/application/render/render.types").RenderOptions;
|
|
82
|
-
zoom(value?: any): number;
|
|
83
|
+
zoom(value?: any, event?: WheelEvent): number;
|
|
83
84
|
centerStruct(): void;
|
|
84
85
|
zoomAccordingContent(struct: Struct): void;
|
|
85
86
|
selection(ci?: any): Selection | null;
|
|
86
87
|
hover(ci: any, newTool?: any, event?: PointerEvent): void;
|
|
87
|
-
update(action: Action | true, ignoreHistory?: boolean
|
|
88
|
-
resizeCanvas: boolean;
|
|
89
|
-
}): void;
|
|
88
|
+
update(action: Action | true, ignoreHistory?: boolean): void;
|
|
90
89
|
historySize(): {
|
|
91
90
|
undo: any;
|
|
92
91
|
redo: number;
|
|
@@ -106,6 +105,8 @@ declare class Editor implements KetcherEditor {
|
|
|
106
105
|
explicitSelected(): any;
|
|
107
106
|
structSelected(): Struct;
|
|
108
107
|
alignDescriptors(): void;
|
|
108
|
+
setMacromoleculeConvertionError(errorMessage: string): void;
|
|
109
|
+
clearMacromoleculeConvertionError(): void;
|
|
109
110
|
}
|
|
110
111
|
export { Editor };
|
|
111
112
|
export default Editor;
|
|
@@ -8,7 +8,7 @@ export declare class HoverIcon {
|
|
|
8
8
|
/**
|
|
9
9
|
Is required for the case, when mouse moved outside the canvas, then loading of structure
|
|
10
10
|
happens and icon needs to be shown above loader.
|
|
11
|
-
|
|
11
|
+
*/
|
|
12
12
|
shouldBeShownWhenMouseBack: boolean;
|
|
13
13
|
editor: Editor;
|
|
14
14
|
constructor(editor: Editor);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Action } from 'ketcher-core';
|
|
2
2
|
import Editor from '../../Editor';
|
|
3
|
-
export declare function dropAndMerge(editor: Editor, mergeItems: any, action?: Action
|
|
3
|
+
export declare function dropAndMerge(editor: Editor, mergeItems: any, action?: Action): Action;
|
|
@@ -34,7 +34,9 @@ declare class SelectTool implements Tool {
|
|
|
34
34
|
private selectElementsOnCanvas;
|
|
35
35
|
private isDraggingStructureOnSaltOrSolvent;
|
|
36
36
|
private updateArrowResizingState;
|
|
37
|
-
private
|
|
37
|
+
private isCloseToEdgeOfCanvas;
|
|
38
|
+
private handleMoveCloseToEdgeOfCanvas;
|
|
39
|
+
private moveViewBox;
|
|
38
40
|
}
|
|
39
41
|
export declare function selMerge(selection: any, add: any, reversible: boolean): any;
|
|
40
42
|
export declare function getSelectedAtoms(selection: any, molecule: any): Atom[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReStruct, Vec2 } from 'ketcher-core';
|
|
2
2
|
export declare function getSelectionMap(structure: ReStruct): {};
|
|
3
3
|
export declare function getStructCenter(ReStruct: any, selection?: any): Vec2;
|
|
4
|
-
export declare function recoordinate(editor: Editor, rp?: Vec2): void;
|
package/dist/script/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { Root } from 'react-dom/client';
|
|
17
18
|
import { ButtonsConfig } from './builders';
|
|
18
19
|
import { StructServiceProvider } from 'ketcher-core';
|
|
@@ -23,7 +24,9 @@ interface Config {
|
|
|
23
24
|
structServiceProvider: StructServiceProvider;
|
|
24
25
|
buttons?: ButtonsConfig;
|
|
25
26
|
errorHandler: (message: string) => void;
|
|
27
|
+
togglerComponent?: JSX.Element;
|
|
26
28
|
}
|
|
27
|
-
declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, structServiceProvider, buttons, errorHandler, }: Config): Promise<import("ketcher-core").Ketcher>;
|
|
29
|
+
declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, structServiceProvider, buttons, errorHandler, togglerComponent, }: Config): Promise<import("ketcher-core").Ketcher>;
|
|
28
30
|
export type { Config, ButtonsConfig };
|
|
31
|
+
export * from './providers';
|
|
29
32
|
export default buildKetcherAsync;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './indigoProvider';
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
/// <reference types="react" />
|
|
17
17
|
import { AppCallProps } from './App';
|
|
18
|
-
declare const AppContainer: import("react-redux").ConnectedComponent<(props: AppCallProps) => JSX.Element, import("react-redux").Omit<AppCallProps, "checkServer"
|
|
18
|
+
declare const AppContainer: import("react-redux").ConnectedComponent<(props: AppCallProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<AppCallProps, "checkServer" | "togglerComponent"> & {
|
|
19
|
+
togglerComponent?: JSX.Element | undefined;
|
|
20
|
+
}>;
|
|
19
21
|
export { AppContainer };
|
|
20
22
|
export default AppContainer;
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
/// <reference types="react" />
|
|
17
17
|
interface AppCallProps {
|
|
18
18
|
checkServer: () => void;
|
|
19
|
+
togglerComponent?: JSX.Element;
|
|
19
20
|
}
|
|
20
21
|
declare type Props = AppCallProps;
|
|
21
|
-
declare const App: (props: Props) => JSX.Element;
|
|
22
|
+
declare const App: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export type { AppCallProps };
|
|
23
24
|
export { App };
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
import { AppHiddenCallProps } from './AppHidden';
|
|
18
|
-
declare const AppHiddenContainer: import("react-redux").ConnectedComponent<(props: AppHiddenCallProps) => JSX.Element, import("react-redux").Omit<AppHiddenCallProps, "onInitTmpls">>;
|
|
17
|
+
declare const AppHiddenContainer: import("react-redux").ConnectedComponent<(props: AppHiddenCallProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<AppHiddenCallProps, "onInitTmpls">>;
|
|
19
18
|
export { AppHiddenContainer };
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
interface AppHiddenCallProps {
|
|
18
17
|
onInitTmpls: (cacheEl: any, url: any) => void;
|
|
19
18
|
}
|
|
20
19
|
declare type Props = AppHiddenCallProps;
|
|
21
|
-
declare const AppHidden: (props: Props) => JSX.Element;
|
|
20
|
+
declare const AppHidden: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export type { AppHiddenCallProps };
|
|
23
22
|
export { AppHidden };
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { StructService } from 'ketcher-core';
|
|
17
18
|
import { Root } from 'react-dom/client';
|
|
18
|
-
declare function initApp(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, options: any, server: StructService, setEditor: (editor: any) => void): void;
|
|
19
|
+
declare function initApp(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, options: any, server: StructService, setEditor: (editor: any) => void, togglerComponent?: JSX.Element): void;
|
|
19
20
|
export { initApp };
|
|
@@ -40,21 +40,21 @@ declare const config: {
|
|
|
40
40
|
zoom: {
|
|
41
41
|
shortcut: string[];
|
|
42
42
|
selected: (editor: any) => any;
|
|
43
|
-
action: (editor: any) =>
|
|
43
|
+
action: (editor: any) => void;
|
|
44
44
|
hidden: (options: any) => boolean;
|
|
45
45
|
};
|
|
46
46
|
'zoom-out': {
|
|
47
47
|
shortcut: string[];
|
|
48
48
|
title: string;
|
|
49
49
|
disabled: (editor: any) => boolean;
|
|
50
|
-
action: (editor: any) => void;
|
|
50
|
+
action: (event: any) => (editor: any) => void;
|
|
51
51
|
hidden: (options: any) => boolean;
|
|
52
52
|
};
|
|
53
53
|
'zoom-in': {
|
|
54
54
|
shortcut: string[];
|
|
55
55
|
title: string;
|
|
56
56
|
disabled: (editor: any) => boolean;
|
|
57
|
-
action: (editor: any) => void;
|
|
57
|
+
action: (event: any) => (editor: any) => void;
|
|
58
58
|
hidden: (options: any) => boolean;
|
|
59
59
|
};
|
|
60
60
|
'zoom-list': {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export const zoomList: number[];
|
|
2
|
-
declare
|
|
2
|
+
declare const _default: {
|
|
3
3
|
zoom: {
|
|
4
4
|
shortcut: string[];
|
|
5
5
|
selected: (editor: any) => any;
|
|
6
|
-
action: (editor: any) =>
|
|
6
|
+
action: (editor: any) => void;
|
|
7
7
|
hidden: (options: any) => boolean;
|
|
8
8
|
};
|
|
9
9
|
'zoom-out': {
|
|
10
10
|
shortcut: string[];
|
|
11
11
|
title: string;
|
|
12
12
|
disabled: (editor: any) => boolean;
|
|
13
|
-
action: (editor: any) => void;
|
|
13
|
+
action: (event: any) => (editor: any) => void;
|
|
14
14
|
hidden: (options: any) => boolean;
|
|
15
15
|
};
|
|
16
16
|
'zoom-in': {
|
|
17
17
|
shortcut: string[];
|
|
18
18
|
title: string;
|
|
19
19
|
disabled: (editor: any) => boolean;
|
|
20
|
-
action: (editor: any) => void;
|
|
20
|
+
action: (event: any) => (editor: any) => void;
|
|
21
21
|
hidden: (options: any) => boolean;
|
|
22
22
|
};
|
|
23
23
|
'zoom-list': {
|
|
@@ -17,6 +17,6 @@ declare class ClipArea extends Component<any, any, any> {
|
|
|
17
17
|
} | undefined;
|
|
18
18
|
shouldComponentUpdate(): boolean;
|
|
19
19
|
componentWillUnmount(): void;
|
|
20
|
-
render(): JSX.Element;
|
|
20
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
import { Component } from "react";
|
|
@@ -35,7 +35,7 @@ export declare function GenericInput({ schema, value, onChange, innerRef, type,
|
|
|
35
35
|
innerRef: any;
|
|
36
36
|
type?: string | undefined;
|
|
37
37
|
isFocused?: boolean | undefined;
|
|
38
|
-
}): JSX.Element;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
export declare namespace GenericInput {
|
|
40
40
|
var val: (ev: any, schema: any) => any;
|
|
41
41
|
}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
export interface Option {
|
|
18
17
|
value: string;
|
|
19
18
|
label: string;
|
|
@@ -27,6 +26,7 @@ interface Props {
|
|
|
27
26
|
disabled?: boolean;
|
|
28
27
|
formName?: string;
|
|
29
28
|
name?: string;
|
|
29
|
+
'data-testid'?: string;
|
|
30
30
|
}
|
|
31
|
-
declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, }: Props) => JSX.Element;
|
|
31
|
+
declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, "data-testid": testId, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export default Select;
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
interface ColorPickerProps {
|
|
18
17
|
value: string;
|
|
19
18
|
name: string;
|
|
@@ -24,5 +23,5 @@ interface ColorPickerCallProps {
|
|
|
24
23
|
onChange: (value: string) => void;
|
|
25
24
|
}
|
|
26
25
|
declare type Props = ColorPickerProps & ColorPickerCallProps;
|
|
27
|
-
declare const ColorPicker: (props: Props) => JSX.Element;
|
|
26
|
+
declare const ColorPicker: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
export default ColorPicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof Form, import("react-redux").Omit<any, "onUpdate">>;
|
|
2
2
|
export default _default;
|
|
3
3
|
declare class Form extends Component<any, any, any> {
|
|
4
4
|
constructor(props: any);
|
|
@@ -18,10 +18,10 @@ declare class Form extends Component<any, any, any> {
|
|
|
18
18
|
value: any;
|
|
19
19
|
onChange: (val: any) => void;
|
|
20
20
|
};
|
|
21
|
-
render(): JSX.Element;
|
|
21
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
}
|
|
23
|
-
export function Field(props: any): JSX.Element;
|
|
24
|
-
export function CustomQueryField(props: any): JSX.Element;
|
|
25
|
-
export function FieldWithModal(props: any): JSX.Element;
|
|
26
|
-
export function SelectOneOf(props: any): JSX.Element;
|
|
23
|
+
export function Field(props: any): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export function CustomQueryField(props: any): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export function FieldWithModal(props: any): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export function SelectOneOf(props: any): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
import { Component } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default SystemFonts;
|
|
2
|
-
declare function SystemFonts(props: any): JSX.Element;
|
|
2
|
+
declare function SystemFonts(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ declare class OpenButton extends Component<any, any, any> {
|
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
state: {};
|
|
5
5
|
open(ev: any): void;
|
|
6
|
-
render(): JSX.Element;
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
btn: HTMLInputElement | null | undefined;
|
|
8
8
|
}
|
|
9
9
|
import { Component } from "react";
|
|
@@ -30,5 +30,5 @@ declare type Props = {
|
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
};
|
|
32
32
|
declare type SaveButtonProps = PropsWithChildren<Props>;
|
|
33
|
-
declare const SaveButton: (props: SaveButtonProps) => JSX.Element;
|
|
33
|
+
declare const SaveButton: (props: SaveButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
export { SaveButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("ketcher-core").Struct[];
|
|
2
2
|
export default _default;
|
|
@@ -13,5 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
17
|
-
export declare const AbbreviationLookupContainer: () => JSX.Element | null;
|
|
16
|
+
export declare const AbbreviationLookupContainer: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
import { AbbreviationOption } from './AbbreviationLookup.types';
|
|
18
17
|
interface Props {
|
|
19
18
|
options: AbbreviationOption[];
|
|
20
19
|
}
|
|
21
|
-
export declare const AbbreviationLookup: ({ options }: Props) => JSX.Element;
|
|
20
|
+
export declare const AbbreviationLookup: ({ options }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AbbreviationGenericOption, AbbreviationOption, AbbreviationType } from './AbbreviationLookup.types';
|
|
3
|
-
export declare const createGenericOption: (name: string, abbreviation?: string
|
|
4
|
-
export declare const createOption: (name: string, abbreviation?: string
|
|
2
|
+
export declare const createGenericOption: (name: string, abbreviation?: string, type?: AbbreviationType) => AbbreviationGenericOption;
|
|
3
|
+
export declare const createOption: (name: string, abbreviation?: string, type?: AbbreviationType) => AbbreviationOption;
|
|
5
4
|
export declare const CLIP_AREA_TEST_ID = "cliparea";
|
|
6
5
|
export declare const KetcherWrapper: ({ children }: {
|
|
7
6
|
children: any;
|
|
8
|
-
}) => JSX.Element;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
import { AbbreviationGenericOption, AbbreviationOption } from './AbbreviationLookup.types';
|
|
18
17
|
import { FilterOptionsState } from '@mui/material';
|
|
19
|
-
export declare const getStringsSimilarity: (loweredText?: string
|
|
20
|
-
export declare const highlightOptionLabel: (option: AbbreviationGenericOption, initialLoweredValue: string) => string | JSX.Element;
|
|
18
|
+
export declare const getStringsSimilarity: (loweredText?: string, loweredSubString?: string) => number;
|
|
19
|
+
export declare const highlightOptionLabel: (option: AbbreviationGenericOption, initialLoweredValue: string) => string | import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
export declare const getOptionLabel: (option: AbbreviationGenericOption) => string;
|
|
22
21
|
export declare const getSimilarity: (option: AbbreviationGenericOption, loweredLookupValue: string) => number;
|
|
23
22
|
export declare const filterOptions: (options: AbbreviationOption[], state: FilterOptionsState<AbbreviationOption>) => AbbreviationOption[];
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
/// <reference types="react" />
|
|
17
16
|
declare const EmptySearchResult: ({ textInfo }: {
|
|
18
17
|
textInfo: any;
|
|
19
|
-
}) => JSX.Element;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
export default EmptySearchResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof Attach, import("react-redux").Omit<import("react").ClassAttributes<Attach> & {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
onInit: any;
|
|
4
4
|
}, string | number>>;
|
|
@@ -28,6 +28,6 @@ declare class Attach extends Component<any, any, any> {
|
|
|
28
28
|
};
|
|
29
29
|
} | null;
|
|
30
30
|
checkIsValidName(name: any): boolean;
|
|
31
|
-
render(): JSX.Element;
|
|
31
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
}
|
|
33
33
|
import { Component } from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof LabelEdit, import("react-redux").Omit<any, "formState" | "dispatch">>;
|
|
2
2
|
export default _default;
|
|
3
|
-
declare function LabelEdit(props: any): JSX.Element;
|
|
3
|
+
declare function LabelEdit(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof RGroup, import("react-redux").Omit<{
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
disabledIds: any;
|
|
4
4
|
values: any;
|
|
@@ -12,4 +12,4 @@ declare function RGroup({ disabledIds, values, formState, type, ...props }: {
|
|
|
12
12
|
values: any;
|
|
13
13
|
formState: any;
|
|
14
14
|
type: any;
|
|
15
|
-
}): JSX.Element;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof Sgroup, import("react-redux").Omit<{
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
formState: any;
|
|
4
4
|
}, "formState" | "dispatch">>;
|
|
@@ -6,4 +6,4 @@ export default _default;
|
|
|
6
6
|
declare function Sgroup({ formState, ...props }: {
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
formState: any;
|
|
9
|
-
}): JSX.Element;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,4 +24,5 @@ export default function initEditor(dispatch: any, getState: any): {
|
|
|
24
24
|
onUpdateFloatingTools: (...args: any[]) => void;
|
|
25
25
|
onZoomIn: import("lodash").DebouncedFunc<() => any>;
|
|
26
26
|
onZoomOut: import("lodash").DebouncedFunc<() => any>;
|
|
27
|
+
onShowMacromoleculesErrorMessage: (payload: any) => any;
|
|
27
28
|
};
|
|
@@ -14,12 +14,19 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { AnyAction } from 'redux';
|
|
17
|
+
import { SdfItem } from 'ketcher-core';
|
|
17
18
|
interface FGState {
|
|
18
19
|
lib: [];
|
|
19
20
|
functionalGroupInfo: any;
|
|
20
21
|
mode: string;
|
|
21
22
|
}
|
|
22
23
|
declare const functionalGroupsReducer: (state: FGState | undefined, { type, payload }: AnyAction) => any;
|
|
24
|
+
export declare const initFGroups: (lib: SdfItem[]) => {
|
|
25
|
+
type: string;
|
|
26
|
+
payload: {
|
|
27
|
+
lib: SdfItem[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
23
30
|
export declare const highlightFG: (...args: any[]) => void;
|
|
24
31
|
export declare function initFGTemplates(): (dispatch: any) => Promise<void>;
|
|
25
32
|
export default functionalGroupsReducer;
|
|
@@ -14,10 +14,17 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { AnyAction } from 'redux';
|
|
17
|
+
import { SdfItem } from 'ketcher-core';
|
|
17
18
|
interface SaltsAndSolventsState {
|
|
18
19
|
lib: [];
|
|
19
20
|
mode: string;
|
|
20
21
|
}
|
|
21
22
|
declare const saltsAndSolventsReducer: (state: SaltsAndSolventsState | undefined, { type, payload }: AnyAction) => any;
|
|
23
|
+
export declare const initSaltsAndSolvents: (lib: SdfItem[]) => {
|
|
24
|
+
type: string;
|
|
25
|
+
payload: {
|
|
26
|
+
lib: SdfItem[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
22
29
|
export declare function initSaltsAndSolventsTemplates(): (dispatch: any) => Promise<void>;
|
|
23
30
|
export default saltsAndSolventsReducer;
|
|
@@ -30,3 +30,12 @@ export declare function openInfoModal(command: 'Paste' | 'Copy' | 'Cut'): {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
export declare function openInfoModalWithCustomMessage(message: string): {
|
|
34
|
+
type: 'MODAL_OPEN';
|
|
35
|
+
data: {
|
|
36
|
+
name: 'info-modal';
|
|
37
|
+
prop: {
|
|
38
|
+
customText: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|