@atlaskit/give-kudos 4.5.0 → 4.5.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlassian/give-kudos
2
2
 
3
+ ## 4.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`88b834ac195d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88b834ac195d1) -
8
+ Update the FG used to rollout the kudos zindex change
9
+
10
+ ## 4.5.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`70898c8166c77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/70898c8166c77) -
15
+ Icon migration entry point update
16
+
3
17
  ## 4.5.0
4
18
 
5
19
  ### Minor Changes
@@ -19,8 +19,8 @@ var _analyticsNext = require("@atlaskit/analytics-next");
19
19
  var _new = require("@atlaskit/button/new");
20
20
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
21
21
  var _drawer = require("@atlaskit/drawer");
22
+ var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/arrow-left"));
22
23
  var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
23
- var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-left"));
24
24
  var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
25
25
  var _link = _interopRequireDefault(require("@atlaskit/link"));
26
26
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
@@ -65,9 +65,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
65
65
  isActionsEnabled = props.isActionsEnabled,
66
66
  _props$zIndex = props.zIndex,
67
67
  zIndex = _props$zIndex === void 0 ? _constants.layers.modal() : _props$zIndex;
68
-
69
- // TODO: ptc-enable-team-profilecard-package - Remove this block when cleaning up FG
70
- var zIndexNext = (0, _platformFeatureFlags.fg)('ptc-enable-team-profilecard-package') ? zIndex : _constants.layers.modal();
68
+ var zIndexNext = (0, _platformFeatureFlags.fg)('people-teams-kudos-launcher-z-index') ? zIndex : _constants.layers.modal();
71
69
  var shouldBlockTransition = (0, _react.useCallback)(function (e) {
72
70
  e.preventDefault();
73
71
  e.returnValue = intl.formatMessage(_messages.default.unsavedKudosWarning);
@@ -203,7 +201,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
203
201
  if (eventData.eventType && (0, _types.isFlagEventTypeValue)(eventData.eventType)) {
204
202
  createFlagWithJsonStringifiedInput(eventData);
205
203
  }
206
- } catch (e) {
204
+ } catch (_unused) {
207
205
  // Swallow any errors
208
206
  }
209
207
  }
@@ -9,8 +9,8 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
9
9
  import { IconButton } from '@atlaskit/button/new';
10
10
  import Button from '@atlaskit/button/standard-button';
11
11
  import { Drawer } from '@atlaskit/drawer';
12
+ import ArrowLeft from '@atlaskit/icon/core/arrow-left';
12
13
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
13
- import ArrowLeft from '@atlaskit/icon/core/migration/arrow-left';
14
14
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
15
15
  import Link from '@atlaskit/link';
16
16
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
@@ -48,9 +48,7 @@ const GiveKudosLauncher = props => {
48
48
  isActionsEnabled,
49
49
  zIndex = layers.modal()
50
50
  } = props;
51
-
52
- // TODO: ptc-enable-team-profilecard-package - Remove this block when cleaning up FG
53
- const zIndexNext = fg('ptc-enable-team-profilecard-package') ? zIndex : layers.modal();
51
+ const zIndexNext = fg('people-teams-kudos-launcher-z-index') ? zIndex : layers.modal();
54
52
  const shouldBlockTransition = useCallback(e => {
55
53
  e.preventDefault();
56
54
  e.returnValue = intl.formatMessage(messages.unsavedKudosWarning);
@@ -183,7 +181,7 @@ const GiveKudosLauncher = props => {
183
181
  if (eventData.eventType && isFlagEventTypeValue(eventData.eventType)) {
184
182
  createFlagWithJsonStringifiedInput(eventData);
185
183
  }
186
- } catch (e) {
184
+ } catch {
187
185
  // Swallow any errors
188
186
  }
189
187
  }
@@ -13,8 +13,8 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
13
13
  import { IconButton } from '@atlaskit/button/new';
14
14
  import Button from '@atlaskit/button/standard-button';
15
15
  import { Drawer } from '@atlaskit/drawer';
16
+ import ArrowLeft from '@atlaskit/icon/core/arrow-left';
16
17
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
17
- import ArrowLeft from '@atlaskit/icon/core/migration/arrow-left';
18
18
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
19
19
  import Link from '@atlaskit/link';
20
20
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
@@ -56,9 +56,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
56
56
  isActionsEnabled = props.isActionsEnabled,
57
57
  _props$zIndex = props.zIndex,
58
58
  zIndex = _props$zIndex === void 0 ? layers.modal() : _props$zIndex;
59
-
60
- // TODO: ptc-enable-team-profilecard-package - Remove this block when cleaning up FG
61
- var zIndexNext = fg('ptc-enable-team-profilecard-package') ? zIndex : layers.modal();
59
+ var zIndexNext = fg('people-teams-kudos-launcher-z-index') ? zIndex : layers.modal();
62
60
  var shouldBlockTransition = useCallback(function (e) {
63
61
  e.preventDefault();
64
62
  e.returnValue = intl.formatMessage(messages.unsavedKudosWarning);
@@ -194,7 +192,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
194
192
  if (eventData.eventType && isFlagEventTypeValue(eventData.eventType)) {
195
193
  createFlagWithJsonStringifiedInput(eventData);
196
194
  }
197
- } catch (e) {
195
+ } catch (_unused) {
198
196
  // Swallow any errors
199
197
  }
200
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/give-kudos",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Give Kudos experience ",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/drawer": "^11.0.0",
45
45
  "@atlaskit/icon": "^29.3.0",
46
46
  "@atlaskit/intl-messages-provider": "^2.0.0",
47
- "@atlaskit/link": "^3.2.0",
47
+ "@atlaskit/link": "^3.3.0",
48
48
  "@atlaskit/modal-dialog": "^14.9.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/portal": "^5.1.0",
51
51
  "@atlaskit/primitives": "^17.0.0",
52
52
  "@atlaskit/theme": "^21.0.0",
53
- "@atlaskit/tokens": "^9.0.0",
53
+ "@atlaskit/tokens": "^9.1.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },
@@ -61,7 +61,7 @@
61
61
  "devDependencies": {
62
62
  "@af/integration-testing": "workspace:^",
63
63
  "@atlaskit/ssr": "workspace:^",
64
- "@testing-library/react": "^13.4.0",
64
+ "@testing-library/react": "^16.3.0",
65
65
  "react-dom": "^18.2.0",
66
66
  "wait-for-expect": "^1.2.0"
67
67
  },
@@ -103,7 +103,7 @@
103
103
  }
104
104
  },
105
105
  "platform-feature-flags": {
106
- "ptc-enable-team-profilecard-package": {
106
+ "people-teams-kudos-launcher-z-index": {
107
107
  "type": "boolean"
108
108
  }
109
109
  }