@atlaskit/smart-card 32.7.6 → 32.7.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 +16 -0
- package/dist/cjs/extractors/flexible/actions/index.js +5 -7
- package/dist/cjs/state/actions/index.js +13 -38
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +54 -305
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
- package/dist/cjs/utils/analytics/analytics.js +28 -304
- package/dist/cjs/utils/analytics/index.js +0 -66
- package/dist/cjs/utils/mocks.js +5 -7
- package/dist/cjs/view/BlockCard/views/styled.js +1 -1
- package/dist/cjs/view/Card/index.js +5 -7
- package/dist/cjs/view/CardWithUrl/component.js +7 -22
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +34 -34
- package/dist/cjs/view/FlexibleCard/components/utils.js +5 -5
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/cjs/view/HoverCard/styled.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.js +8 -11
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +10 -13
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +7 -10
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +5 -7
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +5 -7
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/LinkView/index.js +5 -7
- package/dist/cjs/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/es2019/state/actions/index.js +13 -38
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -238
- package/dist/es2019/utils/analytics/analytics.js +2 -286
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/view/BlockCard/views/styled.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +8 -23
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/es2019/view/HoverCard/styled.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/esm/extractors/flexible/actions/index.js +5 -7
- package/dist/esm/state/actions/index.js +13 -38
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +55 -306
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
- package/dist/esm/utils/analytics/analytics.js +27 -303
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/utils/mocks.js +5 -7
- package/dist/esm/view/BlockCard/views/styled.js +1 -1
- package/dist/esm/view/Card/index.js +5 -7
- package/dist/esm/view/CardWithUrl/component.js +8 -23
- package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +34 -34
- package/dist/esm/view/FlexibleCard/components/utils.js +5 -5
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/esm/view/HoverCard/styled.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.js +8 -11
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +10 -13
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +7 -10
- package/dist/esm/view/InlineCard/ResolvedView/index.js +5 -7
- package/dist/esm/view/InlineCard/ResolvingView/index.js +5 -7
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/LinkView/index.js +5 -7
- package/dist/esm/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
- package/dist/types/state/hooks/useSmartLink.d.ts +0 -12
- package/dist/types/utils/analytics/analytics.d.ts +1 -51
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +0 -60
- package/dist/types/utils/mocks.d.ts +0 -12
- package/dist/types/view/common/UnauthorisedViewContent.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -12
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -51
- package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -60
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -12
- package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +1 -1
- package/package.json +2 -5
|
@@ -4,20 +4,18 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.uiRenderSuccessEvent = exports.uiRenderFailedEvent = exports.uiActionClickedEvent = exports.invokeSucceededEvent = exports.invokeFailedEvent = exports.fireSmartLinkEvent = exports.context = exports.TrackQuickActionType = exports.TrackQuickActionFailureReason = exports.SmartLinkEvents = exports.ANALYTICS_CHANNEL = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
8
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var _linkingTypes = require("@atlaskit/linking-types");
|
|
12
11
|
var _performance = require("../performance");
|
|
13
|
-
var _SmartLinkActionTypeT, _SmartLinkActionTypeU;
|
|
14
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
14
|
var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
17
15
|
var context = exports.context = {
|
|
18
16
|
componentName: 'smart-cards',
|
|
19
17
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "32.7.
|
|
18
|
+
packageVersion: "32.7.8"
|
|
21
19
|
};
|
|
22
20
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
23
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -29,8 +27,6 @@ var TrackQuickActionFailureReason = exports.TrackQuickActionFailureReason = /*#_
|
|
|
29
27
|
TrackQuickActionFailureReason["UnknownError"] = "UnknownError";
|
|
30
28
|
return TrackQuickActionFailureReason;
|
|
31
29
|
}({});
|
|
32
|
-
var SmartLinkActionTypeTrackingEventMapper = exports.SmartLinkActionTypeTrackingEventMapper = (_SmartLinkActionTypeT = {}, (0, _defineProperty2.default)(_SmartLinkActionTypeT, _linkingTypes.SmartLinkActionType.FollowEntityAction, 'Follow'), (0, _defineProperty2.default)(_SmartLinkActionTypeT, _linkingTypes.SmartLinkActionType.StatusUpdateAction, 'StatusUpdate'), (0, _defineProperty2.default)(_SmartLinkActionTypeT, _linkingTypes.SmartLinkActionType.UnfollowEntityAction, 'Unfollow'), _SmartLinkActionTypeT);
|
|
33
|
-
var SmartLinkActionTypeUiEventMapper = exports.SmartLinkActionTypeUiEventMapper = (_SmartLinkActionTypeU = {}, (0, _defineProperty2.default)(_SmartLinkActionTypeU, _linkingTypes.SmartLinkActionType.FollowEntityAction, 'smartLinkFollowButton'), (0, _defineProperty2.default)(_SmartLinkActionTypeU, _linkingTypes.SmartLinkActionType.UnfollowEntityAction, 'smartLinkFollowButton'), _SmartLinkActionTypeU);
|
|
34
30
|
var uiActionSubjectIds = {
|
|
35
31
|
DownloadAction: 'downloadDocument',
|
|
36
32
|
PreviewAction: 'invokePreviewScreen',
|
|
@@ -41,7 +37,7 @@ var SmartLinkEvents = exports.SmartLinkEvents = /*#__PURE__*/function () {
|
|
|
41
37
|
function SmartLinkEvents() {
|
|
42
38
|
(0, _classCallCheck2.default)(this, SmartLinkEvents);
|
|
43
39
|
}
|
|
44
|
-
(0, _createClass2.default)(SmartLinkEvents, [{
|
|
40
|
+
return (0, _createClass2.default)(SmartLinkEvents, [{
|
|
45
41
|
key: "insertSmartLink",
|
|
46
42
|
value: function insertSmartLink(url, type, createAnalyticsEvent) {
|
|
47
43
|
fireSmartLinkEvent({
|
|
@@ -57,7 +53,6 @@ var SmartLinkEvents = exports.SmartLinkEvents = /*#__PURE__*/function () {
|
|
|
57
53
|
}, createAnalyticsEvent);
|
|
58
54
|
}
|
|
59
55
|
}]);
|
|
60
|
-
return SmartLinkEvents;
|
|
61
56
|
}();
|
|
62
57
|
var fireSmartLinkEvent = exports.fireSmartLinkEvent = function fireSmartLinkEvent(payload, createAnalyticsEvent) {
|
|
63
58
|
if (createAnalyticsEvent) {
|
|
@@ -120,100 +115,15 @@ var invokeFailedEvent = exports.invokeFailedEvent = function invokeFailedEvent(_
|
|
|
120
115
|
})
|
|
121
116
|
};
|
|
122
117
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
*/
|
|
127
|
-
var uiAuthEvent = exports.uiAuthEvent = function uiAuthEvent(_ref3) {
|
|
128
|
-
var definitionId = _ref3.definitionId,
|
|
118
|
+
var uiActionClickedEvent = exports.uiActionClickedEvent = function uiActionClickedEvent(_ref3) {
|
|
119
|
+
var id = _ref3.id,
|
|
120
|
+
actionType = _ref3.actionType,
|
|
129
121
|
extensionKey = _ref3.extensionKey,
|
|
122
|
+
display = _ref3.display,
|
|
123
|
+
definitionId = _ref3.definitionId,
|
|
130
124
|
destinationProduct = _ref3.destinationProduct,
|
|
131
125
|
destinationSubproduct = _ref3.destinationSubproduct,
|
|
132
|
-
location = _ref3.location
|
|
133
|
-
display = _ref3.display;
|
|
134
|
-
return {
|
|
135
|
-
action: 'clicked',
|
|
136
|
-
actionSubject: 'button',
|
|
137
|
-
actionSubjectId: 'connectAccount',
|
|
138
|
-
eventType: 'ui',
|
|
139
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
140
|
-
definitionId: definitionId,
|
|
141
|
-
extensionKey: extensionKey,
|
|
142
|
-
destinationProduct: destinationProduct,
|
|
143
|
-
destinationSubproduct: destinationSubproduct,
|
|
144
|
-
location: location,
|
|
145
|
-
display: display
|
|
146
|
-
})
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
152
|
-
*/
|
|
153
|
-
var uiAuthAlternateAccountEvent = exports.uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_ref4) {
|
|
154
|
-
var definitionId = _ref4.definitionId,
|
|
155
|
-
extensionKey = _ref4.extensionKey,
|
|
156
|
-
destinationProduct = _ref4.destinationProduct,
|
|
157
|
-
destinationSubproduct = _ref4.destinationSubproduct,
|
|
158
|
-
location = _ref4.location,
|
|
159
|
-
display = _ref4.display;
|
|
160
|
-
return {
|
|
161
|
-
action: 'clicked',
|
|
162
|
-
actionSubject: 'smartLink',
|
|
163
|
-
actionSubjectId: 'tryAnotherAccount',
|
|
164
|
-
eventType: 'ui',
|
|
165
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
166
|
-
definitionId: definitionId,
|
|
167
|
-
extensionKey: extensionKey,
|
|
168
|
-
destinationProduct: destinationProduct,
|
|
169
|
-
destinationSubproduct: destinationSubproduct,
|
|
170
|
-
location: location,
|
|
171
|
-
display: display
|
|
172
|
-
})
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
178
|
-
*/
|
|
179
|
-
var uiCardClickedEvent = exports.uiCardClickedEvent = function uiCardClickedEvent(_ref5) {
|
|
180
|
-
var id = _ref5.id,
|
|
181
|
-
display = _ref5.display,
|
|
182
|
-
status = _ref5.status,
|
|
183
|
-
definitionId = _ref5.definitionId,
|
|
184
|
-
extensionKey = _ref5.extensionKey,
|
|
185
|
-
isModifierKeyPressed = _ref5.isModifierKeyPressed,
|
|
186
|
-
location = _ref5.location,
|
|
187
|
-
destinationProduct = _ref5.destinationProduct,
|
|
188
|
-
destinationSubproduct = _ref5.destinationSubproduct,
|
|
189
|
-
actionSubjectId = _ref5.actionSubjectId;
|
|
190
|
-
return {
|
|
191
|
-
action: 'clicked',
|
|
192
|
-
actionSubject: 'smartLink',
|
|
193
|
-
actionSubjectId: actionSubjectId,
|
|
194
|
-
eventType: 'ui',
|
|
195
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
196
|
-
id: id,
|
|
197
|
-
status: status,
|
|
198
|
-
definitionId: definitionId,
|
|
199
|
-
extensionKey: extensionKey,
|
|
200
|
-
display: display,
|
|
201
|
-
isModifierKeyPressed: isModifierKeyPressed,
|
|
202
|
-
location: location,
|
|
203
|
-
destinationProduct: destinationProduct,
|
|
204
|
-
destinationSubproduct: destinationSubproduct
|
|
205
|
-
})
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
var uiActionClickedEvent = exports.uiActionClickedEvent = function uiActionClickedEvent(_ref6) {
|
|
209
|
-
var id = _ref6.id,
|
|
210
|
-
actionType = _ref6.actionType,
|
|
211
|
-
extensionKey = _ref6.extensionKey,
|
|
212
|
-
display = _ref6.display,
|
|
213
|
-
definitionId = _ref6.definitionId,
|
|
214
|
-
destinationProduct = _ref6.destinationProduct,
|
|
215
|
-
destinationSubproduct = _ref6.destinationSubproduct,
|
|
216
|
-
location = _ref6.location;
|
|
126
|
+
location = _ref3.location;
|
|
217
127
|
return {
|
|
218
128
|
action: 'clicked',
|
|
219
129
|
actionSubject: 'button',
|
|
@@ -231,40 +141,15 @@ var uiActionClickedEvent = exports.uiActionClickedEvent = function uiActionClick
|
|
|
231
141
|
})
|
|
232
142
|
};
|
|
233
143
|
};
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
destinationSubproduct = _ref7.destinationSubproduct,
|
|
244
|
-
location = _ref7.location;
|
|
245
|
-
return {
|
|
246
|
-
action: 'closed',
|
|
247
|
-
actionSubject: 'consentModal',
|
|
248
|
-
eventType: 'ui',
|
|
249
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
250
|
-
extensionKey: extensionKey,
|
|
251
|
-
definitionId: definitionId,
|
|
252
|
-
destinationProduct: destinationProduct,
|
|
253
|
-
destinationSubproduct: destinationSubproduct,
|
|
254
|
-
location: location,
|
|
255
|
-
display: display
|
|
256
|
-
})
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
var uiRenderSuccessEvent = exports.uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref8) {
|
|
260
|
-
var display = _ref8.display,
|
|
261
|
-
status = _ref8.status,
|
|
262
|
-
extensionKey = _ref8.extensionKey,
|
|
263
|
-
definitionId = _ref8.definitionId,
|
|
264
|
-
destinationProduct = _ref8.destinationProduct,
|
|
265
|
-
destinationSubproduct = _ref8.destinationSubproduct,
|
|
266
|
-
location = _ref8.location,
|
|
267
|
-
canBeDatasource = _ref8.canBeDatasource;
|
|
144
|
+
var uiRenderSuccessEvent = exports.uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref4) {
|
|
145
|
+
var display = _ref4.display,
|
|
146
|
+
status = _ref4.status,
|
|
147
|
+
extensionKey = _ref4.extensionKey,
|
|
148
|
+
definitionId = _ref4.definitionId,
|
|
149
|
+
destinationProduct = _ref4.destinationProduct,
|
|
150
|
+
destinationSubproduct = _ref4.destinationSubproduct,
|
|
151
|
+
location = _ref4.location,
|
|
152
|
+
canBeDatasource = _ref4.canBeDatasource;
|
|
268
153
|
return {
|
|
269
154
|
action: 'renderSuccess',
|
|
270
155
|
actionSubject: 'smartLink',
|
|
@@ -281,15 +166,15 @@ var uiRenderSuccessEvent = exports.uiRenderSuccessEvent = function uiRenderSucce
|
|
|
281
166
|
})
|
|
282
167
|
};
|
|
283
168
|
};
|
|
284
|
-
var uiRenderFailedEvent = exports.uiRenderFailedEvent = function uiRenderFailedEvent(
|
|
285
|
-
var display =
|
|
286
|
-
error =
|
|
287
|
-
errorInfo =
|
|
288
|
-
extensionKey =
|
|
289
|
-
definitionId =
|
|
290
|
-
destinationProduct =
|
|
291
|
-
destinationSubproduct =
|
|
292
|
-
location =
|
|
169
|
+
var uiRenderFailedEvent = exports.uiRenderFailedEvent = function uiRenderFailedEvent(_ref5) {
|
|
170
|
+
var display = _ref5.display,
|
|
171
|
+
error = _ref5.error,
|
|
172
|
+
errorInfo = _ref5.errorInfo,
|
|
173
|
+
extensionKey = _ref5.extensionKey,
|
|
174
|
+
definitionId = _ref5.definitionId,
|
|
175
|
+
destinationProduct = _ref5.destinationProduct,
|
|
176
|
+
destinationSubproduct = _ref5.destinationSubproduct,
|
|
177
|
+
location = _ref5.location;
|
|
293
178
|
return {
|
|
294
179
|
actionSubject: 'smartLink',
|
|
295
180
|
action: 'renderFailed',
|
|
@@ -305,165 +190,4 @@ var uiRenderFailedEvent = exports.uiRenderFailedEvent = function uiRenderFailedE
|
|
|
305
190
|
location: location
|
|
306
191
|
})
|
|
307
192
|
};
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
312
|
-
*/
|
|
313
|
-
var uiHoverCardViewedEvent = exports.uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref10) {
|
|
314
|
-
var id = _ref10.id,
|
|
315
|
-
previewDisplay = _ref10.previewDisplay,
|
|
316
|
-
extensionKey = _ref10.extensionKey,
|
|
317
|
-
definitionId = _ref10.definitionId,
|
|
318
|
-
destinationProduct = _ref10.destinationProduct,
|
|
319
|
-
destinationSubproduct = _ref10.destinationSubproduct,
|
|
320
|
-
location = _ref10.location,
|
|
321
|
-
previewInvokeMethod = _ref10.previewInvokeMethod,
|
|
322
|
-
status = _ref10.status;
|
|
323
|
-
return {
|
|
324
|
-
action: 'viewed',
|
|
325
|
-
actionSubject: 'hoverCard',
|
|
326
|
-
eventType: 'ui',
|
|
327
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
328
|
-
id: id,
|
|
329
|
-
previewDisplay: previewDisplay,
|
|
330
|
-
extensionKey: extensionKey,
|
|
331
|
-
definitionId: definitionId,
|
|
332
|
-
destinationProduct: destinationProduct,
|
|
333
|
-
destinationSubproduct: destinationSubproduct,
|
|
334
|
-
location: location,
|
|
335
|
-
previewInvokeMethod: previewInvokeMethod,
|
|
336
|
-
status: status
|
|
337
|
-
})
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
343
|
-
*/
|
|
344
|
-
var uiHoverCardDismissedEvent = exports.uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref11) {
|
|
345
|
-
var id = _ref11.id,
|
|
346
|
-
previewDisplay = _ref11.previewDisplay,
|
|
347
|
-
hoverTime = _ref11.hoverTime,
|
|
348
|
-
extensionKey = _ref11.extensionKey,
|
|
349
|
-
definitionId = _ref11.definitionId,
|
|
350
|
-
destinationProduct = _ref11.destinationProduct,
|
|
351
|
-
destinationSubproduct = _ref11.destinationSubproduct,
|
|
352
|
-
location = _ref11.location,
|
|
353
|
-
previewInvokeMethod = _ref11.previewInvokeMethod,
|
|
354
|
-
status = _ref11.status;
|
|
355
|
-
return {
|
|
356
|
-
action: 'dismissed',
|
|
357
|
-
actionSubject: 'hoverCard',
|
|
358
|
-
eventType: 'ui',
|
|
359
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
360
|
-
id: id,
|
|
361
|
-
previewDisplay: previewDisplay,
|
|
362
|
-
hoverTime: hoverTime,
|
|
363
|
-
extensionKey: extensionKey,
|
|
364
|
-
definitionId: definitionId,
|
|
365
|
-
destinationProduct: destinationProduct,
|
|
366
|
-
destinationSubproduct: destinationSubproduct,
|
|
367
|
-
location: location,
|
|
368
|
-
previewInvokeMethod: previewInvokeMethod,
|
|
369
|
-
status: status
|
|
370
|
-
})
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
376
|
-
*/
|
|
377
|
-
var uiHoverCardOpenLinkClickedEvent = exports.uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref12) {
|
|
378
|
-
var id = _ref12.id,
|
|
379
|
-
previewDisplay = _ref12.previewDisplay,
|
|
380
|
-
extensionKey = _ref12.extensionKey,
|
|
381
|
-
definitionId = _ref12.definitionId,
|
|
382
|
-
destinationProduct = _ref12.destinationProduct,
|
|
383
|
-
destinationSubproduct = _ref12.destinationSubproduct,
|
|
384
|
-
location = _ref12.location,
|
|
385
|
-
previewInvokeMethod = _ref12.previewInvokeMethod;
|
|
386
|
-
return {
|
|
387
|
-
action: 'clicked',
|
|
388
|
-
actionSubject: 'button',
|
|
389
|
-
actionSubjectId: 'shortcutGoToLink',
|
|
390
|
-
eventType: 'ui',
|
|
391
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
392
|
-
id: id,
|
|
393
|
-
previewDisplay: previewDisplay,
|
|
394
|
-
extensionKey: extensionKey,
|
|
395
|
-
definitionId: definitionId,
|
|
396
|
-
destinationProduct: destinationProduct,
|
|
397
|
-
destinationSubproduct: destinationSubproduct,
|
|
398
|
-
location: location,
|
|
399
|
-
previewInvokeMethod: previewInvokeMethod
|
|
400
|
-
})
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
406
|
-
*/
|
|
407
|
-
var uiLearnMoreLinkClickedEvent = exports.uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent() {
|
|
408
|
-
return {
|
|
409
|
-
action: 'clicked',
|
|
410
|
-
actionSubject: 'button',
|
|
411
|
-
actionSubjectId: 'learnMore',
|
|
412
|
-
eventType: 'ui',
|
|
413
|
-
attributes: _objectSpread({}, context)
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
419
|
-
*/
|
|
420
|
-
var uiSmartLinkStatusLozengeButtonClicked = exports.uiSmartLinkStatusLozengeButtonClicked = function uiSmartLinkStatusLozengeButtonClicked() {
|
|
421
|
-
return {
|
|
422
|
-
action: 'clicked',
|
|
423
|
-
actionSubject: 'button',
|
|
424
|
-
actionSubjectId: 'smartLinkStatusLozenge',
|
|
425
|
-
eventType: 'ui',
|
|
426
|
-
attributes: _objectSpread({}, context)
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
432
|
-
*/
|
|
433
|
-
var uiSmartLinkStatusListItemButtonClicked = exports.uiSmartLinkStatusListItemButtonClicked = function uiSmartLinkStatusListItemButtonClicked() {
|
|
434
|
-
return {
|
|
435
|
-
action: 'clicked',
|
|
436
|
-
actionSubject: 'button',
|
|
437
|
-
actionSubjectId: 'smartLinkStatusListItem',
|
|
438
|
-
eventType: 'ui',
|
|
439
|
-
attributes: _objectSpread({}, context)
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
445
|
-
*/
|
|
446
|
-
var uiSmartLinkStatusOpenPreviewButtonClicked = exports.uiSmartLinkStatusOpenPreviewButtonClicked = function uiSmartLinkStatusOpenPreviewButtonClicked() {
|
|
447
|
-
return {
|
|
448
|
-
action: 'clicked',
|
|
449
|
-
actionSubject: 'button',
|
|
450
|
-
actionSubjectId: 'smartLinkStatusOpenPreview',
|
|
451
|
-
eventType: 'ui',
|
|
452
|
-
attributes: _objectSpread({}, context)
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* @deprecated consider removing when cleaning up FF platform_migrate-some-ui-events-smart-card
|
|
458
|
-
*/
|
|
459
|
-
var uiServerActionClicked = exports.uiServerActionClicked = function uiServerActionClicked(_ref13) {
|
|
460
|
-
var _SmartLinkActionTypeU2;
|
|
461
|
-
var smartLinkActionType = _ref13.smartLinkActionType;
|
|
462
|
-
return {
|
|
463
|
-
action: 'clicked',
|
|
464
|
-
actionSubject: 'button',
|
|
465
|
-
actionSubjectId: (_SmartLinkActionTypeU2 = SmartLinkActionTypeUiEventMapper[smartLinkActionType]) !== null && _SmartLinkActionTypeU2 !== void 0 ? _SmartLinkActionTypeU2 : smartLinkActionType,
|
|
466
|
-
eventType: 'ui',
|
|
467
|
-
attributes: _objectSpread({}, context)
|
|
468
|
-
};
|
|
469
193
|
};
|
|
@@ -39,54 +39,6 @@ Object.defineProperty(exports, "uiActionClickedEvent", {
|
|
|
39
39
|
return _analytics.uiActionClickedEvent;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "uiAuthAlternateAccountEvent", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _analytics.uiAuthAlternateAccountEvent;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "uiAuthEvent", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _analytics.uiAuthEvent;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "uiCardClickedEvent", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _analytics.uiCardClickedEvent;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "uiClosedAuthEvent", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _analytics.uiClosedAuthEvent;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "uiHoverCardDismissedEvent", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _analytics.uiHoverCardDismissedEvent;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "uiHoverCardOpenLinkClickedEvent", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _analytics.uiHoverCardOpenLinkClickedEvent;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "uiHoverCardViewedEvent", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _analytics.uiHoverCardViewedEvent;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "uiLearnMoreLinkClickedEvent", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function get() {
|
|
87
|
-
return _analytics.uiLearnMoreLinkClickedEvent;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
42
|
Object.defineProperty(exports, "uiRenderFailedEvent", {
|
|
91
43
|
enumerable: true,
|
|
92
44
|
get: function get() {
|
|
@@ -99,22 +51,4 @@ Object.defineProperty(exports, "uiRenderSuccessEvent", {
|
|
|
99
51
|
return _analytics.uiRenderSuccessEvent;
|
|
100
52
|
}
|
|
101
53
|
});
|
|
102
|
-
Object.defineProperty(exports, "uiSmartLinkStatusListItemButtonClicked", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function get() {
|
|
105
|
-
return _analytics.uiSmartLinkStatusListItemButtonClicked;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "uiSmartLinkStatusLozengeButtonClicked", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function get() {
|
|
111
|
-
return _analytics.uiSmartLinkStatusLozengeButtonClicked;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "uiSmartLinkStatusOpenPreviewButtonClicked", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function get() {
|
|
117
|
-
return _analytics.uiSmartLinkStatusOpenPreviewButtonClicked;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
54
|
var _analytics = require("./analytics");
|
package/dist/cjs/utils/mocks.js
CHANGED
|
@@ -9,12 +9,12 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
17
|
-
function
|
|
17
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
18
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
19
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -208,13 +208,12 @@ var fakeResponse = exports.fakeResponse = function fakeResponse() {
|
|
|
208
208
|
};
|
|
209
209
|
var fakeFactory = exports.fakeFactory = function fakeFactory(implementation, implementationPost, implementationPrefetch, implementationAri) {
|
|
210
210
|
return /*#__PURE__*/function (_CardClient) {
|
|
211
|
-
(0, _inherits2.default)(CustomClient, _CardClient);
|
|
212
|
-
var _super = _createSuper(CustomClient);
|
|
213
211
|
function CustomClient() {
|
|
214
212
|
(0, _classCallCheck2.default)(this, CustomClient);
|
|
215
|
-
return
|
|
213
|
+
return _callSuper(this, CustomClient, arguments);
|
|
216
214
|
}
|
|
217
|
-
(0,
|
|
215
|
+
(0, _inherits2.default)(CustomClient, _CardClient);
|
|
216
|
+
return (0, _createClass2.default)(CustomClient, [{
|
|
218
217
|
key: "fetchData",
|
|
219
218
|
value: // @ts-ignore
|
|
220
219
|
function () {
|
|
@@ -304,7 +303,6 @@ var fakeFactory = exports.fakeFactory = function fakeFactory(implementation, imp
|
|
|
304
303
|
return fetchDataAris;
|
|
305
304
|
}()
|
|
306
305
|
}]);
|
|
307
|
-
return CustomClient;
|
|
308
306
|
}(_linkProvider.CardClient);
|
|
309
307
|
};
|
|
310
308
|
var waitFor = exports.waitFor = function waitFor() {
|
|
@@ -30,7 +30,7 @@ var titleBlockCss = exports.titleBlockCss = (0, _react.css)({
|
|
|
30
30
|
gap: "var(--ds-space-100, 0.5em)",
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
32
|
"[data-smart-element='Title']": {
|
|
33
|
-
fontWeight: 600
|
|
33
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)"
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -7,24 +7,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Card = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
16
|
var _analytics = require("../../utils/analytics");
|
|
17
17
|
var _loader = require("../CardWithUrl/loader");
|
|
18
|
-
function
|
|
18
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
20
|
var PlainCard = /*#__PURE__*/function (_React$PureComponent) {
|
|
21
|
-
(0, _inherits2.default)(PlainCard, _React$PureComponent);
|
|
22
|
-
var _super = _createSuper(PlainCard);
|
|
23
21
|
function PlainCard() {
|
|
24
22
|
(0, _classCallCheck2.default)(this, PlainCard);
|
|
25
|
-
return
|
|
23
|
+
return _callSuper(this, PlainCard, arguments);
|
|
26
24
|
}
|
|
27
|
-
(0,
|
|
25
|
+
(0, _inherits2.default)(PlainCard, _React$PureComponent);
|
|
26
|
+
return (0, _createClass2.default)(PlainCard, [{
|
|
28
27
|
key: "render",
|
|
29
28
|
value: function render() {
|
|
30
29
|
var content = /*#__PURE__*/_react.default.createElement(_loader.CardWithURLRenderer, this.props);
|
|
@@ -33,7 +32,6 @@ var PlainCard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
33
32
|
}, content);
|
|
34
33
|
}
|
|
35
34
|
}]);
|
|
36
|
-
return PlainCard;
|
|
37
35
|
}(_react.default.PureComponent);
|
|
38
36
|
var Card = exports.Card = (0, _analyticsNext.withAnalyticsContext)(_analytics.context)((0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntlNext.injectIntl)(PlainCard, {
|
|
39
37
|
enforceContext: false
|
|
@@ -70,8 +70,6 @@ function Component(_ref) {
|
|
|
70
70
|
var definitionId = (0, _helpers.getDefinitionId)(state.details);
|
|
71
71
|
var extensionKey = (0, _helpers.getExtensionKey)(state.details);
|
|
72
72
|
var resourceType = (0, _helpers.getResourceType)(state.details);
|
|
73
|
-
var product = (0, _helpers.getProduct)(state.details);
|
|
74
|
-
var subproduct = (0, _helpers.getSubproduct)(state.details);
|
|
75
73
|
var services = (0, _helpers.getServices)(state.details);
|
|
76
74
|
var canBeDatasource = (0, _helpers.getCanBeDatasource)(state.details);
|
|
77
75
|
var isFlexibleUi = (0, _react.useMemo)(function () {
|
|
@@ -85,25 +83,12 @@ function Component(_ref) {
|
|
|
85
83
|
// Setup UI handlers.
|
|
86
84
|
var handleClickWrapper = (0, _react.useCallback)(function (event) {
|
|
87
85
|
var isModifierKeyPressed = (0, _utils.isSpecialEvent)(event);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
});
|
|
95
|
-
} else {
|
|
96
|
-
analytics.ui.cardClickedEvent({
|
|
97
|
-
id: id,
|
|
98
|
-
display: isFlexibleUi ? _constants.CardDisplay.Flexible : appearance,
|
|
99
|
-
status: state.status,
|
|
100
|
-
definitionId: definitionId,
|
|
101
|
-
extensionKey: extensionKey,
|
|
102
|
-
isModifierKeyPressed: isModifierKeyPressed,
|
|
103
|
-
destinationProduct: product,
|
|
104
|
-
destinationSubproduct: subproduct
|
|
105
|
-
});
|
|
106
|
-
}
|
|
86
|
+
fireEvent('ui.smartLink.clicked', {
|
|
87
|
+
id: id,
|
|
88
|
+
display: isFlexibleUi ? _constants.CardDisplay.Flexible : appearance,
|
|
89
|
+
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
90
|
+
isModifierKeyPressed: isModifierKeyPressed
|
|
91
|
+
});
|
|
107
92
|
if (!onClick && !isFlexibleUi) {
|
|
108
93
|
var clickUrl = (0, _helpers.getClickUrl)(url, state.details);
|
|
109
94
|
// Ctrl+left click on mac typically doesn't trigger onClick
|
|
@@ -123,7 +108,7 @@ function Component(_ref) {
|
|
|
123
108
|
}
|
|
124
109
|
(0, _click.fireLinkClickedEvent)(createAnalyticsEvent)(event);
|
|
125
110
|
}
|
|
126
|
-
}, [id, url, state.details,
|
|
111
|
+
}, [id, url, state.details, appearance, definitionId, onClick, isFlexibleUi, createAnalyticsEvent, fireEvent]);
|
|
127
112
|
var handleAuthorize = (0, _react.useCallback)(function () {
|
|
128
113
|
return actions.authorize(appearance);
|
|
129
114
|
}, [actions, appearance]);
|