ketcher-react 2.23.0-rc.1-dev.1 → 2.23.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/components/Icon/utils/iconNameToIcon.d.ts +2 -0
- package/dist/constants.d.ts +1 -1
- package/dist/contexts/appContext.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +929 -803
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +930 -805
- package/dist/index.modern.js.map +1 -1
- package/dist/script/builders/ketcher/KetcherBuilder.d.ts +4 -1
- package/dist/script/index.d.ts +4 -1
- package/dist/script/ui/App/initApp.d.ts +6 -2
- package/package.json +1 -1
|
@@ -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<
|
|
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 };
|
package/dist/script/index.d.ts
CHANGED
|
@@ -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<
|
|
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,
|
|
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 };
|