@atlaskit/teams-app-internal-analytics 1.27.1 → 1.27.2
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 +8 -0
- package/analytics.spec.yaml +42 -0
- 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 +26 -1
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +26 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.27.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c1deed94ac30d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1deed94ac30d) -
|
|
8
|
+
[ux] Build custom fields for number and string type, add analytics events for updating custom
|
|
9
|
+
fields
|
|
10
|
+
|
|
3
11
|
## 1.27.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -3201,6 +3201,48 @@ events:
|
|
|
3201
3201
|
consumer:
|
|
3202
3202
|
type: string
|
|
3203
3203
|
description: The consumer of the team
|
|
3204
|
+
- teamCustomField clicked:
|
|
3205
|
+
type: ui
|
|
3206
|
+
description: fired when user clicks a custom field to start editing
|
|
3207
|
+
attributes:
|
|
3208
|
+
teamId:
|
|
3209
|
+
type: string
|
|
3210
|
+
description: The id of the team
|
|
3211
|
+
fieldId:
|
|
3212
|
+
type: string
|
|
3213
|
+
description: The ARI of the custom field
|
|
3214
|
+
fieldType:
|
|
3215
|
+
type: string
|
|
3216
|
+
description: The type of the custom field (STRING, NUMBER, SELECTOR, USER, TEAM)
|
|
3217
|
+
- teamCustomField updateSucceeded:
|
|
3218
|
+
type: track
|
|
3219
|
+
description: fired when saving a custom field value succeeds
|
|
3220
|
+
attributes:
|
|
3221
|
+
teamId:
|
|
3222
|
+
type: string
|
|
3223
|
+
description: The id of the team
|
|
3224
|
+
fieldId:
|
|
3225
|
+
type: string
|
|
3226
|
+
description: The ARI of the custom field
|
|
3227
|
+
fieldType:
|
|
3228
|
+
type: string
|
|
3229
|
+
description: The type of the custom field (STRING, NUMBER, SELECTOR, USER, TEAM)
|
|
3230
|
+
- teamCustomField updateFailed:
|
|
3231
|
+
type: track
|
|
3232
|
+
description: fired when saving a custom field value fails (network error or server error)
|
|
3233
|
+
attributes:
|
|
3234
|
+
teamId:
|
|
3235
|
+
type: string
|
|
3236
|
+
description: The id of the team
|
|
3237
|
+
fieldId:
|
|
3238
|
+
type: string
|
|
3239
|
+
description: The ARI of the custom field
|
|
3240
|
+
fieldType:
|
|
3241
|
+
type: string
|
|
3242
|
+
description: The type of the custom field (STRING, NUMBER, SELECTOR, USER, TEAM)
|
|
3243
|
+
errorMessage:
|
|
3244
|
+
type: string
|
|
3245
|
+
description: The error message returned from the mutation
|
|
3204
3246
|
- invitePrompt eligibilityChecked:
|
|
3205
3247
|
type: operational
|
|
3206
3248
|
description:
|
|
@@ -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.27.1"
|
|
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.27.1"
|
|
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.27.1"
|
|
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::2c789c6695e7a48abf2bd9af058f68c3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -1447,6 +1447,22 @@ export type TeamAssignedTypePickerClickedAttributesType = {
|
|
|
1447
1447
|
teamProfileTabIndex: number;
|
|
1448
1448
|
consumer: string;
|
|
1449
1449
|
};
|
|
1450
|
+
export type TeamCustomFieldClickedAttributesType = {
|
|
1451
|
+
teamId: string;
|
|
1452
|
+
fieldId: string;
|
|
1453
|
+
fieldType: string;
|
|
1454
|
+
};
|
|
1455
|
+
export type TeamCustomFieldUpdateSucceededAttributesType = {
|
|
1456
|
+
teamId: string;
|
|
1457
|
+
fieldId: string;
|
|
1458
|
+
fieldType: string;
|
|
1459
|
+
};
|
|
1460
|
+
export type TeamCustomFieldUpdateFailedAttributesType = {
|
|
1461
|
+
teamId: string;
|
|
1462
|
+
fieldId: string;
|
|
1463
|
+
fieldType: string;
|
|
1464
|
+
errorMessage: string;
|
|
1465
|
+
};
|
|
1450
1466
|
export type InvitePromptEligibilityCheckedAttributesType = {
|
|
1451
1467
|
isEligible: boolean;
|
|
1452
1468
|
ineligibilityReason: string;
|
|
@@ -2538,6 +2554,15 @@ export type AnalyticsEventAttributes = {
|
|
|
2538
2554
|
/**
|
|
2539
2555
|
* fired when team assigned type picker is clicked */
|
|
2540
2556
|
'ui.teamAssignedTypePicker.clicked': TeamAssignedTypePickerClickedAttributesType;
|
|
2557
|
+
/**
|
|
2558
|
+
* fired when user clicks a custom field to start editing */
|
|
2559
|
+
'ui.teamCustomField.clicked': TeamCustomFieldClickedAttributesType;
|
|
2560
|
+
/**
|
|
2561
|
+
* fired when saving a custom field value succeeds */
|
|
2562
|
+
'track.teamCustomField.updateSucceeded': TeamCustomFieldUpdateSucceededAttributesType;
|
|
2563
|
+
/**
|
|
2564
|
+
* fired when saving a custom field value fails (network error or server error) */
|
|
2565
|
+
'track.teamCustomField.updateFailed': TeamCustomFieldUpdateFailedAttributesType;
|
|
2541
2566
|
/**
|
|
2542
2567
|
* Fired when eligibility check is performed for twcg_640_invite_prompt_on_teams_page_links */
|
|
2543
2568
|
'operational.invitePrompt.eligibilityChecked': InvitePromptEligibilityCheckedAttributesType;
|
|
@@ -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::2c789c6695e7a48abf2bd9af058f68c3>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -1447,6 +1447,22 @@ export type TeamAssignedTypePickerClickedAttributesType = {
|
|
|
1447
1447
|
teamProfileTabIndex: number;
|
|
1448
1448
|
consumer: string;
|
|
1449
1449
|
};
|
|
1450
|
+
export type TeamCustomFieldClickedAttributesType = {
|
|
1451
|
+
teamId: string;
|
|
1452
|
+
fieldId: string;
|
|
1453
|
+
fieldType: string;
|
|
1454
|
+
};
|
|
1455
|
+
export type TeamCustomFieldUpdateSucceededAttributesType = {
|
|
1456
|
+
teamId: string;
|
|
1457
|
+
fieldId: string;
|
|
1458
|
+
fieldType: string;
|
|
1459
|
+
};
|
|
1460
|
+
export type TeamCustomFieldUpdateFailedAttributesType = {
|
|
1461
|
+
teamId: string;
|
|
1462
|
+
fieldId: string;
|
|
1463
|
+
fieldType: string;
|
|
1464
|
+
errorMessage: string;
|
|
1465
|
+
};
|
|
1450
1466
|
export type InvitePromptEligibilityCheckedAttributesType = {
|
|
1451
1467
|
isEligible: boolean;
|
|
1452
1468
|
ineligibilityReason: string;
|
|
@@ -2538,6 +2554,15 @@ export type AnalyticsEventAttributes = {
|
|
|
2538
2554
|
/**
|
|
2539
2555
|
* fired when team assigned type picker is clicked */
|
|
2540
2556
|
'ui.teamAssignedTypePicker.clicked': TeamAssignedTypePickerClickedAttributesType;
|
|
2557
|
+
/**
|
|
2558
|
+
* fired when user clicks a custom field to start editing */
|
|
2559
|
+
'ui.teamCustomField.clicked': TeamCustomFieldClickedAttributesType;
|
|
2560
|
+
/**
|
|
2561
|
+
* fired when saving a custom field value succeeds */
|
|
2562
|
+
'track.teamCustomField.updateSucceeded': TeamCustomFieldUpdateSucceededAttributesType;
|
|
2563
|
+
/**
|
|
2564
|
+
* fired when saving a custom field value fails (network error or server error) */
|
|
2565
|
+
'track.teamCustomField.updateFailed': TeamCustomFieldUpdateFailedAttributesType;
|
|
2541
2566
|
/**
|
|
2542
2567
|
* Fired when eligibility check is performed for twcg_640_invite_prompt_on_teams_page_links */
|
|
2543
2568
|
'operational.invitePrompt.eligibilityChecked': InvitePromptEligibilityCheckedAttributesType;
|
package/package.json
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
87
|
-
"version": "1.27.
|
|
87
|
+
"version": "1.27.2",
|
|
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",
|