@atlaskit/smart-card 19.1.14 → 19.1.15
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 +6 -0
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +4 -4
- package/dist/cjs/utils/analytics/analytics.js +12 -5
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/HoverCard/index.js +2 -2
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -2
- package/dist/es2019/utils/analytics/analytics.js +12 -5
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/HoverCard/index.js +2 -2
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +4 -4
- package/dist/esm/utils/analytics/analytics.js +12 -5
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/HoverCard/index.js +2 -2
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +2 -2
- package/dist/types/state/hooks/useSmartLink.d.ts +2 -2
- package/dist/types/utils/analytics/analytics.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -175,11 +175,11 @@ var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchAnalytic
|
|
|
175
175
|
* @param previewInvokeMethod How the preview was triggered.
|
|
176
176
|
* @returns
|
|
177
177
|
*/
|
|
178
|
-
hoverCardViewedEvent: function hoverCardViewedEvent(
|
|
178
|
+
hoverCardViewedEvent: function hoverCardViewedEvent(previewDisplay) {
|
|
179
179
|
var definitionId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : extractedDefinitionId;
|
|
180
180
|
var extensionKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : extractedExtensionKey;
|
|
181
181
|
var previewInvokeMethod = arguments.length > 3 ? arguments[3] : undefined;
|
|
182
|
-
return dispatchAnalytics((0, _analytics.uiHoverCardViewedEvent)(
|
|
182
|
+
return dispatchAnalytics((0, _analytics.uiHoverCardViewedEvent)(previewDisplay, definitionId, extensionKey, previewInvokeMethod));
|
|
183
183
|
},
|
|
184
184
|
|
|
185
185
|
/**
|
|
@@ -191,11 +191,11 @@ var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchAnalytic
|
|
|
191
191
|
* @param previewInvokeMethod How the preview was triggered.
|
|
192
192
|
* @returns
|
|
193
193
|
*/
|
|
194
|
-
hoverCardDismissedEvent: function hoverCardDismissedEvent(
|
|
194
|
+
hoverCardDismissedEvent: function hoverCardDismissedEvent(previewDisplay, hoverTime) {
|
|
195
195
|
var definitionId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : extractedDefinitionId;
|
|
196
196
|
var extensionKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : extractedExtensionKey;
|
|
197
197
|
var previewInvokeMethod = arguments.length > 4 ? arguments[4] : undefined;
|
|
198
|
-
return dispatchAnalytics((0, _analytics.uiHoverCardDismissedEvent)(
|
|
198
|
+
return dispatchAnalytics((0, _analytics.uiHoverCardDismissedEvent)(previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod));
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
}, [defaultId, defaultLocation, extractedDefinitionId, extractedExtensionKey, dispatchAnalytics]);
|
|
@@ -29,6 +29,11 @@ var context = {
|
|
|
29
29
|
packageVersion: _version.version
|
|
30
30
|
};
|
|
31
31
|
exports.context = context;
|
|
32
|
+
var uiActionSubjectIds = {
|
|
33
|
+
DownloadAction: 'downloadDocument',
|
|
34
|
+
PreviewAction: 'invokePreviewScreen',
|
|
35
|
+
ViewAction: 'shortcutGoToLink'
|
|
36
|
+
};
|
|
32
37
|
|
|
33
38
|
var SmartLinkEvents = /*#__PURE__*/function () {
|
|
34
39
|
function SmartLinkEvents() {
|
|
@@ -234,6 +239,7 @@ var uiCardClickedEvent = function uiCardClickedEvent(id, display, status, defini
|
|
|
234
239
|
return {
|
|
235
240
|
action: 'clicked',
|
|
236
241
|
actionSubject: 'smartLink',
|
|
242
|
+
actionSubjectId: 'titleGoToLink',
|
|
237
243
|
eventType: 'ui',
|
|
238
244
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
239
245
|
id: id,
|
|
@@ -253,7 +259,8 @@ exports.uiCardClickedEvent = uiCardClickedEvent;
|
|
|
253
259
|
var uiActionClickedEvent = function uiActionClickedEvent(actionType, extensionKey, display) {
|
|
254
260
|
return {
|
|
255
261
|
action: 'clicked',
|
|
256
|
-
actionSubject: '
|
|
262
|
+
actionSubject: 'button',
|
|
263
|
+
actionSubjectId: uiActionSubjectIds[actionType],
|
|
257
264
|
eventType: 'ui',
|
|
258
265
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
259
266
|
display: display,
|
|
@@ -324,7 +331,7 @@ var uiRenderFailedEvent = function uiRenderFailedEvent(display, error, errorInfo
|
|
|
324
331
|
|
|
325
332
|
exports.uiRenderFailedEvent = uiRenderFailedEvent;
|
|
326
333
|
|
|
327
|
-
var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(
|
|
334
|
+
var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod) {
|
|
328
335
|
return {
|
|
329
336
|
action: 'viewed',
|
|
330
337
|
actionSubject: 'hoverCard',
|
|
@@ -332,7 +339,7 @@ var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(hoverDisplay, defin
|
|
|
332
339
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
333
340
|
definitionId: definitionId || '',
|
|
334
341
|
extensionKey: extensionKey || '',
|
|
335
|
-
|
|
342
|
+
previewDisplay: previewDisplay,
|
|
336
343
|
previewInvokeMethod: previewInvokeMethod
|
|
337
344
|
})
|
|
338
345
|
};
|
|
@@ -340,7 +347,7 @@ var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(hoverDisplay, defin
|
|
|
340
347
|
|
|
341
348
|
exports.uiHoverCardViewedEvent = uiHoverCardViewedEvent;
|
|
342
349
|
|
|
343
|
-
var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(
|
|
350
|
+
var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod) {
|
|
344
351
|
return {
|
|
345
352
|
action: 'dismissed',
|
|
346
353
|
actionSubject: 'hoverCard',
|
|
@@ -349,7 +356,7 @@ var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(hoverDisplay,
|
|
|
349
356
|
definitionId: definitionId || '',
|
|
350
357
|
extensionKey: extensionKey || '',
|
|
351
358
|
hoverTime: hoverTime,
|
|
352
|
-
|
|
359
|
+
previewDisplay: previewDisplay,
|
|
353
360
|
previewInvokeMethod: previewInvokeMethod
|
|
354
361
|
})
|
|
355
362
|
};
|
package/dist/cjs/version.json
CHANGED
|
@@ -87,7 +87,7 @@ var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
87
87
|
//Check its previously open to avoid firing events when moving between the child and hover card components
|
|
88
88
|
if (isOpen === true && cardOpenTime.current) {
|
|
89
89
|
var hoverTime = Date.now() - cardOpenTime.current;
|
|
90
|
-
analytics.ui.hoverCardDismissedEvent('card', hoverTime, definitionId, extensionKey);
|
|
90
|
+
analytics.ui.hoverCardDismissedEvent('card', hoverTime, definitionId, extensionKey, 'mouse_hover');
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
setIsOpen(false);
|
|
@@ -102,7 +102,7 @@ var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
102
102
|
//Check if its previously closed to avoid firing events when moving between the child and hover card components
|
|
103
103
|
if (isOpen === false) {
|
|
104
104
|
cardOpenTime.current = Date.now();
|
|
105
|
-
analytics.ui.hoverCardViewedEvent('card', definitionId, extensionKey);
|
|
105
|
+
analytics.ui.hoverCardViewedEvent('card', definitionId, extensionKey, 'mouse_hover');
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
setIsOpen(true);
|
|
@@ -129,7 +129,7 @@ export const useSmartLinkAnalytics = (url, dispatchAnalytics, id, defaultLocatio
|
|
|
129
129
|
* @param previewInvokeMethod How the preview was triggered.
|
|
130
130
|
* @returns
|
|
131
131
|
*/
|
|
132
|
-
hoverCardViewedEvent: (
|
|
132
|
+
hoverCardViewedEvent: (previewDisplay, definitionId = extractedDefinitionId, extensionKey = extractedExtensionKey, previewInvokeMethod) => dispatchAnalytics(uiHoverCardViewedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod)),
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* This fires an event that represents a hover preview being dismissed.
|
|
@@ -140,7 +140,7 @@ export const useSmartLinkAnalytics = (url, dispatchAnalytics, id, defaultLocatio
|
|
|
140
140
|
* @param previewInvokeMethod How the preview was triggered.
|
|
141
141
|
* @returns
|
|
142
142
|
*/
|
|
143
|
-
hoverCardDismissedEvent: (
|
|
143
|
+
hoverCardDismissedEvent: (previewDisplay, hoverTime, definitionId = extractedDefinitionId, extensionKey = extractedExtensionKey, previewInvokeMethod) => dispatchAnalytics(uiHoverCardDismissedEvent(previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod))
|
|
144
144
|
}), [defaultId, defaultLocation, extractedDefinitionId, extractedExtensionKey, dispatchAnalytics]);
|
|
145
145
|
/** Contains all operational analytics events */
|
|
146
146
|
|
|
@@ -6,6 +6,11 @@ export const context = {
|
|
|
6
6
|
packageName,
|
|
7
7
|
packageVersion
|
|
8
8
|
};
|
|
9
|
+
const uiActionSubjectIds = {
|
|
10
|
+
DownloadAction: 'downloadDocument',
|
|
11
|
+
PreviewAction: 'invokePreviewScreen',
|
|
12
|
+
ViewAction: 'shortcutGoToLink'
|
|
13
|
+
};
|
|
9
14
|
export class SmartLinkEvents {
|
|
10
15
|
insertSmartLink(url, type, createAnalyticsEvent) {
|
|
11
16
|
fireSmartLinkEvent({
|
|
@@ -172,6 +177,7 @@ export const uiAuthAlternateAccountEvent = (display, definitionId, extensionKey)
|
|
|
172
177
|
export const uiCardClickedEvent = (id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct) => ({
|
|
173
178
|
action: 'clicked',
|
|
174
179
|
actionSubject: 'smartLink',
|
|
180
|
+
actionSubjectId: 'titleGoToLink',
|
|
175
181
|
eventType: 'ui',
|
|
176
182
|
attributes: { ...context,
|
|
177
183
|
id,
|
|
@@ -186,7 +192,8 @@ export const uiCardClickedEvent = (id, display, status, definitionId, extensionK
|
|
|
186
192
|
});
|
|
187
193
|
export const uiActionClickedEvent = (actionType, extensionKey, display) => ({
|
|
188
194
|
action: 'clicked',
|
|
189
|
-
actionSubject: '
|
|
195
|
+
actionSubject: 'button',
|
|
196
|
+
actionSubjectId: uiActionSubjectIds[actionType],
|
|
190
197
|
eventType: 'ui',
|
|
191
198
|
attributes: { ...context,
|
|
192
199
|
display,
|
|
@@ -233,18 +240,18 @@ export const uiRenderFailedEvent = (display, error, errorInfo) => ({
|
|
|
233
240
|
display
|
|
234
241
|
}
|
|
235
242
|
});
|
|
236
|
-
export const uiHoverCardViewedEvent = (
|
|
243
|
+
export const uiHoverCardViewedEvent = (previewDisplay, definitionId, extensionKey, previewInvokeMethod) => ({
|
|
237
244
|
action: 'viewed',
|
|
238
245
|
actionSubject: 'hoverCard',
|
|
239
246
|
eventType: 'ui',
|
|
240
247
|
attributes: { ...context,
|
|
241
248
|
definitionId: definitionId || '',
|
|
242
249
|
extensionKey: extensionKey || '',
|
|
243
|
-
|
|
250
|
+
previewDisplay,
|
|
244
251
|
previewInvokeMethod
|
|
245
252
|
}
|
|
246
253
|
});
|
|
247
|
-
export const uiHoverCardDismissedEvent = (
|
|
254
|
+
export const uiHoverCardDismissedEvent = (previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod) => ({
|
|
248
255
|
action: 'dismissed',
|
|
249
256
|
actionSubject: 'hoverCard',
|
|
250
257
|
eventType: 'ui',
|
|
@@ -252,7 +259,7 @@ export const uiHoverCardDismissedEvent = (hoverDisplay, hoverTime, definitionId,
|
|
|
252
259
|
definitionId: definitionId || '',
|
|
253
260
|
extensionKey: extensionKey || '',
|
|
254
261
|
hoverTime,
|
|
255
|
-
|
|
262
|
+
previewDisplay,
|
|
256
263
|
previewInvokeMethod
|
|
257
264
|
}
|
|
258
265
|
});
|
package/dist/es2019/version.json
CHANGED
|
@@ -45,7 +45,7 @@ export const HoverCardComponent = ({
|
|
|
45
45
|
//Check its previously open to avoid firing events when moving between the child and hover card components
|
|
46
46
|
if (isOpen === true && cardOpenTime.current) {
|
|
47
47
|
const hoverTime = Date.now() - cardOpenTime.current;
|
|
48
|
-
analytics.ui.hoverCardDismissedEvent('card', hoverTime, definitionId, extensionKey);
|
|
48
|
+
analytics.ui.hoverCardDismissedEvent('card', hoverTime, definitionId, extensionKey, 'mouse_hover');
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
setIsOpen(false);
|
|
@@ -60,7 +60,7 @@ export const HoverCardComponent = ({
|
|
|
60
60
|
//Check if its previously closed to avoid firing events when moving between the child and hover card components
|
|
61
61
|
if (isOpen === false) {
|
|
62
62
|
cardOpenTime.current = Date.now();
|
|
63
|
-
analytics.ui.hoverCardViewedEvent('card', definitionId, extensionKey);
|
|
63
|
+
analytics.ui.hoverCardViewedEvent('card', definitionId, extensionKey, 'mouse_hover');
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
setIsOpen(true);
|
|
@@ -163,11 +163,11 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchA
|
|
|
163
163
|
* @param previewInvokeMethod How the preview was triggered.
|
|
164
164
|
* @returns
|
|
165
165
|
*/
|
|
166
|
-
hoverCardViewedEvent: function hoverCardViewedEvent(
|
|
166
|
+
hoverCardViewedEvent: function hoverCardViewedEvent(previewDisplay) {
|
|
167
167
|
var definitionId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : extractedDefinitionId;
|
|
168
168
|
var extensionKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : extractedExtensionKey;
|
|
169
169
|
var previewInvokeMethod = arguments.length > 3 ? arguments[3] : undefined;
|
|
170
|
-
return dispatchAnalytics(uiHoverCardViewedEvent(
|
|
170
|
+
return dispatchAnalytics(uiHoverCardViewedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod));
|
|
171
171
|
},
|
|
172
172
|
|
|
173
173
|
/**
|
|
@@ -179,11 +179,11 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchA
|
|
|
179
179
|
* @param previewInvokeMethod How the preview was triggered.
|
|
180
180
|
* @returns
|
|
181
181
|
*/
|
|
182
|
-
hoverCardDismissedEvent: function hoverCardDismissedEvent(
|
|
182
|
+
hoverCardDismissedEvent: function hoverCardDismissedEvent(previewDisplay, hoverTime) {
|
|
183
183
|
var definitionId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : extractedDefinitionId;
|
|
184
184
|
var extensionKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : extractedExtensionKey;
|
|
185
185
|
var previewInvokeMethod = arguments.length > 4 ? arguments[4] : undefined;
|
|
186
|
-
return dispatchAnalytics(uiHoverCardDismissedEvent(
|
|
186
|
+
return dispatchAnalytics(uiHoverCardDismissedEvent(previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod));
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
}, [defaultId, defaultLocation, extractedDefinitionId, extractedExtensionKey, dispatchAnalytics]);
|
|
@@ -14,6 +14,11 @@ export var context = {
|
|
|
14
14
|
packageName: packageName,
|
|
15
15
|
packageVersion: packageVersion
|
|
16
16
|
};
|
|
17
|
+
var uiActionSubjectIds = {
|
|
18
|
+
DownloadAction: 'downloadDocument',
|
|
19
|
+
PreviewAction: 'invokePreviewScreen',
|
|
20
|
+
ViewAction: 'shortcutGoToLink'
|
|
21
|
+
};
|
|
17
22
|
export var SmartLinkEvents = /*#__PURE__*/function () {
|
|
18
23
|
function SmartLinkEvents() {
|
|
19
24
|
_classCallCheck(this, SmartLinkEvents);
|
|
@@ -186,6 +191,7 @@ export var uiCardClickedEvent = function uiCardClickedEvent(id, display, status,
|
|
|
186
191
|
return {
|
|
187
192
|
action: 'clicked',
|
|
188
193
|
actionSubject: 'smartLink',
|
|
194
|
+
actionSubjectId: 'titleGoToLink',
|
|
189
195
|
eventType: 'ui',
|
|
190
196
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
191
197
|
id: id,
|
|
@@ -202,7 +208,8 @@ export var uiCardClickedEvent = function uiCardClickedEvent(id, display, status,
|
|
|
202
208
|
export var uiActionClickedEvent = function uiActionClickedEvent(actionType, extensionKey, display) {
|
|
203
209
|
return {
|
|
204
210
|
action: 'clicked',
|
|
205
|
-
actionSubject: '
|
|
211
|
+
actionSubject: 'button',
|
|
212
|
+
actionSubjectId: uiActionSubjectIds[actionType],
|
|
206
213
|
eventType: 'ui',
|
|
207
214
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
208
215
|
display: display,
|
|
@@ -258,7 +265,7 @@ export var uiRenderFailedEvent = function uiRenderFailedEvent(display, error, er
|
|
|
258
265
|
}
|
|
259
266
|
};
|
|
260
267
|
};
|
|
261
|
-
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(
|
|
268
|
+
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod) {
|
|
262
269
|
return {
|
|
263
270
|
action: 'viewed',
|
|
264
271
|
actionSubject: 'hoverCard',
|
|
@@ -266,12 +273,12 @@ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(hoverDisplay
|
|
|
266
273
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
267
274
|
definitionId: definitionId || '',
|
|
268
275
|
extensionKey: extensionKey || '',
|
|
269
|
-
|
|
276
|
+
previewDisplay: previewDisplay,
|
|
270
277
|
previewInvokeMethod: previewInvokeMethod
|
|
271
278
|
})
|
|
272
279
|
};
|
|
273
280
|
};
|
|
274
|
-
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(
|
|
281
|
+
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod) {
|
|
275
282
|
return {
|
|
276
283
|
action: 'dismissed',
|
|
277
284
|
actionSubject: 'hoverCard',
|
|
@@ -280,7 +287,7 @@ export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(hoverD
|
|
|
280
287
|
definitionId: definitionId || '',
|
|
281
288
|
extensionKey: extensionKey || '',
|
|
282
289
|
hoverTime: hoverTime,
|
|
283
|
-
|
|
290
|
+
previewDisplay: previewDisplay,
|
|
284
291
|
previewInvokeMethod: previewInvokeMethod
|
|
285
292
|
})
|
|
286
293
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -54,7 +54,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
54
54
|
//Check its previously open to avoid firing events when moving between the child and hover card components
|
|
55
55
|
if (isOpen === true && cardOpenTime.current) {
|
|
56
56
|
var hoverTime = Date.now() - cardOpenTime.current;
|
|
57
|
-
analytics.ui.hoverCardDismissedEvent('card', hoverTime, definitionId, extensionKey);
|
|
57
|
+
analytics.ui.hoverCardDismissedEvent('card', hoverTime, definitionId, extensionKey, 'mouse_hover');
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
setIsOpen(false);
|
|
@@ -69,7 +69,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
69
69
|
//Check if its previously closed to avoid firing events when moving between the child and hover card components
|
|
70
70
|
if (isOpen === false) {
|
|
71
71
|
cardOpenTime.current = Date.now();
|
|
72
|
-
analytics.ui.hoverCardViewedEvent('card', definitionId, extensionKey);
|
|
72
|
+
analytics.ui.hoverCardViewedEvent('card', definitionId, extensionKey, 'mouse_hover');
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
setIsOpen(true);
|
|
@@ -89,7 +89,7 @@ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: Ana
|
|
|
89
89
|
* @param previewInvokeMethod How the preview was triggered.
|
|
90
90
|
* @returns
|
|
91
91
|
*/
|
|
92
|
-
hoverCardViewedEvent: (
|
|
92
|
+
hoverCardViewedEvent: (previewDisplay: PreviewDisplay, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: PreviewInvokeMethod | undefined) => void;
|
|
93
93
|
/**
|
|
94
94
|
* This fires an event that represents a hover preview being dismissed.
|
|
95
95
|
* @param hoverDisplay Whether the hover preview was displayed as a card or embed.
|
|
@@ -99,7 +99,7 @@ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: Ana
|
|
|
99
99
|
* @param previewInvokeMethod How the preview was triggered.
|
|
100
100
|
* @returns
|
|
101
101
|
*/
|
|
102
|
-
hoverCardDismissedEvent: (
|
|
102
|
+
hoverCardDismissedEvent: (previewDisplay: PreviewDisplay, hoverTime: number, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: PreviewInvokeMethod | undefined) => void;
|
|
103
103
|
};
|
|
104
104
|
operational: {
|
|
105
105
|
/**
|
|
@@ -17,8 +17,8 @@ export declare function useSmartLink(id: string, url: string, dispatchAnalytics:
|
|
|
17
17
|
hoverCardOpenLinkClickedEvent: (previewDisplay: import("../../view/HoverCard/types").PreviewDisplay, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: import("../../view/HoverCard/types").PreviewInvokeMethod | undefined) => void;
|
|
18
18
|
closedAuthEvent: (display: import("../../view/Card/types").CardInnerAppearance, definitionId?: string | undefined, extensionKey?: string | undefined) => void;
|
|
19
19
|
renderSuccessEvent: (display: import("../../view/Card/types").CardInnerAppearance, status: import("@atlaskit/linking-common/types").CardType, id?: string, definitionId?: string | undefined, extensionKey?: string | undefined) => void;
|
|
20
|
-
hoverCardViewedEvent: (
|
|
21
|
-
hoverCardDismissedEvent: (
|
|
20
|
+
hoverCardViewedEvent: (previewDisplay: import("../../view/HoverCard/types").PreviewDisplay, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: import("../../view/HoverCard/types").PreviewInvokeMethod | undefined) => void;
|
|
21
|
+
hoverCardDismissedEvent: (previewDisplay: import("../../view/HoverCard/types").PreviewDisplay, hoverTime: number, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: import("../../view/HoverCard/types").PreviewInvokeMethod | undefined) => void;
|
|
22
22
|
};
|
|
23
23
|
operational: {
|
|
24
24
|
invokeSucceededEvent: (id: string | undefined, extensionKey: string | undefined, actionType: string, display: import("../../view/Card/types").CardInnerAppearance) => void;
|
|
@@ -29,6 +29,6 @@ export declare const uiClosedAuthEvent: (display: CardInnerAppearance, definitio
|
|
|
29
29
|
export declare const screenAuthPopupEvent: (definitionId?: string | undefined, extensionKey?: string | undefined) => AnalyticsPayload;
|
|
30
30
|
export declare const uiRenderSuccessEvent: (display: CardInnerAppearance, status: CardType, definitionId?: string | undefined, extensionKey?: string | undefined) => AnalyticsPayload;
|
|
31
31
|
export declare const uiRenderFailedEvent: (display: CardInnerAppearance, error: Error, errorInfo: ErrorInfo) => AnalyticsPayload;
|
|
32
|
-
export declare const uiHoverCardViewedEvent: (
|
|
33
|
-
export declare const uiHoverCardDismissedEvent: (
|
|
32
|
+
export declare const uiHoverCardViewedEvent: (previewDisplay: PreviewDisplay, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: PreviewInvokeMethod | undefined) => AnalyticsPayload;
|
|
33
|
+
export declare const uiHoverCardDismissedEvent: (previewDisplay: PreviewDisplay, hoverTime: number, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: PreviewInvokeMethod | undefined) => AnalyticsPayload;
|
|
34
34
|
export declare const uiHoverCardOpenLinkClickedEvent: (previewDisplay: string, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: PreviewInvokeMethod | undefined) => AnalyticsPayload;
|