@atlaskit/editor-plugin-synced-block 10.4.0 → 10.4.2
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
|
+
## 10.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 10.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`67ae1e14e8090`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/67ae1e14e8090) -
|
|
14
|
+
Revert persistent placeholder decorations for empty source synced blocks while retaining the sync
|
|
15
|
+
block activation experiment setup.
|
|
16
|
+
|
|
3
17
|
## 10.4.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -19,7 +19,6 @@ var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
|
19
19
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
20
20
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
21
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
23
22
|
var _BodiedSyncBlockWrapper = require("../ui/BodiedSyncBlockWrapper");
|
|
24
23
|
var _SyncBlockLabel = require("../ui/SyncBlockLabel");
|
|
25
24
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -199,8 +198,8 @@ var BodiedSyncBlock = exports.BodiedSyncBlock = /*#__PURE__*/function () {
|
|
|
199
198
|
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- NodeView DOM must be created against active runtime document
|
|
200
199
|
labelContainer = document.createElement('div');
|
|
201
200
|
this.dom.appendChild(labelContainer);
|
|
202
|
-
} else if ((0, _platformFeatureFlags.fg)('platform_synced_block_patch_14')
|
|
203
|
-
// Render the label into a separate container for the
|
|
201
|
+
} else if ((0, _platformFeatureFlags.fg)('platform_synced_block_patch_14')) {
|
|
202
|
+
// Render the label into a separate container for the patch path so
|
|
204
203
|
// portal implementations that write directly into the target do not clobber
|
|
205
204
|
// the ProseMirror contentDOM.
|
|
206
205
|
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- NodeView DOM must be created against active runtime document
|
|
@@ -7,7 +7,6 @@ import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-
|
|
|
7
7
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
8
8
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import { BodiedSyncBlockWrapper } from '../ui/BodiedSyncBlockWrapper';
|
|
12
11
|
import { SyncBlockLabel } from '../ui/SyncBlockLabel';
|
|
13
12
|
const toDOMOld = () => ['div', {
|
|
@@ -164,8 +163,8 @@ export class BodiedSyncBlock {
|
|
|
164
163
|
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- NodeView DOM must be created against active runtime document
|
|
165
164
|
labelContainer = document.createElement('div');
|
|
166
165
|
this.dom.appendChild(labelContainer);
|
|
167
|
-
} else if (fg('platform_synced_block_patch_14')
|
|
168
|
-
// Render the label into a separate container for the
|
|
166
|
+
} else if (fg('platform_synced_block_patch_14')) {
|
|
167
|
+
// Render the label into a separate container for the patch path so
|
|
169
168
|
// portal implementations that write directly into the target do not clobber
|
|
170
169
|
// the ProseMirror contentDOM.
|
|
171
170
|
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- NodeView DOM must be created against active runtime document
|
|
@@ -14,7 +14,6 @@ import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-
|
|
|
14
14
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
15
15
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
17
|
import { BodiedSyncBlockWrapper } from '../ui/BodiedSyncBlockWrapper';
|
|
19
18
|
import { SyncBlockLabel } from '../ui/SyncBlockLabel';
|
|
20
19
|
var toDOMOld = function toDOMOld() {
|
|
@@ -192,8 +191,8 @@ export var BodiedSyncBlock = /*#__PURE__*/function () {
|
|
|
192
191
|
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- NodeView DOM must be created against active runtime document
|
|
193
192
|
labelContainer = document.createElement('div');
|
|
194
193
|
this.dom.appendChild(labelContainer);
|
|
195
|
-
} else if (fg('platform_synced_block_patch_14')
|
|
196
|
-
// Render the label into a separate container for the
|
|
194
|
+
} else if (fg('platform_synced_block_patch_14')) {
|
|
195
|
+
// Render the label into a separate container for the patch path so
|
|
197
196
|
// portal implementations that write directly into the target do not clobber
|
|
198
197
|
// the ProseMirror contentDOM.
|
|
199
198
|
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- NodeView DOM must be created against active runtime document
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.2",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@atlaskit/lozenge": "^14.1.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
47
|
-
"@atlaskit/primitives": "^22.
|
|
47
|
+
"@atlaskit/primitives": "^22.2.0",
|
|
48
48
|
"@atlaskit/spinner": "20.1.1",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^133.0.0",
|
|
50
50
|
"@atlaskit/tokens": "16.3.0",
|
|
51
51
|
"@atlaskit/tooltip": "^23.1.0",
|
|
52
52
|
"@atlaskit/visually-hidden": "^4.2.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"memoize-one": "^6.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^116.
|
|
60
|
+
"@atlaskit/editor-common": "^116.39.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
63
63
|
},
|