@atlaskit/editor-plugin-block-controls 20.0.1 → 20.0.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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 20.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4acfc5de0ce75`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4acfc5de0ce75) -
|
|
8
|
+
Stop registering the `firstNodeDec` ProseMirror plugin when
|
|
9
|
+
the`platform_editor_block_control_migration` experiment is enabled. It is no longer needed after
|
|
10
|
+
migration, and causing issues with diffing margins.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 20.0.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -159,7 +159,11 @@ var blockControlsPlugin = exports.blockControlsPlugin = function blockControlsPl
|
|
|
159
159
|
});
|
|
160
160
|
|
|
161
161
|
// platform_editor_controls note: quick insert rendering fixes
|
|
162
|
-
|
|
162
|
+
//
|
|
163
|
+
// Not registered under the registry migration: the decoration puts an inline
|
|
164
|
+
// `margin-top: 0` on the first document node, which fights features that render their own
|
|
165
|
+
// content above it — a leading show-diff widget is left flush against the node below.
|
|
166
|
+
if ((0, _toolbarFlagCheck.areToolbarFlagsEnabled)(Boolean(api === null || api === void 0 ? void 0 : api.toolbar)) && legacyBlockControlsEnabled) {
|
|
163
167
|
pmPlugins.push({
|
|
164
168
|
name: 'firstNodeDec',
|
|
165
169
|
plugin: _firstNodeDecPlugin.firstNodeDecPlugin
|
|
@@ -154,7 +154,11 @@ export const blockControlsPlugin = ({
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
// platform_editor_controls note: quick insert rendering fixes
|
|
157
|
-
|
|
157
|
+
//
|
|
158
|
+
// Not registered under the registry migration: the decoration puts an inline
|
|
159
|
+
// `margin-top: 0` on the first document node, which fights features that render their own
|
|
160
|
+
// content above it — a leading show-diff widget is left flush against the node below.
|
|
161
|
+
if (areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar)) && legacyBlockControlsEnabled) {
|
|
158
162
|
pmPlugins.push({
|
|
159
163
|
name: 'firstNodeDec',
|
|
160
164
|
plugin: firstNodeDecPlugin
|
|
@@ -152,7 +152,11 @@ export var blockControlsPlugin = function blockControlsPlugin(_ref) {
|
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
// platform_editor_controls note: quick insert rendering fixes
|
|
155
|
-
|
|
155
|
+
//
|
|
156
|
+
// Not registered under the registry migration: the decoration puts an inline
|
|
157
|
+
// `margin-top: 0` on the first document node, which fights features that render their own
|
|
158
|
+
// content above it — a leading show-diff widget is left flush against the node below.
|
|
159
|
+
if (areToolbarFlagsEnabled(Boolean(api === null || api === void 0 ? void 0 : api.toolbar)) && legacyBlockControlsEnabled) {
|
|
156
160
|
pmPlugins.push({
|
|
157
161
|
name: 'firstNodeDec',
|
|
158
162
|
plugin: firstNodeDecPlugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.2",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^11.1.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^123.
|
|
76
|
+
"@atlaskit/editor-common": "^123.1.0",
|
|
77
77
|
"react": "^18.2.0 || ^19.2.0",
|
|
78
78
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
79
79
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|