@atlaskit/teams-app-internal-analytics 1.7.0 → 1.9.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.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ce32ce836a0fa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce32ce836a0fa) -
8
+ Migrate error boundary analytics from team-profile to teams-app-internal-analytics
9
+
10
+ ## 1.8.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`935419dbf39da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/935419dbf39da) -
15
+ Migrated projects-and-goals-list analytics to teams-app-internal-analytics
16
+
3
17
  ## 1.7.0
4
18
 
5
19
  ### Minor Changes
@@ -2075,3 +2075,63 @@ events:
2075
2075
  memberCount:
2076
2076
  type: number
2077
2077
  description: the number of members
2078
+ - ProfileProjectsAndGoalsTab clicked:
2079
+ type: ui
2080
+ description: fired when the profile projects and goals tab is clicked
2081
+ attributes:
2082
+ tabName:
2083
+ type: string
2084
+ description: the name of the tab
2085
+ - ProfileProjectsAndGoals viewed:
2086
+ type: ui
2087
+ description: fired when the profile projects and goals is viewed
2088
+ attributes:
2089
+ isEmpty:
2090
+ type: boolean
2091
+ description: whether the profile projects and goals is empty
2092
+ hasGoals:
2093
+ type: boolean
2094
+ description: whether the profile projects and goals has goals
2095
+ hasProjects:
2096
+ type: boolean
2097
+ description: whether the profile projects and goals has projects
2098
+ product:
2099
+ type: string
2100
+ description: the product
2101
+ workspaceUuid:
2102
+ type: string
2103
+ required: false
2104
+ description: the workspace uuid
2105
+ - ProfileProjectsLink clicked:
2106
+ type: ui
2107
+ description: fired when the profile projects link is clicked
2108
+ attributes:
2109
+ entryIndex:
2110
+ type: number
2111
+ description: the index
2112
+ - ProfileGoalsLink clicked:
2113
+ type: ui
2114
+ description: fired when the profile goals link is clicked
2115
+ attributes:
2116
+ entryIndex:
2117
+ type: number
2118
+ description: the index
2119
+ - button clicked (followTeamProjectsGoalsButton):
2120
+ type: ui
2121
+ description: fired when the follow team projects and goals button is clicked
2122
+ - button clicked (unfollowTeamProjectsGoalsButton):
2123
+ type: ui
2124
+ description: fired when the unfollow team projects and goals button is clicked
2125
+ - errorBoundary triggered:
2126
+ type: operational
2127
+ description: fired when an error boundary is triggered
2128
+ attributes:
2129
+ product:
2130
+ type: string
2131
+ description: the name of the product
2132
+ boundary:
2133
+ type: string
2134
+ description: the name of the error boundary
2135
+ error:
2136
+ type: string
2137
+ description: the error message
@@ -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.8.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.8.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.8.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::6024fcc7ef1f42316e17d04ed01ef565>>
6
+ * @codegen <<SignedSource::5bf63f0d58116f1c1218fe6ce17463c5>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -1004,6 +1004,29 @@ export type TeamProfileCardClickedMoreMembersAttributesType = {
1004
1004
  duration: number;
1005
1005
  memberCount: number;
1006
1006
  };
1007
+ export type ProfileProjectsAndGoalsTabClickedAttributesType = {
1008
+ tabName: string;
1009
+ };
1010
+ export type ProfileProjectsAndGoalsViewedAttributesType = {
1011
+ isEmpty: boolean;
1012
+ hasGoals: boolean;
1013
+ hasProjects: boolean;
1014
+ product: string;
1015
+ workspaceUuid: string | null;
1016
+ };
1017
+ export type ProfileProjectsLinkClickedAttributesType = {
1018
+ entryIndex: number;
1019
+ };
1020
+ export type ProfileGoalsLinkClickedAttributesType = {
1021
+ entryIndex: number;
1022
+ };
1023
+ export type ButtonClickedFollowTeamProjectsGoalsButtonAttributesType = undefined;
1024
+ export type ButtonClickedUnfollowTeamProjectsGoalsButtonAttributesType = undefined;
1025
+ export type ErrorBoundaryTriggeredAttributesType = {
1026
+ product: string;
1027
+ boundary: string;
1028
+ error: string;
1029
+ };
1007
1030
  export type AnalyticsEventAttributes = {
1008
1031
  /**
1009
1032
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1661,5 +1684,26 @@ export type AnalyticsEventAttributes = {
1661
1684
  /**
1662
1685
  * fired when the more members is clicked */
1663
1686
  'ui.teamProfileCard.clicked.moreMembers': TeamProfileCardClickedMoreMembersAttributesType;
1687
+ /**
1688
+ * fired when the profile projects and goals tab is clicked */
1689
+ 'ui.ProfileProjectsAndGoalsTab.clicked': ProfileProjectsAndGoalsTabClickedAttributesType;
1690
+ /**
1691
+ * fired when the profile projects and goals is viewed */
1692
+ 'ui.ProfileProjectsAndGoals.viewed': ProfileProjectsAndGoalsViewedAttributesType;
1693
+ /**
1694
+ * fired when the profile projects link is clicked */
1695
+ 'ui.ProfileProjectsLink.clicked': ProfileProjectsLinkClickedAttributesType;
1696
+ /**
1697
+ * fired when the profile goals link is clicked */
1698
+ 'ui.ProfileGoalsLink.clicked': ProfileGoalsLinkClickedAttributesType;
1699
+ /**
1700
+ * fired when the follow team projects and goals button is clicked */
1701
+ 'ui.button.clicked.followTeamProjectsGoalsButton': ButtonClickedFollowTeamProjectsGoalsButtonAttributesType;
1702
+ /**
1703
+ * fired when the unfollow team projects and goals button is clicked */
1704
+ 'ui.button.clicked.unfollowTeamProjectsGoalsButton': ButtonClickedUnfollowTeamProjectsGoalsButtonAttributesType;
1705
+ /**
1706
+ * fired when an error boundary is triggered */
1707
+ 'operational.errorBoundary.triggered': ErrorBoundaryTriggeredAttributesType;
1664
1708
  };
