ketcher-react 3.7.0-rc.1 → 3.7.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 (35) hide show
  1. package/dist/cjs/constants.d.ts +2 -2
  2. package/dist/cjs/index.css +1 -1
  3. package/dist/cjs/index.css.map +1 -1
  4. package/dist/cjs/index.js +263 -108
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/{index.modern-5eda67eb.js → index.modern-c52e0e6a.js} +636 -210
  7. package/dist/cjs/index.modern-c52e0e6a.js.map +1 -0
  8. package/dist/cjs/script/editor/Editor.d.ts +1 -1
  9. package/dist/cjs/script/editor/tool/create-monomer.d.ts +1 -0
  10. package/dist/cjs/script/index.d.ts +2 -0
  11. package/dist/cjs/script/ui/component/form/Select/Select.d.ts +2 -1
  12. package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.constants.d.ts +5 -0
  13. package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +5 -1
  14. package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/NaturalAnaloguePicker/NaturalAnaloguePicker.d.ts +1 -0
  15. package/dist/cjs/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +4 -3
  16. package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +2 -2
  17. package/dist/constants.d.ts +2 -2
  18. package/dist/index.css +1 -1
  19. package/dist/index.css.map +1 -1
  20. package/dist/index.js +254 -106
  21. package/dist/index.js.map +1 -1
  22. package/dist/{index.modern-eab54238.js → index.modern-43985e95.js} +637 -211
  23. package/dist/index.modern-43985e95.js.map +1 -0
  24. package/dist/script/editor/Editor.d.ts +1 -1
  25. package/dist/script/editor/tool/create-monomer.d.ts +1 -0
  26. package/dist/script/index.d.ts +2 -0
  27. package/dist/script/ui/component/form/Select/Select.d.ts +2 -1
  28. package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.constants.d.ts +5 -0
  29. package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +5 -1
  30. package/dist/script/ui/views/components/MonomerCreationWizard/components/NaturalAnaloguePicker/NaturalAnaloguePicker.d.ts +1 -0
  31. package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +4 -3
  32. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +2 -2
  33. package/package.json +1 -1
  34. package/dist/cjs/index.modern-5eda67eb.js.map +0 -1
  35. package/dist/index.modern-eab54238.js.map +0 -1
@@ -131,7 +131,7 @@ declare class Editor implements KetcherEditor {
131
131
  atoms: Map<any, any>;
132
132
  atomToFunctionalGroup: Map<any, any>;
133
133
  };
134
- explicitSelected(): any;
134
+ explicitSelected(autoSelectBonds?: boolean): any;
135
135
  structSelected(): Struct;
136
136
  alignDescriptors(): void;
137
137
  setMacromoleculeConvertionError(errorMessage: string): void;
@@ -4,5 +4,6 @@ declare class CreateMonomerTool implements Tool {
4
4
  private editor;
5
5
  constructor(editor: Editor);
6
6
  cancel(): void;
7
+ mousemove(): void;
7
8
  }
8
9
  export default CreateMonomerTool;
@@ -38,3 +38,5 @@ declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, struc
38
38
  setServer: (structService: import("ketcher-core").StructService) => void;
39
39
  }>;
40
40
  export default buildKetcherAsync;
41
+ export * from './ui/views/toolbars/ArrowScroll';
42
+ export * from './ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle';
@@ -30,6 +30,7 @@ interface Props {
30
30
  name?: string;
31
31
  placeholder?: string;
32
32
  'data-testid'?: string;
33
+ error?: boolean;
33
34
  }
34
- declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, placeholder, "data-testid": testId, }: Props) => import("react/jsx-runtime").JSX.Element;
35
+ declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, placeholder, "data-testid": testId, error, }: Props) => import("react/jsx-runtime").JSX.Element;
35
36
  export default Select;
@@ -0,0 +1,5 @@
1
+ import { MonomerTypeSelectItem, WizardNotificationMessageMap, WizardNotificationTypeMap } from './MonomerCreationWizard.types';
2
+ export declare const MonomerTypeSelectConfig: MonomerTypeSelectItem[];
3
+ export declare const NotificationMessages: WizardNotificationMessageMap;
4
+ export declare const NotificationTypes: WizardNotificationTypeMap;
5
+ export declare const MonomerCreationExternalNotificationAction = "MonomerCreationExternalNotification";
@@ -13,7 +13,8 @@ export declare type WizardValues = {
13
13
  [key in StringWizardFormFieldId]: string;
14
14
  };
