@commercetools-uikit/rich-text-input 19.8.0 → 19.10.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.
|
@@ -337,7 +337,7 @@ RichTextInputWithRef.isTouched = isTouched;
|
|
|
337
337
|
var RichTextInputWithRef$1 = RichTextInputWithRef;
|
|
338
338
|
|
|
339
339
|
// NOTE: This string will be replaced on build time with the package version.
|
|
340
|
-
var version = "19.
|
|
340
|
+
var version = "19.10.0";
|
|
341
341
|
|
|
342
342
|
exports["default"] = RichTextInputWithRef$1;
|
|
343
343
|
exports.version = version;
|
|
@@ -312,7 +312,7 @@ RichTextInputWithRef.isTouched = isTouched;
|
|
|
312
312
|
var RichTextInputWithRef$1 = RichTextInputWithRef;
|
|
313
313
|
|
|
314
314
|
// NOTE: This string will be replaced on build time with the package version.
|
|
315
|
-
var version = "19.
|
|
315
|
+
var version = "19.10.0";
|
|
316
316
|
|
|
317
317
|
exports["default"] = RichTextInputWithRef$1;
|
|
318
318
|
exports.version = version;
|
|
@@ -313,6 +313,6 @@ RichTextInputWithRef.isTouched = isTouched;
|
|
|
313
313
|
var RichTextInputWithRef$1 = RichTextInputWithRef;
|
|
314
314
|
|
|
315
315
|
// NOTE: This string will be replaced on build time with the package version.
|
|
316
|
-
var version = "19.
|
|
316
|
+
var version = "19.10.0";
|
|
317
317
|
|
|
318
318
|
export { RichTextInputWithRef$1 as default, version };
|
|
@@ -12,21 +12,69 @@ type TChangeEvent = {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export type TRichTextInputProps = {
|
|
15
|
+
/**
|
|
16
|
+
* Focus the control when it is mounted
|
|
17
|
+
*/
|
|
15
18
|
isAutofocussed?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Expands multiline text input initially
|
|
21
|
+
*/
|
|
16
22
|
defaultExpandMultilineText?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates the input field has an error
|
|
25
|
+
*/
|
|
17
26
|
hasError?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Indicates the input field has warning
|
|
29
|
+
*/
|
|
18
30
|
hasWarning?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Used as the HTML `id` attribute.
|
|
33
|
+
*/
|
|
19
34
|
id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Used as the HTML `name` attribute.
|
|
37
|
+
*/
|
|
20
38
|
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Placeholder value to show in the input field
|
|
41
|
+
*/
|
|
21
42
|
placeholder: string;
|
|
43
|
+
/**
|
|
44
|
+
* Disables the rich text input
|
|
45
|
+
*/
|
|
22
46
|
isDisabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Indicates that the rich text input is displaying read-only content
|
|
49
|
+
*/
|
|
23
50
|
isReadOnly?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Horizontal size limit of the input fields
|
|
53
|
+
*/
|
|
24
54
|
horizontalConstraint?: 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
|
|
55
|
+
/**
|
|
56
|
+
* Called with an event containing the new value. Required when input is not read only. Parent should pass it back as value.
|
|
57
|
+
*/
|
|
25
58
|
onChange?: (event: TChangeEvent) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Called when input is focused
|
|
61
|
+
*/
|
|
26
62
|
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
63
|
+
/**
|
|
64
|
+
* Called when input is blurred
|
|
65
|
+
*/
|
|
27
66
|
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
67
|
+
/**
|
|
68
|
+
* Value of the input component.
|
|
69
|
+
*/
|
|
28
70
|
value?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Indicates whether the expand icon should be visible
|
|
73
|
+
*/
|
|
29
74
|
showExpandIcon: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Called when the `expand` button is clicked
|
|
77
|
+
*/
|
|
30
78
|
onClickExpand?: () => boolean;
|
|
31
79
|
};
|
|
32
80
|
type StaticProps = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/rich-text-input",
|
|
3
3
|
"description": "A controlled rich text input component for rich text with validation states.",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.10.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/collapsible-motion": "19.
|
|
25
|
-
"@commercetools-uikit/constraints": "19.
|
|
26
|
-
"@commercetools-uikit/design-system": "19.
|
|
27
|
-
"@commercetools-uikit/flat-button": "19.
|
|
28
|
-
"@commercetools-uikit/hooks": "19.
|
|
29
|
-
"@commercetools-uikit/icons": "19.
|
|
30
|
-
"@commercetools-uikit/input-utils": "19.
|
|
31
|
-
"@commercetools-uikit/rich-text-utils": "19.
|
|
32
|
-
"@commercetools-uikit/spacings-inline": "19.
|
|
33
|
-
"@commercetools-uikit/spacings-stack": "19.
|
|
34
|
-
"@commercetools-uikit/tooltip": "19.
|
|
35
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/collapsible-motion": "19.10.0",
|
|
25
|
+
"@commercetools-uikit/constraints": "19.10.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "19.10.0",
|
|
27
|
+
"@commercetools-uikit/flat-button": "19.10.0",
|
|
28
|
+
"@commercetools-uikit/hooks": "19.10.0",
|
|
29
|
+
"@commercetools-uikit/icons": "19.10.0",
|
|
30
|
+
"@commercetools-uikit/input-utils": "19.10.0",
|
|
31
|
+
"@commercetools-uikit/rich-text-utils": "19.10.0",
|
|
32
|
+
"@commercetools-uikit/spacings-inline": "19.10.0",
|
|
33
|
+
"@commercetools-uikit/spacings-stack": "19.10.0",
|
|
34
|
+
"@commercetools-uikit/tooltip": "19.10.0",
|
|
35
|
+
"@commercetools-uikit/utils": "19.10.0",
|
|
36
36
|
"@emotion/react": "^11.10.5",
|
|
37
37
|
"@emotion/styled": "^11.10.5",
|
|
38
38
|
"downshift": "6.1.12",
|