@atlaskit/section-message 6.3.10 → 6.3.11
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 +6 -0
- package/dist/cjs/section-message.js +11 -8
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/section-message.js +9 -6
- package/dist/es2019/version.json +1 -1
- package/dist/esm/section-message.js +9 -6
- package/dist/esm/version.json +1 -1
- package/package.json +9 -7
- package/report.api.md +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/section-message
|
|
2
2
|
|
|
3
|
+
## 6.3.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
8
|
+
|
|
3
9
|
## 6.3.10
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -9,6 +9,8 @@ exports.default = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
11
11
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
12
|
+
var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
|
|
13
|
+
var _stack = _interopRequireDefault(require("@atlaskit/primitives/stack"));
|
|
12
14
|
var _appearanceIcon = require("./internal/appearance-icon");
|
|
13
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -47,8 +49,8 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
|
|
|
47
49
|
UNSAFE_style: {
|
|
48
50
|
wordBreak: 'break-word'
|
|
49
51
|
}
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
51
|
-
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_inline.default, {
|
|
53
|
+
space: "200"
|
|
52
54
|
}, /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Box, {
|
|
53
55
|
UNSAFE_style: {
|
|
54
56
|
margin: '-2px 0'
|
|
@@ -57,17 +59,18 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
|
|
|
57
59
|
size: "medium",
|
|
58
60
|
primaryColor: primaryColor,
|
|
59
61
|
secondaryColor: secondaryColor
|
|
60
|
-
})), /*#__PURE__*/_react.default.createElement(
|
|
61
|
-
|
|
62
|
+
})), /*#__PURE__*/_react.default.createElement(_stack.default, {
|
|
63
|
+
space: "100",
|
|
62
64
|
testId: testId && "".concat(testId, "--content")
|
|
63
65
|
}, !!title && /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
64
66
|
as: "h2",
|
|
65
67
|
level: "h500"
|
|
66
|
-
}, title), /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Text, null, children), actionsArray.length > 0 && /*#__PURE__*/_react.default.createElement(
|
|
67
|
-
|
|
68
|
+
}, title), /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Text, null, children), actionsArray.length > 0 && /*#__PURE__*/_react.default.createElement(_inline.default, {
|
|
69
|
+
shouldWrap: true,
|
|
68
70
|
testId: testId && "".concat(testId, "--actions"),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
separator: "\xB7",
|
|
72
|
+
space: "100",
|
|
73
|
+
rowSpace: "0"
|
|
71
74
|
}, actionsArray))));
|
|
72
75
|
});
|
|
73
76
|
var appearanceMap = {
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { UNSAFE_Box as Box,
|
|
3
|
+
import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
4
4
|
import Heading from '@atlaskit/heading';
|
|
5
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
6
|
+
import Stack from '@atlaskit/primitives/stack';
|
|
5
7
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
6
8
|
/**
|
|
7
9
|
* __Section message__
|
|
@@ -38,7 +40,7 @@ const SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage({
|
|
|
38
40
|
wordBreak: 'break-word'
|
|
39
41
|
}
|
|
40
42
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
41
|
-
|
|
43
|
+
space: "200"
|
|
42
44
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
43
45
|
UNSAFE_style: {
|
|
44
46
|
margin: '-2px 0'
|
|
@@ -48,16 +50,17 @@ const SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage({
|
|
|
48
50
|
primaryColor: primaryColor,
|
|
49
51
|
secondaryColor: secondaryColor
|
|
50
52
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
51
|
-
|
|
53
|
+
space: "100",
|
|
52
54
|
testId: testId && `${testId}--content`
|
|
53
55
|
}, !!title && /*#__PURE__*/React.createElement(Heading, {
|
|
54
56
|
as: "h2",
|
|
55
57
|
level: "h500"
|
|
56
58
|
}, title), /*#__PURE__*/React.createElement(Text, null, children), actionsArray.length > 0 && /*#__PURE__*/React.createElement(Inline, {
|
|
57
|
-
|
|
59
|
+
shouldWrap: true,
|
|
58
60
|
testId: testId && `${testId}--actions`,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
separator: "\xB7",
|
|
62
|
+
space: "100",
|
|
63
|
+
rowSpace: "0"
|
|
61
64
|
}, actionsArray))));
|
|
62
65
|
});
|
|
63
66
|
const appearanceMap = {
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { UNSAFE_Box as Box,
|
|
3
|
+
import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
|
|
4
4
|
import Heading from '@atlaskit/heading';
|
|
5
|
+
import Inline from '@atlaskit/primitives/inline';
|
|
6
|
+
import Stack from '@atlaskit/primitives/stack';
|
|
5
7
|
import { getAppearanceIconStyles } from './internal/appearance-icon';
|
|
6
8
|
/**
|
|
7
9
|
* __Section message__
|
|
@@ -37,7 +39,7 @@ var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref)
|
|
|
37
39
|
wordBreak: 'break-word'
|
|
38
40
|
}
|
|
39
41
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
40
|
-
|
|
42
|
+
space: "200"
|
|
41
43
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
42
44
|
UNSAFE_style: {
|
|
43
45
|
margin: '-2px 0'
|
|
@@ -47,16 +49,17 @@ var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref)
|
|
|
47
49
|
primaryColor: primaryColor,
|
|
48
50
|
secondaryColor: secondaryColor
|
|
49
51
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
50
|
-
|
|
52
|
+
space: "100",
|
|
51
53
|
testId: testId && "".concat(testId, "--content")
|
|
52
54
|
}, !!title && /*#__PURE__*/React.createElement(Heading, {
|
|
53
55
|
as: "h2",
|
|
54
56
|
level: "h500"
|
|
55
57
|
}, title), /*#__PURE__*/React.createElement(Text, null, children), actionsArray.length > 0 && /*#__PURE__*/React.createElement(Inline, {
|
|
56
|
-
|
|
58
|
+
shouldWrap: true,
|
|
57
59
|
testId: testId && "".concat(testId, "--actions"),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
separator: "\xB7",
|
|
61
|
+
space: "100",
|
|
62
|
+
rowSpace: "0"
|
|
60
63
|
}, actionsArray))));
|
|
61
64
|
});
|
|
62
65
|
var appearanceMap = {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/section-message",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.11",
|
|
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/"
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
17
|
"atlassian": {
|
|
18
|
-
"disableProductCI": true,
|
|
19
18
|
"team": "Design System Team",
|
|
20
19
|
"releaseModel": "scheduled",
|
|
21
20
|
"website": {
|
|
@@ -35,16 +34,17 @@
|
|
|
35
34
|
"@atlaskit/ds-explorations": "^2.0.0",
|
|
36
35
|
"@atlaskit/heading": "^1.1.0",
|
|
37
36
|
"@atlaskit/icon": "^21.11.0",
|
|
37
|
+
"@atlaskit/primitives": "^0.3.0",
|
|
38
38
|
"@atlaskit/theme": "^12.2.0",
|
|
39
|
-
"@atlaskit/tokens": "^1.
|
|
39
|
+
"@atlaskit/tokens": "^1.2.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "^16.8.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@atlaskit/analytics-next": "^
|
|
47
|
-
"@atlaskit/code": "^14.
|
|
46
|
+
"@atlaskit/analytics-next": "^9.0.0",
|
|
47
|
+
"@atlaskit/code": "^14.5.0",
|
|
48
48
|
"@atlaskit/docs": "*",
|
|
49
49
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
50
50
|
"@atlaskit/range": "^7.0.0",
|
|
@@ -76,8 +76,10 @@
|
|
|
76
76
|
"styling": [
|
|
77
77
|
"emotion"
|
|
78
78
|
],
|
|
79
|
-
"design-tokens":
|
|
80
|
-
|
|
79
|
+
"design-tokens": [
|
|
80
|
+
"color",
|
|
81
|
+
"spacing"
|
|
82
|
+
],
|
|
81
83
|
"deprecation": "no-deprecated-imports"
|
|
82
84
|
}
|
|
83
85
|
},
|
package/report.api.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
### Table of contents
|
|
9
9
|
|
|
10
10
|
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
11
12
|
|
|
12
13
|
### Main Entry Types
|
|
13
14
|
|
|
@@ -61,3 +62,15 @@ export interface SectionMessageProps {
|
|
|
61
62
|
```
|
|
62
63
|
|
|
63
64
|
<!--SECTION END: Main Entry Types-->
|
|
65
|
+
|
|
66
|
+
### Peer Dependencies
|
|
67
|
+
|
|
68
|
+
<!--SECTION START: Peer Dependencies-->
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"react": "^16.8.0"
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
<!--SECTION END: Peer Dependencies-->
|