mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Embeddable API cleanup (#60207)
* wip * Remove test in legacy functional plugin
This commit is contained in:
parent
6cbfa274cf
commit
dccfa593dc
92 changed files with 451 additions and 647 deletions
|
@ -23,7 +23,7 @@ import { BrowserRouter as Router, Route, withRouter, RouteComponentProps } from
|
|||
|
||||
import { EuiPage, EuiPageSideBar, EuiSideNav } from '@elastic/eui';
|
||||
|
||||
import { IEmbeddableStart } from '../../../src/plugins/embeddable/public';
|
||||
import { EmbeddableStart } from '../../../src/plugins/embeddable/public';
|
||||
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
|
||||
import { Start as InspectorStartContract } from '../../../src/plugins/inspector/public';
|
||||
import {
|
||||
|
@ -74,7 +74,7 @@ const Nav = withRouter(({ history, navigateToApp, pages }: NavProps) => {
|
|||
interface Props {
|
||||
basename: string;
|
||||
navigateToApp: CoreStart['application']['navigateToApp'];
|
||||
embeddableApi: IEmbeddableStart;
|
||||
embeddableApi: EmbeddableStart;
|
||||
uiActionsApi: UiActionsStart;
|
||||
overlays: OverlayStart;
|
||||
notifications: CoreStart['notifications'];
|
||||
|
|
|
@ -31,9 +31,8 @@ import {
|
|||
import { EuiSpacer } from '@elastic/eui';
|
||||
import { OverlayStart, CoreStart, SavedObjectsStart, IUiSettingsClient } from 'kibana/public';
|
||||
import {
|
||||
GetEmbeddableFactory,
|
||||
EmbeddablePanel,
|
||||
IEmbeddableStart,
|
||||
EmbeddableStart,
|
||||
IEmbeddable,
|
||||
} from '../../../src/plugins/embeddable/public';
|
||||
import {
|
||||
|
@ -47,8 +46,8 @@ import { Start as InspectorStartContract } from '../../../src/plugins/inspector/
|
|||
import { getSavedObjectFinder } from '../../../src/plugins/saved_objects/public';
|
||||
|
||||
interface Props {
|
||||
getAllEmbeddableFactories: IEmbeddableStart['getEmbeddableFactories'];
|
||||
getEmbeddableFactory: GetEmbeddableFactory;
|
||||
getAllEmbeddableFactories: EmbeddableStart['getEmbeddableFactories'];
|
||||
getEmbeddableFactory: EmbeddableStart['getEmbeddableFactory'];
|
||||
uiActionsApi: UiActionsStart;
|
||||
overlays: OverlayStart;
|
||||
notifications: CoreStart['notifications'];
|
||||
|
|
|
@ -29,14 +29,14 @@ import {
|
|||
EuiText,
|
||||
} from '@elastic/eui';
|
||||
import {
|
||||
GetEmbeddableFactory,
|
||||
EmbeddableStart,
|
||||
EmbeddableFactoryRenderer,
|
||||
EmbeddableRoot,
|
||||
} from '../../../src/plugins/embeddable/public';
|
||||
import { HelloWorldEmbeddable, HELLO_WORLD_EMBEDDABLE } from '../../embeddable_examples/public';
|
||||
|
||||
interface Props {
|
||||
getEmbeddableFactory: GetEmbeddableFactory;
|
||||
getEmbeddableFactory: EmbeddableStart['getEmbeddableFactory'];
|
||||
}
|
||||
|
||||
export function HelloWorldEmbeddableExample({ getEmbeddableFactory }: Props) {
|
||||
|
|
|
@ -29,10 +29,7 @@ import {
|
|||
EuiText,
|
||||
} from '@elastic/eui';
|
||||
import { EuiSpacer } from '@elastic/eui';
|
||||
import {
|
||||
GetEmbeddableFactory,
|
||||
EmbeddableFactoryRenderer,
|
||||
} from '../../../src/plugins/embeddable/public';
|
||||
import { EmbeddableFactoryRenderer, EmbeddableStart } from '../../../src/plugins/embeddable/public';
|
||||
import {
|
||||
HELLO_WORLD_EMBEDDABLE,
|
||||
TODO_EMBEDDABLE,
|
||||
|
@ -42,7 +39,7 @@ import {
|
|||
} from '../../embeddable_examples/public';
|
||||
|
||||
interface Props {
|
||||
getEmbeddableFactory: GetEmbeddableFactory;
|
||||
getEmbeddableFactory: EmbeddableStart['getEmbeddableFactory'];
|
||||
}
|
||||
|
||||
export function ListContainerExample({ getEmbeddableFactory }: Props) {
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
|
||||
import { Plugin, CoreSetup, AppMountParameters } from 'kibana/public';
|
||||
import { UiActionsService } from '../../../src/plugins/ui_actions/public';
|
||||
import { IEmbeddableStart } from '../../../src/plugins/embeddable/public';
|
||||
import { EmbeddableStart } from '../../../src/plugins/embeddable/public';
|
||||
import { Start as InspectorStart } from '../../../src/plugins/inspector/public';
|
||||
|
||||
interface StartDeps {
|
||||
uiActions: UiActionsService;
|
||||
embeddable: IEmbeddableStart;
|
||||
embeddable: EmbeddableStart;
|
||||
inspector: InspectorStart;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,10 +39,10 @@ import {
|
|||
TODO_EMBEDDABLE,
|
||||
TodoEmbeddableFactory,
|
||||
} from '../../../examples/embeddable_examples/public/todo';
|
||||
import { GetEmbeddableFactory, EmbeddableRoot } from '../../../src/plugins/embeddable/public';
|
||||
import { EmbeddableStart, EmbeddableRoot } from '../../../src/plugins/embeddable/public';
|
||||
|
||||
interface Props {
|
||||
getEmbeddableFactory: GetEmbeddableFactory;
|
||||
getEmbeddableFactory: EmbeddableStart['getEmbeddableFactory'];
|
||||
}
|
||||
|
||||
interface State {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue