@atlaskit/editor-plugin-block-controls 7.15.3 → 7.17.0
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 +22 -0
- package/dist/cjs/pm-plugins/main.js +2 -1
- package/dist/cjs/ui/drag-handle.js +2 -2
- package/dist/es2019/pm-plugins/main.js +2 -1
- package/dist/es2019/ui/drag-handle.js +2 -2
- package/dist/esm/pm-plugins/main.js +2 -1
- package/dist/esm/ui/drag-handle.js +2 -2
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 7.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fdda2eb1f24ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdda2eb1f24ec) -
|
|
8
|
+
Removes remaining part of platform_editor_multi_body_extension_extensibility fg for fg cleanup
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 7.16.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`8f65f39e57a8f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8f65f39e57a8f) -
|
|
19
|
+
ED-29716 do not observe when anchor is support
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 7.15.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -874,7 +874,8 @@ var createPlugin = exports.createPlugin = function createPlugin(api, getIntl, no
|
|
|
874
874
|
editorView.dispatch(transaction);
|
|
875
875
|
}
|
|
876
876
|
}));
|
|
877
|
-
|
|
877
|
+
var shouldObserve = (0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_native_anchor_patch_1') ? !(0, _anchorUtils.isAnchorSupported)() : true;
|
|
878
|
+
if (editorContentArea && shouldObserve) {
|
|
878
879
|
resizeObserverWidth.observe(editorContentArea);
|
|
879
880
|
}
|
|
880
881
|
|
|
@@ -775,7 +775,7 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref2) {
|
|
|
775
775
|
}) : anchorName;
|
|
776
776
|
var dom = view.dom.querySelector("[".concat((0, _domAttrName.getAnchorAttrName)(), "=\"").concat(safeAnchorName, "\"]"));
|
|
777
777
|
var hasResizer = nodeType === 'table' || nodeType === 'mediaSingle';
|
|
778
|
-
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension'
|
|
778
|
+
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension';
|
|
779
779
|
var isBlockCard = nodeType === 'blockCard';
|
|
780
780
|
var isEmbedCard = nodeType === 'embedCard';
|
|
781
781
|
var isMacroInteractionUpdates = macroInteractionUpdates && isExtension;
|
|
@@ -821,7 +821,7 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref2) {
|
|
|
821
821
|
}) : anchorName;
|
|
822
822
|
var dom = view.dom.querySelector("[".concat((0, _domAttrName.getAnchorAttrName)(), "=\"").concat(safeAnchorName, "\"]"));
|
|
823
823
|
var hasResizer = nodeType === 'table' || nodeType === 'mediaSingle';
|
|
824
|
-
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension'
|
|
824
|
+
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension';
|
|
825
825
|
var isBlockCard = nodeType === 'blockCard' && !!blockCardWidth;
|
|
826
826
|
var isEmbedCard = nodeType === 'embedCard';
|
|
827
827
|
var isMacroInteractionUpdates = macroInteractionUpdates && isExtension;
|
|
@@ -883,7 +883,8 @@ export const createPlugin = (api, getIntl, nodeViewPortalProviderAPI) => {
|
|
|
883
883
|
editorView.dispatch(transaction);
|
|
884
884
|
}
|
|
885
885
|
}));
|
|
886
|
-
|
|
886
|
+
const shouldObserve = expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) && fg('platform_editor_native_anchor_patch_1') ? !isAnchorSupported() : true;
|
|
887
|
+
if (editorContentArea && shouldObserve) {
|
|
887
888
|
resizeObserverWidth.observe(editorContentArea);
|
|
888
889
|
}
|
|
889
890
|
|
|
@@ -759,7 +759,7 @@ export const DragHandle = ({
|
|
|
759
759
|
}) : anchorName;
|
|
760
760
|
const dom = view.dom.querySelector(`[${getAnchorAttrName()}="${safeAnchorName}"]`);
|
|
761
761
|
const hasResizer = nodeType === 'table' || nodeType === 'mediaSingle';
|
|
762
|
-
const isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension'
|
|
762
|
+
const isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension';
|
|
763
763
|
const isBlockCard = nodeType === 'blockCard';
|
|
764
764
|
const isEmbedCard = nodeType === 'embedCard';
|
|
765
765
|
const isMacroInteractionUpdates = macroInteractionUpdates && isExtension;
|
|
@@ -807,7 +807,7 @@ export const DragHandle = ({
|
|
|
807
807
|
}) : anchorName;
|
|
808
808
|
const dom = view.dom.querySelector(`[${getAnchorAttrName()}="${safeAnchorName}"]`);
|
|
809
809
|
const hasResizer = nodeType === 'table' || nodeType === 'mediaSingle';
|
|
810
|
-
const isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension'
|
|
810
|
+
const isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension';
|
|
811
811
|
const isBlockCard = nodeType === 'blockCard' && !!blockCardWidth;
|
|
812
812
|
const isEmbedCard = nodeType === 'embedCard';
|
|
813
813
|
const isMacroInteractionUpdates = macroInteractionUpdates && isExtension;
|
|
@@ -868,7 +868,8 @@ export var createPlugin = function createPlugin(api, getIntl, nodeViewPortalProv
|
|
|
868
868
|
editorView.dispatch(transaction);
|
|
869
869
|
}
|
|
870
870
|
}));
|
|
871
|
-
|
|
871
|
+
var shouldObserve = expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) && fg('platform_editor_native_anchor_patch_1') ? !isAnchorSupported() : true;
|
|
872
|
+
if (editorContentArea && shouldObserve) {
|
|
872
873
|
resizeObserverWidth.observe(editorContentArea);
|
|
873
874
|
}
|
|
874
875
|
|
|
@@ -772,7 +772,7 @@ export var DragHandle = function DragHandle(_ref2) {
|
|
|
772
772
|
}) : anchorName;
|
|
773
773
|
var dom = view.dom.querySelector("[".concat(getAnchorAttrName(), "=\"").concat(safeAnchorName, "\"]"));
|
|
774
774
|
var hasResizer = nodeType === 'table' || nodeType === 'mediaSingle';
|
|
775
|
-
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension'
|
|
775
|
+
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension';
|
|
776
776
|
var isBlockCard = nodeType === 'blockCard';
|
|
777
777
|
var isEmbedCard = nodeType === 'embedCard';
|
|
778
778
|
var isMacroInteractionUpdates = macroInteractionUpdates && isExtension;
|
|
@@ -818,7 +818,7 @@ export var DragHandle = function DragHandle(_ref2) {
|
|
|
818
818
|
}) : anchorName;
|
|
819
819
|
var dom = view.dom.querySelector("[".concat(getAnchorAttrName(), "=\"").concat(safeAnchorName, "\"]"));
|
|
820
820
|
var hasResizer = nodeType === 'table' || nodeType === 'mediaSingle';
|
|
821
|
-
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension'
|
|
821
|
+
var isExtension = nodeType === 'extension' || nodeType === 'bodiedExtension' || nodeType === 'multiBodiedExtension';
|
|
822
822
|
var isBlockCard = nodeType === 'blockCard' && !!blockCardWidth;
|
|
823
823
|
var isEmbedCard = nodeType === 'embedCard';
|
|
824
824
|
var isMacroInteractionUpdates = macroInteractionUpdates && isExtension;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.17.0",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-interaction": "^11.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-limited-mode": "^3.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-metrics": "^7.1.0",
|
|
40
|
-
"@atlaskit/editor-plugin-quick-insert": "^6.
|
|
40
|
+
"@atlaskit/editor-plugin-quick-insert": "^6.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
42
|
-
"@atlaskit/editor-plugin-toolbar": "^3.
|
|
43
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.
|
|
42
|
+
"@atlaskit/editor-plugin-toolbar": "^3.5.0",
|
|
43
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.6.0",
|
|
44
44
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"uuid": "^3.1.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@atlaskit/editor-common": "^110.
|
|
69
|
+
"@atlaskit/editor-common": "^110.47.0",
|
|
70
70
|
"react": "^18.2.0",
|
|
71
71
|
"react-dom": "^18.2.0",
|
|
72
72
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -122,9 +122,6 @@
|
|
|
122
122
|
"platform_editor_ease_of_use_metrics": {
|
|
123
123
|
"type": "boolean"
|
|
124
124
|
},
|
|
125
|
-
"platform_editor_multi_body_extension_extensibility": {
|
|
126
|
-
"type": "boolean"
|
|
127
|
-
},
|
|
128
125
|
"platform_editor_drag_and_drop_perf_analytics": {
|
|
129
126
|
"type": "boolean"
|
|
130
127
|
},
|