@rhc-shared-components/rich-text-editor 1.1.0 → 2.0.0
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/RichTextEditor.d.ts +3 -3
- package/dist/RichTextEditorFormComponent.d.ts +2 -2
- package/dist/index.js +4984 -4972
- package/package.json +7 -7
package/dist/RichTextEditor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
type RichTextEditorFunctionType = (value: string, event?: any, editor?: any) => void;
|
|
3
3
|
export interface RichTextEditorProps {
|
|
4
4
|
value: string;
|
|
@@ -7,12 +7,12 @@ export interface RichTextEditorProps {
|
|
|
7
7
|
onChange?: RichTextEditorFunctionType;
|
|
8
8
|
onBlur?: RichTextEditorFunctionType;
|
|
9
9
|
onFocus?: RichTextEditorFunctionType;
|
|
10
|
-
onError?: (error:
|
|
10
|
+
onError?: (error: any, details?: any) => void;
|
|
11
11
|
id?: string;
|
|
12
12
|
name?: string;
|
|
13
13
|
showCodeBlock?: boolean;
|
|
14
14
|
ariaLabel?: string;
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
}
|
|
17
|
-
declare const RichTextEditor:
|
|
17
|
+
declare const RichTextEditor: FC<RichTextEditorProps>;
|
|
18
18
|
export default RichTextEditor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
declare global {
|
|
3
3
|
interface Window {
|
|
4
4
|
ckeditorObj: any[];
|
|
@@ -16,5 +16,5 @@ export interface RichTextEditorFormComponentProps {
|
|
|
16
16
|
maxLength?: number;
|
|
17
17
|
showCodeBlock?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare const RichTextEditorFormComponent:
|
|
19
|
+
declare const RichTextEditorFormComponent: FC<RichTextEditorFormComponentProps>;
|
|
20
20
|
export default RichTextEditorFormComponent;
|