@atlaskit/teams-app-internal-analytics 1.6.0 → 1.7.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 +11 -0
- package/analytics.spec.yaml +59 -0
- package/dist/cjs/index.js +9 -1
- package/dist/es2019/index.js +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/types/common/utils/generated/analytics.types.d.ts +38 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +38 -1
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`86f959878c6d4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86f959878c6d4) -
|
|
8
|
+
Migrated team and agent profile card analytics to teams-app-internal-analytics
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 1.6.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -2016,3 +2016,62 @@ 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
|
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"));
|
package/dist/es2019/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';
|
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::
|
|
6
|
+
* @codegen <<SignedSource::6024fcc7ef1f42316e17d04ed01ef565>>
|
|
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,31 @@ 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
|
+
};
|
|
982
1007
|
export type AnalyticsEventAttributes = {
|
|
983
1008
|
/**
|
|
984
1009
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1624,5 +1649,17 @@ export type AnalyticsEventAttributes = {
|
|
|
1624
1649
|
/**
|
|
1625
1650
|
* fired when the more actions is clicked */
|
|
1626
1651
|
'ui.profilecard.clicked.moreActions': ProfilecardClickedMoreActionsAttributesType;
|
|
1652
|
+
/**
|
|
1653
|
+
* fired when the more actions is clicked */
|
|
1654
|
+
'ui.teamProfileCard.clicked.moreActions': TeamProfileCardClickedMoreActionsAttributesType;
|
|
1655
|
+
/**
|
|
1656
|
+
* fired when the avatar is clicked */
|
|
1657
|
+
'ui.teamProfileCard.clicked.avatar': TeamProfileCardClickedAvatarAttributesType;
|
|
1658
|
+
/**
|
|
1659
|
+
* fired when the action is clicked */
|
|
1660
|
+
'ui.teamProfileCard.clicked.action': TeamProfileCardClickedActionAttributesType;
|
|
1661
|
+
/**
|
|
1662
|
+
* fired when the more members is clicked */
|
|
1663
|
+
'ui.teamProfileCard.clicked.moreMembers': TeamProfileCardClickedMoreMembersAttributesType;
|
|
1627
1664
|
};
|
|
1628
1665
|
export type EventKey = keyof AnalyticsEventAttributes;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::6024fcc7ef1f42316e17d04ed01ef565>>
|
|
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,31 @@ 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
|
+
};
|
|
982
1007
|
export type AnalyticsEventAttributes = {
|
|
983
1008
|
/**
|
|
984
1009
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -1624,5 +1649,17 @@ export type AnalyticsEventAttributes = {
|
|
|
1624
1649
|
/**
|
|
1625
1650
|
* fired when the more actions is clicked */
|
|
1626
1651
|
'ui.profilecard.clicked.moreActions': ProfilecardClickedMoreActionsAttributesType;
|
|
1652
|
+
/**
|
|
1653
|
+
* fired when the more actions is clicked */
|
|
1654
|
+
'ui.teamProfileCard.clicked.moreActions': TeamProfileCardClickedMoreActionsAttributesType;
|
|
1655
|
+
/**
|
|
1656
|
+
* fired when the avatar is clicked */
|
|
1657
|
+
'ui.teamProfileCard.clicked.avatar': TeamProfileCardClickedAvatarAttributesType;
|
|
1658
|
+
/**
|
|
1659
|
+
* fired when the action is clicked */
|
|
1660
|
+
'ui.teamProfileCard.clicked.action': TeamProfileCardClickedActionAttributesType;
|
|
1661
|
+
/**
|
|
1662
|
+
* fired when the more members is clicked */
|
|
1663
|
+
'ui.teamProfileCard.clicked.moreMembers': TeamProfileCardClickedMoreMembersAttributesType;
|
|
1627
1664
|
};
|
|
1628
1665
|
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.
|
|
31
|
-
"@atlaskit/analytics-namespaced-context": "^7.
|
|
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.
|
|
35
|
+
"@atlaskit/tokens": "^6.4.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"@compiled/react": "^0.18.3"
|
|
38
38
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
91
|
-
"version": "1.
|
|
91
|
+
"version": "1.7.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",
|