@commercetools-uikit/messages 19.25.1 → 20.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/commercetools-uikit-messages.cjs.dev.js +1 -33
- package/dist/commercetools-uikit-messages.cjs.prod.js +1 -6
- package/dist/commercetools-uikit-messages.esm.js +1 -32
- package/dist/declarations/src/additional-info-message/additional-info-message.d.ts +2 -6
- package/dist/declarations/src/error-message/error-message.d.ts +2 -6
- package/dist/declarations/src/warning-message/warning-message.d.ts +2 -6
- package/package.json +6 -7
|
@@ -11,8 +11,6 @@ var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-
|
|
|
11
11
|
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
12
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
13
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
-
var _pt = require('prop-types');
|
|
15
|
-
require('react');
|
|
16
14
|
var Text = require('@commercetools-uikit/text');
|
|
17
15
|
var utils = require('@commercetools-uikit/utils');
|
|
18
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
@@ -27,7 +25,6 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
|
|
|
27
25
|
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
28
26
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
29
27
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
30
|
-
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
31
28
|
var Text__default = /*#__PURE__*/_interopDefault(Text);
|
|
32
29
|
|
|
33
30
|
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -39,16 +36,6 @@ const ErrorMessage = props => jsxRuntime.jsx(Text__default["default"].Detail, _o
|
|
|
39
36
|
}, utils.filterDataAttributes(props)), {}, {
|
|
40
37
|
children: props.children
|
|
41
38
|
}));
|
|
42
|
-
ErrorMessage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
43
|
-
id: _pt__default["default"].string,
|
|
44
|
-
intlMessage: _pt__default["default"].shape({
|
|
45
|
-
id: _pt__default["default"].string.isRequired,
|
|
46
|
-
description: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].object]),
|
|
47
|
-
defaultMessage: _pt__default["default"].string.isRequired,
|
|
48
|
-
values: _pt__default["default"].objectOf(_pt__default["default"].node)
|
|
49
|
-
}),
|
|
50
|
-
children: _pt__default["default"].node
|
|
51
|
-
} : {};
|
|
52
39
|
ErrorMessage.displayName = 'ErrorMessage';
|
|
53
40
|
var ErrorMessage$1 = ErrorMessage;
|
|
54
41
|
|
|
@@ -58,16 +45,6 @@ const WarningMessage = props => jsxRuntime.jsx(Text__default["default"].Detail,
|
|
|
58
45
|
tone: "warning",
|
|
59
46
|
children: props.children
|
|
60
47
|
});
|
|
61
|
-
WarningMessage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
62
|
-
id: _pt__default["default"].string,
|
|
63
|
-
intlMessage: _pt__default["default"].shape({
|
|
64
|
-
id: _pt__default["default"].string.isRequired,
|
|
65
|
-
description: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].object]),
|
|
66
|
-
defaultMessage: _pt__default["default"].string.isRequired,
|
|
67
|
-
values: _pt__default["default"].objectOf(_pt__default["default"].node)
|
|
68
|
-
}),
|
|
69
|
-
children: _pt__default["default"].node
|
|
70
|
-
} : {};
|
|
71
48
|
WarningMessage.displayName = 'WarningMessage';
|
|
72
49
|
var WarningMessage$1 = WarningMessage;
|
|
73
50
|
|
|
@@ -86,20 +63,11 @@ const AdditionalInfoMessage = props => {
|
|
|
86
63
|
children: props.message
|
|
87
64
|
});
|
|
88
65
|
};
|
|
89
|
-
AdditionalInfoMessage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
90
|
-
id: _pt__default["default"].string,
|
|
91
|
-
message: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node, _pt__default["default"].shape({
|
|
92
|
-
id: _pt__default["default"].string.isRequired,
|
|
93
|
-
description: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].object]),
|
|
94
|
-
defaultMessage: _pt__default["default"].string.isRequired,
|
|
95
|
-
values: _pt__default["default"].objectOf(_pt__default["default"].node)
|
|
96
|
-
})]).isRequired
|
|
97
|
-
} : {};
|
|
98
66
|
AdditionalInfoMessage.displayName = 'AdditionalInfoMessage';
|
|
99
67
|
var AdditionalInfoMessage$1 = AdditionalInfoMessage;
|
|
100
68
|
|
|
101
69
|
// NOTE: This string will be replaced on build time with the package version.
|
|
102
|
-
var version = "
|
|
70
|
+
var version = "20.0.0";
|
|
103
71
|
|
|
104
72
|
exports.AdditionalInfoMessage = AdditionalInfoMessage$1;
|
|
105
73
|
exports.ErrorMessage = ErrorMessage$1;
|
|
@@ -11,8 +11,6 @@ var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-
|
|
|
11
11
|
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
12
12
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
13
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
|
-
require('prop-types');
|
|
15
|
-
require('react');
|
|
16
14
|
var Text = require('@commercetools-uikit/text');
|
|
17
15
|
var utils = require('@commercetools-uikit/utils');
|
|
18
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
@@ -38,7 +36,6 @@ const ErrorMessage = props => jsxRuntime.jsx(Text__default["default"].Detail, _o
|
|
|
38
36
|
}, utils.filterDataAttributes(props)), {}, {
|
|
39
37
|
children: props.children
|
|
40
38
|
}));
|
|
41
|
-
ErrorMessage.propTypes = {};
|
|
42
39
|
ErrorMessage.displayName = 'ErrorMessage';
|
|
43
40
|
var ErrorMessage$1 = ErrorMessage;
|
|
44
41
|
|
|
@@ -48,7 +45,6 @@ const WarningMessage = props => jsxRuntime.jsx(Text__default["default"].Detail,
|
|
|
48
45
|
tone: "warning",
|
|
49
46
|
children: props.children
|
|
50
47
|
});
|
|
51
|
-
WarningMessage.propTypes = {};
|
|
52
48
|
WarningMessage.displayName = 'WarningMessage';
|
|
53
49
|
var WarningMessage$1 = WarningMessage;
|
|
54
50
|
|
|
@@ -67,12 +63,11 @@ const AdditionalInfoMessage = props => {
|
|
|
67
63
|
children: props.message
|
|
68
64
|
});
|
|
69
65
|
};
|
|
70
|
-
AdditionalInfoMessage.propTypes = {};
|
|
71
66
|
AdditionalInfoMessage.displayName = 'AdditionalInfoMessage';
|
|
72
67
|
var AdditionalInfoMessage$1 = AdditionalInfoMessage;
|
|
73
68
|
|
|
74
69
|
// NOTE: This string will be replaced on build time with the package version.
|
|
75
|
-
var version = "
|
|
70
|
+
var version = "20.0.0";
|
|
76
71
|
|
|
77
72
|
exports.AdditionalInfoMessage = AdditionalInfoMessage$1;
|
|
78
73
|
exports.ErrorMessage = ErrorMessage$1;
|
|
@@ -7,8 +7,6 @@ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-st
|
|
|
7
7
|
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
8
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
|
-
import _pt from 'prop-types';
|
|
11
|
-
import 'react';
|
|
12
10
|
import Text from '@commercetools-uikit/text';
|
|
13
11
|
import { filterDataAttributes } from '@commercetools-uikit/utils';
|
|
14
12
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
@@ -22,16 +20,6 @@ const ErrorMessage = props => jsx(Text.Detail, _objectSpread(_objectSpread({
|
|
|
22
20
|
}, filterDataAttributes(props)), {}, {
|
|
23
21
|
children: props.children
|
|
24
22
|
}));
|
|
25
|
-
ErrorMessage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
26
|
-
id: _pt.string,
|
|
27
|
-
intlMessage: _pt.shape({
|
|
28
|
-
id: _pt.string.isRequired,
|
|
29
|
-
description: _pt.oneOfType([_pt.string, _pt.object]),
|
|
30
|
-
defaultMessage: _pt.string.isRequired,
|
|
31
|
-
values: _pt.objectOf(_pt.node)
|
|
32
|
-
}),
|
|
33
|
-
children: _pt.node
|
|
34
|
-
} : {};
|
|
35
23
|
ErrorMessage.displayName = 'ErrorMessage';
|
|
36
24
|
var ErrorMessage$1 = ErrorMessage;
|
|
37
25
|
|
|
@@ -41,16 +29,6 @@ const WarningMessage = props => jsx(Text.Detail, {
|
|
|
41
29
|
tone: "warning",
|
|
42
30
|
children: props.children
|
|
43
31
|
});
|
|
44
|
-
WarningMessage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
45
|
-
id: _pt.string,
|
|
46
|
-
intlMessage: _pt.shape({
|
|
47
|
-
id: _pt.string.isRequired,
|
|
48
|
-
description: _pt.oneOfType([_pt.string, _pt.object]),
|
|
49
|
-
defaultMessage: _pt.string.isRequired,
|
|
50
|
-
values: _pt.objectOf(_pt.node)
|
|
51
|
-
}),
|
|
52
|
-
children: _pt.node
|
|
53
|
-
} : {};
|
|
54
32
|
WarningMessage.displayName = 'WarningMessage';
|
|
55
33
|
var WarningMessage$1 = WarningMessage;
|
|
56
34
|
|
|
@@ -69,19 +47,10 @@ const AdditionalInfoMessage = props => {
|
|
|
69
47
|
children: props.message
|
|
70
48
|
});
|
|
71
49
|
};
|
|
72
|
-
AdditionalInfoMessage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
73
|
-
id: _pt.string,
|
|
74
|
-
message: _pt.oneOfType([_pt.string, _pt.node, _pt.shape({
|
|
75
|
-
id: _pt.string.isRequired,
|
|
76
|
-
description: _pt.oneOfType([_pt.string, _pt.object]),
|
|
77
|
-
defaultMessage: _pt.string.isRequired,
|
|
78
|
-
values: _pt.objectOf(_pt.node)
|
|
79
|
-
})]).isRequired
|
|
80
|
-
} : {};
|
|
81
50
|
AdditionalInfoMessage.displayName = 'AdditionalInfoMessage';
|
|
82
51
|
var AdditionalInfoMessage$1 = AdditionalInfoMessage;
|
|
83
52
|
|
|
84
53
|
// NOTE: This string will be replaced on build time with the package version.
|
|
85
|
-
var version = "
|
|
54
|
+
var version = "20.0.0";
|
|
86
55
|
|
|
87
56
|
export { AdditionalInfoMessage$1 as AdditionalInfoMessage, ErrorMessage$1 as ErrorMessage, WarningMessage$1 as WarningMessage, version };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
description?: string | object;
|
|
5
|
-
defaultMessage: string;
|
|
6
|
-
values?: Record<string, ReactNode>;
|
|
7
|
-
};
|
|
2
|
+
import type { Props as IntlMessage } from 'react-intl/src/components/message';
|
|
3
|
+
export type TIntlMessageDescriptor = IntlMessage;
|
|
8
4
|
export type TAdditionalInfoMessageProps = {
|
|
9
5
|
id?: string;
|
|
10
6
|
message: string | ReactNode | TIntlMessageDescriptor;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
description?: string | object;
|
|
5
|
-
defaultMessage: string;
|
|
6
|
-
values?: Record<string, ReactNode>;
|
|
7
|
-
};
|
|
2
|
+
import type { Props as IntlMessage } from 'react-intl/src/components/message';
|
|
3
|
+
export type TIntlMessageDescriptor = IntlMessage;
|
|
8
4
|
export type TErrorMessageProps = {
|
|
9
5
|
id?: string;
|
|
10
6
|
intlMessage?: TIntlMessageDescriptor;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
description?: string | object;
|
|
5
|
-
defaultMessage: string;
|
|
6
|
-
values?: Record<string, ReactNode>;
|
|
7
|
-
};
|
|
2
|
+
import type { Props as IntlMessage } from 'react-intl/src/components/message';
|
|
3
|
+
export type TIntlMessageDescriptor = IntlMessage;
|
|
8
4
|
export type TWarningMessageProps = {
|
|
9
5
|
id?: string;
|
|
10
6
|
intlMessage?: TIntlMessageDescriptor;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/messages",
|
|
3
3
|
"description": "A component to render error or warning messages within together with form fields.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.0.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,17 +21,16 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/text": "
|
|
25
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/text": "20.0.0",
|
|
25
|
+
"@commercetools-uikit/utils": "20.0.0",
|
|
26
26
|
"@emotion/react": "^11.10.5",
|
|
27
27
|
"@emotion/styled": "^11.10.5",
|
|
28
|
-
"
|
|
29
|
-
"react-intl": "^6.3.2"
|
|
28
|
+
"react-intl": "^7.1.4"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"react": "
|
|
31
|
+
"react": "19.0.0"
|
|
33
32
|
},
|
|
34
33
|
"peerDependencies": {
|
|
35
|
-
"react": "
|
|
34
|
+
"react": "19.x"
|
|
36
35
|
}
|
|
37
36
|
}
|