@atlaskit/teams-app-internal-analytics 1.27.0 → 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 CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## 1.27.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`2c34be51e4045`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c34be51e4045) -
16
+ Remove code related to the teams_app_auto_container_create_universal_create experiment (we are not
17
+ going ahead with this)
18
+
3
19
  ## 1.27.0
4
20
 
5
21
  ### Minor Changes
@@ -203,14 +203,6 @@ events:
203
203
  description: fired when the member picker error is triggered
204
204
  attributes:
205
205
  <<: *PackageMetaDataContext
206
- - requestedContainers requested:
207
- type: track
208
- description: fired when the teams containers are requested
209
- attributes:
210
- <<: *PackageMetaDataContext
211
- containers:
212
- type: object
213
- description: the containers that are requested
214
206
  - teamCreateDialog viewed:
215
207
  type: screen
216
208
  description: fired when the team create dialog is viewed
@@ -3209,6 +3201,48 @@ events:
3209
3201
  consumer:
3210
3202
  type: string
3211
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
3212
3246
  - invitePrompt eligibilityChecked:
3213
3247
  type: operational
3214
3248
  description:
@@ -3307,30 +3341,6 @@ events:
3307
3341
  error:
3308
3342
  type: string
3309
3343
  description: The error that was thrown
3310
- - requestedContainers tryAgain:
3311
- type: track
3312
- description: Fired when the user tries to add requested containers again
3313
- attributes:
3314
- containers:
3315
- type: []
3316
- description: The containers that the user tried to add
3317
- teamId:
3318
- type: string
3319
- description: The id of the team
3320
- - requestedContainers failed:
3321
- type: track
3322
- description: Fired when the user fails to add requested containers
3323
- attributes:
3324
- containers:
3325
- type: []
3326
- description: The containers that the user tried to add
3327
- teamId:
3328
- type: string
3329
- description: The id of the team
3330
- tryAgainCount:
3331
- required: false
3332
- type: number
3333
- description: The number of times the user has tried to add requested containers
3334
3344
  - starred succeeded (team):
3335
3345
  type: track
3336
3346
  description: fired when a team is starred or unstarred succeeds
