@atlaskit/editor-plugin-type-ahead 5.0.1 → 5.1.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-type-ahead
2
2
 
3
+ ## 5.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`64ec65231b4cf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64ec65231b4cf) -
8
+ EDITOR-1568 bump adf-schema for afm
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 5.0.2
15
+
16
+ ### Patch Changes
17
+
18
+ - [`58d0470dead2e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/58d0470dead2e) -
19
+ Add insm feature tracking for typeaheadOpen
20
+ - Updated dependencies
21
+
3
22
  ## 5.0.1
4
23
 
5
24
  ### Patch Changes
@@ -9,6 +9,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _steps = require("@atlaskit/adf-schema/steps");
10
10
  var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _view = require("@atlaskit/editor-prosemirror/view");
12
+ var _insm = require("@atlaskit/insm");
13
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
14
  var _actions = require("./actions");
13
15
  var _key = require("./key");
14
16
  var _utils = require("./utils");
@@ -62,6 +64,10 @@ var createReducer = exports.createReducer = function createReducer(_ref) {
62
64
  decorationSet = _createDecorations.decorationSet,
63
65
  decorationElement = _createDecorations.decorationElement,
64
66
  stats = _createDecorations.stats;
67
+ if ((0, _expValEquals.expValEquals)('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
68
+ var _insm$session;
69
+ (_insm$session = _insm.insm.session) === null || _insm$session === void 0 || _insm$session.startFeature('typeaheadOpen');
70
+ }
65
71
  return _objectSpread(_objectSpread({}, currentPluginState), {}, {
66
72
  stats: stats,
67
73
  decorationSet: decorationSet,
@@ -76,6 +82,10 @@ var createReducer = exports.createReducer = function createReducer(_ref) {
76
82
  };
77
83
  var closeMenu = function closeMenu(currentPluginState) {
78
84
  removeDecorations(currentPluginState.decorationSet);
85
+ if ((0, _expValEquals.expValEquals)('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
86
+ var _insm$session2;
87
+ (_insm$session2 = _insm.insm.session) === null || _insm$session2 === void 0 || _insm$session2.endFeature('typeaheadOpen');
88
+ }
79
89
  return _objectSpread(_objectSpread({}, currentPluginState), {}, {
80
90
  inputMethod: null,
81
91
  query: '',
@@ -1,6 +1,8 @@
1
1
  import { InsertTypeAheadStages, InsertTypeAheadStep } from '@atlaskit/adf-schema/steps';
2
2
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
+ import { insm } from '@atlaskit/insm';
5
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
6
  import { ACTIONS } from './actions';
5
7
  import { pluginKey } from './key';
6
8
  import { isTypeAheadHandler } from './utils';
@@ -51,6 +53,10 @@ export const createReducer = ({
51
53
  inputMethod,
52
54
  reopenQuery
53
55
  });
56
+ if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
57
+ var _insm$session;
58
+ (_insm$session = insm.session) === null || _insm$session === void 0 ? void 0 : _insm$session.startFeature('typeaheadOpen');
59
+ }
54
60
  return {
55
61
  ...currentPluginState,
56
62
  stats,
@@ -66,6 +72,10 @@ export const createReducer = ({
66
72
  };
67
73
  const closeMenu = currentPluginState => {
68
74
  removeDecorations(currentPluginState.decorationSet);
75
+ if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
76
+ var _insm$session2;
77
+ (_insm$session2 = insm.session) === null || _insm$session2 === void 0 ? void 0 : _insm$session2.endFeature('typeaheadOpen');
78
+ }
69
79
  return {
70
80
  ...currentPluginState,
71
81
  inputMethod: null,
@@ -4,6 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { InsertTypeAheadStages, InsertTypeAheadStep } from '@atlaskit/adf-schema/steps';
5
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
7
+ import { insm } from '@atlaskit/insm';
8
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
9
  import { ACTIONS } from './actions';
8
10
  import { pluginKey } from './key';
9
11
  import { isTypeAheadHandler } from './utils';
@@ -55,6 +57,10 @@ export var createReducer = function createReducer(_ref) {
55
57
  decorationSet = _createDecorations.decorationSet,
56
58
  decorationElement = _createDecorations.decorationElement,
57
59
  stats = _createDecorations.stats;
60
+ if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
61
+ var _insm$session;
62
+ (_insm$session = insm.session) === null || _insm$session === void 0 || _insm$session.startFeature('typeaheadOpen');
63
+ }
58
64
  return _objectSpread(_objectSpread({}, currentPluginState), {}, {
59
65
  stats: stats,
60
66
  decorationSet: decorationSet,
@@ -69,6 +75,10 @@ export var createReducer = function createReducer(_ref) {
69
75
  };
70
76
  var closeMenu = function closeMenu(currentPluginState) {
71
77
  removeDecorations(currentPluginState.decorationSet);
78
+ if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
79
+ var _insm$session2;
80
+ (_insm$session2 = insm.session) === null || _insm$session2 === void 0 || _insm$session2.endFeature('typeaheadOpen');
81
+ }
72
82
  return _objectSpread(_objectSpread({}, currentPluginState), {}, {
73
83
  inputMethod: null,
74
84
  query: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,22 +29,23 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.0.0",
32
+ "@atlaskit/adf-schema": "^51.1.1",
33
33
  "@atlaskit/editor-element-browser": "^3.0.0",
34
- "@atlaskit/editor-plugin-analytics": "^5.0.0",
34
+ "@atlaskit/editor-plugin-analytics": "^5.1.0",
35
35
  "@atlaskit/editor-plugin-connectivity": "^5.0.0",
36
36
  "@atlaskit/editor-plugin-context-panel": "^7.0.0",
37
- "@atlaskit/editor-plugin-metrics": "^6.0.0",
37
+ "@atlaskit/editor-plugin-metrics": "^6.1.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
40
  "@atlaskit/heading": "^5.2.0",
41
41
  "@atlaskit/icon": "^28.1.0",
42
+ "@atlaskit/insm": "^0.1.0",
42
43
  "@atlaskit/menu": "^8.4.0",
43
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
45
  "@atlaskit/primitives": "^14.14.0",
45
46
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
46
47
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^12.10.0",
48
+ "@atlaskit/tmp-editor-statsig": "^12.14.0",
48
49
  "@atlaskit/tokens": "^6.3.0",
49
50
  "@babel/runtime": "^7.0.0",
50
51
  "@emotion/react": "^11.7.1",
@@ -55,7 +56,7 @@
55
56
  "w3c-keyname": "^2.1.8"
56
57
  },
57
58
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^109.1.0",
59
+ "@atlaskit/editor-common": "^109.3.0",
59
60
  "react": "^18.2.0",
60
61
  "react-dom": "^18.2.0",
61
62
  "react-intl-next": "npm:react-intl@^5.18.1"