@atlaskit/teams-public 0.71.1 → 0.72.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/teams-public
2
2
 
3
+ ## 0.72.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`79cd2fc60c2a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79cd2fc60c2a2) -
8
+ Fix require-description ESLint violation
9
+
10
+ ## 0.72.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`6705502efc21c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6705502efc21c) -
15
+ [ux] Updating the disconnect team modal content and delete team modal message for jira project
16
+
3
17
  ## 0.71.1
4
18
 
5
19
  ### Patch Changes
@@ -8,7 +8,7 @@ exports.DisconnectDialogLazy = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _reactLooselyLazy = require("react-loosely-lazy");
11
- 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" != (0, _typeof2.default)(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); }
11
+ 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" != (0, _typeof2.default)(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); } // oxlint-disable-next-line @atlassian/no-restricted-imports
12
12
  var DisconnectDialogLazyInner = (0, _reactLooselyLazy.lazyForPaint)(function () {
13
13
  return Promise.resolve().then(function () {
14
14
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_teams-public_disconnect-dialog" */'./index'));
@@ -14,6 +14,7 @@ var _react = _interopRequireDefault(require("react"));
14
14
  var _reactIntlNext = require("react-intl-next");
15
15
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
16
16
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _compiled = require("@atlaskit/primitives/compiled");
18
19
  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); }
19
20
  var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
@@ -32,6 +33,12 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
32
33
  defaultMessage: "Disconnecting the team from the {containerType, select,\n\t\t\tJiraProject {project}\n\t\t\tConfluenceSpace {space}\n\t\t\tLoomSpace {space}\n\t\t\tother {link}\n\t\t} will not affect any work connected to the team within the {containerType, select,\n\t\t\tJiraProject {project}\n\t\t\tConfluenceSpace {space}\n\t\t\tLoomSpace {space}\n\t\t\tother {link}\n\t\t}.",
33
34
  description: 'Disclaimer of the disconnect dialog for team containers'
34
35
  },
36
+ disconnectDialogDisclaimerNew: {
37
+ id: 'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer',
38
+ // eslint-disable-next-line @atlassian/i18n/no-complex-selectors
39
+ defaultMessage: "{containerType, select,\n\t\t\tJiraProject {Disconnecting the team from the project might affect work connected to the team within the project.}\n\t\t\tConfluenceSpace {Disconnecting the team from the space will not affect any work connected to the team within the space.}\n\t\t\tLoomSpace {Disconnecting the team from the space will not affect any work connected to the team within the space.}\n\t\t\tother {Disconnecting the team from the link will not affect any work connected to the team within the link.}\n\t\t}",
40
+ description: 'Disclaimer of the disconnect dialog for team containers'
41
+ },
35
42
  disconnectDialogDisclaimerFallback: {
36
43
  id: 'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer-fallback',
37
44
  defaultMessage: 'Disconnecting the team from the link will not affect any work connected to the team.',
@@ -95,7 +102,7 @@ var DisconnectDialog = exports.DisconnectDialog = function DisconnectDialog(_ref
95
102
  }, containerName),
96
103
  containerType: containerType
97
104
  }
