@atlaskit/teams-app-internal-analytics 1.24.2 → 1.25.1
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 +14 -0
- package/analytics.spec.yaml +26 -1
- package/dist/cjs/ui/analytics-context/index.js +1 -1
- package/dist/es2019/ui/analytics-context/index.js +1 -1
- package/dist/esm/ui/analytics-context/index.js +1 -1
- package/dist/types/common/utils/generated/analytics.types.d.ts +18 -1
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +18 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.25.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2595e04a5295b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2595e04a5295b) -
|
|
8
|
+
Add starButton viewed (team) event
|
|
9
|
+
|
|
10
|
+
## 1.25.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`8204a3c66c06b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8204a3c66c06b) -
|
|
15
|
+
Add analytics for starred mutations
|
|
16
|
+
|
|
3
17
|
## 1.24.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -1454,6 +1454,11 @@ events:
|
|
|
1454
1454
|
<<: *PackageMetaDataContext
|
|
1455
1455
|
screen:
|
|
1456
1456
|
type: string
|
|
1457
|
+
- starButton viewed (team):
|
|
1458
|
+
type: ui
|
|
1459
|
+
description: fired when the star team button is viewed
|
|
1460
|
+
attributes:
|
|
1461
|
+
<<: *PackageMetaDataContext
|
|
1457
1462
|
- connectJiraProjectTab clicked:
|
|
1458
1463
|
type: ui
|
|
1459
1464
|
attributes:
|
|
@@ -3166,7 +3171,8 @@ events:
|
|
|
3166
3171
|
<<: *NewUserProfileAttribute
|
|
3167
3172
|
- userProfileWorkingWithMe viewed:
|
|
3168
3173
|
type: screen
|
|
3169
|
-
description:
|
|
3174
|
+
description:
|
|
3175
|
+
fired when user profile working with me section is viewed (only when section has content)
|
|
3170
3176
|
- teamAgentsPanel viewed:
|
|
3171
3177
|
type: screen
|
|
3172
3178
|
description: fired when team agents panel is viewed
|
|
@@ -3325,3 +3331,22 @@ events:
|
|
|
3325
3331
|
required: false
|
|
3326
3332
|
type: number
|
|
3327
3333
|
description: The number of times the user has tried to add requested containers
|
|
3334
|
+
- starred succeeded (team):
|
|
3335
|
+
type: track
|
|
3336
|
+
description: fired when a team is starred or unstarred succeeds
|
|
3337
|
+
attributes:
|
|
3338
|
+
<<: *PackageMetaDataContext
|
|
3339
|
+
starred:
|
|
3340
|
+
type: boolean
|
|
3341
|
+
description: Whether the team is starred or not
|
|
3342
|
+
- starred failed (team):
|
|
3343
|
+
type: track
|
|
3344
|
+
description: fired when starring or unstarring a team fails
|
|
3345
|
+
attributes:
|
|
3346
|
+
<<: *PackageMetaDataContext
|
|
3347
|
+
starred:
|
|
3348
|
+
type: boolean
|
|
3349
|
+
description: Whether the action was to star or unstar the team
|
|
3350
|
+
errorMessage:
|
|
3351
|
+
type: string
|
|
3352
|
+
description: The error message describing why the action failed
|
|
@@ -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: "
|
|
19
|
+
packageVersion: "1.25.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: "
|
|
5
|
+
packageVersion: "1.25.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: "
|
|
9
|
+
packageVersion: "1.25.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::
|
|
6
|
+
* @codegen <<SignedSource::c6459d5c7859139ba640983c40f5c40e>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -678,6 +678,7 @@ export type TeamContainerLinkerViewedAttributesType = {
|
|
|
678
678
|
export type TeamContainerLinkerResultsViewedAttributesType = {
|
|
679
679
|
screen: string;
|
|
680
680
|
};
|
|
681
|
+
export type StarButtonViewedTeamAttributesType = {};
|
|
681
682
|
export type ConnectJiraProjectTabClickedAttributesType = {};
|
|
682
683
|
export type ConnectLoomSpaceTabClickedAttributesType = {};
|
|
683
684
|
export type ConnectConfluenceSpaceTabClickedAttributesType = {};
|
|
@@ -1495,6 +1496,13 @@ export type RequestedContainersFailedAttributesType = {
|
|
|
1495
1496
|
teamId: string;
|
|
1496
1497
|
tryAgainCount: number | null;
|
|
1497
1498
|
};
|
|
1499
|
+
export type StarredSucceededTeamAttributesType = {
|
|
1500
|
+
starred: boolean;
|
|
1501
|
+
};
|
|
1502
|
+
export type StarredFailedTeamAttributesType = {
|
|
1503
|
+
starred: boolean;
|
|
1504
|
+
errorMessage: string;
|
|
1505
|
+
};
|
|
1498
1506
|
export type AnalyticsEventAttributes = {
|
|
1499
1507
|
/**
|
|
1500
1508
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1929,6 +1937,9 @@ export type AnalyticsEventAttributes = {
|
|
|
1929
1937
|
'ui.teamContainerLinker.viewed': TeamContainerLinkerViewedAttributesType;
|
|
1930
1938
|
/** */
|
|
1931
1939
|
'ui.teamContainerLinkerResults.viewed': TeamContainerLinkerResultsViewedAttributesType;
|
|
1940
|
+
/**
|
|
1941
|
+
* fired when the star team button is viewed */
|
|
1942
|
+
'ui.starButton.viewed.team': StarButtonViewedTeamAttributesType;
|
|
1932
1943
|
/** */
|
|
1933
1944
|
'ui.connectJiraProjectTab.clicked': ConnectJiraProjectTabClickedAttributesType;
|
|
1934
1945
|
/** */
|
|
@@ -2525,5 +2536,11 @@ export type AnalyticsEventAttributes = {
|
|
|
2525
2536
|
/**
|
|
2526
2537
|
* Fired when the user fails to add requested containers */
|
|
2527
2538
|
'track.requestedContainers.failed': RequestedContainersFailedAttributesType;
|
|
2539
|
+
/**
|
|
2540
|
+
* fired when a team is starred or unstarred succeeds */
|
|
2541
|
+
'track.starred.succeeded.team': StarredSucceededTeamAttributesType;
|
|
2542
|
+
/**
|
|
2543
|
+
* fired when starring or unstarring a team fails */
|
|
2544
|
+
'track.starred.failed.team': StarredFailedTeamAttributesType;
|
|
2528
2545
|
};
|
|
2529
2546
|
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::
|
|
6
|
+
* @codegen <<SignedSource::c6459d5c7859139ba640983c40f5c40e>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -678,6 +678,7 @@ export type TeamContainerLinkerViewedAttributesType = {
|
|
|
678
678
|
export type TeamContainerLinkerResultsViewedAttributesType = {
|
|
679
679
|
screen: string;
|
|
680
680
|
};
|
|
681
|
+
export type StarButtonViewedTeamAttributesType = {};
|
|
681
682
|
export type ConnectJiraProjectTabClickedAttributesType = {};
|
|
682
683
|
export type ConnectLoomSpaceTabClickedAttributesType = {};
|
|
683
684
|
export type ConnectConfluenceSpaceTabClickedAttributesType = {};
|
|
@@ -1495,6 +1496,13 @@ export type RequestedContainersFailedAttributesType = {
|
|
|
1495
1496
|
teamId: string;
|
|
1496
1497
|
tryAgainCount: number | null;
|
|
1497
1498
|
};
|
|
1499
|
+
export type StarredSucceededTeamAttributesType = {
|
|
1500
|
+
starred: boolean;
|
|
1501
|
+
};
|
|
1502
|
+
export type StarredFailedTeamAttributesType = {
|
|
1503
|
+
starred: boolean;
|
|
1504
|
+
errorMessage: string;
|
|
1505
|
+
};
|
|
1498
1506
|
export type AnalyticsEventAttributes = {
|
|
1499
1507
|
/**
|
|
1500
1508
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1929,6 +1937,9 @@ export type AnalyticsEventAttributes = {
|
|
|
1929
1937
|
'ui.teamContainerLinker.viewed': TeamContainerLinkerViewedAttributesType;
|
|
1930
1938
|
/** */
|
|
1931
1939
|
'ui.teamContainerLinkerResults.viewed': TeamContainerLinkerResultsViewedAttributesType;
|
|
1940
|
+
/**
|
|
1941
|
+
* fired when the star team button is viewed */
|
|
1942
|
+
'ui.starButton.viewed.team': StarButtonViewedTeamAttributesType;
|
|
1932
1943
|
/** */
|
|
1933
1944
|
'ui.connectJiraProjectTab.clicked': ConnectJiraProjectTabClickedAttributesType;
|
|
1934
1945
|
/** */
|
|
@@ -2525,5 +2536,11 @@ export type AnalyticsEventAttributes = {
|
|
|
2525
2536
|
/**
|
|
2526
2537
|
* Fired when the user fails to add requested containers */
|
|
2527
2538
|
'track.requestedContainers.failed': RequestedContainersFailedAttributesType;
|
|
2539
|
+
/**
|
|
2540
|
+
* fired when a team is starred or unstarred succeeds */
|
|
2541
|
+
'track.starred.succeeded.team': StarredSucceededTeamAttributesType;
|
|
2542
|
+
/**
|
|
2543
|
+
* fired when starring or unstarring a team fails */
|
|
2544
|
+
'track.starred.failed.team': StarredFailedTeamAttributesType;
|
|
2528
2545
|
};
|
|
2529
2546
|
export type EventKey = keyof AnalyticsEventAttributes;
|
package/package.json
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
87
|
-
"version": "1.
|
|
87
|
+
"version": "1.25.1",
|
|
88
88
|
"description": "A package used by the teams app and platform packages to handle people and teams analytics",
|
|
89
89
|
"author": "Atlassian Pty Ltd",
|
|
90
90
|
"license": "Apache-2.0",
|