ketcher-react 3.5.0-rc.3 → 3.5.0-rc.4
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 -1
- package/dist/MicromoleculesEditor.d.ts +1 -0
- package/dist/cjs/Editor.d.ts +1 -1
- package/dist/cjs/MicromoleculesEditor.d.ts +1 -0
- package/dist/cjs/components/StructRender/types.d.ts +1 -2
- package/dist/cjs/contexts/appContext.d.ts +1 -2
- package/dist/cjs/index.js +618 -564
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{index.modern-c9d28966.js → index.modern-2314b276.js} +66 -40
- package/dist/cjs/index.modern-2314b276.js.map +1 -0
- package/dist/cjs/script/builders/ketcher/ButtonName.d.ts +1 -1
- package/dist/cjs/script/builders/ketcher/KetcherBuilder.d.ts +4 -7
- package/dist/cjs/script/editor/Editor.d.ts +2 -1
- package/dist/cjs/script/editor/tool/arrow/arrow.types.d.ts +1 -4
- package/dist/cjs/script/editor/tool/arrow/multitailArrowMoveTool.d.ts +1 -1
- package/dist/cjs/script/editor/tool/arrow/reactionArrowMoveTool.d.ts +1 -1
- package/dist/cjs/script/index.d.ts +5 -5
- package/dist/cjs/script/ui/App/initApp.d.ts +2 -4
- package/dist/cjs/script/ui/dialog/template/template-attach.d.ts +2 -0
- package/dist/cjs/script/ui/state/hotkeys.d.ts +1 -1
- package/dist/cjs/script/ui/views/components/ContextMenu/ContextMenuTrigger.utils.d.ts +2 -2
- package/dist/cjs/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +8 -8
- package/dist/cjs/script/ui/views/modal/Modal.container.d.ts +2 -2
- package/dist/cjs/script/ui/views/modal/Modal.d.ts +2 -2
- package/dist/cjs/script/ui/views/modal/modal.types.d.ts +4 -1
- package/dist/cjs/script/ui/views/toolbars/toolbar.types.d.ts +1 -1
- package/dist/components/StructRender/types.d.ts +1 -2
- package/dist/contexts/appContext.d.ts +1 -2
- package/dist/index.js +620 -566
- package/dist/index.js.map +1 -1
- package/dist/{index.modern-cfbb3cc4.js → index.modern-723c68e1.js} +65 -39
- package/dist/index.modern-723c68e1.js.map +1 -0
- package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
- package/dist/script/builders/ketcher/KetcherBuilder.d.ts +4 -7
- package/dist/script/editor/Editor.d.ts +2 -1
- package/dist/script/editor/tool/arrow/arrow.types.d.ts +1 -4
- package/dist/script/editor/tool/arrow/multitailArrowMoveTool.d.ts +1 -1
- package/dist/script/editor/tool/arrow/reactionArrowMoveTool.d.ts +1 -1
- package/dist/script/index.d.ts +5 -5
- package/dist/script/ui/App/initApp.d.ts +2 -4
- package/dist/script/ui/dialog/template/template-attach.d.ts +2 -0
- package/dist/script/ui/state/hotkeys.d.ts +1 -1
- package/dist/script/ui/views/components/ContextMenu/ContextMenuTrigger.utils.d.ts +2 -2
- package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +8 -8
- package/dist/script/ui/views/modal/Modal.container.d.ts +2 -2
- package/dist/script/ui/views/modal/Modal.d.ts +2 -2
- package/dist/script/ui/views/modal/modal.types.d.ts +4 -1
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index.modern-c9d28966.js.map +0 -1
- package/dist/index.modern-cfbb3cc4.js.map +0 -1
package/dist/Editor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorProps } from './MicromoleculesEditor';
|
|
2
|
-
declare type Props = EditorProps & {
|
|
2
|
+
declare type Props = Omit<EditorProps, 'ketcherId'> & {
|
|
3
3
|
disableMacromoleculesEditor?: boolean;
|
|
4
4
|
};
|
|
5
5
|
export declare const Editor: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,6 +23,7 @@ import { Config } from './script';
|
|
|
23
23
|
import { Ketcher } from 'ketcher-core';
|
|
24
24
|
export interface EditorProps extends Omit<Config, 'element' | 'appRoot'> {
|
|
25
25
|
onInit?: (ketcher: Ketcher) => void;
|
|
26
|
+
onSetKetcherId?: (ketcherId: string) => void;
|
|
26
27
|
}
|
|
27
28
|
declare function MicromoleculesEditor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export { MicromoleculesEditor };
|
package/dist/cjs/Editor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorProps } from './MicromoleculesEditor';
|
|
2
|
-
declare type Props = EditorProps & {
|
|
2
|
+
declare type Props = Omit<EditorProps, 'ketcherId'> & {
|
|
3
3
|
disableMacromoleculesEditor?: boolean;
|
|
4
4
|
};
|
|
5
5
|
export declare const Editor: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,6 +23,7 @@ import { Config } from './script';
|
|
|
23
23
|
import { Ketcher } from 'ketcher-core';
|
|
24
24
|
export interface EditorProps extends Omit<Config, 'element' | 'appRoot'> {
|
|
25
25
|
onInit?: (ketcher: Ketcher) => void;
|
|
26
|
+
onSetKetcherId?: (ketcherId: string) => void;
|
|
26
27
|
}
|
|
27
28
|
declare function MicromoleculesEditor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export { MicromoleculesEditor };
|
|
@@ -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
|
-
import { RenderOptions } from '
|
|
17
|
-
import { Struct } from 'ketcher-core';
|
|
16
|
+
import { Struct, RenderOptions } from 'ketcher-core';
|
|
18
17
|
interface CasheOptions {
|
|
19
18
|
cachePrefix?: string;
|
|
20
19
|
needCache?: boolean;
|
|
@@ -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
|
-
import { Ketcher } from 'ketcher-core';
|
|
17
16
|
import React from 'react';
|
|
18
17
|
export interface IAppContext {
|
|
19
|
-
getKetcherInstance: () => Ketcher;
|
|
20
18
|
ketcherId: string;
|
|
19
|
+
prevKetcherId: string;
|
|
21
20
|
}
|
|
22
21
|
declare const appContext: React.Context<IAppContext>;
|
|
23
22
|
export default appContext;
|