@atlaskit/editor-plugin-expand 0.1.7 → 0.1.9

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/editor-plugin-expand
2
2
 
3
+ ## 0.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.1.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
14
+
3
15
  ## 0.1.7
4
16
 
5
17
  ### Patch Changes
@@ -15,6 +15,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
15
15
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
16
16
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
17
17
  var _react = _interopRequireWildcard(require("react"));
18
+ var _react2 = require("@emotion/react");
18
19
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
19
20
  var _styles = require("@atlaskit/editor-common/styles");
20
21
  var _ui = require("@atlaskit/editor-common/ui");
@@ -27,7 +28,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
27
28
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
29
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
30
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
30
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
31
32
  var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
32
33
  return /*#__PURE__*/function (_React$Component) {
33
34
  (0, _inherits2.default)(WithSortableColumn, _React$Component);
@@ -40,11 +41,11 @@ var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
40
41
  key: "render",
41
42
  value: function render() {
42
43
  var label = this.props.label;
43
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
44
+ return (0, _react2.jsx)(_tooltip.default, {
44
45
  content: label,
45
46
  position: "top",
46
47
  tag: _ui.ExpandLayoutWrapperWithRef
47
- }, /*#__PURE__*/_react.default.createElement(WrapperComponent, this.props));
48
+ }, (0, _react2.jsx)(WrapperComponent, this.props));
48
49
  }
49
50
  }]);
50
51
  return WithSortableColumn;
@@ -67,10 +68,10 @@ var CustomButton = exports.CustomButton = function CustomButton(props) {
67
68
  })
68
69
  }, rest);
69
70
  }, [props]);
