@atlaskit/dropdown-menu 11.5.1 → 11.5.2
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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +12 -9
- package/report.api.md +7 -4
- package/dist/cjs/visual-regression/index.js +0 -93
- package/dist/es2019/visual-regression/index.js +0 -30
- package/dist/esm/visual-regression/index.js +0 -86
- package/dist/types/visual-regression/index.d.ts +0 -1
- package/dist/types-ts4.0/visual-regression/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 11.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
|
|
8
|
+
|
|
3
9
|
## 11.5.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "11.5.
|
|
3
|
+
"version": "11.5.2",
|
|
4
4
|
"description": "A dropdown menu displays a list of actions or options to a user.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
"sideEffects": false,
|
|
23
24
|
"atlaskit:src": "src/index.tsx",
|
|
24
25
|
"atlassian": {
|
|
26
|
+
"disableProductCI": true,
|
|
25
27
|
"team": "Design System Team",
|
|
26
28
|
"releaseModel": "scheduled",
|
|
27
29
|
"website": {
|
|
@@ -33,9 +35,9 @@
|
|
|
33
35
|
"@atlaskit/button": "^16.3.0",
|
|
34
36
|
"@atlaskit/codemod-utils": "^4.1.0",
|
|
35
37
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
36
|
-
"@atlaskit/icon": "^21.
|
|
38
|
+
"@atlaskit/icon": "^21.11.0",
|
|
37
39
|
"@atlaskit/menu": "^1.3.0",
|
|
38
|
-
"@atlaskit/popup": "^1.
|
|
40
|
+
"@atlaskit/popup": "^1.5.0",
|
|
39
41
|
"@atlaskit/spinner": "^15.0.0",
|
|
40
42
|
"@atlaskit/theme": "^12.2.0",
|
|
41
43
|
"@atlaskit/tokens": "^0.10.0",
|
|
@@ -49,13 +51,13 @@
|
|
|
49
51
|
"react-dom": "^16.8.0"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
|
-
"@atlaskit/avatar": "^21.
|
|
54
|
+
"@atlaskit/avatar": "^21.1.0",
|
|
53
55
|
"@atlaskit/docs": "*",
|
|
54
|
-
"@atlaskit/lozenge": "11.2.
|
|
55
|
-
"@atlaskit/modal-dialog": "^12.
|
|
56
|
-
"@atlaskit/section-message": "^6.
|
|
56
|
+
"@atlaskit/lozenge": "11.2.5",
|
|
57
|
+
"@atlaskit/modal-dialog": "^12.4.0",
|
|
58
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
57
59
|
"@atlaskit/ssr": "*",
|
|
58
|
-
"@atlaskit/tooltip": "^17.
|
|
60
|
+
"@atlaskit/tooltip": "^17.6.0",
|
|
59
61
|
"@atlaskit/visual-regression": "*",
|
|
60
62
|
"@atlaskit/webdriver-runner": "*",
|
|
61
63
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
"dom-events": "use-bind-event-listener",
|
|
83
85
|
"ui-components": "lite-mode",
|
|
84
86
|
"design-system": "v1",
|
|
87
|
+
"design-tokens": "spacing",
|
|
85
88
|
"styling": [
|
|
86
89
|
"static",
|
|
87
90
|
"emotion"
|
package/report.api.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/dropdown-menu"
|
|
1
|
+
## API Report File for "@atlaskit/dropdown-menu".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
/// <reference types="react" />
|
|
7
9
|
|
|
8
10
|
import type { CustomItemProps } from '@atlaskit/menu/types';
|
|
9
11
|
import { default as DropdownItemGroup } from '@atlaskit/menu/section';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
10
13
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
11
14
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
12
15
|
import { ReactElement } from 'react';
|
|
@@ -290,7 +293,7 @@ declare interface DropdownItemRadioProps {
|
|
|
290
293
|
* - [Code](https://atlassian.design/components/dropdown-menu/code)
|
|
291
294
|
* - [Usage](https://atlassian.design/components/dropdown-menu/usage)
|
|
292
295
|
*/
|
|
293
|
-
declare const DropdownMenu: (props: DropdownMenuProps) => JSX.Element;
|
|
296
|
+
declare const DropdownMenu: (props: DropdownMenuProps) => jsx.JSX.Element;
|
|
294
297
|
export default DropdownMenu;
|
|
295
298
|
|
|
296
299
|
export declare interface DropdownMenuGroupProps extends SectionProps_2 {}
|
|
@@ -369,7 +372,7 @@ export declare interface DropdownMenuProps {
|
|
|
369
372
|
|
|
370
373
|
export declare interface OnOpenChangeArgs {
|
|
371
374
|
isOpen: boolean;
|
|
372
|
-
event
|
|
375
|
+
event: MouseEvent_2 | KeyboardEvent_2;
|
|
373
376
|
}
|
|
374
377
|
|
|
375
378
|
declare type Placement =
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
6
|
-
|
|
7
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
8
|
-
|
|
9
|
-
var _helper = require("@atlaskit/visual-regression/helper");
|
|
10
|
-
|
|
11
|
-
var dropdownTrigger = '[data-testid="dropdown--trigger"]';
|
|
12
|
-
var dropdownContent = '[data-testid="dropdown--content"]';
|
|
13
|
-
describe('Snapshot Test', function () {
|
|
14
|
-
it('it should match visual snapshot for dropdown', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
15
|
-
var url, _global, page, dropdownImage;
|
|
16
|
-
|
|
17
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
18
|
-
while (1) {
|
|
19
|
-
switch (_context.prev = _context.next) {
|
|
20
|
-
case 0:
|
|
21
|
-
url = (0, _helper.getExampleUrl)('design-system', 'dropdown-menu', 'default-dropdown-menu', global.__BASEURL__);
|
|
22
|
-
_global = global, page = _global.page;
|
|
23
|
-
_context.next = 4;
|
|
24
|
-
return (0, _helper.loadPage)(page, url);
|
|
25
|
-
|
|
26
|
-
case 4:
|
|
27
|
-
_context.next = 6;
|
|
28
|
-
return page.waitForSelector(dropdownContent);
|
|
29
|
-
|
|
30
|
-
case 6:
|
|
31
|
-
_context.next = 8;
|
|
32
|
-
return page.screenshot();
|
|
33
|
-
|
|
34
|
-
case 8:
|
|
35
|
-
dropdownImage = _context.sent;
|
|
36
|
-
expect(dropdownImage).toMatchProdImageSnapshot();
|
|
37
|
-
|
|
38
|
-
case 10:
|
|
39
|
-
case "end":
|
|
40
|
-
return _context.stop();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, _callee);
|
|
44
|
-
})));
|
|
45
|
-
it('should accept custom zIndex', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
46
|
-
var url, _global2, page, button, popupImage;
|
|
47
|
-
|
|
48
|
-
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
49
|
-
while (1) {
|
|
50
|
-
switch (_context2.prev = _context2.next) {
|
|
51
|
-
case 0:
|
|
52
|
-
url = (0, _helper.getExampleUrl)('design-system', 'dropdown-menu', 'setting-z-index', global.__BASEURL__);
|
|
53
|
-
_global2 = global, page = _global2.page;
|
|
54
|
-
button = "[data-testid='popup--trigger']";
|
|
55
|
-
_context2.next = 5;
|
|
56
|
-
return (0, _helper.loadPage)(page, url);
|
|
57
|
-
|
|
58
|
-
case 5:
|
|
59
|
-
_context2.next = 7;
|
|
60
|
-
return page.waitForSelector(button);
|
|
61
|
-
|
|
62
|
-
case 7:
|
|
63
|
-
_context2.next = 9;
|
|
64
|
-
return page.click(button);
|
|
65
|
-
|
|
66
|
-
case 9:
|
|
67
|
-
_context2.next = 11;
|
|
68
|
-
return page.waitForSelector(dropdownTrigger);
|
|
69
|
-
|
|
70
|
-
case 11:
|
|
71
|
-
_context2.next = 13;
|
|
72
|
-
return page.click(dropdownTrigger);
|
|
73
|
-
|
|
74
|
-
case 13:
|
|
75
|
-
_context2.next = 15;
|
|
76
|
-
return page.waitForSelector(dropdownContent);
|
|
77
|
-
|
|
78
|
-
case 15:
|
|
79
|
-
_context2.next = 17;
|
|
80
|
-
return page.screenshot();
|
|
81
|
-
|
|
82
|
-
case 17:
|
|
83
|
-
popupImage = _context2.sent;
|
|
84
|
-
expect(popupImage).toMatchProdImageSnapshot();
|
|
85
|
-
|
|
86
|
-
case 19:
|
|
87
|
-
case "end":
|
|
88
|
-
return _context2.stop();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, _callee2);
|
|
92
|
-
})));
|
|
93
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getExampleUrl, loadPage } from '@atlaskit/visual-regression/helper';
|
|
2
|
-
const dropdownTrigger = '[data-testid="dropdown--trigger"]';
|
|
3
|
-
const dropdownContent = '[data-testid="dropdown--content"]';
|
|
4
|
-
describe('Snapshot Test', () => {
|
|
5
|
-
it('it should match visual snapshot for dropdown', async () => {
|
|
6
|
-
const url = getExampleUrl('design-system', 'dropdown-menu', 'default-dropdown-menu', global.__BASEURL__);
|
|
7
|
-
const {
|
|
8
|
-
page
|
|
9
|
-
} = global;
|
|
10
|
-
await loadPage(page, url);
|
|
11
|
-
await page.waitForSelector(dropdownContent);
|
|
12
|
-
const dropdownImage = await page.screenshot();
|
|
13
|
-
expect(dropdownImage).toMatchProdImageSnapshot();
|
|
14
|
-
});
|
|
15
|
-
it('should accept custom zIndex', async () => {
|
|
16
|
-
const url = getExampleUrl('design-system', 'dropdown-menu', 'setting-z-index', global.__BASEURL__);
|
|
17
|
-
const {
|
|
18
|
-
page
|
|
19
|
-
} = global;
|
|
20
|
-
const button = "[data-testid='popup--trigger']";
|
|
21
|
-
await loadPage(page, url);
|
|
22
|
-
await page.waitForSelector(button);
|
|
23
|
-
await page.click(button);
|
|
24
|
-
await page.waitForSelector(dropdownTrigger);
|
|
25
|
-
await page.click(dropdownTrigger);
|
|
26
|
-
await page.waitForSelector(dropdownContent);
|
|
27
|
-
const popupImage = await page.screenshot();
|
|
28
|
-
expect(popupImage).toMatchProdImageSnapshot();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { getExampleUrl, loadPage } from '@atlaskit/visual-regression/helper';
|
|
4
|
-
var dropdownTrigger = '[data-testid="dropdown--trigger"]';
|
|
5
|
-
var dropdownContent = '[data-testid="dropdown--content"]';
|
|
6
|
-
describe('Snapshot Test', function () {
|
|
7
|
-
it('it should match visual snapshot for dropdown', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
8
|
-
var url, _global, page, dropdownImage;
|
|
9
|
-
|
|
10
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
11
|
-
while (1) {
|
|
12
|
-
switch (_context.prev = _context.next) {
|
|
13
|
-
case 0:
|
|
14
|
-
url = getExampleUrl('design-system', 'dropdown-menu', 'default-dropdown-menu', global.__BASEURL__);
|
|
15
|
-
_global = global, page = _global.page;
|
|
16
|
-
_context.next = 4;
|
|
17
|
-
return loadPage(page, url);
|
|
18
|
-
|
|
19
|
-
case 4:
|
|
20
|
-
_context.next = 6;
|
|
21
|
-
return page.waitForSelector(dropdownContent);
|
|
22
|
-
|
|
23
|
-
case 6:
|
|
24
|
-
_context.next = 8;
|
|
25
|
-
return page.screenshot();
|
|
26
|
-
|
|
27
|
-
case 8:
|
|
28
|
-
dropdownImage = _context.sent;
|
|
29
|
-
expect(dropdownImage).toMatchProdImageSnapshot();
|
|
30
|
-
|
|
31
|
-
case 10:
|
|
32
|
-
case "end":
|
|
33
|
-
return _context.stop();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}, _callee);
|
|
37
|
-
})));
|
|
38
|
-
it('should accept custom zIndex', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
39
|
-
var url, _global2, page, button, popupImage;
|
|
40
|
-
|
|
41
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
42
|
-
while (1) {
|
|
43
|
-
switch (_context2.prev = _context2.next) {
|
|
44
|
-
case 0:
|
|
45
|
-
url = getExampleUrl('design-system', 'dropdown-menu', 'setting-z-index', global.__BASEURL__);
|
|
46
|
-
_global2 = global, page = _global2.page;
|
|
47
|
-
button = "[data-testid='popup--trigger']";
|
|
48
|
-
_context2.next = 5;
|
|
49
|
-
return loadPage(page, url);
|
|
50
|
-
|
|
51
|
-
case 5:
|
|
52
|
-
_context2.next = 7;
|
|
53
|
-
return page.waitForSelector(button);
|
|
54
|
-
|
|
55
|
-
case 7:
|
|
56
|
-
_context2.next = 9;
|
|
57
|
-
return page.click(button);
|
|
58
|
-
|
|
59
|
-
case 9:
|
|
60
|
-
_context2.next = 11;
|
|
61
|
-
return page.waitForSelector(dropdownTrigger);
|
|
62
|
-
|
|
63
|
-
case 11:
|
|
64
|
-
_context2.next = 13;
|
|
65
|
-
return page.click(dropdownTrigger);
|
|
66
|
-
|
|
67
|
-
case 13:
|
|
68
|
-
_context2.next = 15;
|
|
69
|
-
return page.waitForSelector(dropdownContent);
|
|
70
|
-
|
|
71
|
-
case 15:
|
|
72
|
-
_context2.next = 17;
|
|
73
|
-
return page.screenshot();
|
|
74
|
-
|
|
75
|
-
case 17:
|
|
76
|
-
popupImage = _context2.sent;
|
|
77
|
-
expect(popupImage).toMatchProdImageSnapshot();
|
|
78
|
-
|
|
79
|
-
case 19:
|
|
80
|
-
case "end":
|
|
81
|
-
return _context2.stop();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}, _callee2);
|
|
85
|
-
})));
|
|
86
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|