@atlaskit/teams-app-internal-analytics 1.13.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 +7 -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/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/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,12 @@
|
|
|
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
|
+
|
|
3
10
|
## 1.13.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -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: "1.
|
|
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: "1.
|
|
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: "1.
|
|
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
|
-
}
|
|
@@ -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
|
-
}
|
|
@@ -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",
|