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.
- package/dist/cjs/constants.d.ts +2 -2
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.js +263 -108
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{index.modern-5eda67eb.js → index.modern-c52e0e6a.js} +636 -210
- package/dist/cjs/index.modern-c52e0e6a.js.map +1 -0
- package/dist/cjs/script/editor/Editor.d.ts +1 -1
- package/dist/cjs/script/editor/tool/create-monomer.d.ts +1 -0
- package/dist/cjs/script/index.d.ts +2 -0
- package/dist/cjs/script/ui/component/form/Select/Select.d.ts +2 -1
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.constants.d.ts +5 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +5 -1
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/NaturalAnaloguePicker/NaturalAnaloguePicker.d.ts +1 -0
- package/dist/cjs/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +4 -3
- package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +254 -106
- package/dist/index.js.map +1 -1
- package/dist/{index.modern-eab54238.js → index.modern-43985e95.js} +637 -211
- package/dist/index.modern-43985e95.js.map +1 -0
- package/dist/script/editor/Editor.d.ts +1 -1
- package/dist/script/editor/tool/create-monomer.d.ts +1 -0
- package/dist/script/index.d.ts +2 -0
- package/dist/script/ui/component/form/Select/Select.d.ts +2 -1
- package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.constants.d.ts +5 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +5 -1
- package/dist/script/ui/views/components/MonomerCreationWizard/components/NaturalAnaloguePicker/NaturalAnaloguePicker.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +4 -3
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/index.modern-5eda67eb.js.map +0 -1
- 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;
|
|
@@ -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";
|
package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts
CHANGED
|
@@ -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
|
-
|
|
20
|
-
|
|
19
|
+
scrollForward: any;
|
|
20
|
+
scrollBack: any;
|
|
21
|
+
isLeftRight?: boolean;
|
|
21
22
|
}
|
|
22
|
-
declare const ArrowScroll: ({ startInView, endInView,
|
|
23
|
+
declare const ArrowScroll: ({ startInView, endInView, scrollForward, scrollBack, isLeftRight, }: ArrowScrollProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export { ArrowScroll };
|
package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts
CHANGED
|
@@ -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 };
|
package/dist/constants.d.ts
CHANGED
|
@@ -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
|
|
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: {
|