@atlaskit/people-teams-ui-public 3.1.4 → 3.1.6
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 +12 -0
- package/dist/cjs/common/utils/analytics/hooks.js +1 -1
- package/dist/es2019/common/utils/analytics/hooks.js +1 -1
- package/dist/esm/common/utils/analytics/hooks.js +1 -1
- package/dist/types/common/utils/analytics/analytics-subcontext/index.d.ts +1 -0
- package/dist/types/common/utils/analytics/analytics-subcontext/store.d.ts +2 -1
- package/dist/types-ts4.5/common/utils/analytics/analytics-subcontext/index.d.ts +1 -0
- package/dist/types-ts4.5/common/utils/analytics/analytics-subcontext/store.d.ts +2 -1
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -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: "3.1.
|
|
18
|
+
packageVersion: "3.1.5"
|
|
19
19
|
};
|
|
20
20
|
function PeopleTeamsAnalyticsProvider(_ref) {
|
|
21
21
|
var analyticsContextData = _ref.analyticsContextData,
|
|
@@ -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: "3.1.
|
|
5
|
+
packageVersion: "3.1.5"
|
|
6
6
|
};
|
|
7
7
|
export function PeopleTeamsAnalyticsProvider({
|
|
8
8
|
analyticsContextData,
|
|
@@ -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: "3.1.
|
|
9
|
+
packageVersion: "3.1.5"
|
|
10
10
|
};
|
|
11
11
|
export function PeopleTeamsAnalyticsProvider(_ref) {
|
|
12
12
|
var analyticsContextData = _ref.analyticsContextData,
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
type PeopleTeamsAnalyticsSubcontextState = {
|
|
3
3
|
topLevelAttributes?: {
|
|
4
4
|
source?: string;
|
|
5
|
+
attributes?: Record<string, any>;
|
|
5
6
|
};
|
|
6
7
|
};
|
|
7
8
|
export declare function PeopleTeamsAnalyticsSubcontextProvider({ children, topLevelAttributes, }: PeopleTeamsAnalyticsSubcontextState & {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type StoreActionApi } from 'react-sweet-state';
|
|
2
2
|
type InjectedEventAttributes = {
|
|
3
3
|
teamId?: string;
|
|
4
|
+
consumer?: string;
|
|
4
5
|
};
|
|
5
6
|
type PeopleTeamsAnalyticsSubcontextState = {
|
|
6
7
|
eventAttributes?: InjectedEventAttributes;
|
|
@@ -12,5 +13,5 @@ export declare const usePeopleTeamsAnalyticsSubcontext: import("react-sweet-stat
|
|
|
12
13
|
* Inject an attribute into all events using `usePeopleTeamAnalyticsEvents`
|
|
13
14
|
* It sets the attribute when the hook is called and clears it when the component is unmounted
|
|
14
15
|
*/
|
|
15
|
-
export declare const useInjectedEventAttribute: <K extends
|
|
16
|
+
export declare const useInjectedEventAttribute: <K extends keyof InjectedEventAttributes>(key: K, value: InjectedEventAttributes[K]) => void;
|
|
16
17
|
export {};
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
type PeopleTeamsAnalyticsSubcontextState = {
|
|
3
3
|
topLevelAttributes?: {
|
|
4
4
|
source?: string;
|
|
5
|
+
attributes?: Record<string, any>;
|
|
5
6
|
};
|
|
6
7
|
};
|
|
7
8
|
export declare function PeopleTeamsAnalyticsSubcontextProvider({ children, topLevelAttributes, }: PeopleTeamsAnalyticsSubcontextState & {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type StoreActionApi } from 'react-sweet-state';
|
|
2
2
|
type InjectedEventAttributes = {
|
|
3
3
|
teamId?: string;
|
|
4
|
+
consumer?: string;
|
|
4
5
|
};
|
|
5
6
|
type PeopleTeamsAnalyticsSubcontextState = {
|
|
6
7
|
eventAttributes?: InjectedEventAttributes;
|
|
@@ -12,5 +13,5 @@ export declare const usePeopleTeamsAnalyticsSubcontext: import("react-sweet-stat
|
|
|
12
13
|
* Inject an attribute into all events using `usePeopleTeamAnalyticsEvents`
|
|
13
14
|
* It sets the attribute when the hook is called and clears it when the component is unmounted
|
|
14
15
|
*/
|
|
15
|
-
export declare const useInjectedEventAttribute: <K extends
|
|
16
|
+
export declare const useInjectedEventAttribute: <K extends keyof InjectedEventAttributes>(key: K, value: InjectedEventAttributes[K]) => void;
|
|
16
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/people-teams-ui-public",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"description": "UI components for public packages",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"website": {
|
|
13
13
|
"name": "PeopleTeamsUiPublic",
|
|
14
14
|
"category": "Components"
|
|
15
|
-
}
|
|
16
|
-
"runReact18": true
|
|
15
|
+
}
|
|
17
16
|
},
|
|
18
17
|
"repository": "https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo",
|
|
19
18
|
"main": "dist/cjs/index.js",
|
|
@@ -36,13 +35,16 @@
|
|
|
36
35
|
"./verified-team-icon": "./src/ui/verified-team-icon/index.ts",
|
|
37
36
|
"./analytics": "./src/common/utils/analytics/index.ts"
|
|
38
37
|
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"test:coverage": "(cd ../../.. && yarn test 'packages/people-and-teams/people-teams-ui-public/src' --coverage --coverageProvider=v8 --collectCoverageFrom='[\"packages/people-and-teams/people-teams-ui-public/src/**\", \"!packages/people-and-teams/people-teams-ui-public/src/**/**/types.ts\", \"!packages/people-and-teams/people-teams-ui-public/src/ui/**/styled.tsx\"]')"
|
|
40
|
+
},
|
|
39
41
|
"dependencies": {
|
|
40
42
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
41
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/icon": "^27.9.0",
|
|
42
44
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
43
|
-
"@atlaskit/primitives": "^14.
|
|
44
|
-
"@atlaskit/tokens": "^
|
|
45
|
-
"@atlaskit/tooltip": "^20.
|
|
45
|
+
"@atlaskit/primitives": "^14.11.0",
|
|
46
|
+
"@atlaskit/tokens": "^6.0.0",
|
|
47
|
+
"@atlaskit/tooltip": "^20.4.0",
|
|
46
48
|
"@babel/runtime": "^7.0.0",
|
|
47
49
|
"@compiled/react": "^0.18.3",
|
|
48
50
|
"react-intl-next": "npm:react-intl@^5.18.1",
|