ketcher-react 3.3.0-rc.4 → 3.4.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.
Files changed (27) hide show
  1. package/dist/cjs/components/Icon/Icon.d.ts +1 -1
  2. package/dist/cjs/components/Icon/types.d.ts +2 -0
  3. package/dist/cjs/index.js +131 -59
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/{index.modern-272d0a6e.js → index.modern-a1a24bea.js} +11554 -9276
  6. package/dist/cjs/index.modern-a1a24bea.js.map +1 -0
  7. package/dist/cjs/script/ui/Portal/Portal.d.ts +1 -0
  8. package/dist/cjs/script/ui/component/view/savebutton.d.ts +1 -0
  9. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useMonomerExpansionHandlers.d.ts +2 -0
  10. package/dist/cjs/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +2 -1
  11. package/dist/cjs/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +2 -1
  12. package/dist/cjs/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +2 -1
  13. package/dist/components/Icon/Icon.d.ts +1 -1
  14. package/dist/components/Icon/types.d.ts +2 -0
  15. package/dist/index.js +132 -60
  16. package/dist/index.js.map +1 -1
  17. package/dist/{index.modern-f9073ecc.js → index.modern-e737524e.js} +11554 -9278
  18. package/dist/index.modern-e737524e.js.map +1 -0
  19. package/dist/script/ui/Portal/Portal.d.ts +1 -0
  20. package/dist/script/ui/component/view/savebutton.d.ts +1 -0
  21. package/dist/script/ui/views/components/ContextMenu/hooks/useMonomerExpansionHandlers.d.ts +2 -0
  22. package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +2 -1
  23. package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +2 -1
  24. package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +2 -1
  25. package/package.json +1 -1
  26. package/dist/cjs/index.modern-272d0a6e.js.map +0 -1
  27. package/dist/index.modern-f9073ecc.js.map +0 -1
@@ -19,6 +19,7 @@ interface PortalProps {
19
19
  className?: string;
20
20
  style?: CSSProperties;
21
21
  children: ReactNode;
22
+ testId?: string;
22
23
  }
23
24
  declare type Props = PortalProps;
24
25
  declare class Portal extends Component<Props> {
@@ -27,6 +27,7 @@ declare type Props = {
27
27
  className?: string;
28
28
  title?: string;
29
29
  disabled?: boolean;
30
+ testId?: string;
30
31
  };
31
32
  declare type SaveButtonProps = PropsWithChildren<Props>;
32
33
  declare const SaveButton: (props: SaveButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,6 @@
1
+ import { FunctionalGroup } from 'ketcher-core';
1
2
  import { ItemEventParams, MacromoleculeContextMenuProps } from '../contextMenu.types';
2
3
  declare type Params = ItemEventParams<MacromoleculeContextMenuProps>;
4
+ export declare const canExpandMonomer: (functionalGroup: FunctionalGroup) => boolean;
3
5
  declare const useMonomerExpansionHandlers: () => readonly [({ props }: Params, toExpand: boolean) => void, ({ props }: Params, toExpand: boolean) => boolean];
4
6
  export default useMonomerExpansionHandlers;
@@ -19,6 +19,7 @@ declare type Props = {
19
19
  label: string;
20
20
  styles: string;
21
21
  title?: string;
22
+ testId?: string;
22
23
  };
23
- export declare const DialogActionButton: ({ clickHandler, label, title, styles, disabled, }: Props) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const DialogActionButton: ({ clickHandler, label, title, styles, disabled, testId, }: Props) => import("react/jsx-runtime").JSX.Element;
24
25
  export {};
@@ -21,6 +21,7 @@ declare type FileDropProps = {
21
21
  iconName: IconName;
22
22
  disabled?: boolean;
23
23
  disabledText?: string;
24
+ testId?: string;
24
25
  } & DropzoneOptions;
25
- declare const FileDrop: ({ buttonLabel, textLabel, iconName, disabled, disabledText, ...rest }: FileDropProps) => import("react/jsx-runtime").JSX.Element;
26
+ declare const FileDrop: ({ buttonLabel, textLabel, iconName, disabled, disabledText, testId, ...rest }: FileDropProps) => import("react/jsx-runtime").JSX.Element;
26
27
  export { FileDrop };
@@ -17,5 +17,6 @@ export declare type TextEditorProps = {
17
17
  structStr: string;
18
18
  inputHandler: (str: string) => void;
19
19
  autoFocus?: boolean;
20
+ testId?: string;
20
21
  };
21
- export declare const TextEditor: ({ structStr, inputHandler, autoFocus, }: TextEditorProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const TextEditor: ({ structStr, inputHandler, autoFocus, testId, }: TextEditorProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "3.3.0-rc.4",
3
+ "version": "3.4.0-rc.2",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",