70
- return /*#__PURE__*/_react.default.createElement(_customThemeButton.default, {
71
+ return (0, _react2.jsx)(_customThemeButton.default, {
71
72
  appearance: "subtle",
72
73
  className: _styles.expandClassNames.iconContainer,
73
- iconBefore: /*#__PURE__*/_react.default.createElement(_chevronRight.default, {
74
+ iconBefore: (0, _react2.jsx)(_chevronRight.default, {
74
75
  label: label
75
76
  }),
76
77
  shouldFitContainer: true,
@@ -91,16 +92,15 @@ var ExpandIconButton = exports.ExpandIconButton = function ExpandIconButton(prop
91
92
 
92
93
  // hoverEventCheck is to disable tooltips for mobile to prevent incorrect hover state causing issues on iOS
93
94
  if (props.allowInteractiveExpand && hoverEventCheck) {
94
- return /*#__PURE__*/_react.default.createElement(ButtonWithTooltip, (0, _extends2.default)({
95
+ return (0, _react2.jsx)(ButtonWithTooltip, (0, _extends2.default)({
95
96
  label: label
96
97
  }, props));
97
98
  }
98
99
  return (
99
- /*#__PURE__*/
100
100
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
101
- _react.default.createElement("div", {
101
+ (0, _react2.jsx)("div", {
102
102
  css: _ui.expandLayoutWrapperStyle
103
- }, /*#__PURE__*/_react.default.createElement(ButtonWithoutTooltip, (0, _extends2.default)({
103
+ }, (0, _react2.jsx)(ButtonWithoutTooltip, (0, _extends2.default)({
104
104
  label: label
105
105
  }, props)))
106
106
  );
@@ -1,5 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /** @jsx jsx */
2
3
  import React, { useCallback } from 'react';
4
+ import { jsx } from '@emotion/react';
3
5
  import Button from '@atlaskit/button/custom-theme-button';
4
6
  import { expandClassNames } from '@atlaskit/editor-common/styles';
5
7
  import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
@@ -15,11 +17,11 @@ export const withTooltip = WrapperComponent => {
15
17
  const {
16
18
  label
17
19
  } = this.props;
18
- return /*#__PURE__*/React.createElement(Tooltip, {
20
+ return jsx(Tooltip, {
19
21
  content: label,
20
22
  position: "top",
21
23
  tag: ExpandLayoutWrapperWithRef
22
- }, /*#__PURE__*/React.createElement(WrapperComponent, this.props));
24
+ }, jsx(WrapperComponent, this.props));
23
25
  }
24
26
  };
25
27
  };
@@ -45,10 +47,10 @@ export const CustomButton = props => {
45
47
  ...rest
46
48
  };
47
49
  }, [props]);
48
- return /*#__PURE__*/React.createElement(Button, {
50
+ return jsx(Button, {
49
51
  appearance: "subtle",
50
52
  className: expandClassNames.iconContainer,
51
- iconBefore: /*#__PURE__*/React.createElement(ChevronRightIcon, {
53
+ iconBefore: jsx(ChevronRightIcon, {
52
54
  label: label
53
55
  }),
54
56
  shouldFitContainer: true,
@@ -71,16 +73,15 @@ export const ExpandIconButton = props => {
71
73
 
72
74
  // hoverEventCheck is to disable tooltips for mobile to prevent incorrect hover state causing issues on iOS
73
75
  if (props.allowInteractiveExpand && hoverEventCheck) {
74
- return /*#__PURE__*/React.createElement(ButtonWithTooltip, _extends({
76
+ return jsx(ButtonWithTooltip, _extends({
75
77
  label: label
76
78
  }, props));
77
79
  }
78
80
  return (
79
- /*#__PURE__*/
80
81
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
81
- React.createElement("div", {
82
+ jsx("div", {
82
83
  css: expandLayoutWrapperStyle
83
- }, /*#__PURE__*/React.createElement(ButtonWithoutTooltip, _extends({
84
+ }, jsx(ButtonWithoutTooltip, _extends({
84
85
  label: label
85
86
  }, props)))
86
87
  );
@@ -11,7 +11,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
13
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
14
+ /** @jsx jsx */
14
15
  import React, { useCallback } from 'react';
16
+ import { jsx } from '@emotion/react';
15
17
  import Button from '@atlaskit/button/custom-theme-button';
16
18
  import { expandClassNames } from '@atlaskit/editor-common/styles';
17
19
  import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
@@ -30,11 +32,11 @@ export var withTooltip = function withTooltip(WrapperComponent) {
30
32
  key: "render",
31
33
  value: function render() {
32
34
  var label = this.props.label;
33
- return /*#__PURE__*/React.createElement(Tooltip, {
35
+ return jsx(Tooltip, {
34
36
  content: label,
35
37
  position: "top",
36
38
  tag: ExpandLayoutWrapperWithRef
37
- }, /*#__PURE__*/React.createElement(WrapperComponent, this.props));
39
+ }, jsx(WrapperComponent, this.props));
38
40
  }
39
41
  }]);
40
42
  return WithSortableColumn;
@@ -57,10 +59,10 @@ export var CustomButton = function CustomButton(props) {
57
59
  })
58
60
  }, rest);
59
61
  }, [props]);
60
- return /*#__PURE__*/React.createElement(Button, {
62
+ return jsx(Button, {
61
63
  appearance: "subtle",
62
64
  className: expandClassNames.iconContainer,
63
- iconBefore: /*#__PURE__*/React.createElement(ChevronRightIcon, {
65
+ iconBefore: jsx(ChevronRightIcon, {
64
66
  label: label
65
67
  }),
66
68
  shouldFitContainer: true,
@@ -81,16 +83,15 @@ export var ExpandIconButton = function ExpandIconButton(props) {
81
83
 
82
84
  // hoverEventCheck is to disable tooltips for mobile to prevent incorrect hover state causing issues on iOS
83
85
  if (props.allowInteractiveExpand && hoverEventCheck) {
84
- return /*#__PURE__*/React.createElement(ButtonWithTooltip, _extends({
86
+ return jsx(ButtonWithTooltip, _extends({
85
87
  label: label
86
88
  }, props));
87
89
  }
88
90
  return (
89
- /*#__PURE__*/
90
91
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
91
- React.createElement("div", {
92
+ jsx("div", {
92
93
  css: expandLayoutWrapperStyle
93
- }, /*#__PURE__*/React.createElement(ButtonWithoutTooltip, _extends({
94
+ }, jsx(ButtonWithoutTooltip, _extends({
94
95
  label: label
95
96
  }, props)))
96
97
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^35.0.0",
35
- "@atlaskit/button": "^16.17.0",
36
- "@atlaskit/editor-common": "^76.24.0",
37
- "@atlaskit/editor-plugin-analytics": "^0.3.0",
35
+ "@atlaskit/button": "^16.18.0",
36
+ "@atlaskit/editor-common": "^76.26.0",
37
+ "@atlaskit/editor-plugin-analytics": "^0.4.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^1.0.1",
40
40
  "@atlaskit/editor-plugin-selection": "^0.1.0",
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/editor-plugin-guideline": "^0.5.0",
59
59
  "@atlaskit/editor-plugin-quick-insert": "^0.2.0",
60
60
  "@atlaskit/editor-plugin-table": "^5.4.0",
61
- "@atlaskit/editor-plugin-type-ahead": "^0.7.0",
61
+ "@atlaskit/editor-plugin-type-ahead": "^0.8.0",
62
62
  "@atlaskit/editor-plugin-width": "^0.2.0",
63
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
64
64
  "@testing-library/react": "^12.1.5",