ados-rcm 1.1.508 → 1.1.509
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/AModule/AComponents/AEditor/modules/ImageResizer.d.ts +6 -14
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +5 -1
- package/dist/index.cjs.js +124 -124
- package/dist/index.es.js +15507 -16679
- package/package.json +1 -1
@@ -1,20 +1,10 @@
|
|
1
|
-
import { Blot } from 'parchment';
|
2
1
|
import { default as Quill } from 'quill';
|
3
|
-
import { CSSProperties } from 'react';
|
4
2
|
export interface ImageResizeOptions {
|
5
3
|
alignments?: ToolbarAlignmentOption[];
|
6
4
|
displaySize?: boolean;
|
7
|
-
displayStyles?: CSSProperties;
|
8
5
|
handleEdit?: (image: HTMLImageElement) => void;
|
9
|
-
handleStyles?: CSSProperties;
|
10
6
|
modules?: string[];
|
11
|
-
overlayStyles?: CSSProperties;
|
12
7
|
parchment?: any;
|
13
|
-
toolbarButtonStyles?: CSSProperties;
|
14
|
-
toolbarButtonSvgStyles?: {
|
15
|
-
[key: string]: string | number;
|
16
|
-
};
|
17
|
-
toolbarStyles?: CSSProperties;
|
18
8
|
}
|
19
9
|
export interface ToolbarAlignmentOption {
|
20
10
|
apply: () => void;
|
@@ -22,13 +12,16 @@ export interface ToolbarAlignmentOption {
|
|
22
12
|
isApplied: () => boolean;
|
23
13
|
title?: string;
|
24
14
|
}
|
15
|
+
interface MinimalBlot {
|
16
|
+
domNode: HTMLElement;
|
17
|
+
}
|
25
18
|
export default class ImageResize {
|
26
19
|
quill: Quill;
|
27
20
|
options: ImageResizeOptions;
|
28
21
|
parchment: any;
|
29
22
|
overlay: HTMLDivElement;
|
30
23
|
img: HTMLImageElement | null;
|
31
|
-
blot:
|
24
|
+
blot: MinimalBlot | null;
|
32
25
|
private modules;
|
33
26
|
private moduleClasses;
|
34
27
|
private clickListener;
|
@@ -36,15 +29,13 @@ export default class ImageResize {
|
|
36
29
|
private inputListener;
|
37
30
|
private overlayClickListener;
|
38
31
|
constructor(quill: Quill, options?: ImageResizeOptions);
|
39
|
-
private initializeImageFormatClass;
|
40
|
-
private registerNewImageFormatClass;
|
41
|
-
private tryUseExistingImageFormatClass;
|
42
32
|
private initializeModuleClasses;
|
43
33
|
initializeModules: () => void;
|
44
34
|
onUpdate: () => void;
|
45
35
|
removeModules: () => void;
|
46
36
|
handleClick: (evt: MouseEvent) => void;
|
47
37
|
show: (img: HTMLImageElement) => void;
|
38
|
+
private removeEventListeners;
|
48
39
|
showOverlay: () => void;
|
49
40
|
hideOverlay: () => void;
|
50
41
|
repositionElements: () => void;
|
@@ -55,3 +46,4 @@ export default class ImageResize {
|
|
55
46
|
private findBlotForImage;
|
56
47
|
private trySetSelection;
|
57
48
|
}
|
49
|
+
export {};
|
@@ -151,7 +151,11 @@ export declare const Icons: Readonly<{
|
|
151
151
|
EditorArrow: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
152
152
|
Target: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
153
153
|
DividerExpand: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
154
|
+
AlignLeft: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
155
|
+
AlignCenter: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
156
|
+
AlignRight: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
157
|
+
AlignJustify: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
154
158
|
}>;
|
155
|
-
export declare const AIcons: ("ArrowDown" | "ArrowUp" | "Chat" | "Check.Checked" | "Check.Indeterminate" | "Check.UnChecked" | "CircleCheck" | "ClipBoard" | "Close" | "Document" | "Menu" | "Person" | "PersonOutline" | "Reset" | "Search" | "Send" | "Spinner" | "Stop" | "TriangleAlert" | "TriangleAlert2" | "Sun" | "Moon" | "CCTV" | "Convert" | "KeyboardArrowUp" | "KeyboardArrowDown" | "Alert" | "SortUp" | "SortDown" | "SortBoth" | "RowSortUp" | "RowSortDown" | "RowSortBoth" | "Favorite" | "FavoriteDisabled" | "Main" | "Frame" | "FileDownload" | "File" | "File2" | "UnPlug" | "CloudSync" | "CalendarDay" | "DateRange" | "PlayArrow" | "Mail" | "MailOutline" | "Bell" | "Download" | "Folder" | "FolderPost" | "FolderOpen" | "FolderCopy" | "FolderAdd" | "FolderMove" | "FirstPage" | "LastPage" | "NavigateBefore" | "NavigateNext" | "ListAdd" | "ListRemove" | "Cancel" | "Article" | "Info" | "Type" | "PersonAdd" | "CheckNormal" | "Create" | "PersonRemove" | "Refresh" | "Undo" | "Return" | "Gear" | "TriangleUp" | "TriangleDown" | "CircleHelp" | "Cow" | "CircleAlertOutline" | "CircleAlert" | "Manager" | "ManagerOutline" | "Admin" | "Equalizer" | "ABC" | "Auth" | "AuthAdd" | "Switch" | "Add" | "Edit" | "EditOff" | "Delete" | "Save" | "Remove" | "Sync" | "X" | "MoreVertical" | "MoreHorizontal" | "Verified" | "NonVerified" | "Edit2" | "Trash" | "AddRowBelow" | "AddRowAbove" | "AddColRight" | "AddColLeft" | "RemoveCol" | "RemoveRow" | "Table" | "Minus" | "EditorArrow" | "Target" | "DividerExpand")[];
|
159
|
+
export declare const AIcons: ("ArrowDown" | "ArrowUp" | "Chat" | "Check.Checked" | "Check.Indeterminate" | "Check.UnChecked" | "CircleCheck" | "ClipBoard" | "Close" | "Document" | "Menu" | "Person" | "PersonOutline" | "Reset" | "Search" | "Send" | "Spinner" | "Stop" | "TriangleAlert" | "TriangleAlert2" | "Sun" | "Moon" | "CCTV" | "Convert" | "KeyboardArrowUp" | "KeyboardArrowDown" | "Alert" | "SortUp" | "SortDown" | "SortBoth" | "RowSortUp" | "RowSortDown" | "RowSortBoth" | "Favorite" | "FavoriteDisabled" | "Main" | "Frame" | "FileDownload" | "File" | "File2" | "UnPlug" | "CloudSync" | "CalendarDay" | "DateRange" | "PlayArrow" | "Mail" | "MailOutline" | "Bell" | "Download" | "Folder" | "FolderPost" | "FolderOpen" | "FolderCopy" | "FolderAdd" | "FolderMove" | "FirstPage" | "LastPage" | "NavigateBefore" | "NavigateNext" | "ListAdd" | "ListRemove" | "Cancel" | "Article" | "Info" | "Type" | "PersonAdd" | "CheckNormal" | "Create" | "PersonRemove" | "Refresh" | "Undo" | "Return" | "Gear" | "TriangleUp" | "TriangleDown" | "CircleHelp" | "Cow" | "CircleAlertOutline" | "CircleAlert" | "Manager" | "ManagerOutline" | "Admin" | "Equalizer" | "ABC" | "Auth" | "AuthAdd" | "Switch" | "Add" | "Edit" | "EditOff" | "Delete" | "Save" | "Remove" | "Sync" | "X" | "MoreVertical" | "MoreHorizontal" | "Verified" | "NonVerified" | "Edit2" | "Trash" | "AddRowBelow" | "AddRowAbove" | "AddColRight" | "AddColLeft" | "RemoveCol" | "RemoveRow" | "Table" | "Minus" | "EditorArrow" | "Target" | "DividerExpand" | "AlignLeft" | "AlignCenter" | "AlignRight" | "AlignJustify")[];
|
156
160
|
export type TIcons = keyof typeof Icons;
|
157
161
|
export {};
|