@atlaskit/editor-plugin-expand 3.2.7 → 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,20 @@
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
+
12
+ ## 3.2.8
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 3.2.7
4
19
 
5
20
  ### 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
  };
@@ -101,7 +101,7 @@ var deleteExpandAtPos = exports.deleteExpandAtPos = function deleteExpandAtPos(e
101
101
  action: _analytics.ACTION.DELETED,
102
102
  actionSubject: expandNode.type === state.schema.nodes.expand ? _analytics.ACTION_SUBJECT.EXPAND : _analytics.ACTION_SUBJECT.NESTED_EXPAND,
103
103
  attributes: {
104
- 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
105
105
  },
106
106
  eventType: _analytics.EVENT_TYPE.TRACK
107
107
  };
@@ -169,9 +169,7 @@ var toggleExpandExpanded = exports.toggleExpandExpanded = function toggleExpandE
169
169
  },
170
170
  eventType: _analytics.EVENT_TYPE.TRACK
171
171
  };
172
- if ((0, _platformFeatureFlags.fg)('platform_editor_long_node_expand')) {
173
- tr.setMeta('scrollIntoView', false);
174
- }
172
+ tr.setMeta('scrollIntoView', false);
175
173
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
176
174
  dispatch(tr);
177
175
  }
@@ -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
  };
@@ -82,7 +82,7 @@ export const deleteExpandAtPos = editorAnalyticsAPI => (expandNodePos, expandNod
82
82
  action: ACTION.DELETED,
83
83
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
84
84
  attributes: {
85
- inputMethod: INPUT_METHOD.TOOLBAR
85
+ inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
86
86
  },
87
87
  eventType: EVENT_TYPE.TRACK
88
88
  };
@@ -150,9 +150,7 @@ export const toggleExpandExpanded = ({
150
150
  },
151
151
  eventType: EVENT_TYPE.TRACK
152
152
  };
153
- if (fg('platform_editor_long_node_expand')) {
154
- tr.setMeta('scrollIntoView', false);
155
- }
153
+ tr.setMeta('scrollIntoView', false);
156
154
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
157
155
  dispatch(tr);
158
156
  }
@@ -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
  };
@@ -95,7 +95,7 @@ export var deleteExpandAtPos = function deleteExpandAtPos(editorAnalyticsAPI) {
95
95
  action: ACTION.DELETED,
96
96
  actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
97
97
  attributes: {
98
- inputMethod: INPUT_METHOD.TOOLBAR
98
+ inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR
99
99
  },
100
100
  eventType: EVENT_TYPE.TRACK
101
101
  };
@@ -163,9 +163,7 @@ export var toggleExpandExpanded = function toggleExpandExpanded(_ref) {
163
163
  },
164
164
  eventType: EVENT_TYPE.TRACK
165
165
  };
166
- if (fg('platform_editor_long_node_expand')) {
167
- tr.setMeta('scrollIntoView', false);
168
- }
166
+ tr.setMeta('scrollIntoView', false);
169
167
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
170
168
  dispatch(tr);
171
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "3.2.7",
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,19 +35,19 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/button": "^23.0.0",
38
- "@atlaskit/editor-common": "^103.9.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",
42
42
  "@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
43
- "@atlaskit/editor-plugin-selection": "^2.1.0",
43
+ "@atlaskit/editor-plugin-selection": "^2.2.0",
44
44
  "@atlaskit/editor-plugin-selection-marker": "^2.2.0",
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.12.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",
@@ -65,8 +65,8 @@
65
65
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
66
66
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
67
67
  "@atlaskit/editor-plugin-quick-insert": "^2.4.0",
68
- "@atlaskit/editor-plugin-table": "^10.8.0",
69
- "@atlaskit/editor-plugin-type-ahead": "^2.5.0",
68
+ "@atlaskit/editor-plugin-table": "^10.9.0",
69
+ "@atlaskit/editor-plugin-type-ahead": "^2.6.0",
70
70
  "@atlaskit/editor-plugin-width": "^3.0.0",
71
71
  "@testing-library/react": "^13.4.0",
72
72
  "react-test-renderer": "^18.2.0",
@@ -115,9 +115,8 @@
115
115
  "platform_editor_disable_unnecessary_expand_renders": {
116
116
  "type": "boolean"
117
117
  },
118
- "platform_editor_long_node_expand": {
119
- "type": "boolean",
120
- "referenceOnly": true
118
+ "platform_editor_controls_patch_analytics_2": {
119
+ "type": "boolean"
121
120
  }
122
121
  }
123
122
  }