@lvce-editor/extension-host-worker 3.2.0 → 3.4.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.
@@ -2837,6 +2837,9 @@ const registerWebViewProvider = provider => {
2837
2837
  };
2838
2838
  const getWebViewInfo = providerId => {
2839
2839
  const webView = getWebView(providerId);
2840
+ if (!webView) {
2841
+ throw new Error(`Webview not found: ${providerId}`);
2842
+ }
2840
2843
  return {
2841
2844
  uid: webView.uid,
2842
2845
  origin: webView.origin,
@@ -3150,7 +3153,8 @@ const createWebView3 = async ({
3150
3153
  isGitpod,
3151
3154
  platform,
3152
3155
  assetDir,
3153
- webViewScheme
3156
+ webViewScheme,
3157
+ useNewWebViewHandler
3154
3158
  }) => {
3155
3159
  await invoke('WebView.create3', {
3156
3160
  id,
@@ -3158,7 +3162,8 @@ const createWebView3 = async ({
3158
3162
  isGitpod,
3159
3163
  platform,
3160
3164
  assetDir,
3161
- webViewScheme
3165
+ webViewScheme,
3166
+ useNewWebViewHandler
3162
3167
  });
3163
3168
  };
3164
3169
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-worker",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "Webworker for the extension host functionality in Lvce Editor.",
5
5
  "main": "dist/extensionHostWorkerMain.js",
6
6
  "type": "module",