@festo-ui/react 7.3.0-dev.464 → 7.3.0-dev.465
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.
|
@@ -14,17 +14,17 @@ export interface TextEditorConfiguration {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
export interface TextEditorProps {
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
label: string;
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
value?: string;
|
|
21
|
-
defaultValue?: string;
|
|
22
|
-
hint?: string;
|
|
23
|
-
error?: string;
|
|
24
|
-
readOnly?: boolean;
|
|
25
|
-
onChange?: (value: string | null) => void;
|
|
26
|
-
className?: string;
|
|
27
|
-
config?: TextEditorConfiguration;
|
|
17
|
+
readonly disabled?: boolean;
|
|
18
|
+
readonly label: string;
|
|
19
|
+
readonly maxLength?: number;
|
|
20
|
+
readonly value?: string;
|
|
21
|
+
readonly defaultValue?: string;
|
|
22
|
+
readonly hint?: string;
|
|
23
|
+
readonly error?: string;
|
|
24
|
+
readonly readOnly?: boolean;
|
|
25
|
+
readonly onChange?: (value: string | null) => void;
|
|
26
|
+
readonly className?: string;
|
|
27
|
+
readonly config?: TextEditorConfiguration;
|
|
28
28
|
}
|
|
29
29
|
declare function TextEditor({ disabled, defaultValue, label, maxLength, value, hint, error, readOnly, onChange, className, config: configProps, }: TextEditorProps): JSX.Element;
|
|
30
30
|
export default TextEditor;
|
|
@@ -52,9 +52,9 @@ function TextEditor(_ref) {
|
|
|
52
52
|
if (e) {
|
|
53
53
|
const whiteList = {
|
|
54
54
|
...xss.whiteList,
|
|
55
|
-
p: [...(xss.whiteList
|
|
56
|
-
li: [...(xss.whiteList
|
|
57
|
-
a: [...(xss.whiteList
|
|
55
|
+
p: [...(xss.whiteList?.p ?? []), 'class'],
|
|
56
|
+
li: [...(xss.whiteList?.li ?? []), 'class'],
|
|
57
|
+
a: [...(xss.whiteList?.a ?? []), 'rel', 'class']
|
|
58
58
|
};
|
|
59
59
|
const sanitizedValue = xss.filterXSS(v, {
|
|
60
60
|
whiteList
|
|
@@ -59,9 +59,9 @@ function TextEditor(_ref) {
|
|
|
59
59
|
if (e) {
|
|
60
60
|
const whiteList = {
|
|
61
61
|
...xss.whiteList,
|
|
62
|
-
p: [...(xss.whiteList
|
|
63
|
-
li: [...(xss.whiteList
|
|
64
|
-
a: [...(xss.whiteList
|
|
62
|
+
p: [...(xss.whiteList?.p ?? []), 'class'],
|
|
63
|
+
li: [...(xss.whiteList?.li ?? []), 'class'],
|
|
64
|
+
a: [...(xss.whiteList?.a ?? []), 'rel', 'class']
|
|
65
65
|
};
|
|
66
66
|
const sanitizedValue = xss.filterXSS(v, {
|
|
67
67
|
whiteList
|