@atlaskit/editor-plugin-block-controls 7.15.2 → 7.16.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
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 7.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`8f65f39e57a8f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8f65f39e57a8f) -
|
|
8
|
+
ED-29716 do not observe when anchor is support
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 7.15.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 7.15.2
|
|
4
21
|
|
|
5
22
|
### 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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.0",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
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
40
|
"@atlaskit/editor-plugin-quick-insert": "^6.1.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
55
|
-
"@atlaskit/primitives": "^
|
|
55
|
+
"@atlaskit/primitives": "^17.0.0",
|
|
56
56
|
"@atlaskit/theme": "^21.0.0",
|
|
57
57
|
"@atlaskit/tmp-editor-statsig": "^16.0.0",
|
|
58
|
-
"@atlaskit/tokens": "^
|
|
58
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
59
59
|
"@atlaskit/tooltip": "^20.11.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@emotion/react": "^11.7.1",
|