@atlaskit/popper 5.2.9 → 5.2.11

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,22 @@
1
1
  # @atlaskit/popper
2
2
 
3
+ ## 5.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dc53dc3201b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc53dc3201b) - Add 'productPushConsumption' as a new optional field in package.json.
8
+
9
+ _Note_:
10
+ We want to track the information if the package was moved from the pull into the push model in the product.
11
+ Hence, we extended the `package.json` file by adding a new field e.g.: "atlassian.productPushConsumption": ["jira"]
12
+ This field is optional.
13
+
14
+ ## 5.2.10
15
+
16
+ ### Patch Changes
17
+
18
+ - [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
19
+
3
20
  ## 5.2.9
4
21
 
5
22
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.9",
3
+ "version": "5.2.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.9",
3
+ "version": "5.2.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.9",
3
+ "version": "5.2.11",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.9",
3
+ "version": "5.2.11",
4
4
  "description": "Wrapper for react-popper with common config and some helpers",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,18 +12,14 @@
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
- },
22
15
  "sideEffects": false,
23
16
  "atlaskit:src": "src/index.tsx",
24
17
  "atlassian": {
25
- "team": "Design System Team",
26
- "releaseModel": "scheduled",
18
+ "team": "UIP: Cycle Time Flex",
19
+ "releaseModel": "continuous",
20
+ "productPushConsumption": [
21
+ "jira"
22
+ ],
27
23
  "website": {
28
24
  "name": "Popper",
29
25
  "category": "Components"
@@ -42,7 +38,7 @@
42
38
  "react": "^16.8.0"
43
39
  },
44
40
  "devDependencies": {
45
- "@atlaskit/button": "^16.3.0",
41
+ "@atlaskit/button": "^16.4.0",
46
42
  "@atlaskit/docs": "*",
47
43
  "@atlaskit/ds-lib": "^2.1.0",
48
44
  "@atlaskit/ssr": "*",
@@ -72,6 +68,7 @@
72
68
  "design-system": "v1",
73
69
  "ui-components": "lite-mode",
74
70
  "analytics": "analytics-next",
71
+ "design-tokens": "spacing",
75
72
  "theming": "tokens",
76
73
  "deprecation": "no-deprecated-imports",
77
74
  "styling": [
package/report.api.md CHANGED
@@ -1,6 +1,17 @@
1
+ <!-- API Report Version: 2.3 -->
2
+
1
3
  ## API Report File for "@atlaskit/popper"
2
4
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
4
15
 
5
16
  ```ts
6
17
  import { Manager } from 'react-popper';
@@ -17,26 +28,38 @@ import { ReferenceProps } from 'react-popper';
17
28
  import { StrictModifier } from 'react-popper';
18
29
  import { VirtualElement } from '@popperjs/core';
19
30
 
31
+ // @public (undocumented)
32
+ interface CustomPopperProps<Modifiers> {
33
+ children?: (childrenProps: PopperChildrenProps) => React_2.ReactNode;
34
+ modifiers?: PopperProps<Modifiers>['modifiers'];
35
+ offset?: Offset;
36
+ placement?: Placement;
37
+ referenceElement?: HTMLElement | VirtualElement;
38
+ strategy?: PopperProps<Modifiers>['strategy'];
39
+ }
40
+
20
41
  export { Manager };
21
42
 
22
43
  export { ManagerProps };
23
44
 
24
45
  export { Modifier };
25
46
 
26
- declare type Offset = [number | null | undefined, number | null | undefined];
47
+ // @public (undocumented)
48
+ type Offset = [null | number | undefined, null | number | undefined];
27
49
 
28
50
  export { Placement };
29
51
 
30
52
  export { placements };
31
53
 
32
- export declare function Popper<CustomModifiers>({
54
+ // @public (undocumented)
55
+ export function Popper<CustomModifiers>({
33
56
  children,
34
57
  offset,
35
58
  placement,
36
59
  referenceElement,
37
60
  modifiers,
38
61
  strategy,
39
- }: Props<CustomModifiers>): JSX.Element;
62
+ }: CustomPopperProps<CustomModifiers>): JSX.Element;
40
63
 
41
64
  export { PopperArrowProps };
42
65
 
@@ -44,40 +67,13 @@ export { PopperChildrenProps };
44
67
 
45
68
  export { PopperProps };
46
69
 
47
- declare interface Props<Modifiers> {
48
- /**
49
- * Returns the element to be positioned.
50
- */
51
- children?: (childrenProps: PopperChildrenProps) => React_2.ReactNode;
52
- /**
53
- * Distance the popup should be offset from the reference in the format of [along, away] (units in px).
54
- * Defaults to [0, 8] - which means the popup will be 8px away from the edge of the reference specified
55
- * by the `placement` prop.
56
- */
57
- offset?: Offset;
58
- /**
59
- * Which side of the Reference to show on.
60
- */
61
- placement?: Placement;
62
- /**
63
- * Replacement reference element to position popper relative to.
64
- */
65
- referenceElement?: HTMLElement | VirtualElement;
66
- /**
67
- * Additional modifiers and modifier overwrites.
68
- */
69
- modifiers?: PopperProps<Modifiers>['modifiers'];
70
- /**
71
- * Placement strategy used. Can be 'fixed' or 'absolute'
72
- */
73
- strategy?: PopperProps<Modifiers>['strategy'];
74
- }
75
-
76
70
  export { Reference };
77
71
 
78
72
  export { ReferenceProps };
79
73
 
80
74
  export { StrictModifier };
81
75
 
82
- export {};
76
+ // (No @packageDocumentation comment for this package)
83
77
  ```
78
+
79
+ <!--SECTION END: Main Entry Types-->
@@ -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
+ ```
@@ -1,3 +0,0 @@
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';
@@ -1,39 +0,0 @@
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;