@atlaskit/teams-app-internal-analytics 1.11.0 → 1.13.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,20 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c201870e2170e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c201870e2170e) -
8
+ Migrated feedback trigger, profile header and page load ptc common analytics to teams app internal
9
+ analytics
10
+
11
+ ## 1.12.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`c18d37500ac2b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c18d37500ac2b) -
16
+ Migrated standalone-directory analytics to teams-app-internal-analytics
17
+
3
18
  ## 1.11.0
4
19
 
5
20
  ### Minor Changes
@@ -2228,3 +2228,103 @@ events:
2228
2228
  isAdmin:
2229
2229
  type: boolean
2230
2230
  description: whether the user is a site admin
2231
+ - button clicked (addPeopleButton):
2232
+ type: ui
2233
+ description: fired when the add people button is clicked
2234
+ attributes:
2235
+ isPrimary:
2236
+ type: boolean
2237
+ description: whether the button is primary
2238
+ - userMenuItem clicked (linkProfile):
2239
+ type: ui
2240
+ description: fired when the link profile button is clicked
2241
+ - userMenuItem clicked (linkManageAccount):
2242
+ type: ui
2243
+ description: fired when the link manage account button is clicked
2244
+ - userMenuItem clicked (linkLogout):
2245
+ type: ui
2246
+ description: fired when the link logout button is clicked
2247
+ - userMenu opened:
2248
+ type: track
2249
+ description: fired when the user menu is opened
2250
+ - headerImage started (userHeaderImage):
2251
+ type: operational
2252
+ description: fired when the header image action is triggered
2253
+ attributes:
2254
+ actionType:
2255
+ type: ['removeHeaderImage', 'uploadHeaderImage']
2256
+ description: the type of the action
2257
+ - headerImage failed (userHeaderImage):
2258
+ type: operational
2259
+ description: fired when the header image action is failed
2260
+ attributes:
2261
+ actionType:
2262
+ type: ['removeHeaderImage', 'uploadHeaderImage']
2263
+ description: the type of the action
2264
+ - headerImage succeeded (userHeaderImage):
2265
+ type: operational
2266
+ description: fired when the header image action is succeeded
2267
+ attributes:
2268
+ actionType:
2269
+ type: ['removeHeaderImage', 'uploadHeaderImage']
2270
+ description: the type of the action
2271
+ - headerImage started (teamHeaderImage):
2272
+ type: operational
2273
+ description: fired when the header image action is triggered
2274
+ attributes:
2275
+ actionType:
2276
+ type: ['removeHeaderImage', 'uploadHeaderImage']
2277
+ description: the type of the action
2278
+ memberOfTeam:
2279
+ type: boolean
2280
+ description: whether the user is a member of the team
2281
+ orgAdminTriggered:
2282
+ type: boolean
2283
+ description: whether the user is an org admin
2284
+ isVerified:
2285
+ type: boolean
2286
+ description: whether the user is verified
2287
+ required: false
2288
+ - headerImage failed (teamHeaderImage):
2289
+ type: operational
2290
+ description: fired when the header image action is failed
2291
+ attributes:
2292
+ actionType:
2293
+ type: ['removeHeaderImage', 'uploadHeaderImage']
2294
+ description: the type of the action
2295
+ memberOfTeam:
2296
+ type: boolean
2297
+ description: whether the user is a member of the team
2298
+ orgAdminTriggered:
2299
+ type: boolean
2300
+ description: whether the user is an org admin
2301
+ isVerified:
2302
+ type: boolean
2303
+ description: whether the user is verified
2304
+ required: false
2305
+ - headerImage succeeded (teamHeaderImage):
2306
+ type: operational
2307
+ description: fired when the header image action is succeeded
2308
+ attributes:
2309
+ actionType:
2310
+ type: ['removeHeaderImage', 'uploadHeaderImage']
2311
+ description: the type of the action
2312
+ memberOfTeam:
2313
+ type: boolean
2314
+ description: whether the user is a member of the team
2315
+ orgAdminTriggered:
2316
+ type: boolean
2317
+ description: whether the user is an org admin
2318
+ isVerified:
2319
+ type: boolean
2320
+ description: whether the user is verified
2321
+ required: false
2322
+ - button clicked (profileHeaderMediaPickerUpload):
2323
+ type: ui
2324
+ description: fired when the media picker upload button is clicked
2325
+ - button clicked (profileHeaderRemove):
2326
+ type: ui
2327
+ description: fired when the remove header image button is clicked
2328
+ - sendFeedback clicked:
2329
+ type: ui
2330
+ description: fired when the send feedback button is clicked
@@ -9,5 +9,7 @@ var AnalyticsEventSource = exports.AnalyticsEventSource = /*#__PURE__*/function
9
9
  AnalyticsEventSource["USER_PROFILE_SCREEN"] = "userProfileScreen";
