@atlaskit/share 4.18.4 → 4.18.5

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,13 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.18.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#111756](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111756)
8
+ [`c2d33a4c17472`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c2d33a4c17472) -
9
+ PTC-9281 Fix reading order in Share Dialog
10
+
3
11
  ## 4.18.4
4
12
 
5
13
  ### Patch Changes
@@ -36,6 +36,9 @@
36
36
  {
37
37
  "path": "../../../design-system/menu/afm-cc/tsconfig.json"
38
38
  },
39
+ {
40
+ "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
41
+ },
39
42
  {
40
43
  "path": "../../../design-system/popper/afm-cc/tsconfig.json"
41
44
  },
@@ -16,6 +16,7 @@ var _react = _interopRequireDefault(require("react"));
16
16
  var _react2 = require("@emotion/react");
17
17
  var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-circle"));
18
18
  var _linkFilled = _interopRequireDefault(require("@atlaskit/icon/glyph/link-filled"));
19
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
20
  var _popup = _interopRequireDefault(require("@atlaskit/popup"));
20
21
  var _primitives = require("@atlaskit/primitives");
21
22
  var _colors = require("@atlaskit/theme/colors");
@@ -165,7 +166,8 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
165
166
  content: copyTooltipText,
166
167
  position: "bottom-start"
167
168
  }, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
168
- }
169
+ },
170
+ shouldRenderToParent: (0, _platformFeatureFlags.getBooleanFF)('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
169
171
  }));
170
172
  }
171
173
  }]);
@@ -19,6 +19,7 @@ var _react2 = require("@emotion/react");
19
19
  var _reactIntlNext = require("react-intl-next");
20
20
  var _analyticsNext = require("@atlaskit/analytics-next");
21
21
  var _share = _interopRequireDefault(require("@atlaskit/icon/glyph/share"));
22
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
23
  var _popup = _interopRequireDefault(require("@atlaskit/popup"));
23
24
  var _portal = _interopRequireDefault(require("@atlaskit/portal"));
24
25
  var _constants = require("@atlaskit/theme/constants");
@@ -619,7 +620,8 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
619
620
  offset: this.calculatePopupOffset({
620
621
  isMenuItemSelected: isMenuItemSelected,
621
622
  dialogPlacement: dialogPlacement
622
- })
623
+ }),
624
+ shouldRenderToParent: (0, _platformFeatureFlags.getBooleanFF)('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
623
625
  }), (0, _react2.jsx)(_portal.default, {
624
626
  zIndex: (0, _utils.generateSelectZIndex)(dialogZIndex)
625
627
  }, (0, _react2.jsx)("div", {
@@ -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: "4.18.4"
16
+ packageVersion: "4.18.5"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -6,6 +6,7 @@ import React from 'react';
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
8
8
  import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
9
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
10
  import Popup from '@atlaskit/popup';
10
11
  import { Box, xcss } from '@atlaskit/primitives';
11
12
  import { G300 } from '@atlaskit/theme/colors';
@@ -139,7 +140,8 @@ export class CopyLinkButton extends React.Component {
139
140
  trigger: triggerProps => copyTooltipText ? jsx(Tooltip, {
140
141
  content: copyTooltipText,
141
142
  position: "bottom-start"
142
- }, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps)
143
+ }, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps),
144
+ shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
143
145
  }));
144
146
  }
145
147
  }
@@ -7,6 +7,7 @@ import { css, jsx } from '@emotion/react';
7
7
  import { FormattedMessage, injectIntl } from 'react-intl-next';
8
8
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
9
9
  import ShareIcon from '@atlaskit/icon/glyph/share';
10
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
10
11
  import Popup from '@atlaskit/popup';
11
12
  import Portal from '@atlaskit/portal';
12
13
  import { layers } from '@atlaskit/theme/constants';
@@ -566,7 +567,8 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
566
567
  offset: this.calculatePopupOffset({
567
568
  isMenuItemSelected,
568
569
  dialogPlacement
569
- })
570
+ }),
571
+ shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
570
572
  }), jsx(Portal, {
571
573
  zIndex: generateSelectZIndex(dialogZIndex)
572
574
  }, jsx("div", {
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.18.4",
4
+ packageVersion: "4.18.5",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -14,6 +14,7 @@ import React from 'react';
14
14
  import { css, jsx } from '@emotion/react';
15
15
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
16
16
  import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
17
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
17
18
  import Popup from '@atlaskit/popup';
18
19
  import { Box, xcss } from '@atlaskit/primitives';
19
20
  import { G300 } from '@atlaskit/theme/colors';
@@ -161,7 +162,8 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
161
162
  content: copyTooltipText,
162
163
  position: "bottom-start"
163
164
  }, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
164
- }
165
+ },
166
+ shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
165
167
  }));
166
168
  }
167
169
  }]);
@@ -19,6 +19,7 @@ import { css, jsx } from '@emotion/react';
19
19
  import { FormattedMessage, injectIntl } from 'react-intl-next';
20
20
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
21
21
  import ShareIcon from '@atlaskit/icon/glyph/share';
22
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
22
23
  import Popup from '@atlaskit/popup';
23
24
  import Portal from '@atlaskit/portal';
24
25
  import { layers } from '@atlaskit/theme/constants';
@@ -618,7 +619,8 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
618
619
  offset: this.calculatePopupOffset({
619
620
  isMenuItemSelected: isMenuItemSelected,
620
621
  dialogPlacement: dialogPlacement
621
- })
622
+ }),
623
+ shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
622
624
  }), jsx(Portal, {
623
625
  zIndex: generateSelectZIndex(dialogZIndex)
624
626
  }, jsx("div", {
@@ -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: "4.18.4"
9
+ packageVersion: "4.18.5"
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": "4.18.4",
3
+ "version": "4.18.5",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -47,6 +47,7 @@
47
47
  "@atlaskit/form": "^10.4.0",
48
48
  "@atlaskit/icon": "^22.4.0",
49
49
  "@atlaskit/menu": "^2.5.0",
50
+ "@atlaskit/platform-feature-flags": "^0.2.4",
50
51
  "@atlaskit/popper": "^6.1.0",
51
52
  "@atlaskit/popup": "^1.19.0",
52
53
  "@atlaskit/portal": "^4.6.0",
@@ -117,5 +118,10 @@
117
118
  ".": "./src/index.ts",
118
119
  "./clients": "./src/clients/index.ts",
119
120
  "./copy-link-button": "./src/components/CopyLinkButton.tsx"
121
+ },
122
+ "platform-feature-flags": {
123
+ "platform.enable-appropriate-reading-order-in-share-dialog_fu49": {
124
+ "type": "boolean"
125
+ }
120
126
  }
121
127
  }