@atlaskit/give-kudos 4.15.1 → 4.16.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
  # @atlassian/give-kudos
2
2
 
3
+ ## 4.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`280bad8989ff3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/280bad8989ff3) -
8
+ Clean up people-teams-kudos-launcher-z-index feature gate
9
+
10
+ ## 4.16.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`09ffc074f98f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/09ffc074f98f9) -
15
+ Update i18n NPM package versions for townsquare,team-central (Group 10)
16
+
3
17
  ## 4.15.1
4
18
 
5
19
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -24,7 +24,6 @@ var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-ext
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"));
27
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
28
27
  var _portal = _interopRequireDefault(require("@atlaskit/portal"));
29
28
  var _compiled = require("@atlaskit/primitives/compiled");
30
29
  var _constants = require("@atlaskit/theme/constants");
@@ -65,7 +64,6 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
65
64
  isActionsEnabled = props.isActionsEnabled,
66
65
  _props$zIndex = props.zIndex,
67
66
  zIndex = _props$zIndex === void 0 ? _constants.layers.modal() : _props$zIndex;
68
- var zIndexNext = (0, _platformFeatureFlags.fg)('people-teams-kudos-launcher-z-index') ? zIndex : _constants.layers.modal();
69
67
  var shouldBlockTransition = (0, _react.useCallback)(function (e) {
70
68
  e.preventDefault();
71
69
  e.returnValue = intl.formatMessage(_messages.default.unsavedKudosWarning);
@@ -253,7 +251,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
253
251
  return /*#__PURE__*/React.createElement(_drawer.Drawer, {
254
252
  width: "full",
255
253
  isOpen: props.isOpen,
256
- zIndex: zIndexNext,
254
+ zIndex: zIndex,
257
255
  onClose: handleCloseDrawerClicked
258
256
  }, /*#__PURE__*/React.createElement("div", {
259
257
  className: (0, _runtime.ax)([styles.drawerCloseButtonContainer])
@@ -275,7 +273,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
275
273
  // eslint-disable-next-line react-hooks/exhaustive-deps
276
274
  }, [(_props$recipient4 = props.recipient) === null || _props$recipient4 === void 0 ? void 0 : _props$recipient4.recipientId, props.isOpen]);
277
275
  return /*#__PURE__*/React.createElement(_portal.default, {
278
- zIndex: zIndexNext
276
+ zIndex: zIndex
279
277
  }, /*#__PURE__*/React.createElement("div", {
280
278
  "data-testid": testId
281
279
  }, /*#__PURE__*/React.createElement(_modalDialog.ModalTransition, null, isCloseConfirmModalOpen && /*#__PURE__*/React.createElement(_modalDialog.default, {
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./main.compiled.css";
4
4
  import * as React from 'react';
@@ -14,7 +14,6 @@ import LinkExternalIcon from '@atlaskit/icon/core/link-external';
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';
17
- import { fg } from '@atlaskit/platform-feature-flags';
18
17
  import Portal from '@atlaskit/portal';
19
18
  import { Inline } from '@atlaskit/primitives/compiled';
20
19
  import { layers } from '@atlaskit/theme/constants';
@@ -48,7 +47,6 @@ const GiveKudosLauncher = props => {
48
47
  isActionsEnabled,
49
48
  zIndex = layers.modal()
50
49
  } = props;
51
- const zIndexNext = fg('people-teams-kudos-launcher-z-index') ? zIndex : layers.modal();
52
50
  const shouldBlockTransition = useCallback(e => {
53
51
  e.preventDefault();
54
52
  e.returnValue = intl.formatMessage(messages.unsavedKudosWarning);
@@ -234,7 +232,7 @@ const GiveKudosLauncher = props => {
234
232
  return /*#__PURE__*/React.createElement(Drawer, {
235
233
  width: "full",
236
234
  isOpen: props.isOpen,
237
- zIndex: zIndexNext,
235
+ zIndex: zIndex,
238
236
  onClose: handleCloseDrawerClicked
239
237
  }, /*#__PURE__*/React.createElement("div", {
240
238
  className: ax([styles.drawerCloseButtonContainer])
@@ -256,7 +254,7 @@ const GiveKudosLauncher = props => {
256
254
  // eslint-disable-next-line react-hooks/exhaustive-deps
257
255
  }, [(_props$recipient4 = props.recipient) === null || _props$recipient4 === void 0 ? void 0 : _props$recipient4.recipientId, props.isOpen]);
258
256
  return /*#__PURE__*/React.createElement(Portal, {
259
- zIndex: zIndexNext
257
+ zIndex: zIndex
260
258
  }, /*#__PURE__*/React.createElement("div", {
261
259
  "data-testid": testId
262
260
  }, /*#__PURE__*/React.createElement(ModalTransition, null, isCloseConfirmModalOpen && /*#__PURE__*/React.createElement(Modal, {
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
@@ -18,7 +18,6 @@ import LinkExternalIcon from '@atlaskit/icon/core/link-external';
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';
21
- import { fg } from '@atlaskit/platform-feature-flags';
22
21
  import Portal from '@atlaskit/portal';
23
22
  import { Inline } from '@atlaskit/primitives/compiled';
24
23
  import { layers } from '@atlaskit/theme/constants';
@@ -56,7 +55,6 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
56
55
  isActionsEnabled = props.isActionsEnabled,
57
56
  _props$zIndex = props.zIndex,
58
57
  zIndex = _props$zIndex === void 0 ? layers.modal() : _props$zIndex;
59
- var zIndexNext = fg('people-teams-kudos-launcher-z-index') ? zIndex : layers.modal();
60
58
  var shouldBlockTransition = useCallback(function (e) {
61
59
  e.preventDefault();
62
60
  e.returnValue = intl.formatMessage(messages.unsavedKudosWarning);
@@ -244,7 +242,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
244
242
  return /*#__PURE__*/React.createElement(Drawer, {
245
243
  width: "full",
246
244
  isOpen: props.isOpen,
247
- zIndex: zIndexNext,
245
+ zIndex: zIndex,
248
246
  onClose: handleCloseDrawerClicked
249
247
  }, /*#__PURE__*/React.createElement("div", {
250
248
  className: ax([styles.drawerCloseButtonContainer])
@@ -266,7 +264,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
266
264
  // eslint-disable-next-line react-hooks/exhaustive-deps
267
265
  }, [(_props$recipient4 = props.recipient) === null || _props$recipient4 === void 0 ? void 0 : _props$recipient4.recipientId, props.isOpen]);
268
266
  return /*#__PURE__*/React.createElement(Portal, {
269
- zIndex: zIndexNext
267
+ zIndex: zIndex
270
268
  }, /*#__PURE__*/React.createElement("div", {
271
269
  "data-testid": testId
272
270
  }, /*#__PURE__*/React.createElement(ModalTransition, null, isCloseConfirmModalOpen && /*#__PURE__*/React.createElement(Modal, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/give-kudos",
3
- "version": "4.15.1",
3
+ "version": "4.16.1",
4
4
  "description": "Give Kudos experience ",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "typecheck": "NODE_OPTIONS=--max-old-space-size=4096 tsc --noEmit --project ./tsconfig.json"
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/afm-i18n-platform-team-central-give-kudos": "2.53.0",
40
+ "@atlaskit/afm-i18n-platform-team-central-give-kudos": "2.56.0",
41
41
  "@atlaskit/analytics-next": "^11.1.0",
42
42
  "@atlaskit/button": "^23.10.0",
43
43
  "@atlaskit/css": "^0.19.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/portal": "^5.2.0",
51
51
  "@atlaskit/primitives": "^18.0.0",
52
52
  "@atlaskit/theme": "^22.0.0",
53
- "@atlaskit/tokens": "^11.0.0",
53
+ "@atlaskit/tokens": "^11.1.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },
@@ -101,10 +101,5 @@
101
101
  "import-no-extraneous-disable-for-examples-and-docs"
102
102
  ]
103
103
  }
104
- },
105
- "platform-feature-flags": {
106
- "people-teams-kudos-launcher-z-index": {
107
- "type": "boolean"
108
- }
109
104
  }
110
105
  }