@atlaskit/editor-plugin-expand 3.2.8 → 3.2.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-expand
2
2
 
3
+ ## 3.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#150731](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150731)
8
+ [`e21eb5fc3b241`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e21eb5fc3b241) -
9
+ ED-27860 Fix media deleted events and update inputMethod to floatingToolbar for expands
10
+ - Updated dependencies
11
+
3
12
  ## 3.2.8
4
13
 
5
14
  ### Patch Changes
@@ -40,7 +40,7 @@ var deleteExpandAtPos = exports.deleteExpandAtPos = function deleteExpandAtPos(e
40
40
  action: _analytics.ACTION.DELETED,
41
41
  actionSubject: expandNode.type === state.schema.nodes.expand ? _analytics.ACTION_SUBJECT.EXPAND : _analytics.ACTION_SUBJECT.NESTED_EXPAND,
42
42
  attributes: {
43
- inputMethod: _analytics.INPUT_METHOD.TOOLBAR
43
+ inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics_2') ? _analytics.INPUT_METHOD.FLOATING_TB : _analytics.INPUT_METHOD.TOOLBAR
44
44
  },
45
45
  eventType: _analytics.EVENT_TYPE.TRACK
46
46
  };
@@ -16,6 +16,7 @@ var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _state2 = require("@atlaskit/editor-prosemirror/state");
17
17
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
18
18
  var _utils3 = require("@atlaskit/editor-tables/utils");
19
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
20
  var _utils4 = require("../utils");
20
21
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -100,7 +101,7 @@ var deleteExpandAtPos = exports.deleteExpandAtPos = function deleteExpandAtPos(e
100
101
  action: _analytics.ACTION.DELETED,
101
102
  actionSubject: expandNode.type === state.schema.nodes.expand ? _analytics.ACTION_SUBJECT.EXPAND : _analytics.ACTION_SUBJECT.NESTED_EXPAND,
102
103
  attributes: {
103
- inputMethod: _analytics.INPUT_METHOD.TOOLBAR
104
+ inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics_2') ? _analytics.INPUT_METHOD.FLOATING_TB : _analytics.INPUT_METHOD.TOOLBAR
104
105
  },
105
106
  eventType: _analytics.EVENT_TYPE.TRACK
106
107
  };
@@ -24,7 +24,7 @@ export const deleteExpandAtPos = editorAnalyticsAPI => (expandNodePos, expandNod
24
24
  action: ACTION.DELETED,
25
25
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
26
26
  attributes: {
27
- inputMethod: INPUT_METHOD.TOOLBAR
27
+ inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
28
28
  },
29
29
  eventType: EVENT_TYPE.TRACK
30
30
  };
@@ -8,6 +8,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
8
8
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
9
9
  import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
10
10
  import { findTable } from '@atlaskit/editor-tables/utils';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import { isNestedInExpand } from '../utils';
12
13
 
13
14
  // Creates either an expand or a nestedExpand node based on the current selection
@@ -81,7 +82,7 @@ export const deleteExpandAtPos = editorAnalyticsAPI => (expandNodePos, expandNod
81
82
  action: ACTION.DELETED,
82
83
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
83
84
  attributes: {
84
- inputMethod: INPUT_METHOD.TOOLBAR
85
+ inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
85
86
  },
86
87
  eventType: EVENT_TYPE.TRACK
87
88
  };
@@ -33,7 +33,7 @@ export var deleteExpandAtPos = function deleteExpandAtPos(editorAnalyticsAPI) {
33
33
  action: ACTION.DELETED,
34
34
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
35
35
  attributes: {
36
- inputMethod: INPUT_METHOD.TOOLBAR
36
+ inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
37
37
  },
38
38
  eventType: EVENT_TYPE.TRACK
39
39
  };
@@ -11,6 +11,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
11
11
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
12
12
  import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
13
13
  import { findTable } from '@atlaskit/editor-tables/utils';
14
+ import { fg } from '@atlaskit/platform-feature-flags';
14
15
  import { isNestedInExpand } from '../utils';
15
16
 
16
17
  // Creates either an expand or a nestedExpand node based on the current selection
@@ -94,7 +95,7 @@ export var deleteExpandAtPos = function deleteExpandAtPos(editorAnalyticsAPI) {
94
95
  action: ACTION.DELETED,
95
96
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
96
97
  attributes: {
97
- inputMethod: INPUT_METHOD.TOOLBAR
98
+ inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
98
99
  },
99
100
  eventType: EVENT_TYPE.TRACK
100
101
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/button": "^23.0.0",
38
- "@atlaskit/editor-common": "^104.0.0",
38
+ "@atlaskit/editor-common": "^104.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
@@ -45,9 +45,9 @@
45
45
  "@atlaskit/editor-prosemirror": "7.0.0",
46
46
  "@atlaskit/editor-shared-styles": "^3.4.0",
47
47
  "@atlaskit/editor-tables": "^2.9.0",
48
- "@atlaskit/icon": "^25.6.0",
48
+ "@atlaskit/icon": "^25.7.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/tmp-editor-statsig": "^4.16.0",
50
+ "@atlaskit/tmp-editor-statsig": "^4.17.0",
51
51
  "@atlaskit/tokens": "^4.8.0",
52
52
  "@atlaskit/tooltip": "^20.0.0",
53
53
  "@babel/runtime": "^7.0.0",
@@ -114,6 +114,9 @@
114
114
  },
115
115
  "platform_editor_disable_unnecessary_expand_renders": {
116
116
  "type": "boolean"
117
+ },
118
+ "platform_editor_controls_patch_analytics_2": {
119
+ "type": "boolean"
117
120
  }
118
121
  }
119
122
  }