@atlaskit/smart-card 40.10.6 → 40.10.8
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 +17 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +16 -10
- package/dist/cjs/view/CardWithUrl/component.js +4 -4
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +3 -0
- package/dist/es2019/view/CardWithUrl/component.js +4 -4
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +2 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +14 -10
- package/dist/esm/view/CardWithUrl/component.js +4 -4
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +2 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 40.10.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1550f241c339b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1550f241c339b) -
|
|
8
|
+
Updated CardWithURL to remove clickedAt field for component non breaking issue
|
|
9
|
+
|
|
10
|
+
## 40.10.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`932f1fbaaf201`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/932f1fbaaf201) -
|
|
15
|
+
[ux] NAVX-1327 Adding error icon back for FlexibleCard inline view
|
|
16
|
+
- [`0412437292a6d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0412437292a6d) -
|
|
17
|
+
Switches linking changes for Preview Panel from FG to an experiment.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 40.10.6
|
|
4
21
|
|
|
5
22
|
### 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: "40.10.
|
|
14
|
+
packageVersion: "40.10.7"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -173,6 +173,12 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
173
173
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/link'));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
+
}), _constants.IconType.Error, {
|
|
177
|
+
default: function _default() {
|
|
178
|
+
return Promise.resolve().then(function () {
|
|
179
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/status-error--error'));
|
|
180
|
+
});
|
|
181
|
+
}
|
|
176
182
|
}), _constants.IconType.Archive, {
|
|
177
183
|
default: function _default() {
|
|
178
184
|
return Promise.resolve().then(function () {
|
|
@@ -217,7 +223,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
217
223
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/24'));
|
|
218
224
|
});
|
|
219
225
|
}
|
|
220
|
-
}), _constants.IconType.GoogleForms, {
|
|
226
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.GoogleForms, {
|
|
221
227
|
default: function _default() {
|
|
222
228
|
return Promise.resolve().then(function () {
|
|
223
229
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16'));
|
|
@@ -228,7 +234,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
228
234
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/24'));
|
|
229
235
|
});
|
|
230
236
|
}
|
|
231
|
-
}),
|
|
237
|
+
}), _constants.IconType.GoogleSheets, {
|
|
232
238
|
default: function _default() {
|
|
233
239
|
return Promise.resolve().then(function () {
|
|
234
240
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'));
|
|
@@ -327,7 +333,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
327
333
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/icon-object/glyph/commit/24'));
|
|
328
334
|
});
|
|
329
335
|
}
|
|
330
|
-
}), _constants.IconType.PullRequest, {
|
|
336
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.PullRequest, {
|
|
331
337
|
default: function _default() {
|
|
332
338
|
return Promise.resolve().then(function () {
|
|
333
339
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16'));
|
|
@@ -338,7 +344,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
338
344
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/24'));
|
|
339
345
|
});
|
|
340
346
|
}
|
|
341
|
-
}),
|
|
347
|
+
}), _constants.IconType.Repo, {
|
|
342
348
|
default: function _default() {
|
|
343
349
|
return Promise.resolve().then(function () {
|
|
344
350
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16'));
|
|
@@ -437,7 +443,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
437
443
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/24'));
|
|
438
444
|
});
|
|
439
445
|
}
|
|
440
|
-
}), _constants.IconType.Task, {
|
|
446
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Task, {
|
|
441
447
|
default: function _default() {
|
|
442
448
|
return Promise.resolve().then(function () {
|
|
443
449
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/16'));
|
|
@@ -448,7 +454,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
448
454
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24'));
|
|
449
455
|
});
|
|
450
456
|
}
|
|
451
|
-
}),
|
|
457
|
+
}), _constants.IconType.LiveDocument, {
|
|
452
458
|
default: function _default() {
|
|
453
459
|
return Promise.resolve().then(function () {
|
|
454
460
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/16'));
|
|
@@ -517,13 +523,13 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
517
523
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/migration/thumbs-up--like'));
|
|
518
524
|
});
|
|
519
525
|
}
|
|
520
|
-
}), _constants.IconType.Vote, {
|
|
526
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Vote, {
|
|
521
527
|
default: function _default() {
|
|
522
528
|
return Promise.resolve().then(function () {
|
|
523
529
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/migration/arrow-up'));
|
|
524
530
|
});
|
|
525
531
|
}
|
|
526
|
-
}),
|
|
532
|
+
}), _constants.IconType.PriorityBlocker, {
|
|
527
533
|
default: function _default() {
|
|
528
534
|
return Promise.resolve().then(function () {
|
|
529
535
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker'));
|
|
@@ -577,13 +583,13 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
577
583
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor'));
|
|
578
584
|
});
|
|
579
585
|
}
|
|
580
|
-
}), _constants.IconType.PriorityTrivial, {
|
|
586
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.PriorityTrivial, {
|
|
581
587
|
default: function _default() {
|
|
582
588
|
return Promise.resolve().then(function () {
|
|
583
589
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial'));
|
|
584
590
|
});
|
|
585
591
|
}
|
|
586
|
-
}),
|
|
592
|
+
}), _constants.IconType.PriorityUndefined, {
|
|
587
593
|
default: function _default() {
|
|
588
594
|
return Promise.resolve().then(function () {
|
|
589
595
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/migration/question-circle--question'));
|
|
@@ -9,6 +9,7 @@ exports.CardWithUrlContent = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
11
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
13
|
var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
|
|
13
14
|
var _constants = require("../../constants");
|
|
14
15
|
var _state = require("../../state");
|
|
@@ -102,11 +103,10 @@ function Component(_ref) {
|
|
|
102
103
|
action: 'clicked',
|
|
103
104
|
actionSubject: 'smartLink',
|
|
104
105
|
actionSubjectId: 'smartlinkClickAnalyticsWorkflows',
|
|
105
|
-
eventType: '
|
|
106
|
+
eventType: 'ui',
|
|
106
107
|
attributes: {
|
|
107
108
|
eventName: 'smartLinkClickAnalyticsThirdPartyWorkflows',
|
|
108
|
-
firstPartyIdentifier: firstPartyIdentifier
|
|
109
|
-
clickedAt: Date.now().toString()
|
|
109
|
+
firstPartyIdentifier: firstPartyIdentifier
|
|
110
110
|
},
|
|
111
111
|
nonPrivacySafeAttributes: {
|
|
112
112
|
thirdPartyARI: thirdPartyARI
|
|
@@ -121,7 +121,7 @@ function Component(_ref) {
|
|
|
121
121
|
// delegate the click to the preview panel handler
|
|
122
122
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
123
123
|
ari: ari
|
|
124
|
-
}) && !(0,
|
|
124
|
+
}) && !(0, _expValEquals.expValEquals)('platform_editor_preview_panel_linking_exp', 'isEnabled', true)) {
|
|
125
125
|
event.preventDefault();
|
|
126
126
|
event.stopPropagation();
|
|
127
127
|
openPreviewPanel({
|
|
@@ -12,6 +12,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
14
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
15
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
15
16
|
var _constants = require("../../../constants");
|
|
16
17
|
var _actions = require("../../../state/actions");
|
|
17
18
|
var _renderers = require("../../../state/renderers");
|
|
@@ -215,7 +216,7 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
215
216
|
onClick: onChildClick,
|
|
216
217
|
onContextMenu: onContextMenuClick,
|
|
217
218
|
"data-testid": HOVER_CARD_TRIGGRER_WRAPPER
|
|
218
|
-
}, (0,
|
|
219
|
+
}, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_linking_exp', 'isEnabled', true) ? {
|
|
219
220
|
className: HOVER_CARD_TRIGGRER_WRAPPER
|
|
220
221
|
} : {}, (0, _platformFeatureFlags.fg)('fix_a11y_violation_in_hover_card_trigger') ? {
|
|
221
222
|
role: 'button'
|
|
@@ -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: "40.10.
|
|
22
|
+
packageVersion: "40.10.7",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
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: "40.10.
|
|
5
|
+
packageVersion: "40.10.7"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -100,6 +100,9 @@ export const getLazyIcons = () => {
|
|
|
100
100
|
[IconType.Default]: {
|
|
101
101
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/link')
|
|
102
102
|
},
|
|
103
|
+
[IconType.Error]: {
|
|
104
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/status-error--error')
|
|
105
|
+
},
|
|
103
106
|
[IconType.Archive]: {
|
|
104
107
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16'),
|
|
105
108
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/24')
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
2
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
5
6
|
import { CardDisplay } from '../../constants';
|
|
6
7
|
import { useSmartLink } from '../../state';
|
|
@@ -95,11 +96,10 @@ function Component({
|
|
|
95
96
|
action: 'clicked',
|
|
96
97
|
actionSubject: 'smartLink',
|
|
97
98
|
actionSubjectId: 'smartlinkClickAnalyticsWorkflows',
|
|
98
|
-
eventType: '
|
|
99
|
+
eventType: 'ui',
|
|
99
100
|
attributes: {
|
|
100
101
|
eventName: 'smartLinkClickAnalyticsThirdPartyWorkflows',
|
|
101
|
-
firstPartyIdentifier: firstPartyIdentifier
|
|
102
|
-
clickedAt: Date.now().toString()
|
|
102
|
+
firstPartyIdentifier: firstPartyIdentifier
|
|
103
103
|
},
|
|
104
104
|
nonPrivacySafeAttributes: {
|
|
105
105
|
thirdPartyARI: thirdPartyARI
|
|
@@ -114,7 +114,7 @@ function Component({
|
|
|
114
114
|
// delegate the click to the preview panel handler
|
|
115
115
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
116
116
|
ari
|
|
117
|
-
}) && !
|
|
117
|
+
}) && !expValEquals('platform_editor_preview_panel_linking_exp', 'isEnabled', true)) {
|
|
118
118
|
event.preventDefault();
|
|
119
119
|
event.stopPropagation();
|
|
120
120
|
openPreviewPanel({
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import Popup from '@atlaskit/popup';
|
|
5
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
6
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
6
7
|
import { useSmartCardActions } from '../../../state/actions';
|
|
7
8
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -192,7 +193,7 @@ export const HoverCardComponent = ({
|
|
|
192
193
|
onClick: onChildClick,
|
|
193
194
|
onContextMenu: onContextMenuClick,
|
|
194
195
|
"data-testid": HOVER_CARD_TRIGGRER_WRAPPER
|
|
195
|
-
},
|
|
196
|
+
}, expValEqualsNoExposure('platform_editor_preview_panel_linking_exp', 'isEnabled', true) ? {
|
|
196
197
|
className: HOVER_CARD_TRIGGRER_WRAPPER
|
|
197
198
|
} : {}, fg('fix_a11y_violation_in_hover_card_trigger') ? {
|
|
198
199
|
role: 'button'
|
|
@@ -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: "40.10.
|
|
12
|
+
packageVersion: "40.10.7",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
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: "40.10.
|
|
7
|
+
packageVersion: "40.10.7"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -134,6 +134,10 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
134
134
|
default: function _default() {
|
|
135
135
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/link');
|
|
136
136
|
}
|
|
137
|
+
}), IconType.Error, {
|
|
138
|
+
default: function _default() {
|
|
139
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/status-error--error');
|
|
140
|
+
}
|
|
137
141
|
}), IconType.Archive, {
|
|
138
142
|
default: function _default() {
|
|
139
143
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16');
|
|
@@ -162,14 +166,14 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
162
166
|
large: function large() {
|
|
163
167
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/24');
|
|
164
168
|
}
|
|
165
|
-
}), IconType.GoogleForms, {
|
|
169
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.GoogleForms, {
|
|
166
170
|
default: function _default() {
|
|
167
171
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16');
|
|
168
172
|
},
|
|
169
173
|
large: function large() {
|
|
170
174
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/24');
|
|
171
175
|
}
|
|
172
|
-
}),
|
|
176
|
+
}), IconType.GoogleSheets, {
|
|
173
177
|
default: function _default() {
|
|
174
178
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16');
|
|
175
179
|
},
|
|
@@ -232,14 +236,14 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
232
236
|
large: function large() {
|
|
233
237
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/icon-object/glyph/commit/24');
|
|
234
238
|
}
|
|
235
|
-
}), IconType.PullRequest, {
|
|
239
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.PullRequest, {
|
|
236
240
|
default: function _default() {
|
|
237
241
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16');
|
|
238
242
|
},
|
|
239
243
|
large: function large() {
|
|
240
244
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/24');
|
|
241
245
|
}
|
|
242
|
-
}),
|
|
246
|
+
}), IconType.Repo, {
|
|
243
247
|
default: function _default() {
|
|
244
248
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16');
|
|
245
249
|
},
|
|
@@ -302,14 +306,14 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
302
306
|
large: function large() {
|
|
303
307
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/24');
|
|
304
308
|
}
|
|
305
|
-
}), IconType.Task, {
|
|
309
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Task, {
|
|
306
310
|
default: function _default() {
|
|
307
311
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/16');
|
|
308
312
|
},
|
|
309
313
|
large: function large() {
|
|
310
314
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24');
|
|
311
315
|
}
|
|
312
|
-
}),
|
|
316
|
+
}), IconType.LiveDocument, {
|
|
313
317
|
default: function _default() {
|
|
314
318
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/16');
|
|
315
319
|
},
|
|
@@ -358,11 +362,11 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
358
362
|
default: function _default() {
|
|
359
363
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/migration/thumbs-up--like');
|
|
360
364
|
}
|
|
361
|
-
}), IconType.Vote, {
|
|
365
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Vote, {
|
|
362
366
|
default: function _default() {
|
|
363
367
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/migration/arrow-up');
|
|
364
368
|
}
|
|
365
|
-
}),
|
|
369
|
+
}), IconType.PriorityBlocker, {
|
|
366
370
|
default: function _default() {
|
|
367
371
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
|
|
368
372
|
}
|
|
@@ -398,11 +402,11 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
398
402
|
default: function _default() {
|
|
399
403
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor');
|
|
400
404
|
}
|
|
401
|
-
}), IconType.PriorityTrivial, {
|
|
405
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.PriorityTrivial, {
|
|
402
406
|
default: function _default() {
|
|
403
407
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial');
|
|
404
408
|
}
|
|
405
|
-
}),
|
|
409
|
+
}), IconType.PriorityUndefined, {
|
|
406
410
|
default: function _default() {
|
|
407
411
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/migration/question-circle--question');
|
|
408
412
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
2
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
5
6
|
import { CardDisplay } from '../../constants';
|
|
6
7
|
import { useSmartLink } from '../../state';
|
|
@@ -93,11 +94,10 @@ function Component(_ref) {
|
|
|
93
94
|
action: 'clicked',
|
|
94
95
|
actionSubject: 'smartLink',
|
|
95
96
|
actionSubjectId: 'smartlinkClickAnalyticsWorkflows',
|
|
96
|
-
eventType: '
|
|
97
|
+
eventType: 'ui',
|
|
97
98
|
attributes: {
|
|
98
99
|
eventName: 'smartLinkClickAnalyticsThirdPartyWorkflows',
|
|
99
|
-
firstPartyIdentifier: firstPartyIdentifier
|
|
100
|
-
clickedAt: Date.now().toString()
|
|
100
|
+
firstPartyIdentifier: firstPartyIdentifier
|
|
101
101
|
},
|
|
102
102
|
nonPrivacySafeAttributes: {
|
|
103
103
|
thirdPartyARI: thirdPartyARI
|
|
@@ -112,7 +112,7 @@ function Component(_ref) {
|
|
|
112
112
|
// delegate the click to the preview panel handler
|
|
113
113
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
114
114
|
ari: ari
|
|
115
|
-
}) && !
|
|
115
|
+
}) && !expValEquals('platform_editor_preview_panel_linking_exp', 'isEnabled', true)) {
|
|
116
116
|
event.preventDefault();
|
|
117
117
|
event.stopPropagation();
|
|
118
118
|
openPreviewPanel({
|
|
@@ -5,6 +5,7 @@ var _excluded = ["aria-haspopup", "aria-expanded"];
|
|
|
5
5
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import Popup from '@atlaskit/popup';
|
|
8
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
8
9
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
9
10
|
import { useSmartCardActions } from '../../../state/actions';
|
|
10
11
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -206,7 +207,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
206
207
|
onClick: onChildClick,
|
|
207
208
|
onContextMenu: onContextMenuClick,
|
|
208
209
|
"data-testid": HOVER_CARD_TRIGGRER_WRAPPER
|
|
209
|
-
},
|
|
210
|
+
}, expValEqualsNoExposure('platform_editor_preview_panel_linking_exp', 'isEnabled', true) ? {
|
|
210
211
|
className: HOVER_CARD_TRIGGRER_WRAPPER
|
|
211
212
|
} : {}, fg('fix_a11y_violation_in_hover_card_trigger') ? {
|
|
212
213
|
role: 'button'
|
|
@@ -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: "40.10.
|
|
15
|
+
packageVersion: "40.10.7",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "40.10.
|
|
3
|
+
"version": "40.10.8",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
53
53
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
54
54
|
"@atlaskit/link-test-helpers": "^8.3.0",
|
|
55
|
-
"@atlaskit/linking-common": "^9.
|
|
55
|
+
"@atlaskit/linking-common": "^9.4.0",
|
|
56
56
|
"@atlaskit/linking-types": "^14.0.0",
|
|
57
57
|
"@atlaskit/logo": "^19.7.0",
|
|
58
58
|
"@atlaskit/lozenge": "^13.0.0",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"@atlaskit/textarea": "^8.0.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.0.0",
|
|
70
70
|
"@atlaskit/theme": "^19.0.0",
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^11.1.0",
|
|
71
72
|
"@atlaskit/tokens": "^6.0.0",
|
|
72
73
|
"@atlaskit/tooltip": "^20.4.0",
|
|
73
74
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
"uuid": "^3.1.0"
|
|
87
88
|
},
|
|
88
89
|
"peerDependencies": {
|
|
89
|
-
"@atlaskit/link-provider": "^3.
|
|
90
|
+
"@atlaskit/link-provider": "^3.6.0",
|
|
90
91
|
"react": "^18.2.0",
|
|
91
92
|
"react-dom": "^18.2.0",
|
|
92
93
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -97,7 +98,7 @@
|
|
|
97
98
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
98
99
|
"@atlaskit/css-reset": "^7.3.0",
|
|
99
100
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
100
|
-
"@atlaskit/react-ufo": "^4.
|
|
101
|
+
"@atlaskit/react-ufo": "^4.4.0",
|
|
101
102
|
"@atlaskit/ssr": "workspace:^",
|
|
102
103
|
"@atlaskit/visual-regression": "workspace:^",
|
|
103
104
|
"@atlassian/analytics-tooling": "^0.5.0",
|
|
@@ -214,9 +215,6 @@
|
|
|
214
215
|
"platform_renderer_blindspots": {
|
|
215
216
|
"type": "boolean"
|
|
216
217
|
},
|
|
217
|
-
"platform_editor_preview_panel_linking": {
|
|
218
|
-
"type": "boolean"
|
|
219
|
-
},
|
|
220
218
|
"platform-linking-enable-avatar-data-separator": {
|
|
221
219
|
"type": "boolean"
|
|
222
220
|
},
|