@atlaskit/inline-message 12.3.4 → 12.3.5
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/CHANGELOG.md +9 -0
- package/dist/cjs/components/message-icon/index.js +3 -1
- package/dist/cjs/constants.js +6 -6
- package/dist/es2019/components/message-icon/index.js +3 -1
- package/dist/es2019/constants.js +6 -6
- package/dist/esm/components/message-icon/index.js +3 -1
- package/dist/esm/constants.js +6 -6
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/inline-message
|
|
2
2
|
|
|
3
|
+
## 12.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#149694](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/149694)
|
|
8
|
+
[`770bc26d556f7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/770bc26d556f7) -
|
|
9
|
+
Migrate to new icons behind a feature flag
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 12.3.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -62,7 +62,9 @@ var SelectedIcon = function SelectedIcon(_ref) {
|
|
|
62
62
|
}, (0, _react.jsx)(Icon, {
|
|
63
63
|
testId: "inline-message-icon",
|
|
64
64
|
label: label || defaultLabel,
|
|
65
|
-
|
|
65
|
+
color: "currentColor",
|
|
66
|
+
LEGACY_size: "medium",
|
|
67
|
+
spacing: "spacious"
|
|
66
68
|
}));
|
|
67
69
|
};
|
|
68
70
|
var _default = exports.default = SelectedIcon;
|
package/dist/cjs/constants.js
CHANGED
|
@@ -5,21 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.typesMapping = void 0;
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var _warning = _interopRequireDefault(require("@atlaskit/icon/
|
|
8
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
|
|
9
|
+
var _informationInfo = _interopRequireDefault(require("@atlaskit/icon/core/migration/information--info"));
|
|
10
|
+
var _successCheckCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/success--check-circle"));
|
|
11
|
+
var _warning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning"));
|
|
12
12
|
var typesMapping = exports.typesMapping = {
|
|
13
13
|
connectivity: {
|
|
14
14
|
icon: _warning.default,
|
|
15
15
|
defaultLabel: 'connectivity inline message'
|
|
16
16
|
},
|
|
17
17
|
confirmation: {
|
|
18
|
-
icon:
|
|
18
|
+
icon: _successCheckCircle.default,
|
|
19
19
|
defaultLabel: 'confirmation inline message'
|
|
20
20
|
},
|
|
21
21
|
info: {
|
|
22
|
-
icon:
|
|
22
|
+
icon: _informationInfo.default,
|
|
23
23
|
defaultLabel: 'info inline message'
|
|
24
24
|
},
|
|
25
25
|
warning: {
|
package/dist/es2019/constants.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import WarningIcon from '@atlaskit/icon/
|
|
1
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
2
|
+
import InformationIcon from '@atlaskit/icon/core/migration/information--info';
|
|
3
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
4
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning';
|
|
5
5
|
export const typesMapping = {
|
|
6
6
|
connectivity: {
|
|
7
7
|
icon: WarningIcon,
|
|
8
8
|
defaultLabel: 'connectivity inline message'
|
|
9
9
|
},
|
|
10
10
|
confirmation: {
|
|
11
|
-
icon:
|
|
11
|
+
icon: SuccessIcon,
|
|
12
12
|
defaultLabel: 'confirmation inline message'
|
|
13
13
|
},
|
|
14
14
|
info: {
|
|
15
|
-
icon:
|
|
15
|
+
icon: InformationIcon,
|
|
16
16
|
defaultLabel: 'info inline message'
|
|
17
17
|
},
|
|
18
18
|
warning: {
|
|
@@ -55,7 +55,9 @@ var SelectedIcon = function SelectedIcon(_ref) {
|
|
|
55
55
|
}, jsx(Icon, {
|
|
56
56
|
testId: "inline-message-icon",
|
|
57
57
|
label: label || defaultLabel,
|
|
58
|
-
|
|
58
|
+
color: "currentColor",
|
|
59
|
+
LEGACY_size: "medium",
|
|
60
|
+
spacing: "spacious"
|
|
59
61
|
}));
|
|
60
62
|
};
|
|
61
63
|
export default SelectedIcon;
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import WarningIcon from '@atlaskit/icon/
|
|
1
|
+
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
2
|
+
import InformationIcon from '@atlaskit/icon/core/migration/information--info';
|
|
3
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--check-circle';
|
|
4
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning';
|
|
5
5
|
export var typesMapping = {
|
|
6
6
|
connectivity: {
|
|
7
7
|
icon: WarningIcon,
|
|
8
8
|
defaultLabel: 'connectivity inline message'
|
|
9
9
|
},
|
|
10
10
|
confirmation: {
|
|
11
|
-
icon:
|
|
11
|
+
icon: SuccessIcon,
|
|
12
12
|
defaultLabel: 'confirmation inline message'
|
|
13
13
|
},
|
|
14
14
|
info: {
|
|
15
|
-
icon:
|
|
15
|
+
icon: InformationIcon,
|
|
16
16
|
defaultLabel: 'info inline message'
|
|
17
17
|
},
|
|
18
18
|
warning: {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ComponentType } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { UNSAFE_NewCoreIconProps } from '@atlaskit/icon';
|
|
3
3
|
export interface Icon {
|
|
4
4
|
defaultLabel: string;
|
|
5
|
-
icon: ComponentType<
|
|
5
|
+
icon: ComponentType<UNSAFE_NewCoreIconProps>;
|
|
6
6
|
}
|
|
7
7
|
export type IconAppearanceMap = Record<IconAppearance, Icon>;
|
|
8
8
|
export type IconAppearance = 'connectivity' | 'confirmation' | 'info' | 'warning' | 'error';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ComponentType } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { UNSAFE_NewCoreIconProps } from '@atlaskit/icon';
|
|
3
3
|
export interface Icon {
|
|
4
4
|
defaultLabel: string;
|
|
5
|
-
icon: ComponentType<
|
|
5
|
+
icon: ComponentType<UNSAFE_NewCoreIconProps>;
|
|
6
6
|
}
|
|
7
7
|
export type IconAppearanceMap = Record<IconAppearance, Icon>;
|
|
8
8
|
export type IconAppearance = 'connectivity' | 'confirmation' | 'info' | 'warning' | 'error';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-message",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.5",
|
|
4
4
|
"description": "An inline message lets users know when important information is available or when an action is required.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/button": "^20.2.0",
|
|
32
|
-
"@atlaskit/icon": "^22.
|
|
32
|
+
"@atlaskit/icon": "^22.21.0",
|
|
33
33
|
"@atlaskit/inline-dialog": "^15.0.0",
|
|
34
34
|
"@atlaskit/primitives": "^12.2.0",
|
|
35
35
|
"@atlaskit/theme": "^13.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@af/accessibility-testing": "*",
|
|
45
45
|
"@af/integration-testing": "*",
|
|
46
46
|
"@af/visual-regression": "*",
|
|
47
|
-
"@atlaskit/ds-lib": "^
|
|
47
|
+
"@atlaskit/ds-lib": "^3.0.0",
|
|
48
48
|
"@atlaskit/ssr": "*",
|
|
49
49
|
"@atlaskit/visual-regression": "*",
|
|
50
50
|
"@emotion/jest": "^11.8.0",
|