@atlaskit/smart-card 30.3.4 → 30.4.1
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/messages.js +3 -3
- package/dist/cjs/state/actions/index.js +4 -11
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +6 -81
- package/dist/cjs/utils/analytics/analytics.js +104 -216
- package/dist/cjs/utils/analytics/index.js +0 -12
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +3 -11
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +2 -9
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +11 -31
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +10 -39
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +2 -10
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -98
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/messages.js +3 -3
- package/dist/es2019/state/actions/index.js +4 -11
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +3 -78
- package/dist/es2019/utils/analytics/analytics.js +1 -118
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +4 -12
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/index.js +2 -9
- package/dist/es2019/view/FlexibleCard/components/actions/action/server-action/index.js +11 -31
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +10 -39
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +2 -10
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +1 -79
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/messages.js +3 -3
- package/dist/esm/state/actions/index.js +4 -11
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +8 -83
- package/dist/esm/utils/analytics/analytics.js +103 -215
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +4 -12
- package/dist/esm/view/EmbedCard/views/unauthorized-view/index.js +2 -9
- package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +11 -31
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +10 -39
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +2 -10
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -98
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -49
- package/dist/types/state/hooks/useSmartLink.d.ts +0 -16
- package/dist/types/utils/analytics/analytics.d.ts +1 -32
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +0 -1
- package/dist/types/utils/mocks.d.ts +0 -16
- package/dist/types/view/HoverCard/components/views/unauthorised/index.d.ts +1 -1
- package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -49
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -16
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -32
- package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -16
- package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/index.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/UnauthorisedView/index.d.ts +1 -1
- package/package.json +7 -10
|
@@ -5,7 +5,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
var _excluded = ["action", "onClick", "onError"];
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useCallback, useState } from 'react';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { useAnalyticsEvents } from '../../../../../../common/analytics/generated/use-analytics-events';
|
|
10
9
|
import { useFlexibleUiAnalyticsContext } from '../../../../../../state/flexible-ui-context';
|
|
11
10
|
import useInvoke from '../../../../../../state/hooks/use-invoke';
|
|
@@ -42,28 +41,16 @@ var ServerAction = function ServerAction(_ref) {
|
|
|
42
41
|
analytics === null || analytics === void 0 || analytics.ui.smartLinkServerActionClickedEvent({
|
|
43
42
|
smartLinkActionType: smartLinkActionType
|
|
44
43
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionStarted({
|
|
51
|
-
smartLinkActionType: smartLinkActionType
|
|
52
|
-
});
|
|
53
|
-
}
|
|
44
|
+
fireEvent('track.smartLinkQuickAction.started', {
|
|
45
|
+
smartLinkActionType: smartLinkActionType
|
|
46
|
+
});
|
|
54
47
|
request = createInvokeRequest(action);
|
|
55
48
|
_context.next = 9;
|
|
56
49
|
return invoke(request);
|
|
57
50
|
case 9:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionSuccess({
|
|
64
|
-
smartLinkActionType: smartLinkActionType
|
|
65
|
-
});
|
|
66
|
-
}
|
|
51
|
+
fireEvent('track.smartLinkQuickAction.success', {
|
|
52
|
+
smartLinkActionType: smartLinkActionType
|
|
53
|
+
});
|
|
67
54
|
if (!(action.reload && action.reload.url)) {
|
|
68
55
|
_context.next = 13;
|
|
69
56
|
break;
|
|
@@ -81,24 +68,17 @@ var ServerAction = function ServerAction(_ref) {
|
|
|
81
68
|
_context.prev = 17;
|
|
82
69
|
_context.t0 = _context["catch"](2);
|
|
83
70
|
setIsLoading(false);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
});
|
|
89
|
-
} else {
|
|
90
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionFailed({
|
|
91
|
-
smartLinkActionType: smartLinkActionType,
|
|
92
|
-
reason: getInvokeFailureReason(_context.t0)
|
|
93
|
-
});
|
|
94
|
-
}
|
|
71
|
+
fireEvent('track.smartLinkQuickAction.failed', {
|
|
72
|
+
smartLinkActionType: smartLinkActionType,
|
|
73
|
+
reason: getInvokeFailureReason(_context.t0)
|
|
74
|
+
});
|
|
95
75
|
onErrorCallback === null || onErrorCallback === void 0 || onErrorCallback();
|
|
96
76
|
case 22:
|
|
97
77
|
case "end":
|
|
98
78
|
return _context.stop();
|
|
99
79
|
}
|
|
100
80
|
}, _callee, null, [[2, 17]]);
|
|
101
|
-
})), [action, analytics === null || analytics === void 0 ? void 0 : analytics.
|
|
81
|
+
})), [action, analytics === null || analytics === void 0 ? void 0 : analytics.ui, invoke, onClick, onErrorCallback, reload, fireEvent]);
|
|
102
82
|
return /*#__PURE__*/React.createElement(Action, _extends({}, props, {
|
|
103
83
|
isLoading: isLoading,
|
|
104
84
|
onClick: handleClick
|
|
@@ -11,7 +11,6 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
13
|
import DropdownMenu from '@atlaskit/dropdown-menu';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { useAnalyticsEvents } from '../../../../../../common/analytics/generated/use-analytics-events';
|
|
16
15
|
import extractLozengeActionItems from '../../../../../../extractors/action/extract-lozenge-action-items';
|
|
17
16
|
import { useFlexibleUiAnalyticsContext } from '../../../../../../state/flexible-ui-context';
|
|
@@ -96,15 +95,9 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
96
95
|
break;
|
|
97
96
|
}
|
|
98
97
|
analytics === null || analytics === void 0 || analytics.ui.smartLinkLozengeActionClickedEvent();
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
103
|
-
} else {
|
|
104
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionStarted({
|
|
105
|
-
smartLinkActionType: TrackQuickActionType.StatusUpdate
|
|
106
|
-
});
|
|
107
|
-
}
|
|
98
|
+
fireEvent('track.smartLinkQuickAction.started', {
|
|
99
|
+
smartLinkActionType: TrackQuickActionType.StatusUpdate
|
|
100
|
+
});
|
|
108
101
|
if (!(!isLoaded && action !== null && action !== void 0 && action.read)) {
|
|
109
102
|
_context.next = 24;
|
|
110
103
|
break;
|
|
@@ -119,11 +112,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
119
112
|
setItems(validItems);
|
|
120
113
|
setIsLoaded(true);
|
|
121
114
|
if ((validItems === null || validItems === void 0 ? void 0 : validItems.length) === 0) {
|
|
122
|
-
|
|
123
|
-
fireEvent('track.smartLinkQuickAction.failed', permissionLoadErrorAnalyticsPayload);
|
|
124
|
-
} else {
|
|
125
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionFailed(permissionLoadErrorAnalyticsPayload);
|
|
126
|
-
}
|
|
115
|
+
fireEvent('track.smartLinkQuickAction.failed', permissionLoadErrorAnalyticsPayload);
|
|
127
116
|
setErrorMessage(LozengeActionErrorMessages.noData);
|
|
128
117
|
setIsLoaded(false);
|
|
129
118
|
}
|
|
@@ -134,11 +123,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
134
123
|
_context.t0 = _context["catch"](5);
|
|
135
124
|
setErrorMessage(LozengeActionErrorMessages.unknown);
|
|
136
125
|
setIsLoaded(false);
|
|
137
|
-
|
|
138
|
-
fireEvent('track.smartLinkQuickAction.failed', unknownLoadErrorAnalyticsPayload);
|
|
139
|
-
} else {
|
|
140
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionFailed(unknownLoadErrorAnalyticsPayload);
|
|
141
|
-
}
|
|
126
|
+
fireEvent('track.smartLinkQuickAction.failed', unknownLoadErrorAnalyticsPayload);
|
|
142
127
|
case 21:
|
|
143
128
|
_context.prev = 21;
|
|
144
129
|
setIsLoading(false);
|
|
@@ -191,15 +176,9 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
191
176
|
setIsLoaded(false);
|
|
192
177
|
setIsOpen(false);
|
|
193
178
|
setItems([]);
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
});
|
|
198
|
-
} else {
|
|
199
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionSuccess({
|
|
200
|
-
smartLinkActionType: TrackQuickActionType.StatusUpdate
|
|
201
|
-
});
|
|
202
|
-
}
|
|
179
|
+
fireEvent('track.smartLinkQuickAction.success', {
|
|
180
|
+
smartLinkActionType: TrackQuickActionType.StatusUpdate
|
|
181
|
+
});
|
|
203
182
|
if (!url) {
|
|
204
183
|
_context2.next = 17;
|
|
205
184
|
break;
|
|
@@ -215,18 +194,10 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
215
194
|
setIsLoading(false);
|
|
216
195
|
if (isInvokeCustomError(_context2.t0)) {
|
|
217
196
|
setErrorMessage(_context2.t0.message);
|
|
218
|
-
|
|
219
|
-
fireEvent('track.smartLinkQuickAction.failed', validationUpdateErrorAnalyticsPayload);
|
|
220
|
-
} else {
|
|
221
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionFailed(validationUpdateErrorAnalyticsPayload);
|
|
222
|
-
}
|
|
197
|
+
fireEvent('track.smartLinkQuickAction.failed', validationUpdateErrorAnalyticsPayload);
|
|
223
198
|
} else {
|
|
224
199
|
setErrorMessage(LozengeActionErrorMessages.updateFailed);
|
|
225
|
-
|
|
226
|
-
fireEvent('track.smartLinkQuickAction.failed', unknownUpdateErrorAnalyticsPayload);
|
|
227
|
-
} else {
|
|
228
|
-
analytics === null || analytics === void 0 || analytics.track.smartLinkQuickActionFailed(unknownUpdateErrorAnalyticsPayload);
|
|
229
|
-
}
|
|
200
|
+
fireEvent('track.smartLinkQuickAction.failed', unknownUpdateErrorAnalyticsPayload);
|
|
230
201
|
}
|
|
231
202
|
case 23:
|
|
232
203
|
case "end":
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useMemo } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import { extractProvider } from '@atlaskit/link-extractors';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
7
6
|
import { ActionName, CardDisplay } from '../../../../../constants';
|
|
8
7
|
import { messages } from '../../../../../messages';
|
|
@@ -17,7 +16,6 @@ import { connectButtonStyles, mainTextStyles, titleBlockStyles } from './styled'
|
|
|
17
16
|
var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
18
17
|
var _cardState$details, _extractProvider;
|
|
19
18
|
var analytics = _ref.analytics,
|
|
20
|
-
extensionKey = _ref.extensionKey,
|
|
21
19
|
_ref$id = _ref.id,
|
|
22
20
|
id = _ref$id === void 0 ? '' : _ref$id,
|
|
23
21
|
flexibleCardProps = _ref.flexibleCardProps,
|
|
@@ -34,16 +32,10 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
34
32
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
35
33
|
var handleAuthorize = useCallback(function () {
|
|
36
34
|
if (authorize) {
|
|
37
|
-
|
|
38
|
-
fireEvent('track.applicationAccount.authStarted', {});
|
|
39
|
-
} else {
|
|
40
|
-
analytics.track.appAccountAuthStarted({
|
|
41
|
-
extensionKey: extensionKey
|
|
42
|
-
});
|
|
43
|
-
}
|
|
35
|
+
fireEvent('track.applicationAccount.authStarted', {});
|
|
44
36
|
authorize(CardDisplay.HoverCardPreview);
|
|
45
37
|
}
|
|
46
|
-
}, [authorize,
|
|
38
|
+
}, [authorize, fireEvent]);
|
|
47
39
|
var actions = useMemo(function () {
|
|
48
40
|
return [{
|
|
49
41
|
name: ActionName.CustomAction,
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
9
|
-
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
2
|
import React from 'react';
|
|
12
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
13
4
|
import Button from '@atlaskit/button';
|
|
14
5
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
6
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
17
7
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
18
8
|
import { messages } from '../../../messages';
|
|
@@ -27,7 +17,7 @@ var FallbackUnauthorizedIcon = /*#__PURE__*/React.createElement(AKIconWrapper, n
|
|
|
27
17
|
size: "small",
|
|
28
18
|
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
29
19
|
}));
|
|
30
|
-
var
|
|
20
|
+
export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref) {
|
|
31
21
|
var url = _ref.url,
|
|
32
22
|
id = _ref.id,
|
|
33
23
|
icon = _ref.icon,
|
|
@@ -83,91 +73,4 @@ var InlineCardUnauthorizedViewNew = function InlineCardUnauthorizedViewNew(_ref)
|
|
|
83
73
|
}, inlineCardUnauthenticatedView);
|
|
84
74
|
}
|
|
85
75
|
return inlineCardUnauthenticatedView;
|
|
86
|
-
};
|
|
87
|
-
var InlineCardUnauthorizedViewOld = /*#__PURE__*/function (_React$Component) {
|
|
88
|
-
_inherits(InlineCardUnauthorizedViewOld, _React$Component);
|
|
89
|
-
var _super = _createSuper(InlineCardUnauthorizedViewOld);
|
|
90
|
-
function InlineCardUnauthorizedViewOld() {
|
|
91
|
-
var _this;
|
|
92
|
-
_classCallCheck(this, InlineCardUnauthorizedViewOld);
|
|
93
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
94
|
-
args[_key] = arguments[_key];
|
|
95
|
-
}
|
|
96
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
97
|
-
_defineProperty(_assertThisInitialized(_this), "frameRef", /*#__PURE__*/React.createRef());
|
|
98
|
-
_defineProperty(_assertThisInitialized(_this), "handleConnectAccount", function (event) {
|
|
99
|
-
var _this$props = _this.props,
|
|
100
|
-
analytics = _this$props.analytics,
|
|
101
|
-
extensionKey = _this$props.extensionKey,
|
|
102
|
-
onAuthorise = _this$props.onAuthorise;
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
event.stopPropagation();
|
|
105
|
-
if (onAuthorise) {
|
|
106
|
-
analytics === null || analytics === void 0 || analytics.track.appAccountAuthStarted({
|
|
107
|
-
extensionKey: extensionKey
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
return onAuthorise();
|
|
111
|
-
});
|
|
112
|
-
_defineProperty(_assertThisInitialized(_this), "renderActionButton", function () {
|
|
113
|
-
var _this$props2 = _this.props,
|
|
114
|
-
onAuthorise = _this$props2.onAuthorise,
|
|
115
|
-
context = _this$props2.context;
|
|
116
|
-
var ActionButton = withFrameStyleControl(Button, _this.frameRef);
|
|
117
|
-
return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
118
|
-
spacing: "none",
|
|
119
|
-
component: IconStyledButton,
|
|
120
|
-
onClick: _this.handleConnectAccount,
|
|
121
|
-
testId: "button-connect-account"
|
|
122
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
123
|
-
values: {
|
|
124
|
-
context: context
|
|
125
|
-
}
|
|
126
|
-
}))) : undefined;
|
|
127
|
-
});
|
|
128
|
-
return _this;
|
|
129
|
-
}
|
|
130
|
-
_createClass(InlineCardUnauthorizedViewOld, [{
|
|
131
|
-
key: "render",
|
|
132
|
-
value: function render() {
|
|
133
|
-
var _this$props3 = this.props,
|
|
134
|
-
url = _this$props3.url,
|
|
135
|
-
icon = _this$props3.icon,
|
|
136
|
-
onAuthorise = _this$props3.onAuthorise,
|
|
137
|
-
onClick = _this$props3.onClick,
|
|
138
|
-
isSelected = _this$props3.isSelected,
|
|
139
|
-
_this$props3$testId = _this$props3.testId,
|
|
140
|
-
testId = _this$props3$testId === void 0 ? 'inline-card-unauthorized-view' : _this$props3$testId,
|
|
141
|
-
_this$props3$showAuth = _this$props3.showAuthTooltip,
|
|
142
|
-
showAuthTooltip = _this$props3$showAuth === void 0 ? false : _this$props3$showAuth,
|
|
143
|
-
truncateInline = _this$props3.truncateInline;
|
|
144
|
-
var inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
145
|
-
testId: testId,
|
|
146
|
-
isSelected: isSelected,
|
|
147
|
-
ref: this.frameRef,
|
|
148
|
-
truncateInline: truncateInline
|
|
149
|
-
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
150
|
-
icon: icon ? icon : FallbackUnauthorizedIcon,
|
|
151
|
-
title: url,
|
|
152
|
-
link: url,
|
|
153
|
-
onClick: onClick,
|
|
154
|
-
titleColor: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
155
|
-
}), this.renderActionButton());
|
|
156
|
-
if (onAuthorise && showAuthTooltip) {
|
|
157
|
-
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
158
|
-
url: url,
|
|
159
|
-
id: this.props.id
|
|
160
|
-
}, inlineCardUnauthenticatedView);
|
|
161
|
-
}
|
|
162
|
-
return inlineCardUnauthenticatedView;
|
|
163
|
-
}
|
|
164
|
-
}]);
|
|
165
|
-
return InlineCardUnauthorizedViewOld;
|
|
166
|
-
}(React.Component);
|
|
167
|
-
export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(props) {
|
|
168
|
-
if (fg('smart-card-migrate-track-analytics')) {
|
|
169
|
-
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedViewNew, props);
|
|
170
|
-
} else {
|
|
171
|
-
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedViewOld, props);
|
|
172
|
-
}
|
|
173
76
|
};
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "30.
|
|
13
|
+
packageVersion: "30.4.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type TrackQuickActionFailureReason, type TrackQuickActionType } from '../../utils/analytics/analytics';
|
|
3
|
-
import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ScreenAuthPopupEventProps, type TrackAppAccountConnectedProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
|
|
1
|
+
import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ScreenAuthPopupEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
|
|
4
2
|
import { type AnalyticsName, type AnalyticsPayload } from '../../utils/types';
|
|
5
3
|
/**
|
|
6
4
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
@@ -195,52 +193,6 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
195
193
|
*/
|
|
196
194
|
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
197
195
|
};
|
|
198
|
-
track: {
|
|
199
|
-
/**
|
|
200
|
-
* This fires an event which represents a user connecting their account to view a Smart Link.
|
|
201
|
-
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
202
|
-
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
203
|
-
* @returns
|
|
204
|
-
* @deprecated
|
|
205
|
-
*/
|
|
206
|
-
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
|
|
207
|
-
/**
|
|
208
|
-
* This fires an event which represents a user starting the Smart Link connect account process.
|
|
209
|
-
* @param location a location where the Smart Link auth action was initiated.
|
|
210
|
-
* @param extensionKey The extensionKey of the Smart Link resolver invoked.
|
|
211
|
-
* @returns
|
|
212
|
-
* @deprecated
|
|
213
|
-
*/
|
|
214
|
-
appAccountAuthStarted: ({ extensionKey, location }: TrackAppAccountConnectedProps) => void;
|
|
215
|
-
/**
|
|
216
|
-
* This fires a tracking event before an action invoke api call is made
|
|
217
|
-
* @deprecated
|
|
218
|
-
*/
|
|
219
|
-
smartLinkQuickActionStarted: (props: {
|
|
220
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
221
|
-
}) => void;
|
|
222
|
-
/**
|
|
223
|
-
* This fires a tracking event after an action invoke api call is successful
|
|
224
|
-
* @deprecated
|
|
225
|
-
*/
|
|
226
|
-
smartLinkQuickActionSuccess: (props: {
|
|
227
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
228
|
-
}) => void;
|
|
229
|
-
/**
|
|
230
|
-
* This fires a tracking event after an action invoke api call has failed
|
|
231
|
-
* @deprecated
|
|
232
|
-
*/
|
|
233
|
-
smartLinkQuickActionFailed: (props: {
|
|
234
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
235
|
-
reason?: TrackQuickActionFailureReason;
|
|
236
|
-
step?: string;
|
|
237
|
-
}) => void;
|
|
238
|
-
/**
|
|
239
|
-
* Fires a track event when we call loadMetadata() to get information for a hover card
|
|
240
|
-
* @deprecated
|
|
241
|
-
*/
|
|
242
|
-
hoverCardResolutionStarted: () => void;
|
|
243
|
-
};
|
|
244
196
|
screen: {
|
|
245
197
|
/**
|
|
246
198
|
* This fires an event which represents the connect account page being opened.
|
|
@@ -40,22 +40,6 @@ export declare function useSmartLink(id: string, url: string): {
|
|
|
40
40
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../utils/analytics/types").InstrumentEventProps) => void;
|
|
41
41
|
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
|
|
42
42
|
};
|
|
43
|
-
track: {
|
|
44
|
-
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
45
|
-
appAccountAuthStarted: ({ extensionKey, location }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
46
|
-
smartLinkQuickActionStarted: (props: {
|
|
47
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
48
|
-
}) => void;
|
|
49
|
-
smartLinkQuickActionSuccess: (props: {
|
|
50
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
51
|
-
}) => void;
|
|
52
|
-
smartLinkQuickActionFailed: (props: {
|
|
53
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
54
|
-
reason?: import("../../utils/analytics/analytics").TrackQuickActionFailureReason | undefined;
|
|
55
|
-
step?: string | undefined;
|
|
56
|
-
}) => void;
|
|
57
|
-
hoverCardResolutionStarted: () => void;
|
|
58
|
-
};
|
|
59
43
|
screen: {
|
|
60
44
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
61
45
|
modalViewedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
3
2
|
import { type CardInnerAppearance } from '../../view/Card/types';
|
|
4
3
|
import { type AnalyticsPayload } from '../types';
|
|
5
|
-
import { type
|
|
4
|
+
import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ResolvedEventProps, type ScreenAuthPopupEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps, type UnresolvedEventProps } from './types';
|
|
6
5
|
export declare const ANALYTICS_CHANNEL = "media";
|
|
7
6
|
export declare const context: {
|
|
8
7
|
componentName: string;
|
|
@@ -29,36 +28,6 @@ export declare const invokeSucceededEvent: ({ id, actionType, display, extension
|
|
|
29
28
|
export declare const invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => AnalyticsPayload;
|
|
30
29
|
export declare const connectSucceededEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => AnalyticsPayload;
|
|
31
30
|
export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated
|
|
34
|
-
*/
|
|
35
|
-
export declare const trackAppAccountConnected: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated
|
|
38
|
-
*/
|
|
39
|
-
export declare const trackAppAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
export declare const trackSmartLinkQuickActionStarted: ({ smartLinkActionType, ...attributes }: CommonEventProps & {
|
|
44
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
45
|
-
}) => AnalyticsPayload;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated
|
|
48
|
-
*/
|
|
49
|
-
export declare const trackSmartLinkQuickActionSuccess: ({ smartLinkActionType, ...attributes }: CommonEventProps & {
|
|
50
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
51
|
-
}) => AnalyticsPayload;
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated
|
|
54
|
-
*/
|
|
55
|
-
export declare const trackSmartLinkQuickActionFailed: ({ smartLinkActionType, ...attributes }: CommonEventProps & {
|
|
56
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
57
|
-
}) => AnalyticsPayload;
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated
|
|
60
|
-
*/
|
|
61
|
-
export declare const trackHoverCardResolutionStarted: ({ display, ...attributes }: UiAuthEventProps) => AnalyticsPayload;
|
|
62
31
|
export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
|
|
63
32
|
export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
|
|
64
33
|
export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type AnalyticsPayload } from '../types';
|
|
2
2
|
import { type InstrumentEventProps } from './types';
|
|
3
|
-
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent,
|
|
3
|
+
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
|
|
4
4
|
export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
|
|
@@ -121,22 +121,6 @@ export declare const mockAnalytics: {
|
|
|
121
121
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("./analytics/types").InstrumentEventProps) => void;
|
|
122
122
|
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
|
|
123
123
|
};
|
|
124
|
-
track: {
|
|
125
|
-
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
126
|
-
appAccountAuthStarted: ({ extensionKey, location }: import("./analytics/types").CommonEventProps) => void;
|
|
127
|
-
smartLinkQuickActionStarted: (props: {
|
|
128
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("./analytics/analytics").TrackQuickActionType;
|
|
129
|
-
}) => void;
|
|
130
|
-
smartLinkQuickActionSuccess: (props: {
|
|
131
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("./analytics/analytics").TrackQuickActionType;
|
|
132
|
-
}) => void;
|
|
133
|
-
smartLinkQuickActionFailed: (props: {
|
|
134
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("./analytics/analytics").TrackQuickActionType;
|
|
135
|
-
reason?: import("./analytics/analytics").TrackQuickActionFailureReason | undefined;
|
|
136
|
-
step?: string | undefined;
|
|
137
|
-
}) => void;
|
|
138
|
-
hoverCardResolutionStarted: () => void;
|
|
139
|
-
};
|
|
140
124
|
screen: {
|
|
141
125
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
142
126
|
modalViewedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type HoverCardUnauthorisedProps } from './types';
|
|
3
|
-
declare const HoverCardUnauthorisedView: ({ analytics,
|
|
3
|
+
declare const HoverCardUnauthorisedView: ({ analytics, id, flexibleCardProps, testId, url, }: HoverCardUnauthorisedProps) => JSX.Element;
|
|
4
4
|
export default HoverCardUnauthorisedView;
|
|
@@ -26,4 +26,4 @@ export interface InlineCardUnauthorizedViewProps {
|
|
|
26
26
|
/** Truncates the card to one line */
|
|
27
27
|
truncateInline?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export declare const InlineCardUnauthorizedView: (
|
|
29
|
+
export declare const InlineCardUnauthorizedView: ({ url, id, icon, onAuthorise, onClick, isSelected, testId, showAuthTooltip, truncateInline, context, }: InlineCardUnauthorizedViewProps) => JSX.Element;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type TrackQuickActionFailureReason, type TrackQuickActionType } from '../../utils/analytics/analytics';
|
|
3
|
-
import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ScreenAuthPopupEventProps, type TrackAppAccountConnectedProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
|
|
1
|
+
import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ScreenAuthPopupEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
|
|
4
2
|
import { type AnalyticsName, type AnalyticsPayload } from '../../utils/types';
|
|
5
3
|
/**
|
|
6
4
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
@@ -195,52 +193,6 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
195
193
|
*/
|
|
196
194
|
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
197
195
|
};
|
|
198
|
-
track: {
|
|
199
|
-
/**
|
|
200
|
-
* This fires an event which represents a user connecting their account to view a Smart Link.
|
|
201
|
-
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
202
|
-
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
203
|
-
* @returns
|
|
204
|
-
* @deprecated
|
|
205
|
-
*/
|
|
206
|
-
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
|
|
207
|
-
/**
|
|
208
|
-
* This fires an event which represents a user starting the Smart Link connect account process.
|
|
209
|
-
* @param location a location where the Smart Link auth action was initiated.
|
|
210
|
-
* @param extensionKey The extensionKey of the Smart Link resolver invoked.
|
|
211
|
-
* @returns
|
|
212
|
-
* @deprecated
|
|
213
|
-
*/
|
|
214
|
-
appAccountAuthStarted: ({ extensionKey, location }: TrackAppAccountConnectedProps) => void;
|
|
215
|
-
/**
|
|
216
|
-
* This fires a tracking event before an action invoke api call is made
|
|
217
|
-
* @deprecated
|
|
218
|
-
*/
|
|
219
|
-
smartLinkQuickActionStarted: (props: {
|
|
220
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
221
|
-
}) => void;
|
|
222
|
-
/**
|
|
223
|
-
* This fires a tracking event after an action invoke api call is successful
|
|
224
|
-
* @deprecated
|
|
225
|
-
*/
|
|
226
|
-
smartLinkQuickActionSuccess: (props: {
|
|
227
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
228
|
-
}) => void;
|
|
229
|
-
/**
|
|
230
|
-
* This fires a tracking event after an action invoke api call has failed
|
|
231
|
-
* @deprecated
|
|
232
|
-
*/
|
|
233
|
-
smartLinkQuickActionFailed: (props: {
|
|
234
|
-
smartLinkActionType: SmartLinkActionType | TrackQuickActionType;
|
|
235
|
-
reason?: TrackQuickActionFailureReason;
|
|
236
|
-
step?: string;
|
|
237
|
-
}) => void;
|
|
238
|
-
/**
|
|
239
|
-
* Fires a track event when we call loadMetadata() to get information for a hover card
|
|
240
|
-
* @deprecated
|
|
241
|
-
*/
|
|
242
|
-
hoverCardResolutionStarted: () => void;
|
|
243
|
-
};
|
|
244
196
|
screen: {
|
|
245
197
|
/**
|
|
246
198
|
* This fires an event which represents the connect account page being opened.
|
|
@@ -40,22 +40,6 @@ export declare function useSmartLink(id: string, url: string): {
|
|
|
40
40
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../utils/analytics/types").InstrumentEventProps) => void;
|
|
41
41
|
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
|
|
42
42
|
};
|
|
43
|
-
track: {
|
|
44
|
-
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
45
|
-
appAccountAuthStarted: ({ extensionKey, location }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
46
|
-
smartLinkQuickActionStarted: (props: {
|
|
47
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
48
|
-
}) => void;
|
|
49
|
-
smartLinkQuickActionSuccess: (props: {
|
|
50
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
51
|
-
}) => void;
|
|
52
|
-
smartLinkQuickActionFailed: (props: {
|
|
53
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
|
|
54
|
-
reason?: import("../../utils/analytics/analytics").TrackQuickActionFailureReason | undefined;
|
|
55
|
-
step?: string | undefined;
|
|
56
|
-
}) => void;
|
|
57
|
-
hoverCardResolutionStarted: () => void;
|
|
58
|
-
};
|
|
59
43
|
screen: {
|
|
60
44
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
61
45
|
modalViewedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
|