@@ -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.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: "0.0.0-development"
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: "0.0.0-development"
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::cd3e43aed89c6bc6bfed2bb49ec98ee6>>
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 = {
@@ -33,9 +33,6 @@ export type AssignTeamToASiteConfirmButtonClickedAttributesType = {
33
33
  };
34
34
  export type AssignTeamToASiteCancelButtonClickedAttributesType = {};
35
35
  export type MemberPickerErrorAttributesType = {};
36
- export type RequestedContainersRequestedAttributesType = {
37
- containers: Record<string, unknown>;
38
- };
39
36
  export type TeamCreateDialogViewedAttributesType = {
40
37
  proposedMembersLength: number;
41
38
  };
@@ -1450,6 +1447,22 @@ export type TeamAssignedTypePickerClickedAttributesType = {
1450
1447
  teamProfileTabIndex: number;
1451
1448
  consumer: string;
1452
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
+ };
1453
1466
  export type InvitePromptEligibilityCheckedAttributesType = {
1454
1467
  isEligible: boolean;
1455
1468
  ineligibilityReason: string;
@@ -1487,15 +1500,6 @@ export type FeatureExposedAttributesType = {
1487
1500
  export type InvitePromptShowContainerAddedFlagFailedAttributesType = {
1488
1501
  error: string;
1489
1502
  };
1490
- export type RequestedContainersTryAgainAttributesType = {
1491
- containers: unknown[];
1492
- teamId: string;
1493
- };
1494
- export type RequestedContainersFailedAttributesType = {
1495
- containers: unknown[];
1496
- teamId: string;
1497
- tryAgainCount: number | null;
1498
- };
1499
1503
  export type StarredSucceededTeamAttributesType = {
1500
1504
  starred: boolean;
1501
1505
  };
@@ -1587,9 +1591,6 @@ export type AnalyticsEventAttributes = {
1587
1591
  /**
1588
1592
  * fired when the member picker error is triggered */
1589
1593
  'track.memberPicker.error': MemberPickerErrorAttributesType;
1590
- /**
1591
- * fired when the teams containers are requested */
1592
- 'track.requestedContainers.requested': RequestedContainersRequestedAttributesType;
1593
1594
  /**
1594
1595
  * fired when the team create dialog is viewed */
1595
1596
  'screen.teamCreateDialog.viewed': TeamCreateDialogViewedAttributesType;
@@ -2553,6 +2554,15 @@ export type AnalyticsEventAttributes = {
2553
2554
  /**
2554
2555
  * fired when team assigned type picker is clicked */
2555
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;
2556
2566
  /**
2557
2567
  * Fired when eligibility check is performed for twcg_640_invite_prompt_on_teams_page_links */
2558
2568
  'operational.invitePrompt.eligibilityChecked': InvitePromptEligibilityCheckedAttributesType;
@@ -2580,12 +2590,6 @@ export type AnalyticsEventAttributes = {
2580
2590
  /**
2581
2591
  * Fired when something fails horribly inside of showContainerAddedFlagFailed */
2582
2592
  'operational.invitePrompt.showContainerAddedFlagFailed': InvitePromptShowContainerAddedFlagFailedAttributesType;
2583
- /**
2584
- * Fired when the user tries to add requested containers again */
2585
- 'track.requestedContainers.tryAgain': RequestedContainersTryAgainAttributesType;
2586
- /**
2587
- * Fired when the user fails to add requested containers */
2588
- 'track.requestedContainers.failed': RequestedContainersFailedAttributesType;
2589
2593
  /**
2590
2594
  * fired when a team is starred or unstarred succeeds */
2591
2595
  'track.starred.succeeded.team': StarredSucceededTeamAttributesType;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::cd3e43aed89c6bc6bfed2bb49ec98ee6>>
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 = {
@@ -33,9 +33,6 @@ export type AssignTeamToASiteConfirmButtonClickedAttributesType = {
33
33
  };
34
34
  export type AssignTeamToASiteCancelButtonClickedAttributesType = {};
35
35
  export type MemberPickerErrorAttributesType = {};
36
- export type RequestedContainersRequestedAttributesType = {
37
- containers: Record<string, unknown>;
38
- };
39
36
  export type TeamCreateDialogViewedAttributesType = {
40
37
  proposedMembersLength: number;
41
38
  };
@@ -1450,6 +1447,22 @@ export type TeamAssignedTypePickerClickedAttributesType = {
1450
1447
  teamProfileTabIndex: number;
1451
1448
  consumer: string;
1452
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
+ };
1453
1466
  export type InvitePromptEligibilityCheckedAttributesType = {
1454
1467
  isEligible: boolean;
1455
1468
  ineligibilityReason: string;
@@ -1487,15 +1500,6 @@ export type FeatureExposedAttributesType = {
1487
1500
  export type InvitePromptShowContainerAddedFlagFailedAttributesType = {
1488
1501
  error: string;
1489
1502
  };
1490
- export type RequestedContainersTryAgainAttributesType = {
1491
- containers: unknown[];
1492
- teamId: string;
1493
- };
1494
- export type RequestedContainersFailedAttributesType = {
1495
- containers: unknown[];
1496
- teamId: string;
1497
- tryAgainCount: number | null;
1498
- };
1499
1503
  export type StarredSucceededTeamAttributesType = {
1500
1504
  starred: boolean;
1501
1505
  };
@@ -1587,9 +1591,6 @@ export type AnalyticsEventAttributes = {
1587
1591
  /**
1588
1592
  * fired when the member picker error is triggered */
1589
1593
  'track.memberPicker.error': MemberPickerErrorAttributesType;
1590
- /**
1591
- * fired when the teams containers are requested */
1592
- 'track.requestedContainers.requested': RequestedContainersRequestedAttributesType;
1593
1594
  /**
1594
1595
  * fired when the team create dialog is viewed */
1595
1596
  'screen.teamCreateDialog.viewed': TeamCreateDialogViewedAttributesType;
@@ -2553,6 +2554,15 @@ export type AnalyticsEventAttributes = {
2553
2554
  /**
2554
2555
  * fired when team assigned type picker is clicked */
2555
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;
2556
2566
  /**
2557
2567
  * Fired when eligibility check is performed for twcg_640_invite_prompt_on_teams_page_links */
2558
2568
  'operational.invitePrompt.eligibilityChecked': InvitePromptEligibilityCheckedAttributesType;
@@ -2580,12 +2590,6 @@ export type AnalyticsEventAttributes = {
2580
2590
  /**
2581
2591
  * Fired when something fails horribly inside of showContainerAddedFlagFailed */
2582
2592
  'operational.invitePrompt.showContainerAddedFlagFailed': InvitePromptShowContainerAddedFlagFailedAttributesType;
2583
- /**
2584
- * Fired when the user tries to add requested containers again */
2585
- 'track.requestedContainers.tryAgain': RequestedContainersTryAgainAttributesType;
2586
- /**
2587
- * Fired when the user fails to add requested containers */
2588
- 'track.requestedContainers.failed': RequestedContainersFailedAttributesType;
2589
2593
  /**
2590
2594
  * fired when a team is starred or unstarred succeeds */
2591
2595
  'track.starred.succeeded.team': StarredSucceededTeamAttributesType;
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
32
32
  "@atlaskit/analytics-next": "^11.1.0",
33
33
  "@babel/runtime": "^7.0.0",
34
- "@compiled/react": "^0.18.6"
34
+ "@compiled/react": "^0.20.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": "^18.2.0"
@@ -84,7 +84,7 @@
84
84
  }
85
85
  },
86
86
  "name": "@atlaskit/teams-app-internal-analytics",
87
- "version": "1.27.0",
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",