@lvce-editor/test-worker 4.24.0 → 4.25.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.
package/dist/api.d.ts CHANGED
@@ -109,6 +109,8 @@ declare const acceptEdit: () => Promise<void>;
109
109
  declare const updateEditingValue: (value: string) => Promise<void>;
110
110
  declare const expandAll: () => Promise<void>;
111
111
  declare const handleDragOver: (x: number, y: number) => Promise<void>;
112
+ declare const handleCut: () => Promise<void>;
113
+ declare const handlePaste: () => Promise<void>;
112
114
  declare const selectIndices: (indices: readonly number[]) => Promise<void>;
113
115
  declare const addWebExtension: (relativePath: string) => Promise<void>;
114
116
  declare const addNodeExtension: (relativePath: string) => Promise<void>;
@@ -269,7 +271,7 @@ declare namespace EditorCompletion {
269
271
  export { selectCurrentIndex, selectIndex };
270
272
  }
271
273
  declare namespace Explorer {
272
- export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleDragLeave, handleDragOver, handleDrop, handleInputBlur, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, updateEditingValue };
274
+ export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleCut, handleDragLeave, handleDragOver, handleDrop, handleInputBlur, handlePaste, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, updateEditingValue };
273
275
  }
274
276
  declare namespace Extension {
275
277
  export { addNodeExtension, addWebExtension };
@@ -1003,7 +1003,7 @@ const printTestError = async error => {
1003
1003
  };
1004
1004
 
1005
1005
  const rpcs = Object.create(null);
1006
- const set$f = (id, rpc) => {
1006
+ const set$g = (id, rpc) => {
1007
1007
  rpcs[id] = rpc;
1008
1008
  };
1009
1009
  const get$1 = id => {
@@ -1027,7 +1027,7 @@ const create$1 = rpcId => {
1027
1027
  return rpc.invokeAndTransfer(method, ...params);
1028
1028
  },
1029
1029
  set(rpc) {
1030
- set$f(rpcId, rpc);
1030
+ set$g(rpcId, rpc);
1031
1031
  },
1032
1032
  async dispose() {
1033
1033
  const rpc = get$1(rpcId);
@@ -2056,6 +2056,14 @@ const expandAll = async () => {
2056
2056
  const handleDragOver = async (x, y) => {
2057
2057
  await invoke('Explorer.handleDragOver', x, y);
2058
2058
  };
2059
+ const handleCut = async () => {
2060
+ // @ts-ignore
2061
+ await invoke('Explorer.handleCut');
2062
+ };
2063
+ const handlePaste = async () => {
2064
+ // @ts-ignore
2065
+ await invoke('Explorer.handlePaste');
2066
+ };
2059
2067
  const selectIndices = async indices => {
2060
2068
  await invoke('Explorer.selectIndices', indices);
2061
2069
  };
@@ -2076,10 +2084,12 @@ const TestFrameWorkComponentExplorer = {
2076
2084
  handleBlur,
2077
2085
  handleClick: handleClick$1,
2078
2086
  handleClickAt: handleClickAt$1,
2087
+ handleCut,
2079
2088
  handleDragLeave,
2080
2089
  handleDragOver,
2081
2090
  handleDrop,
2082
2091
  handleInputBlur,
2092
+ handlePaste,
2083
2093
  newFile,
2084
2094
  newFolder,
2085
2095
  openContextMenu,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.24.0",
3
+ "version": "4.25.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",