@atlaskit/teams-app-internal-analytics 1.6.0 → 1.8.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,23 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`935419dbf39da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/935419dbf39da) -
8
+ Migrated projects-and-goals-list analytics to teams-app-internal-analytics
9
+
10
+ ## 1.7.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`86f959878c6d4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86f959878c6d4) -
15
+ Migrated team and agent profile card analytics to teams-app-internal-analytics
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 1.6.0
4
22
 
5
23
  ### Minor Changes
@@ -2016,3 +2016,109 @@ events:
2016
2016
  numActions:
2017
2017
  type: number
2018
2018
  description: the number of actions
2019
+ - teamProfileCard clicked (moreActions):
2020
+ type: ui
2021
+ description: fired when the more actions is clicked
2022
+ attributes:
2023
+ <<: *ProfileCardAttributes
2024
+ duration:
2025
+ type: number
2026
+ description: the duration
2027
+ numActions:
2028
+ type: number
2029
+ description: the number of actions
2030
+ - teamProfileCard clicked (avatar):
2031
+ type: ui
2032
+ description: fired when the avatar is clicked
2033
+ attributes:
2034
+ <<: *ProfileCardAttributes
2035
+ duration:
2036
+ type: number
2037
+ description: the duration
2038
+ hasHref:
2039
+ type: boolean
2040
+ description: whether the avatar has href
2041
+ hasOnClick:
2042
+ type: boolean
2043
+ description: whether the avatar has onClick
2044
+ index:
2045
+ type: number
2046
+ description: the index
2047
+ - teamProfileCard clicked (action):
2048
+ type: ui
2049
+ description: fired when the action is clicked
2050
+ attributes:
2051
+ <<: *ProfileCardAttributes
2052
+ duration:
2053
+ type: number
2054
+ description: the duration
2055
+ hasHref:
2056
+ type: boolean
2057
+ description: whether the action has href
2058
+ hasOnClick:
2059
+ type: boolean
2060
+ description: whether the action has onClick
2061
+ index:
2062
+ type: number
2063
+ description: the index
2064
+ actionId:
2065
+ type: string
2066
+ description: the action id
2067
+ - teamProfileCard clicked (moreMembers):
2068
+ type: ui
2069
+ description: fired when the more members is clicked
2070
+ attributes:
2071
+ <<: *ProfileCardAttributes
2072
+ duration:
2073
+ type: number
2074
+ description: the duration
2075
+ memberCount:
2076
+ type: number
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
package/dist/cjs/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -9,6 +10,12 @@ Object.defineProperty(exports, "TeamsAppAnalyticsContext", {
9
10
  return _analyticsContext.TeamsAppAnalyticsContext;
10
11
  }
11
12
  });
