ketcher-react 2.22.0-rc.7 → 2.23.0-rc.1

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.
@@ -25,7 +25,10 @@ declare class KetcherBuilder {
25
25
  constructor();
26
26
  appendApiAsync(structServiceProvider: StructServiceProvider): Promise<void>;
27
27
  appendServiceMode(mode: ServiceMode): void;
28
- appendUiAsync(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, errorHandler: (message: string) => void, buttons?: ButtonsConfig, togglerComponent?: JSX.Element): Promise<void>;
28
+ appendUiAsync(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, errorHandler: (message: string) => void, buttons?: ButtonsConfig, togglerComponent?: JSX.Element): Promise<{
29
+ setKetcher: (ketcher: Ketcher) => void;
30
+ ketcherId: string;
31
+ }>;
29
32
  build(): Ketcher | undefined;
30
33
  }
31
34
  export { KetcherBuilder };
@@ -110,6 +110,7 @@ declare class Editor implements KetcherEditor {
110
110
  alignDescriptors(): void;
111
111
  setMacromoleculeConvertionError(errorMessage: string): void;
112
112
  clearMacromoleculeConvertionError(): void;
113
+ focusCliparea(): void;
113
114
  }
114
115
  export { Editor };
115
116
  export default Editor;
@@ -26,7 +26,10 @@ interface Config {
26
26
  errorHandler: (message: string) => void;
27
27
  togglerComponent?: JSX.Element;
28
28
  }
29
- declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, structServiceProvider, buttons, errorHandler, togglerComponent, }: Config): Promise<import("ketcher-core").Ketcher | undefined>;
29
+ declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, structServiceProvider, buttons, errorHandler, togglerComponent, }: Config): Promise<{
30
+ ketcher: import("ketcher-core").Ketcher | undefined;
31
+ ketcherId: string;
32
+ }>;
30
33
  export type { Config, ButtonsConfig };
31
34
  export * from './providers';
32
35
  export default buildKetcherAsync;
@@ -14,7 +14,11 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  /// <reference types="react" />
17
- import { StructService } from 'ketcher-core';
17
+ import { Ketcher, StructService } from 'ketcher-core';
18
18
  import { Root } from 'react-dom/client';
19
- declare function initApp(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, options: any, server: StructService, setEditor: (editor: any) => void, togglerComponent?: JSX.Element): void;
19
+ declare function initApp(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, options: any, server: StructService, resolve: (args: {
20
+ editor: any;
21
+ setKetcher: (ketcher: Ketcher) => void;
22
+ ketcherId: string;
23
+ }) => void, togglerComponent?: JSX.Element): void;
20
24
  export { initApp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "2.22.0-rc.7",
3
+ "version": "2.23.0-rc.1",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",