@lvce-editor/extension-host-worker 4.10.0 → 4.11.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.
@@ -2787,6 +2787,10 @@ const getRemoteUrl$1 = async (uri, options = {}) => {
2787
2787
  };
2788
2788
 
2789
2789
  // TODO pass uuid to allow having multiple webviews open at the same time
2790
+
2791
+ /**
2792
+ * @deprecated use iframe worker instead of creating and querying webviews
2793
+ */
2790
2794
  const createWebView = async (providerId, port, uri, uid, origin, webView) => {
2791
2795
  const provider = getProvider(providerId);
2792
2796
  if (!provider) {
@@ -2818,9 +2822,17 @@ const disposeWebView = id => {
2818
2822
  // TODO race condition
2819
2823
  // const webView=webViews[id]
2820
2824
  };
2825
+
2826
+ /**
2827
+ * @deprecated use iframe worker instead of creating and querying webviews
2828
+ */
2821
2829
  const registerWebViewProvider = provider => {
2822
2830
  setProvider(provider.id, provider);
2823
2831
  };
2832
+
2833
+ /**
2834
+ * @deprecated use iframe worker instead of creating and querying webviews
2835
+ */
2824
2836
  const getWebViewInfo = providerId => {
2825
2837
  const webView = getWebView(providerId);
2826
2838
  if (!webView) {
@@ -4838,6 +4850,10 @@ const getRpcInfo = rpcId => {
4838
4850
  return info;
4839
4851
  };
4840
4852
 
4853
+ const getWebViewInfo2 = providerId => {
4854
+ return invoke('WebView.getWebViewInfo', providerId);
4855
+ };
4856
+
4841
4857
  const getRemoteUrl = uri => {
4842
4858
  return `/remote/${uri}`;
4843
4859
  };
@@ -5446,11 +5462,27 @@ const commandMap = {
5446
5462
  'ColorTheme.getColorThemeNames': getColorThemeNames,
5447
5463
  'ColorTheme.hydrate': hydrate$1,
5448
5464
  'ExtensionHost.launchIframeWorker': launchIframeWorker,
5465
+ 'ExtensionHostDebug.evaluate': evaluate,
5466
+ 'ExtensionHostDebug.getProperties': getProperties,
5467
+ 'ExtensionHostDebug.listProcesses': listProcesses,
5468
+ 'ExtensionHostDebug.pause': pause,
5469
+ 'ExtensionHostDebug.resume': resume,
5470
+ 'ExtensionHostDebug.setPauseOnException': setPauseOnException,
5471
+ 'ExtensionHostDebug.setPauseOnExceptions': setPauseOnExceptions,
5472
+ 'ExtensionHostDebug.start': start,
5473
+ 'ExtensionHostDebug.stepInto': stepInto,
5474
+ 'ExtensionHostDebug.stepOut': stepOut,
5475
+ 'ExtensionHostDebug.stepOver': stepOver,
5449
5476
  'ExtensionHostRename.executeprepareRenameProvider': executeprepareRenameProvider,
5450
5477
  'ExtensionHostRename.executeRenameProvider': executeRenameProvider,
5451
- 'Extensions.getExtensions': getExtensions,
5452
- 'Extensions.getExtension': getExtension,
5478
+ 'ExtensionHostWebView.create': createWebView,
5479
+ 'ExtensionHostWebView.dispose': disposeWebView,
5480
+ 'ExtensionHostWebView.getWebViewInfo': getWebViewInfo,
5481
+ 'ExtensionHostWebView.getWebViewInfo2': getWebViewInfo2,
5482
+ 'ExtensionHostWebView.load': loadWebView,
5453
5483
  'Extensions.addWebExtension': addWebExtension,
5484
+ 'Extensions.getExtension': getExtension,
5485
+ 'Extensions.getExtensions': getExtensions,
5454
5486
  'FileSystemFetch.chmod': chmod$1,
5455
5487
  'FileSystemFetch.getBlob': getBlob$1,
5456
5488
  'FileSystemFetch.mkdir': mkdir$1,
@@ -5467,6 +5499,8 @@ const commandMap = {
5467
5499
  'FileSystemMemory.readFile': readFile,
5468
5500
  'FileSystemMemory.remove': remove,
5469
5501
  'FileSystemMemory.writeFile': writeFile,
5502
+ 'HandleBeforeUnload.handleBeforeUnload': handleBeforeUnload,
5503
+ 'HandleMessagePort.handleMessagePort': handleMessagePort,
5470
5504
  'IconTheme.getJson': getIconThemeJson,
5471
5505
  'IconTheme.getState': getState,
5472
5506
  'IconTheme.hydrate': hydrate,
@@ -5479,6 +5513,7 @@ const commandMap = {
5479
5513
  'IndexedDb.saveValue': saveValue,
5480
5514
  'IndexedDb.set': set$3,
5481
5515
  'Languages.getLanguages': getLanguages,
5516
+ 'SaveState.saveState': saveState,
5482
5517
  'SearchFileWithFetch.searchFileWithFetch': searchFile$1,
5483
5518
  'SearchFileWithHtml.searchFileWithHtml': searchFile,
5484
5519
  'TextSearchFetch.textSearch': textSearch$2,
@@ -5489,24 +5524,6 @@ const commandMap = {
5489
5524
  'WebView.createWebViewWorkerRpc2': createWebViewWorkerRpc2,
5490
5525
  'WebView.getRpcInfo': getRpcInfo,
5491
5526
  'WebViews.getWebViews': getWebViews,
5492
- ['ExtensionHostDebug.evaluate']: evaluate,
5493
- ['ExtensionHostDebug.getProperties']: getProperties,
5494
- ['ExtensionHostDebug.listProcesses']: listProcesses,
5495
- ['ExtensionHostDebug.pause']: pause,
5496
- ['ExtensionHostDebug.resume']: resume,
5497
- ['ExtensionHostDebug.setPauseOnException']: setPauseOnException,
5498
- ['ExtensionHostDebug.setPauseOnExceptions']: setPauseOnExceptions,
5499
- ['ExtensionHostDebug.start']: start,
5500
- ['ExtensionHostDebug.stepInto']: stepInto,
5501
- ['ExtensionHostDebug.stepOut']: stepOut,
5502
- ['ExtensionHostDebug.stepOver']: stepOver,
5503
- ['ExtensionHostWebView.create']: createWebView,
5504
- ['ExtensionHostWebView.dispose']: disposeWebView,
5505
- ['ExtensionHostWebView.getWebViewInfo']: getWebViewInfo,
5506
- ['ExtensionHostWebView.load']: loadWebView,
5507
- ['HandleBeforeUnload.handleBeforeUnload']: handleBeforeUnload,
5508
- ['HandleMessagePort.handleMessagePort']: handleMessagePort,
5509
- ['SaveState.saveState']: saveState,
5510
5527
  [BraceCompletionExecuteBraceCompletionProvider]: executeBraceCompletionProvider,
5511
5528
  [ClosingTagExecuteClosingTagProvider]: executeClosingTagProvider,
5512
5529
  [CommandExecute]: executeCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-worker",
3
- "version": "4.10.0",
3
+ "version": "4.11.0",
4
4
  "description": "Webworker for the extension host functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"