@atlaskit/panel 1.2.3 → 2.1.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 +34 -0
- package/Panel/package.json +1 -8
- package/PanelStateless/package.json +1 -8
- package/package.json +9 -17
- package/dist/types-ts4.5/components/Panel/Panel.d.ts +0 -8
- package/dist/types-ts4.5/components/Panel/PanelStateless.d.ts +0 -15
- package/dist/types-ts4.5/components/Panel/index.d.ts +0 -2
- package/dist/types-ts4.5/components/Panel/styledPanel.d.ts +0 -11
- package/dist/types-ts4.5/entry-points/Panel.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/PanelStateless.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @atlaskit/panel
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fa57ab7543ad8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fa57ab7543ad8) -
|
|
8
|
+
Update i18n NPM package versions for discovery,navigation,web-platform,bitbucket,policy-platform
|
|
9
|
+
(Group 14)
|
|
10
|
+
|
|
11
|
+
## 2.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
16
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
17
|
+
|
|
18
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
19
|
+
|
|
20
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
21
|
+
|
|
22
|
+
```diff
|
|
23
|
+
- "typesVersions": {
|
|
24
|
+
- ">=4.5 <4.9": {
|
|
25
|
+
- "*": [
|
|
26
|
+
- "dist/types-ts4.5/*",
|
|
27
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
28
|
+
- ]
|
|
29
|
+
- }
|
|
30
|
+
- },
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies
|
|
36
|
+
|
|
3
37
|
## 1.2.3
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/Panel/package.json
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "2.1.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",
|
|
@@ -28,14 +20,14 @@
|
|
|
28
20
|
}
|
|
29
21
|
},
|
|
30
22
|
"dependencies": {
|
|
31
|
-
"@atlaskit/afm-i18n-platform-bitbucket-panel": "2.
|
|
32
|
-
"@atlaskit/button": "^
|
|
33
|
-
"@atlaskit/icon": "^
|
|
34
|
-
"@atlaskit/link": "^
|
|
35
|
-
"@atlaskit/platform-feature-flags": "^
|
|
36
|
-
"@atlaskit/primitives": "^
|
|
37
|
-
"@atlaskit/theme": "^
|
|
38
|
-
"@atlaskit/tokens": "^
|
|
23
|
+
"@atlaskit/afm-i18n-platform-bitbucket-panel": "2.160.0",
|
|
24
|
+
"@atlaskit/button": "^24.1.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,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 +0,0 @@
|
|
|
1
|
-
export { default, PanelStateless } from './components/Panel';
|