chore: bump version

This commit is contained in:
Quorafind 2023-09-12 15:21:25 +08:00
parent faf7dd0b08
commit 257b8f33bc
4 changed files with 30 additions and 29 deletions

View file

@ -1,7 +1,7 @@
{
"id": "float-search",
"name": "Floating Search",
"version": "3.4.0",
"version": "3.4.2",
"minAppVersion": "0.15.0",
"description": "You can use search view in modal/leaf/popout window now.",
"author": "Boninall",

View file

@ -1,6 +1,6 @@
{
"name": "float-search",
"version": "3.4.0",
"version": "3.4.2",
"description": "You can use search view in modal/leaf/popout window now.",
"main": "main.js",
"scripts": {

View file

@ -6,7 +6,7 @@ import {
Modal, OpenViewState, PaneType,
Plugin, SearchView, setIcon,
TAbstractFile,
TFile,
TFile, ViewStateResult,
Workspace,
WorkspaceContainer, WorkspaceItem,
WorkspaceLeaf
@ -660,7 +660,7 @@ class FloatSearchModal extends Modal {
});
setTimeout(async () => {
await this.searchLeaf.view.setState(this.state, true);
await this.searchLeaf.view.setState(this.state, true as ViewStateResult);
this.state?.current ? (this.searchLeaf.view as SearchView).searchComponent.inputEl.setSelectionRange(0, 0) : (this.searchLeaf.view as SearchView).searchComponent.inputEl.setSelectionRange(0, this.state?.query?.length);
}, 0);

View file

@ -18,5 +18,6 @@
"3.3.2": "0.15.0",
"3.3.3": "0.15.0",
"3.3.4": "0.15.0",
"3.4.0": "0.15.0"
"3.4.0": "0.15.0",
"3.4.2": "0.15.0"
}