@atlaskit/teams-app-internal-analytics 1.12.0 → 1.14.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 +15 -0
- package/analytics.spec.yaml +81 -0
- package/dist/cjs/common/utils/constants.js +2 -10
- package/dist/cjs/index.js +1 -8
- package/dist/cjs/ui/analytics-context/index.js +1 -1
- package/dist/es2019/common/utils/constants.js +1 -9
- package/dist/es2019/index.js +1 -2
- package/dist/es2019/ui/analytics-context/index.js +1 -1
- package/dist/esm/common/utils/constants.js +1 -9
- package/dist/esm/index.js +1 -2
- package/dist/esm/ui/analytics-context/index.js +1 -1
- package/dist/types/common/utils/constants.d.ts +0 -7
- package/dist/types/common/utils/generated/analytics.types.d.ts +58 -1
- package/dist/types/common/utils/types.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ui/analytics-context/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/constants.d.ts +0 -7
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +58 -1
- package/dist/types-ts4.5/common/utils/types.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/analytics-context/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ab5ef8d6bd584`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab5ef8d6bd584) -
|
|
8
|
+
Migrated teams app analytics context source type from enum to string template literal
|
|
9
|
+
|
|
10
|
+
## 1.13.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`c201870e2170e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c201870e2170e) -
|
|
15
|
+
Migrated feedback trigger, profile header and page load ptc common analytics to teams app internal
|
|
16
|
+
analytics
|
|
17
|
+
|
|
3
18
|
## 1.12.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -2247,3 +2247,84 @@ events:
|
|
|
2247
2247
|
- userMenu opened:
|
|
2248
2248
|
type: track
|
|
2249
2249
|
description: fired when the user menu is opened
|
|
2250
|
+
- headerImage started (userHeaderImage):
|
|
2251
|
+
type: operational
|
|
2252
|
+
description: fired when the header image action is triggered
|
|
2253
|
+
attributes:
|
|
2254
|
+
actionType:
|
|
2255
|
+
type: ['removeHeaderImage', 'uploadHeaderImage']
|
|
2256
|
+
description: the type of the action
|
|
2257
|
+
- headerImage failed (userHeaderImage):
|
|
2258
|
+
type: operational
|
|
2259
|
+
description: fired when the header image action is failed
|
|
2260
|
+
attributes:
|
|
2261
|
+
actionType:
|
|
2262
|
+
type: ['removeHeaderImage', 'uploadHeaderImage']
|
|
2263
|
+
description: the type of the action
|
|
2264
|
+
- headerImage succeeded (userHeaderImage):
|
|
2265
|
+
type: operational
|
|
2266
|
+
description: fired when the header image action is succeeded
|
|
2267
|
+
attributes:
|
|
2268
|
+
actionType:
|
|
2269
|
+
type: ['removeHeaderImage', 'uploadHeaderImage']
|
|
2270
|
+
description: the type of the action
|
|
2271
|
+
- headerImage started (teamHeaderImage):
|
|
2272
|
+
type: operational
|
|
2273
|
+
description: fired when the header image action is triggered
|
|
2274
|
+
attributes:
|
|
2275
|
+
actionType:
|
|
2276
|
+
type: ['removeHeaderImage', 'uploadHeaderImage']
|
|
2277
|
+
description: the type of the action
|
|
2278
|
+
memberOfTeam:
|
|
2279
|
+
type: boolean
|
|
2280
|
+
description: whether the user is a member of the team
|
|
2281
|
+
orgAdminTriggered:
|
|
2282
|
+
type: boolean
|
|
2283
|
+
description: whether the user is an org admin
|
|
2284
|
+
isVerified:
|
|
2285
|
+
type: boolean
|
|
2286
|
+
description: whether the user is verified
|
|
2287
|
+
required: false
|
|
2288
|
+
- headerImage failed (teamHeaderImage):
|
|
2289
|
+
type: operational
|
|
2290
|
+
description: fired when the header image action is failed
|
|
2291
|
+
attributes:
|
|
2292
|
+
actionType:
|
|
2293
|
+
type: ['removeHeaderImage', 'uploadHeaderImage']
|
|
2294
|
+
description: the type of the action
|
|
2295
|
+
memberOfTeam:
|
|
2296
|
+
type: boolean
|
|
2297
|
+
description: whether the user is a member of the team
|
|
2298
|
+
orgAdminTriggered:
|
|
2299
|
+
type: boolean
|
|
2300
|
+
description: whether the user is an org admin
|
|
2301
|
+
isVerified:
|
|
2302
|
+
type: boolean
|
|
2303
|
+
description: whether the user is verified
|
|
2304
|
+
required: false
|
|
2305
|
+
- headerImage succeeded (teamHeaderImage):
|
|
2306
|
+
type: operational
|
|
2307
|
+
description: fired when the header image action is succeeded
|
|
2308
|
+
attributes:
|
|
2309
|
+
actionType:
|
|
2310
|
+
type: ['removeHeaderImage', 'uploadHeaderImage']
|
|
2311
|
+
description: the type of the action
|
|
2312
|
+
memberOfTeam:
|
|
2313
|
+
type: boolean
|
|
2314
|
+
description: whether the user is a member of the team
|
|
2315
|
+
orgAdminTriggered:
|
|
2316
|
+
type: boolean
|
|
2317
|
+
description: whether the user is an org admin
|
|
2318
|
+
isVerified:
|
|
2319
|
+
type: boolean
|
|
2320
|
+
description: whether the user is verified
|
|
2321
|
+
required: false
|
|
2322
|
+
- button clicked (profileHeaderMediaPickerUpload):
|
|
2323
|
+
type: ui
|
|
2324
|
+
description: fired when the media picker upload button is clicked
|
|
2325
|
+
- button clicked (profileHeaderRemove):
|
|
2326
|
+
type: ui
|
|
2327
|
+
description: fired when the remove header image button is clicked
|
|
2328
|
+
- sendFeedback clicked:
|
|
2329
|
+
type: ui
|
|
2330
|
+
description: fired when the send feedback button is clicked
|
|
@@ -3,13 +3,5 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.EVENT_CHANNEL =
|
|
7
|
-
var EVENT_CHANNEL = exports.EVENT_CHANNEL = 'peopleTeams';
|
|
8
|
-
var AnalyticsEventSource = exports.AnalyticsEventSource = /*#__PURE__*/function (AnalyticsEventSource) {
|
|
9
|
-
AnalyticsEventSource["USER_PROFILE_SCREEN"] = "userProfileScreen";
|
|
10
|
-
AnalyticsEventSource["TEAM_PROFILE_ABOUT"] = "teamProfileAbout";
|
|
11
|
-
AnalyticsEventSource["TEAM_PROFILE_SCREEN"] = "teamProfileScreen";
|
|
12
|
-
AnalyticsEventSource["USER_MENU"] = "userMenu";
|
|
13
|
-
AnalyticsEventSource["PEOPLE_HOME"] = "peopleHome";
|
|
14
|
-
return AnalyticsEventSource;
|
|
15
|
-
}({});
|
|
6
|
+
exports.EVENT_CHANNEL = void 0;
|
|
7
|
+
var EVENT_CHANNEL = exports.EVENT_CHANNEL = 'peopleTeams';
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,12 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "AnalyticsEventSource", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _constants.AnalyticsEventSource;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
7
|
Object.defineProperty(exports, "TeamsAppAnalyticsContext", {
|
|
14
8
|
enumerable: true,
|
|
15
9
|
get: function get() {
|
|
@@ -30,5 +24,4 @@ Object.defineProperty(exports, "useAnalyticsEvents", {
|
|
|
30
24
|
});
|
|
31
25
|
var _analyticsContext = require("./ui/analytics-context");
|
|
32
26
|
var _useAnalyticsEvents = require("./common/utils/generated/use-analytics-events");
|
|
33
|
-
var _createEventPayload = _interopRequireDefault(require("./common/utils/generated/create-event-payload"));
|
|
34
|
-
var _constants = require("./common/utils/constants");
|
|
27
|
+
var _createEventPayload = _interopRequireDefault(require("./common/utils/generated/create-event-payload"));
|
|
@@ -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.13.0"
|
|
20
20
|
};
|
|
21
21
|
function TeamsAppAnalyticsContext(_ref) {
|
|
22
22
|
var data = _ref.data,
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export const EVENT_CHANNEL = 'peopleTeams';
|
|
2
|
-
export let AnalyticsEventSource = /*#__PURE__*/function (AnalyticsEventSource) {
|
|
3
|
-
AnalyticsEventSource["USER_PROFILE_SCREEN"] = "userProfileScreen";
|
|
4
|
-
AnalyticsEventSource["TEAM_PROFILE_ABOUT"] = "teamProfileAbout";
|
|
5
|
-
AnalyticsEventSource["TEAM_PROFILE_SCREEN"] = "teamProfileScreen";
|
|
6
|
-
AnalyticsEventSource["USER_MENU"] = "userMenu";
|
|
7
|
-
AnalyticsEventSource["PEOPLE_HOME"] = "peopleHome";
|
|
8
|
-
return AnalyticsEventSource;
|
|
9
|
-
}({});
|
|
1
|
+
export const EVENT_CHANNEL = 'peopleTeams';
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { TeamsAppAnalyticsContext } from './ui/analytics-context';
|
|
2
2
|
export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
|
|
3
|
-
export { default as createEventPayload } from './common/utils/generated/create-event-payload';
|
|
4
|
-
export { AnalyticsEventSource } from './common/utils/constants';
|
|
3
|
+
export { default as createEventPayload } from './common/utils/generated/create-event-payload';
|
|
@@ -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.13.0"
|
|
6
6
|
};
|
|
7
7
|
export function TeamsAppAnalyticsContext({
|
|
8
8
|
data,
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export var EVENT_CHANNEL = 'peopleTeams';
|
|
2
|
-
export var AnalyticsEventSource = /*#__PURE__*/function (AnalyticsEventSource) {
|
|
3
|
-
AnalyticsEventSource["USER_PROFILE_SCREEN"] = "userProfileScreen";
|
|
4
|
-
AnalyticsEventSource["TEAM_PROFILE_ABOUT"] = "teamProfileAbout";
|
|
5
|
-
AnalyticsEventSource["TEAM_PROFILE_SCREEN"] = "teamProfileScreen";
|
|
6
|
-
AnalyticsEventSource["USER_MENU"] = "userMenu";
|
|
7
|
-
AnalyticsEventSource["PEOPLE_HOME"] = "peopleHome";
|
|
8
|
-
return AnalyticsEventSource;
|
|
9
|
-
}({});
|
|
1
|
+
export var EVENT_CHANNEL = 'peopleTeams';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { TeamsAppAnalyticsContext } from './ui/analytics-context';
|
|
2
2
|
export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
|
|
3
|
-
export { default as createEventPayload } from './common/utils/generated/create-event-payload';
|
|
4
|
-
export { AnalyticsEventSource } from './common/utils/constants';
|
|
3
|
+
export { default as createEventPayload } from './common/utils/generated/create-event-payload';
|
|
@@ -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.13.0"
|
|
10
10
|
};
|
|
11
11
|
export function TeamsAppAnalyticsContext(_ref) {
|
|
12
12
|
var data = _ref.data,
|
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export declare const EVENT_CHANNEL = "peopleTeams";
|
|
2
|
-
export declare enum AnalyticsEventSource {
|
|
3
|
-
USER_PROFILE_SCREEN = "userProfileScreen",
|
|
4
|
-
TEAM_PROFILE_ABOUT = "teamProfileAbout",
|
|
5
|
-
TEAM_PROFILE_SCREEN = "teamProfileScreen",
|
|
6
|
-
USER_MENU = "userMenu",
|
|
7
|
-
PEOPLE_HOME = "peopleHome"
|
|
8
|
-
}
|
|
@@ -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::0d7940fbc9a2038bb629f21e1f22705f>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -1069,6 +1069,36 @@ export type UserMenuItemClickedLinkProfileAttributesType = undefined;
|
|
|
1069
1069
|
export type UserMenuItemClickedLinkManageAccountAttributesType = undefined;
|
|
1070
1070
|
export type UserMenuItemClickedLinkLogoutAttributesType = undefined;
|
|
1071
1071
|
export type UserMenuOpenedAttributesType = undefined;
|
|
1072
|
+
export type HeaderImageStartedUserHeaderImageAttributesType = {
|
|
1073
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1074
|
+
};
|
|
1075
|
+
export type HeaderImageFailedUserHeaderImageAttributesType = {
|
|
1076
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1077
|
+
};
|
|
1078
|
+
export type HeaderImageSucceededUserHeaderImageAttributesType = {
|
|
1079
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1080
|
+
};
|
|
1081
|
+
export type HeaderImageStartedTeamHeaderImageAttributesType = {
|
|
1082
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1083
|
+
memberOfTeam: boolean;
|
|
1084
|
+
orgAdminTriggered: boolean;
|
|
1085
|
+
isVerified: boolean | null;
|
|
1086
|
+
};
|
|
1087
|
+
export type HeaderImageFailedTeamHeaderImageAttributesType = {
|
|
1088
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1089
|
+
memberOfTeam: boolean;
|
|
1090
|
+
orgAdminTriggered: boolean;
|
|
1091
|
+
isVerified: boolean | null;
|
|
1092
|
+
};
|
|
1093
|
+
export type HeaderImageSucceededTeamHeaderImageAttributesType = {
|
|
1094
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1095
|
+
memberOfTeam: boolean;
|
|
1096
|
+
orgAdminTriggered: boolean;
|
|
1097
|
+
isVerified: boolean | null;
|
|
1098
|
+
};
|
|
1099
|
+
export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
|
|
1100
|
+
export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
|
|
1101
|
+
export type SendFeedbackClickedAttributesType = undefined;
|
|
1072
1102
|
export type AnalyticsEventAttributes = {
|
|
1073
1103
|
/**
|
|
1074
1104
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1789,5 +1819,32 @@ export type AnalyticsEventAttributes = {
|
|
|
1789
1819
|
/**
|
|
1790
1820
|
* fired when the user menu is opened */
|
|
1791
1821
|
'track.userMenu.opened': UserMenuOpenedAttributesType;
|
|
1822
|
+
/**
|
|
1823
|
+
* fired when the header image action is triggered */
|
|
1824
|
+
'operational.headerImage.started.userHeaderImage': HeaderImageStartedUserHeaderImageAttributesType;
|
|
1825
|
+
/**
|
|
1826
|
+
* fired when the header image action is failed */
|
|
1827
|
+
'operational.headerImage.failed.userHeaderImage': HeaderImageFailedUserHeaderImageAttributesType;
|
|
1828
|
+
/**
|
|
1829
|
+
* fired when the header image action is succeeded */
|
|
1830
|
+
'operational.headerImage.succeeded.userHeaderImage': HeaderImageSucceededUserHeaderImageAttributesType;
|
|
1831
|
+
/**
|
|
1832
|
+
* fired when the header image action is triggered */
|
|
1833
|
+
'operational.headerImage.started.teamHeaderImage': HeaderImageStartedTeamHeaderImageAttributesType;
|
|
1834
|
+
/**
|
|
1835
|
+
* fired when the header image action is failed */
|
|
1836
|
+
'operational.headerImage.failed.teamHeaderImage': HeaderImageFailedTeamHeaderImageAttributesType;
|
|
1837
|
+
/**
|
|
1838
|
+
* fired when the header image action is succeeded */
|
|
1839
|
+
'operational.headerImage.succeeded.teamHeaderImage': HeaderImageSucceededTeamHeaderImageAttributesType;
|
|
1840
|
+
/**
|
|
1841
|
+
* fired when the media picker upload button is clicked */
|
|
1842
|
+
'ui.button.clicked.profileHeaderMediaPickerUpload': ButtonClickedProfileHeaderMediaPickerUploadAttributesType;
|
|
1843
|
+
/**
|
|
1844
|
+
* fired when the remove header image button is clicked */
|
|
1845
|
+
'ui.button.clicked.profileHeaderRemove': ButtonClickedProfileHeaderRemoveAttributesType;
|
|
1846
|
+
/**
|
|
1847
|
+
* fired when the send feedback button is clicked */
|
|
1848
|
+
'ui.sendFeedback.clicked': SendFeedbackClickedAttributesType;
|
|
1792
1849
|
};
|
|
1793
1850
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { EventKey } from './generated/analytics.types';
|
|
2
2
|
import type createEventPayload from './generated/create-event-payload';
|
|
3
3
|
export type FireEventType = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { useAnalyticsEvents } from './common/utils/generated/use-analytics-event
|
|
|
3
3
|
export { default as createEventPayload } from './common/utils/generated/create-event-payload';
|
|
4
4
|
export type { AnalyticsEventAttributes } from './common/utils/generated/analytics.types';
|
|
5
5
|
export type { FireEventType } from './common/utils/types';
|
|
6
|
-
export { AnalyticsEventSource } from './common/utils/
|
|
6
|
+
export type { AnalyticsEventSource } from './common/utils/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { AnalyticsEventSource } from '../../common/utils/constants';
|
|
3
2
|
import type { PackageMetaDataType } from '../../common/utils/generated/analytics.types';
|
|
3
|
+
import type { AnalyticsEventSource } from '../../common/utils/types';
|
|
4
4
|
export declare const defaultAnalyticsContextData: PackageMetaDataType;
|
|
5
5
|
type TeamsAppAnalyticsContextData = {
|
|
6
6
|
source?: AnalyticsEventSource;
|
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export declare const EVENT_CHANNEL = "peopleTeams";
|
|
2
|
-
export declare enum AnalyticsEventSource {
|
|
3
|
-
USER_PROFILE_SCREEN = "userProfileScreen",
|
|
4
|
-
TEAM_PROFILE_ABOUT = "teamProfileAbout",
|
|
5
|
-
TEAM_PROFILE_SCREEN = "teamProfileScreen",
|
|
6
|
-
USER_MENU = "userMenu",
|
|
7
|
-
PEOPLE_HOME = "peopleHome"
|
|
8
|
-
}
|
|
@@ -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::0d7940fbc9a2038bb629f21e1f22705f>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -1069,6 +1069,36 @@ export type UserMenuItemClickedLinkProfileAttributesType = undefined;
|
|
|
1069
1069
|
export type UserMenuItemClickedLinkManageAccountAttributesType = undefined;
|
|
1070
1070
|
export type UserMenuItemClickedLinkLogoutAttributesType = undefined;
|
|
1071
1071
|
export type UserMenuOpenedAttributesType = undefined;
|
|
1072
|
+
export type HeaderImageStartedUserHeaderImageAttributesType = {
|
|
1073
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1074
|
+
};
|
|
1075
|
+
export type HeaderImageFailedUserHeaderImageAttributesType = {
|
|
1076
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1077
|
+
};
|
|
1078
|
+
export type HeaderImageSucceededUserHeaderImageAttributesType = {
|
|
1079
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1080
|
+
};
|
|
1081
|
+
export type HeaderImageStartedTeamHeaderImageAttributesType = {
|
|
1082
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1083
|
+
memberOfTeam: boolean;
|
|
1084
|
+
orgAdminTriggered: boolean;
|
|
1085
|
+
isVerified: boolean | null;
|
|
1086
|
+
};
|
|
1087
|
+
export type HeaderImageFailedTeamHeaderImageAttributesType = {
|
|
1088
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1089
|
+
memberOfTeam: boolean;
|
|
1090
|
+
orgAdminTriggered: boolean;
|
|
1091
|
+
isVerified: boolean | null;
|
|
1092
|
+
};
|
|
1093
|
+
export type HeaderImageSucceededTeamHeaderImageAttributesType = {
|
|
1094
|
+
actionType: 'removeHeaderImage' | 'uploadHeaderImage';
|
|
1095
|
+
memberOfTeam: boolean;
|
|
1096
|
+
orgAdminTriggered: boolean;
|
|
1097
|
+
isVerified: boolean | null;
|
|
1098
|
+
};
|
|
1099
|
+
export type ButtonClickedProfileHeaderMediaPickerUploadAttributesType = undefined;
|
|
1100
|
+
export type ButtonClickedProfileHeaderRemoveAttributesType = undefined;
|
|
1101
|
+
export type SendFeedbackClickedAttributesType = undefined;
|
|
1072
1102
|
export type AnalyticsEventAttributes = {
|
|
1073
1103
|
/**
|
|
1074
1104
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1789,5 +1819,32 @@ export type AnalyticsEventAttributes = {
|
|
|
1789
1819
|
/**
|
|
1790
1820
|
* fired when the user menu is opened */
|
|
1791
1821
|
'track.userMenu.opened': UserMenuOpenedAttributesType;
|
|
1822
|
+
/**
|
|
1823
|
+
* fired when the header image action is triggered */
|
|
1824
|
+
'operational.headerImage.started.userHeaderImage': HeaderImageStartedUserHeaderImageAttributesType;
|
|
1825
|
+
/**
|
|
1826
|
+
* fired when the header image action is failed */
|
|
1827
|
+
'operational.headerImage.failed.userHeaderImage': HeaderImageFailedUserHeaderImageAttributesType;
|
|
1828
|
+
/**
|
|
1829
|
+
* fired when the header image action is succeeded */
|
|
1830
|
+
'operational.headerImage.succeeded.userHeaderImage': HeaderImageSucceededUserHeaderImageAttributesType;
|
|
1831
|
+
/**
|
|
1832
|
+
* fired when the header image action is triggered */
|
|
1833
|
+
'operational.headerImage.started.teamHeaderImage': HeaderImageStartedTeamHeaderImageAttributesType;
|
|
1834
|
+
/**
|
|
1835
|
+
* fired when the header image action is failed */
|
|
1836
|
+
'operational.headerImage.failed.teamHeaderImage': HeaderImageFailedTeamHeaderImageAttributesType;
|
|
1837
|
+
/**
|
|
1838
|
+
* fired when the header image action is succeeded */
|
|
1839
|
+
'operational.headerImage.succeeded.teamHeaderImage': HeaderImageSucceededTeamHeaderImageAttributesType;
|
|
1840
|
+
/**
|
|
1841
|
+
* fired when the media picker upload button is clicked */
|
|
1842
|
+
'ui.button.clicked.profileHeaderMediaPickerUpload': ButtonClickedProfileHeaderMediaPickerUploadAttributesType;
|
|
1843
|
+
/**
|
|
1844
|
+
* fired when the remove header image button is clicked */
|
|
1845
|
+
'ui.button.clicked.profileHeaderRemove': ButtonClickedProfileHeaderRemoveAttributesType;
|
|
1846
|
+
/**
|
|
1847
|
+
* fired when the send feedback button is clicked */
|
|
1848
|
+
'ui.sendFeedback.clicked': SendFeedbackClickedAttributesType;
|
|
1792
1849
|
};
|
|
1793
1850
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { EventKey } from './generated/analytics.types';
|
|
2
2
|
import type createEventPayload from './generated/create-event-payload';
|
|
3
3
|
export type FireEventType = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome';
|
|
@@ -3,4 +3,4 @@ export { useAnalyticsEvents } from './common/utils/generated/use-analytics-event
|
|
|
3
3
|
export { default as createEventPayload } from './common/utils/generated/create-event-payload';
|
|
4
4
|
export type { AnalyticsEventAttributes } from './common/utils/generated/analytics.types';
|
|
5
5
|
export type { FireEventType } from './common/utils/types';
|
|
6
|
-
export { AnalyticsEventSource } from './common/utils/
|
|
6
|
+
export type { AnalyticsEventSource } from './common/utils/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { AnalyticsEventSource } from '../../common/utils/constants';
|
|
3
2
|
import type { PackageMetaDataType } from '../../common/utils/generated/analytics.types';
|
|
3
|
+
import type { AnalyticsEventSource } from '../../common/utils/types';
|
|
4
4
|
export declare const defaultAnalyticsContextData: PackageMetaDataType;
|
|
5
5
|
type TeamsAppAnalyticsContextData = {
|
|
6
6
|
source?: AnalyticsEventSource;
|
package/package.json
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
91
|
-
"version": "1.
|
|
91
|
+
"version": "1.14.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",
|