@atlaskit/editor-plugin-type-ahead 12.1.13 → 13.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,22 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 13.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f62c983c6394a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f62c983c6394a) -
8
+ Replace platform_editor_typeahead_empty_query_fix with platform_editor_agent_mentions
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 12.1.14
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 12.1.13
4
21
 
5
22
  ### Patch Changes
@@ -141,7 +141,7 @@ var WrapperTypeAhead = exports.WrapperTypeAhead = /*#__PURE__*/_react.default.me
141
141
  (0, _react.useEffect)(function () {
142
142
  var view = editorViewRef.current;
143
143
  var pluginState = (0, _utils.getPluginState)(view.state);
144
- var shouldSkipEmptyQuery = !(0, _expVal.expVal)('platform_editor_typeahead_empty_query_fix', 'isEnabled', false) && query.length === 0;
144
+ var shouldSkipEmptyQuery = !(0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) && query.length === 0;
145
145
  if (shouldSkipEmptyQuery || query === (pluginState === null || pluginState === void 0 ? void 0 : pluginState.query) || !(pluginState !== null && pluginState !== void 0 && pluginState.triggerHandler)) {
146
146
  return;
147
147
  }
@@ -122,7 +122,7 @@ export const WrapperTypeAhead = /*#__PURE__*/React.memo(({
122
122
  current: view
123
123
  } = editorViewRef;
124
124
  const pluginState = getPluginState(view.state);
125
- const shouldSkipEmptyQuery = !expVal('platform_editor_typeahead_empty_query_fix', 'isEnabled', false) && query.length === 0;
125
+ const shouldSkipEmptyQuery = !expVal('platform_editor_agent_mentions', 'isEnabled', false) && query.length === 0;
126
126
  if (shouldSkipEmptyQuery || query === (pluginState === null || pluginState === void 0 ? void 0 : pluginState.query) || !(pluginState !== null && pluginState !== void 0 && pluginState.triggerHandler)) {
127
127
  return;
128
128
  }
@@ -132,7 +132,7 @@ export var WrapperTypeAhead = /*#__PURE__*/React.memo(function (_ref) {
132
132
  useEffect(function () {
133
133
  var view = editorViewRef.current;
134
134
  var pluginState = getPluginState(view.state);
135
- var shouldSkipEmptyQuery = !expVal('platform_editor_typeahead_empty_query_fix', 'isEnabled', false) && query.length === 0;
135
+ var shouldSkipEmptyQuery = !expVal('platform_editor_agent_mentions', 'isEnabled', false) && query.length === 0;
136
136
  if (shouldSkipEmptyQuery || query === (pluginState === null || pluginState === void 0 ? void 0 : pluginState.query) || !(pluginState !== null && pluginState !== void 0 && pluginState.triggerHandler)) {
137
137
  return;
138
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "12.1.13",
3
+ "version": "13.0.0",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^56.0.0",
24
+ "@atlaskit/adf-schema": "^56.1.0",
25
25
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
26
26
  "@atlaskit/editor-plugin-connectivity": "^12.0.0",
27
27
  "@atlaskit/editor-plugin-context-panel": "^14.0.0",
@@ -29,15 +29,15 @@
29
29
  "@atlaskit/editor-prosemirror": "^8.0.0",
30
30
  "@atlaskit/editor-shared-styles": "^4.0.0",
31
31
  "@atlaskit/feature-gate-js-client": "^6.0.0",
32
- "@atlaskit/heading": "^6.1.0",
32
+ "@atlaskit/heading": "^6.2.0",
33
33
  "@atlaskit/insm": "^1.0.0",
34
34
  "@atlaskit/menu": "^9.1.0",
35
35
  "@atlaskit/platform-feature-flags": "^2.0.0",
36
- "@atlaskit/primitives": "^20.3.0",
36
+ "@atlaskit/primitives": "^20.5.0",
37
37
  "@atlaskit/prosemirror-history": "^1.0.0",
38
38
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
39
- "@atlaskit/tmp-editor-statsig": "^121.0.0",
40
- "@atlaskit/tokens": "^15.4.0",
39
+ "@atlaskit/tmp-editor-statsig": "^123.0.0",
40
+ "@atlaskit/tokens": "^15.5.0",
41
41
  "@atlaskit/visually-hidden": "^4.1.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",
@@ -48,7 +48,7 @@
48
48
  "w3c-keyname": "^2.1.8"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^116.22.0",
51
+ "@atlaskit/editor-common": "^116.24.0",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"