Skip to content

Commit

Permalink
[Embeddable] remove Container class (#204105)
Browse files Browse the repository at this point in the history
PR does the following
* Removes Container class and IContainer interface
* Removes parent from Embeddable class
* Removes more dead code from embeddable plugin like EmbeddablePanel
component
* Cleans up all usages of Container and IContainer

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
3 people authored Dec 16, 2024
1 parent c4b5a37 commit 08e7298
Show file tree
Hide file tree
Showing 43 changed files with 128 additions and 2,487 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ export function DashboardEditingToolbar({ isDisabled }: { isDisabled?: boolean }
[dashboardApi]
);

/**
* embeddableFactory: Required, you can get the factory from embeddableStart.getEmbeddableFactory(<embeddable type, i.e. lens>)
* initialInput: Optional, use it in case you want to pass your own input to the factory
* dismissNotification: Optional, if not passed a toast will appear in the dashboard
*/

const controlGroupApi = useStateFromPublishingSubject(dashboardApi.controlGroupApi$);
const extraButtons = [
<EditorMenu createNewVisType={createNewVisType} isDisabled={isDisabled} />,
Expand Down
5 changes: 0 additions & 5 deletions src/plugins/dashboard/public/dashboard_container/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import type { ContainerOutput } from '@kbn/embeddable-plugin/public';
import { SerializableRecord } from '@kbn/utility-types';

import { ControlGroupRuntimeState } from '@kbn/controls-plugin/public';
Expand All @@ -34,10 +33,6 @@ export interface DashboardRenderPerformanceStats {
panelsRenderStartTime: number;
}

export interface DashboardContainerOutput extends ContainerOutput {
usedDataViewIds?: string[];
}

export type DashboardLoadedEventStatus = 'done' | 'error';

export interface DashboardLoadedEventMeta {
Expand Down

This file was deleted.

10 changes: 0 additions & 10 deletions src/plugins/embeddable/public/embeddable_panel/index.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/plugins/embeddable/public/embeddable_panel/types.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/plugins/embeddable/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import { EmbeddablePublicPlugin } from './plugin';

export { useAddFromLibraryTypes } from './add_from_library/registry';
export { openAddFromLibraryFlyout } from './add_from_library/open_add_from_library_flyout';
export { EmbeddablePanel } from './embeddable_panel';
export {
cellValueTrigger,
CELL_VALUE_TRIGGER,
Container,
contextMenuTrigger,
CONTEXT_MENU_TRIGGER,
defaultEmbeddableFactoryProvider,
Expand Down Expand Up @@ -58,9 +56,6 @@ export type {
Adapters,
CellValueContext,
ChartActionContext,
ContainerInput,
ContainerOutput,
EmbeddableContainerSettings,
EmbeddableContext,
EmbeddableEditorState,
EmbeddableFactory,
Expand All @@ -70,11 +65,9 @@ export type {
EmbeddableOutput,
EmbeddablePackageState,
FilterableEmbeddable,
IContainer,
IEmbeddable,
MultiValueClickContext,
OutputSpec,
PanelState,
PropertySpec,
RangeSelectContext,
ReferenceOrValueEmbeddable,
Expand Down
Loading

0 comments on commit 08e7298

Please sign in to comment.