@atlaskit/popper 5.4.10 → 5.4.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,11 @@
1
1
  # @atlaskit/popper
2
2
 
3
+ ## 5.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d84f56e6e50`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d84f56e6e50) - Remove the unused feature flag
8
+
3
9
  ## 5.4.10
4
10
 
5
11
  ### Patch Changes
@@ -23,8 +23,6 @@ var _react = _interopRequireWildcard(require("react"));
23
23
 
24
24
  var _reactPopper = require("react-popper");
25
25
 
26
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
27
-
28
26
  var _core = require("@popperjs/core");
29
27
 
30
28
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -52,14 +50,6 @@ function defaultChildrenFn() {
52
50
  }
53
51
 
54
52
  var defaultOffset = [0, 8];
55
- var siblingElement = null;
56
-
57
- if ((0, _platformFeatureFlags.getBooleanFF)('uip.popper.flex-team')) {
58
- siblingElement = /*#__PURE__*/_react.default.createElement("em", {
59
- hidden: true,
60
- "data-flex": "Hello from UIP"
61
- });
62
- }
63
53
 
64
54
  function Popper(_ref) {
65
55
  var _ref$children = _ref.children,
@@ -96,13 +86,10 @@ function Popper(_ref) {
96
86
 
97
87
  return [].concat((0, _toConsumableArray2.default)(internalModifiers), (0, _toConsumableArray2.default)(modifiers));
98
88
  }, [internalModifiers, modifiers]);
99
- var wrappedChildren = (0, _react.useCallback)(function (childrenProps) {
100
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, siblingElement, children(childrenProps));
101
- }, [children]);
102
89
  return /*#__PURE__*/_react.default.createElement(_reactPopper.Popper, {
103
90
  modifiers: mergedModifiers,
104
91
  placement: placement,
105
92
  strategy: strategy,
106
93
  referenceElement: referenceElement
107
- }, wrappedChildren);
94
+ }, children);
108
95
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.4.10",
3
+ "version": "5.4.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,5 @@
1
- import React, { Fragment, useCallback, useMemo } from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import { Popper as ReactPopper } from 'react-popper';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  export { placements } from '@popperjs/core'; // Export types from PopperJS / React Popper
5
4
 
6
5
  const constantModifiers = [{
@@ -24,15 +23,6 @@ function defaultChildrenFn() {
24
23
  }
25
24
 
26
25
  const defaultOffset = [0, 8];
27
- let siblingElement = null;
28
-
29
- if (getBooleanFF('uip.popper.flex-team')) {
30
- siblingElement = /*#__PURE__*/React.createElement("em", {
31
- hidden: true,
32
- "data-flex": "Hello from UIP"
33
- });
34
- }
35
-
36
26
  export function Popper({
37
27
  children = defaultChildrenFn,
38
28
  offset = defaultOffset,
@@ -60,13 +50,10 @@ export function Popper({
60
50
 
61
51
  return [...internalModifiers, ...modifiers];
62
52
  }, [internalModifiers, modifiers]);
63
- const wrappedChildren = useCallback(childrenProps => {
64
- return /*#__PURE__*/React.createElement(Fragment, null, siblingElement, children(childrenProps));
65
- }, [children]);
66
53
  return /*#__PURE__*/React.createElement(ReactPopper, {
67
54
  modifiers: mergedModifiers,
68
55
  placement: placement,
69
56
  strategy: strategy,
70
57
  referenceElement: referenceElement
71
- }, wrappedChildren);
58
+ }, children);
72
59
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.4.10",
3
+ "version": "5.4.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,8 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- import React, { Fragment, useCallback, useMemo } from 'react';
3
+ import React, { useMemo } from 'react';
4
4
  import { Popper as ReactPopper } from 'react-popper';
5
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
5
  export { placements } from '@popperjs/core'; // Export types from PopperJS / React Popper
7
6
 
8
7
  var constantModifiers = [{
@@ -26,15 +25,6 @@ function defaultChildrenFn() {
26
25
  }
27
26
 
28
27
  var defaultOffset = [0, 8];
29
- var siblingElement = null;
30
-
31
- if (getBooleanFF('uip.popper.flex-team')) {
32
- siblingElement = /*#__PURE__*/React.createElement("em", {
33
- hidden: true,
34
- "data-flex": "Hello from UIP"
35
- });
36
- }
37
-
38
28
  export function Popper(_ref) {
39
29
  var _ref$children = _ref.children,
40
30
  children = _ref$children === void 0 ? defaultChildrenFn : _ref$children,
@@ -70,13 +60,10 @@ export function Popper(_ref) {
70
60
 
71
61
  return [].concat(_toConsumableArray(internalModifiers), _toConsumableArray(modifiers));
72
62
  }, [internalModifiers, modifiers]);
73
- var wrappedChildren = useCallback(function (childrenProps) {
74
- return /*#__PURE__*/React.createElement(Fragment, null, siblingElement, children(childrenProps));
75
- }, [children]);
76
63
  return /*#__PURE__*/React.createElement(ReactPopper, {
77
64
  modifiers: mergedModifiers,
78
65
  placement: placement,
79
66
  strategy: strategy,
80
67
  referenceElement: referenceElement
81
- }, wrappedChildren);
68
+ }, children);
82
69
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.4.10",
3
+ "version": "5.4.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.4.10",
3
+ "version": "5.4.11",
4
4
  "description": "Wrapper for react-popper with common config and some helpers",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,7 +23,7 @@
23
23
  "sideEffects": false,
24
24
  "atlaskit:src": "src/index.tsx",
25
25
  "atlassian": {
26
- "team": "UIP: Cycle Time Flex",
26
+ "team": "Design System Team",
27
27
  "releaseModel": "continuous",
28
28
  "productPushConsumption": [
29
29
  "jira"
@@ -40,7 +40,6 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@atlaskit/in-product-testing": "^0.1.5",
43
- "@atlaskit/platform-feature-flags": "^0.0.12",
44
43
  "@babel/runtime": "^7.0.0",
45
44
  "@popperjs/core": "^2.9.1",
46
45
  "react-popper": "^2.2.3"
@@ -89,10 +88,5 @@
89
88
  }
90
89
  },
91
90
  "homepage": "https://atlaskit.atlassian.com/packages/design-system/popper",
92
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
93
- "platform-feature-flags": {
94
- "uip.popper.flex-team": {
95
- "type": "boolean"
96
- }
97
- }
91
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
98
92
  }