10
10
  AnalyticsEventSource["TEAM_PROFILE_ABOUT"] = "teamProfileAbout";
11
11
  AnalyticsEventSource["TEAM_PROFILE_SCREEN"] = "teamProfileScreen";
12
+ AnalyticsEventSource["USER_MENU"] = "userMenu";
13
+ AnalyticsEventSource["PEOPLE_HOME"] = "peopleHome";
12
14
  return AnalyticsEventSource;
13
15
  }({});
@@ -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: "1.10.0"
19
+ packageVersion: "1.12.0"
20
20
  };
21
21
  function TeamsAppAnalyticsContext(_ref) {
22
22
  var data = _ref.data,
@@ -3,5 +3,7 @@ export let AnalyticsEventSource = /*#__PURE__*/function (AnalyticsEventSource) {
3
3
  AnalyticsEventSource["USER_PROFILE_SCREEN"] = "userProfileScreen";
4
4
  AnalyticsEventSource["TEAM_PROFILE_ABOUT"] = "teamProfileAbout";
5
5
  AnalyticsEventSource["TEAM_PROFILE_SCREEN"] = "teamProfileScreen";
6
+ AnalyticsEventSource["USER_MENU"] = "userMenu";
7
+ AnalyticsEventSource["PEOPLE_HOME"] = "peopleHome";
6
8
  return AnalyticsEventSource;
7
9
  }({});
@@ -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: "1.10.0"
5
+ packageVersion: "1.12.0"
6
6
  };
