@atlaskit/editor-plugin-block-controls 2.21.11 → 2.21.12
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 +10 -0
- package/dist/cjs/pm-plugins/utils/validation.js +0 -7
- package/dist/es2019/pm-plugins/utils/validation.js +0 -7
- package/dist/esm/pm-plugins/utils/validation.js +0 -7
- package/dist/types/ui/drag-handle-menu.d.ts +2 -2
- package/dist/types-ts4.5/ui/drag-handle-menu.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 2.21.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107782](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107782)
|
|
8
|
+
[`cccc7a8347929`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cccc7a8347929) -
|
|
9
|
+
[ux] ED-26378 Remove editor_nest_media_and_codeblock_in_quotes_jira and
|
|
10
|
+
nestMediaAndCodeblockInQuote
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 2.21.11
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -90,13 +90,6 @@ function canMoveNodeToIndex(destParent, indexIntoParent, srcNode, $destNodePos,
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// Place experiments here instead of just inside move-node.ts as it stops the drag marker from appearing.
|
|
94
|
-
if ((0, _experiments.editorExperiment)('nest-media-and-codeblock-in-quote', false)) {
|
|
95
|
-
if (parentNodeType === 'blockquote' && (activeNodeType === 'mediaGroup' || activeNodeType === 'mediaSingle' || activeNodeType === 'codeBlock')) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
93
|
// Place experiments here instead of just inside move-node.ts as it stops the drag marker from appearing.
|
|
101
94
|
if ((0, _experiments.editorExperiment)('nested-expand-in-expand', false)) {
|
|
102
95
|
if (parentNodeType === 'expand' && (activeNodeType === 'expand' || activeNodeType === 'nestedExpand')) {
|
|
@@ -83,13 +83,6 @@ export function canMoveNodeToIndex(destParent, indexIntoParent, srcNode, $destNo
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
// Place experiments here instead of just inside move-node.ts as it stops the drag marker from appearing.
|
|
87
|
-
if (editorExperiment('nest-media-and-codeblock-in-quote', false)) {
|
|
88
|
-
if (parentNodeType === 'blockquote' && (activeNodeType === 'mediaGroup' || activeNodeType === 'mediaSingle' || activeNodeType === 'codeBlock')) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
86
|
// Place experiments here instead of just inside move-node.ts as it stops the drag marker from appearing.
|
|
94
87
|
if (editorExperiment('nested-expand-in-expand', false)) {
|
|
95
88
|
if (parentNodeType === 'expand' && (activeNodeType === 'expand' || activeNodeType === 'nestedExpand')) {
|
|
@@ -81,13 +81,6 @@ export function canMoveNodeToIndex(destParent, indexIntoParent, srcNode, $destNo
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
// Place experiments here instead of just inside move-node.ts as it stops the drag marker from appearing.
|
|
85
|
-
if (editorExperiment('nest-media-and-codeblock-in-quote', false)) {
|
|
86
|
-
if (parentNodeType === 'blockquote' && (activeNodeType === 'mediaGroup' || activeNodeType === 'mediaSingle' || activeNodeType === 'codeBlock')) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
84
|
// Place experiments here instead of just inside move-node.ts as it stops the drag marker from appearing.
|
|
92
85
|
if (editorExperiment('nested-expand-in-expand', false)) {
|
|
93
86
|
if (parentNodeType === 'expand' && (activeNodeType === 'expand' || activeNodeType === 'nestedExpand')) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { BlockControlsPlugin } from '../blockControlsPluginType';
|
|
4
4
|
export declare const DragHandleMenu: ({ api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
|
|
6
|
-
}) => JSX.Element | null;
|
|
6
|
+
}) => React.JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { BlockControlsPlugin } from '../blockControlsPluginType';
|
|
4
4
|
export declare const DragHandleMenu: ({ api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
|
|
6
|
-
}) => JSX.Element | null;
|
|
6
|
+
}) => React.JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.12",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
34
|
-
"@atlaskit/editor-common": "^99.
|
|
34
|
+
"@atlaskit/editor-common": "^99.8.0",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^1.4.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.2.0",
|
|
49
49
|
"@atlaskit/primitives": "^13.4.0",
|
|
50
50
|
"@atlaskit/theme": "^14.1.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^2.42.0",
|
|
52
52
|
"@atlaskit/tokens": "^3.3.0",
|
|
53
53
|
"@atlaskit/tooltip": "^19.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|