@atlaskit/smart-card 43.9.1 → 43.10.0

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,12 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 43.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`707f6aee514e3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/707f6aee514e3) -
8
+ [ux] Add shouldRenderToParent prop to DropdownMenu in LozengeAction
9
+
3
10
  ## 43.9.1
4
11
 
5
12
  ### Patch Changes
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "0.0.0-development"
14
+ packageVersion: "43.9.1"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -228,13 +228,15 @@ var LozengeAction = function LozengeAction(_ref) {
228
228
  });
229
229
  }
230
230
  }, [errorMessage, handleItemClick, items, invokePreviewAction, testId, url]);
231
- return /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
231
+ return /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, (0, _extends2.default)({
232
232
  isLoading: isLoading,
233
233
  isOpen: isOpen,
234
234
  onOpenChange: handleOpenChange,
235
235
  testId: testId,
236
236
  trigger: trigger,
237
237
  zIndex: zIndex
238
- }, dropdownItemGroup);
238
+ }, (0, _platformFeatureFlags.fg)('lozenge-dropdown-prop-should-render-to-parent') ? {
239
+ shouldRenderToParent: true
240
+ } : {}), dropdownItemGroup);
239
241
  };
240
242
  var _default = exports.default = (0, _errorBoundary.default)(LozengeAction);
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "0.0.0-development",
25
+ packageVersion: "43.9.1",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "0.0.0-development"
5
+ packageVersion: "43.9.1"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -142,13 +142,15 @@ const LozengeAction = ({
142
142
  });
143
143
  }
144
144
  }, [errorMessage, handleItemClick, items, invokePreviewAction, testId, url]);
145
- return /*#__PURE__*/React.createElement(DropdownMenu, {
145
+ return /*#__PURE__*/React.createElement(DropdownMenu, _extends({
146
146
  isLoading: isLoading,
147
147
  isOpen: isOpen,
148
148
  onOpenChange: handleOpenChange,
149
149
  testId: testId,
150
150
  trigger: trigger,
151
151
  zIndex: zIndex
152
- }, dropdownItemGroup);
152
+ }, fg('lozenge-dropdown-prop-should-render-to-parent') ? {
153
+ shouldRenderToParent: true
154
+ } : {}), dropdownItemGroup);
153
155
  };
154
156
  export default withErrorBoundary(LozengeAction);
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "0.0.0-development",
15
+ packageVersion: "43.9.1",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "0.0.0-development"
7
+ packageVersion: "43.9.1"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -219,13 +219,15 @@ var LozengeAction = function LozengeAction(_ref) {
219
219
  });
220
220
  }
221
221
  }, [errorMessage, handleItemClick, items, invokePreviewAction, testId, url]);
222
- return /*#__PURE__*/React.createElement(DropdownMenu, {
222
+ return /*#__PURE__*/React.createElement(DropdownMenu, _extends({
223
223
  isLoading: isLoading,
224
224
  isOpen: isOpen,
225
225
  onOpenChange: handleOpenChange,
226
226
  testId: testId,
227
227
  trigger: trigger,
228
228
  zIndex: zIndex
229
- }, dropdownItemGroup);
229
+ }, fg('lozenge-dropdown-prop-should-render-to-parent') ? {
230
+ shouldRenderToParent: true
231
+ } : {}), dropdownItemGroup);
230
232
  };
231
233
  export default withErrorBoundary(LozengeAction);
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "0.0.0-development",
18
+ packageVersion: "43.9.1",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.9.1",
3
+ "version": "43.10.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -70,7 +70,7 @@
70
70
  "@atlaskit/textarea": "^8.1.0",
71
71
  "@atlaskit/textfield": "^8.1.0",
72
72
  "@atlaskit/theme": "^21.0.0",
73
- "@atlaskit/tmp-editor-statsig": "^13.40.0",
73
+ "@atlaskit/tmp-editor-statsig": "^13.42.0",
74
74
  "@atlaskit/tokens": "^8.2.0",
75
75
  "@atlaskit/tooltip": "^20.10.0",
76
76
  "@atlaskit/ufo": "^0.4.0",
@@ -238,6 +238,9 @@
238
238
  "hover-card-prop-should-render-to-parent": {
239
239
  "type": "boolean"
240
240
  },
241
+ "lozenge-dropdown-prop-should-render-to-parent": {
242
+ "type": "boolean"
243
+ },
241
244
  "platform-linking-smart-card-layered-link-a11y": {
242
245
  "type": "boolean"
243
246
  },