diff --git a/example/src/App.tsx b/example/src/App.tsx index f4f5c37422..70ad7534cf 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -107,6 +107,7 @@ const App = () => { externalZoomScale: EXTERNAL_ZOOM_SCALE, }), ); + ketcher.editor.clearHistory(); window.ketcher = ketcher; window.parent.postMessage( { diff --git a/package-lock.json b/package-lock.json index 8439e2befd..fe6a430ea1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32083,7 +32083,7 @@ } }, "packages/ketcher-core": { - "version": "2.24.0-rc.1-unc31", + "version": "2.24.0-rc.1-unc32", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.9", @@ -33676,7 +33676,7 @@ } }, "packages/ketcher-react": { - "version": "2.24.0-rc.1-unc31", + "version": "2.24.0-rc.1-unc32", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.9", diff --git a/packages/ketcher-core/package.json b/packages/ketcher-core/package.json index df3cd15bf4..35b80b90f4 100644 --- a/packages/ketcher-core/package.json +++ b/packages/ketcher-core/package.json @@ -1,6 +1,6 @@ { "name": "ketcher-core", - "version": "2.24.0-rc.1-unc31", + "version": "2.24.0-rc.1-unc32", "description": "Web-based molecule sketcher", "license": "Apache-2.0", "homepage": "http://lifescience.opensource.epam.com/ketcher", diff --git a/packages/ketcher-core/src/application/editor/editor.types.ts b/packages/ketcher-core/src/application/editor/editor.types.ts index 0cd4df8194..c7bb371ce1 100644 --- a/packages/ketcher-core/src/application/editor/editor.types.ts +++ b/packages/ketcher-core/src/application/editor/editor.types.ts @@ -42,6 +42,7 @@ export interface Editor { clear: () => void; options: (value?: any) => any; setOptions: (opts: string) => any; + clearHistory: () => any; zoom: (value?: any) => any; structSelected: () => Struct; explicitSelected: () => EditorSelection; diff --git a/packages/ketcher-react/package.json b/packages/ketcher-react/package.json index 1feb67d59b..9cf1bfd840 100644 --- a/packages/ketcher-react/package.json +++ b/packages/ketcher-react/package.json @@ -1,6 +1,6 @@ { "name": "ketcher-react", - "version": "2.24.0-rc.1-unc31", + "version": "2.24.0-rc.1-unc32", "description": "Web-based molecule sketcher", "license": "Apache-2.0", "homepage": "http://lifescience.opensource.epam.com/ketcher",