@atlaskit/editor-plugin-synced-block 5.3.25 → 5.3.26
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 +8 -0
- package/dist/cjs/ui/DeleteConfirmationModal.js +1 -18
- package/dist/cjs/ui/quick-insert.js +2 -5
- package/dist/es2019/ui/DeleteConfirmationModal.js +1 -18
- package/dist/es2019/ui/quick-insert.js +2 -5
- package/dist/esm/ui/DeleteConfirmationModal.js +1 -18
- package/dist/esm/ui/quick-insert.js +2 -5
- package/dist/types/ui/quick-insert.d.ts +1 -1
- package/dist/types-ts4.5/ui/quick-insert.d.ts +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 5.3.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`85444e8a5672a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85444e8a5672a) -
|
|
8
|
+
EDITOR-5526 clean up platform_synced_block_patch_2
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 5.3.25
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -19,28 +19,11 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
19
19
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
20
20
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
21
21
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
22
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
24
23
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
25
24
|
var _main = require("../pm-plugins/main");
|
|
26
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
27
26
|
var modalContentMap = {
|
|
28
|
-
'source-block-deleted': {
|
|
29
|
-
titleMultiple: _messages.syncBlockMessages.deleteConfirmationModalTitleMultiple,
|
|
30
|
-
titleSingle: _messages.syncBlockMessages.deleteConfirmationModalTitleSingle,
|
|
31
|
-
descriptionSingle: _messages.syncBlockMessages.deleteConfirmationModalDescriptionNoRef,
|
|
32
|
-
descriptionMultiple: _messages.syncBlockMessages.deleteConfirmationModalDescriptionMultiple,
|
|
33
|
-
confirmButtonLabel: _messages.syncBlockMessages.deleteConfirmationModalDeleteButton
|
|
34
|
-
},
|
|
35
|
-
'source-block-unsynced': {
|
|
36
|
-
titleMultiple: _messages.syncBlockMessages.unsyncConfirmationModalTitle,
|
|
37
|
-
titleSingle: _messages.syncBlockMessages.unsyncConfirmationModalTitle,
|
|
38
|
-
descriptionSingle: _messages.syncBlockMessages.unsyncConfirmationModalDescriptionSingle,
|
|
39
|
-
descriptionMultiple: _messages.syncBlockMessages.unsyncConfirmationModalDescriptionMultiple,
|
|
40
|
-
confirmButtonLabel: _messages.syncBlockMessages.deleteConfirmationModalUnsyncButton
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var modalContentMapNew = {
|
|
44
27
|
'source-block-deleted': {
|
|
45
28
|
titleMultiple: _messages.syncBlockMessages.deleteConfirmationModalTitleMultiple,
|
|
46
29
|
titleSingle: _messages.syncBlockMessages.deletionConfirmationModalTitleSingle,
|
|
@@ -226,7 +209,7 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
|
|
|
226
209
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
227
210
|
size: "large"
|
|
228
211
|
})) : /*#__PURE__*/_react.default.createElement(ModalContent, {
|
|
229
|
-
content:
|
|
212
|
+
content: modalContentMap[deleteReason],
|
|
230
213
|
referenceCount: referenceCount,
|
|
231
214
|
handleClick: handleClick,
|
|
232
215
|
formatMessage: formatMessage,
|
|
@@ -13,7 +13,6 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
15
15
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _editorCommands = require("../editor-commands");
|
|
18
17
|
var _types = require("../types");
|
|
19
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -32,13 +31,11 @@ var getQuickInsertConfig = exports.getQuickInsertConfig = function getQuickInser
|
|
|
32
31
|
keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'],
|
|
33
32
|
isDisabledOffline: true,
|
|
34
33
|
keyshortcut: '',
|
|
35
|
-
lozenge:
|
|
34
|
+
lozenge: /*#__PURE__*/React.createElement("span", {
|
|
36
35
|
className: (0, _runtime.ax)(["_1o9zidpf _16jlidpf _1e0c116y"])
|
|
37
36
|
}, /*#__PURE__*/React.createElement(_lozenge.default, {
|
|
38
37
|
appearance: "new"
|
|
39
|
-
}, formatMessage(_messages.blockTypeMessages.newLozenge)))
|
|
40
|
-
appearance: "new"
|
|
41
|
-
}, formatMessage(_messages.blockTypeMessages.newLozenge)),
|
|
38
|
+
}, formatMessage(_messages.blockTypeMessages.newLozenge))),
|
|
42
39
|
icon: function icon() {
|
|
43
40
|
return /*#__PURE__*/React.createElement(_quickInsert.IconSyncBlock, {
|
|
44
41
|
label: formatMessage(_messages.blockTypeMessages.syncedBlock)
|
|
@@ -8,27 +8,10 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
8
8
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
10
10
|
import ModalDialog, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import Spinner from '@atlaskit/spinner';
|
|
14
13
|
import { syncedBlockPluginKey } from '../pm-plugins/main';
|
|
15
14
|
const modalContentMap = {
|
|
16
|
-
'source-block-deleted': {
|
|
17
|
-
titleMultiple: messages.deleteConfirmationModalTitleMultiple,
|
|
18
|
-
titleSingle: messages.deleteConfirmationModalTitleSingle,
|
|
19
|
-
descriptionSingle: messages.deleteConfirmationModalDescriptionNoRef,
|
|
20
|
-
descriptionMultiple: messages.deleteConfirmationModalDescriptionMultiple,
|
|
21
|
-
confirmButtonLabel: messages.deleteConfirmationModalDeleteButton
|
|
22
|
-
},
|
|
23
|
-
'source-block-unsynced': {
|
|
24
|
-
titleMultiple: messages.unsyncConfirmationModalTitle,
|
|
25
|
-
titleSingle: messages.unsyncConfirmationModalTitle,
|
|
26
|
-
descriptionSingle: messages.unsyncConfirmationModalDescriptionSingle,
|
|
27
|
-
descriptionMultiple: messages.unsyncConfirmationModalDescriptionMultiple,
|
|
28
|
-
confirmButtonLabel: messages.deleteConfirmationModalUnsyncButton
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const modalContentMapNew = {
|
|
32
15
|
'source-block-deleted': {
|
|
33
16
|
titleMultiple: messages.deleteConfirmationModalTitleMultiple,
|
|
34
17
|
titleSingle: messages.deletionConfirmationModalTitleSingle,
|
|
@@ -165,7 +148,7 @@ export const DeleteConfirmationModal = ({
|
|
|
165
148
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
166
149
|
size: "large"
|
|
167
150
|
})) : /*#__PURE__*/React.createElement(ModalContent, {
|
|
168
|
-
content:
|
|
151
|
+
content: modalContentMap[deleteReason],
|
|
169
152
|
referenceCount: referenceCount,
|
|
170
153
|
handleClick: handleClick,
|
|
171
154
|
formatMessage: formatMessage,
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { IconSyncBlock } from '@atlaskit/editor-common/quick-insert';
|
|
7
7
|
import Lozenge from '@atlaskit/lozenge';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { createSyncedBlock } from '../editor-commands';
|
|
10
9
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
11
10
|
const lozengeWrapperStyles = null;
|
|
@@ -24,13 +23,11 @@ export const getQuickInsertConfig = (config, api, syncBlockStore) => {
|
|
|
24
23
|
keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'],
|
|
25
24
|
isDisabledOffline: true,
|
|
26
25
|
keyshortcut: '',
|
|
27
|
-
lozenge:
|
|
26
|
+
lozenge: /*#__PURE__*/React.createElement("span", {
|
|
28
27
|
className: ax(["_1o9zidpf _16jlidpf _1e0c116y"])
|
|
29
28
|
}, /*#__PURE__*/React.createElement(Lozenge, {
|
|
30
29
|
appearance: "new"
|
|
31
|
-
}, formatMessage(blockTypeMessages.newLozenge)))
|
|
32
|
-
appearance: "new"
|
|
33
|
-
}, formatMessage(blockTypeMessages.newLozenge)),
|
|
30
|
+
}, formatMessage(blockTypeMessages.newLozenge))),
|
|
34
31
|
icon: () => /*#__PURE__*/React.createElement(IconSyncBlock, {
|
|
35
32
|
label: formatMessage(blockTypeMessages.syncedBlock)
|
|
36
33
|
}),
|
|
@@ -11,27 +11,10 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
11
11
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
13
13
|
import ModalDialog, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { Text, Box } from '@atlaskit/primitives/compiled';
|
|
16
15
|
import Spinner from '@atlaskit/spinner';
|
|
17
16
|
import { syncedBlockPluginKey } from '../pm-plugins/main';
|
|
18
17
|
var modalContentMap = {
|
|
19
|
-
'source-block-deleted': {
|
|
20
|
-
titleMultiple: messages.deleteConfirmationModalTitleMultiple,
|
|
21
|
-
titleSingle: messages.deleteConfirmationModalTitleSingle,
|
|
22
|
-
descriptionSingle: messages.deleteConfirmationModalDescriptionNoRef,
|
|
23
|
-
descriptionMultiple: messages.deleteConfirmationModalDescriptionMultiple,
|
|
24
|
-
confirmButtonLabel: messages.deleteConfirmationModalDeleteButton
|
|
25
|
-
},
|
|
26
|
-
'source-block-unsynced': {
|
|
27
|
-
titleMultiple: messages.unsyncConfirmationModalTitle,
|
|
28
|
-
titleSingle: messages.unsyncConfirmationModalTitle,
|
|
29
|
-
descriptionSingle: messages.unsyncConfirmationModalDescriptionSingle,
|
|
30
|
-
descriptionMultiple: messages.unsyncConfirmationModalDescriptionMultiple,
|
|
31
|
-
confirmButtonLabel: messages.deleteConfirmationModalUnsyncButton
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
var modalContentMapNew = {
|
|
35
18
|
'source-block-deleted': {
|
|
36
19
|
titleMultiple: messages.deleteConfirmationModalTitleMultiple,
|
|
37
20
|
titleSingle: messages.deletionConfirmationModalTitleSingle,
|
|
@@ -217,7 +200,7 @@ export var DeleteConfirmationModal = function DeleteConfirmationModal(_ref) {
|
|
|
217
200
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
218
201
|
size: "large"
|
|
219
202
|
})) : /*#__PURE__*/React.createElement(ModalContent, {
|
|
220
|
-
content:
|
|
203
|
+
content: modalContentMap[deleteReason],
|
|
221
204
|
referenceCount: referenceCount,
|
|
222
205
|
handleClick: handleClick,
|
|
223
206
|
formatMessage: formatMessage,
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { IconSyncBlock } from '@atlaskit/editor-common/quick-insert';
|
|
7
7
|
import Lozenge from '@atlaskit/lozenge';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { createSyncedBlock } from '../editor-commands';
|
|
10
9
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
11
10
|
var lozengeWrapperStyles = null;
|
|
@@ -23,13 +22,11 @@ export var getQuickInsertConfig = function getQuickInsertConfig(config, api, syn
|
|
|
23
22
|
keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'],
|
|
24
23
|
isDisabledOffline: true,
|
|
25
24
|
keyshortcut: '',
|
|
26
|
-
lozenge:
|
|
25
|
+
lozenge: /*#__PURE__*/React.createElement("span", {
|
|
27
26
|
className: ax(["_1o9zidpf _16jlidpf _1e0c116y"])
|
|
28
27
|
}, /*#__PURE__*/React.createElement(Lozenge, {
|
|
29
28
|
appearance: "new"
|
|
30
|
-
}, formatMessage(blockTypeMessages.newLozenge)))
|
|
31
|
-
appearance: "new"
|
|
32
|
-
}, formatMessage(blockTypeMessages.newLozenge)),
|
|
29
|
+
}, formatMessage(blockTypeMessages.newLozenge))),
|
|
33
30
|
icon: function icon() {
|
|
34
31
|
return /*#__PURE__*/React.createElement(IconSyncBlock, {
|
|
35
32
|
label: formatMessage(blockTypeMessages.syncedBlock)
|
|
@@ -6,7 +6,7 @@ export declare const getQuickInsertConfig: (config: {
|
|
|
6
6
|
enableSourceCreation?: boolean;
|
|
7
7
|
} | undefined, api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined, syncBlockStore: SyncBlockStoreManager) => (({ formatMessage, }: {
|
|
8
8
|
formatMessage: (message: {
|
|
9
|
-
id: string;
|
|
10
9
|
defaultMessage: string;
|
|
10
|
+
id: string;
|
|
11
11
|
}) => string;
|
|
12
12
|
}) => QuickInsertItem[]);
|
|
@@ -6,7 +6,7 @@ export declare const getQuickInsertConfig: (config: {
|
|
|
6
6
|
enableSourceCreation?: boolean;
|
|
7
7
|
} | undefined, api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined, syncBlockStore: SyncBlockStoreManager) => (({ formatMessage, }: {
|
|
8
8
|
formatMessage: (message: {
|
|
9
|
-
id: string;
|
|
10
9
|
defaultMessage: string;
|
|
10
|
+
id: string;
|
|
11
11
|
}) => string;
|
|
12
12
|
}) => QuickInsertItem[]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.26",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/dropdown-menu": "16.4.6",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
36
|
-
"@atlaskit/editor-plugin-block-menu": "^6.
|
|
36
|
+
"@atlaskit/editor-plugin-block-menu": "^6.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "7.0.1",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^7.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-floating-toolbar": "^9.1.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/icon-lab": "^5.16.0",
|
|
48
48
|
"@atlaskit/logo": "^19.10.0",
|
|
49
49
|
"@atlaskit/lozenge": "^13.4.0",
|
|
50
|
-
"@atlaskit/modal-dialog": "^14.
|
|
50
|
+
"@atlaskit/modal-dialog": "^14.11.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
52
|
"@atlaskit/primitives": "^18.0.0",
|
|
53
53
|
"@atlaskit/spinner": "19.0.10",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/editor-common": "^111.
|
|
64
|
+
"@atlaskit/editor-common": "^111.19.0",
|
|
65
65
|
"react": "^18.2.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -104,9 +104,6 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"platform-feature-flags": {
|
|
107
|
-
"platform_synced_block_patch_2": {
|
|
108
|
-
"type": "boolean"
|
|
109
|
-
},
|
|
110
107
|
"platform_synced_block_patch_3": {
|
|
111
108
|
"type": "boolean"
|
|
112
109
|
}
|