1665
1709
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::6024fcc7ef1f42316e17d04ed01ef565>>
6
+ * @codegen <<SignedSource::5bf63f0d58116f1c1218fe6ce17463c5>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -1004,6 +1004,29 @@ export type TeamProfileCardClickedMoreMembersAttributesType = {
1004
1004
  duration: number;
1005
1005
  memberCount: number;
1006
1006
  };
1007
+ export type ProfileProjectsAndGoalsTabClickedAttributesType = {
1008
+ tabName: string;
1009
+ };
1010
+ export type ProfileProjectsAndGoalsViewedAttributesType = {
1011
+ isEmpty: boolean;
1012
+ hasGoals: boolean;
1013
+ hasProjects: boolean;
1014
+ product: string;
1015
+ workspaceUuid: string | null;
1016
+ };
1017
+ export type ProfileProjectsLinkClickedAttributesType = {
1018
+ entryIndex: number;
1019
+ };
1020
+ export type ProfileGoalsLinkClickedAttributesType = {
1021
+ entryIndex: number;
1022
+ };
1023
+ export type ButtonClickedFollowTeamProjectsGoalsButtonAttributesType = undefined;
1024
+ export type ButtonClickedUnfollowTeamProjectsGoalsButtonAttributesType = undefined;
1025
+ export type ErrorBoundaryTriggeredAttributesType = {
1026
+ product: string;
1027
+ boundary: string;
1028
+ error: string;
1029
+ };
1007
1030
  export type AnalyticsEventAttributes = {
1008
1031
  /**
1009
1032
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1661,5 +1684,26 @@ export type AnalyticsEventAttributes = {
1661
1684
  /**
1662
1685
  * fired when the more members is clicked */
1663
1686
  'ui.teamProfileCard.clicked.moreMembers': TeamProfileCardClickedMoreMembersAttributesType;
1687
+ /**
1688
+ * fired when the profile projects and goals tab is clicked */
1689
+ 'ui.ProfileProjectsAndGoalsTab.clicked': ProfileProjectsAndGoalsTabClickedAttributesType;
1690
+ /**
1691
+ * fired when the profile projects and goals is viewed */
1692
+ 'ui.ProfileProjectsAndGoals.viewed': ProfileProjectsAndGoalsViewedAttributesType;
1693
+ /**
1694
+ * fired when the profile projects link is clicked */
1695
+ 'ui.ProfileProjectsLink.clicked': ProfileProjectsLinkClickedAttributesType;
1696
+ /**
1697
+ * fired when the profile goals link is clicked */
1698
+ 'ui.ProfileGoalsLink.clicked': ProfileGoalsLinkClickedAttributesType;
1699
+ /**
1700
+ * fired when the follow team projects and goals button is clicked */
1701
+ 'ui.button.clicked.followTeamProjectsGoalsButton': ButtonClickedFollowTeamProjectsGoalsButtonAttributesType;
1702
+ /**
1703
+ * fired when the unfollow team projects and goals button is clicked */
1704
+ 'ui.button.clicked.unfollowTeamProjectsGoalsButton': ButtonClickedUnfollowTeamProjectsGoalsButtonAttributesType;
1705
+ /**
1706
+ * fired when an error boundary is triggered */
1707
+ 'operational.errorBoundary.triggered': ErrorBoundaryTriggeredAttributesType;
1664
1708
  };
1665
1709
  export type EventKey = keyof AnalyticsEventAttributes;
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "@af/integration-testing": "workspace:^",
44
44
  "@af/visual-regression": "workspace:^",
45
45
  "@atlaskit/ssr": "workspace:^",
46
- "@atlassian/ptc-test-utils": "^0.10.0",
46
+ "@atlassian/ptc-test-utils": "^0.11.0",
47
47
  "@testing-library/react": "^13.4.0",
48
48
  "@testing-library/react-hooks": "^8.0.1",
49
49
  "@testing-library/user-event": "^14.4.3",
@@ -88,7 +88,7 @@
88
88
  }
89
89
  },
90
90
  "name": "@atlaskit/teams-app-internal-analytics",
91
- "version": "1.7.0",
91
+ "version": "1.9.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",