@atlaskit/popup 1.8.2 → 1.8.3
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 +3 -3
- package/tmp/api-report-tmp.d.ts +0 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/popup
|
|
2
2
|
|
|
3
|
+
## 1.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
8
|
+
|
|
3
9
|
## 1.8.2
|
|
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/popup",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "A popup displays brief content in an overlay.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"react-dom": "^16.8.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
+
"@af/accessibility-testing": "*",
|
|
55
56
|
"@atlaskit/button": "^16.8.0",
|
|
56
57
|
"@atlaskit/icon": "^21.12.0",
|
|
57
58
|
"@atlaskit/ssr": "*",
|
|
@@ -62,7 +63,6 @@
|
|
|
62
63
|
"@testing-library/dom": "^8.17.1",
|
|
63
64
|
"@testing-library/react": "^12.1.5",
|
|
64
65
|
"ast-types": "^0.13.3",
|
|
65
|
-
"jest-axe": "^4.0.0",
|
|
66
66
|
"jscodeshift": "^0.13.0",
|
|
67
67
|
"raf-stub": "^2.0.1",
|
|
68
68
|
"react-dom": "^16.8.0",
|
|
@@ -105,4 +105,4 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
108
|
-
}
|
|
108
|
+
}
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/popup"
|
|
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 { CSSProperties } from 'react';
|
|
9
|
-
import { Dispatch } from 'react';
|
|
10
|
-
import { FC } from 'react';
|
|
11
|
-
import { Placement } from '@atlaskit/popper';
|
|
12
|
-
import { PopperChildrenProps } from '@atlaskit/popper';
|
|
13
|
-
import { default as React_2 } from 'react';
|
|
14
|
-
import { ReactNode } from 'react';
|
|
15
|
-
import { Ref } from 'react';
|
|
16
|
-
import { SetStateAction } from 'react';
|
|
17
|
-
|
|
18
|
-
// @public (undocumented)
|
|
19
|
-
interface BaseProps {
|
|
20
|
-
autoFocus?: boolean;
|
|
21
|
-
boundary?: 'clippingParents' | HTMLElement;
|
|
22
|
-
content: (props: ContentProps) => React_2.ReactNode;
|
|
23
|
-
fallbackPlacements?: Placement[];
|
|
24
|
-
id?: string;
|
|
25
|
-
isOpen: boolean;
|
|
26
|
-
offset?: [number, number];
|
|
27
|
-
onClose?(event: Event | React_2.KeyboardEvent | React_2.MouseEvent): void;
|
|
28
|
-
placement?: Placement;
|
|
29
|
-
popupComponent?: ComponentType<PopupComponentProps>;
|
|
30
|
-
rootBoundary?: 'document' | 'viewport';
|
|
31
|
-
shouldFlip?: boolean;
|
|
32
|
-
shouldUseCaptureOnOutsideClick?: boolean;
|
|
33
|
-
testId?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// @public (undocumented)
|
|
37
|
-
export interface ContentProps {
|
|
38
|
-
isOpen: boolean;
|
|
39
|
-
onClose?: BaseProps['onClose'];
|
|
40
|
-
setInitialFocusRef: Dispatch<SetStateAction<HTMLElement | null>>;
|
|
41
|
-
update: PopperChildrenProps['update'];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// @public (undocumented)
|
|
45
|
-
const Popup: FC<PopupProps>;
|
|
46
|
-
export { Popup }
|
|
47
|
-
export default Popup;
|
|
48
|
-
|
|
49
|
-
// @public (undocumented)
|
|
50
|
-
export interface PopupComponentProps {
|
|
51
|
-
'data-placement': Placement;
|
|
52
|
-
'data-testid'?: string;
|
|
53
|
-
children: ReactNode;
|
|
54
|
-
id?: string;
|
|
55
|
-
ref: Ref<HTMLDivElement>;
|
|
56
|
-
style: CSSProperties;
|
|
57
|
-
tabIndex: number | undefined;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
export interface PopupProps extends BaseProps {
|
|
62
|
-
shouldRenderToParent?: boolean;
|
|
63
|
-
trigger: (props: TriggerProps) => React_2.ReactNode;
|
|
64
|
-
zIndex?: number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// @public (undocumented)
|
|
68
|
-
export interface TriggerProps {
|
|
69
|
-
// (undocumented)
|
|
70
|
-
'aria-controls'?: string;
|
|
71
|
-
// (undocumented)
|
|
72
|
-
'aria-expanded': boolean;
|
|
73
|
-
// (undocumented)
|
|
74
|
-
'aria-haspopup': boolean;
|
|
75
|
-
// (undocumented)
|
|
76
|
-
ref: Ref<any>;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// (No @packageDocumentation comment for this package)
|
|
80
|
-
|
|
81
|
-
```
|