13
+ Object.defineProperty(exports, "createEventPayload", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _createEventPayload.default;
17
+ }
18
+ });
12
19
  Object.defineProperty(exports, "useAnalyticsEvents", {
13
20
  enumerable: true,
14
21
  get: function get() {
@@ -16,4 +23,5 @@ Object.defineProperty(exports, "useAnalyticsEvents", {
16
23
  }
17
24
  });
18
25
  var _analyticsContext = require("./ui/analytics-context");
19
- var _useAnalyticsEvents = require("./common/utils/generated/use-analytics-events");
26
+ var _useAnalyticsEvents = require("./common/utils/generated/use-analytics-events");
27
+ var _createEventPayload = _interopRequireDefault(require("./common/utils/generated/create-event-payload"));
@@ -1,2 +1,3 @@
1
1
  export { TeamsAppAnalyticsContext } from './ui/analytics-context';
2
- export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
2
+ export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
3
+ export { default as createEventPayload } from './common/utils/generated/create-event-payload';
package/dist/esm/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { TeamsAppAnalyticsContext } from './ui/analytics-context';
2
- export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
2
+ export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
3
+ export { default as createEventPayload } from './common/utils/generated/create-event-payload';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::2d0914551b7a5bd52432cf172a7e879e>>
6
+ * @codegen <<SignedSource::8b0c2c2e9bf4e074a8dace8dc1cd3f5c>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -979,6 +979,49 @@ export type ProfilecardClickedMoreActionsAttributesType = {
979
979
  duration: number;
980
980
  numActions: number;
981
981
  };
982
+ export type TeamProfileCardClickedMoreActionsAttributesType = {
983
+ firedAt: number;
984
+ duration: number;
985
+ numActions: number;
986
+ };
987
+ export type TeamProfileCardClickedAvatarAttributesType = {
988
+ firedAt: number;
989
+ duration: number;
990
+ hasHref: boolean;
991
+ hasOnClick: boolean;
992
+ index: number;
993
+ };
994
+ export type TeamProfileCardClickedActionAttributesType = {
995
+ firedAt: number;
996
+ duration: number;
997
+ hasHref: boolean;
998
+ hasOnClick: boolean;
999
+ index: number;
1000
+ actionId: string;
1001
+ };
1002
+ export type TeamProfileCardClickedMoreMembersAttributesType = {
1003
+ firedAt: number;
1004
+ duration: number;
1005
+ memberCount: number;
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;
982
1025
  export type AnalyticsEventAttributes = {
983
1026
  /**
984
1027
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1624,5 +1667,35 @@ export type AnalyticsEventAttributes = {
1624
1667
  /**
1625
1668
  * fired when the more actions is clicked */
1626
1669
  'ui.profilecard.clicked.moreActions': ProfilecardClickedMoreActionsAttributesType;
1670
+ /**
1671
+ * fired when the more actions is clicked */
1672
+ 'ui.teamProfileCard.clicked.moreActions': TeamProfileCardClickedMoreActionsAttributesType;
1673
+ /**
1674
+ * fired when the avatar is clicked */
1675
+ 'ui.teamProfileCard.clicked.avatar': TeamProfileCardClickedAvatarAttributesType;
1676
+ /**
1677
+ * fired when the action is clicked */
1678
+ 'ui.teamProfileCard.clicked.action': TeamProfileCardClickedActionAttributesType;
1679
+ /**
1680
+ * fired when the more members is clicked */
1681
+ 'ui.teamProfileCard.clicked.moreMembers': TeamProfileCardClickedMoreMembersAttributesType;
1682
+ /**
1683
+ * fired when the profile projects and goals tab is clicked */
1684
+ 'ui.ProfileProjectsAndGoalsTab.clicked': ProfileProjectsAndGoalsTabClickedAttributesType;
1685
+ /**
1686
+ * fired when the profile projects and goals is viewed */
1687
+ 'ui.ProfileProjectsAndGoals.viewed': ProfileProjectsAndGoalsViewedAttributesType;
1688
+ /**
1689
+ * fired when the profile projects link is clicked */
1690
+ 'ui.ProfileProjectsLink.clicked': ProfileProjectsLinkClickedAttributesType;
1691
+ /**
1692
+ * fired when the profile goals link is clicked */
1693
+ 'ui.ProfileGoalsLink.clicked': ProfileGoalsLinkClickedAttributesType;
1694
+ /**
1695
+ * fired when the follow team projects and goals button is clicked */
1696
+ 'ui.button.clicked.followTeamProjectsGoalsButton': ButtonClickedFollowTeamProjectsGoalsButtonAttributesType;
1697
+ /**
1698
+ * fired when the unfollow team projects and goals button is clicked */
1699
+ 'ui.button.clicked.unfollowTeamProjectsGoalsButton': ButtonClickedUnfollowTeamProjectsGoalsButtonAttributesType;
1627
1700
  };
1628
1701
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -2,3 +2,4 @@ export { TeamsAppAnalyticsContext } from './ui/analytics-context';
2
2
  export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
3
3
  export type { AnalyticsEventAttributes } from './common/utils/generated/analytics.types';
4
4
  export type { FireEventType } from './common/utils/types';
5
+ export { default as createEventPayload } from './common/utils/generated/create-event-payload';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::2d0914551b7a5bd52432cf172a7e879e>>
6
+ * @codegen <<SignedSource::8b0c2c2e9bf4e074a8dace8dc1cd3f5c>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -979,6 +979,49 @@ export type ProfilecardClickedMoreActionsAttributesType = {
979
979
  duration: number;
980
980
  numActions: number;
981
981
  };
982
+ export type TeamProfileCardClickedMoreActionsAttributesType = {
983
+ firedAt: number;
984
+ duration: number;
985
+ numActions: number;
986
+ };
987
+ export type TeamProfileCardClickedAvatarAttributesType = {
988
+ firedAt: number;
989
+ duration: number;
990
+ hasHref: boolean;
991
+ hasOnClick: boolean;
992
+ index: number;
993
+ };
994
+ export type TeamProfileCardClickedActionAttributesType = {
995
+ firedAt: number;
996
+ duration: number;
997
+ hasHref: boolean;
998
+ hasOnClick: boolean;
999
+ index: number;
1000
+ actionId: string;
1001
+ };
1002
+ export type TeamProfileCardClickedMoreMembersAttributesType = {
1003
+ firedAt: number;
1004
+ duration: number;
1005
+ memberCount: number;
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;
982
1025
  export type AnalyticsEventAttributes = {
983
1026
  /**
984
1027
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1624,5 +1667,35 @@ export type AnalyticsEventAttributes = {
1624
1667
  /**
1625
1668
  * fired when the more actions is clicked */
1626
1669
  'ui.profilecard.clicked.moreActions': ProfilecardClickedMoreActionsAttributesType;
1670
+ /**
1671
+ * fired when the more actions is clicked */
1672
+ 'ui.teamProfileCard.clicked.moreActions': TeamProfileCardClickedMoreActionsAttributesType;
1673
+ /**
1674
+ * fired when the avatar is clicked */
1675
+ 'ui.teamProfileCard.clicked.avatar': TeamProfileCardClickedAvatarAttributesType;
1676
+ /**
1677
+ * fired when the action is clicked */
1678
+ 'ui.teamProfileCard.clicked.action': TeamProfileCardClickedActionAttributesType;
1679
+ /**
1680
+ * fired when the more members is clicked */
1681
+ 'ui.teamProfileCard.clicked.moreMembers': TeamProfileCardClickedMoreMembersAttributesType;
1682
+ /**
1683
+ * fired when the profile projects and goals tab is clicked */
1684
+ 'ui.ProfileProjectsAndGoalsTab.clicked': ProfileProjectsAndGoalsTabClickedAttributesType;
1685
+ /**
1686
+ * fired when the profile projects and goals is viewed */
1687
+ 'ui.ProfileProjectsAndGoals.viewed': ProfileProjectsAndGoalsViewedAttributesType;
1688
+ /**
1689
+ * fired when the profile projects link is clicked */
1690
+ 'ui.ProfileProjectsLink.clicked': ProfileProjectsLinkClickedAttributesType;
1691
+ /**
1692
+ * fired when the profile goals link is clicked */
1693
+ 'ui.ProfileGoalsLink.clicked': ProfileGoalsLinkClickedAttributesType;
1694
+ /**
1695
+ * fired when the follow team projects and goals button is clicked */
1696
+ 'ui.button.clicked.followTeamProjectsGoalsButton': ButtonClickedFollowTeamProjectsGoalsButtonAttributesType;
1697
+ /**
1698
+ * fired when the unfollow team projects and goals button is clicked */
1699
+ 'ui.button.clicked.unfollowTeamProjectsGoalsButton': ButtonClickedUnfollowTeamProjectsGoalsButtonAttributesType;
1627
1700
  };
1628
1701
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -2,3 +2,4 @@ export { TeamsAppAnalyticsContext } from './ui/analytics-context';
2
2
  export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
3
3
  export type { AnalyticsEventAttributes } from './common/utils/generated/analytics.types';
4
4
  export type { FireEventType } from './common/utils/types';
5
+ export { default as createEventPayload } from './common/utils/generated/create-event-payload';
package/package.json CHANGED
@@ -27,12 +27,12 @@
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.0.0",
31
- "@atlaskit/analytics-namespaced-context": "^7.0.0",
30
+ "@atlaskit/analytics-listeners": "^9.1.0",
31
+ "@atlaskit/analytics-namespaced-context": "^7.1.0",
32
32
  "@atlaskit/analytics-next": "^11.1.0",
33
33
  "@atlaskit/css": "^0.14.0",
34
34
  "@atlaskit/primitives": "^14.15.0",
35
- "@atlaskit/tokens": "^6.3.0",
35
+ "@atlaskit/tokens": "^6.4.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@compiled/react": "^0.18.3"
38
38
  },
@@ -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.6.0",
91
+ "version": "1.8.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",