ados-rcm 1.1.518 → 1.1.520
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/AEditor.d.ts +3 -7
- package/dist/AModule/AComponents/AEditor/modules/Copy.d.ts +19 -0
- package/dist/AModule/AComponents/AEditor/modules/Divider.d.ts +8 -0
- package/dist/AModule/AComponents/AEditor/modules/TableUp.d.ts +6 -0
- package/dist/AModule/AComponents/AResource/AResource.d.ts +3 -0
- package/dist/index.cjs.js +124 -124
- package/dist/index.es.js +10740 -10716
- package/package.json +3 -3
@@ -3,12 +3,9 @@ import { default as ReactQuill } from 'react-quill-new';
|
|
3
3
|
import { TUseValues } from '../../AHooks/useValues';
|
4
4
|
import { IABaseProps } from '../ABase/ABase';
|
5
5
|
import { IAWrapProps } from '../AWrap/AWrap';
|
6
|
-
|
7
|
-
onError?: () => void;
|
8
|
-
onSuccess?: () => void;
|
9
|
-
}
|
6
|
+
import { IClipboardOptions } from './modules/Copy';
|
10
7
|
export interface IAEditorRef extends ReactQuill {
|
11
|
-
copyContent: (options?:
|
8
|
+
copyContent: (options?: IClipboardOptions) => void;
|
12
9
|
}
|
13
10
|
export type TAEditorType = 'Primary' | 'ReadOnly' | 'Raw' | 'Error';
|
14
11
|
export type TAEditorToolbarType = 'Default' | 'Title';
|
@@ -27,7 +24,6 @@ export interface IAEditorProps extends IABaseProps, IAWrapProps {
|
|
27
24
|
maxLength?: number;
|
28
25
|
minHeight?: number;
|
29
26
|
noImageResize?: boolean;
|
30
|
-
onEnterPress?: (value: string) => void;
|
31
27
|
placeholder?: string;
|
32
28
|
readOnly?: boolean;
|
33
29
|
size?: number;
|
@@ -38,4 +34,4 @@ export interface IAEditorProps extends IABaseProps, IAWrapProps {
|
|
38
34
|
useError?: TUseValues<boolean>;
|
39
35
|
useValue?: TUseValues<string>;
|
40
36
|
}
|
41
|
-
export declare const AEditor:
|
37
|
+
export declare const AEditor: (props: IAEditorProps) => React.ReactNode;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { default as Quill } from 'quill';
|
2
|
+
export interface IClipboardOptions {
|
3
|
+
onError?: () => void;
|
4
|
+
onSuccess?: () => void;
|
5
|
+
}
|
6
|
+
export interface ICopyModuleOptions {
|
7
|
+
isTitleMode?: boolean;
|
8
|
+
}
|
9
|
+
declare class CopyModule {
|
10
|
+
private quill;
|
11
|
+
private cleanupFunctions;
|
12
|
+
constructor(quill: Quill, options?: ICopyModuleOptions);
|
13
|
+
private setupTitleModePaste;
|
14
|
+
private replaceBreaksWithSpaces;
|
15
|
+
destroy(): void;
|
16
|
+
copyContent(options?: IClipboardOptions): Promise<boolean>;
|
17
|
+
copyToClipboard(text: string, html?: string, options?: IClipboardOptions): Promise<boolean>;
|
18
|
+
}
|
19
|
+
export default CopyModule;
|
@@ -59,6 +59,8 @@ export declare const Resources: {
|
|
59
59
|
Custom: string;
|
60
60
|
Confirm: string;
|
61
61
|
Cancel: string;
|
62
|
+
'Copy Cell': string;
|
63
|
+
'Cut Cell': string;
|
62
64
|
Row: string;
|
63
65
|
Column: string;
|
64
66
|
'Not Positive Number Error': string;
|
@@ -83,6 +85,7 @@ export declare const Resources: {
|
|
83
85
|
'Enter link:': string;
|
84
86
|
'Enter video:': string;
|
85
87
|
'Visit URL:': string;
|
88
|
+
Edit: string;
|
86
89
|
Save: string;
|
87
90
|
Remove: string;
|
88
91
|
};
|