@atlaskit/teams-app-internal-analytics 1.15.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 +11 -0
- package/analytics.spec.yaml +85 -0
- package/dist/types/common/utils/generated/analytics.types.d.ts +79 -1
- package/dist/types/common/utils/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +79 -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,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 1.15.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -2347,3 +2347,88 @@ events:
|
|
|
2347
2347
|
- sendFeedback clicked:
|
|
2348
2348
|
type: ui
|
|
2349
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
|
|
@@ -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 = {
|
|
@@ -1106,6 +1106,39 @@ export type HeaderImageSucceededTeamHeaderImageAttributesType = {
|
|
|
1106
1106
|
export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
|
|
1107
1107
|
export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
|
|
1108
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
|
+
};
|
|
1109
1142
|
export type AnalyticsEventAttributes = {
|
|
1110
1143
|
/**
|
|
1111
1144
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1862,5 +1895,50 @@ export type AnalyticsEventAttributes = {
|
|
|
1862
1895
|
/**
|
|
1863
1896
|
* fired when the send feedback button is clicked */
|
|
1864
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;
|
|
1865
1943
|
};
|
|
1866
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 = {
|
|
@@ -1106,6 +1106,39 @@ export type HeaderImageSucceededTeamHeaderImageAttributesType = {
|
|
|
1106
1106
|
export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
|
|
1107
1107
|
export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
|
|
1108
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
|
+
};
|
|
1109
1142
|
export type AnalyticsEventAttributes = {
|
|
1110
1143
|
/**
|
|
1111
1144
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1862,5 +1895,50 @@ export type AnalyticsEventAttributes = {
|
|
|
1862
1895
|
/**
|
|
1863
1896
|
* fired when the send feedback button is clicked */
|
|
1864
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;
|
|
1865
1943
|
};
|
|
1866
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",
|