@atlaskit/editor-plugin-expand 20.0.7 → 22.0.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,24 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 22.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5c5d7a5bbff74`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c5d7a5bbff74) -
8
+ Cleanup `feature_gate` `platform_editor_element_browser_analytic`. Insert analytics permanently
9
+ report the caller's actual input method rather than always attributing the insertion to
10
+ `quickInsert`.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 21.0.0
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 20.0.7
4
23
 
5
24
  ### Patch Changes
@@ -16,7 +16,6 @@ var _state2 = require("@atlaskit/editor-prosemirror/state");
16
16
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
17
17
  var _utils3 = require("@atlaskit/editor-tables/utils");
18
18
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
19
- var _fg = require("@atlaskit/platform-feature-flags/fg");
20
19
  var _utils4 = require("../utils");
21
20
  var _pluginFactory = require("./pm-plugins/plugin-factory");
22
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; }
@@ -164,13 +163,12 @@ var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function
164
163
  state: state,
165
164
  type: expandNode.type
166
165
  });
167
- var resolvedInputMethod = (0, _fg.fg)('platform_editor_element_browser_analytic') ? inputMethod : _analytics.INPUT_METHOD.QUICK_INSERT;
168
166
  var payload = {
169
167
  action: _analytics.ACTION.INSERTED,
170
168
  actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
171
169
  actionSubjectId: (expandNode === null || expandNode === void 0 ? void 0 : expandNode.type) === state.schema.nodes.expand ? _analytics.ACTION_SUBJECT_ID.EXPAND : _analytics.ACTION_SUBJECT_ID.NESTED_EXPAND,
172
170
  attributes: {
173
- inputMethod: resolvedInputMethod
171
+ inputMethod: inputMethod
174
172
  },
175
173
  eventType: _analytics.EVENT_TYPE.TRACK
176
174
  };
@@ -8,7 +8,6 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
9
9
  import { findTable } from '@atlaskit/editor-tables/utils';
10
10
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
11
- import { fg } from '@atlaskit/platform-feature-flags/fg';
12
11
  import { isNestedInExpand } from '../utils';
13
12
  import { createCommand } from './pm-plugins/plugin-factory';
14
13
  export const setExpandRef = ref => createCommand({
@@ -151,13 +150,12 @@ export const insertExpandWithInputMethod = editorAnalyticsAPI => inputMethod =>
151
150
  state,
152
151
  type: expandNode.type
153
152
  });
154
- const resolvedInputMethod = fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT;
155
153
  const payload = {
156
154
  action: ACTION.INSERTED,
157
155
  actionSubject: ACTION_SUBJECT.DOCUMENT,
158
156
  actionSubjectId: (expandNode === null || expandNode === void 0 ? void 0 : expandNode.type) === state.schema.nodes.expand ? ACTION_SUBJECT_ID.EXPAND : ACTION_SUBJECT_ID.NESTED_EXPAND,
159
157
  attributes: {
160
- inputMethod: resolvedInputMethod
158
+ inputMethod
161
159
  },
162
160
  eventType: EVENT_TYPE.TRACK
163
161
  };
@@ -11,7 +11,6 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
11
11
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
12
12
  import { findTable } from '@atlaskit/editor-tables/utils';
13
13
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
14
- import { fg } from '@atlaskit/platform-feature-flags/fg';
15
14
  import { isNestedInExpand } from '../utils';
16
15
  import { createCommand } from './pm-plugins/plugin-factory';
17
16
  export var setExpandRef = function setExpandRef(ref) {
@@ -157,13 +156,12 @@ export var insertExpandWithInputMethod = function insertExpandWithInputMethod(ed
157
156
  state: state,
158
157
  type: expandNode.type
159
158
  });
160
- var resolvedInputMethod = fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT;
161
159
  var payload = {
162
160
  action: ACTION.INSERTED,
163
161
  actionSubject: ACTION_SUBJECT.DOCUMENT,
164
162
  actionSubjectId: (expandNode === null || expandNode === void 0 ? void 0 : expandNode.type) === state.schema.nodes.expand ? ACTION_SUBJECT_ID.EXPAND : ACTION_SUBJECT_ID.NESTED_EXPAND,
165
163
  attributes: {
166
- inputMethod: resolvedInputMethod
164
+ inputMethod: inputMethod
167
165
  },
168
166
  eventType: EVENT_TYPE.TRACK
169
167
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "20.0.7",
3
+ "version": "22.0.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,28 +23,28 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.6.0",
25
25
  "@atlaskit/button": "^25.4.0",
26
- "@atlaskit/editor-plugin-analytics": "^19.0.0",
27
- "@atlaskit/editor-plugin-block-controls": "^20.1.0",
28
- "@atlaskit/editor-plugin-block-menu": "^18.0.0",
29
- "@atlaskit/editor-plugin-decorations": "^19.0.0",
30
- "@atlaskit/editor-plugin-editor-disabled": "^19.0.0",
31
- "@atlaskit/editor-plugin-editor-viewmode": "^21.0.0",
32
- "@atlaskit/editor-plugin-limited-mode": "^16.0.0",
33
- "@atlaskit/editor-plugin-local-id": "^17.0.0",
34
- "@atlaskit/editor-plugin-selection": "^19.0.0",
35
- "@atlaskit/editor-plugin-selection-marker": "^19.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^21.0.0",
27
+ "@atlaskit/editor-plugin-block-controls": "^22.0.0",
28
+ "@atlaskit/editor-plugin-block-menu": "^20.0.0",
29
+ "@atlaskit/editor-plugin-decorations": "^21.0.0",
30
+ "@atlaskit/editor-plugin-editor-disabled": "^21.0.0",
31
+ "@atlaskit/editor-plugin-editor-viewmode": "^23.0.0",
32
+ "@atlaskit/editor-plugin-limited-mode": "^18.0.0",
33
+ "@atlaskit/editor-plugin-local-id": "^19.0.0",
34
+ "@atlaskit/editor-plugin-selection": "^21.0.0",
35
+ "@atlaskit/editor-plugin-selection-marker": "^21.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^9.0.0",
37
37
  "@atlaskit/editor-shared-styles": "^4.3.0",
38
38
  "@atlaskit/editor-tables": "^3.2.0",
39
39
  "@atlaskit/editor-toolbar": "^2.7.0",
40
40
  "@atlaskit/editor-ui-control-model": "^2.10.0",
41
- "@atlaskit/icon": "^37.7.0",
41
+ "@atlaskit/icon": "^38.0.0",
42
42
  "@atlaskit/icon-lab": "^7.9.0",
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/prosemirror-history": "^1.2.0",
46
- "@atlaskit/tmp-editor-statsig": "^204.0.0",
47
- "@atlaskit/tokens": "^19.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^205.0.0",
47
+ "@atlaskit/tokens": "^20.0.0",
48
48
  "@atlaskit/tooltip": "^24.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
@@ -52,7 +52,7 @@
52
52
  "w3c-keyname": "^2.1.8"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^123.8.0",
55
+ "@atlaskit/editor-common": "^125.0.0",
56
56
  "react": "^18.2.0 || ^19.2.0",
57
57
  "react-dom": "^18.2.0 || ^19.2.0",
58
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -64,9 +64,6 @@
64
64
  "react-intl": "^7.0.0"
65
65
  },
66
66
  "platform-feature-flags": {
67
- "platform_editor_element_browser_analytic": {
68
- "type": "boolean"
69
- },
70
67
  "platform_editor_adf_with_localid": {
71
68
  "type": "boolean"
72
69
  }