@atlaskit/teams-app-internal-analytics 1.11.0 → 1.12.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,12 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c18d37500ac2b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c18d37500ac2b) -
8
+ Migrated standalone-directory analytics to teams-app-internal-analytics
9
+
3
10
  ## 1.11.0
4
11
 
5
12
  ### Minor Changes
@@ -2228,3 +2228,22 @@ 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
@@ -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: "0.0.0-development"
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: "0.0.0-development"
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: "0.0.0-development"
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::a4ebc6f4ba7d2252cc99ca62b6aa2a46>>
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,13 @@ 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;
1065
1072
  export type AnalyticsEventAttributes = {
1066
1073
  /**
1067
1074
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1767,5 +1774,20 @@ export type AnalyticsEventAttributes = {
1767
1774
  /**
1768
1775
  * fired when the reporting lines empty state is viewed */
1769
1776
  'ui.ReportingLinesEmptyState.viewed': ReportingLinesEmptyStateViewedAttributesType;
1777
+ /**
1778
+ * fired when the add people button is clicked */
1779
+ 'ui.button.clicked.addPeopleButton': ButtonClickedAddPeopleButtonAttributesType;
1780
+ /**
1781
+ * fired when the link profile button is clicked */
1782
+ 'ui.userMenuItem.clicked.linkProfile': UserMenuItemClickedLinkProfileAttributesType;
1783
+ /**
1784
+ * fired when the link manage account button is clicked */
1785
+ 'ui.userMenuItem.clicked.linkManageAccount': UserMenuItemClickedLinkManageAccountAttributesType;
1786
+ /**
1787
+ * fired when the link logout button is clicked */
1788
+ 'ui.userMenuItem.clicked.linkLogout': UserMenuItemClickedLinkLogoutAttributesType;
1789
+ /**
1790
+ * fired when the user menu is opened */
1791
+ 'track.userMenu.opened': UserMenuOpenedAttributesType;
1770
1792
  };
1771
1793
  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::a4ebc6f4ba7d2252cc99ca62b6aa2a46>>
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,13 @@ 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;
1065
1072
  export type AnalyticsEventAttributes = {
1066
1073
  /**
1067
1074
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1767,5 +1774,20 @@ export type AnalyticsEventAttributes = {
1767
1774
  /**
1768
1775
  * fired when the reporting lines empty state is viewed */
1769
1776
  'ui.ReportingLinesEmptyState.viewed': ReportingLinesEmptyStateViewedAttributesType;
1777
+ /**
1778
+ * fired when the add people button is clicked */
1779
+ 'ui.button.clicked.addPeopleButton': ButtonClickedAddPeopleButtonAttributesType;
1780
+ /**
1781
+ * fired when the link profile button is clicked */
1782
+ 'ui.userMenuItem.clicked.linkProfile': UserMenuItemClickedLinkProfileAttributesType;
1783
+ /**
1784
+ * fired when the link manage account button is clicked */
1785
+ 'ui.userMenuItem.clicked.linkManageAccount': UserMenuItemClickedLinkManageAccountAttributesType;
1786
+ /**
1787
+ * fired when the link logout button is clicked */
1788
+ 'ui.userMenuItem.clicked.linkLogout': UserMenuItemClickedLinkLogoutAttributesType;
1789
+ /**
1790
+ * fired when the user menu is opened */
1791
+ 'track.userMenu.opened': UserMenuOpenedAttributesType;
1770
1792
  };
1771
1793
  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.12.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",