7
7
  export function TeamsAppAnalyticsContext({
8
8
  data,
@@ -3,5 +3,7 @@ export var AnalyticsEventSource = /*#__PURE__*/function (AnalyticsEventSource) {
3
3
  AnalyticsEventSource["USER_PROFILE_SCREEN"] = "userProfileScreen";
4
4
  AnalyticsEventSource["TEAM_PROFILE_ABOUT"] = "teamProfileAbout";
5
5
  AnalyticsEventSource["TEAM_PROFILE_SCREEN"] = "teamProfileScreen";
6
+ AnalyticsEventSource["USER_MENU"] = "userMenu";
7
+ AnalyticsEventSource["PEOPLE_HOME"] = "peopleHome";
6
8
  return AnalyticsEventSource;
7
9
  }({});
@@ -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: "1.10.0"
9
+ packageVersion: "1.12.0"
10
10
  };
11
11
  export function TeamsAppAnalyticsContext(_ref) {
12
12
  var data = _ref.data,
@@ -2,5 +2,7 @@ export declare const EVENT_CHANNEL = "peopleTeams";
2
2
  export declare enum AnalyticsEventSource {
3
3
  USER_PROFILE_SCREEN = "userProfileScreen",
4
4
  TEAM_PROFILE_ABOUT = "teamProfileAbout",
5
- TEAM_PROFILE_SCREEN = "teamProfileScreen"
5
+ TEAM_PROFILE_SCREEN = "teamProfileScreen",
6
+ USER_MENU = "userMenu",
7
+ PEOPLE_HOME = "peopleHome"
6
8
  }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::bd923ef6bb9d9faf786d7dccc06f07bc>>
6
+ * @codegen <<SignedSource::0d7940fbc9a2038bb629f21e1f22705f>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -1062,6 +1062,43 @@ export type ReportingLinesEmptyStateViewedAttributesType = {
1062
1062
  workspaceUuid: string | null;
1063
1063
  isAdmin: boolean;
1064
1064
  };
1065
+ export type ButtonClickedAddPeopleButtonAttributesType = {
1066
+ isPrimary: boolean;
1067
+ };
1068
+ export type UserMenuItemClickedLinkProfileAttributesType = undefined;
1069
+ export type UserMenuItemClickedLinkManageAccountAttributesType = undefined;
1070
+ export type UserMenuItemClickedLinkLogoutAttributesType = undefined;
1071
+ export type UserMenuOpenedAttributesType = undefined;
1072
+ export type HeaderImageStartedUserHeaderImageAttributesType = {
1073
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1074
+ };
1075
+ export type HeaderImageFailedUserHeaderImageAttributesType = {
1076
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1077
+ };
1078
+ export type HeaderImageSucceededUserHeaderImageAttributesType = {
1079
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1080
+ };
1081
+ export type HeaderImageStartedTeamHeaderImageAttributesType = {
1082
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1083
+ memberOfTeam: boolean;
1084
+ orgAdminTriggered: boolean;
1085
+ isVerified: boolean | null;
1086
+ };
1087
+ export type HeaderImageFailedTeamHeaderImageAttributesType = {
1088
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1089
+ memberOfTeam: boolean;
1090
+ orgAdminTriggered: boolean;
1091
+ isVerified: boolean | null;
1092
+ };
1093
+ export type HeaderImageSucceededTeamHeaderImageAttributesType = {
1094
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1095
+ memberOfTeam: boolean;
1096
+ orgAdminTriggered: boolean;
1097
+ isVerified: boolean | null;
1098
+ };
1099
+ export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
1100
+ export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
1101
+ export type SendFeedbackClickedAttributesType = undefined;
1065
1102
  export type AnalyticsEventAttributes = {
1066
1103
  /**
1067
1104
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1767,5 +1804,47 @@ export type AnalyticsEventAttributes = {
1767
1804
  /**
1768
1805
  * fired when the reporting lines empty state is viewed */
1769
1806
  'ui.ReportingLinesEmptyState.viewed': ReportingLinesEmptyStateViewedAttributesType;
1807
+ /**
1808
+ * fired when the add people button is clicked */
1809
+ 'ui.button.clicked.addPeopleButton': ButtonClickedAddPeopleButtonAttributesType;
1810
+ /**
1811
+ * fired when the link profile button is clicked */
1812
+ 'ui.userMenuItem.clicked.linkProfile': UserMenuItemClickedLinkProfileAttributesType;
1813
+ /**
1814
+ * fired when the link manage account button is clicked */
1815
+ 'ui.userMenuItem.clicked.linkManageAccount': UserMenuItemClickedLinkManageAccountAttributesType;
1816
+ /**
1817
+ * fired when the link logout button is clicked */
1818
+ 'ui.userMenuItem.clicked.linkLogout': UserMenuItemClickedLinkLogoutAttributesType;
1819
+ /**
1820
+ * fired when the user menu is opened */
1821
+ 'track.userMenu.opened': UserMenuOpenedAttributesType;
1822
+ /**
1823
+ * fired when the header image action is triggered */
1824
+ 'operational.headerImage.started.userHeaderImage': HeaderImageStartedUserHeaderImageAttributesType;
1825
+ /**
1826
+ * fired when the header image action is failed */
1827
+ 'operational.headerImage.failed.userHeaderImage': HeaderImageFailedUserHeaderImageAttributesType;
1828
+ /**
1829
+ * fired when the header image action is succeeded */
1830
+ 'operational.headerImage.succeeded.userHeaderImage': HeaderImageSucceededUserHeaderImageAttributesType;
1831
+ /**
1832
+ * fired when the header image action is triggered */
1833
+ 'operational.headerImage.started.teamHeaderImage': HeaderImageStartedTeamHeaderImageAttributesType;
1834
+ /**
1835
+ * fired when the header image action is failed */
1836
+ 'operational.headerImage.failed.teamHeaderImage': HeaderImageFailedTeamHeaderImageAttributesType;
1837
+ /**
1838
+ * fired when the header image action is succeeded */
1839
+ 'operational.headerImage.succeeded.teamHeaderImage': HeaderImageSucceededTeamHeaderImageAttributesType;
1840
+ /**
1841
+ * fired when the media picker upload button is clicked */
1842
+ 'ui.button.clicked.profileHeaderMediaPickerUpload': ButtonClickedProfileHeaderMediaPickerUploadAttributesType;
1843
+ /**
1844
+ * fired when the remove header image button is clicked */
1845
+ 'ui.button.clicked.profileHeaderRemove': ButtonClickedProfileHeaderRemoveAttributesType;
1846
+ /**
1847
+ * fired when the send feedback button is clicked */
1848
+ 'ui.sendFeedback.clicked': SendFeedbackClickedAttributesType;
1770
1849
  };
1771
1850
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -2,5 +2,7 @@ export declare const EVENT_CHANNEL = "peopleTeams";
2
2
  export declare enum AnalyticsEventSource {
3
3
  USER_PROFILE_SCREEN = "userProfileScreen",
4
4
  TEAM_PROFILE_ABOUT = "teamProfileAbout",
5
- TEAM_PROFILE_SCREEN = "teamProfileScreen"
5
+ TEAM_PROFILE_SCREEN = "teamProfileScreen",
6
+ USER_MENU = "userMenu",
7
+ PEOPLE_HOME = "peopleHome"
6
8
  }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::bd923ef6bb9d9faf786d7dccc06f07bc>>
6
+ * @codegen <<SignedSource::0d7940fbc9a2038bb629f21e1f22705f>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -1062,6 +1062,43 @@ export type ReportingLinesEmptyStateViewedAttributesType = {
1062
1062
  workspaceUuid: string | null;
1063
1063
  isAdmin: boolean;
1064
1064
  };
1065
+ export type ButtonClickedAddPeopleButtonAttributesType = {
1066
+ isPrimary: boolean;
1067
+ };
1068
+ export type UserMenuItemClickedLinkProfileAttributesType = undefined;
1069
+ export type UserMenuItemClickedLinkManageAccountAttributesType = undefined;
1070
+ export type UserMenuItemClickedLinkLogoutAttributesType = undefined;
1071
+ export type UserMenuOpenedAttributesType = undefined;
1072
+ export type HeaderImageStartedUserHeaderImageAttributesType = {
1073
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1074
+ };
1075
+ export type HeaderImageFailedUserHeaderImageAttributesType = {
1076
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1077
+ };
1078
+ export type HeaderImageSucceededUserHeaderImageAttributesType = {
1079
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1080
+ };
1081
+ export type HeaderImageStartedTeamHeaderImageAttributesType = {
1082
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1083
+ memberOfTeam: boolean;
1084
+ orgAdminTriggered: boolean;
1085
+ isVerified: boolean | null;
1086
+ };
1087
+ export type HeaderImageFailedTeamHeaderImageAttributesType = {
1088
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1089
+ memberOfTeam: boolean;
1090
+ orgAdminTriggered: boolean;
1091
+ isVerified: boolean | null;
1092
+ };
1093
+ export type HeaderImageSucceededTeamHeaderImageAttributesType = {
1094
+ actionType: 'removeHeaderImage' | 'uploadHeaderImage';
1095
+ memberOfTeam: boolean;
1096
+ orgAdminTriggered: boolean;
1097
+ isVerified: boolean | null;
1098
+ };
1099
+ export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
1100
+ export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
1101
+ export type SendFeedbackClickedAttributesType = undefined;
1065
1102
  export type AnalyticsEventAttributes = {
1066
1103
  /**
1067
1104
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1767,5 +1804,47 @@ export type AnalyticsEventAttributes = {
1767
1804
  /**
1768
1805
  * fired when the reporting lines empty state is viewed */
1769
1806
  'ui.ReportingLinesEmptyState.viewed': ReportingLinesEmptyStateViewedAttributesType;
1807
+ /**
1808
+ * fired when the add people button is clicked */
1809
+ 'ui.button.clicked.addPeopleButton': ButtonClickedAddPeopleButtonAttributesType;
1810
+ /**
1811
+ * fired when the link profile button is clicked */
1812
+ 'ui.userMenuItem.clicked.linkProfile': UserMenuItemClickedLinkProfileAttributesType;
1813
+ /**
1814
+ * fired when the link manage account button is clicked */
1815
+ 'ui.userMenuItem.clicked.linkManageAccount': UserMenuItemClickedLinkManageAccountAttributesType;
1816
+ /**
1817
+ * fired when the link logout button is clicked */
1818
+ 'ui.userMenuItem.clicked.linkLogout': UserMenuItemClickedLinkLogoutAttributesType;
1819
+ /**
1820
+ * fired when the user menu is opened */
1821
+ 'track.userMenu.opened': UserMenuOpenedAttributesType;
1822
+ /**
1823
+ * fired when the header image action is triggered */
1824
+ 'operational.headerImage.started.userHeaderImage': HeaderImageStartedUserHeaderImageAttributesType;
1825
+ /**
1826
+ * fired when the header image action is failed */
1827
+ 'operational.headerImage.failed.userHeaderImage': HeaderImageFailedUserHeaderImageAttributesType;
1828
+ /**
1829
+ * fired when the header image action is succeeded */
1830
+ 'operational.headerImage.succeeded.userHeaderImage': HeaderImageSucceededUserHeaderImageAttributesType;
1831
+ /**
1832
+ * fired when the header image action is triggered */
1833
+ 'operational.headerImage.started.teamHeaderImage': HeaderImageStartedTeamHeaderImageAttributesType;
1834
+ /**
1835
+ * fired when the header image action is failed */
1836
+ 'operational.headerImage.failed.teamHeaderImage': HeaderImageFailedTeamHeaderImageAttributesType;
1837
+ /**
1838
+ * fired when the header image action is succeeded */
1839
+ 'operational.headerImage.succeeded.teamHeaderImage': HeaderImageSucceededTeamHeaderImageAttributesType;
1840
+ /**
1841
+ * fired when the media picker upload button is clicked */
1842
+ 'ui.button.clicked.profileHeaderMediaPickerUpload': ButtonClickedProfileHeaderMediaPickerUploadAttributesType;
1843
+ /**
1844
+ * fired when the remove header image button is clicked */
1845
+ 'ui.button.clicked.profileHeaderRemove': ButtonClickedProfileHeaderRemoveAttributesType;
1846
+ /**
1847
+ * fired when the send feedback button is clicked */
1848
+ 'ui.sendFeedback.clicked': SendFeedbackClickedAttributesType;
1770
1849
  };
1771
1850
  export type EventKey = keyof AnalyticsEventAttributes;
package/package.json CHANGED
@@ -88,7 +88,7 @@
88
88
  }
89
89
  },
90
90
  "name": "@atlaskit/teams-app-internal-analytics",
91
- "version": "1.11.0",
91
+ "version": "1.13.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",