@atlaskit/popper 5.5.0 → 5.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 +12 -0
- package/Popper/package.json +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/__tests_external__/page-objects/base-popper.d.ts +2 -0
- package/dist/types/popper.d.ts +1 -1
- package/in-product/package.json +2 -2
- package/package.json +8 -7
- package/tmp/api-report-tmp.d.ts +61 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/popper
|
|
2
2
|
|
|
3
|
+
## 5.5.2
|
|
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
|
+
## 5.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`f859e9ccda4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f859e9ccda4) - Migrates unit tests from enzyme to RTL.
|
|
14
|
+
|
|
3
15
|
## 5.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/Popper/package.json
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="cypress" />
|
|
2
|
+
/// <reference types="cypress" />
|
|
3
|
+
/// <reference types="cypress" />
|
|
2
4
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
3
5
|
export declare class BasePopperPageObject extends InProductTestPageObject {
|
|
4
6
|
assertPopperStyle(elementSelector: keyof HTMLElementTagNameMap | string): Cypress.Chainable<JQuery<HTMLElement>>;
|
package/dist/types/popper.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PopperChildrenProps, PopperProps } from 'react-popper';
|
|
|
4
4
|
export { placements } from '@popperjs/core';
|
|
5
5
|
export type { Placement, VirtualElement } from '@popperjs/core';
|
|
6
6
|
export type { ManagerProps, ReferenceProps, PopperProps, PopperArrowProps, PopperChildrenProps, StrictModifier, Modifier, } from 'react-popper';
|
|
7
|
-
|
|
7
|
+
type Offset = [number | null | undefined, number | null | undefined];
|
|
8
8
|
export interface CustomPopperProps<Modifiers> {
|
|
9
9
|
/**
|
|
10
10
|
* Returns the element to be positioned.
|
package/in-product/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popper",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.2",
|
|
4
4
|
"description": "A wrapper for React Popper for situations which require a bespoke popup where other ADS components are deemed unsuitable",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
15
|
"typesVersions": {
|
|
16
|
-
">=4.
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.
|
|
19
|
-
"dist/types-ts4.
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
},
|
|
@@ -54,18 +54,19 @@
|
|
|
54
54
|
"@atlaskit/section-message": "^6.4.0",
|
|
55
55
|
"@atlaskit/ssr": "*",
|
|
56
56
|
"@atlaskit/theme": "^12.5.0",
|
|
57
|
-
"@atlaskit/tokens": "^1.
|
|
57
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
58
58
|
"@atlaskit/visual-regression": "*",
|
|
59
59
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
60
60
|
"@emotion/react": "^11.7.1",
|
|
61
61
|
"@emotion/styled": "^11.0.0",
|
|
62
|
+
"@testing-library/react": "^12.1.5",
|
|
63
|
+
"@testing-library/user-event": "^14.4.3",
|
|
62
64
|
"@types/jscodeshift": "^0.11.0",
|
|
63
65
|
"ast-types": "^0.13.3",
|
|
64
|
-
"enzyme": "^3.10.0",
|
|
65
66
|
"jscodeshift": "^0.13.0",
|
|
66
67
|
"react-dom": "^16.8.0",
|
|
67
68
|
"react-lorem-component": "^0.13.0",
|
|
68
|
-
"typescript": "4.
|
|
69
|
+
"typescript": "~4.9.5",
|
|
69
70
|
"wait-for-expect": "^1.2.0"
|
|
70
71
|
},
|
|
71
72
|
"keywords": [
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/popper"
|
|
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 { Manager } from 'react-popper';
|
|
8
|
+
import { ManagerProps } from 'react-popper';
|
|
9
|
+
import { Modifier } from 'react-popper';
|
|
10
|
+
import { Placement } from '@popperjs/core';
|
|
11
|
+
import { placements } from '@popperjs/core';
|
|
12
|
+
import { PopperArrowProps } from 'react-popper';
|
|
13
|
+
import { PopperChildrenProps } from 'react-popper';
|
|
14
|
+
import { PopperProps } from 'react-popper';
|
|
15
|
+
import { default as React_2 } from 'react';
|
|
16
|
+
import { Reference } from 'react-popper';
|
|
17
|
+
import { ReferenceProps } from 'react-popper';
|
|
18
|
+
import { StrictModifier } from 'react-popper';
|
|
19
|
+
import { VirtualElement } from '@popperjs/core';
|
|
20
|
+
|
|
21
|
+
// @public (undocumented)
|
|
22
|
+
interface CustomPopperProps<Modifiers> {
|
|
23
|
+
children?: (childrenProps: PopperChildrenProps) => React_2.ReactNode;
|
|
24
|
+
modifiers?: PopperProps<Modifiers>['modifiers'];
|
|
25
|
+
offset?: Offset;
|
|
26
|
+
placement?: Placement;
|
|
27
|
+
referenceElement?: HTMLElement | VirtualElement;
|
|
28
|
+
strategy?: PopperProps<Modifiers>['strategy'];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Manager }
|
|
32
|
+
|
|
33
|
+
export { ManagerProps }
|
|
34
|
+
|
|
35
|
+
export { Modifier }
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
type Offset = [null | number | undefined, null | number | undefined];
|
|
39
|
+
|
|
40
|
+
export { Placement }
|
|
41
|
+
|
|
42
|
+
export { placements }
|
|
43
|
+
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, }: CustomPopperProps<CustomModifiers>): JSX.Element;
|
|
46
|
+
|
|
47
|
+
export { PopperArrowProps }
|
|
48
|
+
|
|
49
|
+
export { PopperChildrenProps }
|
|
50
|
+
|
|
51
|
+
export { PopperProps }
|
|
52
|
+
|
|
53
|
+
export { Reference }
|
|
54
|
+
|
|
55
|
+
export { ReferenceProps }
|
|
56
|
+
|
|
57
|
+
export { StrictModifier }
|
|
58
|
+
|
|
59
|
+
// (No @packageDocumentation comment for this package)
|
|
60
|
+
|
|
61
|
+
```
|