98
- }))), /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, messages.disconnectDialogDisclaimer, {
105
+ }))), /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('workforce_optimization_team_modal_update') ? messages.disconnectDialogDisclaimerNew : messages.disconnectDialogDisclaimer, {
99
106
  values: {
100
107
  containerType: containerType
101
108
  }
@@ -325,7 +325,7 @@ var messages = (0, _reactIntlNext.defineMessages)({
325
325
  editLink: {
326
326
  id: 'ptc-directory.team-containers.edit-link',
327
327
  defaultMessage: 'Edit link',
328
- description: 'Edit link option in dropdown'
328
+ description: 'Label for the edit link option in the team link card dropdown menu'
329
329
  },
330
330
  removeLink: {
331
331
  id: 'ptc-directory.team-containers.remove-link',
@@ -335,6 +335,6 @@ var messages = (0, _reactIntlNext.defineMessages)({
335
335
  linkExternalIconLabel: {
336
336
  id: 'ptc-directory.team-containers.link-external-icon-label',
337
337
  defaultMessage: 'Open link in new tab',
338
- description: 'Open link in new tab'
338
+ description: 'Accessible label for the external link icon on team link cards that opens in a new tab'
339
339
  }
340
340
  });
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+
3
+ // oxlint-disable-next-line @atlassian/no-restricted-imports
2
4
  import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
3
5
  const DisconnectDialogLazyInner = lazyForPaint(() => import( /* webpackChunkName: "@atlaskit-internal_teams-public_disconnect-dialog" */'./index').then(({
4
6
  DisconnectDialog
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { defineMessages, FormattedMessage } from 'react-intl-next';
4
4
  import Button from '@atlaskit/button/new';
5
5
  import ModalDialog, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { Box, Stack, Text } from '@atlaskit/primitives/compiled';
7
8
  export const messages = defineMessages({
8
9
  disconnectDialogTitle: {
@@ -35,6 +36,17 @@ export const messages = defineMessages({
35
36
  }.`,
36
37
  description: 'Disclaimer of the disconnect dialog for team containers'
37
38
  },
39
+ disconnectDialogDisclaimerNew: {
40
+ id: 'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer',
41
+ // eslint-disable-next-line @atlassian/i18n/no-complex-selectors
42
+ defaultMessage: `{containerType, select,
43
+ JiraProject {Disconnecting the team from the project might affect work connected to the team within the project.}
44
+ ConfluenceSpace {Disconnecting the team from the space will not affect any work connected to the team within the space.}
45
+ LoomSpace {Disconnecting the team from the space will not affect any work connected to the team within the space.}
46
+ other {Disconnecting the team from the link will not affect any work connected to the team within the link.}
47
+ }`,
48
+ description: 'Disclaimer of the disconnect dialog for team containers'
49
+ },
38
50
  disconnectDialogDisclaimerFallback: {
39
51
  id: 'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer-fallback',
40
52
  defaultMessage: 'Disconnecting the team from the link will not affect any work connected to the team.',
@@ -81,7 +93,7 @@ export const DisconnectDialog = ({
81
93
  }, containerName),
82
94
  containerType
83
95
  }
84
- }))), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.disconnectDialogDisclaimer, {
96
+ }))), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, fg('workforce_optimization_team_modal_update') ? messages.disconnectDialogDisclaimerNew : messages.disconnectDialogDisclaimer, {
85
97
  values: {
86
98
  containerType
87
99
  }
@@ -295,7 +295,7 @@ const messages = defineMessages({
295
295
  editLink: {
296
296
  id: 'ptc-directory.team-containers.edit-link',
297
297
  defaultMessage: 'Edit link',
298
- description: 'Edit link option in dropdown'
298
+ description: 'Label for the edit link option in the team link card dropdown menu'
299
299
  },
300
300
  removeLink: {
301
301
  id: 'ptc-directory.team-containers.remove-link',
@@ -305,6 +305,6 @@ const messages = defineMessages({
305
305
  linkExternalIconLabel: {
306
306
  id: 'ptc-directory.team-containers.link-external-icon-label',
307
307
  defaultMessage: 'Open link in new tab',
308
- description: 'Open link in new tab'
308
+ description: 'Accessible label for the external link icon on team link cards that opens in a new tab'
309
309
  }
310
310
  });
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+
3
+ // oxlint-disable-next-line @atlassian/no-restricted-imports
2
4
  import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
3
5
  var DisconnectDialogLazyInner = lazyForPaint(function () {
4
6
  return import( /* webpackChunkName: "@atlaskit-internal_teams-public_disconnect-dialog" */'./index').then(function (_ref) {
@@ -6,6 +6,7 @@ import React from 'react';
6
6
  import { defineMessages, FormattedMessage } from 'react-intl-next';
7
7
  import Button from '@atlaskit/button/new';
8
8
  import ModalDialog, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box, Stack, Text } from '@atlaskit/primitives/compiled';
10
11
  export var messages = defineMessages({
11
12
  disconnectDialogTitle: {
@@ -23,6 +24,12 @@ export var messages = defineMessages({
23
24
  defaultMessage: "Disconnecting the team from the {containerType, select,\n\t\t\tJiraProject {project}\n\t\t\tConfluenceSpace {space}\n\t\t\tLoomSpace {space}\n\t\t\tother {link}\n\t\t} will not affect any work connected to the team within the {containerType, select,\n\t\t\tJiraProject {project}\n\t\t\tConfluenceSpace {space}\n\t\t\tLoomSpace {space}\n\t\t\tother {link}\n\t\t}.",
24
25
  description: 'Disclaimer of the disconnect dialog for team containers'
25
26
  },
27
+ disconnectDialogDisclaimerNew: {
28
+ id: 'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer',
29
+ // eslint-disable-next-line @atlassian/i18n/no-complex-selectors
30
+ defaultMessage: "{containerType, select,\n\t\t\tJiraProject {Disconnecting the team from the project might affect work connected to the team within the project.}\n\t\t\tConfluenceSpace {Disconnecting the team from the space will not affect any work connected to the team within the space.}\n\t\t\tLoomSpace {Disconnecting the team from the space will not affect any work connected to the team within the space.}\n\t\t\tother {Disconnecting the team from the link will not affect any work connected to the team within the link.}\n\t\t}",
31
+ description: 'Disclaimer of the disconnect dialog for team containers'
32
+ },
26
33
  disconnectDialogDisclaimerFallback: {
27
34
  id: 'ptc-directory.team-profile-page.team-containers.disconnect-dialog.disclaimer-fallback',
28
35
  defaultMessage: 'Disconnecting the team from the link will not affect any work connected to the team.',
@@ -86,7 +93,7 @@ export var DisconnectDialog = function DisconnectDialog(_ref) {
86
93
  }, containerName),
87
94
  containerType: containerType
88
95
  }
89
- }))), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.disconnectDialogDisclaimer, {
96
+ }))), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, fg('workforce_optimization_team_modal_update') ? messages.disconnectDialogDisclaimerNew : messages.disconnectDialogDisclaimer, {
90
97
  values: {
91
98
  containerType: containerType
92
99
  }
@@ -316,7 +316,7 @@ var messages = defineMessages({
316
316
  editLink: {
317
317
  id: 'ptc-directory.team-containers.edit-link',
318
318
  defaultMessage: 'Edit link',
319
- description: 'Edit link option in dropdown'
319
+ description: 'Label for the edit link option in the team link card dropdown menu'
320
320
  },
321
321
  removeLink: {
322
322
  id: 'ptc-directory.team-containers.remove-link',
@@ -326,6 +326,6 @@ var messages = defineMessages({
326
326
  linkExternalIconLabel: {
327
327
  id: 'ptc-directory.team-containers.link-external-icon-label',
328
328
  defaultMessage: 'Open link in new tab',
329
- description: 'Open link in new tab'
329
+ description: 'Accessible label for the external link icon on team link cards that opens in a new tab'
330
330
  }
331
331
  });
@@ -16,6 +16,11 @@ export declare const messages: {
16
16
  defaultMessage: string;
17
17
  description: string;
18
18
  };
19
+ disconnectDialogDisclaimerNew: {
20
+ id: string;
21
+ defaultMessage: string;
22
+ description: string;
23
+ };
19
24
  disconnectDialogDisclaimerFallback: {
20
25
  id: string;
21
26
  defaultMessage: string;
@@ -16,6 +16,11 @@ export declare const messages: {
16
16
  defaultMessage: string;
17
17
  description: string;
18
18
  };
19
+ disconnectDialogDisclaimerNew: {
20
+ id: string;
21
+ defaultMessage: string;
22
+ description: string;
23
+ };
19
24
  disconnectDialogDisclaimerFallback: {
20
25
  id: string;
21
26
  defaultMessage: string;
package/package.json CHANGED
@@ -107,7 +107,7 @@
107
107
  }
108
108
  },
109
109
  "name": "@atlaskit/teams-public",
110
- "version": "0.71.1",
110
+ "version": "0.72.1",
111
111
  "description": "Public components related to teams",
112
112
  "author": "Atlassian Pty Ltd",
113
113
  "license": "Apache-2.0",
@@ -139,6 +139,9 @@
139
139
  },
140
140
  "space-team_linking_invites_fg": {
141
141
  "type": "boolean"
142
+ },
143
+ "workforce_optimization_team_modal_update": {
144
+ "type": "boolean"
142
145
  }
143
146
  }
144
147
  }