@atlaskit/section-message 8.6.1 → 8.7.1
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.compiled.css +1 -1
- package/dist/cjs/section-message.js +2 -3
- package/dist/es2019/section-message.compiled.css +1 -1
- package/dist/es2019/section-message.js +2 -3
- package/dist/esm/section-message.compiled.css +1 -1
- package/dist/esm/section-message.js +2 -3
- package/package.json +2 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/section-message
|
|
2
2
|
|
|
3
|
+
## 8.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`255837cfba315`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/255837cfba315) -
|
|
8
|
+
Internal changes to how border radius is applied.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.7.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`e2151927739e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e2151927739e8) -
|
|
16
|
+
Explicit font styles have been set for the section message actions container, to prevent inherited
|
|
17
|
+
styles from affecting the component. This change is no longer behind a feature flag.
|
|
18
|
+
|
|
3
19
|
## 8.6.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
4
4
|
._1mou1i6y{margin-block:var(--ds-space-negative-025,-2px)}
|
|
5
5
|
._1rjcpxbi{padding-block:var(--ds-space-200,1pc)}
|
|
@@ -15,12 +15,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
15
15
|
var _new = require("@atlaskit/button/new");
|
|
16
16
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
17
17
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _appearanceIcon = require("./internal/appearance-icon");
|
|
21
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
21
|
var sectionMessageStyles = {
|
|
23
|
-
container: "
|
|
22
|
+
container: "_2rko12b0 _1rjcpxbi _18zrpxbi _1nmz1hna",
|
|
24
23
|
iconContainer: "_1mou1i6y _1e0c1txw",
|
|
25
24
|
contentContainer: "_16jlkb7n",
|
|
26
25
|
content: "_11c82smr _syaz1fxt",
|
|
@@ -104,7 +103,7 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
|
|
|
104
103
|
// Only use a list role if more than one action is present
|
|
105
104
|
,
|
|
106
105
|
role: actionsArray.length > 1 ? 'list' : undefined,
|
|
107
|
-
xcss:
|
|
106
|
+
xcss: sectionMessageStyles.actionsContainer
|
|
108
107
|
}, actionsArray.map(function (action, id) {
|
|
109
108
|
return (
|
|
110
109
|
/*#__PURE__*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
4
4
|
._1mou1i6y{margin-block:var(--ds-space-negative-025,-2px)}
|
|
5
5
|
._1rjcpxbi{padding-block:var(--ds-space-200,1pc)}
|
|
@@ -6,11 +6,10 @@ import { Children, forwardRef, Fragment, useCallback, useState } from 'react';
|
|
|
6
6
|
import { IconButton } from '@atlaskit/button/new';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
8
|
import CrossIcon from '@atlaskit/icon/core/migration/cross';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
12
11
|
const sectionMessageStyles = {
|
|
13
|
-
container: "
|
|
12
|
+
container: "_2rko12b0 _1rjcpxbi _18zrpxbi _1nmz1hna",
|
|
14
13
|
iconContainer: "_1mou1i6y _1e0c1txw",
|
|
15
14
|
contentContainer: "_16jlkb7n",
|
|
16
15
|
content: "_11c82smr _syaz1fxt",
|
|
@@ -92,7 +91,7 @@ const SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage({
|
|
|
92
91
|
// Only use a list role if more than one action is present
|
|
93
92
|
,
|
|
94
93
|
role: actionsArray.length > 1 ? 'list' : undefined,
|
|
95
|
-
xcss:
|
|
94
|
+
xcss: sectionMessageStyles.actionsContainer
|
|
96
95
|
}, actionsArray.map((action, id) =>
|
|
97
96
|
/*#__PURE__*/
|
|
98
97
|
// Only use a listitem role if more than one action is present
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
4
4
|
._1mou1i6y{margin-block:var(--ds-space-negative-025,-2px)}
|
|
5
5
|
._1rjcpxbi{padding-block:var(--ds-space-200,1pc)}
|
|
@@ -7,11 +7,10 @@ import { Children, forwardRef, Fragment, useCallback, useState } from 'react';
|
|
|
7
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import Heading from '@atlaskit/heading';
|
|
9
9
|
import CrossIcon from '@atlaskit/icon/core/migration/cross';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
12
11
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
13
12
|
var sectionMessageStyles = {
|
|
14
|
-
container: "
|
|
13
|
+
container: "_2rko12b0 _1rjcpxbi _18zrpxbi _1nmz1hna",
|
|
15
14
|
iconContainer: "_1mou1i6y _1e0c1txw",
|
|
16
15
|
contentContainer: "_16jlkb7n",
|
|
17
16
|
content: "_11c82smr _syaz1fxt",
|
|
@@ -95,7 +94,7 @@ var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref)
|
|
|
95
94
|
// Only use a list role if more than one action is present
|
|
96
95
|
,
|
|
97
96
|
role: actionsArray.length > 1 ? 'list' : undefined,
|
|
98
|
-
xcss:
|
|
97
|
+
xcss: sectionMessageStyles.actionsContainer
|
|
99
98
|
}, actionsArray.map(function (action, id) {
|
|
100
99
|
return (
|
|
101
100
|
/*#__PURE__*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/section-message",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.1",
|
|
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/"
|
|
@@ -31,12 +31,6 @@
|
|
|
31
31
|
"category": "Messaging"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
"af:exports": {
|
|
35
|
-
"./section-message": "./src/entry-points/section-message.tsx",
|
|
36
|
-
"./section-message-action": "./src/entry-points/section-message-action.tsx",
|
|
37
|
-
"./types": "./src/entry-points/types.tsx",
|
|
38
|
-
".": "./src/index.tsx"
|
|
39
|
-
},
|
|
40
34
|
"dependencies": {
|
|
41
35
|
"@atlaskit/button": "^23.4.0",
|
|
42
36
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
@@ -61,7 +55,7 @@
|
|
|
61
55
|
"@atlaskit/code": "^17.2.0",
|
|
62
56
|
"@atlaskit/docs": "^11.0.0",
|
|
63
57
|
"@atlaskit/ds-lib": "^5.0.0",
|
|
64
|
-
"@atlaskit/form": "^12.
|
|
58
|
+
"@atlaskit/form": "^12.4.0",
|
|
65
59
|
"@atlaskit/range": "^9.2.0",
|
|
66
60
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
67
61
|
"@atlassian/ssr-tests": "^0.3.0",
|
|
@@ -99,9 +93,6 @@
|
|
|
99
93
|
"platform_dst_section_message_actions_as_link": {
|
|
100
94
|
"type": "boolean"
|
|
101
95
|
},
|
|
102
|
-
"platform_ads_explicit_font_styles": {
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
96
|
"platform_dst_section_message_discovery_icon": {
|
|
106
97
|
"type": "boolean"
|
|
107
98
|
}
|