@lvce-editor/extension-detail-view 4.18.0 → 5.0.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.
@@ -1926,7 +1926,7 @@ const send = (transport, method, ...params) => {
1926
1926
  const message = create$4(method, params);
1927
1927
  transport.send(message);
1928
1928
  };
1929
- const invoke$5 = (ipc, method, ...params) => {
1929
+ const invoke$6 = (ipc, method, ...params) => {
1930
1930
  return invokeHelper(ipc, method, params, false);
1931
1931
  };
1932
1932
  const invokeAndTransfer$4 = (ipc, method, ...params) => {
@@ -1965,7 +1965,7 @@ const createRpc = ipc => {
1965
1965
  send(ipc, method, ...params);
1966
1966
  },
1967
1967
  invoke(method, ...params) {
1968
- return invoke$5(ipc, method, ...params);
1968
+ return invoke$6(ipc, method, ...params);
1969
1969
  },
1970
1970
  invokeAndTransfer(method, ...params) {
1971
1971
  return invokeAndTransfer$4(ipc, method, ...params);
@@ -2075,22 +2075,22 @@ const createMockRpc = ({
2075
2075
  };
2076
2076
 
2077
2077
  const {
2078
- invoke: invoke$4,
2078
+ invoke: invoke$5,
2079
2079
  invokeAndTransfer: invokeAndTransfer$3,
2080
2080
  set: set$9,
2081
2081
  dispose: dispose$5
2082
2082
  } = create$7(ExtensionHostWorker);
2083
2083
  const executeReferenceProvider = async (id, offset) => {
2084
2084
  // @ts-ignore
2085
- return invoke$4('ExtensionHostReference.executeReferenceProvider', id, offset);
2085
+ return invoke$5('ExtensionHostReference.executeReferenceProvider', id, offset);
2086
2086
  };
2087
2087
  const executeFileReferenceProvider = async id => {
2088
2088
  // @ts-ignore
2089
- return invoke$4('ExtensionHostReference.executeFileReferenceProvider', id);
2089
+ return invoke$5('ExtensionHostReference.executeFileReferenceProvider', id);
2090
2090
  };
2091
2091
  const getRuntimeStatus$2 = async extensionId => {
2092
2092
  // @ts-ignore
2093
- return invoke$4('ExtensionHost.getRuntimeStatus', extensionId);
2093
+ return invoke$5('ExtensionHost.getRuntimeStatus', extensionId);
2094
2094
  };
2095
2095
  const registerMockRpc$3 = commandMap => {
2096
2096
  const mockRpc = createMockRpc({
@@ -2106,67 +2106,67 @@ const ExtensionHost = {
2106
2106
  executeFileReferenceProvider,
2107
2107
  executeReferenceProvider,
2108
2108
  getRuntimeStatus: getRuntimeStatus$2,
2109
- invoke: invoke$4,
2109
+ invoke: invoke$5,
2110
2110
  invokeAndTransfer: invokeAndTransfer$3,
2111
2111
  registerMockRpc: registerMockRpc$3,
2112
2112
  set: set$9
2113
2113
  };
2114
2114
 
2115
2115
  const {
2116
- invoke: invoke$3,
2116
+ invoke: invoke$4,
2117
2117
  invokeAndTransfer: invokeAndTransfer$2,
2118
2118
  set: set$8,
2119
2119
  dispose: dispose$4
2120
2120
  } = create$7(FileSystemWorker$1);
2121
2121
  const remove = async dirent => {
2122
- return invoke$3('FileSystem.remove', dirent);
2122
+ return invoke$4('FileSystem.remove', dirent);
2123
2123
  };
2124
2124
  const readDirWithFileTypes = async uri => {
2125
- return invoke$3('FileSystem.readDirWithFileTypes', uri);
2125
+ return invoke$4('FileSystem.readDirWithFileTypes', uri);
2126
2126
  };
2127
2127
  const getPathSeparator = async root => {
2128
2128
  // @ts-ignore
2129
- return invoke$3('FileSystem.getPathSeparator', root);
2129
+ return invoke$4('FileSystem.getPathSeparator', root);
2130
2130
  };
2131
2131
  const getRealPath = async path => {
2132
- return invoke$3('FileSystem.getRealPath', path);
2132
+ return invoke$4('FileSystem.getRealPath', path);
2133
2133
  };
2134
2134
  const stat = async dirent => {
2135
- return invoke$3('FileSystem.stat', dirent);
2135
+ return invoke$4('FileSystem.stat', dirent);
2136
2136
  };
2137
2137
  const createFile = async uri => {
2138
- return invoke$3('FileSystem.writeFile', uri, '');
2138
+ return invoke$4('FileSystem.writeFile', uri, '');
2139
2139
  };
2140
2140
  const readFile$3 = async uri => {
2141
- return invoke$3('FileSystem.readFile', uri);
2141
+ return invoke$4('FileSystem.readFile', uri);
2142
2142
  };
2143
2143
  const writeFile = async (uri, content) => {
2144
- return invoke$3('FileSystem.writeFile', uri, content);
2144
+ return invoke$4('FileSystem.writeFile', uri, content);
2145
2145
  };
2146
2146
  const mkdir = async uri => {
2147
- return invoke$3('FileSystem.mkdir', uri);
2147
+ return invoke$4('FileSystem.mkdir', uri);
2148
2148
  };
2149
2149
  const rename = async (oldUri, newUri) => {
2150
- return invoke$3('FileSystem.rename', oldUri, newUri);
2150
+ return invoke$4('FileSystem.rename', oldUri, newUri);
2151
2151
  };
2152
2152
  const copy = async (oldUri, newUri) => {
2153
- return invoke$3('FileSystem.copy', oldUri, newUri);
2153
+ return invoke$4('FileSystem.copy', oldUri, newUri);
2154
2154
  };
2155
2155
  const exists$1 = async uri => {
2156
2156
  // @ts-ignore
2157
- return invoke$3('FileSystem.exists', uri);
2157
+ return invoke$4('FileSystem.exists', uri);
2158
2158
  };
2159
2159
  const getFolderSize$2 = async uri => {
2160
2160
  // @ts-ignore
2161
- return invoke$3('FileSystem.getFolderSize', uri);
2161
+ return invoke$4('FileSystem.getFolderSize', uri);
2162
2162
  };
2163
2163
  const readFileAsBlob$1 = async uri => {
2164
2164
  // @ts-ignore
2165
- return invoke$3('FileSystem.readFileAsBlob', uri);
2165
+ return invoke$4('FileSystem.readFileAsBlob', uri);
2166
2166
  };
2167
2167
  const appendFile = async (uri, text) => {
2168
2168
  // @ts-ignore
2169
- return invoke$3('FileSystem.appendFile', uri, text);
2169
+ return invoke$4('FileSystem.appendFile', uri, text);
2170
2170
  };
2171
2171
  const registerMockRpc$2 = commandMap => {
2172
2172
  const mockRpc = createMockRpc({
@@ -2186,7 +2186,7 @@ const FileSystemWorker = {
2186
2186
  getFolderSize: getFolderSize$2,
2187
2187
  getPathSeparator,
2188
2188
  getRealPath,
2189
- invoke: invoke$3,
2189
+ invoke: invoke$4,
2190
2190
  invokeAndTransfer: invokeAndTransfer$2,
2191
2191
  mkdir,
2192
2192
  readDirWithFileTypes,
@@ -2201,18 +2201,18 @@ const FileSystemWorker = {
2201
2201
  };
2202
2202
 
2203
2203
  const {
2204
- invoke: invoke$2,
2204
+ invoke: invoke$3,
2205
2205
  invokeAndTransfer: invokeAndTransfer$1,
2206
2206
  set: set$7,
2207
2207
  dispose: dispose$3
2208
2208
  } = create$7(MarkdownWorker$1);
2209
2209
  const getVirtualDom$1 = async html => {
2210
2210
  // @ts-ignore
2211
- return invoke$2('Markdown.getVirtualDom', html);
2211
+ return invoke$3('Markdown.getVirtualDom', html);
2212
2212
  };
2213
2213
  const render$1 = async (markdown, options) => {
2214
2214
  // @ts-ignore
2215
- return invoke$2('Markdown.render', markdown, options);
2215
+ return invoke$3('Markdown.render', markdown, options);
2216
2216
  };
2217
2217
  const registerMockRpc$1 = commandMap => {
2218
2218
  const mockRpc = createMockRpc({
@@ -2226,7 +2226,7 @@ const MarkdownWorker = {
2226
2226
  __proto__: null,
2227
2227
  dispose: dispose$3,
2228
2228
  getVirtualDom: getVirtualDom$1,
2229
- invoke: invoke$2,
2229
+ invoke: invoke$3,
2230
2230
  invokeAndTransfer: invokeAndTransfer$1,
2231
2231
  registerMockRpc: registerMockRpc$1,
2232
2232
  render: render$1,
@@ -2234,51 +2234,51 @@ const MarkdownWorker = {
2234
2234
  };
2235
2235
 
2236
2236
  const {
2237
- invoke: invoke$1,
2237
+ invoke: invoke$2,
2238
2238
  invokeAndTransfer,
2239
2239
  set: set$6,
2240
2240
  dispose: dispose$2
2241
2241
  } = create$7(RendererWorker$1);
2242
2242
  const searchFileHtml = async uri => {
2243
- return invoke$1('ExtensionHost.searchFileWithHtml', uri);
2243
+ return invoke$2('ExtensionHost.searchFileWithHtml', uri);
2244
2244
  };
2245
2245
  const getFilePathElectron = async file => {
2246
- return invoke$1('FileSystemHandle.getFilePathElectron', file);
2246
+ return invoke$2('FileSystemHandle.getFilePathElectron', file);
2247
2247
  };
2248
2248
  const showContextMenu$1 = async (x, y, id, ...args) => {
2249
- return invoke$1('ContextMenu.show', x, y, id, ...args);
2249
+ return invoke$2('ContextMenu.show', x, y, id, ...args);
2250
2250
  };
2251
2251
  const getElectronVersion = async () => {
2252
- return invoke$1('Process.getElectronVersion');
2252
+ return invoke$2('Process.getElectronVersion');
2253
2253
  };
2254
2254
  const applyBulkReplacement = async bulkEdits => {
2255
- await invoke$1('BulkReplacement.applyBulkReplacement', bulkEdits);
2255
+ await invoke$2('BulkReplacement.applyBulkReplacement', bulkEdits);
2256
2256
  };
2257
2257
  const setColorTheme$2 = async id => {
2258
2258
  // @ts-ignore
2259
- return invoke$1(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
2259
+ return invoke$2(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
2260
2260
  };
2261
2261
  const getNodeVersion = async () => {
2262
- return invoke$1('Process.getNodeVersion');
2262
+ return invoke$2('Process.getNodeVersion');
2263
2263
  };
2264
2264
  const getChromeVersion = async () => {
2265
- return invoke$1('Process.getChromeVersion');
2265
+ return invoke$2('Process.getChromeVersion');
2266
2266
  };
2267
2267
  const getV8Version = async () => {
2268
- return invoke$1('Process.getV8Version');
2268
+ return invoke$2('Process.getV8Version');
2269
2269
  };
2270
2270
  const getFileHandles = async fileIds => {
2271
- const files = await invoke$1('FileSystemHandle.getFileHandles', fileIds);
2271
+ const files = await invoke$2('FileSystemHandle.getFileHandles', fileIds);
2272
2272
  return files;
2273
2273
  };
2274
2274
  const setWorkspacePath = async path => {
2275
- await invoke$1('Workspace.setPath', path);
2275
+ await invoke$2('Workspace.setPath', path);
2276
2276
  };
2277
2277
  const registerWebViewInterceptor = async (id, port) => {
2278
2278
  await invokeAndTransfer('WebView.registerInterceptor', id, port);
2279
2279
  };
2280
2280
  const unregisterWebViewInterceptor = async id => {
2281
- await invoke$1('WebView.unregisterInterceptor', id);
2281
+ await invoke$2('WebView.unregisterInterceptor', id);
2282
2282
  };
2283
2283
  const sendMessagePortToEditorWorker = async (port, rpcId) => {
2284
2284
  const command = 'HandleMessagePort.handleMessagePort';
@@ -2306,41 +2306,41 @@ const sendMessagePortToFileSystemWorker$2 = async (port, rpcId) => {
2306
2306
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
2307
2307
  };
2308
2308
  const readFile$2 = async uri => {
2309
- return invoke$1('FileSystem.readFile', uri);
2309
+ return invoke$2('FileSystem.readFile', uri);
2310
2310
  };
2311
2311
  const getWebViewSecret = async key => {
2312
2312
  // @ts-ignore
2313
- return invoke$1('WebView.getSecret', key);
2313
+ return invoke$2('WebView.getSecret', key);
2314
2314
  };
2315
2315
  const setWebViewPort = async (uid, port, origin, portType) => {
2316
2316
  return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
2317
2317
  };
2318
2318
  const setFocus = key => {
2319
- return invoke$1('Focus.setFocus', key);
2319
+ return invoke$2('Focus.setFocus', key);
2320
2320
  };
2321
2321
  const getFileIcon = async options => {
2322
- return invoke$1('IconTheme.getFileIcon', options);
2322
+ return invoke$2('IconTheme.getFileIcon', options);
2323
2323
  };
2324
2324
  const getColorThemeNames = async () => {
2325
- return invoke$1('ColorTheme.getColorThemeNames');
2325
+ return invoke$2('ColorTheme.getColorThemeNames');
2326
2326
  };
2327
2327
  const disableExtension$2 = async id => {
2328
2328
  // @ts-ignore
2329
- return invoke$1('ExtensionManagement.disable', id);
2329
+ return invoke$2('ExtensionManagement.disable', id);
2330
2330
  };
2331
2331
  const enableExtension$2 = async id => {
2332
2332
  // @ts-ignore
2333
- return invoke$1('ExtensionManagement.enable', id);
2333
+ return invoke$2('ExtensionManagement.enable', id);
2334
2334
  };
2335
2335
  const handleDebugChange = async params => {
2336
2336
  // @ts-ignore
2337
- return invoke$1('Run And Debug.handleChange', params);
2337
+ return invoke$2('Run And Debug.handleChange', params);
2338
2338
  };
2339
2339
  const getFolderIcon = async options => {
2340
- return invoke$1('IconTheme.getFolderIcon', options);
2340
+ return invoke$2('IconTheme.getFolderIcon', options);
2341
2341
  };
2342
2342
  const closeWidget = async widgetId => {
2343
- return invoke$1('Viewlet.closeWidget', widgetId);
2343
+ return invoke$2('Viewlet.closeWidget', widgetId);
2344
2344
  };
2345
2345
  const sendMessagePortToExtensionHostWorker$2 = async (port, rpcId = 0) => {
2346
2346
  const command = 'HandleMessagePort.handleMessagePort2';
@@ -2351,55 +2351,55 @@ const sendMessagePortToSearchProcess = async port => {
2351
2351
  };
2352
2352
  const confirm = async (message, options) => {
2353
2353
  // @ts-ignore
2354
- const result = await invoke$1('ConfirmPrompt.prompt', message, options);
2354
+ const result = await invoke$2('ConfirmPrompt.prompt', message, options);
2355
2355
  return result;
2356
2356
  };
2357
2357
  const getRecentlyOpened = async () => {
2358
- return invoke$1(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
2358
+ return invoke$2(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
2359
2359
  };
2360
2360
  const getKeyBindings = async () => {
2361
- return invoke$1('KeyBindingsInitial.getKeyBindings');
2361
+ return invoke$2('KeyBindingsInitial.getKeyBindings');
2362
2362
  };
2363
2363
  const writeClipBoardText$1 = async text => {
2364
- await invoke$1('ClipBoard.writeText', /* text */text);
2364
+ await invoke$2('ClipBoard.writeText', /* text */text);
2365
2365
  };
2366
2366
  const writeClipBoardImage$1 = async blob => {
2367
2367
  // @ts-ignore
2368
- await invoke$1('ClipBoard.writeImage', /* text */blob);
2368
+ await invoke$2('ClipBoard.writeImage', /* text */blob);
2369
2369
  };
2370
2370
  const searchFileMemory = async uri => {
2371
2371
  // @ts-ignore
2372
- return invoke$1('ExtensionHost.searchFileWithMemory', uri);
2372
+ return invoke$2('ExtensionHost.searchFileWithMemory', uri);
2373
2373
  };
2374
2374
  const searchFileFetch = async uri => {
2375
- return invoke$1('ExtensionHost.searchFileWithFetch', uri);
2375
+ return invoke$2('ExtensionHost.searchFileWithFetch', uri);
2376
2376
  };
2377
2377
  const showMessageBox = async options => {
2378
- return invoke$1('ElectronDialog.showMessageBox', options);
2378
+ return invoke$2('ElectronDialog.showMessageBox', options);
2379
2379
  };
2380
2380
  const handleDebugResumed = async params => {
2381
- await invoke$1('Run And Debug.handleResumed', params);
2381
+ await invoke$2('Run And Debug.handleResumed', params);
2382
2382
  };
2383
2383
  const openWidget = async name => {
2384
- await invoke$1('Viewlet.openWidget', name);
2384
+ await invoke$2('Viewlet.openWidget', name);
2385
2385
  };
2386
2386
  const getIcons = async requests => {
2387
- const icons = await invoke$1('IconTheme.getIcons', requests);
2387
+ const icons = await invoke$2('IconTheme.getIcons', requests);
2388
2388
  return icons;
2389
2389
  };
2390
2390
  const activateByEvent = event => {
2391
- return invoke$1('ExtensionHostManagement.activateByEvent', event);
2391
+ return invoke$2('ExtensionHostManagement.activateByEvent', event);
2392
2392
  };
2393
2393
  const setAdditionalFocus = focusKey => {
2394
2394
  // @ts-ignore
2395
- return invoke$1('Focus.setAdditionalFocus', focusKey);
2395
+ return invoke$2('Focus.setAdditionalFocus', focusKey);
2396
2396
  };
2397
2397
  const getActiveEditorId = () => {
2398
2398
  // @ts-ignore
2399
- return invoke$1('GetActiveEditor.getActiveEditorId');
2399
+ return invoke$2('GetActiveEditor.getActiveEditorId');
2400
2400
  };
2401
2401
  const getWorkspacePath = () => {
2402
- return invoke$1('Workspace.getPath');
2402
+ return invoke$2('Workspace.getPath');
2403
2403
  };
2404
2404
  const sendMessagePortToRendererProcess = async port => {
2405
2405
  const command = 'HandleMessagePort.handleMessagePort';
@@ -2407,20 +2407,20 @@ const sendMessagePortToRendererProcess = async port => {
2407
2407
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
2408
2408
  };
2409
2409
  const getPreference = async key => {
2410
- return await invoke$1('Preferences.get', key);
2410
+ return await invoke$2('Preferences.get', key);
2411
2411
  };
2412
2412
  const getAllExtensions$2 = async () => {
2413
- return invoke$1('ExtensionManagement.getAllExtensions');
2413
+ return invoke$2('ExtensionManagement.getAllExtensions');
2414
2414
  };
2415
2415
  const rerenderEditor = async key => {
2416
2416
  // @ts-ignore
2417
- return invoke$1('Editor.rerender', key);
2417
+ return invoke$2('Editor.rerender', key);
2418
2418
  };
2419
2419
  const handleDebugPaused = async params => {
2420
- await invoke$1('Run And Debug.handlePaused', params);
2420
+ await invoke$2('Run And Debug.handlePaused', params);
2421
2421
  };
2422
2422
  const openUri = async (uri, focus, options) => {
2423
- await invoke$1('Main.openUri', uri, focus, options);
2423
+ await invoke$2('Main.openUri', uri, focus, options);
2424
2424
  };
2425
2425
  const sendMessagePortToSyntaxHighlightingWorker = async port => {
2426
2426
  await invokeAndTransfer(
@@ -2428,76 +2428,76 @@ const sendMessagePortToSyntaxHighlightingWorker = async port => {
2428
2428
  'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
2429
2429
  };
2430
2430
  const handleDebugScriptParsed = async script => {
2431
- await invoke$1('Run And Debug.handleScriptParsed', script);
2431
+ await invoke$2('Run And Debug.handleScriptParsed', script);
2432
2432
  };
2433
2433
  const getWindowId = async () => {
2434
- return invoke$1('GetWindowId.getWindowId');
2434
+ return invoke$2('GetWindowId.getWindowId');
2435
2435
  };
2436
2436
  const getBlob = async uri => {
2437
2437
  // @ts-ignore
2438
- return invoke$1('FileSystem.getBlob', uri);
2438
+ return invoke$2('FileSystem.getBlob', uri);
2439
2439
  };
2440
2440
  const getExtensionCommands = async () => {
2441
- return invoke$1('ExtensionHost.getCommands');
2441
+ return invoke$2('ExtensionHost.getCommands');
2442
2442
  };
2443
2443
  const showErrorDialog = async errorInfo => {
2444
2444
  // @ts-ignore
2445
- await invoke$1('ErrorHandling.showErrorDialog', errorInfo);
2445
+ await invoke$2('ErrorHandling.showErrorDialog', errorInfo);
2446
2446
  };
2447
2447
  const getFolderSize$1 = async uri => {
2448
2448
  // @ts-ignore
2449
- return await invoke$1('FileSystem.getFolderSize', uri);
2449
+ return await invoke$2('FileSystem.getFolderSize', uri);
2450
2450
  };
2451
2451
  const getExtension$3 = async id => {
2452
2452
  // @ts-ignore
2453
- return invoke$1('ExtensionManagement.getExtension', id);
2453
+ return invoke$2('ExtensionManagement.getExtension', id);
2454
2454
  };
2455
2455
  const getMarkdownDom = async html => {
2456
2456
  // @ts-ignore
2457
- return invoke$1('Markdown.getVirtualDom', html);
2457
+ return invoke$2('Markdown.getVirtualDom', html);
2458
2458
  };
2459
2459
  const renderMarkdown$1 = async (markdown, options) => {
2460
2460
  // @ts-ignore
2461
- return invoke$1('Markdown.renderMarkdown', markdown, options);
2461
+ return invoke$2('Markdown.renderMarkdown', markdown, options);
2462
2462
  };
2463
2463
  const openNativeFolder$1 = async uri => {
2464
2464
  // @ts-ignore
2465
- await invoke$1('OpenNativeFolder.openNativeFolder', uri);
2465
+ await invoke$2('OpenNativeFolder.openNativeFolder', uri);
2466
2466
  };
2467
2467
  const uninstallExtension$1 = async id => {
2468
- return invoke$1('ExtensionManagement.uninstall', id);
2468
+ return invoke$2('ExtensionManagement.uninstall', id);
2469
2469
  };
2470
2470
  const installExtension = async id => {
2471
2471
  // @ts-ignore
2472
- return invoke$1('ExtensionManagement.install', id);
2472
+ return invoke$2('ExtensionManagement.install', id);
2473
2473
  };
2474
2474
  const openExtensionSearch$2 = async () => {
2475
2475
  // @ts-ignore
2476
- return invoke$1('SideBar.openViewlet', 'Extensions');
2476
+ return invoke$2('SideBar.openViewlet', 'Extensions');
2477
2477
  };
2478
2478
  const setExtensionsSearchValue$1 = async searchValue => {
2479
2479
  // @ts-ignore
2480
- return invoke$1('Extensions.handleInput', searchValue);
2480
+ return invoke$2('Extensions.handleInput', searchValue);
2481
2481
  };
2482
2482
  const openExternal = async uri => {
2483
2483
  // @ts-ignore
2484
- await invoke$1('Open.openExternal', uri);
2484
+ await invoke$2('Open.openExternal', uri);
2485
2485
  };
2486
2486
  const openUrl$2 = async uri => {
2487
2487
  // @ts-ignore
2488
- await invoke$1('Open.openUrl', uri);
2488
+ await invoke$2('Open.openUrl', uri);
2489
2489
  };
2490
2490
  const getAllPreferences = async () => {
2491
2491
  // @ts-ignore
2492
- return invoke$1('Preferences.getAll');
2492
+ return invoke$2('Preferences.getAll');
2493
2493
  };
2494
2494
  const showSaveFilePicker = async () => {
2495
2495
  // @ts-ignore
2496
- return invoke$1('FilePicker.showSaveFilePicker');
2496
+ return invoke$2('FilePicker.showSaveFilePicker');
2497
2497
  };
2498
2498
  const getLogsDir = async () => {
2499
2499
  // @ts-ignore
2500
- return invoke$1('PlatformPaths.getLogsDir');
2500
+ return invoke$2('PlatformPaths.getLogsDir');
2501
2501
  };
2502
2502
  const registerMockRpc = commandMap => {
2503
2503
  const mockRpc = createMockRpc({
@@ -2546,7 +2546,7 @@ const RendererWorker = {
2546
2546
  handleDebugResumed,
2547
2547
  handleDebugScriptParsed,
2548
2548
  installExtension,
2549
- invoke: invoke$1,
2549
+ invoke: invoke$2,
2550
2550
  invokeAndTransfer,
2551
2551
  openExtensionSearch: openExtensionSearch$2,
2552
2552
  openExternal,
@@ -3284,6 +3284,7 @@ const {
3284
3284
  enableExtension: enableExtension$1,
3285
3285
  getAllExtensions: getAllExtensions$1,
3286
3286
  getExtension: getExtension$2,
3287
+ invoke: invoke$1,
3287
3288
  openExtensionSearch: openExtensionSearch$1,
3288
3289
  openNativeFolder,
3289
3290
  openUrl: openUrl$1,
@@ -3345,6 +3346,11 @@ const copyImageUrl = async state => {
3345
3346
  return state;
3346
3347
  };
3347
3348
 
3349
+ const copyReadmeLink = async (state, href) => {
3350
+ await writeText(href);
3351
+ return state;
3352
+ };
3353
+
3348
3354
  const {
3349
3355
  get,
3350
3356
  set,
@@ -3473,13 +3479,13 @@ const getMenuEntriesReadmeLink = props => {
3473
3479
  id: 'copyLink',
3474
3480
  label: copyLink(),
3475
3481
  flags: None$2,
3476
- command: 'ExtensionDetail.copyLink',
3477
- args: []
3482
+ command: 'ExtensionDetail.copyReadmeLink',
3483
+ args: [props.href]
3478
3484
  }];
3479
3485
  };
3480
3486
  const getMenuEntriesReadme$1 = props => {
3481
3487
  if (props.href) {
3482
- return getMenuEntriesReadmeLink();
3488
+ return getMenuEntriesReadmeLink(props);
3483
3489
  }
3484
3490
  return [{
3485
3491
  id: 'copy',
@@ -3825,6 +3831,10 @@ const handleIconError = state => {
3825
3831
  const show = async (menuId, x, y) => {
3826
3832
  await showContextMenu(x, y, menuId);
3827
3833
  };
3834
+ const show2 = async (uid, menuId, x, y, args) => {
3835
+ // @ts-ignore
3836
+ await invoke$1('ContextMenu.show2', uid, menuId, x, y, args);
3837
+ };
3828
3838
 
3829
3839
  const ExtensionDetailIconContextMenu = 4091;
3830
3840
 
@@ -3848,7 +3858,15 @@ const handleReadmeClick = async (state, nodeName, href) => {
3848
3858
  };
3849
3859
 
3850
3860
  const handleReadmeContextMenu = async (state, x, y, nodeName, href) => {
3851
- await show(ExtensionDetailReadme, x, y);
3861
+ const {
3862
+ uid
3863
+ } = state;
3864
+ // TODO maybe also pass other args
3865
+ await show2(uid, ExtensionDetailReadme, x, y, {
3866
+ menuId: ExtensionDetailReadme,
3867
+ nodeName,
3868
+ href
3869
+ });
3852
3870
  // TODO
3853
3871
  return state;
3854
3872
  };
@@ -5320,6 +5338,7 @@ const saveState = state => {
5320
5338
  const commandMap = {
5321
5339
  'ExtensionDetail.copyImage': wrapCommand(copyImage),
5322
5340
  'ExtensionDetail.copyImageUrl': wrapCommand(copyImageUrl),
5341
+ 'ExtensionDetail.copyReadmeLink': wrapCommand(copyReadmeLink),
5323
5342
  'ExtensionDetail.create': create,
5324
5343
  'ExtensionDetail.diff2': diff2,
5325
5344
  'ExtensionDetail.dispose': dispose,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "4.18.0",
3
+ "version": "5.0.0",
4
4
  "description": "Extension Detail View Worker",
5
5
  "repository": {
6
6
  "type": "git",