@lvce-editor/explorer-view 3.2.0 → 3.3.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.
@@ -1886,7 +1886,12 @@ const copyPath = async state => {
1886
1886
  if (!dirent) {
1887
1887
  return state;
1888
1888
  }
1889
- // await Command.execute(RendererWorkerCommandType.ClipBoardWriteText, /* text */ path)
1889
+ // TODO windows paths
1890
+ // TODO handle error
1891
+ const {
1892
+ path
1893
+ } = dirent;
1894
+ await writeClipBoardText(path);
1890
1895
  return state;
1891
1896
  };
1892
1897
 
@@ -2026,7 +2031,8 @@ const create2 = (uid, uri, x, y, width, height, args, parentUid, platform = 0) =
2026
2031
  confirmPaste: false,
2027
2032
  pasteShouldMove: false,
2028
2033
  cutItems: [],
2029
- isPointerDown: false
2034
+ isPointerDown: false,
2035
+ pointerDownIndex: -1
2030
2036
  };
2031
2037
  set(uid, state, state);
2032
2038
  };
@@ -2076,7 +2082,8 @@ const create = (id, uri, x, y, width, height, args, parentUid, platform = 0) =>
2076
2082
  confirmPaste: false,
2077
2083
  pasteShouldMove: false,
2078
2084
  cutItems: [],
2079
- isPointerDown: false
2085
+ isPointerDown: false,
2086
+ pointerDownIndex: -1
2080
2087
  };
2081
2088
  set(state.uid, state, state);
2082
2089
  return state;
@@ -4108,10 +4115,7 @@ const handlePointerDown = (state, button, x, y) => {
4108
4115
  focus: List
4109
4116
  };
4110
4117
  }
4111
- return {
4112
- ...state,
4113
- focusedIndex: index
4114
- };
4118
+ return state;
4115
4119
  };
4116
4120
 
4117
4121
  const handleUpload = async (state, dirents) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/explorer-view",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",