@atlaskit/teams-app-internal-analytics 1.14.0 → 1.16.0
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 +22 -0
- package/analytics.spec.yaml +104 -0
- package/dist/cjs/ui/analytics-context/index.js +1 -1
- package/dist/es2019/ui/analytics-context/index.js +1 -1
- package/dist/esm/ui/analytics-context/index.js +1 -1
- package/dist/types/common/utils/generated/analytics.types.d.ts +95 -1
- package/dist/types/common/utils/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +95 -1
- package/dist/types-ts4.5/common/utils/types.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3c6833b0e9257`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c6833b0e9257) -
|
|
8
|
+
Migrated all ptc common analytics to teams app internal analytics
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 1.15.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`401418d726a4e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/401418d726a4e) -
|
|
19
|
+
Add more analytics events to hierarchy exp
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 1.14.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -597,6 +597,25 @@ events:
|
|
|
597
597
|
error:
|
|
598
598
|
type: string
|
|
599
599
|
description: the error
|
|
600
|
+
- teamProfileBreadcrumbsItem clicked:
|
|
601
|
+
type: ui
|
|
602
|
+
description: fired when the team profile breadcrumbs item is clicked
|
|
603
|
+
attributes:
|
|
604
|
+
<<: *PackageMetaDataContext
|
|
605
|
+
targetTeamId:
|
|
606
|
+
type: string
|
|
607
|
+
description: the team id
|
|
608
|
+
- hierarchyTeamLinkOut clicked:
|
|
609
|
+
type: ui
|
|
610
|
+
description: fired when the hierarchy team link out is clicked
|
|
611
|
+
attributes:
|
|
612
|
+
<<: *PackageMetaDataContext
|
|
613
|
+
targetTeamId:
|
|
614
|
+
type: string
|
|
615
|
+
description: the team id
|
|
616
|
+
- hierarchyField hovered:
|
|
617
|
+
type: ui
|
|
618
|
+
description: fired when the hierarchy field is hovered
|
|
600
619
|
- parentTeamLinker opened:
|
|
601
620
|
type: ui
|
|
602
621
|
description: fired when the parent team field is clicked
|
|
@@ -2328,3 +2347,88 @@ events:
|
|
|
2328
2347
|
- sendFeedback clicked:
|
|
2329
2348
|
type: ui
|
|
2330
2349
|
description: fired when the send feedback button is clicked
|
|
2350
|
+
- button clicked (removeAvatar):
|
|
2351
|
+
type: ui
|
|
2352
|
+
description: fired when the remove avatar button is clicked
|
|
2353
|
+
- deleteAvatar failed:
|
|
2354
|
+
type: track
|
|
2355
|
+
description: fired when the delete avatar action is failed
|
|
2356
|
+
- deleteAvatar succeeded:
|
|
2357
|
+
type: track
|
|
2358
|
+
description: fired when the delete avatar action is succeeded
|
|
2359
|
+
- avatarPicker closed:
|
|
2360
|
+
type: track
|
|
2361
|
+
description: fired when the avatar picker is closed
|
|
2362
|
+
attributes:
|
|
2363
|
+
hasUploadedAvatar:
|
|
2364
|
+
type: boolean
|
|
2365
|
+
description: whether the avatar has been uploaded
|
|
2366
|
+
- avatarPicker opened:
|
|
2367
|
+
type: track
|
|
2368
|
+
description: fired when the avatar picker is opened
|
|
2369
|
+
attributes:
|
|
2370
|
+
hasUploadedAvatar:
|
|
2371
|
+
type: boolean
|
|
2372
|
+
description: whether the avatar has been uploaded
|
|
2373
|
+
- button clicked (changeProfilePhoto):
|
|
2374
|
+
type: ui
|
|
2375
|
+
description: fired when the change profile photo button is clicked
|
|
2376
|
+
- button clicked (createInitialsAvatar):
|
|
2377
|
+
type: ui
|
|
2378
|
+
description: fired when the create initials avatar button is clicked
|
|
2379
|
+
- avatarInitialsPicker opened:
|
|
2380
|
+
type: track
|
|
2381
|
+
description: fired when the avatar initials picker is opened
|
|
2382
|
+
attributes:
|
|
2383
|
+
hasUploadedAvatar:
|
|
2384
|
+
type: boolean
|
|
2385
|
+
description: whether the avatar has been uploaded
|
|
2386
|
+
- uploadAvatar failed:
|
|
2387
|
+
type: track
|
|
2388
|
+
description: fired when the upload avatar action is failed
|
|
2389
|
+
attributes:
|
|
2390
|
+
avatarType:
|
|
2391
|
+
type: ['image', 'initials']
|
|
2392
|
+
description: the type of the avatar
|
|
2393
|
+
hasUploadedAvatar:
|
|
2394
|
+
type: boolean
|
|
2395
|
+
description: whether the avatar has been uploaded
|
|
2396
|
+
- uploadAvatar succeeded:
|
|
2397
|
+
type: track
|
|
2398
|
+
description: fired when the upload avatar action is succeeded
|
|
2399
|
+
attributes:
|
|
2400
|
+
avatarType:
|
|
2401
|
+
type: ['image', 'initials']
|
|
2402
|
+
description: the type of the avatar
|
|
2403
|
+
hasUploadedAvatar:
|
|
2404
|
+
type: boolean
|
|
2405
|
+
description: whether the avatar has been uploaded
|
|
2406
|
+
- button clicked (updateAvatarInitials):
|
|
2407
|
+
type: ui
|
|
2408
|
+
description: fired when the update avatar initials button is clicked
|
|
2409
|
+
attributes:
|
|
2410
|
+
isInvalid:
|
|
2411
|
+
type: boolean
|
|
2412
|
+
description: whether the avatar is invalid
|
|
2413
|
+
color:
|
|
2414
|
+
type: string
|
|
2415
|
+
description: the color of the avatar
|
|
2416
|
+
- button clicked (cancelUpdateAvatarInitials):
|
|
2417
|
+
type: ui
|
|
2418
|
+
description: fired when the cancel update avatar initials button is clicked
|
|
2419
|
+
- avatarInitialsPicker closed:
|
|
2420
|
+
type: track
|
|
2421
|
+
description: fired when the avatar initials picker is closed
|
|
2422
|
+
- avatarInitialsPicker viewed:
|
|
2423
|
+
type: screen
|
|
2424
|
+
description: fired when the avatar initials picker is viewed
|
|
2425
|
+
- TeamOrgMismatch failed:
|
|
2426
|
+
type: operational
|
|
2427
|
+
description: fired when the team org mismatch is failed
|
|
2428
|
+
attributes:
|
|
2429
|
+
currentOrgId:
|
|
2430
|
+
type: string
|
|
2431
|
+
description: the current org id
|
|
2432
|
+
queryName:
|
|
2433
|
+
type: string
|
|
2434
|
+
description: the query name
|
|
@@ -16,7 +16,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
16
16
|
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; }
|
|
17
17
|
var defaultAnalyticsContextData = exports.defaultAnalyticsContextData = {
|
|
18
18
|
packageName: "@atlaskit/teams-app-internal-analytics",
|
|
19
|
-
packageVersion: "
|
|
19
|
+
packageVersion: "0.0.0-development"
|
|
20
20
|
};
|
|
21
21
|
function TeamsAppAnalyticsContext(_ref) {
|
|
22
22
|
var data = _ref.data,
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
3
3
|
export const defaultAnalyticsContextData = {
|
|
4
4
|
packageName: "@atlaskit/teams-app-internal-analytics",
|
|
5
|
-
packageVersion: "
|
|
5
|
+
packageVersion: "0.0.0-development"
|
|
6
6
|
};
|
|
7
7
|
export function TeamsAppAnalyticsContext({
|
|
8
8
|
data,
|
|
@@ -6,7 +6,7 @@ import React, { useMemo } from 'react';
|
|
|
6
6
|
import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
7
7
|
export var defaultAnalyticsContextData = {
|
|
8
8
|
packageName: "@atlaskit/teams-app-internal-analytics",
|
|
9
|
-
packageVersion: "
|
|
9
|
+
packageVersion: "0.0.0-development"
|
|
10
10
|
};
|
|
11
11
|
export function TeamsAppAnalyticsContext(_ref) {
|
|
12
12
|
var data = _ref.data,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::b415cf5bbcb0bc924155416a84549b88>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -165,6 +165,13 @@ export type TeamMenuLinkFailedAttributesType = {
|
|
|
165
165
|
status: number | null;
|
|
166
166
|
error: string;
|
|
167
167
|
};
|
|
168
|
+
export type TeamProfileBreadcrumbsItemClickedAttributesType = {
|
|
169
|
+
targetTeamId: string;
|
|
170
|
+
};
|
|
171
|
+
export type HierarchyTeamLinkOutClickedAttributesType = {
|
|
172
|
+
targetTeamId: string;
|
|
173
|
+
};
|
|
174
|
+
export type HierarchyFieldHoveredAttributesType = undefined;
|
|
168
175
|
export type ParentTeamLinkerOpenedAttributesType = {};
|
|
169
176
|
export type ParentTeamLinkerClosedAttributesType = {
|
|
170
177
|
isCanceled: boolean;
|
|
@@ -1099,6 +1106,39 @@ export type HeaderImageSucceededTeamHeaderImageAttributesType = {
|
|
|
1099
1106
|
export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
|
|
1100
1107
|
export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
|
|
1101
1108
|
export type SendFeedbackClickedAttributesType = undefined;
|
|
1109
|
+
export type ButtonClickedRemoveAvatarAttributesType = undefined;
|
|
1110
|
+
export type DeleteAvatarFailedAttributesType = undefined;
|
|
1111
|
+
export type DeleteAvatarSucceededAttributesType = undefined;
|
|
1112
|
+
export type AvatarPickerClosedAttributesType = {
|
|
1113
|
+
hasUploadedAvatar: boolean;
|
|
1114
|
+
};
|
|
1115
|
+
export type AvatarPickerOpenedAttributesType = {
|
|
1116
|
+
hasUploadedAvatar: boolean;
|
|
1117
|
+
};
|
|
1118
|
+
export type ButtonClickedChangeProfilePhotoAttributesType = undefined;
|
|
1119
|
+
export type ButtonClickedCreateInitialsAvatarAttributesType = undefined;
|
|
1120
|
+
export type AvatarInitialsPickerOpenedAttributesType = {
|
|
1121
|
+
hasUploadedAvatar: boolean;
|
|
1122
|
+
};
|
|
1123
|
+
export type UploadAvatarFailedAttributesType = {
|
|
1124
|
+
avatarType: 'image' | 'initials';
|
|
1125
|
+
hasUploadedAvatar: boolean;
|
|
1126
|
+
};
|
|
1127
|
+
export type UploadAvatarSucceededAttributesType = {
|
|
1128
|
+
avatarType: 'image' | 'initials';
|
|
1129
|
+
hasUploadedAvatar: boolean;
|
|
1130
|
+
};
|
|
1131
|
+
export type ButtonClickedUpdateAvatarInitialsAttributesType = {
|
|
1132
|
+
isInvalid: boolean;
|
|
1133
|
+
color: string;
|
|
1134
|
+
};
|
|
1135
|
+
export type ButtonClickedCancelUpdateAvatarInitialsAttributesType = undefined;
|
|
1136
|
+
export type AvatarInitialsPickerClosedAttributesType = undefined;
|
|
1137
|
+
export type AvatarInitialsPickerViewedAttributesType = undefined;
|
|
1138
|
+
export type TeamOrgMismatchFailedAttributesType = {
|
|
1139
|
+
currentOrgId: string;
|
|
1140
|
+
queryName: string;
|
|
1141
|
+
};
|
|
1102
1142
|
export type AnalyticsEventAttributes = {
|
|
1103
1143
|
/**
|
|
1104
1144
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1241,6 +1281,15 @@ export type AnalyticsEventAttributes = {
|
|
|
1241
1281
|
/**
|
|
1242
1282
|
* fired when the people menu link is failed */
|
|
1243
1283
|
'operational.teamMenuLink.failed': TeamMenuLinkFailedAttributesType;
|
|
1284
|
+
/**
|
|
1285
|
+
* fired when the team profile breadcrumbs item is clicked */
|
|
1286
|
+
'ui.teamProfileBreadcrumbsItem.clicked': TeamProfileBreadcrumbsItemClickedAttributesType;
|
|
1287
|
+
/**
|
|
1288
|
+
* fired when the hierarchy team link out is clicked */
|
|
1289
|
+
'ui.hierarchyTeamLinkOut.clicked': HierarchyTeamLinkOutClickedAttributesType;
|
|
1290
|
+
/**
|
|
1291
|
+
* fired when the hierarchy field is hovered */
|
|
1292
|
+
'ui.hierarchyField.hovered': HierarchyFieldHoveredAttributesType;
|
|
1244
1293
|
/**
|
|
1245
1294
|
* fired when the parent team field is clicked */
|
|
1246
1295
|
'ui.parentTeamLinker.opened': ParentTeamLinkerOpenedAttributesType;
|
|
@@ -1846,5 +1895,50 @@ export type AnalyticsEventAttributes = {
|
|
|
1846
1895
|
/**
|
|
1847
1896
|
* fired when the send feedback button is clicked */
|
|
1848
1897
|
'ui.sendFeedback.clicked': SendFeedbackClickedAttributesType;
|
|
1898
|
+
/**
|
|
1899
|
+
* fired when the remove avatar button is clicked */
|
|
1900
|
+
'ui.button.clicked.removeAvatar': ButtonClickedRemoveAvatarAttributesType;
|
|
1901
|
+
/**
|
|
1902
|
+
* fired when the delete avatar action is failed */
|
|
1903
|
+
'track.deleteAvatar.failed': DeleteAvatarFailedAttributesType;
|
|
1904
|
+
/**
|
|
1905
|
+
* fired when the delete avatar action is succeeded */
|
|
1906
|
+
'track.deleteAvatar.succeeded': DeleteAvatarSucceededAttributesType;
|
|
1907
|
+
/**
|
|
1908
|
+
* fired when the avatar picker is closed */
|
|
1909
|
+
'track.avatarPicker.closed': AvatarPickerClosedAttributesType;
|
|
1910
|
+
/**
|
|
1911
|
+
* fired when the avatar picker is opened */
|
|
1912
|
+
'track.avatarPicker.opened': AvatarPickerOpenedAttributesType;
|
|
1913
|
+
/**
|
|
1914
|
+
* fired when the change profile photo button is clicked */
|
|
1915
|
+
'ui.button.clicked.changeProfilePhoto': ButtonClickedChangeProfilePhotoAttributesType;
|
|
1916
|
+
/**
|
|
1917
|
+
* fired when the create initials avatar button is clicked */
|
|
1918
|
+
'ui.button.clicked.createInitialsAvatar': ButtonClickedCreateInitialsAvatarAttributesType;
|
|
1919
|
+
/**
|
|
1920
|
+
* fired when the avatar initials picker is opened */
|
|
1921
|
+
'track.avatarInitialsPicker.opened': AvatarInitialsPickerOpenedAttributesType;
|
|
1922
|
+
/**
|
|
1923
|
+
* fired when the upload avatar action is failed */
|
|
1924
|
+
'track.uploadAvatar.failed': UploadAvatarFailedAttributesType;
|
|
1925
|
+
/**
|
|
1926
|
+
* fired when the upload avatar action is succeeded */
|
|
1927
|
+
'track.uploadAvatar.succeeded': UploadAvatarSucceededAttributesType;
|
|
1928
|
+
/**
|
|
1929
|
+
* fired when the update avatar initials button is clicked */
|
|
1930
|
+
'ui.button.clicked.updateAvatarInitials': ButtonClickedUpdateAvatarInitialsAttributesType;
|
|
1931
|
+
/**
|
|
1932
|
+
* fired when the cancel update avatar initials button is clicked */
|
|
1933
|
+
'ui.button.clicked.cancelUpdateAvatarInitials': ButtonClickedCancelUpdateAvatarInitialsAttributesType;
|
|
1934
|
+
/**
|
|
1935
|
+
* fired when the avatar initials picker is closed */
|
|
1936
|
+
'track.avatarInitialsPicker.closed': AvatarInitialsPickerClosedAttributesType;
|
|
1937
|
+
/**
|
|
1938
|
+
* fired when the avatar initials picker is viewed */
|
|
1939
|
+
'screen.avatarInitialsPicker.viewed': AvatarInitialsPickerViewedAttributesType;
|
|
1940
|
+
/**
|
|
1941
|
+
* fired when the team org mismatch is failed */
|
|
1942
|
+
'operational.TeamOrgMismatch.failed': TeamOrgMismatchFailedAttributesType;
|
|
1849
1943
|
};
|
|
1850
1944
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EventKey } from './generated/analytics.types';
|
|
2
2
|
import type createEventPayload from './generated/create-event-payload';
|
|
3
3
|
export type FireEventType = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
|
|
4
|
-
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome';
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::b415cf5bbcb0bc924155416a84549b88>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -165,6 +165,13 @@ export type TeamMenuLinkFailedAttributesType = {
|
|
|
165
165
|
status: number | null;
|
|
166
166
|
error: string;
|
|
167
167
|
};
|
|
168
|
+
export type TeamProfileBreadcrumbsItemClickedAttributesType = {
|
|
169
|
+
targetTeamId: string;
|
|
170
|
+
};
|
|
171
|
+
export type HierarchyTeamLinkOutClickedAttributesType = {
|
|
172
|
+
targetTeamId: string;
|
|
173
|
+
};
|
|
174
|
+
export type HierarchyFieldHoveredAttributesType = undefined;
|
|
168
175
|
export type ParentTeamLinkerOpenedAttributesType = {};
|
|
169
176
|
export type ParentTeamLinkerClosedAttributesType = {
|
|
170
177
|
isCanceled: boolean;
|
|
@@ -1099,6 +1106,39 @@ export type HeaderImageSucceededTeamHeaderImageAttributesType = {
|
|
|
1099
1106
|
export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
|
|
1100
1107
|
export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
|
|
1101
1108
|
export type SendFeedbackClickedAttributesType = undefined;
|
|
1109
|
+
export type ButtonClickedRemoveAvatarAttributesType = undefined;
|
|
1110
|
+
export type DeleteAvatarFailedAttributesType = undefined;
|
|
1111
|
+
export type DeleteAvatarSucceededAttributesType = undefined;
|
|
1112
|
+
export type AvatarPickerClosedAttributesType = {
|
|
1113
|
+
hasUploadedAvatar: boolean;
|
|
1114
|
+
};
|
|
1115
|
+
export type AvatarPickerOpenedAttributesType = {
|
|
1116
|
+
hasUploadedAvatar: boolean;
|
|
1117
|
+
};
|
|
1118
|
+
export type ButtonClickedChangeProfilePhotoAttributesType = undefined;
|
|
1119
|
+
export type ButtonClickedCreateInitialsAvatarAttributesType = undefined;
|
|
1120
|
+
export type AvatarInitialsPickerOpenedAttributesType = {
|
|
1121
|
+
hasUploadedAvatar: boolean;
|
|
1122
|
+
};
|
|
1123
|
+
export type UploadAvatarFailedAttributesType = {
|
|
1124
|
+
avatarType: 'image' | 'initials';
|
|
1125
|
+
hasUploadedAvatar: boolean;
|
|
1126
|
+
};
|
|
1127
|
+
export type UploadAvatarSucceededAttributesType = {
|
|
1128
|
+
avatarType: 'image' | 'initials';
|
|
1129
|
+
hasUploadedAvatar: boolean;
|
|
1130
|
+
};
|
|
1131
|
+
export type ButtonClickedUpdateAvatarInitialsAttributesType = {
|
|
1132
|
+
isInvalid: boolean;
|
|
1133
|
+
color: string;
|
|
1134
|
+
};
|
|
1135
|
+
export type ButtonClickedCancelUpdateAvatarInitialsAttributesType = undefined;
|
|
1136
|
+
export type AvatarInitialsPickerClosedAttributesType = undefined;
|
|
1137
|
+
export type AvatarInitialsPickerViewedAttributesType = undefined;
|
|
1138
|
+
export type TeamOrgMismatchFailedAttributesType = {
|
|
1139
|
+
currentOrgId: string;
|
|
1140
|
+
queryName: string;
|
|
1141
|
+
};
|
|
1102
1142
|
export type AnalyticsEventAttributes = {
|
|
1103
1143
|
/**
|
|
1104
1144
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1241,6 +1281,15 @@ export type AnalyticsEventAttributes = {
|
|
|
1241
1281
|
/**
|
|
1242
1282
|
* fired when the people menu link is failed */
|
|
1243
1283
|
'operational.teamMenuLink.failed': TeamMenuLinkFailedAttributesType;
|
|
1284
|
+
/**
|
|
1285
|
+
* fired when the team profile breadcrumbs item is clicked */
|
|
1286
|
+
'ui.teamProfileBreadcrumbsItem.clicked': TeamProfileBreadcrumbsItemClickedAttributesType;
|
|
1287
|
+
/**
|
|
1288
|
+
* fired when the hierarchy team link out is clicked */
|
|
1289
|
+
'ui.hierarchyTeamLinkOut.clicked': HierarchyTeamLinkOutClickedAttributesType;
|
|
1290
|
+
/**
|
|
1291
|
+
* fired when the hierarchy field is hovered */
|
|
1292
|
+
'ui.hierarchyField.hovered': HierarchyFieldHoveredAttributesType;
|
|
1244
1293
|
/**
|
|
1245
1294
|
* fired when the parent team field is clicked */
|
|
1246
1295
|
'ui.parentTeamLinker.opened': ParentTeamLinkerOpenedAttributesType;
|
|
@@ -1846,5 +1895,50 @@ export type AnalyticsEventAttributes = {
|
|
|
1846
1895
|
/**
|
|
1847
1896
|
* fired when the send feedback button is clicked */
|
|
1848
1897
|
'ui.sendFeedback.clicked': SendFeedbackClickedAttributesType;
|
|
1898
|
+
/**
|
|
1899
|
+
* fired when the remove avatar button is clicked */
|
|
1900
|
+
'ui.button.clicked.removeAvatar': ButtonClickedRemoveAvatarAttributesType;
|
|
1901
|
+
/**
|
|
1902
|
+
* fired when the delete avatar action is failed */
|
|
1903
|
+
'track.deleteAvatar.failed': DeleteAvatarFailedAttributesType;
|
|
1904
|
+
/**
|
|
1905
|
+
* fired when the delete avatar action is succeeded */
|
|
1906
|
+
'track.deleteAvatar.succeeded': DeleteAvatarSucceededAttributesType;
|
|
1907
|
+
/**
|
|
1908
|
+
* fired when the avatar picker is closed */
|
|
1909
|
+
'track.avatarPicker.closed': AvatarPickerClosedAttributesType;
|
|
1910
|
+
/**
|
|
1911
|
+
* fired when the avatar picker is opened */
|
|
1912
|
+
'track.avatarPicker.opened': AvatarPickerOpenedAttributesType;
|
|
1913
|
+
/**
|
|
1914
|
+
* fired when the change profile photo button is clicked */
|
|
1915
|
+
'ui.button.clicked.changeProfilePhoto': ButtonClickedChangeProfilePhotoAttributesType;
|
|
1916
|
+
/**
|
|
1917
|
+
* fired when the create initials avatar button is clicked */
|
|
1918
|
+
'ui.button.clicked.createInitialsAvatar': ButtonClickedCreateInitialsAvatarAttributesType;
|
|
1919
|
+
/**
|
|
1920
|
+
* fired when the avatar initials picker is opened */
|
|
1921
|
+
'track.avatarInitialsPicker.opened': AvatarInitialsPickerOpenedAttributesType;
|
|
1922
|
+
/**
|
|
1923
|
+
* fired when the upload avatar action is failed */
|
|
1924
|
+
'track.uploadAvatar.failed': UploadAvatarFailedAttributesType;
|
|
1925
|
+
/**
|
|
1926
|
+
* fired when the upload avatar action is succeeded */
|
|
1927
|
+
'track.uploadAvatar.succeeded': UploadAvatarSucceededAttributesType;
|
|
1928
|
+
/**
|
|
1929
|
+
* fired when the update avatar initials button is clicked */
|
|
1930
|
+
'ui.button.clicked.updateAvatarInitials': ButtonClickedUpdateAvatarInitialsAttributesType;
|
|
1931
|
+
/**
|
|
1932
|
+
* fired when the cancel update avatar initials button is clicked */
|
|
1933
|
+
'ui.button.clicked.cancelUpdateAvatarInitials': ButtonClickedCancelUpdateAvatarInitialsAttributesType;
|
|
1934
|
+
/**
|
|
1935
|
+
* fired when the avatar initials picker is closed */
|
|
1936
|
+
'track.avatarInitialsPicker.closed': AvatarInitialsPickerClosedAttributesType;
|
|
1937
|
+
/**
|
|
1938
|
+
* fired when the avatar initials picker is viewed */
|
|
1939
|
+
'screen.avatarInitialsPicker.viewed': AvatarInitialsPickerViewedAttributesType;
|
|
1940
|
+
/**
|
|
1941
|
+
* fired when the team org mismatch is failed */
|
|
1942
|
+
'operational.TeamOrgMismatch.failed': TeamOrgMismatchFailedAttributesType;
|
|
1849
1943
|
};
|
|
1850
1944
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EventKey } from './generated/analytics.types';
|
|
2
2
|
import type createEventPayload from './generated/create-event-payload';
|
|
3
3
|
export type FireEventType = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
|
|
4
|
-
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome';
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage';
|
package/package.json
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
31
31
|
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
32
32
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
33
|
-
"@atlaskit/css": "^0.
|
|
34
|
-
"@atlaskit/primitives": "^
|
|
35
|
-
"@atlaskit/tokens": "^6.
|
|
33
|
+
"@atlaskit/css": "^0.15.0",
|
|
34
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
35
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"@compiled/react": "^0.18.3"
|
|
38
38
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
91
|
-
"version": "1.
|
|
91
|
+
"version": "1.16.0",
|
|
92
92
|
"description": "A package used by the teams app and platform packages to handle people and teams analytics",
|
|
93
93
|
"author": "Atlassian Pty Ltd",
|
|
94
94
|
"license": "Apache-2.0",
|