@atlaskit/people-teams-ui-public 3.7.8 → 3.7.9
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/analytics/hooks.js +1 -1
- package/dist/cjs/common/utils/analytics/index.js +0 -7
- package/dist/es2019/common/utils/analytics/hooks.js +1 -1
- package/dist/es2019/common/utils/analytics/index.js +0 -1
- package/dist/esm/common/utils/analytics/hooks.js +1 -1
- package/dist/esm/common/utils/analytics/index.js +0 -1
- package/dist/types/common/utils/analytics/index.d.ts +0 -1
- package/dist/types-ts4.5/common/utils/analytics/index.d.ts +0 -1
- package/package.json +2 -4
- package/dist/cjs/common/utils/analytics/analytics-subcontext/index.js +0 -40
- package/dist/es2019/common/utils/analytics/analytics-subcontext/index.js +0 -35
- package/dist/esm/common/utils/analytics/analytics-subcontext/index.js +0 -33
- package/dist/types/common/utils/analytics/analytics-subcontext/index.d.ts +0 -13
- package/dist/types-ts4.5/common/utils/analytics/analytics-subcontext/index.d.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/people-teams-ui-public
|
|
2
2
|
|
|
3
|
+
## 3.7.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3b330857e464b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b330857e464b) -
|
|
8
|
+
Clean up the ptc-enable-people-teams-ui-analytics-refactor feature gate
|
|
9
|
+
|
|
3
10
|
## 3.7.8
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -15,7 +15,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
15
15
|
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; }
|
|
16
16
|
var defaultAnalyticsContextData = {
|
|
17
17
|
packageName: "@atlaskit/people-teams-ui-public",
|
|
18
|
-
packageVersion: "
|
|
18
|
+
packageVersion: "3.7.8"
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -9,12 +9,6 @@ Object.defineProperty(exports, "PeopleTeamsAnalyticsProvider", {
|
|
|
9
9
|
return _hooks.PeopleTeamsAnalyticsProvider;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "PeopleTeamsAnalyticsSubcontextProvider", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _analyticsSubcontext.PeopleTeamsAnalyticsSubcontextProvider;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
12
|
Object.defineProperty(exports, "useInjectedEventAttribute", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function get() {
|
|
@@ -28,5 +22,4 @@ Object.defineProperty(exports, "usePeopleTeamsAnalyticsSubcontext", {
|
|
|
28
22
|
}
|
|
29
23
|
});
|
|
30
24
|
var _hooks = require("./hooks");
|
|
31
|
-
var _analyticsSubcontext = require("./analytics-subcontext");
|
|
32
25
|
var _store = require("./analytics-subcontext/store");
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
3
3
|
const defaultAnalyticsContextData = {
|
|
4
4
|
packageName: "@atlaskit/people-teams-ui-public",
|
|
5
|
-
packageVersion: "
|
|
5
|
+
packageVersion: "3.7.8"
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -6,7 +6,7 @@ import React, { useMemo } from 'react';
|
|
|
6
6
|
import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
7
7
|
var defaultAnalyticsContextData = {
|
|
8
8
|
packageName: "@atlaskit/people-teams-ui-public",
|
|
9
|
-
packageVersion: "
|
|
9
|
+
packageVersion: "3.7.8"
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/people-teams-ui-public",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.9",
|
|
4
4
|
"description": "UI components for public packages",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,12 +38,10 @@
|
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
39
39
|
"@atlaskit/icon": "^32.0.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
42
|
-
"@atlaskit/teams-app-internal-analytics": "^1.25.0",
|
|
43
41
|
"@atlaskit/tokens": "^11.0.0",
|
|
44
42
|
"@atlaskit/tooltip": "^20.14.0",
|
|
45
43
|
"@babel/runtime": "^7.0.0",
|
|
46
|
-
"@compiled/react": "^0.
|
|
44
|
+
"@compiled/react": "^0.20.0",
|
|
47
45
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
48
46
|
"react-sweet-state": "^2.6.5"
|
|
49
47
|
},
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.PeopleTeamsAnalyticsSubcontextProvider = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
10
|
-
var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
|
|
11
|
-
var _index = require("../index");
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
15
|
-
*/
|
|
16
|
-
function _PeopleTeamsAnalyticsSubcontextProvider(_ref) {
|
|
17
|
-
var children = _ref.children,
|
|
18
|
-
topLevelAttributes = _ref.topLevelAttributes;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_index.PeopleTeamsAnalyticsProvider, {
|
|
20
|
-
analyticsContextData: topLevelAttributes
|
|
21
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* When this feature get is cleaned up, every instance of `PeopleTeamsAnalyticsSubcontextProvider`
|
|
27
|
-
* should be replaced with `TeamsAppAnalyticsContext` from `@atlaskit/teams-app-internal-analytics`
|
|
28
|
-
*/
|
|
29
|
-
function _TeamsAppAnalyticsContext(_ref2) {
|
|
30
|
-
var children = _ref2.children,
|
|
31
|
-
topLevelAttributes = _ref2.topLevelAttributes;
|
|
32
|
-
return (
|
|
33
|
-
/*#__PURE__*/
|
|
34
|
-
// @ts-ignore - source as a string is not a valid type for TeamsAppAnalyticsContext
|
|
35
|
-
_react.default.createElement(_teamsAppInternalAnalytics.TeamsAppAnalyticsContext, {
|
|
36
|
-
data: topLevelAttributes
|
|
37
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children))
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
var PeopleTeamsAnalyticsSubcontextProvider = exports.PeopleTeamsAnalyticsSubcontextProvider = (0, _platformFeatureFlagsReact.componentWithFG)('ptc-enable-people-teams-ui-analytics-refactor', _TeamsAppAnalyticsContext, _PeopleTeamsAnalyticsSubcontextProvider);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
3
|
-
import { TeamsAppAnalyticsContext } from '@atlaskit/teams-app-internal-analytics';
|
|
4
|
-
import { PeopleTeamsAnalyticsProvider } from '../index';
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
8
|
-
*/
|
|
9
|
-
function _PeopleTeamsAnalyticsSubcontextProvider({
|
|
10
|
-
children,
|
|
11
|
-
topLevelAttributes
|
|
12
|
-
}) {
|
|
13
|
-
return /*#__PURE__*/React.createElement(PeopleTeamsAnalyticsProvider, {
|
|
14
|
-
analyticsContextData: topLevelAttributes
|
|
15
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, children));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* When this feature get is cleaned up, every instance of `PeopleTeamsAnalyticsSubcontextProvider`
|
|
21
|
-
* should be replaced with `TeamsAppAnalyticsContext` from `@atlaskit/teams-app-internal-analytics`
|
|
22
|
-
*/
|
|
23
|
-
function _TeamsAppAnalyticsContext({
|
|
24
|
-
children,
|
|
25
|
-
topLevelAttributes
|
|
26
|
-
}) {
|
|
27
|
-
return (
|
|
28
|
-
/*#__PURE__*/
|
|
29
|
-
// @ts-ignore - source as a string is not a valid type for TeamsAppAnalyticsContext
|
|
30
|
-
React.createElement(TeamsAppAnalyticsContext, {
|
|
31
|
-
data: topLevelAttributes
|
|
32
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, children))
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
export const PeopleTeamsAnalyticsSubcontextProvider = componentWithFG('ptc-enable-people-teams-ui-analytics-refactor', _TeamsAppAnalyticsContext, _PeopleTeamsAnalyticsSubcontextProvider);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
3
|
-
import { TeamsAppAnalyticsContext } from '@atlaskit/teams-app-internal-analytics';
|
|
4
|
-
import { PeopleTeamsAnalyticsProvider } from '../index';
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
8
|
-
*/
|
|
9
|
-
function _PeopleTeamsAnalyticsSubcontextProvider(_ref) {
|
|
10
|
-
var children = _ref.children,
|
|
11
|
-
topLevelAttributes = _ref.topLevelAttributes;
|
|
12
|
-
return /*#__PURE__*/React.createElement(PeopleTeamsAnalyticsProvider, {
|
|
13
|
-
analyticsContextData: topLevelAttributes
|
|
14
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, children));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* When this feature get is cleaned up, every instance of `PeopleTeamsAnalyticsSubcontextProvider`
|
|
20
|
-
* should be replaced with `TeamsAppAnalyticsContext` from `@atlaskit/teams-app-internal-analytics`
|
|
21
|
-
*/
|
|
22
|
-
function _TeamsAppAnalyticsContext(_ref2) {
|
|
23
|
-
var children = _ref2.children,
|
|
24
|
-
topLevelAttributes = _ref2.topLevelAttributes;
|
|
25
|
-
return (
|
|
26
|
-
/*#__PURE__*/
|
|
27
|
-
// @ts-ignore - source as a string is not a valid type for TeamsAppAnalyticsContext
|
|
28
|
-
React.createElement(TeamsAppAnalyticsContext, {
|
|
29
|
-
data: topLevelAttributes
|
|
30
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, children))
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
export var PeopleTeamsAnalyticsSubcontextProvider = componentWithFG('ptc-enable-people-teams-ui-analytics-refactor', _TeamsAppAnalyticsContext, _PeopleTeamsAnalyticsSubcontextProvider);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type PeopleTeamsAnalyticsSubcontextState = {
|
|
3
|
-
topLevelAttributes?: {
|
|
4
|
-
source?: string;
|
|
5
|
-
attributes?: Record<string, any>;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare const PeopleTeamsAnalyticsSubcontextProvider: React.FC<PeopleTeamsAnalyticsSubcontextState & {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
} & {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type PeopleTeamsAnalyticsSubcontextState = {
|
|
3
|
-
topLevelAttributes?: {
|
|
4
|
-
source?: string;
|
|
5
|
-
attributes?: Record<string, any>;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare const PeopleTeamsAnalyticsSubcontextProvider: React.FC<PeopleTeamsAnalyticsSubcontextState & {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
} & {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|