@atlaskit/editor-plugin-type-ahead 12.1.14 → 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,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 12.1.14
|
|
4
15
|
|
|
5
16
|
### 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)('
|
|
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('
|
|
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('
|
|
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": "
|
|
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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
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": "^
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^123.0.0",
|
|
40
40
|
"@atlaskit/tokens": "^15.5.0",
|
|
41
41
|
"@atlaskit/visually-hidden": "^4.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|