@atlaskit/editor-plugin-placeholder-text 0.1.5 → 0.1.6

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/editor-plugin-placeholder-text
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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).
8
+
3
9
  ## 0.1.5
4
10
 
5
11
  ### Patch Changes
@@ -29,11 +29,12 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
29
29
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
30
30
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
31
31
  var _react = require("react");
32
+ var _react2 = require("@emotion/react");
32
33
  var _ui = require("@atlaskit/editor-common/ui");
33
34
  var _styles = require("./styles");
34
35
  var _utils = require("./utils");
35
36
  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); }; }
36
- 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; } } /* eslint-disable @atlaskit/design-system/prefer-primitives */
37
+ 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; } } /* eslint-disable @atlaskit/design-system/prefer-primitives */ /** @jsx jsx */
37
38
  // eslint-disable-next-line @repo/internal/react/no-class-components
38
39
  var FloatingToolbar = exports.default = /*#__PURE__*/function (_PureComponent) {
39
40
  (0, _inherits2.default)(FloatingToolbar, _PureComponent);
@@ -63,7 +64,7 @@ var FloatingToolbar = exports.default = /*#__PURE__*/function (_PureComponent) {
63
64
  if (!target) {
64
65
  return null;
65
66
  }
66
- return /*#__PURE__*/React.createElement(_ui.Popup, {
67
+ return (0, _react2.jsx)(_ui.Popup, {
67
68
  absoluteOffset: absoluteOffset,
68
69
  alignX: alignX,
69
70
  alignY: alignY,
@@ -75,7 +76,7 @@ var FloatingToolbar = exports.default = /*#__PURE__*/function (_PureComponent) {
75
76
  fitWidth: fitWidth,
76
77
  fitHeight: fitHeight,
77
78
  onPositionCalculated: onPositionCalculated
78
- }, /*#__PURE__*/React.createElement("div", {
79
+ }, (0, _react2.jsx)("div", {
79
80
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
80
81
  css: (0, _styles.container)(fitHeight),
81
82
  "data-testid": "popup-container",
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
2
-
2
+ /** @jsx jsx */
3
3
  import { PureComponent } from 'react';
4
+ import { jsx } from '@emotion/react';
4
5
  import { Popup } from '@atlaskit/editor-common/ui';
5
6
  import { container } from './styles';
6
7
  export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode } from './utils';
@@ -26,7 +27,7 @@ export default class FloatingToolbar extends PureComponent {
26
27
  if (!target) {
27
28
  return null;
28
29
  }
29
- return /*#__PURE__*/React.createElement(Popup, {
30
+ return jsx(Popup, {
30
31
  absoluteOffset: absoluteOffset,
31
32
  alignX: alignX,
32
33
  alignY: alignY,
@@ -38,7 +39,7 @@ export default class FloatingToolbar extends PureComponent {
38
39
  fitWidth: fitWidth,
39
40
  fitHeight: fitHeight,
40
41
  onPositionCalculated: onPositionCalculated
41
- }, /*#__PURE__*/React.createElement("div", {
42
+ }, jsx("div", {
42
43
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
43
44
  css: container(fitHeight),
44
45
  "data-testid": "popup-container",
@@ -6,8 +6,9 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  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); }; }
7
7
  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; } }
8
8
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
9
-
9
+ /** @jsx jsx */
10
10
  import { PureComponent } from 'react';
11
+ import { jsx } from '@emotion/react';
11
12
  import { Popup } from '@atlaskit/editor-common/ui';
12
13
  import { container } from './styles';
13
14
  export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode } from './utils';
@@ -41,7 +42,7 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
41
42
  if (!target) {
42
43
  return null;
43
44
  }
44
- return /*#__PURE__*/React.createElement(Popup, {
45
+ return jsx(Popup, {
45
46
  absoluteOffset: absoluteOffset,
46
47
  alignX: alignX,
47
48
  alignY: alignY,
@@ -53,7 +54,7 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
53
54
  fitWidth: fitWidth,
54
55
  fitHeight: fitHeight,
55
56
  onPositionCalculated: onPositionCalculated
56
- }, /*#__PURE__*/React.createElement("div", {
57
+ }, jsx("div", {
57
58
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
58
59
  css: container(fitHeight),
59
60
  "data-testid": "popup-container",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder-text",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "placeholder text plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@atlaskit/adf-schema": "^35.0.0",
24
- "@atlaskit/editor-common": "^76.24.0",
24
+ "@atlaskit/editor-common": "^76.25.0",
25
25
  "@atlaskit/editor-plugin-analytics": "^0.3.0",
26
26
  "@atlaskit/editor-plugin-type-ahead": "^0.7.0",
27
27
  "@atlaskit/editor-prosemirror": "1.1.0",