fix all violations

This commit is contained in:
spalger 2022-04-16 01:29:35 -05:00
parent bd8171c13e
commit 3730dd0779
11447 changed files with 21110 additions and 22288 deletions

View file

@ -8,7 +8,7 @@
const fs = require('fs');
const { execSync } = require('child_process');
const { BASE_BUCKET_DAILY } = require('./bucket_config.js');
const { BASE_BUCKET_DAILY } = require('./bucket_config');
(async () => {
console.log('--- Create ES Snapshot Manifest');

View file

@ -8,7 +8,7 @@
const fs = require('fs');
const { execSync } = require('child_process');
const { BASE_BUCKET_DAILY, BASE_BUCKET_PERMANENT } = require('./bucket_config.js');
const { BASE_BUCKET_DAILY, BASE_BUCKET_PERMANENT } = require('./bucket_config');
(async () => {
try {

View file

@ -7,7 +7,7 @@
*/
const config = require('@kbn/storybook').defaultConfig;
const aliases = require('../../src/dev/storybook/aliases.ts').storybookAliases;
const aliases = require('../../src/dev/storybook/aliases').storybookAliases;
config.refs = {};

View file

@ -10,7 +10,7 @@ import React, { useState } from 'react';
import useMountedState from 'react-use/lib/useMountedState';
import useList from 'react-use/lib/useList';
import { EuiForm, EuiSpacer, EuiFieldNumber, EuiFormRow, EuiButton } from '@elastic/eui';
import { BfetchPublicSetup } from '../../../../../src/plugins/bfetch/public';
import { BfetchPublicSetup } from '@kbn/bfetch-plugin/public';
export interface Props {
fetchStreaming: BfetchPublicSetup['fetchStreaming'];

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { useKibana } from '../../../../src/plugins/kibana_react/public';
import { useKibana } from '@kbn/kibana-react-plugin/public';
import { BfetchDeps } from '../mount';
export const useDeps = () => useKibana().services as BfetchDeps;

View file

@ -8,8 +8,8 @@
import * as React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { CoreSetup, CoreStart, AppMountParameters } from 'kibana/public';
import { KibanaContextProvider } from '../../../src/plugins/kibana_react/public';
import { CoreSetup, CoreStart, AppMountParameters } from '@kbn/core/public';
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
import { BfetchExplorerStartPlugins, ExplorerService } from './plugin';
import { App } from './containers/app';

View file

@ -6,10 +6,10 @@
* Side Public License, v 1.
*/
import { Plugin, CoreSetup, AppNavLinkStatus } from '../../../src/core/public';
import { BfetchPublicSetup, BfetchPublicStart } from '../../../src/plugins/bfetch/public';
import { Plugin, CoreSetup, AppNavLinkStatus } from '@kbn/core/public';
import { BfetchPublicSetup, BfetchPublicStart } from '@kbn/bfetch-plugin/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { mount } from './mount';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
export interface ExplorerService {
double: (number: { num: number }) => Promise<{ num: number }>;

View file

@ -7,8 +7,8 @@
*/
import { Subject } from 'rxjs';
import { Plugin, CoreSetup, CoreStart } from '../../../src/core/server';
import { BfetchServerSetup, BfetchServerStart } from '../../../src/plugins/bfetch/server';
import { Plugin, CoreSetup, CoreStart } from '@kbn/core/server';
import { BfetchServerSetup, BfetchServerStart } from '@kbn/bfetch-plugin/server';
export interface BfetchExplorerSetupPlugins {
bfetch: BfetchServerSetup;

View file

@ -18,10 +18,10 @@ import {
EuiSideNav,
} from '@elastic/eui';
import 'brace/mode/json';
import { AppMountParameters, IUiSettingsClient } from '../../../src/core/public';
import { AppMountParameters, IUiSettingsClient } from '@kbn/core/public';
import { DashboardStart } from '@kbn/dashboard-plugin/public';
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
import { DashboardEmbeddableByValue } from './by_value/embeddable';
import { DashboardStart } from '../../../src/plugins/dashboard/public';
import { KibanaContextProvider } from '../../../src/plugins/kibana_react/public';
interface PageDef {
title: string;

View file

@ -7,12 +7,12 @@
*/
import React, { useState } from 'react';
import { ViewMode } from '../../../../src/plugins/embeddable/public';
import { DashboardContainerInput, DashboardStart } from '../../../../src/plugins/dashboard/public';
import { HELLO_WORLD_EMBEDDABLE } from '../../../embeddable_examples/public/hello_world';
import { ViewMode } from '@kbn/embeddable-plugin/public';
import { DashboardContainerInput, DashboardStart } from '@kbn/dashboard-plugin/public';
import { HELLO_WORLD_EMBEDDABLE } from '@kbn/embeddable-examples-plugin/public/hello_world';
import { TODO_EMBEDDABLE } from '@kbn/embeddable-examples-plugin/public/todo';
import { TODO_REF_EMBEDDABLE } from '@kbn/embeddable-examples-plugin/public/todo/todo_ref_embeddable';
import { InputEditor } from './input_editor';
import { TODO_EMBEDDABLE } from '../../../embeddable_examples/public/todo';
import { TODO_REF_EMBEDDABLE } from '../../../embeddable_examples/public/todo/todo_ref_embeddable';
const initialInput: DashboardContainerInput = {
viewMode: ViewMode.VIEW,

View file

@ -8,7 +8,7 @@
import React from 'react';
import { EuiButton } from '@elastic/eui';
import { CodeEditor } from '../../../../src/plugins/kibana_react/public';
import { CodeEditor } from '@kbn/kibana-react-plugin/public';
export const InputEditor = <T,>(props: { input: T; onSubmit: (value: T) => void }) => {
const input = JSON.stringify(props.input, null, 4);

View file

@ -6,10 +6,10 @@
* Side Public License, v 1.
*/
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '../../../src/core/public';
import { DashboardStart } from '../../../src/plugins/dashboard/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { EmbeddableExamplesStart } from '../../embeddable_examples/public/plugin';
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '@kbn/core/public';
import { DashboardStart } from '@kbn/dashboard-plugin/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { EmbeddableExamplesStart } from '@kbn/embeddable-examples-plugin/public/plugin';
interface SetupDeps {
developerExamples: DeveloperExamplesSetup;

View file

@ -19,10 +19,10 @@ import {
EuiText,
DefaultItemAction,
} from '@elastic/eui';
import { AppMountParameters } from '../../../src/core/public';
import { DataPublicPluginStart } from '../../../src/plugins/data/public';
import type { DataView, DataViewField } from '../../../src/plugins/data_views/public';
import { IndexPatternFieldEditorStart } from '../../../src/plugins/data_view_field_editor/public';
import { AppMountParameters } from '@kbn/core/public';
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
import type { DataView, DataViewField } from '@kbn/data-views-plugin/public';
import { IndexPatternFieldEditorStart } from '@kbn/data-view-field-editor-plugin/public';
interface Props {
dataView?: DataView;

View file

@ -6,10 +6,10 @@
* Side Public License, v 1.
*/
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { DataPublicPluginStart } from '../../../src/plugins/data/public';
import { IndexPatternFieldEditorStart } from '../../../src/plugins/data_view_field_editor/public';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
import { IndexPatternFieldEditorStart } from '@kbn/data-view-field-editor-plugin/public';
interface StartDeps {
data: DataPublicPluginStart;

View file

@ -22,7 +22,7 @@ import {
EuiLink,
EuiButtonIcon,
} from '@elastic/eui';
import { AppMountParameters } from '../../../src/core/public';
import { AppMountParameters } from '@kbn/core/public';
import { ExampleDefinition } from './types';
interface Props {

View file

@ -6,12 +6,7 @@
* Side Public License, v 1.
*/
import {
CoreSetup,
Plugin,
AppMountParameters,
DEFAULT_APP_CATEGORIES,
} from '../../../src/core/public';
import { CoreSetup, Plugin, AppMountParameters, DEFAULT_APP_CATEGORIES } from '@kbn/core/public';
import { ExampleDefinition } from './types';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { SavedObjectAttributes } from '../../../src/core/types';
import { SavedObjectAttributes } from '@kbn/core/types';
export const BOOK_SAVED_OBJECT = 'book';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { SavedObjectAttributes } from '../../../src/core/types';
import { SavedObjectAttributes } from '@kbn/core/types';
export interface TodoSavedObjectAttributes extends SavedObjectAttributes {
task: string;

View file

@ -7,10 +7,10 @@
*/
import { i18n } from '@kbn/i18n';
import { createAction, IncompatibleActionError } from '../../../../src/plugins/ui_actions/public';
import { createAction, IncompatibleActionError } from '@kbn/ui-actions-plugin/public';
import { ViewMode, isReferenceOrValueEmbeddable } from '@kbn/embeddable-plugin/public';
import { DASHBOARD_CONTAINER_TYPE } from '@kbn/dashboard-plugin/public';
import { BookEmbeddable, BOOK_EMBEDDABLE } from './book_embeddable';
import { ViewMode, isReferenceOrValueEmbeddable } from '../../../../src/plugins/embeddable/public';
import { DASHBOARD_CONTAINER_TYPE } from '../../../../src/plugins/dashboard/public';
interface ActionContext {
embeddable: BookEmbeddable;

View file

@ -11,7 +11,7 @@ import { EuiFlexItem, EuiFlexGroup, EuiIcon } from '@elastic/eui';
import { EuiText } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { withEmbeddableSubscription } from '../../../../src/plugins/embeddable/public';
import { withEmbeddableSubscription } from '@kbn/embeddable-plugin/public';
import { BookEmbeddableInput, BookEmbeddableOutput, BookEmbeddable } from './book_embeddable';
interface Props {

View file

@ -17,7 +17,7 @@ import {
SavedObjectEmbeddableInput,
ReferenceOrValueEmbeddable,
AttributeService,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { BookSavedObjectAttributes } from '../../common';
import { BookEmbeddableComponent } from './book_component';

View file

@ -8,15 +8,16 @@
import React from 'react';
import { i18n } from '@kbn/i18n';
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
import { toMountPoint } from '../../../../src/plugins/kibana_react/public';
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
import {
EmbeddableFactoryDefinition,
IContainer,
EmbeddableFactory,
EmbeddableStart,
AttributeService,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { OverlayStart, SavedObjectsClientContract, SimpleSavedObject } from '@kbn/core/public';
import { checkForDuplicateTitle, OnSaveProps } from '@kbn/saved-objects-plugin/public';
import {
BookEmbeddable,
BOOK_EMBEDDABLE,
@ -24,12 +25,7 @@ import {
BookEmbeddableOutput,
} from './book_embeddable';
import { CreateEditBookComponent } from './create_edit_book_component';
import {
OverlayStart,
SavedObjectsClientContract,
SimpleSavedObject,
} from '../../../../src/core/public';
import { checkForDuplicateTitle, OnSaveProps } from '../../../../src/plugins/saved_objects/public';
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
interface StartServices {
getAttributeService: EmbeddableStart['getAttributeService'];

View file

@ -7,16 +7,17 @@
*/
import React from 'react';
import { OverlayStart } from 'kibana/public';
import { OverlayStart } from '@kbn/core/public';
import { i18n } from '@kbn/i18n';
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
import { createAction } from '../../../../src/plugins/ui_actions/public';
import { toMountPoint } from '../../../../src/plugins/kibana_react/public';
import { createAction } from '@kbn/ui-actions-plugin/public';
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
import {
ViewMode,
SavedObjectEmbeddableInput,
EmbeddableStart,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { OnSaveProps } from '@kbn/saved-objects-plugin/public';
import { SavedObjectsClientContract } from '@kbn/core/public';
import {
BookEmbeddable,
BOOK_EMBEDDABLE,
@ -24,8 +25,7 @@ import {
BookByValueInput,
} from './book_embeddable';
import { CreateEditBookComponent } from './create_edit_book_component';
import { OnSaveProps } from '../../../../src/plugins/saved_objects/public';
import { SavedObjectsClientContract } from '../../../../src/core/public';
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
interface StartServices {
openModal: OverlayStart['openModal'];

View file

@ -7,10 +7,10 @@
*/
import { i18n } from '@kbn/i18n';
import { createAction, IncompatibleActionError } from '../../../../src/plugins/ui_actions/public';
import { createAction, IncompatibleActionError } from '@kbn/ui-actions-plugin/public';
import { ViewMode, isReferenceOrValueEmbeddable } from '@kbn/embeddable-plugin/public';
import { DASHBOARD_CONTAINER_TYPE } from '@kbn/dashboard-plugin/public';
import { BookEmbeddable, BOOK_EMBEDDABLE } from './book_embeddable';
import { ViewMode, isReferenceOrValueEmbeddable } from '../../../../src/plugins/embeddable/public';
import { DASHBOARD_CONTAINER_TYPE } from '../../../../src/plugins/dashboard/public';
interface ActionContext {
embeddable: BookEmbeddable;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { SavedObjectsClientContract } from 'kibana/public';
import { SavedObjectsClientContract } from '@kbn/core/public';
import { TodoSavedObjectAttributes, BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../common';
export async function createSampleData(client: SavedObjectsClientContract, overwrite = true) {

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { Embeddable, EmbeddableInput, IContainer } from '../../../../src/plugins/embeddable/public';
import { Embeddable, EmbeddableInput, IContainer } from '@kbn/embeddable-plugin/public';
export const HELLO_WORLD_EMBEDDABLE = 'HELLO_WORLD_EMBEDDABLE';

View file

@ -12,7 +12,7 @@ import {
EmbeddableInput,
EmbeddableFactoryDefinition,
EmbeddableFactory,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { HelloWorldEmbeddable, HELLO_WORLD_EMBEDDABLE } from './hello_world_embeddable';
export type HelloWorldEmbeddableFactory = EmbeddableFactory;

View file

@ -8,11 +8,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import {
Container,
ContainerInput,
EmbeddableStart,
} from '../../../../src/plugins/embeddable/public';
import { Container, ContainerInput, EmbeddableStart } from '@kbn/embeddable-plugin/public';
import { ListContainerComponent } from './list_container_component';
export const LIST_CONTAINER = 'LIST_CONTAINER';

View file

@ -16,7 +16,7 @@ import {
ContainerOutput,
EmbeddableStart,
EmbeddableChildPanel,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
interface Props {
embeddable: IContainer;

View file

@ -13,7 +13,7 @@ import {
EmbeddableStart,
EmbeddableFactory,
ContainerOutput,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { LIST_CONTAINER, ListContainer } from './list_container';
interface StartServices {

View file

@ -6,9 +6,9 @@
* Side Public License, v 1.
*/
import { MigrateFunction } from '../../../../src/plugins/kibana_utils/common/persistable_state';
import { MigrateFunction } from '@kbn/kibana-utils-plugin/common/persistable_state';
import { EmbeddableInput } from '@kbn/embeddable-plugin/common';
import { SimpleEmbeddableInput } from './migrations_embeddable_factory';
import { EmbeddableInput } from '../../../../src/plugins/embeddable/common';
// before 7.3.0 this embeddable received a very simple input with a variable named `number`
// eslint-disable-next-line @typescript-eslint/naming-convention

View file

@ -6,8 +6,8 @@
* Side Public License, v 1.
*/
import { Embeddable, IContainer } from '@kbn/embeddable-plugin/public';
import { SIMPLE_EMBEDDABLE, SimpleEmbeddableInput } from '.';
import { Embeddable, IContainer } from '../../../../src/plugins/embeddable/public';
export class SimpleEmbeddable extends Embeddable<SimpleEmbeddableInput> {
// The type of this embeddable. This will be used to find the appropriate factory

View file

@ -7,13 +7,13 @@
*/
import { i18n } from '@kbn/i18n';
import { EmbeddableStateWithType } from '../../../../src/plugins/embeddable/common';
import { EmbeddableStateWithType } from '@kbn/embeddable-plugin/common';
import {
IContainer,
EmbeddableInput,
EmbeddableFactoryDefinition,
EmbeddableFactory,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { SimpleEmbeddable } from './migrations_embeddable';
import { migration730 } from './migration.7.3.0';

View file

@ -17,7 +17,7 @@ import {
EuiListGroup,
EuiListGroupItem,
} from '@elastic/eui';
import { withEmbeddableSubscription } from '../../../../src/plugins/embeddable/public';
import { withEmbeddableSubscription } from '@kbn/embeddable-plugin/public';
import {
MultiTaskTodoEmbeddable,
MultiTaskTodoOutput,

View file

@ -14,7 +14,7 @@ import {
EmbeddableInput,
IContainer,
EmbeddableOutput,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { MultiTaskTodoEmbeddableComponent } from './multi_task_todo_component';
export const MULTI_TASK_TODO_EMBEDDABLE = 'MULTI_TASK_TODO_EMBEDDABLE';

View file

@ -11,7 +11,7 @@ import {
IContainer,
EmbeddableFactoryDefinition,
EmbeddableFactory,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import {
MultiTaskTodoEmbeddable,
MULTI_TASK_TODO_EMBEDDABLE,

View file

@ -10,8 +10,9 @@ import {
EmbeddableSetup,
EmbeddableStart,
CONTEXT_MENU_TRIGGER,
} from '../../../src/plugins/embeddable/public';
import { Plugin, CoreSetup, CoreStart, SavedObjectsClient } from '../../../src/core/public';
} from '@kbn/embeddable-plugin/public';
import { Plugin, CoreSetup, CoreStart, SavedObjectsClient } from '@kbn/core/public';
import { UiActionsStart } from '@kbn/ui-actions-plugin/public';
import {
HelloWorldEmbeddableFactory,
HELLO_WORLD_EMBEDDABLE,
@ -46,7 +47,6 @@ import {
BookEmbeddableFactory,
BookEmbeddableFactoryDefinition,
} from './book/book_embeddable_factory';
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
import { createAddBookToLibraryAction } from './book/add_book_to_library_action';
import { createUnlinkBookFromLibraryAction } from './book/unlink_book_from_library_action';
import {

View file

@ -13,7 +13,7 @@ import {
ContainerInput,
EmbeddableStart,
EmbeddableInput,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { SearchableListContainerComponent } from './searchable_list_container_component';
export const SEARCHABLE_LIST_CONTAINER = 'SEARCHABLE_LIST_CONTAINER';

View file

@ -25,7 +25,7 @@ import {
ContainerOutput,
EmbeddableOutput,
EmbeddableStart,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { SearchableListContainer, SearchableContainerInput } from './searchable_list_container';
interface Props {

View file

@ -12,7 +12,7 @@ import {
EmbeddableFactory,
EmbeddableFactoryDefinition,
EmbeddableStart,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import {
SEARCHABLE_LIST_CONTAINER,
SearchableListContainer,

View file

@ -13,10 +13,7 @@ import { EuiText } from '@elastic/eui';
import { EuiAvatar } from '@elastic/eui';
import { EuiIcon } from '@elastic/eui';
import { EuiFlexGrid } from '@elastic/eui';
import {
withEmbeddableSubscription,
EmbeddableOutput,
} from '../../../../src/plugins/embeddable/public';
import { withEmbeddableSubscription, EmbeddableOutput } from '@kbn/embeddable-plugin/public';
import { TodoEmbeddable, TodoInput } from './todo_embeddable';
interface Props {

View file

@ -14,7 +14,7 @@ import {
EmbeddableInput,
IContainer,
EmbeddableOutput,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { TodoEmbeddableComponent } from './todo_component';
export const TODO_EMBEDDABLE = 'TODO_EMBEDDABLE';

View file

@ -9,15 +9,15 @@
import React, { useState } from 'react';
import { EuiModalBody } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { OverlayStart } from 'kibana/public';
import { OverlayStart } from '@kbn/core/public';
import { EuiFieldText } from '@elastic/eui';
import { EuiButton } from '@elastic/eui';
import { toMountPoint } from '../../../../src/plugins/kibana_react/public';
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
import {
IContainer,
EmbeddableFactoryDefinition,
EmbeddableFactory,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { TodoEmbeddable, TODO_EMBEDDABLE, TodoInput, TodoOutput } from './todo_embeddable';
function TaskInput({ onSave }: { onSave: (task: string) => void }) {

View file

@ -13,7 +13,7 @@ import { EuiText } from '@elastic/eui';
import { EuiAvatar } from '@elastic/eui';
import { EuiIcon } from '@elastic/eui';
import { EuiFlexGrid } from '@elastic/eui';
import { withEmbeddableSubscription } from '../../../../src/plugins/embeddable/public';
import { withEmbeddableSubscription } from '@kbn/embeddable-plugin/public';
import { TodoRefInput, TodoRefOutput, TodoRefEmbeddable } from './todo_ref_embeddable';
interface Props {

View file

@ -9,14 +9,14 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Subscription } from 'rxjs';
import { TodoSavedObjectAttributes } from 'examples/embeddable_examples/common';
import { SavedObjectsClientContract } from 'kibana/public';
import { SavedObjectsClientContract } from '@kbn/core/public';
import {
Embeddable,
IContainer,
EmbeddableOutput,
SavedObjectEmbeddableInput,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { TodoSavedObjectAttributes } from '../../common';
import { TodoRefEmbeddableComponent } from './todo_ref_component';
// Notice this is not the same value as the 'todo' saved object type. Many of our

View file

@ -7,15 +7,15 @@
*/
import { i18n } from '@kbn/i18n';
import { SavedObjectsClientContract } from 'kibana/public';
import { TodoSavedObjectAttributes } from 'examples/embeddable_examples/common';
import { SavedObjectsClientContract } from '@kbn/core/public';
import {
IContainer,
EmbeddableStart,
ErrorEmbeddable,
EmbeddableFactoryDefinition,
EmbeddableFactory,
} from '../../../../src/plugins/embeddable/public';
} from '@kbn/embeddable-plugin/public';
import { TodoSavedObjectAttributes } from '../../common';
import {
TodoRefEmbeddable,
TODO_REF_EMBEDDABLE,

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { SavedObjectsType } from 'kibana/server';
import { SavedObjectsType } from '@kbn/core/server';
export const bookSavedObject: SavedObjectsType = {
name: 'book',

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { PluginInitializer } from 'kibana/server';
import { PluginInitializer } from '@kbn/core/server';
import { EmbeddableExamplesPlugin } from './plugin';

View file

@ -8,7 +8,7 @@
import { mergeWith } from 'lodash';
import type { SerializableRecord } from '@kbn/utility-types';
import { MigrateFunctionsObject, MigrateFunction } from '../../../src/plugins/kibana_utils/common';
import { MigrateFunctionsObject, MigrateFunction } from '@kbn/kibana-utils-plugin/common';
export const mergeMigrationFunctionMaps = (
obj1: MigrateFunctionsObject,

View file

@ -6,11 +6,11 @@
* Side Public License, v 1.
*/
import { Plugin, CoreSetup, CoreStart } from 'kibana/server';
import { Plugin, CoreSetup, CoreStart } from '@kbn/core/server';
import { EmbeddableSetup } from '@kbn/embeddable-plugin/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;

View file

@ -7,8 +7,8 @@
*/
import { mapValues } from 'lodash';
import { SavedObjectsType, SavedObjectUnsanitizedDoc } from 'kibana/server';
import { EmbeddableSetup } from '../../../src/plugins/embeddable/server';
import { SavedObjectsType, SavedObjectUnsanitizedDoc } from '@kbn/core/server';
import { EmbeddableSetup } from '@kbn/embeddable-plugin/server';
// NOTE: this should rather be imported from 'plugins/kibana_utils/server' but examples at the moment don't
// allow static imports from plugins so this code was duplicated
import { mergeMigrationFunctionMaps } from './merge_migration_function_maps';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { SavedObjectsType } from 'kibana/server';
import { SavedObjectsType } from '@kbn/core/server';
export const todoSavedObject: SavedObjectsType = {
name: 'todo',

View file

@ -12,21 +12,21 @@ import { BrowserRouter as Router, Route, withRouter, RouteComponentProps } from
import { EuiPage, EuiPageSideBar, EuiSideNav } from '@elastic/eui';
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 { EmbeddableStart } from '@kbn/embeddable-plugin/public';
import { UiActionsStart } from '@kbn/ui-actions-plugin/public';
import { Start as InspectorStartContract } from '@kbn/inspector-plugin/public';
import {
AppMountParameters,
CoreStart,
SavedObjectsStart,
IUiSettingsClient,
OverlayStart,
} from '../../../src/core/public';
} from '@kbn/core/public';
import { EmbeddableExamplesStart } from '@kbn/embeddable-examples-plugin/public/plugin';
import { HelloWorldEmbeddableExample } from './hello_world_embeddable_example';
import { TodoEmbeddableExample } from './todo_embeddable_example';
import { ListContainerExample } from './list_container_example';
import { EmbeddablePanelExample } from './embeddable_panel_example';
import { EmbeddableExamplesStart } from '../../embeddable_examples/public/plugin';
interface PageDef {
title: string;

View file

@ -18,14 +18,14 @@ import {
EuiText,
} from '@elastic/eui';
import { EuiSpacer } from '@elastic/eui';
import { EmbeddableStart, IEmbeddable } from '../../../src/plugins/embeddable/public';
import { EmbeddableStart, IEmbeddable } from '@kbn/embeddable-plugin/public';
import {
HELLO_WORLD_EMBEDDABLE,
TODO_EMBEDDABLE,
BOOK_EMBEDDABLE,
MULTI_TASK_TODO_EMBEDDABLE,
SearchableListContainerFactory,
} from '../../embeddable_examples/public';
} from '@kbn/embeddable-examples-plugin/public';
interface Props {
embeddableServices: EmbeddableStart;

View file

@ -17,11 +17,11 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { EmbeddableRenderer } from '../../../src/plugins/embeddable/public';
import { EmbeddableRenderer } from '@kbn/embeddable-plugin/public';
import {
HelloWorldEmbeddable,
HelloWorldEmbeddableFactory,
} from '../../embeddable_examples/public';
} from '@kbn/embeddable-examples-plugin/public';
interface Props {
helloWorldEmbeddableFactory: HelloWorldEmbeddableFactory;

View file

@ -18,17 +18,17 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { EmbeddableRenderer, ViewMode } from '../../../src/plugins/embeddable/public';
import { EmbeddableRenderer, ViewMode } from '@kbn/embeddable-plugin/public';
import {
HELLO_WORLD_EMBEDDABLE,
MULTI_TASK_TODO_EMBEDDABLE,
TODO_EMBEDDABLE,
ListContainerFactory,
SearchableListContainerFactory,
} from '../../embeddable_examples/public';
import { SearchableContainerInput } from '../../embeddable_examples/public/searchable_list_container/searchable_list_container';
import { TodoInput } from '../../embeddable_examples/public/todo';
import { MultiTaskTodoInput } from '../../embeddable_examples/public/multi_task_todo';
} from '@kbn/embeddable-examples-plugin/public';
import { SearchableContainerInput } from '@kbn/embeddable-examples-plugin/public/searchable_list_container/searchable_list_container';
import { TodoInput } from '@kbn/embeddable-examples-plugin/public/todo';
import { MultiTaskTodoInput } from '@kbn/embeddable-examples-plugin/public/multi_task_todo';
interface Props {
listContainerEmbeddableFactory: ListContainerFactory;

View file

@ -6,12 +6,12 @@
* Side Public License, v 1.
*/
import { EmbeddableExamplesStart } from 'examples/embeddable_examples/public/plugin';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
import { UiActionsService } from '../../../src/plugins/ui_actions/public';
import { EmbeddableStart } from '../../../src/plugins/embeddable/public';
import { Start as InspectorStart } from '../../../src/plugins/inspector/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { EmbeddableExamplesStart } from '@kbn/embeddable-examples-plugin/public/plugin';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
import { UiActionsService } from '@kbn/ui-actions-plugin/public';
import { EmbeddableStart } from '@kbn/embeddable-plugin/public';
import { Start as InspectorStart } from '@kbn/inspector-plugin/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import img from './embeddables.png';
interface StartDeps {

View file

@ -23,9 +23,9 @@ import {
EuiTextArea,
EuiTitle,
} from '@elastic/eui';
import { TodoInput } from '../../../examples/embeddable_examples/public/todo';
import { TodoEmbeddableFactory } from '../../../examples/embeddable_examples/public';
import { EmbeddableRenderer } from '../../../src/plugins/embeddable/public';
import { TodoInput } from '@kbn/embeddable-examples-plugin/public/todo';
import { TodoEmbeddableFactory } from '@kbn/embeddable-examples-plugin/public';
import { EmbeddableRenderer } from '@kbn/embeddable-plugin/public';
interface Props {
todoEmbeddableFactory: TodoEmbeddableFactory;

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { createAction } from '../../../../src/plugins/ui_actions/public';
import { createAction } from '@kbn/ui-actions-plugin/public';
export const ACTION_NAVIGATE = 'ACTION_NAVIGATE';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { Trigger } from '../../../../src/plugins/ui_actions/public';
import { Trigger } from '@kbn/ui-actions-plugin/public';
export const NAVIGATE_TRIGGER_ID = 'NAVIGATE_TRIGGER_ID';

View file

@ -19,9 +19,9 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { ExpressionsStart } from '../../../src/plugins/expressions/public';
import { ExpressionsStart } from '@kbn/expressions-plugin/public';
import { UiActionsStart } from '@kbn/ui-actions-plugin/public';
import { ExpressionEditor } from './editor/expression_editor';
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
import { NAVIGATE_TRIGGER_ID } from './actions/navigate_trigger';
interface Props {

View file

@ -19,9 +19,9 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { ExpressionsStart } from '../../../src/plugins/expressions/public';
import { ExpressionsStart } from '@kbn/expressions-plugin/public';
import { UiActionsStart } from '@kbn/ui-actions-plugin/public';
import { ExpressionEditor } from './editor/expression_editor';
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
interface Props {
expressions: ExpressionsStart;

View file

@ -18,15 +18,15 @@ import {
EuiText,
EuiLink,
} from '@elastic/eui';
import { AppMountParameters, IUiSettingsClient } from '../../../src/core/public';
import { ExpressionsStart } from '../../../src/plugins/expressions/public';
import { Start as InspectorStart } from '../../../src/plugins/inspector/public';
import { AppMountParameters, IUiSettingsClient } from '@kbn/core/public';
import { ExpressionsStart } from '@kbn/expressions-plugin/public';
import { Start as InspectorStart } from '@kbn/inspector-plugin/public';
import { UiActionsStart } from '@kbn/ui-actions-plugin/public';
import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public';
import { RunExpressionsExample } from './run_expressions';
import { RenderExpressionsExample } from './render_expressions';
import { ActionsExpressionsExample } from './actions_and_expressions';
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
import { ActionsExpressionsExample2 } from './actions_and_expressions2';
import { createKibanaReactContext } from '../../../src/plugins/kibana_react/public';
interface Props {
expressions: ExpressionsStart;

View file

@ -7,7 +7,7 @@
*/
import React from 'react';
import { CodeEditor } from '../../../../src/plugins/kibana_react/public';
import { CodeEditor } from '@kbn/kibana-react-plugin/public';
interface Props {
value: string;

View file

@ -7,7 +7,7 @@
*/
import { i18n } from '@kbn/i18n';
import { ExpressionFunctionDefinition } from '../../../../src/plugins/expressions/common';
import { ExpressionFunctionDefinition } from '@kbn/expressions-plugin/common';
interface Arguments {
color: string;

View file

@ -10,7 +10,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from '@kbn/i18n-react';
import { EuiEmptyPrompt } from '@elastic/eui';
import { InspectorViewProps, Adapters } from '../../../../src/plugins/inspector/public';
import { InspectorViewProps, Adapters } from '@kbn/inspector-plugin/public';
import { AstDebugView } from './ast_debug_view';
interface ExpressionsInspectorViewComponentState {

View file

@ -7,7 +7,7 @@
*/
import { i18n } from '@kbn/i18n';
import { Adapters, InspectorViewDescription } from '../../../../src/plugins/inspector/public';
import { Adapters, InspectorViewDescription } from '@kbn/inspector-plugin/public';
import { getExpressionsInspectorViewComponentWrapper } from './expressions_inspector_view_wrapper';
export const getExpressionsInspectorViewDescription = (): InspectorViewDescription => ({

View file

@ -6,15 +6,12 @@
* Side Public License, v 1.
*/
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { ExpressionsSetup, ExpressionsStart } from '../../../src/plugins/expressions/public';
import {
Setup as InspectorSetup,
Start as InspectorStart,
} from '../../../src/plugins/inspector/public';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { ExpressionsSetup, ExpressionsStart } from '@kbn/expressions-plugin/public';
import { Setup as InspectorSetup, Start as InspectorStart } from '@kbn/inspector-plugin/public';
import { UiActionsStart, UiActionsSetup } from '@kbn/ui-actions-plugin/public';
import { getExpressionsInspectorViewDescription } from './inspector';
import { UiActionsStart, UiActionsSetup } from '../../../src/plugins/ui_actions/public';
import { NAVIGATE_TRIGGER_ID, navigateTrigger } from './actions/navigate_trigger';
import { ACTION_NAVIGATE, createNavigateAction } from './actions/navigate_action';
import { buttonRenderer } from './renderers/button';

View file

@ -20,9 +20,9 @@ import {
EuiTitle,
EuiButton,
} from '@elastic/eui';
import { ExpressionsStart } from '../../../src/plugins/expressions/public';
import { ExpressionsStart } from '@kbn/expressions-plugin/public';
import { Start as InspectorStart } from '@kbn/inspector-plugin/public';
import { ExpressionEditor } from './editor/expression_editor';
import { Start as InspectorStart } from '../../../src/plugins/inspector/public';
interface Props {
expressions: ExpressionsStart;

View file

@ -9,7 +9,7 @@
import ReactDOM from 'react-dom';
import React from 'react';
import { EuiButton } from '@elastic/eui';
import { ExpressionRenderDefinition } from '../../../../src/plugins/expressions/common/expression_renderers';
import { ExpressionRenderDefinition } from '@kbn/expressions-plugin/common/expression_renderers';
export const buttonRenderer: ExpressionRenderDefinition<any> = {
name: 'button',

View file

@ -22,9 +22,9 @@ import {
EuiTitle,
EuiButton,
} from '@elastic/eui';
import { ExpressionsStart } from '../../../src/plugins/expressions/public';
import { ExpressionsStart } from '@kbn/expressions-plugin/public';
import { Adapters, Start as InspectorStart } from '@kbn/inspector-plugin/public';
import { ExpressionEditor } from './editor/expression_editor';
import { Adapters, Start as InspectorStart } from '../../../src/plugins/inspector/public';
interface Props {
expressions: ExpressionsStart;

View file

@ -7,7 +7,7 @@
*/
import { KBN_FIELD_TYPES } from '@kbn/field-types';
import { FieldFormat } from '../../../src/plugins/field_formats/common';
import { FieldFormat } from '@kbn/field-formats-plugin/common';
// 1. Create a custom formatter by extending {@link FieldFormat}
export class ExampleCurrencyFormat extends FieldFormat {

View file

@ -23,7 +23,7 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { FieldFormatsStart } from '../../../src/plugins/field_formats/public';
import { FieldFormatsStart } from '@kbn/field-formats-plugin/public';
import * as example1 from './examples/1_using_existing_format';
import * as example2 from './examples/2_creating_custom_formatter';
// @ts-ignore

View file

@ -6,8 +6,8 @@
* Side Public License, v 1.
*/
import { SerializedFieldFormat } from '../../../../src/plugins/field_formats/common';
import { FieldFormatsStart } from '../../../../src/plugins/field_formats/public';
import { SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
import { FieldFormatsStart } from '@kbn/field-formats-plugin/public';
// 1. Assume we have an existing field format configuration serialized and saved somewhere
// In this case it is `bytes` field formatter with a configured `'0.00b'` pattern

View file

@ -6,8 +6,8 @@
* Side Public License, v 1.
*/
import { SerializedFieldFormat } from '../../../../src/plugins/field_formats/common';
import { FieldFormatsSetup, FieldFormatsStart } from '../../../../src/plugins/field_formats/public';
import { SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/public';
import { ExampleCurrencyFormat } from '../../common';

View file

@ -12,7 +12,7 @@ import {
FieldFormatEditor,
FieldFormatEditorFactory,
IndexPatternFieldEditorSetup,
} from '../../../../src/plugins/data_view_field_editor/public';
} from '@kbn/data-view-field-editor-plugin/public';
import { ExampleCurrencyFormat } from '../../common';
// 1. Create an editor component

View file

@ -14,16 +14,16 @@ import {
CoreSetup,
CoreStart,
Plugin,
} from '../../../src/core/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { App } from './app';
import { FieldFormatsSetup, FieldFormatsStart } from '../../../src/plugins/field_formats/public';
import { registerExampleFormat } from './examples/2_creating_custom_formatter';
} from '@kbn/core/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/public';
import {
IndexPatternFieldEditorStart,
IndexPatternFieldEditorSetup,
} from '../../../src/plugins/data_view_field_editor/public';
import { DataPublicPluginStart } from '../../../src/plugins/data/public';
} from '@kbn/data-view-field-editor-plugin/public';
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
import { registerExampleFormat } from './examples/2_creating_custom_formatter';
import { App } from './app';
import { registerExampleFormatEditor } from './examples/3_creating_custom_format_editor';
import img from './formats.png';

View file

@ -8,7 +8,7 @@
// This is server-side continuation of examples/field_formats_example/public/examples/2_creating_custom_formatter.ts
import { FieldFormatsSetup } from '../../../../src/plugins/field_formats/server';
import { FieldFormatsSetup } from '@kbn/field-formats-plugin/server';
import { ExampleCurrencyFormat } from '../../common';

View file

@ -6,8 +6,8 @@
* Side Public License, v 1.
*/
import { CoreSetup, CoreStart, Plugin } from '../../../src/core/server';
import { FieldFormatsSetup, FieldFormatsStart } from '../../../src/plugins/field_formats/server';
import { CoreSetup, CoreStart, Plugin } from '@kbn/core/server';
import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/server';
import { registerExampleFormat } from './examples/2_creating_custom_formatter';
interface SetupDeps {

View file

@ -7,8 +7,8 @@
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { AppMountParameters, CoreSetup, CoreStart, Plugin } from '../../../src/core/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { AppMountParameters, CoreSetup, CoreStart, Plugin } from '@kbn/core/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
interface SetupDeps {
developerExamples: DeveloperExamplesSetup;

View file

@ -15,7 +15,7 @@ import { EuiPageContentBody } from '@elastic/eui';
import { Route, Switch, Redirect, Router, useLocation } from 'react-router-dom';
import { createBrowserHistory } from 'history';
import { EuiText } from '@elastic/eui';
import { AppMountParameters } from '../../../src/core/public';
import { AppMountParameters } from '@kbn/core/public';
function useQuery() {
const { search } = useLocation();

View file

@ -7,8 +7,8 @@
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { MigrateFunction } from 'src/plugins/kibana_utils/common';
import { LocatorDefinition, LocatorPublic } from '../../../src/plugins/share/public';
import { MigrateFunction } from '@kbn/kibana-utils-plugin/common';
import { LocatorDefinition, LocatorPublic } from '@kbn/share-plugin/public';
export const HELLO_LOCATOR = 'HELLO_LOCATOR';

View file

@ -6,8 +6,8 @@
* Side Public License, v 1.
*/
import { SharePluginStart, SharePluginSetup } from '../../../src/plugins/share/public';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
import { SharePluginStart, SharePluginSetup } from '@kbn/share-plugin/public';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
import { HelloLocator, HelloLocatorDefinition } from './locator';
interface SetupDeps {

View file

@ -18,13 +18,13 @@ import { EuiText } from '@elastic/eui';
import { EuiFieldText } from '@elastic/eui';
import { EuiPageHeader } from '@elastic/eui';
import { EuiLink } from '@elastic/eui';
import { AppMountParameters } from '../../../src/core/public';
import { SharePluginSetup } from '../../../src/plugins/share/public';
import { AppMountParameters } from '@kbn/core/public';
import { SharePluginSetup } from '@kbn/share-plugin/public';
import {
HelloLocatorV1Params,
HelloLocatorV2Params,
HELLO_LOCATOR,
} from '../../locator_examples/public';
} from '@kbn/locator-examples-plugin/public';
interface Props {
share: SharePluginSetup;

View file

@ -6,9 +6,9 @@
* Side Public License, v 1.
*/
import { SharePluginSetup, SharePluginStart } from '../../../src/plugins/share/public';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { SharePluginSetup, SharePluginStart } from '@kbn/share-plugin/public';
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
interface SetupDeps {
developerExamples: DeveloperExamplesSetup;

View file

@ -22,7 +22,7 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import type { Datatable } from 'src/plugins/expressions';
import type { Datatable } from '@kbn/expressions-plugin';
import { ExpressionsContext } from './expressions_context';
const expression = `getEvents

View file

@ -7,6 +7,6 @@
*/
import { createContext } from 'react';
import type { ExpressionsServiceStart } from 'src/plugins/expressions';
import type { ExpressionsServiceStart } from '@kbn/expressions-plugin';
export const ExpressionsContext = createContext<ExpressionsServiceStart | undefined>(undefined);

View file

@ -8,7 +8,7 @@
import { Observable, fromEvent } from 'rxjs';
import { scan, startWith } from 'rxjs/operators';
import type { ExpressionFunctionDefinition } from 'src/plugins/expressions';
import type { ExpressionFunctionDefinition } from '@kbn/expressions-plugin';
export interface CountEventArguments {
event: string;

View file

@ -8,7 +8,7 @@
import { Observable, fromEvent, merge } from 'rxjs';
import { distinct, map, pluck, scan, take } from 'rxjs/operators';
import type { Datatable, ExpressionFunctionDefinition } from 'src/plugins/expressions';
import type { Datatable, ExpressionFunctionDefinition } from '@kbn/expressions-plugin';
const EVENTS: Array<keyof WindowEventMap> = [
'mousedown',

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { Datatable, ExpressionFunctionDefinition } from 'src/plugins/expressions';
import type { Datatable, ExpressionFunctionDefinition } from '@kbn/expressions-plugin';
export interface PluckArguments {
key: string;

View file

@ -7,10 +7,10 @@
*/
import React from 'react';
import ReactDOM from 'react-dom';
import type { ExpressionsServiceSetup } from 'src/plugins/expressions';
import { ExpressionsServiceFork } from 'src/plugins/expressions/common/service/expressions_fork';
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '../../../src/core/public';
import type { DeveloperExamplesSetup } from '../../developer_examples/public';
import type { ExpressionsServiceSetup } from '@kbn/expressions-plugin';
import { ExpressionsServiceFork } from '@kbn/expressions-plugin/common/service/expressions_fork';
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '@kbn/core/public';
import type { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { App, ExpressionsContext } from './app';
import { countEvent, getEvents, pluck } from './functions';

View file

@ -17,7 +17,7 @@ import {
EuiText,
} from '@elastic/eui';
import React, { useEffect, useState } from 'react';
import type { HttpSetup, IHttpFetchError, ResponseErrorBody } from 'src/core/public';
import type { HttpSetup, IHttpFetchError, ResponseErrorBody } from '@kbn/core/public';
export const App = ({ http, token }: { http: HttpSetup; token?: string }) => {
const onCompleteSetup = async ({ shouldReloadConfig }: { shouldReloadConfig: boolean }) => {

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { PluginInitializerContext } from 'kibana/public';
import { PluginInitializerContext } from '@kbn/core/public';
import { PrebootExamplePlugin } from './plugin';
export const plugin = (initializerContext: PluginInitializerContext) =>

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { CoreSetup, CoreStart, Plugin, PluginInitializerContext } from 'src/core/public';
import type { CoreSetup, CoreStart, Plugin, PluginInitializerContext } from '@kbn/core/public';
import React from 'react';
import ReactDOM from 'react-dom';
import { App } from './app';

View file

@ -7,7 +7,7 @@
*/
import type { TypeOf } from '@kbn/config-schema';
import type { PluginConfigDescriptor, PluginInitializerContext } from 'src/core/server';
import type { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server';
import { ConfigSchema } from './config';
import { PrebootExamplePlugin } from './plugin';

View file

@ -7,7 +7,7 @@
*/
import { schema } from '@kbn/config-schema';
import type { CorePreboot, PrebootPlugin, PluginInitializerContext } from 'src/core/server';
import type { CorePreboot, PrebootPlugin, PluginInitializerContext } from '@kbn/core/server';
import fs from 'fs/promises';
import { errors } from '@elastic/elasticsearch';
import Boom from '@hapi/boom';

View file

@ -8,7 +8,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { AppMountParameters } from 'kibana/public';
import { AppMountParameters } from '@kbn/core/public';
import {
EuiPage,
EuiPageBody,

View file

@ -16,7 +16,7 @@ import {
EuiCallOut,
EuiFormRow,
} from '@elastic/eui';
import { HttpFetchError } from '../../../src/core/public';
import { HttpFetchError } from '@kbn/core/public';
import { isError } from './is_error';
import { Services } from './services';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { PluginInitializer } from 'kibana/public';
import { PluginInitializer } from '@kbn/core/public';
import { RoutingExamplePlugin } from './plugin';
export const plugin: PluginInitializer<{}, {}> = () => new RoutingExamplePlugin();

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { HttpFetchError } from '../../../src/core/public';
import { HttpFetchError } from '@kbn/core/public';
export function isError<T>(error: T | HttpFetchError): error is HttpFetchError {
return error instanceof HttpFetchError;

Some files were not shown because too many files have changed in this diff Show more