@atlaskit/teams-app-internal-analytics 1.17.2 → 1.19.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`24b2ff24249b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/24b2ff24249b2) -
8
+ Added teamwork graph related analytics events
9
+
10
+ ## 1.18.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`f2ea519415d68`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2ea519415d68) -
15
+ Migrated search page analytics from ptc-embeddable-directory to teams-app-internal-analytics
16
+
3
17
  ## 1.17.2
4
18
 
5
19
  ### Patch Changes
@@ -2456,9 +2456,22 @@ events:
2456
2456
  position:
2457
2457
  type: number
2458
2458
  description: the position of the team profile item
2459
+ isPoweredByTWG:
2460
+ type: boolean
2461
+ required: false
2462
+ description: whether the team profile item is powered by TWG
2459
2463
  - showMore clicked:
2460
2464
  type: ui
2461
2465
  description: fired when the show more button is clicked
2466
+ attributes:
2467
+ selectedUser:
2468
+ type: boolean
2469
+ required: false
2470
+ description: whether the selected user is the current user
2471
+ withSearchQuery:
2472
+ type: boolean
2473
+ required: false
2474
+ description: whether the search query is present
2462
2475
  - teamCreateDialogTriggerButton clicked:
2463
2476
  type: ui
2464
2477
  description: fired when the team create dialog trigger button is clicked
@@ -2876,3 +2889,118 @@ events:
2876
2889
  type: boolean
2877
2890
  description: whether the user is verified
2878
2891
  required: false
2892
+ - peopleHome viewed:
2893
+ type: screen
2894
+ description: fired when the people home is viewed
2895
+ - userFilter selected:
2896
+ type: ui
2897
+ description: fired when a user filter is selected
2898
+ attributes:
2899
+ isCurrentUser:
2900
+ type: boolean
2901
+ description: whether the selected user is the current user
2902
+ - teamElement clicked:
2903
+ type: ui
2904
+ description: fired when a team element is clicked
2905
+ attributes:
2906
+ entryIndex:
2907
+ type: number
2908
+ description: the index
2909
+ withSearchQuery:
2910
+ type: boolean
2911
+ description: whether the search query is present
2912
+ isCurrentUser:
2913
+ type: boolean
2914
+ description: whether the selected user is the current user
2915
+ - suggestedCollaborators clicked:
2916
+ type: ui
2917
+ description: fired when a suggested collaborator is clicked
2918
+ attributes:
2919
+ entryIndex:
2920
+ type: number
2921
+ description: the index
2922
+ - ViewDirectoryFiltersInAtlas clicked:
2923
+ type: ui
2924
+ description: fired when the view directory filters in atlas is clicked
2925
+ attributes:
2926
+ isAdmin:
2927
+ type: boolean
2928
+ description: whether the user is a site admin
2929
+ product:
2930
+ type: string
2931
+ description: the product
2932
+ workspaceUuid:
2933
+ type: string
2934
+ description: the workspace uuid
2935
+ required: false
2936
+ - yourTeams clicked:
2937
+ type: ui
2938
+ description: fired when the your teams is clicked
2939
+ attributes:
2940
+ entryIndex:
2941
+ type: number
2942
+ description: the index
2943
+ - browseAllTeams clicked:
2944
+ type: ui
2945
+ description: fired when the browse all teams is clicked
2946
+ - addPeopleButton clicked:
2947
+ type: ui
2948
+ description: fired when the add people button is clicked
2949
+ attributes:
2950
+ trigger:
2951
+ type: string
2952
+ description: the trigger
2953
+ - teamSearchResult clicked:
2954
+ type: ui
2955
+ description: fired when the team search result is clicked
2956
+ attributes:
2957
+ entryIndex:
2958
+ type: number
2959
+ description: the index
2960
+ withSearchQuery:
2961
+ type: boolean
2962
+ description: whether the search query is present
2963
+ - recentCollaborator clicked:
2964
+ type: ui
2965
+ description: fired when the recent collaborator is clicked
2966
+ attributes:
2967
+ entryIndex:
2968
+ type: number
2969
+ description: the index
2970
+ sessionId:
2971
+ type: string
2972
+ description: the session id
2973
+ dataSource:
2974
+ type: string
2975
+ description: the data source
2976
+ - peopleSearchResult clicked:
2977
+ type: ui
2978
+ description: fired when the people search result is clicked
2979
+ attributes:
2980
+ entryIndex:
2981
+ type: number
2982
+ description: the index
2983
+ withSearchQuery:
2984
+ type: boolean
2985
+ description: whether the search query is present
2986
+ - agentProfileAboutTeams viewed:
2987
+ type: screen
2988
+ description: fired when agent profile about teams section is viewed
2989
+ attributes:
2990
+ teamsCount:
2991
+ type: number
2992
+ description: how many teams
2993
+ - userProfileAboutTeams viewed:
2994
+ type: screen
2995
+ description: fired when user profile about teams section is viewed
2996
+ attributes:
2997
+ teamsCount:
2998
+ type: number
2999
+ description: how many teams
3000
+ - teamAgentsPanel viewed:
3001
+ type: screen
3002
+ description: fired when team agents panel is viewed
3003
+ attributes:
3004
+ activeAgentsCount:
3005
+ type: number
3006
+ description: how many active agents
@@ -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.18.0"
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.18.0"
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.18.0"
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::a6b20df2d2f431cd63752ff404dab502>>
6
+ * @codegen <<SignedSource::240011c0c702e1957926c381c0891181>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -1148,8 +1148,12 @@ export type UserProfileScreenAboutPanelViewedAttributesType = {
1148
1148
  export type PrivacyPolicyLinkClickedAttributesType = undefined;
1149
1149
  export type TeamProfileItemClickedAttributesType = {
1150
1150
  position: number;
1151
+ isPoweredByTWG: boolean | null;
1152
+ };
1153
+ export type ShowMoreClickedAttributesType = {
1154
+ selectedUser: boolean | null;
1155
+ withSearchQuery: boolean | null;
1151
1156
  };
1152
- export type ShowMoreClickedAttributesType = undefined;
1153
1157
  export type TeamCreateDialogTriggerButtonClickedAttributesType = {
1154
1158
  trigger: string;
1155
1159
  };
@@ -1303,6 +1307,52 @@ export type TeamLinkEditedAttributesType = {
1303
1307
  orgAdminTriggered: boolean;
1304
1308
  isVerified: boolean | null;
1305
1309
  };
1310
+ export type PeopleHomeViewedAttributesType = undefined;
1311
+ export type UserFilterSelectedAttributesType = {
1312
+ isCurrentUser: boolean;
1313
+ };
1314
+ export type TeamElementClickedAttributesType = {
1315
+ entryIndex: number;
1316
+ withSearchQuery: boolean;
1317
+ isCurrentUser: boolean;
1318
+ };
1319
+ export type SuggestedCollaboratorsClickedAttributesType = {
1320
+ entryIndex: number;
1321
+ };
1322
+ export type ViewDirectoryFiltersInAtlasClickedAttributesType = {
1323
+ isAdmin: boolean;
1324
+ product: string;
1325
+ workspaceUuid: string | null;
1326
+ };
1327
+ export type YourTeamsClickedAttributesType = {
1328
+ entryIndex: number;
1329
+ };
1330
+ export type BrowseAllTeamsClickedAttributesType = undefined;
1331
+ export type AddPeopleButtonClickedAttributesType = {
1332
+ trigger: string;
1333
+ };
1334
+ export type TeamSearchResultClickedAttributesType = {
1335
+ entryIndex: number;
1336
+ withSearchQuery: boolean;
1337
+ };
1338
+ export type RecentCollaboratorClickedAttributesType = {
1339
+ entryIndex: number;
1340
+ sessionId: string;
1341
+ dataSource: string;
1342
+ };
1343
+ export type PeopleSearchResultClickedAttributesType = {
1344
+ entryIndex: number;
1345
+ withSearchQuery: boolean;
1346
+ };
1347
+ export type AgentProfileAboutTeamsViewedAttributesType = {
1348
+ teamsCount: number;
1349
+ };
1350
+ export type UserProfileAboutTeamsViewedAttributesType = {
1351
+ teamsCount: number;
1352
+ };
1353
+ export type TeamAgentsPanelViewedAttributesType = {
1354
+ activeAgentsCount: number;
1355
+ };
1306
1356
  export type AnalyticsEventAttributes = {
1307
1357
  /**
1308
1358
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -2227,5 +2277,47 @@ export type AnalyticsEventAttributes = {
2227
2277
  /**
2228
2278
  * fired when a team link is successfully edited */
2229
2279
  'track.teamLink.edited': TeamLinkEditedAttributesType;
2280
+ /**
2281
+ * fired when the people home is viewed */
2282
+ 'screen.peopleHome.viewed': PeopleHomeViewedAttributesType;
2283
+ /**
2284
+ * fired when a user filter is selected */
2285
+ 'ui.userFilter.selected': UserFilterSelectedAttributesType;
2286
+ /**
2287
+ * fired when a team element is clicked */
2288
+ 'ui.teamElement.clicked': TeamElementClickedAttributesType;
2289
+ /**
2290
+ * fired when a suggested collaborator is clicked */
2291
+ 'ui.suggestedCollaborators.clicked': SuggestedCollaboratorsClickedAttributesType;
2292
+ /**
2293
+ * fired when the view directory filters in atlas is clicked */
2294
+ 'ui.ViewDirectoryFiltersInAtlas.clicked': ViewDirectoryFiltersInAtlasClickedAttributesType;
2295
+ /**
2296
+ * fired when the your teams is clicked */
2297
+ 'ui.yourTeams.clicked': YourTeamsClickedAttributesType;
2298
+ /**
2299
+ * fired when the browse all teams is clicked */
2300
+ 'ui.browseAllTeams.clicked': BrowseAllTeamsClickedAttributesType;
2301
+ /**
2302
+ * fired when the add people button is clicked */
2303
+ 'ui.addPeopleButton.clicked': AddPeopleButtonClickedAttributesType;
2304
+ /**
2305
+ * fired when the team search result is clicked */
2306
+ 'ui.teamSearchResult.clicked': TeamSearchResultClickedAttributesType;
2307
+ /**
2308
+ * fired when the recent collaborator is clicked */
2309
+ 'ui.recentCollaborator.clicked': RecentCollaboratorClickedAttributesType;
2310
+ /**
2311
+ * fired when the people search result is clicked */
2312
+ 'ui.peopleSearchResult.clicked': PeopleSearchResultClickedAttributesType;
2313
+ /**
2314
+ * fired when agent profile about teams section is viewed */
2315
+ 'screen.agentProfileAboutTeams.viewed': AgentProfileAboutTeamsViewedAttributesType;
2316
+ /**
2317
+ * fired when user profile about teams section is viewed */
2318
+ 'screen.userProfileAboutTeams.viewed': UserProfileAboutTeamsViewedAttributesType;
2319
+ /**
2320
+ * fired when team agents panel is viewed */
2321
+ 'screen.teamAgentsPanel.viewed': TeamAgentsPanelViewedAttributesType;
2230
2322
  };
2231
2323
  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' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen';
4
+ export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen' | 'teamsPage' | 'directoryScreen';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::a6b20df2d2f431cd63752ff404dab502>>
6
+ * @codegen <<SignedSource::240011c0c702e1957926c381c0891181>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -1148,8 +1148,12 @@ export type UserProfileScreenAboutPanelViewedAttributesType = {
1148
1148
  export type PrivacyPolicyLinkClickedAttributesType = undefined;
1149
1149
  export type TeamProfileItemClickedAttributesType = {
1150
1150
  position: number;
1151
+ isPoweredByTWG: boolean | null;
1152
+ };
1153
+ export type ShowMoreClickedAttributesType = {
1154
+ selectedUser: boolean | null;
1155
+ withSearchQuery: boolean | null;
1151
1156
  };
1152
- export type ShowMoreClickedAttributesType = undefined;
1153
1157
  export type TeamCreateDialogTriggerButtonClickedAttributesType = {
1154
1158
  trigger: string;
1155
1159
  };
@@ -1303,6 +1307,52 @@ export type TeamLinkEditedAttributesType = {
1303
1307
  orgAdminTriggered: boolean;
1304
1308
  isVerified: boolean | null;
1305
1309
  };
1310
+ export type PeopleHomeViewedAttributesType = undefined;
1311
+ export type UserFilterSelectedAttributesType = {
1312
+ isCurrentUser: boolean;
1313
+ };
1314
+ export type TeamElementClickedAttributesType = {
1315
+ entryIndex: number;
1316
+ withSearchQuery: boolean;
1317
+ isCurrentUser: boolean;
1318
+ };
1319
+ export type SuggestedCollaboratorsClickedAttributesType = {
1320
+ entryIndex: number;
1321
+ };
1322
+ export type ViewDirectoryFiltersInAtlasClickedAttributesType = {
1323
+ isAdmin: boolean;
1324
+ product: string;
1325
+ workspaceUuid: string | null;
1326
+ };
1327
+ export type YourTeamsClickedAttributesType = {
1328
+ entryIndex: number;
1329
+ };
1330
+ export type BrowseAllTeamsClickedAttributesType = undefined;
1331
+ export type AddPeopleButtonClickedAttributesType = {
1332
+ trigger: string;
1333
+ };
1334
+ export type TeamSearchResultClickedAttributesType = {
1335
+ entryIndex: number;
1336
+ withSearchQuery: boolean;
1337
+ };
1338
+ export type RecentCollaboratorClickedAttributesType = {
1339
+ entryIndex: number;
1340
+ sessionId: string;
1341
+ dataSource: string;
1342
+ };
1343
+ export type PeopleSearchResultClickedAttributesType = {
1344
+ entryIndex: number;
1345
+ withSearchQuery: boolean;
1346
+ };
1347
+ export type AgentProfileAboutTeamsViewedAttributesType = {
1348
+ teamsCount: number;
1349
+ };
1350
+ export type UserProfileAboutTeamsViewedAttributesType = {
1351
+ teamsCount: number;
1352
+ };
1353
+ export type TeamAgentsPanelViewedAttributesType = {
1354
+ activeAgentsCount: number;
1355
+ };
1306
1356
  export type AnalyticsEventAttributes = {
1307
1357
  /**
1308
1358
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -2227,5 +2277,47 @@ export type AnalyticsEventAttributes = {
2227
2277
  /**
2228
2278
  * fired when a team link is successfully edited */
2229
2279
  'track.teamLink.edited': TeamLinkEditedAttributesType;
2280
+ /**
2281
+ * fired when the people home is viewed */
2282
+ 'screen.peopleHome.viewed': PeopleHomeViewedAttributesType;
2283
+ /**
2284
+ * fired when a user filter is selected */
2285
+ 'ui.userFilter.selected': UserFilterSelectedAttributesType;
2286
+ /**
2287
+ * fired when a team element is clicked */
2288
+ 'ui.teamElement.clicked': TeamElementClickedAttributesType;
2289
+ /**
2290
+ * fired when a suggested collaborator is clicked */
2291
+ 'ui.suggestedCollaborators.clicked': SuggestedCollaboratorsClickedAttributesType;
2292
+ /**
2293
+ * fired when the view directory filters in atlas is clicked */
2294
+ 'ui.ViewDirectoryFiltersInAtlas.clicked': ViewDirectoryFiltersInAtlasClickedAttributesType;
2295
+ /**
2296
+ * fired when the your teams is clicked */
2297
+ 'ui.yourTeams.clicked': YourTeamsClickedAttributesType;
2298
+ /**
2299
+ * fired when the browse all teams is clicked */
2300
+ 'ui.browseAllTeams.clicked': BrowseAllTeamsClickedAttributesType;
2301
+ /**
2302
+ * fired when the add people button is clicked */
2303
+ 'ui.addPeopleButton.clicked': AddPeopleButtonClickedAttributesType;
2304
+ /**
2305
+ * fired when the team search result is clicked */
2306
+ 'ui.teamSearchResult.clicked': TeamSearchResultClickedAttributesType;
2307
+ /**
2308
+ * fired when the recent collaborator is clicked */
2309
+ 'ui.recentCollaborator.clicked': RecentCollaboratorClickedAttributesType;
2310
+ /**
2311
+ * fired when the people search result is clicked */
2312
+ 'ui.peopleSearchResult.clicked': PeopleSearchResultClickedAttributesType;
2313
+ /**
2314
+ * fired when agent profile about teams section is viewed */
2315
+ 'screen.agentProfileAboutTeams.viewed': AgentProfileAboutTeamsViewedAttributesType;
2316
+ /**
2317
+ * fired when user profile about teams section is viewed */
2318
+ 'screen.userProfileAboutTeams.viewed': UserProfileAboutTeamsViewedAttributesType;
2319
+ /**
2320
+ * fired when team agents panel is viewed */
2321
+ 'screen.teamAgentsPanel.viewed': TeamAgentsPanelViewedAttributesType;
2230
2322
  };
2231
2323
  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' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen';
4
+ export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen' | 'teamsPage' | 'directoryScreen';
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-namespaced-context": "^7.1.0",
32
32
  "@atlaskit/analytics-next": "^11.1.0",
33
33
  "@atlaskit/css": "^0.15.0",
34
- "@atlaskit/primitives": "^16.0.0",
34
+ "@atlaskit/primitives": "^16.1.0",
35
35
  "@atlaskit/tokens": "^7.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@compiled/react": "^0.18.6"
@@ -88,7 +88,7 @@
88
88
  }
89
89
  },
90
90
  "name": "@atlaskit/teams-app-internal-analytics",
91
- "version": "1.17.2",
91
+ "version": "1.19.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",