ketcher-macromolecules 3.4.0-rc.2 → 3.4.0-rc.3

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 CHANGED
@@ -14,15 +14,18 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  /// <reference types="react" />
17
+ import { CoreEditor } from 'ketcher-core';
17
18
  import { EditorTheme } from "./theming/defaultTheme";
18
19
  import { DeepPartial } from './types';
19
20
  interface EditorProps {
20
21
  theme?: DeepPartial<EditorTheme>;
21
22
  togglerComponent?: JSX.Element;
22
23
  monomersLibraryUpdate?: string | JSON;
24
+ onInit?: (editor: CoreEditor) => void;
23
25
  }
24
26
  interface EditorContainerProps extends EditorProps {
25
- onInit?: () => void;
27
+ onInit?: (editor: CoreEditor) => void;
28
+ isMacromoleculesEditorTurnedOn?: boolean;
26
29
  }
27
- declare function EditorContainer({ onInit, theme, togglerComponent, monomersLibraryUpdate, }: EditorContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
30
+ declare function EditorContainer({ onInit, theme, togglerComponent, monomersLibraryUpdate, isMacromoleculesEditorTurnedOn, }: EditorContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
28
31
  export default EditorContainer;
@@ -10,12 +10,13 @@ interface ModalProps {
10
10
  modalWidth?: string;
11
11
  expanded?: boolean;
12
12
  setExpanded?: (boolean: any) => void;
13
+ testId?: string;
13
14
  }
14
15
  interface FooterProps {
15
16
  withborder?: string;
16
17
  }
17
18
  export declare const Modal: {
18
- ({ children, title, isOpen, showCloseButton, showExpandButton, onClose, className, modalWidth, expanded, setExpanded, }: ModalProps): import("@emotion/react/jsx-runtime").JSX.Element;
19
+ ({ children, title, isOpen, showCloseButton, showExpandButton, onClose, className, modalWidth, expanded, setExpanded, testId, }: ModalProps): import("@emotion/react/jsx-runtime").JSX.Element;
19
20
  Content: import("@emotion/styled").StyledComponent<import("@mui/material").DialogContentProps & {
20
21
  theme?: import("@emotion/react").Theme | undefined;
21
22
  }, {}, {}>;
@@ -6,6 +6,7 @@ export declare const RootSizeContext: import("react").Context<{
6
6
  declare type Props = {
7
7
  children: ReactNode;
8
8
  rootRef: RefObject<HTMLElement> | null;
9
+ isMacromoleculesEditorTurnedOn?: boolean;
9
10
  };
10
- export declare const RootSizeProvider: ({ children, rootRef }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const RootSizeProvider: ({ children, rootRef, isMacromoleculesEditorTurnedOn, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
11
12
  export {};