@atlaskit/section-message 8.1.0 → 8.2.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/CHANGELOG.md +16 -0
- package/dist/cjs/section-message.js +5 -2
- package/dist/es2019/section-message.js +5 -2
- package/dist/esm/section-message.js +5 -2
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/section-message
|
|
2
2
|
|
|
3
|
+
## 8.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#128669](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128669)
|
|
8
|
+
[`81a9df729e371`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/81a9df729e371) -
|
|
9
|
+
Explicit font styles have been set for the section message actions container, to prevent inherited
|
|
10
|
+
styles from affecting the component. This change is behind the feature
|
|
11
|
+
flag`platform_ads_explicit_font_styles`.
|
|
12
|
+
|
|
13
|
+
## 8.1.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 8.1.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -11,6 +11,7 @@ require("./section-message.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
16
|
var _appearanceIcon = require("./internal/appearance-icon");
|
|
16
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -18,7 +19,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
18
19
|
var sectionMessageStyles = {
|
|
19
20
|
container: "_2rkoglpi _1nmz1hna",
|
|
20
21
|
bleed: "_1mou1i6y _1e0c1txw",
|
|
21
|
-
content: "_11c82smr _syaz1fxt"
|
|
22
|
+
content: "_11c82smr _syaz1fxt",
|
|
23
|
+
actionsContainer: "_11c82smr"
|
|
22
24
|
};
|
|
23
25
|
|
|
24
26
|
/**
|
|
@@ -79,7 +81,8 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
|
|
|
79
81
|
separator: "\xB7",
|
|
80
82
|
space: "space.100",
|
|
81
83
|
rowSpace: "space.0",
|
|
82
|
-
role: "list"
|
|
84
|
+
role: "list",
|
|
85
|
+
xcss: (0, _platformFeatureFlags.fg)('platform_ads_explicit_font_styles') && sectionMessageStyles.actionsContainer
|
|
83
86
|
}, actionsArray.map(function (action, id) {
|
|
84
87
|
return /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
85
88
|
role: "listitem",
|
|
@@ -3,12 +3,14 @@ import "./section-message.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import Heading from '@atlaskit/heading';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
8
9
|
const sectionMessageStyles = {
|
|
9
10
|
container: "_2rkoglpi _1nmz1hna",
|
|
10
11
|
bleed: "_1mou1i6y _1e0c1txw",
|
|
11
|
-
content: "_11c82smr _syaz1fxt"
|
|
12
|
+
content: "_11c82smr _syaz1fxt",
|
|
13
|
+
actionsContainer: "_11c82smr"
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -70,7 +72,8 @@ const SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage({
|
|
|
70
72
|
separator: "\xB7",
|
|
71
73
|
space: "space.100",
|
|
72
74
|
rowSpace: "space.0",
|
|
73
|
-
role: "list"
|
|
75
|
+
role: "list",
|
|
76
|
+
xcss: fg('platform_ads_explicit_font_styles') && sectionMessageStyles.actionsContainer
|
|
74
77
|
}, actionsArray.map((action, id) => /*#__PURE__*/React.createElement(Inline, {
|
|
75
78
|
role: "listitem",
|
|
76
79
|
key: id
|
|
@@ -3,12 +3,14 @@ import "./section-message.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import Heading from '@atlaskit/heading';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
8
9
|
var sectionMessageStyles = {
|
|
9
10
|
container: "_2rkoglpi _1nmz1hna",
|
|
10
11
|
bleed: "_1mou1i6y _1e0c1txw",
|
|
11
|
-
content: "_11c82smr _syaz1fxt"
|
|
12
|
+
content: "_11c82smr _syaz1fxt",
|
|
13
|
+
actionsContainer: "_11c82smr"
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -69,7 +71,8 @@ var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref)
|
|
|
69
71
|
separator: "\xB7",
|
|
70
72
|
space: "space.100",
|
|
71
73
|
rowSpace: "space.0",
|
|
72
|
-
role: "list"
|
|
74
|
+
role: "list",
|
|
75
|
+
xcss: fg('platform_ads_explicit_font_styles') && sectionMessageStyles.actionsContainer
|
|
73
76
|
}, actionsArray.map(function (action, id) {
|
|
74
77
|
return /*#__PURE__*/React.createElement(Inline, {
|
|
75
78
|
role: "listitem",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/section-message",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "A section message is used to alert users to a particular section of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
44
44
|
"@atlaskit/css": "^0.10.0",
|
|
45
45
|
"@atlaskit/heading": "^5.1.0",
|
|
46
|
-
"@atlaskit/icon": "^
|
|
46
|
+
"@atlaskit/icon": "^25.0.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/primitives": "^14.1.0",
|
|
49
49
|
"@atlaskit/theme": "^18.0.0",
|
|
50
|
-
"@atlaskit/tokens": "^4.
|
|
50
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@af/accessibility-testing": "
|
|
58
|
-
"@af/integration-testing": "
|
|
59
|
-
"@af/visual-regression": "
|
|
57
|
+
"@af/accessibility-testing": "^2.0.0",
|
|
58
|
+
"@af/integration-testing": "^0.5.0",
|
|
59
|
+
"@af/visual-regression": "^1.3.0",
|
|
60
60
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
61
61
|
"@atlaskit/code": "^16.0.0",
|
|
62
|
-
"@atlaskit/docs": "
|
|
62
|
+
"@atlaskit/docs": "^10.0.0",
|
|
63
63
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
64
64
|
"@atlaskit/form": "^12.0.0",
|
|
65
|
-
"@atlaskit/link": "
|
|
65
|
+
"@atlaskit/link": "^3.0.0",
|
|
66
66
|
"@atlaskit/range": "^9.0.0",
|
|
67
|
-
"@atlaskit/ssr": "
|
|
68
|
-
"@atlassian/feature-flags-test-utils": "
|
|
67
|
+
"@atlaskit/ssr": "^0.4.0",
|
|
68
|
+
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
69
69
|
"@testing-library/react": "^13.4.0",
|
|
70
70
|
"react-dom": "^18.2.0",
|
|
71
71
|
"typescript": "~5.4.2"
|
|
@@ -97,6 +97,9 @@
|
|
|
97
97
|
"platform_section_message_action_migration": {
|
|
98
98
|
"type": "boolean",
|
|
99
99
|
"showOnWebsiteForTransitiveDependencies": true
|
|
100
|
+
},
|
|
101
|
+
"platform_ads_explicit_font_styles": {
|
|
102
|
+
"type": "boolean"
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
}
|