From 257b8f33bc752cbeb15abe1442e103875c1e8046 Mon Sep 17 00:00:00 2001 From: Quorafind Date: Tue, 12 Sep 2023 15:21:25 +0800 Subject: [PATCH] chore: bump version --- manifest.json | 2 +- package.json | 50 ++++++++++++++++++++--------------------- src/floatSearchIndex.ts | 4 ++-- versions.json | 3 ++- 4 files changed, 30 insertions(+), 29 deletions(-) diff --git a/manifest.json b/manifest.json index 0af9aec..db18a45 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/package.json b/package.json index ae84cd1..8381a15 100644 --- a/package.json +++ b/package.json @@ -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" + } } diff --git a/src/floatSearchIndex.ts b/src/floatSearchIndex.ts index 5f4bcb2..f9030e3 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -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); diff --git a/versions.json b/versions.json index 33f1a64..1152c11 100644 --- a/versions.json +++ b/versions.json @@ -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" } \ No newline at end of file