@atlaskit/smart-card 44.11.1 → 44.11.3
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 +13 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +2 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +2 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.11.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 44.11.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`cc55d170c2368`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cc55d170c2368) -
|
|
14
|
+
Clean up fix_hover_card_on_focus_a11y
|
|
15
|
+
|
|
3
16
|
## 44.11.1
|
|
4
17
|
|
|
5
18
|
### 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: "44.11.
|
|
14
|
+
packageVersion: "44.11.2" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
15
14
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _constants = require("../../../constants");
|
|
@@ -247,7 +246,7 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
247
246
|
onMouseOver: initShowCard,
|
|
248
247
|
onMouseLeave: initHideCard,
|
|
249
248
|
onMouseMove: setMousePosition,
|
|
250
|
-
onKeyDown:
|
|
249
|
+
onKeyDown: handleKeyDown,
|
|
251
250
|
onClick: onChildClick,
|
|
252
251
|
onContextMenu: onContextMenuClick,
|
|
253
252
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
@@ -268,7 +267,7 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
268
267
|
return /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
269
268
|
testId: "hover-card",
|
|
270
269
|
isOpen: isOpen && canOpen,
|
|
271
|
-
onClose:
|
|
270
|
+
onClose: initHideCard,
|
|
272
271
|
placement: "bottom-start",
|
|
273
272
|
offset: popupOffset.current,
|
|
274
273
|
autoFocus: false,
|
|
@@ -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: "44.11.
|
|
25
|
+
packageVersion: "44.11.2",
|
|
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: "44.11.
|
|
5
|
+
packageVersion: "44.11.2" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Popup from '@atlaskit/popup';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
@@ -221,7 +220,7 @@ export const HoverCardComponent = ({
|
|
|
221
220
|
onMouseOver: initShowCard,
|
|
222
221
|
onMouseLeave: initHideCard,
|
|
223
222
|
onMouseMove: setMousePosition,
|
|
224
|
-
onKeyDown:
|
|
223
|
+
onKeyDown: handleKeyDown,
|
|
225
224
|
onClick: onChildClick,
|
|
226
225
|
onContextMenu: onContextMenuClick,
|
|
227
226
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
@@ -239,7 +238,7 @@ export const HoverCardComponent = ({
|
|
|
239
238
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
240
239
|
testId: "hover-card",
|
|
241
240
|
isOpen: isOpen && canOpen,
|
|
242
|
-
onClose:
|
|
241
|
+
onClose: initHideCard,
|
|
243
242
|
placement: "bottom-start",
|
|
244
243
|
offset: popupOffset.current,
|
|
245
244
|
autoFocus: false,
|
|
@@ -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: "44.11.
|
|
15
|
+
packageVersion: "44.11.2",
|
|
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: "44.11.
|
|
7
|
+
packageVersion: "44.11.2" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
var _excluded = ["aria-haspopup", "aria-expanded"];
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import Popup from '@atlaskit/popup';
|
|
8
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
@@ -238,7 +237,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
238
237
|
onMouseOver: initShowCard,
|
|
239
238
|
onMouseLeave: initHideCard,
|
|
240
239
|
onMouseMove: setMousePosition,
|
|
241
|
-
onKeyDown:
|
|
240
|
+
onKeyDown: handleKeyDown,
|
|
242
241
|
onClick: onChildClick,
|
|
243
242
|
onContextMenu: onContextMenuClick,
|
|
244
243
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
@@ -259,7 +258,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
259
258
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
260
259
|
testId: "hover-card",
|
|
261
260
|
isOpen: isOpen && canOpen,
|
|
262
|
-
onClose:
|
|
261
|
+
onClose: initHideCard,
|
|
263
262
|
placement: "bottom-start",
|
|
264
263
|
offset: popupOffset.current,
|
|
265
264
|
autoFocus: false,
|
|
@@ -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: "44.11.
|
|
18
|
+
packageVersion: "44.11.2",
|
|
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": "44.11.
|
|
3
|
+
"version": "44.11.3",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@atlaskit/textfield": "^8.3.0",
|
|
87
87
|
"@atlaskit/theme": "^23.2.0",
|
|
88
88
|
"@atlaskit/tile": "^1.1.0",
|
|
89
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
89
|
+
"@atlaskit/tmp-editor-statsig": "^81.0.0",
|
|
90
90
|
"@atlaskit/tokens": "^13.0.0",
|
|
91
91
|
"@atlaskit/tooltip": "^22.2.0",
|
|
92
92
|
"@atlaskit/ufo": "^0.5.0",
|
|
@@ -231,9 +231,6 @@
|
|
|
231
231
|
"jpx-1074-smart-links-iframe": {
|
|
232
232
|
"type": "boolean"
|
|
233
233
|
},
|
|
234
|
-
"fix_hover_card_on_focus_a11y": {
|
|
235
|
-
"type": "boolean"
|
|
236
|
-
},
|
|
237
234
|
"platform_sl_3p_preauth_better_hovercard_killswitch": {
|
|
238
235
|
"type": "boolean"
|
|
239
236
|
},
|