@atlaskit/smart-card 45.17.8 → 45.17.10
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 +14 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +2 -4
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +3 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +2 -4
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +2 -4
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +3 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.17.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 45.17.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ae8892755718c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae8892755718c) -
|
|
14
|
+
Revert 45.17.2 - platform_smartlink_xpc_url_wrapping_context_menu
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 45.17.8
|
|
4
18
|
|
|
5
19
|
### 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.
|
|
14
|
+
packageVersion: "45.17.9" || ''
|
|
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
|
-
|
|
272
|
-
|
|
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') ?
|
|
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)
|
|
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.
|
|
22
|
+
packageVersion: "45.17.9",
|
|
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.
|
|
5
|
+
packageVersion: "45.17.9" || ''
|
|
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
|
-
|
|
263
|
-
|
|
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
|
-
|
|
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.
|
|
12
|
+
packageVersion: "45.17.9",
|
|
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
|
+
packageVersion: "45.17.9" || ''
|
|
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
|
-
|
|
263
|
-
|
|
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') ?
|
|
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)
|
|
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.
|
|
15
|
+
packageVersion: "45.17.9",
|
|
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.
|
|
3
|
+
"version": "45.17.10",
|
|
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": "^
|
|
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": "^
|
|
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",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^22.2.0",
|
|
80
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
81
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
82
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
82
|
+
"@atlaskit/rovo-triggers": "^10.6.0",
|
|
83
83
|
"@atlaskit/section-message": "^10.0.0",
|
|
84
84
|
"@atlaskit/select": "^22.6.0",
|
|
85
85
|
"@atlaskit/spinner": "^20.1.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@atlaskit/textfield": "^10.0.0",
|
|
89
89
|
"@atlaskit/theme": "^27.0.0",
|
|
90
90
|
"@atlaskit/tile": "^4.0.0",
|
|
91
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
91
|
+
"@atlaskit/tmp-editor-statsig": "^143.0.0",
|
|
92
92
|
"@atlaskit/tokens": "^16.4.0",
|
|
93
93
|
"@atlaskit/tooltip": "^24.0.0",
|
|
94
94
|
"@atlaskit/ufo": "^1.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
|
},
|