Remove core properties from ShareMenuItemV2

This commit is contained in:
Timothy Sullivan 2024-11-11 13:02:02 -07:00
parent 58d1522bfd
commit 5a3a9ff2e7
3 changed files with 1 additions and 7 deletions

View file

@ -7,8 +7,6 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/
import { ThemeServiceSetup } from '@kbn/core-theme-browser';
import { I18nStart } from '@kbn/core/public';
import React, { type PropsWithChildren, createContext, useContext } from 'react';
import { AnonymousAccessServiceContract } from '../../../common';
@ -29,8 +27,6 @@ export interface IShareContext extends ShareContext {
anonymousAccess?: AnonymousAccessServiceContract;
urlService: BrowserUrlService;
snapshotShareWarning?: string;
theme: ThemeServiceSetup;
i18n: I18nStart;
publicAPIEnabled?: boolean;
anchorElement?: HTMLElement;
}

View file

@ -134,7 +134,6 @@ export class ShareMenuManager {
onClose();
unmount();
},
...startServices,
}}
/>,
startServices

View file

@ -11,7 +11,7 @@ import type { ComponentType, ReactElement, ReactNode } from 'react';
import type { InjectedIntl } from '@kbn/i18n-react';
import { EuiContextMenuPanelDescriptor } from '@elastic/eui';
import { EuiContextMenuPanelItemDescriptorEntry } from '@elastic/eui/src/components/context_menu/context_menu';
import type { Capabilities, ThemeServiceSetup, ToastsSetup } from '@kbn/core/public';
import type { Capabilities, ToastsSetup } from '@kbn/core/public';
import type { UrlService, LocatorPublic } from '../common/url_service';
import type { BrowserShortUrlClientFactoryCreateParams } from './url_service/short_urls/short_url_client_factory';
import type { BrowserShortUrlClient } from './url_service/short_urls/short_url_client';
@ -132,7 +132,6 @@ export interface ShareMenuItemV2 extends ShareMenuItemBase {
* Not applicable for exports that do not call a remote API (i.e Lens CSV export)
*/
generateExportUrl?: (args: ScreenshotExportOpts) => string | undefined;
theme?: ThemeServiceSetup;
renderLayoutOptionSwitch?: boolean;
layoutOption?: 'print';
generateCopyUrl?: URL;