@lvce-editor/text-search-worker 7.4.0 → 7.5.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.
@@ -3297,11 +3297,14 @@ const Refresh$1 = 'Refresh';
3297
3297
  const OpenSearchEditor = 'OpenSearchEditor';
3298
3298
  const ViewAsTree = 'ViewAsTree';
3299
3299
 
3300
+ const openUri = async (path, focus = true, props = {}) => {
3301
+ await openUri$1(path, focus, props);
3302
+ };
3303
+
3300
3304
  const openSearchEditor = async state => {
3301
- // TODO
3302
- return {
3303
- ...state
3304
- };
3305
+ const uri = `search-editor://${state.uid}-${globalThis.crypto.randomUUID()}/Search`;
3306
+ await openUri(uri);
3307
+ return state;
3305
3308
  };
3306
3309
 
3307
3310
  const handleError = error => {
@@ -4953,10 +4956,6 @@ const getFileIndex = (items, index) => {
4953
4956
  return -1;
4954
4957
  };
4955
4958
 
4956
- const openUri = async (path, focus = true, props = {}) => {
4957
- await openUri$1(path, focus, props);
4958
- };
4959
-
4960
4959
  // TODO this should be in FileSystem module
4961
4960
  const pathBaseName = path => {
4962
4961
  return path.slice(path.lastIndexOf('/') + 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "description": "Text Search Worker",
5
5
  "keywords": [
6
6
  "text-search"