@atlaskit/share 6.1.6 → 6.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 +18 -0
- package/dist/cjs/components/ShareHeader.js +5 -1
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/ShareHeader.js +5 -1
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/ShareHeader.js +5 -1
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 6.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137093](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137093)
|
|
8
|
+
[`f229275d5f53b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f229275d5f53b) -
|
|
9
|
+
PTC-10669 Fixed a11y issue with share form header
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 6.1.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 6.1.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@ exports.ShareHeader = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _primitives = require("@atlaskit/primitives");
|
|
12
13
|
var _i18n = require("../i18n");
|
|
13
14
|
var headerWrapperStyles = (0, _primitives.xcss)({
|
|
@@ -24,7 +25,10 @@ var ShareHeader = exports.ShareHeader = function ShareHeader(_ref) {
|
|
|
24
25
|
var title = _ref.title;
|
|
25
26
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
26
27
|
xcss: headerWrapperStyles
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
28
|
+
}, (0, _platformFeatureFlags.fg)('share-header-accessibility') ? /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
29
|
+
size: "small",
|
|
30
|
+
as: "h2"
|
|
31
|
+
}, title || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.formTitle)) : /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
28
32
|
size: "small"
|
|
29
33
|
}, title || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.formTitle)));
|
|
30
34
|
};
|
|
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
13
13
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14
14
|
return _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/share",
|
|
16
|
-
packageVersion: "6.
|
|
16
|
+
packageVersion: "6.2.0"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
6
|
import { messages } from '../i18n';
|
|
6
7
|
const headerWrapperStyles = xcss({
|
|
@@ -18,7 +19,10 @@ export const ShareHeader = ({
|
|
|
18
19
|
}) => {
|
|
19
20
|
return /*#__PURE__*/React.createElement(Box, {
|
|
20
21
|
xcss: headerWrapperStyles
|
|
21
|
-
}, /*#__PURE__*/React.createElement(Heading, {
|
|
22
|
+
}, fg('share-header-accessibility') ? /*#__PURE__*/React.createElement(Heading, {
|
|
23
|
+
size: "small",
|
|
24
|
+
as: "h2"
|
|
25
|
+
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)) : /*#__PURE__*/React.createElement(Heading, {
|
|
22
26
|
size: "small"
|
|
23
27
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)));
|
|
24
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "6.
|
|
4
|
+
packageVersion: "6.2.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
6
|
import { messages } from '../i18n';
|
|
6
7
|
var headerWrapperStyles = xcss({
|
|
@@ -17,7 +18,10 @@ export var ShareHeader = function ShareHeader(_ref) {
|
|
|
17
18
|
var title = _ref.title;
|
|
18
19
|
return /*#__PURE__*/React.createElement(Box, {
|
|
19
20
|
xcss: headerWrapperStyles
|
|
20
|
-
}, /*#__PURE__*/React.createElement(Heading, {
|
|
21
|
+
}, fg('share-header-accessibility') ? /*#__PURE__*/React.createElement(Heading, {
|
|
22
|
+
size: "small",
|
|
23
|
+
as: "h2"
|
|
24
|
+
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)) : /*#__PURE__*/React.createElement(Heading, {
|
|
21
25
|
size: "small"
|
|
22
26
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)));
|
|
23
27
|
};
|
|
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
6
6
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7
7
|
return _objectSpread({
|
|
8
8
|
packageName: "@atlaskit/share",
|
|
9
|
-
packageVersion: "6.
|
|
9
|
+
packageVersion: "6.2.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"@atlaskit/css": "^0.10.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^14.0.0",
|
|
45
45
|
"@atlaskit/form": "^12.0.0",
|
|
46
|
-
"@atlaskit/heading": "^5.
|
|
47
|
-
"@atlaskit/icon": "^25.
|
|
46
|
+
"@atlaskit/heading": "^5.2.0",
|
|
47
|
+
"@atlaskit/icon": "^25.5.0",
|
|
48
48
|
"@atlaskit/link": "^3.1.0",
|
|
49
49
|
"@atlaskit/menu": "^3.2.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/popper": "^7.0.0",
|
|
52
|
-
"@atlaskit/popup": "^
|
|
52
|
+
"@atlaskit/popup": "^4.0.0",
|
|
53
53
|
"@atlaskit/portal": "^5.1.0",
|
|
54
|
-
"@atlaskit/primitives": "^14.
|
|
54
|
+
"@atlaskit/primitives": "^14.4.0",
|
|
55
55
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
56
56
|
"@atlaskit/spinner": "^18.0.0",
|
|
57
57
|
"@atlaskit/tabs": "^18.0.0",
|
|
58
58
|
"@atlaskit/textarea": "^8.0.0",
|
|
59
59
|
"@atlaskit/theme": "^18.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^4.
|
|
60
|
+
"@atlaskit/tokens": "^4.7.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.0.0",
|
|
62
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
63
63
|
"@atlaskit/user-picker": "^11.0.0",
|
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"platform_share_custom_header_prop": {
|
|
138
138
|
"type": "boolean"
|
|
139
|
+
},
|
|
140
|
+
"share-header-accessibility": {
|
|
141
|
+
"type": "boolean"
|
|
139
142
|
}
|
|
140
143
|
},
|
|
141
144
|
"sideEffects": [
|