@atlaskit/people-teams-ui-public 3.7.1 → 3.7.2
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 +7 -0
- package/dist/cjs/ui/verified-team-icon/main.js +2 -1
- package/dist/cjs/ui/verified-team-icon/messages.js +6 -1
- package/dist/es2019/ui/verified-team-icon/main.js +2 -1
- package/dist/es2019/ui/verified-team-icon/messages.js +6 -1
- package/dist/esm/ui/verified-team-icon/main.js +2 -1
- package/dist/esm/ui/verified-team-icon/messages.js +6 -1
- package/dist/types/ui/verified-team-icon/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/verified-team-icon/messages.d.ts +5 -0
- package/package.json +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/people-teams-ui-public
|
|
2
2
|
|
|
3
|
+
## 3.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d224ac296fda5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d224ac296fda5) -
|
|
8
|
+
Update the wording in verified icon to align with team types changes
|
|
9
|
+
|
|
3
10
|
## 3.7.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@ exports.VerifiedTeamIcon = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _statusVerified = _interopRequireDefault(require("@atlaskit/icon/core/status-verified"));
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
12
13
|
var _messages = require("./messages");
|
|
13
14
|
var VerifiedTeamIcon = exports.VerifiedTeamIcon = function VerifiedTeamIcon(_ref) {
|
|
@@ -21,7 +22,7 @@ var VerifiedTeamIcon = exports.VerifiedTeamIcon = function VerifiedTeamIcon(_ref
|
|
|
21
22
|
spacing = _ref$spacing === void 0 ? 'spacious' : _ref$spacing;
|
|
22
23
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
23
24
|
formatMessage = _useIntl.formatMessage;
|
|
24
|
-
var tooltipContent = showTooltip ? customTooltipContent || formatMessage(_messages.messages.verifiedIconDefaultTooltip) : undefined;
|
|
25
|
+
var tooltipContent = showTooltip ? customTooltipContent || formatMessage((0, _platformFeatureFlags.fg)('people-teams-update-verified-team-tooltip') ? _messages.messages.verifiedIconDefaultTooltipNext : _messages.messages.verifiedIconDefaultTooltip) : undefined;
|
|
25
26
|
return tooltipContent ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
26
27
|
content: tooltipContent
|
|
27
28
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -7,8 +7,13 @@ exports.messages = void 0;
|
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
8
|
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
verifiedIconDefaultTooltip: {
|
|
10
|
+
id: 'ptc-directory.team-profile-page.team-name.verified-team.icon.tooltip-old',
|
|
11
|
+
defaultMessage: 'Managed teams are verified because they can only be changed by an admin',
|
|
12
|
+
description: 'Tooltip text for the verified team icon'
|
|
13
|
+
},
|
|
14
|
+
verifiedIconDefaultTooltipNext: {
|
|
10
15
|
id: 'ptc-directory.team-profile-page.team-name.verified-team.icon.tooltip',
|
|
11
|
-
defaultMessage: '
|
|
16
|
+
defaultMessage: 'This team is verified because it can only be changed by admin.',
|
|
12
17
|
description: 'Tooltip text for the verified team icon'
|
|
13
18
|
}
|
|
14
19
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import VerifiedIcon from '@atlaskit/icon/core/status-verified';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
6
|
import { messages } from './messages';
|
|
6
7
|
export const VerifiedTeamIcon = ({
|
|
@@ -13,7 +14,7 @@ export const VerifiedTeamIcon = ({
|
|
|
13
14
|
const {
|
|
14
15
|
formatMessage
|
|
15
16
|
} = useIntl();
|
|
16
|
-
const tooltipContent = showTooltip ? customTooltipContent || formatMessage(messages.verifiedIconDefaultTooltip) : undefined;
|
|
17
|
+
const tooltipContent = showTooltip ? customTooltipContent || formatMessage(fg('people-teams-update-verified-team-tooltip') ? messages.verifiedIconDefaultTooltipNext : messages.verifiedIconDefaultTooltip) : undefined;
|
|
17
18
|
return tooltipContent ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
18
19
|
content: tooltipContent
|
|
19
20
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl-next';
|
|
2
2
|
export const messages = defineMessages({
|
|
3
3
|
verifiedIconDefaultTooltip: {
|
|
4
|
+
id: 'ptc-directory.team-profile-page.team-name.verified-team.icon.tooltip-old',
|
|
5
|
+
defaultMessage: 'Managed teams are verified because they can only be changed by an admin',
|
|
6
|
+
description: 'Tooltip text for the verified team icon'
|
|
7
|
+
},
|
|
8
|
+
verifiedIconDefaultTooltipNext: {
|
|
4
9
|
id: 'ptc-directory.team-profile-page.team-name.verified-team.icon.tooltip',
|
|
5
|
-
defaultMessage: '
|
|
10
|
+
defaultMessage: 'This team is verified because it can only be changed by admin.',
|
|
6
11
|
description: 'Tooltip text for the verified team icon'
|
|
7
12
|
}
|
|
8
13
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import VerifiedIcon from '@atlaskit/icon/core/status-verified';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
6
|
import { messages } from './messages';
|
|
6
7
|
export var VerifiedTeamIcon = function VerifiedTeamIcon(_ref) {
|
|
@@ -14,7 +15,7 @@ export var VerifiedTeamIcon = function VerifiedTeamIcon(_ref) {
|
|
|
14
15
|
spacing = _ref$spacing === void 0 ? 'spacious' : _ref$spacing;
|
|
15
16
|
var _useIntl = useIntl(),
|
|
16
17
|
formatMessage = _useIntl.formatMessage;
|
|
17
|
-
var tooltipContent = showTooltip ? customTooltipContent || formatMessage(messages.verifiedIconDefaultTooltip) : undefined;
|
|
18
|
+
var tooltipContent = showTooltip ? customTooltipContent || formatMessage(fg('people-teams-update-verified-team-tooltip') ? messages.verifiedIconDefaultTooltipNext : messages.verifiedIconDefaultTooltip) : undefined;
|
|
18
19
|
return tooltipContent ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
19
20
|
content: tooltipContent
|
|
20
21
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl-next';
|
|
2
2
|
export var messages = defineMessages({
|
|
3
3
|
verifiedIconDefaultTooltip: {
|
|
4
|
+
id: 'ptc-directory.team-profile-page.team-name.verified-team.icon.tooltip-old',
|
|
5
|
+
defaultMessage: 'Managed teams are verified because they can only be changed by an admin',
|
|
6
|
+
description: 'Tooltip text for the verified team icon'
|
|
7
|
+
},
|
|
8
|
+
verifiedIconDefaultTooltipNext: {
|
|
4
9
|
id: 'ptc-directory.team-profile-page.team-name.verified-team.icon.tooltip',
|
|
5
|
-
defaultMessage: '
|
|
10
|
+
defaultMessage: 'This team is verified because it can only be changed by admin.',
|
|
6
11
|
description: 'Tooltip text for the verified team icon'
|
|
7
12
|
}
|
|
8
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/people-teams-ui-public",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.2",
|
|
4
4
|
"description": "UI components for public packages",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
39
39
|
"@atlaskit/icon": "^29.3.0",
|
|
40
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
41
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
41
|
-
"@atlaskit/teams-app-internal-analytics": "^1.
|
|
42
|
+
"@atlaskit/teams-app-internal-analytics": "^1.23.0",
|
|
42
43
|
"@atlaskit/tokens": "^9.0.0",
|
|
43
44
|
"@atlaskit/tooltip": "^20.11.0",
|
|
44
45
|
"@babel/runtime": "^7.0.0",
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"@af/integration-testing": "workspace:^",
|
|
54
55
|
"@af/visual-regression": "workspace:^",
|
|
55
56
|
"@atlaskit/ssr": "workspace:^",
|
|
57
|
+
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
56
58
|
"@testing-library/react": "^13.4.0",
|
|
57
59
|
"@testing-library/react-hooks": "^8.0.1",
|
|
58
60
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -96,5 +98,10 @@
|
|
|
96
98
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
97
99
|
]
|
|
98
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"platform-feature-flags": {
|
|
103
|
+
"people-teams-update-verified-team-tooltip": {
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
}
|
|
99
106
|
}
|
|
100
107
|
}
|