@atlaskit/panel 1.2.2 → 2.0.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/Panel/package.json +1 -8
  3. package/PanelStateless/package.json +1 -8
  4. package/package.json +8 -16
  5. package/dist/types-ts4.5/components/Panel/Panel.d.ts +0 -8
  6. package/dist/types-ts4.5/components/Panel/PanelStateless.d.ts +0 -15
  7. package/dist/types-ts4.5/components/Panel/index.d.ts +0 -2
  8. package/dist/types-ts4.5/components/Panel/styledPanel.d.ts +0 -11
  9. package/dist/types-ts4.5/entry-points/Panel.d.ts +0 -1
  10. package/dist/types-ts4.5/entry-points/PanelStateless.d.ts +0 -1
  11. package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
  12. package/dist/types-ts4.5/i18n/da.d.ts +0 -8
  13. package/dist/types-ts4.5/i18n/de.d.ts +0 -8
  14. package/dist/types-ts4.5/i18n/en.d.ts +0 -8
  15. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
  16. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
  17. package/dist/types-ts4.5/i18n/es.d.ts +0 -8
  18. package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
  19. package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
  20. package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
  21. package/dist/types-ts4.5/i18n/it.d.ts +0 -8
  22. package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
  23. package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
  24. package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
  25. package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
  26. package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
  27. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
  28. package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
  29. package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
  30. package/dist/types-ts4.5/i18n/th.d.ts +0 -8
  31. package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
  32. package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
  33. package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
  34. package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
  35. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
  36. package/dist/types-ts4.5/index.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @atlaskit/panel
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 1.2.3
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 1.2.2
4
36
 
5
37
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/Panel.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/Panel.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/Panel.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/PanelStateless.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/PanelStateless.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/PanelStateless.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "1.2.2",
3
+ "version": "2.0.0",
4
4
  "description": "A React component rendering a collapsible panel",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,14 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "atlaskit:src": "src/index.ts",
24
16
  "atlassian": {
25
17
  "team": "Bitbucket: CoreX",
@@ -29,13 +21,13 @@
29
21
  },
30
22
  "dependencies": {
31
23
  "@atlaskit/afm-i18n-platform-bitbucket-panel": "2.95.0",
32
- "@atlaskit/button": "^23.11.0",
33
- "@atlaskit/icon": "^35.0.0",
34
- "@atlaskit/link": "^3.4.0",
35
- "@atlaskit/platform-feature-flags": "^1.1.0",
36
- "@atlaskit/primitives": "^19.0.0",
37
- "@atlaskit/theme": "^24.0.0",
38
- "@atlaskit/tokens": "^13.0.0",
24
+ "@atlaskit/button": "^24.0.0",
25
+ "@atlaskit/icon": "^36.0.0",
26
+ "@atlaskit/link": "^4.0.0",
27
+ "@atlaskit/platform-feature-flags": "^2.0.0",
28
+ "@atlaskit/primitives": "^20.0.0",
29
+ "@atlaskit/theme": "^26.0.0",
30
+ "@atlaskit/tokens": "^14.0.0",
39
31
  "@babel/runtime": "^7.0.0",
40
32
  "react-animate-height": "^2.1.0",
41
33
  "react-focus-within": "^2.0.1"
@@ -1,8 +0,0 @@
1
- import { type FC } from 'react';
2
- import { type BasePanelProps } from './PanelStateless';
3
- type Props = BasePanelProps & {
4
- /** Defines whether the panel is expanded by default. */
5
- isDefaultExpanded?: boolean;
6
- };
7
- declare const PanelState: FC<Props>;
8
- export default PanelState;
@@ -1,15 +0,0 @@
1
- import { type FC, type ReactNode } from 'react';
2
- export type BasePanelProps = {
3
- /** Content to be shown inside the panel. */
4
- children?: ReactNode;
5
- /** Header to render on the panel. Clicking the header expands and collapses the panel */
6
- header?: ReactNode;
7
- };
8
- type PanelState = BasePanelProps & {
9
- /** Defines whether the panel is expanded by default. */
10
- isExpanded: boolean;
11
- /** This callback is called when panel is expanded/collapsed */
12
- onChange: (isExpanded: boolean) => void;
13
- };
14
- declare const PanelStateless: FC<PanelState>;
15
- export default PanelStateless;
@@ -1,2 +0,0 @@
1
- export { default } from './Panel';
2
- export { default as PanelStateless } from './PanelStateless';
@@ -1,11 +0,0 @@
1
- import type { ClassAttributes, DetailedHTMLProps, FC, HTMLAttributes, HTMLProps } from 'react';
2
- import { type StyledComponentClass } from 'styled-components';
3
- export declare const PanelWrapper: StyledComponentClass<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
- export declare const ButtonWrapper: StyledComponentClass<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
5
- isHidden: boolean;
6
- }, any, ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
7
- isHidden: boolean;
8
- }>;
9
- export declare const PanelHeader: FC<HTMLProps<HTMLDivElement> & {
10
- isFocused?: boolean;
11
- }>;
@@ -1 +0,0 @@
1
- export { default } from '../components/Panel/Panel';
@@ -1 +0,0 @@
1
- export { default as PanelStateless } from '../components/Panel/PanelStateless';
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/cs';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/da';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/de';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/en';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/en_GB';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/en_ZZ';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/es';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/fi';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/fr';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/hu';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/it';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/ja';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/ko';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/nb';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/nl';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/pl';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/pt_BR';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/ru';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/sv';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/th';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/tr';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/uk';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/vi';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/zh';
8
- export default translations;
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- import translations from '@atlaskit/afm-i18n-platform-bitbucket-panel/i18n/zh_TW';
8
- export default translations;
@@ -1 +0,0 @@
1
- export { default, PanelStateless } from './components/Panel';