@atlaskit/editor-plugin-block-controls 2.1.8 → 2.1.9

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,14 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 2.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#147660](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147660)
8
+ [`bc7f5f6bfe9ff`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc7f5f6bfe9ff) -
9
+ Remove nested dnd gating from analytics events
10
+ - Updated dependencies
11
+
3
12
  ## 2.1.8
4
13
 
5
14
  ### Patch Changes
@@ -175,12 +175,11 @@ var moveNode = exports.moveNode = function moveNode(api) {
175
175
  action: _analytics.ACTION.MOVED,
176
176
  actionSubject: _analytics.ACTION_SUBJECT.ELEMENT,
177
177
  actionSubjectId: _analytics.ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE,
178
- attributes: _objectSpread(_objectSpread({
178
+ attributes: _objectSpread({
179
179
  nodeDepth: resolvedNode.depth,
180
- nodeType: node.type.name
181
- }, (0, _experiments.editorExperiment)('nested-dnd', true) && {
180
+ nodeType: node.type.name,
182
181
  destinationNodeDepth: $mappedTo === null || $mappedTo === void 0 ? void 0 : $mappedTo.depth
183
- }), (0, _platformFeatureFlags.fg)('platform_editor_element_drag_and_drop_ed_23873') && {
182
+ }, (0, _platformFeatureFlags.fg)('platform_editor_element_drag_and_drop_ed_23873') && {
184
183
  inputMethod: inputMethod
185
184
  })
186
185
  })(tr);
@@ -172,9 +172,7 @@ export const moveNode = api => (start, to, inputMethod = INPUT_METHOD.DRAG_AND_D
172
172
  attributes: {
173
173
  nodeDepth: resolvedNode.depth,
174
174
  nodeType: node.type.name,
175
- ...(editorExperiment('nested-dnd', true) && {
176
- destinationNodeDepth: $mappedTo === null || $mappedTo === void 0 ? void 0 : $mappedTo.depth
177
- }),
175
+ destinationNodeDepth: $mappedTo === null || $mappedTo === void 0 ? void 0 : $mappedTo.depth,
178
176
  ...(fg('platform_editor_element_drag_and_drop_ed_23873') && {
179
177
  inputMethod
180
178
  })
@@ -169,12 +169,11 @@ export var moveNode = function moveNode(api) {
169
169
  action: ACTION.MOVED,
170
170
  actionSubject: ACTION_SUBJECT.ELEMENT,
171
171
  actionSubjectId: ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE,
172
- attributes: _objectSpread(_objectSpread({
172
+ attributes: _objectSpread({
173
173
  nodeDepth: resolvedNode.depth,
174
- nodeType: node.type.name
175
- }, editorExperiment('nested-dnd', true) && {
174
+ nodeType: node.type.name,
176
175
  destinationNodeDepth: $mappedTo === null || $mappedTo === void 0 ? void 0 : $mappedTo.depth
177
- }), fg('platform_editor_element_drag_and_drop_ed_23873') && {
176
+ }, fg('platform_editor_element_drag_and_drop_ed_23873') && {
178
177
  inputMethod: inputMethod
179
178
  })
180
179
  })(tr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
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": "^40.9.0",
34
- "@atlaskit/editor-common": "^92.0.0",
34
+ "@atlaskit/editor-common": "^92.1.0",
35
35
  "@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
37
37
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
49
49
  "@atlaskit/primitives": "^12.2.0",
50
50
  "@atlaskit/theme": "^13.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^2.1.0",
51
+ "@atlaskit/tmp-editor-statsig": "^2.2.0",
52
52
  "@atlaskit/tokens": "^2.0.0",
53
53
  "@atlaskit/tooltip": "^18.7.0",
54
54
  "@babel/runtime": "^7.0.0",