@atlaskit/editor-plugin-synced-block 20.1.3 → 20.1.5
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 20.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 20.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`feeef61c773db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/feeef61c773db) -
|
|
14
|
+
Clean up feature gate `platform_editor_blocks_patch_7`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 20.1.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -25,7 +25,6 @@ var _modalFooter = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-
|
|
|
25
25
|
var _modalHeader = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-header"));
|
|
26
26
|
var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
|
|
27
27
|
var _modalTransition = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-transition"));
|
|
28
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
29
28
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
30
29
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
31
30
|
var _main = require("../pm-plugins/main");
|
|
@@ -123,7 +122,7 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
123
122
|
// never fires because clicking Delete closes the menu. It stays for the lifetime of this
|
|
124
123
|
// modal so the block being deleted remains highlighted, and confirming drops it along
|
|
125
124
|
// with the node, but cancelling has to clear it or the red highlight is left behind.
|
|
126
|
-
if (!confirm && editorView
|
|
125
|
+
if (!confirm && editorView) {
|
|
127
126
|
var _api$decorations;
|
|
128
127
|
api === null || api === void 0 || (_api$decorations = api.decorations) === null || _api$decorations === void 0 || _api$decorations.actions.removeDecoration(editorView.state, editorView.dispatch);
|
|
129
128
|
}
|
|
@@ -344,7 +343,7 @@ var ModalContent = function ModalContent(_ref0) {
|
|
|
344
343
|
confirmButtonLabel = content.confirmButtonLabel;
|
|
345
344
|
var hasNoReferenceOrFailToFetch = referenceCount === 0;
|
|
346
345
|
var totalLocationCount = deleteReason === 'source-block-deleted' ? referenceCount + sourceCount : referenceCount;
|
|
347
|
-
var isReferenceCountDescriptionEnabled = deleteReason === 'source-block-deleted'
|
|
346
|
+
var isReferenceCountDescriptionEnabled = deleteReason === 'source-block-deleted';
|
|
348
347
|
var descriptionLocationCount = isReferenceCountDescriptionEnabled ? referenceCount : totalLocationCount;
|
|
349
348
|
var descriptionMultipleMessage = isReferenceCountDescriptionEnabled ? _messages.syncBlockMessages.deletionConfirmationModalDescriptionReferenceCount : descriptionMultiple;
|
|
350
349
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_modalHeader.default, {
|
|
@@ -13,7 +13,6 @@ import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
|
13
13
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
14
14
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
15
15
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
16
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
18
17
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
19
18
|
import { syncedBlockPluginKey } from '../pm-plugins/main';
|
|
@@ -100,7 +99,7 @@ export const DeleteConfirmationModal = ({
|
|
|
100
99
|
// never fires because clicking Delete closes the menu. It stays for the lifetime of this
|
|
101
100
|
// modal so the block being deleted remains highlighted, and confirming drops it along
|
|
102
101
|
// with the node, but cancelling has to clear it or the red highlight is left behind.
|
|
103
|
-
if (!confirm && editorView
|
|
102
|
+
if (!confirm && editorView) {
|
|
104
103
|
var _api$decorations;
|
|
105
104
|
api === null || api === void 0 ? void 0 : (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.removeDecoration(editorView.state, editorView.dispatch);
|
|
106
105
|
}
|
|
@@ -272,7 +271,7 @@ const ModalContent = ({
|
|
|
272
271
|
} = content;
|
|
273
272
|
const hasNoReferenceOrFailToFetch = referenceCount === 0;
|
|
274
273
|
const totalLocationCount = deleteReason === 'source-block-deleted' ? referenceCount + sourceCount : referenceCount;
|
|
275
|
-
const isReferenceCountDescriptionEnabled = deleteReason === 'source-block-deleted'
|
|
274
|
+
const isReferenceCountDescriptionEnabled = deleteReason === 'source-block-deleted';
|
|
276
275
|
const descriptionLocationCount = isReferenceCountDescriptionEnabled ? referenceCount : totalLocationCount;
|
|
277
276
|
const descriptionMultipleMessage = isReferenceCountDescriptionEnabled ? messages.deletionConfirmationModalDescriptionReferenceCount : descriptionMultiple;
|
|
278
277
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
@@ -19,7 +19,6 @@ import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
|
19
19
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
20
20
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
21
21
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
23
22
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
24
23
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
25
24
|
import { syncedBlockPluginKey } from '../pm-plugins/main';
|
|
@@ -115,7 +114,7 @@ export var DeleteConfirmationModal = function DeleteConfirmationModal(_ref) {
|
|
|
115
114
|
// never fires because clicking Delete closes the menu. It stays for the lifetime of this
|
|
116
115
|
// modal so the block being deleted remains highlighted, and confirming drops it along
|
|
117
116
|
// with the node, but cancelling has to clear it or the red highlight is left behind.
|
|
118
|
-
if (!confirm && editorView
|
|
117
|
+
if (!confirm && editorView) {
|
|
119
118
|
var _api$decorations;
|
|
120
119
|
api === null || api === void 0 || (_api$decorations = api.decorations) === null || _api$decorations === void 0 || _api$decorations.actions.removeDecoration(editorView.state, editorView.dispatch);
|
|
121
120
|
}
|
|
@@ -336,7 +335,7 @@ var ModalContent = function ModalContent(_ref0) {
|
|
|
336
335
|
confirmButtonLabel = content.confirmButtonLabel;
|
|
337
336
|
var hasNoReferenceOrFailToFetch = referenceCount === 0;
|
|
338
337
|
var totalLocationCount = deleteReason === 'source-block-deleted' ? referenceCount + sourceCount : referenceCount;
|
|
339
|
-
var isReferenceCountDescriptionEnabled = deleteReason === 'source-block-deleted'
|
|
338
|
+
var isReferenceCountDescriptionEnabled = deleteReason === 'source-block-deleted';
|
|
340
339
|
var descriptionLocationCount = isReferenceCountDescriptionEnabled ? referenceCount : totalLocationCount;
|
|
341
340
|
var descriptionMultipleMessage = isReferenceCountDescriptionEnabled ? messages.deletionConfirmationModalDescriptionReferenceCount : descriptionMultiple;
|
|
342
341
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalHeader, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.5",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/adf-schema": "^57.6.0",
|
|
24
24
|
"@atlaskit/button": "25.4.3",
|
|
25
|
-
"@atlaskit/dropdown-menu": "20.0.
|
|
25
|
+
"@atlaskit/dropdown-menu": "20.0.1",
|
|
26
26
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^22.0.0",
|
|
28
28
|
"@atlaskit/editor-plugin-block-controls": "^23.0.0",
|
|
@@ -78,9 +78,6 @@
|
|
|
78
78
|
"confluence_fronend_labels_categorization_migration": {
|
|
79
79
|
"type": "boolean"
|
|
80
80
|
},
|
|
81
|
-
"platform_editor_blocks_patch_7": {
|
|
82
|
-
"type": "boolean"
|
|
83
|
-
},
|
|
84
81
|
"platform_editor_blocks_patch_8": {
|
|
85
82
|
"type": "boolean"
|
|
86
83
|
}
|