ketcher-react 2.15.0-rc.4 → 2.16.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 (37) hide show
  1. package/dist/components/Buttons/IconButton/IconButton.d.ts +1 -1
  2. package/dist/components/Buttons/IconButton/types.d.ts +2 -0
  3. package/dist/components/Icon/types.d.ts +2 -2
  4. package/dist/components/Icon/utils/iconNameToIcon.d.ts +2 -0
  5. package/dist/index.css +1 -1
  6. package/dist/index.css.map +1 -1
  7. package/dist/index.js +3048 -1867
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.modern.js +3048 -1867
  10. package/dist/index.modern.js.map +1 -1
  11. package/dist/script/editor/tool/paste.d.ts +2 -0
  12. package/dist/script/editor/tool/select.d.ts +3 -1
  13. package/dist/script/editor/tool/sgroup.d.ts +2 -1
  14. package/dist/script/editor/tool/template.d.ts +7 -12
  15. package/dist/script/editor/tool/templatePreview.d.ts +42 -0
  16. package/dist/script/ui/action/index.d.ts +6 -6
  17. package/dist/script/ui/action/tools.d.ts +6 -6
  18. package/dist/script/ui/component/cliparea/cliparea.d.ts +3 -2
  19. package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +2 -1
  20. package/dist/script/ui/component/form/Select/Select.d.ts +3 -1
  21. package/dist/script/ui/component/form/form/form.d.ts +3 -1
  22. package/dist/script/ui/data/convert/keynorm.d.ts +1 -0
  23. package/dist/script/ui/data/convert/structconv.d.ts +12 -0
  24. package/dist/script/ui/data/schema/struct-schema.d.ts +298 -180
  25. package/dist/script/ui/state/constants.d.ts +1 -0
  26. package/dist/script/ui/state/hotkeys.d.ts +3 -3
  27. package/dist/script/ui/state/hotkeys.test.d.ts +1 -0
  28. package/dist/script/ui/state/modal/atoms.d.ts +2 -2
  29. package/dist/script/ui/state/modal/form.d.ts +14 -5
  30. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +1 -0
  31. package/dist/script/ui/views/components/StructEditor/InfoTooltip.d.ts +23 -0
  32. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +2 -0
  33. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +2 -0
  34. package/dist/script/ui/views/modal/components/toolbox/Atom/AtomElement/AtomElement.d.ts +4 -0
  35. package/dist/script/ui/views/modal/components/toolbox/Atom/helper.d.ts +6 -0
  36. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +6 -3
  37. package/package.json +3 -3
@@ -15,5 +15,5 @@
15
15
  ***************************************************************************/
16
16
  /// <reference types="react" />
17
17
  import { IIconButtonProps } from './types';
18
- export declare const IconButton: ({ onClick, iconName, shortcut, title, className, isActive, isHidden, disabled, }: IIconButtonProps) => JSX.Element | null;
18
+ export declare const IconButton: ({ onClick, iconName, shortcut, title, className, isActive, isHidden, disabled, testId, }: IIconButtonProps) => JSX.Element | null;
19
19
  export default IconButton;
@@ -24,7 +24,9 @@ export interface IIconButtonProps {
24
24
  disabled?: boolean;
25
25
  isActive?: boolean;
26
26
  shortcut?: string;
27
+ testId?: string;
27
28
  }
28
29
  export interface IStyledButtonProps {
29
30
  isActive: boolean;
31
+ testId?: string;
30
32
  }
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- /// <reference types="react" />
17
16
  import { iconNameToIcon } from './utils/iconNameToIcon';
17
+ import { MouseEvent } from 'react';
18
18
  export declare type SvgComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
19
19
  title?: string | undefined;
20
20
  }>;
@@ -22,5 +22,5 @@ export declare type IconName = keyof typeof iconNameToIcon;
22
22
  export interface IIconProps {
23
23
  name: IconName;
24
24
  className?: string;
25
- onClick?: (e: React.MouseEvent<HTMLOrSVGElement, MouseEvent>) => void;
25
+ onClick?: (e: MouseEvent) => void;
26
26
  }
@@ -161,6 +161,7 @@ export declare const iconNameToIcon: {
161
161
  readonly 'template-7': ReactComponent;
162
162
  readonly 'template-dialog': ReactComponent;
163
163
  readonly 'template-lib': ReactComponent;
164
+ readonly 'snake-mode': ReactComponent;
164
165
  readonly text: ReactComponent;
165
166
  readonly 'text-bold': ReactComponent;
166
167
  readonly 'text-italic': ReactComponent;
@@ -211,4 +212,5 @@ export declare const iconNameToIcon: {
211
212
  readonly phosphate: ReactComponent;
212
213
  readonly preset: ReactComponent;
213
214
  readonly 'edit-filled': ReactComponent;
215
+ readonly 'vertical-dots': ReactComponent;
214
216
  };