@atlaskit/drawer 7.4.14 → 7.5.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 +16 -0
- package/constants/package.json +2 -2
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/blanket.d.ts +1 -1
- package/dist/types/components/types.d.ts +10 -10
- package/dist/types/components/utils.d.ts +2 -2
- package/package.json +27 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/drawer
|
|
2
2
|
|
|
3
|
+
## 7.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 7.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 7.4.14
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/constants/package.json
CHANGED
|
@@ -27,7 +27,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
27
27
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
28
28
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
|
|
29
29
|
var packageName = "@atlaskit/drawer";
|
|
30
|
-
var packageVersion = "7.
|
|
30
|
+
var packageVersion = "7.5.1";
|
|
31
31
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
32
32
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
33
33
|
return createAndFireEventOnAtlaskit({
|
package/dist/cjs/version.json
CHANGED
|
@@ -8,7 +8,7 @@ import { defaultFocusLockSettings } from '../constants';
|
|
|
8
8
|
import Blanket from './blanket';
|
|
9
9
|
import DrawerPrimitive from './primitives';
|
|
10
10
|
const packageName = "@atlaskit/drawer";
|
|
11
|
-
const packageVersion = "7.
|
|
11
|
+
const packageVersion = "7.5.1";
|
|
12
12
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
13
13
|
const createAndFireOnClick = (createAnalyticsEvent, trigger) => createAndFireEventOnAtlaskit({
|
|
14
14
|
action: 'dismissed',
|
package/dist/es2019/version.json
CHANGED
|
@@ -18,7 +18,7 @@ import { defaultFocusLockSettings } from '../constants';
|
|
|
18
18
|
import Blanket from './blanket';
|
|
19
19
|
import DrawerPrimitive from './primitives';
|
|
20
20
|
var packageName = "@atlaskit/drawer";
|
|
21
|
-
var packageVersion = "7.
|
|
21
|
+
var packageVersion = "7.5.1";
|
|
22
22
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
23
23
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
24
24
|
return createAndFireEventOnAtlaskit({
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentType, ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { CSSObject } from '@emotion/react';
|
|
3
3
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
export
|
|
4
|
+
export type Widths = {
|
|
5
5
|
extended: {
|
|
6
6
|
width: string;
|
|
7
7
|
};
|
|
@@ -18,7 +18,7 @@ export declare type Widths = {
|
|
|
18
18
|
width: number;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type DrawerWidth = 'extended' | 'full' | 'medium' | 'narrow' | 'wide';
|
|
22
22
|
export interface BaseProps {
|
|
23
23
|
/**
|
|
24
24
|
* A unique hook to be used for testing.
|
|
@@ -54,7 +54,7 @@ export interface BaseProps {
|
|
|
54
54
|
*/
|
|
55
55
|
overrides?: OverridesType;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
57
|
+
export type DefaultsType = {
|
|
58
58
|
Sidebar: {
|
|
59
59
|
component: React.ComponentType<SidebarProps>;
|
|
60
60
|
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
@@ -64,7 +64,7 @@ export declare type DefaultsType = {
|
|
|
64
64
|
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type OverridesType = {
|
|
68
68
|
Sidebar?: {
|
|
69
69
|
component?: React.ComponentType<SidebarProps>;
|
|
70
70
|
/**
|
|
@@ -80,27 +80,27 @@ export declare type OverridesType = {
|
|
|
80
80
|
cssFn?: (defaultStyles: CSSObject) => CSSObject;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
|
-
export
|
|
84
|
-
export
|
|
83
|
+
export type DrawerPrimitiveDefaults = Pick<DefaultsType, 'Sidebar' | 'Content'>;
|
|
84
|
+
export type DrawerPrimitiveOverrides = Pick<OverridesType, 'Sidebar' | 'Content'>;
|
|
85
85
|
export interface SidebarProps extends React.HTMLProps<HTMLDivElement> {
|
|
86
86
|
/**
|
|
87
87
|
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2673 for more information.
|
|
88
88
|
*/
|
|
89
89
|
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
90
90
|
}
|
|
91
|
-
export
|
|
91
|
+
export type SidebarCSSProps = Omit<SidebarProps, 'cssFn'>;
|
|
92
92
|
export interface ContentProps extends React.HTMLProps<HTMLDivElement> {
|
|
93
93
|
/**
|
|
94
94
|
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-2673 for more information.
|
|
95
95
|
*/
|
|
96
96
|
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
97
97
|
}
|
|
98
|
-
export
|
|
98
|
+
export type ContentCSSProps = Omit<ContentProps, 'cssFn'>;
|
|
99
99
|
export interface DrawerPrimitiveProps extends BaseProps, FocusLockSettings {
|
|
100
100
|
in: boolean;
|
|
101
101
|
onClose: (event: SyntheticEvent<HTMLElement>) => void;
|
|
102
102
|
}
|
|
103
|
-
export
|
|
103
|
+
export type DrawerProps = BaseProps & FocusLockSettings & WithAnalyticsEventsProps & {
|
|
104
104
|
/**
|
|
105
105
|
* Callback function called while the drawer is displayed and `keydown` event is triggered.
|
|
106
106
|
*/
|
|
@@ -144,4 +144,4 @@ export interface FocusLockProps extends FocusLockSettings {
|
|
|
144
144
|
/**
|
|
145
145
|
* Type of keyboard event that triggers which key will should close the drawer.
|
|
146
146
|
*/
|
|
147
|
-
export
|
|
147
|
+
export type CloseTrigger = 'backButton' | 'blanket' | 'escKey';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
type OverridesFunc<X extends Record<string, any>, Y extends Record<string, any>> = (key: string) => Record<string, any>;
|
|
2
|
+
export type ExtenderType = <D extends Record<string, any>, O extends Record<string, any>>(d: D, o?: O) => OverridesFunc<D, O>;
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated Please avoid using this function as we intend to remote it in a future release. See DSP-2673 for more information.
|
|
5
5
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/drawer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.1",
|
|
4
4
|
"description": "A drawer is a panel that slides in from the left side of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
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
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"homepage": "https://atlassian.design/components/drawer",
|
|
@@ -25,14 +33,14 @@
|
|
|
25
33
|
}
|
|
26
34
|
},
|
|
27
35
|
"dependencies": {
|
|
28
|
-
"@atlaskit/analytics-next": "^9.
|
|
29
|
-
"@atlaskit/blanket": "^12.
|
|
30
|
-
"@atlaskit/ds-explorations": "^2.
|
|
31
|
-
"@atlaskit/icon": "^21.
|
|
32
|
-
"@atlaskit/motion": "^1.
|
|
33
|
-
"@atlaskit/portal": "^4.
|
|
34
|
-
"@atlaskit/theme": "^12.
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
36
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
37
|
+
"@atlaskit/blanket": "^12.4.0",
|
|
38
|
+
"@atlaskit/ds-explorations": "^2.1.0",
|
|
39
|
+
"@atlaskit/icon": "^21.12.0",
|
|
40
|
+
"@atlaskit/motion": "^1.4.0",
|
|
41
|
+
"@atlaskit/portal": "^4.3.0",
|
|
42
|
+
"@atlaskit/theme": "^12.5.0",
|
|
43
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
36
44
|
"@babel/runtime": "^7.0.0",
|
|
37
45
|
"@emotion/react": "^11.7.1",
|
|
38
46
|
"bind-event-listener": "^2.1.1",
|
|
@@ -46,17 +54,17 @@
|
|
|
46
54
|
"react": "^16.8.0"
|
|
47
55
|
},
|
|
48
56
|
"devDependencies": {
|
|
49
|
-
"@atlaskit/button": "^16.
|
|
50
|
-
"@atlaskit/checkbox": "^12.
|
|
51
|
-
"@atlaskit/code": "^14.
|
|
57
|
+
"@atlaskit/button": "^16.7.0",
|
|
58
|
+
"@atlaskit/checkbox": "^12.6.0",
|
|
59
|
+
"@atlaskit/code": "^14.6.0",
|
|
52
60
|
"@atlaskit/docs": "*",
|
|
53
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
54
|
-
"@atlaskit/ds-lib": "^2.
|
|
55
|
-
"@atlaskit/menu": "^1.
|
|
56
|
-
"@atlaskit/modal-dialog": "^12.
|
|
57
|
-
"@atlaskit/section-message": "^6.
|
|
61
|
+
"@atlaskit/dropdown-menu": "^11.8.0",
|
|
62
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
63
|
+
"@atlaskit/menu": "^1.6.0",
|
|
64
|
+
"@atlaskit/modal-dialog": "^12.5.0",
|
|
65
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
58
66
|
"@atlaskit/ssr": "*",
|
|
59
|
-
"@atlaskit/textarea": "^4.
|
|
67
|
+
"@atlaskit/textarea": "^4.6.0",
|
|
60
68
|
"@atlaskit/visual-regression": "*",
|
|
61
69
|
"@atlaskit/webdriver-runner": "*",
|
|
62
70
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -65,7 +73,7 @@
|
|
|
65
73
|
"lodash": "^4.17.21",
|
|
66
74
|
"react-dom": "^16.8.0",
|
|
67
75
|
"react-lorem-component": "^0.13.0",
|
|
68
|
-
"typescript": "4.
|
|
76
|
+
"typescript": "~4.9.5",
|
|
69
77
|
"wait-for-expect": "^1.2.0"
|
|
70
78
|
},
|
|
71
79
|
"techstack": {
|