@atlaskit/editor-plugin-insert-block 1.5.1 → 1.5.2

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,13 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 1.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#121899](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121899)
8
+ [`3677f60eb34a2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3677f60eb34a2) -
9
+ [ux] Fix editor emoji selection in React 18.
10
+
3
11
  ## 1.5.1
4
12
 
5
13
  ### Patch Changes
@@ -528,8 +528,10 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
528
528
  return null;
529
529
  }
530
530
  var onUnmount = function onUnmount() {
531
- var _this3$props$pluginIn;
532
- return (_this3$props$pluginIn = _this3.props.pluginInjectionApi) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.core) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.actions) === null || _this3$props$pluginIn === void 0 ? void 0 : _this3$props$pluginIn.focus();
531
+ requestAnimationFrame(function () {
532
+ var _this3$props$pluginIn;
533
+ return (_this3$props$pluginIn = _this3.props.pluginInjectionApi) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.core) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.actions) === null || _this3$props$pluginIn === void 0 ? void 0 : _this3$props$pluginIn.focus();
534
+ });
533
535
  };
534
536
  return (0, _react2.jsx)(_ui.Popup, {
535
537
  target: ref,
@@ -586,8 +586,10 @@ export class ToolbarInsertBlock extends React.PureComponent {
586
586
  return null;
587
587
  }
588
588
  const onUnmount = () => {
589
- var _this$props$pluginInj, _this$props$pluginInj2, _this$props$pluginInj3;
590
- return (_this$props$pluginInj = this.props.pluginInjectionApi) === null || _this$props$pluginInj === void 0 ? void 0 : (_this$props$pluginInj2 = _this$props$pluginInj.core) === null || _this$props$pluginInj2 === void 0 ? void 0 : (_this$props$pluginInj3 = _this$props$pluginInj2.actions) === null || _this$props$pluginInj3 === void 0 ? void 0 : _this$props$pluginInj3.focus();
589
+ requestAnimationFrame(() => {
590
+ var _this$props$pluginInj, _this$props$pluginInj2, _this$props$pluginInj3;
591
+ return (_this$props$pluginInj = this.props.pluginInjectionApi) === null || _this$props$pluginInj === void 0 ? void 0 : (_this$props$pluginInj2 = _this$props$pluginInj.core) === null || _this$props$pluginInj2 === void 0 ? void 0 : (_this$props$pluginInj3 = _this$props$pluginInj2.actions) === null || _this$props$pluginInj3 === void 0 ? void 0 : _this$props$pluginInj3.focus();
592
+ });
591
593
  };
592
594
  return jsx(Popup, {
593
595
  target: ref,
@@ -519,8 +519,10 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
519
519
  return null;
520
520
  }
521
521
  var onUnmount = function onUnmount() {
522
- var _this3$props$pluginIn;
523
- return (_this3$props$pluginIn = _this3.props.pluginInjectionApi) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.core) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.actions) === null || _this3$props$pluginIn === void 0 ? void 0 : _this3$props$pluginIn.focus();
522
+ requestAnimationFrame(function () {
523
+ var _this3$props$pluginIn;
524
+ return (_this3$props$pluginIn = _this3.props.pluginInjectionApi) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.core) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.actions) === null || _this3$props$pluginIn === void 0 ? void 0 : _this3$props$pluginIn.focus();
525
+ });
524
526
  };
525
527
  return jsx(Popup, {
526
528
  target: ref,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^86.0.0",
36
+ "@atlaskit/editor-common": "^86.2.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
38
38
  "@atlaskit/editor-plugin-block-type": "^3.8.0",
39
39
  "@atlaskit/editor-plugin-code-block": "^3.0.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
53
53
  "@atlaskit/editor-plugin-rule": "^1.5.0",
54
54
  "@atlaskit/editor-plugin-status": "^2.1.0",
55
- "@atlaskit/editor-plugin-table": "^7.20.0",
55
+ "@atlaskit/editor-plugin-table": "^7.21.0",
56
56
  "@atlaskit/editor-plugin-tasks-and-decisions": "^2.1.0",
57
57
  "@atlaskit/editor-plugin-type-ahead": "^1.4.0",
58
58
  "@atlaskit/editor-prosemirror": "4.0.1",
@@ -61,7 +61,7 @@
61
61
  "@atlaskit/icon": "^22.6.0",
62
62
  "@atlaskit/primitives": "^11.0.0",
63
63
  "@atlaskit/theme": "^12.11.0",
64
- "@atlaskit/tokens": "^1.55.0",
64
+ "@atlaskit/tokens": "^1.56.0",
65
65
  "@babel/runtime": "^7.0.0",
66
66
  "@emotion/react": "^11.7.1",
67
67
  "bind-event-listener": "^3.0.0",