@atlaskit/popper 5.5.2 → 5.5.4

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.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
8
+
9
+ ## 5.5.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
14
+
3
15
  ## 5.5.2
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1 @@
1
+ export { popperRendersTestCase } from './test-cases/popper';
@@ -0,0 +1,5 @@
1
+ /// <reference types="cypress" />
2
+ import { InProductTestPageObject } from '@atlaskit/in-product-testing';
3
+ export declare class BasePopperPageObject extends InProductTestPageObject {
4
+ assertPopperStyle(elementSelector: keyof HTMLElementTagNameMap | string): Cypress.Chainable<JQuery<HTMLElement>>;
5
+ }
@@ -0,0 +1,2 @@
1
+ import { InProductTestCase } from '@atlaskit/in-product-testing';
2
+ export declare const popperRendersTestCase: (elementSelector: keyof HTMLElementTagNameMap | string) => InProductTestCase;
@@ -0,0 +1 @@
1
+ export { popperRendersTestCase } from './__tests_external__';
@@ -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
+ 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.5.2",
3
+ "version": "5.5.4",
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/"
@@ -12,32 +12,19 @@
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.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": false,
24
16
  "atlaskit:src": "src/index.tsx",
25
17
  "atlassian": {
26
18
  "team": "Design System Team",
27
- "releaseModel": "continuous",
28
19
  "productPushConsumption": [
29
20
  "jira"
30
21
  ],
22
+ "releaseModel": "continuous",
31
23
  "website": {
32
24
  "name": "Popper",
33
25
  "category": "Libraries"
34
26
  }
35
27
  },
36
- "af:exports": {
37
- ".": "./src/index.tsx",
38
- "./Popper": "./src/popper.tsx",
39
- "./in-product": "./src/in-product.tsx"
40
- },
41
28
  "dependencies": {
42
29
  "@atlaskit/in-product-testing": "^0.2.0",
43
30
  "@babel/runtime": "^7.0.0",
@@ -48,13 +35,10 @@
48
35
  "react": "^16.8.0"
49
36
  },
50
37
  "devDependencies": {
51
- "@atlaskit/button": "^16.7.0",
52
- "@atlaskit/docs": "*",
38
+ "@af/accessibility-testing": "*",
39
+ "@af/visual-regression": "*",
53
40
  "@atlaskit/ds-lib": "^2.2.0",
54
- "@atlaskit/section-message": "^6.4.0",
55
41
  "@atlaskit/ssr": "*",
56
- "@atlaskit/theme": "^12.5.0",
57
- "@atlaskit/tokens": "^1.4.0",
58
42
  "@atlaskit/visual-regression": "*",
59
43
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
60
44
  "@emotion/react": "^11.7.1",
@@ -93,6 +77,19 @@
93
77
  ]
94
78
  }
95
79
  },
80
+ "typesVersions": {
81
+ ">=4.5 <4.9": {
82
+ "*": [
83
+ "dist/types-ts4.5/*",
84
+ "dist/types-ts4.5/index.d.ts"
85
+ ]
86
+ }
87
+ },
88
+ "af:exports": {
89
+ ".": "./src/index.tsx",
90
+ "./Popper": "./src/popper.tsx",
91
+ "./in-product": "./src/in-product.tsx"
92
+ },
96
93
  "homepage": "https://atlassian.design/components/popper",
97
94
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
98
95
  }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/popper",
3
- "version": "5.5.2",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/popper",
3
- "version": "5.5.2",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/popper",
3
- "version": "5.5.2",
4
- "sideEffects": false
5
- }