@atlaskit/editor-plugin-synced-block 6.0.32 → 6.0.33
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-synced-block
|
|
2
2
|
|
|
3
|
+
## 6.0.33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`28b7faffe727d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28b7faffe727d) -
|
|
8
|
+
[ux] Disables 'Unsync' button in the floating toolbar when source block is added on an unpublished
|
|
9
|
+
page.
|
|
10
|
+
|
|
3
11
|
## 6.0.32
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
|
|
|
18
18
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
19
19
|
var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
20
20
|
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _editorCommands = require("../editor-commands");
|
|
22
23
|
var _utils2 = require("../pm-plugins/utils/utils");
|
|
23
24
|
var _types = require("../types");
|
|
@@ -83,8 +84,10 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
|
|
|
83
84
|
type: 'custom',
|
|
84
85
|
fallback: [],
|
|
85
86
|
render: function render(view) {
|
|
87
|
+
var _syncBlockInstance$da;
|
|
86
88
|
return /*#__PURE__*/_react.default.createElement(_ui.FloatingToolbarButton, {
|
|
87
89
|
areAnyNewToolbarFlagsEnabled: true,
|
|
90
|
+
disabled: (0, _platformFeatureFlags.fg)('platform_synced_block_patch_8') ? (syncBlockInstance === null || syncBlockInstance === void 0 || (_syncBlockInstance$da = syncBlockInstance.data) === null || _syncBlockInstance$da === void 0 ? void 0 : _syncBlockInstance$da.status) === 'unpublished' : false,
|
|
88
91
|
icon: /*#__PURE__*/_react.default.createElement(_linkBroken.default, {
|
|
89
92
|
label: ""
|
|
90
93
|
}),
|
|
@@ -9,6 +9,7 @@ import CopyIcon from '@atlaskit/icon/core/copy';
|
|
|
9
9
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
10
10
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
11
11
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { copySyncedBlockReferenceToClipboard, editSyncedBlockSource, removeSyncedBlock, unsync } from '../editor-commands';
|
|
13
14
|
import { findSyncBlockOrBodiedSyncBlock, isBodiedSyncBlockNode } from '../pm-plugins/utils/utils';
|
|
14
15
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
@@ -79,8 +80,10 @@ export const getToolbarConfig = (state, intl, api, syncBlockStore) => {
|
|
|
79
80
|
type: 'custom',
|
|
80
81
|
fallback: [],
|
|
81
82
|
render: view => {
|
|
83
|
+
var _syncBlockInstance$da;
|
|
82
84
|
return /*#__PURE__*/React.createElement(Button, {
|
|
83
85
|
areAnyNewToolbarFlagsEnabled: true,
|
|
86
|
+
disabled: fg('platform_synced_block_patch_8') ? (syncBlockInstance === null || syncBlockInstance === void 0 ? void 0 : (_syncBlockInstance$da = syncBlockInstance.data) === null || _syncBlockInstance$da === void 0 ? void 0 : _syncBlockInstance$da.status) === 'unpublished' : false,
|
|
84
87
|
icon: /*#__PURE__*/React.createElement(LinkBrokenIcon, {
|
|
85
88
|
label: ""
|
|
86
89
|
}),
|
|
@@ -12,6 +12,7 @@ import CopyIcon from '@atlaskit/icon/core/copy';
|
|
|
12
12
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
13
13
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
14
14
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import { copySyncedBlockReferenceToClipboard, editSyncedBlockSource, removeSyncedBlock, unsync } from '../editor-commands';
|
|
16
17
|
import { findSyncBlockOrBodiedSyncBlock, isBodiedSyncBlockNode } from '../pm-plugins/utils/utils';
|
|
17
18
|
import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
|
|
@@ -74,8 +75,10 @@ export var getToolbarConfig = function getToolbarConfig(state, intl, api, syncBl
|
|
|
74
75
|
type: 'custom',
|
|
75
76
|
fallback: [],
|
|
76
77
|
render: function render(view) {
|
|
78
|
+
var _syncBlockInstance$da;
|
|
77
79
|
return /*#__PURE__*/React.createElement(Button, {
|
|
78
80
|
areAnyNewToolbarFlagsEnabled: true,
|
|
81
|
+
disabled: fg('platform_synced_block_patch_8') ? (syncBlockInstance === null || syncBlockInstance === void 0 || (_syncBlockInstance$da = syncBlockInstance.data) === null || _syncBlockInstance$da === void 0 ? void 0 : _syncBlockInstance$da.status) === 'unpublished' : false,
|
|
79
82
|
icon: /*#__PURE__*/React.createElement(LinkBrokenIcon, {
|
|
80
83
|
label: ""
|
|
81
84
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.33",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -122,6 +122,9 @@
|
|
|
122
122
|
},
|
|
123
123
|
"platform_synced_block_patch_7": {
|
|
124
124
|
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
"platform_synced_block_patch_8": {
|
|
127
|
+
"type": "boolean"
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
130
|
}
|