@atlaskit/popper 5.2.8 → 5.2.10

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,17 @@
1
1
  # @atlaskit/popper
2
2
 
3
+ ## 5.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
8
+
9
+ ## 5.2.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
14
+
3
15
  ## 5.2.8
4
16
 
5
17
  ### 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.10",
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.10",
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.10",
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.10",
4
4
  "description": "Wrapper for react-popper with common config and some helpers",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,9 +12,18 @@
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
+ "dist/types-ts4.0/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "atlaskit:src": "src/index.tsx",
17
25
  "atlassian": {
26
+ "disableProductCI": true,
18
27
  "team": "Design System Team",
19
28
  "releaseModel": "scheduled",
20
29
  "website": {
@@ -39,17 +48,17 @@
39
48
  "@atlaskit/docs": "*",
40
49
  "@atlaskit/ds-lib": "^2.1.0",
41
50
  "@atlaskit/ssr": "*",
42
- "@atlaskit/theme": "^12.1.0",
51
+ "@atlaskit/theme": "^12.2.0",
43
52
  "@atlaskit/visual-regression": "*",
44
53
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
45
- "@emotion/styled": "^10.0.7",
54
+ "@emotion/styled": "^11.0.0",
46
55
  "@types/jscodeshift": "^0.11.0",
47
56
  "ast-types": "^0.13.3",
48
57
  "enzyme": "^3.10.0",
49
58
  "jscodeshift": "^0.13.0",
50
59
  "react-dom": "^16.8.0",
51
60
  "react-lorem-component": "^0.13.0",
52
- "typescript": "4.3.5",
61
+ "typescript": "4.5.5",
53
62
  "wait-for-expect": "^1.2.0"
54
63
  },
55
64
  "keywords": [
@@ -65,6 +74,7 @@
65
74
  "design-system": "v1",
66
75
  "ui-components": "lite-mode",
67
76
  "analytics": "analytics-next",
77
+ "design-tokens": "spacing",
68
78
  "theming": "tokens",
69
79
  "deprecation": "no-deprecated-imports",
70
80
  "styling": [
package/report.api.md CHANGED
@@ -1,6 +1,8 @@
1
- ## API Report File for "@atlaskit/popper"
1
+ ## API Report File for "@atlaskit/popper".
2
2
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
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
  import { Manager } from 'react-popper';
@@ -17,34 +19,7 @@ import { ReferenceProps } from 'react-popper';
17
19
  import { StrictModifier } from 'react-popper';
18
20
  import { VirtualElement } from '@popperjs/core';
19
21
 
20
- export { Manager };
21
-
22
- export { ManagerProps };
23
-
24
- export { Modifier };
25
-
26
- declare type Offset = [number | null | undefined, number | null | undefined];
27
-
28
- export { Placement };
29
-
30
- export { placements };
31
-
32
- export declare function Popper<CustomModifiers>({
33
- children,
34
- offset,
35
- placement,
36
- referenceElement,
37
- modifiers,
38
- strategy,
39
- }: Props<CustomModifiers>): JSX.Element;
40
-
41
- export { PopperArrowProps };
42
-
43
- export { PopperChildrenProps };
44
-
45
- export { PopperProps };
46
-
47
- declare interface Props<Modifiers> {
22
+ declare interface CustomPopperProps<Modifiers> {
48
23
  /**
49
24
  * Returns the element to be positioned.
50
25
  */
@@ -73,6 +48,33 @@ declare interface Props<Modifiers> {
73
48
  strategy?: PopperProps<Modifiers>['strategy'];
74
49
  }
75
50
 
51
+ export { Manager };
52
+
53
+ export { ManagerProps };
54
+
55
+ export { Modifier };
56
+
57
+ declare type Offset = [number | null | undefined, number | null | undefined];
58
+
59
+ export { Placement };
60
+
61
+ export { placements };
62
+
63
+ export declare function Popper<CustomModifiers>({
64
+ children,
65
+ offset,
66
+ placement,
67
+ referenceElement,
68
+ modifiers,
69
+ strategy,
70
+ }: CustomPopperProps<CustomModifiers>): JSX.Element;
71
+
72
+ export { PopperArrowProps };
73
+
74
+ export { PopperChildrenProps };
75
+
76
+ export { PopperProps };
77
+
76
78
  export { Reference };
77
79
 
78
80
  export { ReferenceProps };