@atlaskit/drawer 7.6.5 → 7.6.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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/drawer
|
|
2
2
|
|
|
3
|
+
## 7.6.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#69022](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69022) [`395c74147990`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/395c74147990) - Migrate packages to use declarative entry points
|
|
8
|
+
|
|
3
9
|
## 7.6.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
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.6.
|
|
30
|
+
var packageVersion = "7.6.6";
|
|
31
31
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
32
32
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
33
33
|
return createAndFireEventOnAtlaskit({
|
|
@@ -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.6.
|
|
11
|
+
const packageVersion = "7.6.6";
|
|
12
12
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
13
13
|
const createAndFireOnClick = (createAnalyticsEvent, trigger) => createAndFireEventOnAtlaskit({
|
|
14
14
|
action: 'dismissed',
|
|
@@ -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.6.
|
|
21
|
+
var packageVersion = "7.6.6";
|
|
22
22
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
23
23
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
24
24
|
return createAndFireEventOnAtlaskit({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/drawer",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.6",
|
|
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/"
|
|
@@ -22,10 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"atlaskit:src": "src/index.tsx",
|
|
25
|
+
"af:exports": {
|
|
26
|
+
".": "./src/index.tsx",
|
|
27
|
+
"./constants": "./src/constants.tsx"
|
|
28
|
+
},
|
|
25
29
|
"homepage": "https://atlassian.design/components/drawer",
|
|
26
30
|
"atlassian": {
|
|
27
31
|
"team": "Design System Team",
|
|
28
|
-
"deprecatedAutoEntryPoints": true,
|
|
29
32
|
"releaseModel": "continuous",
|
|
30
33
|
"productPushConsumption": [
|
|
31
34
|
"jira"
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
"@atlaskit/motion": "^1.5.0",
|
|
43
46
|
"@atlaskit/portal": "^4.4.0",
|
|
44
47
|
"@atlaskit/theme": "^12.6.0",
|
|
45
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/tokens": "^1.34.0",
|
|
46
49
|
"@babel/runtime": "^7.0.0",
|
|
47
50
|
"@emotion/react": "^11.7.1",
|
|
48
51
|
"bind-event-listener": "^2.1.1",
|
|
@@ -62,7 +65,6 @@
|
|
|
62
65
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
63
66
|
"@atlaskit/ssr": "*",
|
|
64
67
|
"@atlaskit/visual-regression": "*",
|
|
65
|
-
"@atlaskit/webdriver-runner": "*",
|
|
66
68
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
67
69
|
"@testing-library/react": "^12.1.5",
|
|
68
70
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -96,4 +98,4 @@
|
|
|
96
98
|
}
|
|
97
99
|
},
|
|
98
100
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
99
|
-
}
|
|
101
|
+
}
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/drawer"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { ComponentType } from 'react';
|
|
8
|
-
import { CSSObject } from '@emotion/react';
|
|
9
|
-
import { default as React_2 } from 'react';
|
|
10
|
-
import { ReactElement } from 'react';
|
|
11
|
-
import { ReactNode } from 'react';
|
|
12
|
-
import { SyntheticEvent } from 'react';
|
|
13
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
14
|
-
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
15
|
-
|
|
16
|
-
// @public (undocumented)
|
|
17
|
-
export interface BaseProps {
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
icon?: ComponentType<any>;
|
|
20
|
-
onCloseComplete?: (node: HTMLElement | null) => void;
|
|
21
|
-
onOpenComplete?: (node: HTMLElement | null) => void;
|
|
22
|
-
overrides?: OverridesType;
|
|
23
|
-
// @deprecated (undocumented)
|
|
24
|
-
shouldUnmountOnExit?: boolean;
|
|
25
|
-
testId?: string;
|
|
26
|
-
width?: DrawerWidth;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// @public
|
|
30
|
-
export type CloseTrigger = 'backButton' | 'blanket' | 'escKey';
|
|
31
|
-
|
|
32
|
-
// @public (undocumented)
|
|
33
|
-
export type ContentCSSProps = Omit<ContentProps, 'cssFn'>;
|
|
34
|
-
|
|
35
|
-
// @public (undocumented)
|
|
36
|
-
export interface ContentProps extends React.HTMLProps<HTMLDivElement> {
|
|
37
|
-
// @deprecated (undocumented)
|
|
38
|
-
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// @public (undocumented)
|
|
42
|
-
const _default: React_2.ForwardRefExoticComponent<Pick<Pick<Omit<DrawerProps, keyof WithAnalyticsEventsProps>, "children" | "icon" | "isOpen" | "onClose" | "onCloseComplete" | "onKeyDown" | "onOpenComplete" | "overrides" | "shouldUnmountOnExit" | "testId" | "zIndex" | keyof DrawerLabel> & Partial<Pick<Omit<DrawerProps, keyof WithAnalyticsEventsProps>, "width" | keyof FocusLockSettings>> & Partial<Pick<{
|
|
43
|
-
autoFocusFirstElem?: (() => HTMLElement | null) | boolean | undefined;
|
|
44
|
-
isFocusLockEnabled?: boolean | undefined;
|
|
45
|
-
shouldReturnFocus?: boolean | undefined;
|
|
46
|
-
width: DrawerWidth;
|
|
47
|
-
}, never>> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "children" | "icon" | "isOpen" | "key" | "onClose" | "onCloseComplete" | "onKeyDown" | "onOpenComplete" | "overrides" | "shouldUnmountOnExit" | "testId" | "width" | "zIndex" | keyof DrawerLabel| keyof FocusLockSettings > & React_2.RefAttributes<any>>;
|
|
48
|
-
export default _default;
|
|
49
|
-
|
|
50
|
-
// @public (undocumented)
|
|
51
|
-
export type DefaultsType = {
|
|
52
|
-
Sidebar: {
|
|
53
|
-
component: React.ComponentType<SidebarProps>;
|
|
54
|
-
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
55
|
-
};
|
|
56
|
-
Content: {
|
|
57
|
-
component: React.ComponentType<ContentProps>;
|
|
58
|
-
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
// @public (undocumented)
|
|
63
|
-
interface DrawerLabel {
|
|
64
|
-
label?: string;
|
|
65
|
-
titleId?: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// @public (undocumented)
|
|
69
|
-
export type DrawerPrimitiveDefaults = Pick<DefaultsType, 'Content' | 'Sidebar'>;
|
|
70
|
-
|
|
71
|
-
// @public (undocumented)
|
|
72
|
-
export type DrawerPrimitiveOverrides = Pick<OverridesType, 'Content' | 'Sidebar'>;
|
|
73
|
-
|
|
74
|
-
// @public (undocumented)
|
|
75
|
-
export interface DrawerPrimitiveProps extends BaseProps, FocusLockSettings, DrawerLabel {
|
|
76
|
-
// (undocumented)
|
|
77
|
-
in: boolean;
|
|
78
|
-
// (undocumented)
|
|
79
|
-
onClose: (event: SyntheticEvent<HTMLElement>) => void;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
export type DrawerProps = BaseProps & FocusLockSettings & WithAnalyticsEventsProps & DrawerLabel & {
|
|
84
|
-
onKeyDown?: (event: SyntheticEvent) => void;
|
|
85
|
-
onClose?: (event: SyntheticEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
86
|
-
isOpen: boolean;
|
|
87
|
-
zIndex?: number;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// @public (undocumented)
|
|
91
|
-
export type DrawerWidth = 'extended' | 'full' | 'medium' | 'narrow' | 'wide';
|
|
92
|
-
|
|
93
|
-
// @public (undocumented)
|
|
94
|
-
export interface FocusLockProps extends FocusLockSettings {
|
|
95
|
-
children?: ReactElement;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// @public (undocumented)
|
|
99
|
-
interface FocusLockSettings {
|
|
100
|
-
autoFocusFirstElem?: (() => HTMLElement | null) | boolean;
|
|
101
|
-
isFocusLockEnabled?: boolean;
|
|
102
|
-
shouldReturnFocus?: boolean;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// @public (undocumented)
|
|
106
|
-
export type OverridesType = {
|
|
107
|
-
Sidebar?: {
|
|
108
|
-
component?: React.ComponentType<SidebarProps>;
|
|
109
|
-
cssFn?: (defaultStyles: CSSObject) => CSSObject;
|
|
110
|
-
};
|
|
111
|
-
Content?: {
|
|
112
|
-
component?: React.ComponentType<ContentProps>;
|
|
113
|
-
cssFn?: (defaultStyles: CSSObject) => CSSObject;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// @public (undocumented)
|
|
118
|
-
export type SidebarCSSProps = Omit<SidebarProps, 'cssFn'>;
|
|
119
|
-
|
|
120
|
-
// @public (undocumented)
|
|
121
|
-
export interface SidebarProps extends React.HTMLProps<HTMLDivElement> {
|
|
122
|
-
// @deprecated (undocumented)
|
|
123
|
-
cssFn: (defaultStyles: CSSObject) => CSSObject;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// @public (undocumented)
|
|
127
|
-
export type Widths = {
|
|
128
|
-
extended: {
|
|
129
|
-
width: string;
|
|
130
|
-
};
|
|
131
|
-
full: {
|
|
132
|
-
width: string;
|
|
133
|
-
};
|
|
134
|
-
medium: {
|
|
135
|
-
width: number;
|
|
136
|
-
};
|
|
137
|
-
narrow: {
|
|
138
|
-
width: number;
|
|
139
|
-
};
|
|
140
|
-
wide: {
|
|
141
|
-
width: number;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
// (No @packageDocumentation comment for this package)
|
|
146
|
-
|
|
147
|
-
```
|