@lvce-editor/test-worker 13.1.0 → 13.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.
package/dist/api.d.ts CHANGED
@@ -216,6 +216,8 @@ interface Editor {
216
216
  readonly selectAllOccurrences: () => Promise<void>;
217
217
  readonly selectAllRight: () => Promise<void>;
218
218
  readonly selectDown: () => Promise<void>;
219
+ readonly selectNextOccurrence: () => Promise<void>;
220
+ readonly selectPreviousOccurrence: () => Promise<void>;
219
221
  readonly selectUp: () => Promise<void>;
220
222
  readonly selectionGrow: () => Promise<void>;
221
223
  readonly setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
@@ -452,6 +454,7 @@ interface Main {
452
454
  readonly openUri: (uri: string) => Promise<void>;
453
455
  readonly save: () => Promise<void>;
454
456
  readonly selectTab: (groupIndex: number, tabIndex: number) => Promise<void>;
457
+ readonly splitDown: () => Promise<void>;
455
458
  readonly splitRight: () => Promise<void>;
456
459
  }
457
460
 
@@ -479,6 +482,7 @@ interface Preview {
479
482
  readonly handleKeyDown: (hdId: string, key: string, code: string) => Promise<void>;
480
483
  readonly open: (uri: string) => Promise<void>;
481
484
  readonly setUri: (uri: string) => Promise<void>;
485
+ readonly waitForClick: () => Promise<void>;
482
486
  }
483
487
 
484
488
  interface Problems {
@@ -1981,6 +1981,12 @@ const findAllImplementations = async () => {
1981
1981
  const setSelections = async selections => {
1982
1982
  await invoke('Editor.setSelections', selections);
1983
1983
  };
1984
+ const selectNextOccurrence = async () => {
1985
+ await invoke('Editor.selectNextOccurrence');
1986
+ };
1987
+ const selectPreviousOccurrence = async () => {
1988
+ await invoke('Editor.selectPreviousOccurrence');
1989
+ };
1984
1990
  const openFindWidget = async () => {
1985
1991
  await invoke('Editor.openFind');
1986
1992
  };
@@ -2198,6 +2204,8 @@ const Editor = {
2198
2204
  selectAllOccurrences,
2199
2205
  selectAllRight,
2200
2206
  selectDown: selectDown$1,
2207
+ selectNextOccurrence,
2208
+ selectPreviousOccurrence,
2201
2209
  selectUp: selectUp$1,
2202
2210
  selectionGrow,
2203
2211
  setCursor,
@@ -3087,6 +3095,9 @@ const openUri = async uri => {
3087
3095
  const splitRight = async () => {
3088
3096
  await invoke('Main.splitRight');
3089
3097
  };
3098
+ const splitDown = async () => {
3099
+ await invoke('Main.splitDown');
3100
+ };
3090
3101
  const openKeyBindings = async () => {
3091
3102
  await invoke('Main.openKeyBindings');
3092
3103
  };
@@ -3158,6 +3169,7 @@ const Main = {
3158
3169
  openUri,
3159
3170
  save,
3160
3171
  selectTab: selectTab$1,
3172
+ splitDown,
3161
3173
  splitRight
3162
3174
  };
3163
3175
 
@@ -3241,7 +3253,10 @@ const handleKeyDown = async (hdId, key, code) => {
3241
3253
  await invoke('Preview.handleKeyDown', hdId, key, code);
3242
3254
  };
3243
3255
  const setUri = async uri => {
3244
- await invoke('Preview.setUri');
3256
+ await invoke('Preview.setUri', uri);
3257
+ };
3258
+ const waitForClick = async () => {
3259
+ await invoke('Preview.waitForClick');
3245
3260
  };
3246
3261
 
3247
3262
  const Preview = {
@@ -3249,7 +3264,8 @@ const Preview = {
3249
3264
  handleInput: handleInput$3,
3250
3265
  handleKeyDown,
3251
3266
  open: open$2,
3252
- setUri
3267
+ setUri,
3268
+ waitForClick
3253
3269
  };
3254
3270
 
3255
3271
  const show$3 = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "13.1.0",
3
+ "version": "13.3.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",