@lvce-editor/test-worker 9.8.0 → 9.10.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.
@@ -1116,6 +1116,11 @@ const createLazyRpc = rpcId => {
1116
1116
  };
1117
1117
  };
1118
1118
 
1119
+ /* eslint-disable no-console */
1120
+ const clearConsole = () => {
1121
+ console.clear();
1122
+ };
1123
+
1119
1124
  const createUrlWithQueryParameter = url => {
1120
1125
  const parsedUrl = new URL(url, location.href);
1121
1126
  parsedUrl.searchParams.set('time', `${Date.now()}`);
@@ -1649,7 +1654,7 @@ const focusPrevious$7 = async () => {
1649
1654
  const handleClick$2 = async index => {
1650
1655
  await invoke$1('ActivityBar.handleClick', index);
1651
1656
  };
1652
- const handleContextMenu$1 = async () => {
1657
+ const handleContextMenu$2 = async () => {
1653
1658
  await invoke$1('ActivityBar.handleContextMenu');
1654
1659
  };
1655
1660
  const selectCurrent = async () => {
@@ -1664,7 +1669,7 @@ const ActivityBar = {
1664
1669
  focusNext: focusNext$8,
1665
1670
  focusPrevious: focusPrevious$7,
1666
1671
  handleClick: handleClick$2,
1667
- handleContextMenu: handleContextMenu$1,
1672
+ handleContextMenu: handleContextMenu$2,
1668
1673
  selectCurrent
1669
1674
  };
1670
1675
 
@@ -2185,7 +2190,7 @@ const EditorHover = {
2185
2190
  show: show$5
2186
2191
  };
2187
2192
 
2188
- const handleInput$4 = async value => {
2193
+ const handleInput$5 = async value => {
2189
2194
  // @ts-ignore
2190
2195
  await invoke$1('EditorRename.handleInput', value, Script);
2191
2196
  };
@@ -2202,7 +2207,7 @@ const EditorRename = {
2202
2207
  __proto__: null,
2203
2208
  accept,
2204
2209
  cancel,
2205
- handleInput: handleInput$4
2210
+ handleInput: handleInput$5
2206
2211
  };
2207
2212
 
2208
2213
  const selectIndex$5 = async index => {
@@ -2220,7 +2225,6 @@ const EditorSourceAction = {
2220
2225
  selectIndex: selectIndex$5
2221
2226
  };
2222
2227
 
2223
- /* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
2224
2228
  const openContextMenu = async index => {
2225
2229
  // @ts-ignore
2226
2230
  await invoke$1('Explorer.handleContextMenuKeyboard', index);
@@ -2447,7 +2451,7 @@ const selectFeatures = async () => {
2447
2451
  const selectChangelog = async () => {
2448
2452
  await selectTab$1('Changelog');
2449
2453
  };
2450
- const open$5 = extensionId => {
2454
+ const open$6 = extensionId => {
2451
2455
  const uri = `extension-detail://${extensionId}`;
2452
2456
  return invoke$1('Main.openUri', uri);
2453
2457
  };
@@ -2486,7 +2490,7 @@ const ExtensionDetail = {
2486
2490
  handleClickSetColorTheme,
2487
2491
  handleReadmeContextMenu,
2488
2492
  handleScroll: handleScroll$1,
2489
- open: open$5,
2493
+ open: open$6,
2490
2494
  openCommands,
2491
2495
  openFeature,
2492
2496
  openJsonValidation,
@@ -2501,6 +2505,53 @@ const ExtensionDetail = {
2501
2505
  selectTab: selectTab$1
2502
2506
  };
2503
2507
 
2508
+ const open$5 = async id => {
2509
+ await invoke$1('SideBar.openViewlet', id);
2510
+ };
2511
+ const hide = async () => {
2512
+ await invoke$1('Layout.hideSideBar');
2513
+ };
2514
+
2515
+ const SideBar = {
2516
+ __proto__: null,
2517
+ hide,
2518
+ open: open$5
2519
+ };
2520
+
2521
+ const open$4 = async () => {
2522
+ await open$5('Extensions');
2523
+ };
2524
+ const handleInput$4 = async value => {
2525
+ // @ts-ignore
2526
+ await invoke$1('Extensions.handleInput', value, Script$1);
2527
+ };
2528
+ const handleContextMenu$1 = async (button, x, y) => {
2529
+ // @ts-ignore
2530
+ await invoke$1('Extensions.handleContextMenu', button, x, y);
2531
+ };
2532
+ const copyExtensionInfo = async () => {
2533
+ // @ts-ignore
2534
+ await invoke$1('Extensions.copyExtensionInfo');
2535
+ };
2536
+ const copyExtensionId = async () => {
2537
+ // @ts-ignore
2538
+ await invoke$1('Extensions.copyExtensionId');
2539
+ };
2540
+ const clearSearchResults$1 = async () => {
2541
+ // @ts-ignore
2542
+ await invoke$1('Extensions.clearSearchResults');
2543
+ };
2544
+
2545
+ const ExtensionSearch = {
2546
+ __proto__: null,
2547
+ clearSearchResults: clearSearchResults$1,
2548
+ copyExtensionId,
2549
+ copyExtensionInfo,
2550
+ handleContextMenu: handleContextMenu$1,
2551
+ handleInput: handleInput$4,
2552
+ open: open$4
2553
+ };
2554
+
2504
2555
  const Memfs = 'memfs';
2505
2556
 
2506
2557
  const toFileUrl = url => {
@@ -2599,7 +2650,6 @@ const stringifyJson = data => {
2599
2650
  return JSON.stringify(data, null, 2) + '\n';
2600
2651
  };
2601
2652
 
2602
- /* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
2603
2653
  const writeFile = async (uri, content) => {
2604
2654
  await invoke$1('FileSystem.writeFile', uri, content);
2605
2655
  };
@@ -2812,7 +2862,7 @@ const IframeInspector = {
2812
2862
  selectIndex: selectIndex$4
2813
2863
  };
2814
2864
 
2815
- const open$4 = async () => {
2865
+ const open$3 = async () => {
2816
2866
  await invoke$1('Main.openUri', 'app://keybindings');
2817
2867
  };
2818
2868
  const handleInput$3 = value => {
@@ -2900,7 +2950,7 @@ const KeyBindingsEditor = {
2900
2950
  handleDoubleClick,
2901
2951
  handleInput: handleInput$3,
2902
2952
  handleWheel: handleWheel$1,
2903
- open: open$4,
2953
+ open: open$3,
2904
2954
  removeKeyBinding,
2905
2955
  resetKeyBinding,
2906
2956
  showSameKeyBindings,
@@ -3043,18 +3093,18 @@ const Output = {
3043
3093
  show: show$4
3044
3094
  };
3045
3095
 
3046
- const open$3 = async id => {
3096
+ const open$2 = async id => {
3047
3097
  await invoke$1('Layout.showPanel', id);
3048
3098
  };
3049
3099
  const openProblems = async () => {
3050
- await open$3('Problems');
3100
+ await open$2('Problems');
3051
3101
  // @ts-ignore
3052
3102
  await invoke$1('Panel.selectIndex', 0);
3053
3103
  };
3054
3104
 
3055
3105
  const Panel = {
3056
3106
  __proto__: null,
3057
- open: open$3,
3107
+ open: open$2,
3058
3108
  openProblems
3059
3109
  };
3060
3110
 
@@ -3146,7 +3196,7 @@ const Problems = {
3146
3196
 
3147
3197
  const QuickPick$1 = 'QuickPick';
3148
3198
 
3149
- const open$2 = async () => {
3199
+ const open$1 = async () => {
3150
3200
  // @ts-ignore
3151
3201
  await invoke$1('Viewlet.openWidget', QuickPick$1, 'everything');
3152
3202
  };
@@ -3213,7 +3263,7 @@ const QuickPick = {
3213
3263
  focusPrevious: focusPrevious$2,
3214
3264
  handleClickAt,
3215
3265
  handleInput: handleInput$2,
3216
- open: open$2,
3266
+ open: open$1,
3217
3267
  selectCurrentIndex,
3218
3268
  selectIndex: selectIndex$3,
3219
3269
  selectItem,
@@ -3240,21 +3290,8 @@ const References = {
3240
3290
  refresh
3241
3291
  };
3242
3292
 
3243
- const open$1 = async id => {
3244
- await invoke$1('SideBar.openViewlet', id);
3245
- };
3246
- const hide = async () => {
3247
- await invoke$1('Layout.hideSideBar');
3248
- };
3249
-
3250
- const SideBar = {
3251
- __proto__: null,
3252
- hide,
3253
- open: open$1
3254
- };
3255
-
3256
3293
  const show$2 = async () => {
3257
- await open$1('Run And Debug');
3294
+ await open$5('Run And Debug');
3258
3295
  };
3259
3296
  const handleClickSectionBreakPoints = async () => {
3260
3297
  // @ts-ignore
@@ -3529,7 +3566,7 @@ const handleClickSourceControlButtons = async (index, name) => {
3529
3566
  };
3530
3567
  const show = async () => {
3531
3568
  // @ts-ignore
3532
- await open$1('Source Control');
3569
+ await open$5('Source Control');
3533
3570
  };
3534
3571
 
3535
3572
  const SourceControl = {
@@ -3768,6 +3805,7 @@ const createApi = (platform, assetDir$1) => {
3768
3805
  Explorer,
3769
3806
  Extension,
3770
3807
  ExtensionDetail,
3808
+ ExtensionSearch,
3771
3809
  FileSystem: {
3772
3810
  ...FileSystem,
3773
3811
  loadFixture(url) {
@@ -3932,6 +3970,7 @@ const getFileUri = href => {
3932
3970
  const fileUrl = `file://${rest}`;
3933
3971
  return fileUrl;
3934
3972
  };
3973
+
3935
3974
  const watchForHotReload = async (platform, href) => {
3936
3975
  if (platform !== Remote) {
3937
3976
  return;
@@ -4019,6 +4058,7 @@ const hotReloadTest = async () => {
4019
4058
  return;
4020
4059
  }
4021
4060
  const withQueryParameter = createUrlWithQueryParameter(url);
4061
+ clearConsole();
4022
4062
  await execute(withQueryParameter, platform, assetDir);
4023
4063
  };
4024
4064
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",