@atlaskit/popper 5.2.8 → 5.2.9

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/popper
2
2
 
3
+ ## 5.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
3
9
  ## 5.2.8
4
10
 
5
11
  ### Patch Changes
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/popper.js",
5
5
  "module:es2019": "../dist/es2019/popper.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/popper.d.ts"
7
+ "types": "../dist/types/popper.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/popper.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.8",
3
+ "version": "5.2.9",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.8",
3
+ "version": "5.2.9",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.8",
3
+ "version": "5.2.9",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,3 @@
1
+ export { Popper, placements } from './popper';
2
+ export type { ManagerProps, ReferenceProps, PopperProps, PopperArrowProps, PopperChildrenProps, StrictModifier, Modifier, Placement, } from './popper';
3
+ export { Manager, Reference } from 'react-popper';
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { Placement, VirtualElement } from '@popperjs/core';
3
+ import { PopperChildrenProps, PopperProps } from 'react-popper';
4
+ export { placements } from '@popperjs/core';
5
+ export type { Placement, VirtualElement } from '@popperjs/core';
6
+ export type { ManagerProps, ReferenceProps, PopperProps, PopperArrowProps, PopperChildrenProps, StrictModifier, Modifier, } from 'react-popper';
7
+ declare type Offset = [
8
+ number | null | undefined,
9
+ number | null | undefined
10
+ ];
11
+ export interface CustomPopperProps<Modifiers> {
12
+ /**
13
+ * Returns the element to be positioned.
14
+ */
15
+ children?: (childrenProps: PopperChildrenProps) => React.ReactNode;
16
+ /**
17
+ * Distance the popup should be offset from the reference in the format of [along, away] (units in px).
18
+ * Defaults to [0, 8] - which means the popup will be 8px away from the edge of the reference specified
19
+ * by the `placement` prop.
20
+ */
21
+ offset?: Offset;
22
+ /**
23
+ * Which side of the Reference to show on.
24
+ */
25
+ placement?: Placement;
26
+ /**
27
+ * Replacement reference element to position popper relative to.
28
+ */
29
+ referenceElement?: HTMLElement | VirtualElement;
30
+ /**
31
+ * Additional modifiers and modifier overwrites.
32
+ */
33
+ modifiers?: PopperProps<Modifiers>['modifiers'];
34
+ /**
35
+ * Placement strategy used. Can be 'fixed' or 'absolute'
36
+ */
37
+ strategy?: PopperProps<Modifiers>['strategy'];
38
+ }
39
+ export declare function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, }: CustomPopperProps<CustomModifiers>): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.8",
3
+ "version": "5.2.9",
4
4
  "description": "Wrapper for react-popper with common config and some helpers",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,13 @@
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.0 <4.5": {
17
+ "*": [
18
+ "dist/types-ts4.0/*"
19
+ ]
20
+ }
21
+ },
15
22
  "sideEffects": false,
16
23
  "atlaskit:src": "src/index.tsx",
17
24
  "atlassian": {
@@ -39,17 +46,17 @@
39
46
  "@atlaskit/docs": "*",
40
47
  "@atlaskit/ds-lib": "^2.1.0",
41
48
  "@atlaskit/ssr": "*",
42
- "@atlaskit/theme": "^12.1.0",
49
+ "@atlaskit/theme": "^12.2.0",
43
50
  "@atlaskit/visual-regression": "*",
44
51
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
45
- "@emotion/styled": "^10.0.7",
52
+ "@emotion/styled": "^11.0.0",
46
53
  "@types/jscodeshift": "^0.11.0",
47
54
  "ast-types": "^0.13.3",
48
55
  "enzyme": "^3.10.0",
49
56
  "jscodeshift": "^0.13.0",
50
57
  "react-dom": "^16.8.0",
51
58
  "react-lorem-component": "^0.13.0",
52
- "typescript": "4.3.5",
59
+ "typescript": "4.5.5",
53
60
  "wait-for-expect": "^1.2.0"
54
61
  },
55
62
  "keywords": [