@atlaskit/smart-card 45.17.8 → 45.17.9

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/smart-card
2
2
 
3
+ ## 45.17.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ae8892755718c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae8892755718c) -
8
+ Revert 45.17.2 - platform_smartlink_xpc_url_wrapping_context_menu
9
+ - Updated dependencies
10
+
3
11
  ## 45.17.8
4
12
 
5
13
  ### 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: "45.17.7" || ''
14
+ packageVersion: "45.17.8" || ''
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -268,10 +268,8 @@ function Component(_ref) {
268
268
  // Scope is limited to 3P click analytics.
269
269
  var handleFrameContextMenu = (0, _react.useCallback)(function (event) {
270
270
  if ((0, _platformFeatureFlags.fg)('platform_smartlink_xpc_url_wrapping')) {
271
- if ((0, _platformFeatureFlags.fg)('platform_smartlink_xpc_url_wrapping_context_menu')) {
272
- var destinationUrl = getDestinationUrl();
273
- (0, _clickHelpers.updateAnchorHref)(event, destinationUrl);
274
- }
271
+ var destinationUrl = getDestinationUrl();
272
+ (0, _clickHelpers.updateAnchorHref)(event, destinationUrl);
275
273
  }
276
274
  if (shouldFire3PClickEvent) {
277
275
  fire3PClickEvent === null || fire3PClickEvent === void 0 || fire3PClickEvent({
@@ -196,11 +196,10 @@ var HoverCardContent = function HoverCardContent(_ref4) {
196
196
  appearance: _constants.CardDisplay.HoverCardPreview,
197
197
  cardState: cardState,
198
198
  onClick: onClick
199
- }, (0, _platformFeatureFlags.fg)('platform_smartlink_xpc_url_wrapping') ? _objectSpread({
200
- onAuxClick: onAuxClick
201
- }, (0, _platformFeatureFlags.fg)('platform_smartlink_xpc_url_wrapping_context_menu') ? {
199
+ }, (0, _platformFeatureFlags.fg)('platform_smartlink_xpc_url_wrapping') ? {
200
+ onAuxClick: onAuxClick,
202
201
  onContextMenu: onContextMenu
203
- } : undefined) : undefined), {}, {
202
+ } : undefined), {}, {
204
203
  onResolve: onResolve,
205
204
  origin: 'smartLinkPreviewHoverCard',
206
205
  renderers: renderers,
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "45.17.7",
22
+ packageVersion: "45.17.8",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -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: "45.17.7" || ''
5
+ packageVersion: "45.17.8" || ''
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -259,10 +259,8 @@ function Component({
259
259
  // Scope is limited to 3P click analytics.
260
260
  const handleFrameContextMenu = useCallback(event => {
261
261
  if (fg('platform_smartlink_xpc_url_wrapping')) {
262
- if (fg('platform_smartlink_xpc_url_wrapping_context_menu')) {
263
- const destinationUrl = getDestinationUrl();
264
- updateAnchorHref(event, destinationUrl);
265
- }
262
+ const destinationUrl = getDestinationUrl();
263
+ updateAnchorHref(event, destinationUrl);
266
264
  }
267
265
  if (shouldFire3PClickEvent) {
268
266
  fire3PClickEvent === null || fire3PClickEvent === void 0 ? void 0 : fire3PClickEvent({
@@ -191,9 +191,7 @@ const HoverCardContent = ({
191
191
  onClick: onClick,
192
192
  ...(fg('platform_smartlink_xpc_url_wrapping') ? {
193
193
  onAuxClick,
194
- ...(fg('platform_smartlink_xpc_url_wrapping_context_menu') ? {
195
- onContextMenu
196
- } : undefined)
194
+ onContextMenu
197
195
  } : undefined),
198
196
  onResolve: onResolve,
199
197
  origin: 'smartLinkPreviewHoverCard',
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "45.17.7",
12
+ packageVersion: "45.17.8",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -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: "45.17.7" || ''
7
+ packageVersion: "45.17.8" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -259,10 +259,8 @@ function Component(_ref) {
259
259
  // Scope is limited to 3P click analytics.
260
260
  var handleFrameContextMenu = useCallback(function (event) {
261
261
  if (fg('platform_smartlink_xpc_url_wrapping')) {
262
- if (fg('platform_smartlink_xpc_url_wrapping_context_menu')) {
263
- var destinationUrl = getDestinationUrl();
264
- updateAnchorHref(event, destinationUrl);
265
- }
262
+ var destinationUrl = getDestinationUrl();
263
+ updateAnchorHref(event, destinationUrl);
266
264
  }
267
265
  if (shouldFire3PClickEvent) {
268
266
  fire3PClickEvent === null || fire3PClickEvent === void 0 || fire3PClickEvent({
@@ -187,11 +187,10 @@ var HoverCardContent = function HoverCardContent(_ref4) {
187
187
  appearance: CardDisplay.HoverCardPreview,
188
188
  cardState: cardState,
189
189
  onClick: onClick
190
- }, fg('platform_smartlink_xpc_url_wrapping') ? _objectSpread({
191
- onAuxClick: onAuxClick
192
- }, fg('platform_smartlink_xpc_url_wrapping_context_menu') ? {
190
+ }, fg('platform_smartlink_xpc_url_wrapping') ? {
191
+ onAuxClick: onAuxClick,
193
192
  onContextMenu: onContextMenu
194
- } : undefined) : undefined), {}, {
193
+ } : undefined), {}, {
195
194
  onResolve: onResolve,
196
195
  origin: 'smartLinkPreviewHoverCard',
197
196
  renderers: renderers,
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "45.17.7",
15
+ packageVersion: "45.17.8",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "45.17.8",
3
+ "version": "45.17.9",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/analytics-cross-product": "^2.1.0",
41
41
  "@atlaskit/analytics-gas-types": "^6.0.0",
42
42
  "@atlaskit/analytics-next": "^12.3.0",
43
- "@atlaskit/avatar": "^26.4.0",
43
+ "@atlaskit/avatar": "^27.0.0",
44
44
  "@atlaskit/avatar-group": "^13.2.0",
45
45
  "@atlaskit/badge": "^21.0.0",
46
46
  "@atlaskit/browser-apis": "^1.2.0",
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/link": "^5.0.0",
63
63
  "@atlaskit/link-analytics": "^12.1.0",
64
64
  "@atlaskit/link-client-extension": "^7.1.0",
65
- "@atlaskit/link-extractors": "^3.2.0",
65
+ "@atlaskit/link-extractors": "^4.0.0",
66
66
  "@atlaskit/link-test-helpers": "^11.0.0",
67
67
  "@atlaskit/linking-common": "^11.0.0",
68
68
  "@atlaskit/linking-types": "^15.0.0",
@@ -201,9 +201,6 @@
201
201
  "platform_smartlink_xpc_url_wrapping": {
202
202
  "type": "boolean"
203
203
  },
204
- "platform_smartlink_xpc_url_wrapping_context_menu": {
205
- "type": "boolean"
206
- },
207
204
  "rovogrowth-635-pre-auth-cta-preview-fg": {
208
205
  "type": "boolean"
209
206
  },