ketcher-react 3.3.0-rc.3 → 3.4.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.
Files changed (25) 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 +103 -49
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/{index.modern-17804972.js → index.modern-a314d918.js} +11656 -9411
  6. package/dist/cjs/index.modern-a314d918.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/modal/components/document/Open/components/DialogActionButton.d.ts +2 -1
  10. package/dist/cjs/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +2 -1
  11. package/dist/cjs/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +2 -1
  12. package/dist/components/Icon/Icon.d.ts +1 -1
  13. package/dist/components/Icon/types.d.ts +2 -0
  14. package/dist/index.js +104 -50
  15. package/dist/index.js.map +1 -1
  16. package/dist/{index.modern-e64950b9.js → index.modern-ac2ddbd4.js} +11656 -9413
  17. package/dist/index.modern-ac2ddbd4.js.map +1 -0
  18. package/dist/script/ui/Portal/Portal.d.ts +1 -0
  19. package/dist/script/ui/component/view/savebutton.d.ts +1 -0
  20. package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +2 -1
  21. package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +2 -1
  22. package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +2 -1
  23. package/package.json +1 -1
  24. package/dist/cjs/index.modern-17804972.js.map +0 -1
  25. package/dist/index.modern-e64950b9.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;
@@ -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;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { IIconProps } from './types';
17
- declare const Icon: ({ name, className, onClick }: IIconProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const Icon: ({ name, className, title, onClick, dataTestId }: IIconProps) => import("react/jsx-runtime").JSX.Element;
18
18
  export default Icon;
@@ -22,5 +22,7 @@ export declare type IconName = keyof typeof iconNameToIcon;
22
22
  export interface IIconProps {
23
23
  name: IconName;
24
24
  className?: string;
25
+ title?: string;
25
26
  onClick?: (e: MouseEvent) => void;
27
+ dataTestId?: string;
26
28
  }