@atlaskit/smart-card 45.18.1 → 45.18.2
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 +9 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +2 -6
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.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 -6
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +3 -4
- 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 -6
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +3 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.18.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9e4a665de419a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e4a665de419a) -
|
|
8
|
+
Clean up of expriment flag `platform_editor_preview_panel_linking_exp_conf` and
|
|
9
|
+
`platform_editor_preview_panel_linking_exp_jira`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 45.18.1
|
|
4
13
|
|
|
5
14
|
### 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.18.
|
|
14
|
+
packageVersion: "45.18.1" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -12,7 +12,6 @@ var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents"
|
|
|
12
12
|
var _extractSmartLinkEmbed = require("@atlaskit/link-extractors/extract-smart-link-embed");
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _useAnalyticsEvents3 = require("../../common/analytics/generated/use-analytics-events");
|
|
17
16
|
var _constants = require("../../constants");
|
|
18
17
|
var _state = require("../../state");
|
|
@@ -132,9 +131,6 @@ function Component(_ref) {
|
|
|
132
131
|
// please reach out to the 3P Workflows Team via Slack in #help-3p-connector-workflow
|
|
133
132
|
fire3PClickEvent === null || fire3PClickEvent === void 0 || fire3PClickEvent();
|
|
134
133
|
}
|
|
135
|
-
var isDisablePreviewPanel = disablePreviewPanel && (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true, {
|
|
136
|
-
exposure: true
|
|
137
|
-
});
|
|
138
134
|
if ((0, _fg.fg)('platform_smartlink_xpc_url_wrapping')) {
|
|
139
135
|
// FIXME: InlineCard, BlockCard and EmbedCard call event.preventDefault() internally
|
|
140
136
|
// before the event bubbles up to this handler. This forces us to snapshot
|
|
@@ -144,7 +140,7 @@ function Component(_ref) {
|
|
|
144
140
|
var isEventDefaultPrevented = event.defaultPrevented;
|
|
145
141
|
var canOpenPreviewPanel = !isModifierKeyPressed && ari && name && openPreviewPanel && (isPreviewPanelAvailable === null || isPreviewPanelAvailable === void 0 ? void 0 : isPreviewPanelAvailable({
|
|
146
142
|
ari: ari
|
|
147
|
-
})) && !
|
|
143
|
+
})) && !disablePreviewPanel;
|
|
148
144
|
|
|
149
145
|
// Preview panel takes priority over link navigation when available.
|
|
150
146
|
if (canOpenPreviewPanel) {
|
|
@@ -206,7 +202,7 @@ function Component(_ref) {
|
|
|
206
202
|
// delegate the click to the preview panel handler
|
|
207
203
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
208
204
|
ari: ari
|
|
209
|
-
}) && !
|
|
205
|
+
}) && !disablePreviewPanel) {
|
|
210
206
|
var _extractSmartLinkEmbe2;
|
|
211
207
|
event.preventDefault();
|
|
212
208
|
event.stopPropagation();
|
|
@@ -12,7 +12,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _popup = require("@atlaskit/popup/popup");
|
|
15
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _constants = require("../../../constants");
|
|
17
16
|
var _actions = require("../../../state/actions");
|
|
18
17
|
var _renderers = require("../../../state/renderers");
|
|
@@ -252,9 +251,9 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
252
251
|
onClick: onChildClick,
|
|
253
252
|
onContextMenu: onContextMenuClick,
|
|
254
253
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
255
|
+
,
|
|
256
|
+
className: HOVER_CARD_TRIGGER_WRAPPER,
|
|
258
257
|
onFocus: _utils.noop,
|
|
259
258
|
onBlur: _utils.noop,
|
|
260
259
|
role: "none"
|
|
@@ -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.18.
|
|
22
|
+
packageVersion: "45.18.1",
|
|
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.18.
|
|
5
|
+
packageVersion: "45.18.1" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,7 +3,6 @@ import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytic
|
|
|
3
3
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
8
7
|
import { CardDisplay } from '../../constants';
|
|
9
8
|
import { useSmartLink } from '../../state';
|
|
@@ -122,9 +121,6 @@ function Component({
|
|
|
122
121
|
// please reach out to the 3P Workflows Team via Slack in #help-3p-connector-workflow
|
|
123
122
|
fire3PClickEvent === null || fire3PClickEvent === void 0 ? void 0 : fire3PClickEvent();
|
|
124
123
|
}
|
|
125
|
-
const isDisablePreviewPanel = disablePreviewPanel && editorExperiment('platform_editor_preview_panel_linking_exp', true, {
|
|
126
|
-
exposure: true
|
|
127
|
-
});
|
|
128
124
|
if (fg('platform_smartlink_xpc_url_wrapping')) {
|
|
129
125
|
// FIXME: InlineCard, BlockCard and EmbedCard call event.preventDefault() internally
|
|
130
126
|
// before the event bubbles up to this handler. This forces us to snapshot
|
|
@@ -134,7 +130,7 @@ function Component({
|
|
|
134
130
|
const isEventDefaultPrevented = event.defaultPrevented;
|
|
135
131
|
const canOpenPreviewPanel = !isModifierKeyPressed && ari && name && openPreviewPanel && (isPreviewPanelAvailable === null || isPreviewPanelAvailable === void 0 ? void 0 : isPreviewPanelAvailable({
|
|
136
132
|
ari
|
|
137
|
-
})) && !
|
|
133
|
+
})) && !disablePreviewPanel;
|
|
138
134
|
|
|
139
135
|
// Preview panel takes priority over link navigation when available.
|
|
140
136
|
if (canOpenPreviewPanel) {
|
|
@@ -197,7 +193,7 @@ function Component({
|
|
|
197
193
|
// delegate the click to the preview panel handler
|
|
198
194
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
199
195
|
ari
|
|
200
|
-
}) && !
|
|
196
|
+
}) && !disablePreviewPanel) {
|
|
201
197
|
var _extractSmartLinkEmbe2;
|
|
202
198
|
event.preventDefault();
|
|
203
199
|
event.stopPropagation();
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { Popup } from '@atlaskit/popup/popup';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
7
6
|
import { useSmartCardActions } from '../../../state/actions';
|
|
8
7
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -231,9 +230,9 @@ export const HoverCardComponent = ({
|
|
|
231
230
|
onClick: onChildClick,
|
|
232
231
|
onContextMenu: onContextMenuClick,
|
|
233
232
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
234
|
+
,
|
|
235
|
+
className: HOVER_CARD_TRIGGER_WRAPPER,
|
|
237
236
|
onFocus: noop,
|
|
238
237
|
onBlur: noop,
|
|
239
238
|
role: "none"
|
|
@@ -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.18.
|
|
12
|
+
packageVersion: "45.18.1",
|
|
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.18.
|
|
7
|
+
packageVersion: "45.18.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -6,7 +6,6 @@ import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytic
|
|
|
6
6
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
9
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
11
10
|
import { CardDisplay } from '../../constants';
|
|
12
11
|
import { useSmartLink } from '../../state';
|
|
@@ -123,9 +122,6 @@ function Component(_ref) {
|
|
|
123
122
|
// please reach out to the 3P Workflows Team via Slack in #help-3p-connector-workflow
|
|
124
123
|
fire3PClickEvent === null || fire3PClickEvent === void 0 || fire3PClickEvent();
|
|
125
124
|
}
|
|
126
|
-
var isDisablePreviewPanel = disablePreviewPanel && editorExperiment('platform_editor_preview_panel_linking_exp', true, {
|
|
127
|
-
exposure: true
|
|
128
|
-
});
|
|
129
125
|
if (fg('platform_smartlink_xpc_url_wrapping')) {
|
|
130
126
|
// FIXME: InlineCard, BlockCard and EmbedCard call event.preventDefault() internally
|
|
131
127
|
// before the event bubbles up to this handler. This forces us to snapshot
|
|
@@ -135,7 +131,7 @@ function Component(_ref) {
|
|
|
135
131
|
var isEventDefaultPrevented = event.defaultPrevented;
|
|
136
132
|
var canOpenPreviewPanel = !isModifierKeyPressed && ari && name && openPreviewPanel && (isPreviewPanelAvailable === null || isPreviewPanelAvailable === void 0 ? void 0 : isPreviewPanelAvailable({
|
|
137
133
|
ari: ari
|
|
138
|
-
})) && !
|
|
134
|
+
})) && !disablePreviewPanel;
|
|
139
135
|
|
|
140
136
|
// Preview panel takes priority over link navigation when available.
|
|
141
137
|
if (canOpenPreviewPanel) {
|
|
@@ -197,7 +193,7 @@ function Component(_ref) {
|
|
|
197
193
|
// delegate the click to the preview panel handler
|
|
198
194
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
199
195
|
ari: ari
|
|
200
|
-
}) && !
|
|
196
|
+
}) && !disablePreviewPanel) {
|
|
201
197
|
var _extractSmartLinkEmbe2;
|
|
202
198
|
event.preventDefault();
|
|
203
199
|
event.stopPropagation();
|
|
@@ -5,7 +5,6 @@ var _excluded = ["aria-haspopup", "aria-expanded", "aria-controls"];
|
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { Popup } from '@atlaskit/popup/popup';
|
|
8
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
10
9
|
import { useSmartCardActions } from '../../../state/actions';
|
|
11
10
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -243,9 +242,9 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
243
242
|
onClick: onChildClick,
|
|
244
243
|
onContextMenu: onContextMenuClick,
|
|
245
244
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
246
|
+
,
|
|
247
|
+
className: HOVER_CARD_TRIGGER_WRAPPER,
|
|
249
248
|
onFocus: noop,
|
|
250
249
|
onBlur: noop,
|
|
251
250
|
role: "none"
|
|
@@ -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.18.
|
|
15
|
+
packageVersion: "45.18.1",
|
|
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.18.
|
|
3
|
+
"version": "45.18.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/lozenge": "^15.3.0",
|
|
71
71
|
"@atlaskit/menu": "^10.1.0",
|
|
72
72
|
"@atlaskit/modal-dialog": "^16.5.0",
|
|
73
|
-
"@atlaskit/motion": "^8.
|
|
73
|
+
"@atlaskit/motion": "^8.4.0",
|
|
74
74
|
"@atlaskit/object": "^2.3.0",
|
|
75
75
|
"@atlaskit/outbound-auth-flow-client": "^4.1.0",
|
|
76
76
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^22.4.0",
|
|
80
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
81
|
"@atlaskit/react-ufo": "^7.7.0",
|
|
82
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
82
|
+
"@atlaskit/rovo-triggers": "^10.18.0",
|
|
83
83
|
"@atlaskit/section-message": "^10.1.0",
|
|
84
84
|
"@atlaskit/select": "^22.8.0",
|
|
85
85
|
"@atlaskit/spinner": "^20.3.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@atlaskit/textfield": "^10.1.0",
|
|
90
90
|
"@atlaskit/theme": "^28.1.0",
|
|
91
91
|
"@atlaskit/tile": "^4.1.0",
|
|
92
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
92
|
+
"@atlaskit/tmp-editor-statsig": "^158.0.0",
|
|
93
93
|
"@atlaskit/tokens": "^16.8.0",
|
|
94
94
|
"@atlaskit/tooltip": "^24.2.0",
|
|
95
95
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@atlaskit/range": "^12.1.0",
|
|
129
129
|
"@atlaskit/ssr": "workspace:^",
|
|
130
130
|
"@atlaskit/toggle": "^17.2.0",
|
|
131
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
131
|
+
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
132
132
|
"@atlassian/analytics-tooling": "workspace:^",
|
|
133
133
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
134
134
|
"@atlassian/gemini": "^1.52.0",
|