@atlaskit/editor-plugin-synced-block 4.2.0 → 4.2.1

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,12 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`88512cf867666`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88512cf867666) -
8
+ [ux] EDITOR-2751 fix focus not inside sync block after insert sync block from block menu
9
+
3
10
  ## 4.2.0
4
11
 
5
12
  ### Minor Changes
@@ -58,6 +58,9 @@
58
58
  {
59
59
  "path": "../../../design-system/icon/afm-jira/tsconfig.json"
60
60
  },
61
+ {
62
+ "path": "../../../design-system/icon-lab/afm-jira/tsconfig.json"
63
+ },
61
64
  {
62
65
  "path": "../../../design-system/logo/afm-jira/tsconfig.json"
63
66
  },
@@ -58,6 +58,9 @@
58
58
  {
59
59
  "path": "../../../design-system/icon/afm-products/tsconfig.json"
60
60
  },
61
+ {
62
+ "path": "../../../design-system/icon-lab/afm-products/tsconfig.json"
63
+ },
61
64
  {
62
65
  "path": "../../../design-system/logo/afm-products/tsconfig.json"
63
66
  },
@@ -23,21 +23,11 @@ var CreateSyncedBlockDropdownItem = exports.CreateSyncedBlockDropdownItem = func
23
23
  return null;
24
24
  }
25
25
  var onClick = function onClick() {
26
- var _api$core, _api$core2;
27
- api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(function (_ref2) {
28
- var _api$blockControls;
29
- var tr = _ref2.tr;
30
- api === null || api === void 0 || api.syncedBlock.commands.insertSyncedBlock()({
31
- tr: tr
32
- });
33
- api === null || api === void 0 || (_api$blockControls = api.blockControls) === null || _api$blockControls === void 0 || (_api$blockControls = _api$blockControls.commands) === null || _api$blockControls === void 0 || _api$blockControls.toggleBlockMenu({
34
- closeMenu: true
35
- })({
36
- tr: tr
37
- });
38
- return tr;
39
- });
40
- api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.focus();
26
+ var _api$core, _api$core2, _api$blockControls;
27
+ api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 ? void 0 : api.syncedBlock.commands.insertSyncedBlock());
28
+ api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.execute(api === null || api === void 0 || (_api$blockControls = api.blockControls) === null || _api$blockControls === void 0 || (_api$blockControls = _api$blockControls.commands) === null || _api$blockControls === void 0 ? void 0 : _api$blockControls.toggleBlockMenu({
29
+ closeMenu: true
30
+ }));
41
31
  };
42
32
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
43
33
  elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.SyncBlocksIcon, {
@@ -18,22 +18,11 @@ export const CreateSyncedBlockDropdownItem = ({
18
18
  return null;
19
19
  }
20
20
  const onClick = () => {
21
- var _api$core, _api$core2;
22
- api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(({
23
- tr
24
- }) => {
25
- var _api$blockControls, _api$blockControls$co;
26
- api === null || api === void 0 ? void 0 : api.syncedBlock.commands.insertSyncedBlock()({
27
- tr
28
- });
29
- api === null || api === void 0 ? void 0 : (_api$blockControls = api.blockControls) === null || _api$blockControls === void 0 ? void 0 : (_api$blockControls$co = _api$blockControls.commands) === null || _api$blockControls$co === void 0 ? void 0 : _api$blockControls$co.toggleBlockMenu({
30
- closeMenu: true
31
- })({
32
- tr
33
- });
34
- return tr;
35
- });
36
- api === null || api === void 0 ? void 0 : (_api$core2 = api.core) === null || _api$core2 === void 0 ? void 0 : _api$core2.actions.focus();
21
+ var _api$core, _api$core2, _api$blockControls, _api$blockControls$co;
22
+ api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : api.syncedBlock.commands.insertSyncedBlock());
23
+ api === null || api === void 0 ? void 0 : (_api$core2 = api.core) === null || _api$core2 === void 0 ? void 0 : _api$core2.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockControls = api.blockControls) === null || _api$blockControls === void 0 ? void 0 : (_api$blockControls$co = _api$blockControls.commands) === null || _api$blockControls$co === void 0 ? void 0 : _api$blockControls$co.toggleBlockMenu({
24
+ closeMenu: true
25
+ }));
37
26
  };
38
27
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
39
28
  elemBefore: /*#__PURE__*/React.createElement(SyncBlocksIcon, {
@@ -16,21 +16,11 @@ export var CreateSyncedBlockDropdownItem = function CreateSyncedBlockDropdownIte
16
16
  return null;
17
17
  }
18
18
  var onClick = function onClick() {
19
- var _api$core, _api$core2;
20
- api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(function (_ref2) {
21
- var _api$blockControls;
22
- var tr = _ref2.tr;
23
- api === null || api === void 0 || api.syncedBlock.commands.insertSyncedBlock()({
24
- tr: tr
25
- });
26
- api === null || api === void 0 || (_api$blockControls = api.blockControls) === null || _api$blockControls === void 0 || (_api$blockControls = _api$blockControls.commands) === null || _api$blockControls === void 0 || _api$blockControls.toggleBlockMenu({
27
- closeMenu: true
28
- })({
29
- tr: tr
30
- });
31
- return tr;
32
- });
33
- api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.focus();
19
+ var _api$core, _api$core2, _api$blockControls;
20
+ api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 ? void 0 : api.syncedBlock.commands.insertSyncedBlock());
21
+ api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.execute(api === null || api === void 0 || (_api$blockControls = api.blockControls) === null || _api$blockControls === void 0 || (_api$blockControls = _api$blockControls.commands) === null || _api$blockControls === void 0 ? void 0 : _api$blockControls.toggleBlockMenu({
22
+ closeMenu: true
23
+ }));
34
24
  };
35
25
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
36
26
  elemBefore: /*#__PURE__*/React.createElement(SyncBlocksIcon, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",