@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 +7 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/ui/CreateSyncedBlockDropdownItem.js +5 -15
- package/dist/es2019/ui/CreateSyncedBlockDropdownItem.js +5 -16
- package/dist/esm/ui/CreateSyncedBlockDropdownItem.js +5 -15
- package/package.json +1 -1
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
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -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(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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, {
|