* Add a new platform embeddable example plugin * Remove extra hello world test impl. * cleanup * code review updates * Change example to highlight and have parent filter out children * Fix deep comparison of embeddable prop * adjust help text
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
/*
|
|
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
* license agreements. See the NOTICE file distributed with
|
|
* this work for additional information regarding copyright
|
|
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
* the Apache License, Version 2.0 (the "License"); you may
|
|
* not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing,
|
|
* software distributed under the License is distributed on an
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
* KIND, either express or implied. See the License for the
|
|
* specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
|
|
import { Plugin, CoreSetup, AppMountParameters } from 'kibana/public';
|
|
import { IEmbeddableStart } from '../../../src/plugins/embeddable/public';
|
|
|
|
export class EmbeddableExplorerPlugin implements Plugin {
|
|
public setup(core: CoreSetup<{ embeddable: IEmbeddableStart }>) {
|
|
core.application.register({
|
|
id: 'embeddableExplorer',
|
|
title: 'Embeddable explorer',
|
|
async mount(params: AppMountParameters) {
|
|
const [coreStart, depsStart] = await core.getStartServices();
|
|
const { renderApp } = await import('./app');
|
|
return renderApp(coreStart, depsStart.embeddable, params);
|
|
},
|
|
});
|
|
}
|
|
|
|
public start() {}
|
|
public stop() {}
|
|
}
|