31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import { Plugin, CoreSetup, CoreStart } from 'kibana/server';
|
|
import { todoSavedObject } from './todo_saved_object';
|
|
import { bookSavedObject } from './book_saved_object';
|
|
import { searchableListSavedObject } from './searchable_list_saved_object';
|
|
import { EmbeddableSetup } from '../../../src/plugins/embeddable/server';
|
|
|
|
export interface EmbeddableExamplesSetupDependencies {
|
|
embeddable: EmbeddableSetup;
|
|
}
|
|
|
|
export class EmbeddableExamplesPlugin
|
|
implements Plugin<void, void, EmbeddableExamplesSetupDependencies>
|
|
{
|
|
public setup(core: CoreSetup, { embeddable }: EmbeddableExamplesSetupDependencies) {
|
|
core.savedObjects.registerType(todoSavedObject);
|
|
core.savedObjects.registerType(bookSavedObject);
|
|
core.savedObjects.registerType(searchableListSavedObject(embeddable));
|
|
}
|
|
|
|
public start(core: CoreStart) {}
|
|
|
|
public stop() {}
|
|
}
|