@commercetools-uikit/field-warnings 19.22.4 → 19.22.6
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/README.md
CHANGED
|
@@ -75,8 +75,8 @@ export default Example;
|
|
|
75
75
|
| `id` | `string` | | | ID of the warning field. |
|
|
76
76
|
| `warnings` | `Record` | | | List of warnings. Only entries with truthy values will count as active warnings. |
|
|
77
77
|
| `isVisible` | `boolean` | | | `true` when the warning messages should be rendered. Usually you'd pass in a `touched` state of fields. |
|
|
78
|
-
| `renderWarning` | `Function`<br/>[See signature.](#signature-
|
|
79
|
-
| `renderDefaultWarning` | `Function`<br/>[See signature.](#signature-
|
|
78
|
+
| `renderWarning` | `Function`<br/>[See signature.](#signature-renderwarning) | | | Function which gets called with each warning key (from the `warnings` prop) and may render a warning message or return `null` to hand the warning handling off to `renderDefaultWarning`. |
|
|
79
|
+
| `renderDefaultWarning` | `Function`<br/>[See signature.](#signature-renderdefaultwarning) | | | Function which gets called with each warning key (from the `warnings` prop) for which `renderWarning` returned `null`.
It may render a warning message or return `null` to hand the warning handling off to `FieldWarning`s built-in warning handling. |
|
|
80
80
|
|
|
81
81
|
## Signatures
|
|
82
82
|
|
|
@@ -68,7 +68,7 @@ FieldWarnings.displayName = 'FieldWarnings';
|
|
|
68
68
|
var FieldWarnings$1 = FieldWarnings;
|
|
69
69
|
|
|
70
70
|
// NOTE: This string will be replaced on build time with the package version.
|
|
71
|
-
var version = "19.22.
|
|
71
|
+
var version = "19.22.6";
|
|
72
72
|
|
|
73
73
|
exports["default"] = FieldWarnings$1;
|
|
74
74
|
exports.version = version;
|
|
@@ -61,7 +61,7 @@ FieldWarnings.displayName = 'FieldWarnings';
|
|
|
61
61
|
var FieldWarnings$1 = FieldWarnings;
|
|
62
62
|
|
|
63
63
|
// NOTE: This string will be replaced on build time with the package version.
|
|
64
|
-
var version = "19.22.
|
|
64
|
+
var version = "19.22.6";
|
|
65
65
|
|
|
66
66
|
exports["default"] = FieldWarnings$1;
|
|
67
67
|
exports.version = version;
|
|
@@ -57,6 +57,6 @@ FieldWarnings.displayName = 'FieldWarnings';
|
|
|
57
57
|
var FieldWarnings$1 = FieldWarnings;
|
|
58
58
|
|
|
59
59
|
// NOTE: This string will be replaced on build time with the package version.
|
|
60
|
-
var version = "19.22.
|
|
60
|
+
var version = "19.22.6";
|
|
61
61
|
|
|
62
62
|
export { FieldWarnings$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/field-warnings",
|
|
3
3
|
"description": "Renders warnings based on configuration.",
|
|
4
|
-
"version": "19.22.
|
|
4
|
+
"version": "19.22.6",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/messages": "19.22.
|
|
24
|
+
"@commercetools-uikit/messages": "19.22.6",
|
|
25
25
|
"@emotion/react": "^11.10.5",
|
|
26
26
|
"@emotion/styled": "^11.10.5",
|
|
27
27
|
"prop-types": "15.8.1"
|