@atlaskit/teams-app-internal-analytics 1.23.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 1.23.1
4
12
 
5
13
  ### Patch Changes
@@ -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
@@ -2479,6 +2484,7 @@ events:
2479
2484
  nonEmptyFields:
2480
2485
  type: string
2481
2486
  description: the non empty fields
2487
+ <<: *NewUserProfileAttribute
2482
2488
  - privacyPolicyLink clicked:
2483
2489
  type: ui
2484
2490
  description: fired when the privacy policy link is clicked
@@ -2493,6 +2499,7 @@ events:
2493
2499
  type: boolean
2494
2500
  required: false
2495
2501
  description: whether the team profile item is powered by TWG
2502
+ <<: *NewUserProfileAttribute
2496
2503
  - showMore clicked:
2497
2504
  type: ui
2498
2505
  description: fired when the show more button is clicked
@@ -2505,6 +2512,7 @@ events:
2505
2512
  type: boolean
2506
2513
  required: false
2507
2514
  description: whether the search query is present
2515
+ <<: *NewUserProfileAttribute
2508
2516
  - teamCreateDialogTriggerButton clicked:
2509
2517
  type: ui
2510
2518
  description: fired when the team create dialog trigger button is clicked
@@ -2512,6 +2520,7 @@ events:
2512
2520
  trigger:
2513
2521
  type: string
2514
2522
  description: the trigger
2523
+ <<: *NewUserProfileAttribute
2515
2524
  - button clicked (manageAccountButton):
2516
2525
  type: ui
2517
2526
  description: fired when the manage account button is clicked
@@ -2521,6 +2530,8 @@ events:
2521
2530
  - userProfileScreenLoad failed:
2522
2531
  type: track
2523
2532
  description: fired when the user profile screen load fails
2533
+ attributes:
2534
+ <<: *NewUserProfileAttribute
2524
2535
  - userProfileScreen viewed:
2525
2536
  type: screen
2526
2537
  description: fired when the user profile screen is viewed
@@ -2528,6 +2539,7 @@ events:
2528
2539
  isCurrentUser:
2529
2540
  type: boolean
2530
2541
  description: whether the user is the current user
2542
+ <<: *NewUserProfileAttribute
2531
2543
  - viewAllWork clicked:
2532
2544
  type: ui
2533
2545
  description: fired when the view all work button is clicked
@@ -2535,6 +2547,7 @@ events:
2535
2547
  location:
2536
2548
  type: string
2537
2549
  description: the location
2550
+ <<: *NewUserProfileAttribute
2538
2551
  - moreWork clicked:
2539
2552
  type: ui
2540
2553
  description: fired when the more work button is clicked
@@ -2542,6 +2555,7 @@ events:
2542
2555
  numItemsDisplayed:
2543
2556
  type: number
2544
2557
  description: the number of items displayed
2558
+ <<: *NewUserProfileAttribute
2545
2559
  - activityEntry clicked:
2546
2560
  type: ui
2547
2561
  description: fired when the activity entry is clicked
@@ -2552,6 +2566,7 @@ events:
2552
2566
  entryIndex:
2553
2567
  type: number
2554
2568
  description: the index
2569
+ <<: *NewUserProfileAttribute
2555
2570
  - placesLink clicked:
2556
2571
  type: ui
2557
2572
  description: fired when the places link is clicked
@@ -2559,6 +2574,7 @@ events:
2559
2574
  type:
2560
2575
  type: string
2561
2576
  description: the type of the place
2577
+ <<: *NewUserProfileAttribute
2562
2578
  - ViewedTeamProfileFromRequestToJoinNotification viewed:
2563
2579
  type: track
2564
2580
  description: fired when the team profile is viewed from the request to join notification
@@ -3117,6 +3133,7 @@ events:
3117
3133
  teamsCount:
3118
3134
  type: number
3119
3135
  description: how many teams
3136
+ <<: *NewUserProfileAttribute
3120
3137
  - teamAgentsPanel viewed:
3121
3138
  type: screen
3122
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: "0.0.0-development"
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: "0.0.0-development"
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: "0.0.0-development"
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::eb2aa4be20622862a1a866d4af0eeefc>>
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 = {
@@ -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 = undefined;
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::eb2aa4be20622862a1a866d4af0eeefc>>
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 = {
@@ -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 = undefined;
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.1.0",
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": "^13.4.0",
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.1",
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",