@atlaskit/teams-app-internal-analytics 1.23.0 → 1.23.2
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 +15 -0
- package/analytics.spec.yaml +18 -2
- 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 +15 -3
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +15 -3
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.23.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`32b4ac3b686c8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/32b4ac3b686c8) -
|
|
8
|
+
PTC-14729: Add analytics for user profile overview tab + add onclick support for team card + add
|
|
9
|
+
new attribute isNewUserProfile to team-app-intenral-analytics
|
|
10
|
+
|
|
11
|
+
## 1.23.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`6cb688efd254d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6cb688efd254d) -
|
|
16
|
+
Removed keyboard value from team profilecard open method attribute
|
|
17
|
+
|
|
3
18
|
## 1.23.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -72,6 +72,11 @@ shared:
|
|
|
72
72
|
packageVersion:
|
|
73
73
|
type: string
|
|
74
74
|
description: version of the package the event was fired from
|
|
75
|
+
NewUserProfileAttribute: &NewUserProfileAttribute
|
|
76
|
+
isNewUserProfile:
|
|
77
|
+
type: boolean
|
|
78
|
+
required: false
|
|
79
|
+
description: whether this event is fired from the new user profile page
|
|
75
80
|
AgentProfileCardActionsAttributes: &AgentProfileCardActionsAttributes
|
|
76
81
|
agentId:
|
|
77
82
|
type: string
|
|
@@ -352,7 +357,6 @@ events:
|
|
|
352
357
|
type: []
|
|
353
358
|
required: false
|
|
354
359
|
description: error details from the failed API call
|
|
355
|
-
|
|
356
360
|
- invitedTeamMembers added:
|
|
357
361
|
type: track
|
|
358
362
|
description: fired when the invited team members are added
|
|
@@ -1731,7 +1735,7 @@ events:
|
|
|
1731
1735
|
attributes:
|
|
1732
1736
|
<<: [*PackageMetaDataContext, *ProfileCardAttributes]
|
|
1733
1737
|
method:
|
|
1734
|
-
type: ['hover', 'click'
|
|
1738
|
+
type: ['hover', 'click']
|
|
1735
1739
|
description: the method of the profilecard
|
|
1736
1740
|
teamId:
|
|
1737
1741
|
type: string
|
|
@@ -2480,6 +2484,7 @@ events:
|
|
|
2480
2484
|
nonEmptyFields:
|
|
2481
2485
|
type: string
|
|
2482
2486
|
description: the non empty fields
|
|
2487
|
+
<<: *NewUserProfileAttribute
|
|
2483
2488
|
- privacyPolicyLink clicked:
|
|
2484
2489
|
type: ui
|
|
2485
2490
|
description: fired when the privacy policy link is clicked
|
|
@@ -2494,6 +2499,7 @@ events:
|
|
|
2494
2499
|
type: boolean
|
|
2495
2500
|
required: false
|
|
2496
2501
|
description: whether the team profile item is powered by TWG
|
|
2502
|
+
<<: *NewUserProfileAttribute
|
|
2497
2503
|
- showMore clicked:
|
|
2498
2504
|
type: ui
|
|
2499
2505
|
description: fired when the show more button is clicked
|
|
@@ -2506,6 +2512,7 @@ events:
|
|
|
2506
2512
|
type: boolean
|
|
2507
2513
|
required: false
|
|
2508
2514
|
description: whether the search query is present
|
|
2515
|
+
<<: *NewUserProfileAttribute
|
|
2509
2516
|
- teamCreateDialogTriggerButton clicked:
|
|
2510
2517
|
type: ui
|
|
2511
2518
|
description: fired when the team create dialog trigger button is clicked
|
|
@@ -2513,6 +2520,7 @@ events:
|
|
|
2513
2520
|
trigger:
|
|
2514
2521
|
type: string
|
|
2515
2522
|
description: the trigger
|
|
2523
|
+
<<: *NewUserProfileAttribute
|
|
2516
2524
|
- button clicked (manageAccountButton):
|
|
2517
2525
|
type: ui
|
|
2518
2526
|
description: fired when the manage account button is clicked
|
|
@@ -2522,6 +2530,8 @@ events:
|
|
|
2522
2530
|
- userProfileScreenLoad failed:
|
|
2523
2531
|
type: track
|
|
2524
2532
|
description: fired when the user profile screen load fails
|
|
2533
|
+
attributes:
|
|
2534
|
+
<<: *NewUserProfileAttribute
|
|
2525
2535
|
- userProfileScreen viewed:
|
|
2526
2536
|
type: screen
|
|
2527
2537
|
description: fired when the user profile screen is viewed
|
|
@@ -2529,6 +2539,7 @@ events:
|
|
|
2529
2539
|
isCurrentUser:
|
|
2530
2540
|
type: boolean
|
|
2531
2541
|
description: whether the user is the current user
|
|
2542
|
+
<<: *NewUserProfileAttribute
|
|
2532
2543
|
- viewAllWork clicked:
|
|
2533
2544
|
type: ui
|
|
2534
2545
|
description: fired when the view all work button is clicked
|
|
@@ -2536,6 +2547,7 @@ events:
|
|
|
2536
2547
|
location:
|
|
2537
2548
|
type: string
|
|
2538
2549
|
description: the location
|
|
2550
|
+
<<: *NewUserProfileAttribute
|
|
2539
2551
|
- moreWork clicked:
|
|
2540
2552
|
type: ui
|
|
2541
2553
|
description: fired when the more work button is clicked
|
|
@@ -2543,6 +2555,7 @@ events:
|
|
|
2543
2555
|
numItemsDisplayed:
|
|
2544
2556
|
type: number
|
|
2545
2557
|
description: the number of items displayed
|
|
2558
|
+
<<: *NewUserProfileAttribute
|
|
2546
2559
|
- activityEntry clicked:
|
|
2547
2560
|
type: ui
|
|
2548
2561
|
description: fired when the activity entry is clicked
|
|
@@ -2553,6 +2566,7 @@ events:
|
|
|
2553
2566
|
entryIndex:
|
|
2554
2567
|
type: number
|
|
2555
2568
|
description: the index
|
|
2569
|
+
<<: *NewUserProfileAttribute
|
|
2556
2570
|
- placesLink clicked:
|
|
2557
2571
|
type: ui
|
|
2558
2572
|
description: fired when the places link is clicked
|
|
@@ -2560,6 +2574,7 @@ events:
|
|
|
2560
2574
|
type:
|
|
2561
2575
|
type: string
|
|
2562
2576
|
description: the type of the place
|
|
2577
|
+
<<: *NewUserProfileAttribute
|
|
2563
2578
|
- ViewedTeamProfileFromRequestToJoinNotification viewed:
|
|
2564
2579
|
type: track
|
|
2565
2580
|
description: fired when the team profile is viewed from the request to join notification
|
|
@@ -3118,6 +3133,7 @@ events:
|
|
|
3118
3133
|
teamsCount:
|
|
3119
3134
|
type: number
|
|
3120
3135
|
description: how many teams
|
|
3136
|
+
<<: *NewUserProfileAttribute
|
|
3121
3137
|
- teamAgentsPanel viewed:
|
|
3122
3138
|
type: screen
|
|
3123
3139
|
description: fired when team agents panel is viewed
|
|
@@ -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: "1.23.1"
|
|
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: "1.23.1"
|
|
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: "1.23.1"
|
|
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::69ce17efcdd11244664ecaea57b5d532>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -765,7 +765,7 @@ export type RovoAgentProfilecardTriggeredAttributesType = {
|
|
|
765
765
|
};
|
|
766
766
|
export type TeamProfileCardTriggeredAttributesType = {
|
|
767
767
|
firedAt: number;
|
|
768
|
-
method: 'hover' | 'click'
|
|
768
|
+
method: 'hover' | 'click';
|
|
769
769
|
teamId: string;
|
|
770
770
|
};
|
|
771
771
|
export type UserTriggeredAttributesType = {
|
|
@@ -1154,37 +1154,48 @@ export type ProfileAboutItemEditedAttributesType = {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
export type UserProfileScreenAboutPanelViewedAttributesType = {
|
|
1156
1156
|
nonEmptyFields: string;
|
|
1157
|
+
isNewUserProfile: boolean | null;
|
|
1157
1158
|
};
|
|
1158
1159
|
export type PrivacyPolicyLinkClickedAttributesType = undefined;
|
|
1159
1160
|
export type TeamProfileItemClickedAttributesType = {
|
|
1160
1161
|
position: number;
|
|
1161
1162
|
isPoweredByTWG: boolean | null;
|
|
1163
|
+
isNewUserProfile: boolean | null;
|
|
1162
1164
|
};
|
|
1163
1165
|
export type ShowMoreClickedAttributesType = {
|
|
1164
1166
|
selectedUser: boolean | null;
|
|
1165
1167
|
withSearchQuery: boolean | null;
|
|
1168
|
+
isNewUserProfile: boolean | null;
|
|
1166
1169
|
};
|
|
1167
1170
|
export type TeamCreateDialogTriggerButtonClickedAttributesType = {
|
|
1168
1171
|
trigger: string;
|
|
1172
|
+
isNewUserProfile: boolean | null;
|
|
1169
1173
|
};
|
|
1170
1174
|
export type ButtonClickedManageAccountButtonAttributesType = undefined;
|
|
1171
1175
|
export type ButtonClickedManageAccessButtonAttributesType = undefined;
|
|
1172
|
-
export type UserProfileScreenLoadFailedAttributesType =
|
|
1176
|
+
export type UserProfileScreenLoadFailedAttributesType = {
|
|
1177
|
+
isNewUserProfile: boolean | null;
|
|
1178
|
+
};
|
|
1173
1179
|
export type UserProfileScreenViewedAttributesType = {
|
|
1174
1180
|
isCurrentUser: boolean;
|
|
1181
|
+
isNewUserProfile: boolean | null;
|
|
1175
1182
|
};
|
|
1176
1183
|
export type ViewAllWorkClickedAttributesType = {
|
|
1177
1184
|
location: string;
|
|
1185
|
+
isNewUserProfile: boolean | null;
|
|
1178
1186
|
};
|
|
1179
1187
|
export type MoreWorkClickedAttributesType = {
|
|
1180
1188
|
numItemsDisplayed: number;
|
|
1189
|
+
isNewUserProfile: boolean | null;
|
|
1181
1190
|
};
|
|
1182
1191
|
export type ActivityEntryClickedAttributesType = {
|
|
1183
1192
|
provider: string;
|
|
1184
1193
|
entryIndex: number;
|
|
1194
|
+
isNewUserProfile: boolean | null;
|
|
1185
1195
|
};
|
|
1186
1196
|
export type PlacesLinkClickedAttributesType = {
|
|
1187
1197
|
type: string;
|
|
1198
|
+
isNewUserProfile: boolean | null;
|
|
1188
1199
|
};
|
|
1189
1200
|
export type ViewedTeamProfileFromRequestToJoinNotificationViewedAttributesType = {
|
|
1190
1201
|
status: number | null;
|
|
@@ -1384,6 +1395,7 @@ export type AgentProfileAboutTeamsViewedAttributesType = {
|
|
|
1384
1395
|
};
|
|
1385
1396
|
export type UserProfileAboutTeamsViewedAttributesType = {
|
|
1386
1397
|
teamsCount: number;
|
|
1398
|
+
isNewUserProfile: boolean | null;
|
|
1387
1399
|
};
|
|
1388
1400
|
export type TeamAgentsPanelViewedAttributesType = {
|
|
1389
1401
|
activeAgentsCount: number;
|
|
@@ -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::69ce17efcdd11244664ecaea57b5d532>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -765,7 +765,7 @@ export type RovoAgentProfilecardTriggeredAttributesType = {
|
|
|
765
765
|
};
|
|
766
766
|
export type TeamProfileCardTriggeredAttributesType = {
|
|
767
767
|
firedAt: number;
|
|
768
|
-
method: 'hover' | 'click'
|
|
768
|
+
method: 'hover' | 'click';
|
|
769
769
|
teamId: string;
|
|
770
770
|
};
|
|
771
771
|
export type UserTriggeredAttributesType = {
|
|
@@ -1154,37 +1154,48 @@ export type ProfileAboutItemEditedAttributesType = {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
export type UserProfileScreenAboutPanelViewedAttributesType = {
|
|
1156
1156
|
nonEmptyFields: string;
|
|
1157
|
+
isNewUserProfile: boolean | null;
|
|
1157
1158
|
};
|
|
1158
1159
|
export type PrivacyPolicyLinkClickedAttributesType = undefined;
|
|
1159
1160
|
export type TeamProfileItemClickedAttributesType = {
|
|
1160
1161
|
position: number;
|
|
1161
1162
|
isPoweredByTWG: boolean | null;
|
|
1163
|
+
isNewUserProfile: boolean | null;
|
|
1162
1164
|
};
|
|
1163
1165
|
export type ShowMoreClickedAttributesType = {
|
|
1164
1166
|
selectedUser: boolean | null;
|
|
1165
1167
|
withSearchQuery: boolean | null;
|
|
1168
|
+
isNewUserProfile: boolean | null;
|
|
1166
1169
|
};
|
|
1167
1170
|
export type TeamCreateDialogTriggerButtonClickedAttributesType = {
|
|
1168
1171
|
trigger: string;
|
|
1172
|
+
isNewUserProfile: boolean | null;
|
|
1169
1173
|
};
|
|
1170
1174
|
export type ButtonClickedManageAccountButtonAttributesType = undefined;
|
|
1171
1175
|
export type ButtonClickedManageAccessButtonAttributesType = undefined;
|
|
1172
|
-
export type UserProfileScreenLoadFailedAttributesType =
|
|
1176
|
+
export type UserProfileScreenLoadFailedAttributesType = {
|
|
1177
|
+
isNewUserProfile: boolean | null;
|
|
1178
|
+
};
|
|
1173
1179
|
export type UserProfileScreenViewedAttributesType = {
|
|
1174
1180
|
isCurrentUser: boolean;
|
|
1181
|
+
isNewUserProfile: boolean | null;
|
|
1175
1182
|
};
|
|
1176
1183
|
export type ViewAllWorkClickedAttributesType = {
|
|
1177
1184
|
location: string;
|
|
1185
|
+
isNewUserProfile: boolean | null;
|
|
1178
1186
|
};
|
|
1179
1187
|
export type MoreWorkClickedAttributesType = {
|
|
1180
1188
|
numItemsDisplayed: number;
|
|
1189
|
+
isNewUserProfile: boolean | null;
|
|
1181
1190
|
};
|
|
1182
1191
|
export type ActivityEntryClickedAttributesType = {
|
|
1183
1192
|
provider: string;
|
|
1184
1193
|
entryIndex: number;
|
|
1194
|
+
isNewUserProfile: boolean | null;
|
|
1185
1195
|
};
|
|
1186
1196
|
export type PlacesLinkClickedAttributesType = {
|
|
1187
1197
|
type: string;
|
|
1198
|
+
isNewUserProfile: boolean | null;
|
|
1188
1199
|
};
|
|
1189
1200
|
export type ViewedTeamProfileFromRequestToJoinNotificationViewedAttributesType = {
|
|
1190
1201
|
status: number | null;
|
|
@@ -1384,6 +1395,7 @@ export type AgentProfileAboutTeamsViewedAttributesType = {
|
|
|
1384
1395
|
};
|
|
1385
1396
|
export type UserProfileAboutTeamsViewedAttributesType = {
|
|
1386
1397
|
teamsCount: number;
|
|
1398
|
+
isNewUserProfile: boolean | null;
|
|
1387
1399
|
};
|
|
1388
1400
|
export type TeamAgentsPanelViewedAttributesType = {
|
|
1389
1401
|
activeAgentsCount: number;
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"analytics:codegen": "yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics --output ./src/common/utils/generated"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/analytics-listeners": "^9.
|
|
30
|
+
"@atlaskit/analytics-listeners": "^9.3.0",
|
|
31
31
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
32
32
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"@af/visual-regression": "workspace:^",
|
|
42
42
|
"@atlaskit/ssr": "workspace:^",
|
|
43
43
|
"@atlassian/ptc-test-utils": "^0.11.0",
|
|
44
|
-
"@testing-library/react": "^
|
|
45
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
44
|
+
"@testing-library/react": "^16.3.0",
|
|
46
45
|
"@testing-library/user-event": "^14.4.3",
|
|
47
46
|
"react-dom": "^18.2.0"
|
|
48
47
|
},
|
|
@@ -85,7 +84,7 @@
|
|
|
85
84
|
}
|
|
86
85
|
},
|
|
87
86
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
88
|
-
"version": "1.23.
|
|
87
|
+
"version": "1.23.2",
|
|
89
88
|
"description": "A package used by the teams app and platform packages to handle people and teams analytics",
|
|
90
89
|
"author": "Atlassian Pty Ltd",
|
|
91
90
|
"license": "Apache-2.0",
|