@atlaskit/editor-plugin-type-ahead 30.0.1 → 30.0.3
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-type-ahead
|
|
2
2
|
|
|
3
|
+
## 30.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1cc2a27e90935`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1cc2a27e90935) -
|
|
8
|
+
Remove the platform_editor_typeahead_early_focus experiment and retain the enabled Test cohort,
|
|
9
|
+
focusing typeahead queries as soon as they are attached.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 30.0.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 30.0.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -16,7 +16,6 @@ var _browser = require("@atlaskit/editor-common/browser");
|
|
|
16
16
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
17
17
|
var _messages = require("@atlaskit/editor-common/type-ahead/messages");
|
|
18
18
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
19
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
20
19
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
21
20
|
var _constants2 = require("../pm-plugins/constants");
|
|
22
21
|
var _utils = require("../pm-plugins/utils");
|
|
@@ -434,10 +433,7 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
|
|
|
434
433
|
ref.current.focus();
|
|
435
434
|
setInFocus(true);
|
|
436
435
|
};
|
|
437
|
-
|
|
438
|
-
return scheduleFocusAfterAttachment(ref, focusQuery);
|
|
439
|
-
}
|
|
440
|
-
requestAnimationFrame(focusQuery);
|
|
436
|
+
return scheduleFocusAfterAttachment(ref, focusQuery);
|
|
441
437
|
}
|
|
442
438
|
}, [forceFocus, reopenQuery]);
|
|
443
439
|
var assistiveHintID = _constants2.TYPE_AHEAD_DECORATION_ELEMENT_ID + '__assistiveHint';
|
|
@@ -13,7 +13,6 @@ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
|
13
13
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
14
14
|
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
15
15
|
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
|
|
16
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
17
|
import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_ELEMENT_ID, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../pm-plugins/constants';
|
|
19
18
|
import { getPluginState } from '../pm-plugins/utils';
|
|
@@ -428,10 +427,7 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
428
427
|
ref.current.focus();
|
|
429
428
|
setInFocus(true);
|
|
430
429
|
};
|
|
431
|
-
|
|
432
|
-
return scheduleFocusAfterAttachment(ref, focusQuery);
|
|
433
|
-
}
|
|
434
|
-
requestAnimationFrame(focusQuery);
|
|
430
|
+
return scheduleFocusAfterAttachment(ref, focusQuery);
|
|
435
431
|
}
|
|
436
432
|
}, [forceFocus, reopenQuery]);
|
|
437
433
|
const assistiveHintID = TYPE_AHEAD_DECORATION_ELEMENT_ID + '__assistiveHint';
|
|
@@ -14,7 +14,6 @@ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
|
14
14
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
15
15
|
import { typeAheadListMessages } from '@atlaskit/editor-common/type-ahead/messages';
|
|
16
16
|
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
|
|
17
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
18
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
18
|
import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_ELEMENT_ID, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../pm-plugins/constants';
|
|
20
19
|
import { getPluginState } from '../pm-plugins/utils';
|
|
@@ -424,10 +423,7 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
424
423
|
ref.current.focus();
|
|
425
424
|
setInFocus(true);
|
|
426
425
|
};
|
|
427
|
-
|
|
428
|
-
return scheduleFocusAfterAttachment(ref, focusQuery);
|
|
429
|
-
}
|
|
430
|
-
requestAnimationFrame(focusQuery);
|
|
426
|
+
return scheduleFocusAfterAttachment(ref, focusQuery);
|
|
431
427
|
}
|
|
432
428
|
}, [forceFocus, reopenQuery]);
|
|
433
429
|
var assistiveHintID = TYPE_AHEAD_DECORATION_ELEMENT_ID + '__assistiveHint';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.3",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/primitives": "^22.6.0",
|
|
43
43
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^244.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^20.6.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"w3c-keyname": "^2.1.8"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@atlaskit/editor-common": "^133.
|
|
57
|
+
"@atlaskit/editor-common": "^133.2.0",
|
|
58
58
|
"react": "^18.2.0 || ^19.2.0",
|
|
59
59
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|