15
15
  export declare type WizardNotificationType = 'info' | 'error';
16
- export declare type WizardNotificationId = 'defaultAttachmentPoints' | 'emptyMandatoryFields' | 'invalidSymbol' | 'symbolExists';
16
+ export declare type WizardNotificationId = 'defaultAttachmentPoints' | 'emptyMandatoryFields' | 'invalidSymbol' | 'symbolExists' | 'editingIsNotAllowed';
17
+ export declare type WizardNotificationTypeMap = Record<WizardNotificationId, WizardNotificationType>;
17
18
  export declare type WizardNotificationMessageMap = Record<WizardNotificationId, string>;
18
19
  export declare type WizardNotification = {
19
20
  type: WizardNotificationType;
@@ -40,6 +41,9 @@ export declare type WizardAction = {
40
41
  } | {
41
42
  type: 'SetNotifications';
42
43
  notifications: WizardNotifications;
44
+ } | {
45
+ type: 'AddNotification';
46
+ id: WizardNotificationId;
43
47
  } | {
44
48
  type: 'RemoveNotification';
45
49
  id: WizardNotificationId;
@@ -5,6 +5,7 @@ interface ChipGridSelectProps {
5
5
  value: string;
6
6
  onChange: (value: string) => void;
7
7
  className?: string;
8
+ error?: boolean;
8
9
  }
9
10
  export declare const isNaturalAnalogueRequired: (monomerType: KetMonomerClass | undefined) => boolean;
10
11
  declare const NaturalAnaloguePicker: FC<ChipGridSelectProps>;
@@ -16,8 +16,9 @@
16
16
  interface ArrowScrollProps {
17
17
  startInView: boolean;
18
18
  endInView: boolean;
19
- scrollUp: any;
20
- scrollDown: any;
19
+ scrollForward: any;
20
+ scrollBack: any;
21
+ isLeftRight?: boolean;
21
22
  }
22
- declare const ArrowScroll: ({ startInView, endInView, scrollUp, scrollDown, }: ArrowScrollProps) => import("react/jsx-runtime").JSX.Element;
23
+ declare const ArrowScroll: ({ startInView, endInView, scrollForward, scrollBack, isLeftRight, }: ArrowScrollProps) => import("react/jsx-runtime").JSX.Element;
23
24
  export { ArrowScroll };
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { CSSProperties, RefObject } from 'react';
17
- declare type HookParams = [RefObject<HTMLDivElement>, boolean];
18
- declare function usePortalStyle([ref, isOpen]: HookParams): [CSSProperties];
17
+ declare type HookParams = [RefObject<HTMLDivElement>, boolean, boolean?, string?];
18
+ declare function usePortalStyle([ref, isOpen, isTop, rootElementSelector,]: HookParams): [CSSProperties];
19
19
  export { usePortalStyle };
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ import { KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR, EditorClassName } from 'ketcher-core';
16
17
  export declare const ketcherInitEventName: (ketcherId?: string) => string;
17
18
  export declare const MODES: {
18
19
  FG: string;
@@ -23,8 +24,7 @@ export declare const STRUCT_TYPE: {
23
24
  };
24
25
  export declare const KETCHER_ROOT_NODE_CLASS_NAME = "Ketcher-root";
25
26
  export declare const KETCHER_ROOT_NODE_CSS_SELECTOR: string;
26
- export declare const EditorClassName = "Ketcher-polymer-editor-root";
27
- export declare const KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR: string;
27
+ export { EditorClassName, KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR };
28
28
  export declare const STRUCT_SERVICE_NO_RENDER_INITIALIZED_EVENT = "struct-service-no-render-initialized";
29
29
  export declare const STRUCT_SERVICE_INITIALIZED_EVENT = "struct-service-initialized";
30
30
  export declare const ACS_STYLE_DEFAULT_SETTINGS: {