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,27 +1,27 @@
{
"name": "float-search",
"version": "3.4.0",
"description": "You can use search view in modal/leaf/popout window now.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "Boninall",
"license": "GPL-3.0",
"devDependencies": {
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"esbuild": "0.14.47",
"obsidian": "latest",
"tslib": "2.4.0",
"typescript": "4.7.4"
},
"dependencies": {
"monkey-around": "^2.3.0"
}
"name": "float-search",
"version": "3.4.2",
"description": "You can use search view in modal/leaf/popout window now.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "Boninall",
"license": "GPL-3.0",
"devDependencies": {
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"esbuild": "0.14.47",
"obsidian": "latest",
"tslib": "2.4.0",
"typescript": "4.7.4"
},
"dependencies": {
"monkey-around": "^2.3.0"
}
}

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"
}