@atlaskit/people-teams-ui-public 4.1.0 → 5.0.1

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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # @atlaskit/people-teams-ui-public
2
2
 
3
+ ## 5.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
8
+ Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
9
+ gating.
10
+ - Updated dependencies
11
+
12
+ ## 5.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
17
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
18
+
19
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
20
+
21
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
22
+
23
+ ```diff
24
+ - "typesVersions": {
25
+ - ">=4.5 <4.9": {
26
+ - "*": [
27
+ - "dist/types-ts4.5/*",
28
+ - "dist/types-ts4.5/index.d.ts"
29
+ - ]
30
+ - }
31
+ - },
32
+ ```
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies
37
+
3
38
  ## 4.1.0
4
39
 
5
40
  ### Minor Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/common/utils/analytics/hooks.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/common/utils/analytics/hooks.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/common/utils/analytics/hooks.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/common/utils/analytics/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/common/utils/analytics/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/common/utils/analytics/index.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/common/utils/analytics/analytics-subcontext/store.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/common/utils/analytics/analytics-subcontext/store.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/common/utils/analytics/analytics-subcontext/store.d.ts"
17
10
  }
@@ -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: "0.0.0-development"
18
+ packageVersion: "5.0.0"
19
19
  };
20
20
 
21
21
  /**
@@ -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: "0.0.0-development"
5
+ packageVersion: "5.0.0"
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: "0.0.0-development"
9
+ packageVersion: "5.0.0"
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": "4.1.0",
3
+ "version": "5.0.1",
4
4
  "description": "UI components for public packages",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,14 +26,6 @@
26
26
  "module": "dist/esm/index.js",
27
27
  "module:es2019": "dist/es2019/index.js",
28
28
  "types": "dist/types/index.d.ts",
29
- "typesVersions": {
30
- ">=4.5 <5.4": {
31
- "*": [
32
- "dist/types-ts4.5/*",
33
- "dist/types-ts4.5/index.d.ts"
34
- ]
35
- }
36
- },
37
29
  "sideEffects": [
38
30
  "*.compiled.css"
39
31
  ],
@@ -42,11 +34,12 @@
42
34
  "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\"]')"
43
35
  },
44
36
  "dependencies": {
45
- "@atlaskit/analytics-namespaced-context": "^7.3.0",
46
- "@atlaskit/icon": "^35.0.0",
47
- "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tokens": "^13.0.0",
49
- "@atlaskit/tooltip": "^22.2.0",
37
+ "@atlaskit/analytics-namespaced-context": "^8.0.0",
38
+ "@atlaskit/icon": "^36.0.0",
39
+ "@atlaskit/platform-feature-flags": "^2.0.0",
40
+ "@atlaskit/tokens": "^15.0.0",
41
+ "@atlaskit/tooltip": "^23.0.0",
42
+ "@atlassian/react-compiler-gating": "^0.2.0",
50
43
  "@babel/runtime": "^7.0.0",
51
44
  "@compiled/react": "^0.20.0",
52
45
  "react-sweet-state": "^2.6.5"
@@ -60,11 +53,11 @@
60
53
  "@af/visual-regression": "workspace:^",
61
54
  "@atlaskit/ssr": "workspace:^",
62
55
  "@atlassian/feature-flags-test-utils": "^1.1.0",
63
- "@atlassian/react-compiler-gating": "workspace:^",
64
56
  "@testing-library/react": "^16.3.0",
65
57
  "@testing-library/user-event": "^14.4.3",
58
+ "react": "^18.2.0",
66
59
  "react-dom": "^18.2.0",
67
- "react-intl": "^6.6.2",
60
+ "react-intl": "^7.0.0",
68
61
  "wait-for-expect": "^1.2.0"
69
62
  },
70
63
  "techstack": {
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/ui/verified-team-icon/main.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/ui/verified-team-icon/main.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/ui/verified-team-icon/main.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/ui/verified-team-icon/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/ui/verified-team-icon/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/ui/verified-team-icon/index.d.ts"
17
10
  }
@@ -1,25 +0,0 @@
1
- import { type BoundActions, type HookFunction, type StoreActionApi } from 'react-sweet-state';
2
- type InjectedEventAttributes = {
3
- teamId?: string;
4
- consumer?: string;
5
- };
6
- type InjectedEventAttributeKey = keyof InjectedEventAttributes;
7
- type PeopleTeamsAnalyticsSubcontextState = {
8
- eventAttributes?: InjectedEventAttributes;
9
- };
10
- /**
11
- * @private
12
- * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
13
- */
14
- export declare const usePeopleTeamsAnalyticsSubcontext: HookFunction<PeopleTeamsAnalyticsSubcontextState, BoundActions<PeopleTeamsAnalyticsSubcontextState, {
15
- readonly setEventAttributes: (eventAttributes?: Partial<InjectedEventAttributes>) => ({ setState, getState }: StoreActionApi<PeopleTeamsAnalyticsSubcontextState>) => void;
16
- }>, void>;
17
- /**
18
- * @private
19
- * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
20
- *
21
- * Inject an attribute into all events using `usePeopleTeamAnalyticsEvents`
22
- * It sets the attribute when the hook is called and clears it when the component is unmounted
23
- */
24
- export declare const useInjectedEventAttribute: <K extends InjectedEventAttributeKey>(key: K, value: InjectedEventAttributes[K]) => void;
25
- export {};
@@ -1,9 +0,0 @@
1
- import React, { type ReactNode } from 'react';
2
- /**
3
- * @private
4
- * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
5
- */
6
- export declare function PeopleTeamsAnalyticsProvider({ analyticsContextData, children, }: {
7
- analyticsContextData?: object;
8
- children: ReactNode;
9
- }): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- export { PeopleTeamsAnalyticsProvider } from './hooks';
2
- export { useInjectedEventAttribute, usePeopleTeamsAnalyticsSubcontext, } from './analytics-subcontext/store';
@@ -1 +0,0 @@
1
- export { VerifiedTeamIcon } from './ui/verified-team-icon';
@@ -1 +0,0 @@
1
- export { VerifiedTeamIcon } from './main';
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import type { IconSpacing } from '@atlaskit/icon/types';
3
- interface VerifiedTeamIconProps {
4
- /**
5
- * The accessible label for the icon.
6
- */
7
- label?: string;
8
- /**
9
- * Whether to show a default tooltip when hovering over the icon.
10
- */
11
- showTooltip?: boolean;
12
- /**
13
- * Custom content for the tooltip. If not provided, it will fall back to check the showTooltip prop.
14
- * If showTooltip is true, the default message will be used. If both are not provided, no tooltip will be shown.
15
- */
16
- customTooltipContent?: string;
17
- /**
18
- * The size of the icon.
19
- */
20
- size?: 'small' | 'medium';
21
- /**
22
- * The spacing of the icon.
23
- */
24
- spacing?: IconSpacing;
25
- }
26
- export declare const VerifiedTeamIcon: ({ label, showTooltip, customTooltipContent, size, spacing, }: VerifiedTeamIconProps) => React.JSX.Element;
27
- export {};
@@ -1,7 +0,0 @@
1
- export declare const messages: {
2
- verifiedIconDefaultTooltip: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- };