diff --git a/packages/plugin-ext/package.json b/packages/plugin-ext/package.json index 1f42bceaf3039..eb9b8f42cd814 100644 --- a/packages/plugin-ext/package.json +++ b/packages/plugin-ext/package.json @@ -13,7 +13,6 @@ "@theia/languages": "^0.12.0", "@theia/markers": "^0.12.0", "@theia/messages": "^0.12.0", - "@theia/mini-browser": "^0.12.0", "@theia/monaco": "^0.12.0", "@theia/navigator": "^0.12.0", "@theia/output": "^0.12.0", diff --git a/packages/plugin-ext/src/main/browser/webview/webview.ts b/packages/plugin-ext/src/main/browser/webview/webview.ts index 61c1852cd908a..58f73195d869f 100644 --- a/packages/plugin-ext/src/main/browser/webview/webview.ts +++ b/packages/plugin-ext/src/main/browser/webview/webview.ts @@ -26,8 +26,6 @@ import { injectable, inject, postConstruct } from 'inversify'; import { WebviewPanelOptions, WebviewPortMapping } from '@theia/plugin'; import { BaseWidget, Message } from '@theia/core/lib/browser/widgets/widget'; import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable'; -// TODO: get rid of dependencies to the mini browser -import { MiniBrowserContentStyle } from '@theia/mini-browser/lib/browser/mini-browser-content-style'; import { ApplicationShellMouseTracker } from '@theia/core/lib/browser/shell/application-shell-mouse-tracker'; import { StatefulWidget } from '@theia/core/lib/browser/shell/shell-layout-restorer'; import { WebviewPanelViewState } from '../../../common/plugin-api-rpc'; @@ -49,6 +47,8 @@ import { WebviewResourceLoader } from '../../common/webview-protocol'; import { WebviewResourceCache } from './webview-resource-cache'; import { Endpoint } from '@theia/core/lib/browser/endpoint'; +const TRANSPARENT_OVERLAY_STYLE = 'theia-mini-browser-transparent-overlay'; + // tslint:disable:no-any export const enum WebviewMessageChannels { @@ -176,7 +176,7 @@ export class WebviewWidget extends BaseWidget implements StatefulWidget { this.toDispose.push(this.onMessageEmitter); this.transparentOverlay = document.createElement('div'); - this.transparentOverlay.classList.add(MiniBrowserContentStyle.TRANSPARENT_OVERLAY); + this.transparentOverlay.classList.add(TRANSPARENT_OVERLAY_STYLE); this.transparentOverlay.style.display = 'none'; this.node.appendChild(this.transparentOverlay);