@atlaskit/popper 5.2.6 → 5.2.7

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.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ff5655480e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff5655480e6) - Internal code change turning on new linting rules.
8
+
3
9
  ## 5.2.6
4
10
 
5
11
  ### Patch Changes
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@atlaskit/popper/Popper",
3
- "main": "../dist/cjs/Popper.js",
4
- "module": "../dist/esm/Popper.js",
5
- "module:es2019": "../dist/es2019/Popper.js",
3
+ "main": "../dist/cjs/popper.js",
4
+ "module": "../dist/esm/popper.js",
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
8
  }
@@ -5,7 +5,11 @@ import { Manager, Popper, Reference } from '../src';
5
5
  export default () => (
6
6
  <Manager>
7
7
  <Reference>
8
- {({ ref }) => <button ref={ref}>Reference element</button>}
8
+ {({ ref }) => (
9
+ <button ref={ref} type="button">
10
+ Reference element
11
+ </button>
12
+ )}
9
13
  </Reference>
10
14
  <Popper placement="right">
11
15
  {({ ref, style }) => (
@@ -8,12 +8,13 @@ describe('Changing popper usage', () => {
8
8
  // TODO this probably isn't worth including, as they still have to do some major work to
9
9
  // re-work these modifiers.
10
10
 
11
- /** Modifiers:
12
- - format has been changed from object of objects, to array of objects, with the key for each
13
- modifier replaced with a name key:value pair inside the modifier object
14
- - modifier-specific options have been moved inside an options: key:value pair
15
- - modifier options have been changed significantly: check the popper.js docs for more info
16
- */
11
+ /**
12
+ * Modifiers:
13
+ * - format has been changed from object of objects, to array of objects, with the key for each
14
+ * modifier replaced with a name key:value pair inside the modifier object
15
+ * - modifier-specific options have been moved inside an options: key:value pair
16
+ * - modifier options have been changed significantly: check the popper.js docs for more info
17
+ */
17
18
  defineInlineTest(
18
19
  { default: transformer, parser: 'tsx' },
19
20
  {},
@@ -265,9 +265,9 @@ describe('Update offset prop', () => {
265
265
  );
266
266
 
267
267
  /**
268
- If a user is passing in a variable for offset then we should leave a comment to
269
- update it themselves
270
- */
268
+ * If a user is passing in a variable for offset then we should leave a comment to
269
+ * update it themselves
270
+ */
271
271
  defineInlineTest(
272
272
  { default: transformer, parser: 'tsx' },
273
273
  {},
@@ -8,10 +8,10 @@ describe('Update props', () => {
8
8
  /**
9
9
  * It should rename outOfBoundaries and scheduleUpdate props
10
10
  * Render Props:
11
- - `outOfBoundaries` has been replaced with `isReferenceHidden`, and is now true when the popper is hidden (i.e. by a
12
- scroll container)
13
- - `scheduleUpdate`, for async updates, has been renamed to `update`, and now returns a Promise.
14
- */
11
+ * - `outOfBoundaries` has been replaced with `isReferenceHidden`, and is now true when the popper is hidden (i.e. by a
12
+ * scroll container)
13
+ * - `scheduleUpdate`, for async updates, has been renamed to `update`, and now returns a Promise.
14
+ */
15
15
  defineInlineTest(
16
16
  { default: transformer, parser: 'tsx' },
17
17
  {},
File without changes
File without changes
package/dist/cjs/index.js CHANGED
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "Manager", {
12
12
  Object.defineProperty(exports, "Popper", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _Popper.Popper;
15
+ return _popper.Popper;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "Reference", {
@@ -24,10 +24,10 @@ Object.defineProperty(exports, "Reference", {
24
24
  Object.defineProperty(exports, "placements", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _Popper.placements;
27
+ return _popper.placements;
28
28
  }
29
29
  });
30
30
 
31
- var _Popper = require("./Popper");
31
+ var _popper = require("./popper");
32
32
 
33
33
  var _reactPopper = require("react-popper");
File without changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "sideEffects": false
5
5
  }
@@ -1,2 +1,2 @@
1
- export { Popper, placements } from './Popper';
1
+ export { Popper, placements } from './popper';
2
2
  export { Manager, Reference } from 'react-popper';
File without changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Popper, placements } from './Popper';
1
+ export { Popper, placements } from './popper';
2
2
  export { Manager, Reference } from 'react-popper';
File without changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,3 @@
1
- export { Popper, placements } from './Popper';
2
- export type { ManagerProps, ReferenceProps, PopperProps, PopperArrowProps, PopperChildrenProps, StrictModifier, Modifier, Placement, } from './Popper';
1
+ export { Popper, placements } from './popper';
2
+ export type { ManagerProps, ReferenceProps, PopperProps, PopperArrowProps, PopperChildrenProps, StrictModifier, Modifier, Placement, } from './popper';
3
3
  export { Manager, Reference } from 'react-popper';
@@ -5,7 +5,7 @@ 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
  declare type Offset = [number | null | undefined, number | null | undefined];
8
- export interface Props<Modifiers> {
8
+ export interface CustomPopperProps<Modifiers> {
9
9
  /**
10
10
  * Returns the element to be positioned.
11
11
  */
@@ -33,4 +33,4 @@ export interface Props<Modifiers> {
33
33
  */
34
34
  strategy?: PopperProps<Modifiers>['strategy'];
35
35
  }
36
- export declare function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, }: Props<CustomModifiers>): JSX.Element;
36
+ 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.6",
3
+ "version": "5.2.7",
4
4
  "description": "Wrapper for react-popper with common config and some helpers",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -13,7 +13,7 @@
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
15
  "sideEffects": false,
16
- "atlaskit:src": "src/index.ts",
16
+ "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
19
  "releaseModel": "scheduled",
@@ -23,8 +23,8 @@
23
23
  }
24
24
  },
25
25
  "af:exports": {
26
- ".": "./src/index.ts",
27
- "./Popper": "./src/Popper.tsx"
26
+ ".": "./src/index.tsx",
27
+ "./Popper": "./src/popper.tsx"
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.0.0",
@@ -37,6 +37,7 @@
37
37
  "devDependencies": {
38
38
  "@atlaskit/button": "^16.3.0",
39
39
  "@atlaskit/docs": "*",
40
+ "@atlaskit/ds-lib": "^2.1.0",
40
41
  "@atlaskit/ssr": "*",
41
42
  "@atlaskit/theme": "^12.1.0",
42
43
  "@atlaskit/visual-regression": "*",
@@ -61,6 +62,7 @@
61
62
  },
62
63
  "@repo/internal": {
63
64
  "dom-events": "use-bind-event-listener",
65
+ "design-system": "v1",
64
66
  "ui-components": "lite-mode",
65
67
  "analytics": "analytics-next",
66
68
  "theming": "tokens",