mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
fix all violations
This commit is contained in:
parent
bd8171c13e
commit
3730dd0779
11447 changed files with 21110 additions and 22288 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
const { BASE_BUCKET_DAILY } = require('./bucket_config.js');
|
const { BASE_BUCKET_DAILY } = require('./bucket_config');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
console.log('--- Create ES Snapshot Manifest');
|
console.log('--- Create ES Snapshot Manifest');
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const { execSync } = require('child_process');
|
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 () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const config = require('@kbn/storybook').defaultConfig;
|
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 = {};
|
config.refs = {};
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import React, { useState } from 'react';
|
||||||
import useMountedState from 'react-use/lib/useMountedState';
|
import useMountedState from 'react-use/lib/useMountedState';
|
||||||
import useList from 'react-use/lib/useList';
|
import useList from 'react-use/lib/useList';
|
||||||
import { EuiForm, EuiSpacer, EuiFieldNumber, EuiFormRow, EuiButton } from '@elastic/eui';
|
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 {
|
export interface Props {
|
||||||
fetchStreaming: BfetchPublicSetup['fetchStreaming'];
|
fetchStreaming: BfetchPublicSetup['fetchStreaming'];
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* 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';
|
import { BfetchDeps } from '../mount';
|
||||||
|
|
||||||
export const useDeps = () => useKibana().services as BfetchDeps;
|
export const useDeps = () => useKibana().services as BfetchDeps;
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { render, unmountComponentAtNode } from 'react-dom';
|
import { render, unmountComponentAtNode } from 'react-dom';
|
||||||
import { CoreSetup, CoreStart, AppMountParameters } from 'kibana/public';
|
import { CoreSetup, CoreStart, AppMountParameters } from '@kbn/core/public';
|
||||||
import { KibanaContextProvider } from '../../../src/plugins/kibana_react/public';
|
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
|
||||||
import { BfetchExplorerStartPlugins, ExplorerService } from './plugin';
|
import { BfetchExplorerStartPlugins, ExplorerService } from './plugin';
|
||||||
import { App } from './containers/app';
|
import { App } from './containers/app';
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Plugin, CoreSetup, AppNavLinkStatus } from '../../../src/core/public';
|
import { Plugin, CoreSetup, AppNavLinkStatus } from '@kbn/core/public';
|
||||||
import { BfetchPublicSetup, BfetchPublicStart } from '../../../src/plugins/bfetch/public';
|
import { BfetchPublicSetup, BfetchPublicStart } from '@kbn/bfetch-plugin/public';
|
||||||
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
import { mount } from './mount';
|
import { mount } from './mount';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
|
||||||
|
|
||||||
export interface ExplorerService {
|
export interface ExplorerService {
|
||||||
double: (number: { num: number }) => Promise<{ num: number }>;
|
double: (number: { num: number }) => Promise<{ num: number }>;
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { Plugin, CoreSetup, CoreStart } from '../../../src/core/server';
|
import { Plugin, CoreSetup, CoreStart } from '@kbn/core/server';
|
||||||
import { BfetchServerSetup, BfetchServerStart } from '../../../src/plugins/bfetch/server';
|
import { BfetchServerSetup, BfetchServerStart } from '@kbn/bfetch-plugin/server';
|
||||||
|
|
||||||
export interface BfetchExplorerSetupPlugins {
|
export interface BfetchExplorerSetupPlugins {
|
||||||
bfetch: BfetchServerSetup;
|
bfetch: BfetchServerSetup;
|
||||||
|
|
|
@ -18,10 +18,10 @@ import {
|
||||||
EuiSideNav,
|
EuiSideNav,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import 'brace/mode/json';
|
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 { DashboardEmbeddableByValue } from './by_value/embeddable';
|
||||||
import { DashboardStart } from '../../../src/plugins/dashboard/public';
|
|
||||||
import { KibanaContextProvider } from '../../../src/plugins/kibana_react/public';
|
|
||||||
|
|
||||||
interface PageDef {
|
interface PageDef {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { ViewMode } from '../../../../src/plugins/embeddable/public';
|
import { ViewMode } from '@kbn/embeddable-plugin/public';
|
||||||
import { DashboardContainerInput, DashboardStart } from '../../../../src/plugins/dashboard/public';
|
import { DashboardContainerInput, DashboardStart } from '@kbn/dashboard-plugin/public';
|
||||||
import { HELLO_WORLD_EMBEDDABLE } from '../../../embeddable_examples/public/hello_world';
|
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 { 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 = {
|
const initialInput: DashboardContainerInput = {
|
||||||
viewMode: ViewMode.VIEW,
|
viewMode: ViewMode.VIEW,
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { EuiButton } from '@elastic/eui';
|
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 }) => {
|
export const InputEditor = <T,>(props: { input: T; onSubmit: (value: T) => void }) => {
|
||||||
const input = JSON.stringify(props.input, null, 4);
|
const input = JSON.stringify(props.input, null, 4);
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '../../../src/core/public';
|
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '@kbn/core/public';
|
||||||
import { DashboardStart } from '../../../src/plugins/dashboard/public';
|
import { DashboardStart } from '@kbn/dashboard-plugin/public';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
import { EmbeddableExamplesStart } from '../../embeddable_examples/public/plugin';
|
import { EmbeddableExamplesStart } from '@kbn/embeddable-examples-plugin/public/plugin';
|
||||||
|
|
||||||
interface SetupDeps {
|
interface SetupDeps {
|
||||||
developerExamples: DeveloperExamplesSetup;
|
developerExamples: DeveloperExamplesSetup;
|
||||||
|
|
|
@ -19,10 +19,10 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
DefaultItemAction,
|
DefaultItemAction,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { AppMountParameters } from '../../../src/core/public';
|
import { AppMountParameters } from '@kbn/core/public';
|
||||||
import { DataPublicPluginStart } from '../../../src/plugins/data/public';
|
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
|
||||||
import type { DataView, DataViewField } from '../../../src/plugins/data_views/public';
|
import type { DataView, DataViewField } from '@kbn/data-views-plugin/public';
|
||||||
import { IndexPatternFieldEditorStart } from '../../../src/plugins/data_view_field_editor/public';
|
import { IndexPatternFieldEditorStart } from '@kbn/data-view-field-editor-plugin/public';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
dataView?: DataView;
|
dataView?: DataView;
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
|
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
import { DataPublicPluginStart } from '../../../src/plugins/data/public';
|
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
|
||||||
import { IndexPatternFieldEditorStart } from '../../../src/plugins/data_view_field_editor/public';
|
import { IndexPatternFieldEditorStart } from '@kbn/data-view-field-editor-plugin/public';
|
||||||
|
|
||||||
interface StartDeps {
|
interface StartDeps {
|
||||||
data: DataPublicPluginStart;
|
data: DataPublicPluginStart;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import {
|
||||||
EuiLink,
|
EuiLink,
|
||||||
EuiButtonIcon,
|
EuiButtonIcon,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { AppMountParameters } from '../../../src/core/public';
|
import { AppMountParameters } from '@kbn/core/public';
|
||||||
import { ExampleDefinition } from './types';
|
import { ExampleDefinition } from './types';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -6,12 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { CoreSetup, Plugin, AppMountParameters, DEFAULT_APP_CATEGORIES } from '@kbn/core/public';
|
||||||
CoreSetup,
|
|
||||||
Plugin,
|
|
||||||
AppMountParameters,
|
|
||||||
DEFAULT_APP_CATEGORIES,
|
|
||||||
} from '../../../src/core/public';
|
|
||||||
|
|
||||||
import { ExampleDefinition } from './types';
|
import { ExampleDefinition } from './types';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SavedObjectAttributes } from '../../../src/core/types';
|
import { SavedObjectAttributes } from '@kbn/core/types';
|
||||||
|
|
||||||
export const BOOK_SAVED_OBJECT = 'book';
|
export const BOOK_SAVED_OBJECT = 'book';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SavedObjectAttributes } from '../../../src/core/types';
|
import { SavedObjectAttributes } from '@kbn/core/types';
|
||||||
|
|
||||||
export interface TodoSavedObjectAttributes extends SavedObjectAttributes {
|
export interface TodoSavedObjectAttributes extends SavedObjectAttributes {
|
||||||
task: string;
|
task: string;
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
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 { 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 {
|
interface ActionContext {
|
||||||
embeddable: BookEmbeddable;
|
embeddable: BookEmbeddable;
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { EuiFlexItem, EuiFlexGroup, EuiIcon } from '@elastic/eui';
|
||||||
|
|
||||||
import { EuiText } from '@elastic/eui';
|
import { EuiText } from '@elastic/eui';
|
||||||
import { i18n } from '@kbn/i18n';
|
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';
|
import { BookEmbeddableInput, BookEmbeddableOutput, BookEmbeddable } from './book_embeddable';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {
|
||||||
SavedObjectEmbeddableInput,
|
SavedObjectEmbeddableInput,
|
||||||
ReferenceOrValueEmbeddable,
|
ReferenceOrValueEmbeddable,
|
||||||
AttributeService,
|
AttributeService,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { BookSavedObjectAttributes } from '../../common';
|
import { BookSavedObjectAttributes } from '../../common';
|
||||||
import { BookEmbeddableComponent } from './book_component';
|
import { BookEmbeddableComponent } from './book_component';
|
||||||
|
|
||||||
|
|
|
@ -8,15 +8,16 @@
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
|
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
|
||||||
import { toMountPoint } from '../../../../src/plugins/kibana_react/public';
|
|
||||||
import {
|
import {
|
||||||
EmbeddableFactoryDefinition,
|
EmbeddableFactoryDefinition,
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
AttributeService,
|
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 {
|
import {
|
||||||
BookEmbeddable,
|
BookEmbeddable,
|
||||||
BOOK_EMBEDDABLE,
|
BOOK_EMBEDDABLE,
|
||||||
|
@ -24,12 +25,7 @@ import {
|
||||||
BookEmbeddableOutput,
|
BookEmbeddableOutput,
|
||||||
} from './book_embeddable';
|
} from './book_embeddable';
|
||||||
import { CreateEditBookComponent } from './create_edit_book_component';
|
import { CreateEditBookComponent } from './create_edit_book_component';
|
||||||
import {
|
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
|
||||||
OverlayStart,
|
|
||||||
SavedObjectsClientContract,
|
|
||||||
SimpleSavedObject,
|
|
||||||
} from '../../../../src/core/public';
|
|
||||||
import { checkForDuplicateTitle, OnSaveProps } from '../../../../src/plugins/saved_objects/public';
|
|
||||||
|
|
||||||
interface StartServices {
|
interface StartServices {
|
||||||
getAttributeService: EmbeddableStart['getAttributeService'];
|
getAttributeService: EmbeddableStart['getAttributeService'];
|
||||||
|
|
|
@ -7,16 +7,17 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { OverlayStart } from 'kibana/public';
|
import { OverlayStart } from '@kbn/core/public';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
|
import { createAction } from '@kbn/ui-actions-plugin/public';
|
||||||
import { createAction } from '../../../../src/plugins/ui_actions/public';
|
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
|
||||||
import { toMountPoint } from '../../../../src/plugins/kibana_react/public';
|
|
||||||
import {
|
import {
|
||||||
ViewMode,
|
ViewMode,
|
||||||
SavedObjectEmbeddableInput,
|
SavedObjectEmbeddableInput,
|
||||||
EmbeddableStart,
|
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 {
|
import {
|
||||||
BookEmbeddable,
|
BookEmbeddable,
|
||||||
BOOK_EMBEDDABLE,
|
BOOK_EMBEDDABLE,
|
||||||
|
@ -24,8 +25,7 @@ import {
|
||||||
BookByValueInput,
|
BookByValueInput,
|
||||||
} from './book_embeddable';
|
} from './book_embeddable';
|
||||||
import { CreateEditBookComponent } from './create_edit_book_component';
|
import { CreateEditBookComponent } from './create_edit_book_component';
|
||||||
import { OnSaveProps } from '../../../../src/plugins/saved_objects/public';
|
import { BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../../common';
|
||||||
import { SavedObjectsClientContract } from '../../../../src/core/public';
|
|
||||||
|
|
||||||
interface StartServices {
|
interface StartServices {
|
||||||
openModal: OverlayStart['openModal'];
|
openModal: OverlayStart['openModal'];
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
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 { 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 {
|
interface ActionContext {
|
||||||
embeddable: BookEmbeddable;
|
embeddable: BookEmbeddable;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SavedObjectsClientContract } from 'kibana/public';
|
import { SavedObjectsClientContract } from '@kbn/core/public';
|
||||||
import { TodoSavedObjectAttributes, BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../common';
|
import { TodoSavedObjectAttributes, BookSavedObjectAttributes, BOOK_SAVED_OBJECT } from '../common';
|
||||||
|
|
||||||
export async function createSampleData(client: SavedObjectsClientContract, overwrite = true) {
|
export async function createSampleData(client: SavedObjectsClientContract, overwrite = true) {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* 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';
|
export const HELLO_WORLD_EMBEDDABLE = 'HELLO_WORLD_EMBEDDABLE';
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import {
|
||||||
EmbeddableInput,
|
EmbeddableInput,
|
||||||
EmbeddableFactoryDefinition,
|
EmbeddableFactoryDefinition,
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { HelloWorldEmbeddable, HELLO_WORLD_EMBEDDABLE } from './hello_world_embeddable';
|
import { HelloWorldEmbeddable, HELLO_WORLD_EMBEDDABLE } from './hello_world_embeddable';
|
||||||
|
|
||||||
export type HelloWorldEmbeddableFactory = EmbeddableFactory;
|
export type HelloWorldEmbeddableFactory = EmbeddableFactory;
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import {
|
import { Container, ContainerInput, EmbeddableStart } from '@kbn/embeddable-plugin/public';
|
||||||
Container,
|
|
||||||
ContainerInput,
|
|
||||||
EmbeddableStart,
|
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
|
||||||
import { ListContainerComponent } from './list_container_component';
|
import { ListContainerComponent } from './list_container_component';
|
||||||
|
|
||||||
export const LIST_CONTAINER = 'LIST_CONTAINER';
|
export const LIST_CONTAINER = 'LIST_CONTAINER';
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
ContainerOutput,
|
ContainerOutput,
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
EmbeddableChildPanel,
|
EmbeddableChildPanel,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
embeddable: IContainer;
|
embeddable: IContainer;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
ContainerOutput,
|
ContainerOutput,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { LIST_CONTAINER, ListContainer } from './list_container';
|
import { LIST_CONTAINER, ListContainer } from './list_container';
|
||||||
|
|
||||||
interface StartServices {
|
interface StartServices {
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* Side Public License, v 1.
|
* 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 { 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`
|
// before 7.3.0 this embeddable received a very simple input with a variable named `number`
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { Embeddable, IContainer } from '@kbn/embeddable-plugin/public';
|
||||||
import { SIMPLE_EMBEDDABLE, SimpleEmbeddableInput } from '.';
|
import { SIMPLE_EMBEDDABLE, SimpleEmbeddableInput } from '.';
|
||||||
import { Embeddable, IContainer } from '../../../../src/plugins/embeddable/public';
|
|
||||||
|
|
||||||
export class SimpleEmbeddable extends Embeddable<SimpleEmbeddableInput> {
|
export class SimpleEmbeddable extends Embeddable<SimpleEmbeddableInput> {
|
||||||
// The type of this embeddable. This will be used to find the appropriate factory
|
// The type of this embeddable. This will be used to find the appropriate factory
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { EmbeddableStateWithType } from '../../../../src/plugins/embeddable/common';
|
import { EmbeddableStateWithType } from '@kbn/embeddable-plugin/common';
|
||||||
import {
|
import {
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableInput,
|
EmbeddableInput,
|
||||||
EmbeddableFactoryDefinition,
|
EmbeddableFactoryDefinition,
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { SimpleEmbeddable } from './migrations_embeddable';
|
import { SimpleEmbeddable } from './migrations_embeddable';
|
||||||
import { migration730 } from './migration.7.3.0';
|
import { migration730 } from './migration.7.3.0';
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {
|
||||||
EuiListGroup,
|
EuiListGroup,
|
||||||
EuiListGroupItem,
|
EuiListGroupItem,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { withEmbeddableSubscription } from '../../../../src/plugins/embeddable/public';
|
import { withEmbeddableSubscription } from '@kbn/embeddable-plugin/public';
|
||||||
import {
|
import {
|
||||||
MultiTaskTodoEmbeddable,
|
MultiTaskTodoEmbeddable,
|
||||||
MultiTaskTodoOutput,
|
MultiTaskTodoOutput,
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
EmbeddableInput,
|
EmbeddableInput,
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableOutput,
|
EmbeddableOutput,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { MultiTaskTodoEmbeddableComponent } from './multi_task_todo_component';
|
import { MultiTaskTodoEmbeddableComponent } from './multi_task_todo_component';
|
||||||
|
|
||||||
export const MULTI_TASK_TODO_EMBEDDABLE = 'MULTI_TASK_TODO_EMBEDDABLE';
|
export const MULTI_TASK_TODO_EMBEDDABLE = 'MULTI_TASK_TODO_EMBEDDABLE';
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableFactoryDefinition,
|
EmbeddableFactoryDefinition,
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import {
|
import {
|
||||||
MultiTaskTodoEmbeddable,
|
MultiTaskTodoEmbeddable,
|
||||||
MULTI_TASK_TODO_EMBEDDABLE,
|
MULTI_TASK_TODO_EMBEDDABLE,
|
||||||
|
|
|
@ -10,8 +10,9 @@ import {
|
||||||
EmbeddableSetup,
|
EmbeddableSetup,
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
CONTEXT_MENU_TRIGGER,
|
CONTEXT_MENU_TRIGGER,
|
||||||
} from '../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { Plugin, CoreSetup, CoreStart, SavedObjectsClient } from '../../../src/core/public';
|
import { Plugin, CoreSetup, CoreStart, SavedObjectsClient } from '@kbn/core/public';
|
||||||
|
import { UiActionsStart } from '@kbn/ui-actions-plugin/public';
|
||||||
import {
|
import {
|
||||||
HelloWorldEmbeddableFactory,
|
HelloWorldEmbeddableFactory,
|
||||||
HELLO_WORLD_EMBEDDABLE,
|
HELLO_WORLD_EMBEDDABLE,
|
||||||
|
@ -46,7 +47,6 @@ import {
|
||||||
BookEmbeddableFactory,
|
BookEmbeddableFactory,
|
||||||
BookEmbeddableFactoryDefinition,
|
BookEmbeddableFactoryDefinition,
|
||||||
} from './book/book_embeddable_factory';
|
} from './book/book_embeddable_factory';
|
||||||
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
|
|
||||||
import { createAddBookToLibraryAction } from './book/add_book_to_library_action';
|
import { createAddBookToLibraryAction } from './book/add_book_to_library_action';
|
||||||
import { createUnlinkBookFromLibraryAction } from './book/unlink_book_from_library_action';
|
import { createUnlinkBookFromLibraryAction } from './book/unlink_book_from_library_action';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {
|
||||||
ContainerInput,
|
ContainerInput,
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
EmbeddableInput,
|
EmbeddableInput,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { SearchableListContainerComponent } from './searchable_list_container_component';
|
import { SearchableListContainerComponent } from './searchable_list_container_component';
|
||||||
|
|
||||||
export const SEARCHABLE_LIST_CONTAINER = 'SEARCHABLE_LIST_CONTAINER';
|
export const SEARCHABLE_LIST_CONTAINER = 'SEARCHABLE_LIST_CONTAINER';
|
||||||
|
|
|
@ -25,7 +25,7 @@ import {
|
||||||
ContainerOutput,
|
ContainerOutput,
|
||||||
EmbeddableOutput,
|
EmbeddableOutput,
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { SearchableListContainer, SearchableContainerInput } from './searchable_list_container';
|
import { SearchableListContainer, SearchableContainerInput } from './searchable_list_container';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import {
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
EmbeddableFactoryDefinition,
|
EmbeddableFactoryDefinition,
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import {
|
import {
|
||||||
SEARCHABLE_LIST_CONTAINER,
|
SEARCHABLE_LIST_CONTAINER,
|
||||||
SearchableListContainer,
|
SearchableListContainer,
|
||||||
|
|
|
@ -13,10 +13,7 @@ import { EuiText } from '@elastic/eui';
|
||||||
import { EuiAvatar } from '@elastic/eui';
|
import { EuiAvatar } from '@elastic/eui';
|
||||||
import { EuiIcon } from '@elastic/eui';
|
import { EuiIcon } from '@elastic/eui';
|
||||||
import { EuiFlexGrid } from '@elastic/eui';
|
import { EuiFlexGrid } from '@elastic/eui';
|
||||||
import {
|
import { withEmbeddableSubscription, EmbeddableOutput } from '@kbn/embeddable-plugin/public';
|
||||||
withEmbeddableSubscription,
|
|
||||||
EmbeddableOutput,
|
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
|
||||||
import { TodoEmbeddable, TodoInput } from './todo_embeddable';
|
import { TodoEmbeddable, TodoInput } from './todo_embeddable';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
EmbeddableInput,
|
EmbeddableInput,
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableOutput,
|
EmbeddableOutput,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { TodoEmbeddableComponent } from './todo_component';
|
import { TodoEmbeddableComponent } from './todo_component';
|
||||||
|
|
||||||
export const TODO_EMBEDDABLE = 'TODO_EMBEDDABLE';
|
export const TODO_EMBEDDABLE = 'TODO_EMBEDDABLE';
|
||||||
|
|
|
@ -9,15 +9,15 @@
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { EuiModalBody } from '@elastic/eui';
|
import { EuiModalBody } from '@elastic/eui';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { OverlayStart } from 'kibana/public';
|
import { OverlayStart } from '@kbn/core/public';
|
||||||
import { EuiFieldText } from '@elastic/eui';
|
import { EuiFieldText } from '@elastic/eui';
|
||||||
import { EuiButton } 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 {
|
import {
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableFactoryDefinition,
|
EmbeddableFactoryDefinition,
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
import { TodoEmbeddable, TODO_EMBEDDABLE, TodoInput, TodoOutput } from './todo_embeddable';
|
import { TodoEmbeddable, TODO_EMBEDDABLE, TodoInput, TodoOutput } from './todo_embeddable';
|
||||||
|
|
||||||
function TaskInput({ onSave }: { onSave: (task: string) => void }) {
|
function TaskInput({ onSave }: { onSave: (task: string) => void }) {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { EuiText } from '@elastic/eui';
|
||||||
import { EuiAvatar } from '@elastic/eui';
|
import { EuiAvatar } from '@elastic/eui';
|
||||||
import { EuiIcon } from '@elastic/eui';
|
import { EuiIcon } from '@elastic/eui';
|
||||||
import { EuiFlexGrid } 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';
|
import { TodoRefInput, TodoRefOutput, TodoRefEmbeddable } from './todo_ref_embeddable';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -9,14 +9,14 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { TodoSavedObjectAttributes } from 'examples/embeddable_examples/common';
|
import { SavedObjectsClientContract } from '@kbn/core/public';
|
||||||
import { SavedObjectsClientContract } from 'kibana/public';
|
|
||||||
import {
|
import {
|
||||||
Embeddable,
|
Embeddable,
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableOutput,
|
EmbeddableOutput,
|
||||||
SavedObjectEmbeddableInput,
|
SavedObjectEmbeddableInput,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
|
import { TodoSavedObjectAttributes } from '../../common';
|
||||||
import { TodoRefEmbeddableComponent } from './todo_ref_component';
|
import { TodoRefEmbeddableComponent } from './todo_ref_component';
|
||||||
|
|
||||||
// Notice this is not the same value as the 'todo' saved object type. Many of our
|
// Notice this is not the same value as the 'todo' saved object type. Many of our
|
||||||
|
|
|
@ -7,15 +7,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { SavedObjectsClientContract } from 'kibana/public';
|
import { SavedObjectsClientContract } from '@kbn/core/public';
|
||||||
import { TodoSavedObjectAttributes } from 'examples/embeddable_examples/common';
|
|
||||||
import {
|
import {
|
||||||
IContainer,
|
IContainer,
|
||||||
EmbeddableStart,
|
EmbeddableStart,
|
||||||
ErrorEmbeddable,
|
ErrorEmbeddable,
|
||||||
EmbeddableFactoryDefinition,
|
EmbeddableFactoryDefinition,
|
||||||
EmbeddableFactory,
|
EmbeddableFactory,
|
||||||
} from '../../../../src/plugins/embeddable/public';
|
} from '@kbn/embeddable-plugin/public';
|
||||||
|
import { TodoSavedObjectAttributes } from '../../common';
|
||||||
import {
|
import {
|
||||||
TodoRefEmbeddable,
|
TodoRefEmbeddable,
|
||||||
TODO_REF_EMBEDDABLE,
|
TODO_REF_EMBEDDABLE,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SavedObjectsType } from 'kibana/server';
|
import { SavedObjectsType } from '@kbn/core/server';
|
||||||
|
|
||||||
export const bookSavedObject: SavedObjectsType = {
|
export const bookSavedObject: SavedObjectsType = {
|
||||||
name: 'book',
|
name: 'book',
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { PluginInitializer } from 'kibana/server';
|
import { PluginInitializer } from '@kbn/core/server';
|
||||||
|
|
||||||
import { EmbeddableExamplesPlugin } from './plugin';
|
import { EmbeddableExamplesPlugin } from './plugin';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import { mergeWith } from 'lodash';
|
import { mergeWith } from 'lodash';
|
||||||
import type { SerializableRecord } from '@kbn/utility-types';
|
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 = (
|
export const mergeMigrationFunctionMaps = (
|
||||||
obj1: MigrateFunctionsObject,
|
obj1: MigrateFunctionsObject,
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
* Side Public License, v 1.
|
* 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 { todoSavedObject } from './todo_saved_object';
|
||||||
import { bookSavedObject } from './book_saved_object';
|
import { bookSavedObject } from './book_saved_object';
|
||||||
import { searchableListSavedObject } from './searchable_list_saved_object';
|
import { searchableListSavedObject } from './searchable_list_saved_object';
|
||||||
import { EmbeddableSetup } from '../../../src/plugins/embeddable/server';
|
|
||||||
|
|
||||||
export interface EmbeddableExamplesSetupDependencies {
|
export interface EmbeddableExamplesSetupDependencies {
|
||||||
embeddable: EmbeddableSetup;
|
embeddable: EmbeddableSetup;
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { mapValues } from 'lodash';
|
import { mapValues } from 'lodash';
|
||||||
import { SavedObjectsType, SavedObjectUnsanitizedDoc } from 'kibana/server';
|
import { SavedObjectsType, SavedObjectUnsanitizedDoc } from '@kbn/core/server';
|
||||||
import { EmbeddableSetup } from '../../../src/plugins/embeddable/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
|
// 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
|
// allow static imports from plugins so this code was duplicated
|
||||||
import { mergeMigrationFunctionMaps } from './merge_migration_function_maps';
|
import { mergeMigrationFunctionMaps } from './merge_migration_function_maps';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SavedObjectsType } from 'kibana/server';
|
import { SavedObjectsType } from '@kbn/core/server';
|
||||||
|
|
||||||
export const todoSavedObject: SavedObjectsType = {
|
export const todoSavedObject: SavedObjectsType = {
|
||||||
name: 'todo',
|
name: 'todo',
|
||||||
|
|
|
@ -12,21 +12,21 @@ import { BrowserRouter as Router, Route, withRouter, RouteComponentProps } from
|
||||||
|
|
||||||
import { EuiPage, EuiPageSideBar, EuiSideNav } from '@elastic/eui';
|
import { EuiPage, EuiPageSideBar, EuiSideNav } from '@elastic/eui';
|
||||||
|
|
||||||
import { EmbeddableStart } from '../../../src/plugins/embeddable/public';
|
import { EmbeddableStart } from '@kbn/embeddable-plugin/public';
|
||||||
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
|
import { UiActionsStart } from '@kbn/ui-actions-plugin/public';
|
||||||
import { Start as InspectorStartContract } from '../../../src/plugins/inspector/public';
|
import { Start as InspectorStartContract } from '@kbn/inspector-plugin/public';
|
||||||
import {
|
import {
|
||||||
AppMountParameters,
|
AppMountParameters,
|
||||||
CoreStart,
|
CoreStart,
|
||||||
SavedObjectsStart,
|
SavedObjectsStart,
|
||||||
IUiSettingsClient,
|
IUiSettingsClient,
|
||||||
OverlayStart,
|
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 { HelloWorldEmbeddableExample } from './hello_world_embeddable_example';
|
||||||
import { TodoEmbeddableExample } from './todo_embeddable_example';
|
import { TodoEmbeddableExample } from './todo_embeddable_example';
|
||||||
import { ListContainerExample } from './list_container_example';
|
import { ListContainerExample } from './list_container_example';
|
||||||
import { EmbeddablePanelExample } from './embeddable_panel_example';
|
import { EmbeddablePanelExample } from './embeddable_panel_example';
|
||||||
import { EmbeddableExamplesStart } from '../../embeddable_examples/public/plugin';
|
|
||||||
|
|
||||||
interface PageDef {
|
interface PageDef {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
|
@ -18,14 +18,14 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { EuiSpacer } 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 {
|
import {
|
||||||
HELLO_WORLD_EMBEDDABLE,
|
HELLO_WORLD_EMBEDDABLE,
|
||||||
TODO_EMBEDDABLE,
|
TODO_EMBEDDABLE,
|
||||||
BOOK_EMBEDDABLE,
|
BOOK_EMBEDDABLE,
|
||||||
MULTI_TASK_TODO_EMBEDDABLE,
|
MULTI_TASK_TODO_EMBEDDABLE,
|
||||||
SearchableListContainerFactory,
|
SearchableListContainerFactory,
|
||||||
} from '../../embeddable_examples/public';
|
} from '@kbn/embeddable-examples-plugin/public';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
embeddableServices: EmbeddableStart;
|
embeddableServices: EmbeddableStart;
|
||||||
|
|
|
@ -17,11 +17,11 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { EmbeddableRenderer } from '../../../src/plugins/embeddable/public';
|
import { EmbeddableRenderer } from '@kbn/embeddable-plugin/public';
|
||||||
import {
|
import {
|
||||||
HelloWorldEmbeddable,
|
HelloWorldEmbeddable,
|
||||||
HelloWorldEmbeddableFactory,
|
HelloWorldEmbeddableFactory,
|
||||||
} from '../../embeddable_examples/public';
|
} from '@kbn/embeddable-examples-plugin/public';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
helloWorldEmbeddableFactory: HelloWorldEmbeddableFactory;
|
helloWorldEmbeddableFactory: HelloWorldEmbeddableFactory;
|
||||||
|
|
|
@ -18,17 +18,17 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { EmbeddableRenderer, ViewMode } from '../../../src/plugins/embeddable/public';
|
import { EmbeddableRenderer, ViewMode } from '@kbn/embeddable-plugin/public';
|
||||||
import {
|
import {
|
||||||
HELLO_WORLD_EMBEDDABLE,
|
HELLO_WORLD_EMBEDDABLE,
|
||||||
MULTI_TASK_TODO_EMBEDDABLE,
|
MULTI_TASK_TODO_EMBEDDABLE,
|
||||||
TODO_EMBEDDABLE,
|
TODO_EMBEDDABLE,
|
||||||
ListContainerFactory,
|
ListContainerFactory,
|
||||||
SearchableListContainerFactory,
|
SearchableListContainerFactory,
|
||||||
} from '../../embeddable_examples/public';
|
} from '@kbn/embeddable-examples-plugin/public';
|
||||||
import { SearchableContainerInput } from '../../embeddable_examples/public/searchable_list_container/searchable_list_container';
|
import { SearchableContainerInput } from '@kbn/embeddable-examples-plugin/public/searchable_list_container/searchable_list_container';
|
||||||
import { TodoInput } from '../../embeddable_examples/public/todo';
|
import { TodoInput } from '@kbn/embeddable-examples-plugin/public/todo';
|
||||||
import { MultiTaskTodoInput } from '../../embeddable_examples/public/multi_task_todo';
|
import { MultiTaskTodoInput } from '@kbn/embeddable-examples-plugin/public/multi_task_todo';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
listContainerEmbeddableFactory: ListContainerFactory;
|
listContainerEmbeddableFactory: ListContainerFactory;
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { EmbeddableExamplesStart } from 'examples/embeddable_examples/public/plugin';
|
import { EmbeddableExamplesStart } from '@kbn/embeddable-examples-plugin/public/plugin';
|
||||||
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
|
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
|
||||||
import { UiActionsService } from '../../../src/plugins/ui_actions/public';
|
import { UiActionsService } from '@kbn/ui-actions-plugin/public';
|
||||||
import { EmbeddableStart } from '../../../src/plugins/embeddable/public';
|
import { EmbeddableStart } from '@kbn/embeddable-plugin/public';
|
||||||
import { Start as InspectorStart } from '../../../src/plugins/inspector/public';
|
import { Start as InspectorStart } from '@kbn/inspector-plugin/public';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
import img from './embeddables.png';
|
import img from './embeddables.png';
|
||||||
|
|
||||||
interface StartDeps {
|
interface StartDeps {
|
||||||
|
|
|
@ -23,9 +23,9 @@ import {
|
||||||
EuiTextArea,
|
EuiTextArea,
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { TodoInput } from '../../../examples/embeddable_examples/public/todo';
|
import { TodoInput } from '@kbn/embeddable-examples-plugin/public/todo';
|
||||||
import { TodoEmbeddableFactory } from '../../../examples/embeddable_examples/public';
|
import { TodoEmbeddableFactory } from '@kbn/embeddable-examples-plugin/public';
|
||||||
import { EmbeddableRenderer } from '../../../src/plugins/embeddable/public';
|
import { EmbeddableRenderer } from '@kbn/embeddable-plugin/public';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
todoEmbeddableFactory: TodoEmbeddableFactory;
|
todoEmbeddableFactory: TodoEmbeddableFactory;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* 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';
|
export const ACTION_NAVIGATE = 'ACTION_NAVIGATE';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* 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';
|
export const NAVIGATE_TRIGGER_ID = 'NAVIGATE_TRIGGER_ID';
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,9 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} 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 { ExpressionEditor } from './editor/expression_editor';
|
||||||
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
|
|
||||||
import { NAVIGATE_TRIGGER_ID } from './actions/navigate_trigger';
|
import { NAVIGATE_TRIGGER_ID } from './actions/navigate_trigger';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -19,9 +19,9 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} 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 { ExpressionEditor } from './editor/expression_editor';
|
||||||
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
expressions: ExpressionsStart;
|
expressions: ExpressionsStart;
|
||||||
|
|
|
@ -18,15 +18,15 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
EuiLink,
|
EuiLink,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { AppMountParameters, IUiSettingsClient } from '../../../src/core/public';
|
import { AppMountParameters, IUiSettingsClient } from '@kbn/core/public';
|
||||||
import { ExpressionsStart } from '../../../src/plugins/expressions/public';
|
import { ExpressionsStart } from '@kbn/expressions-plugin/public';
|
||||||
import { Start as InspectorStart } from '../../../src/plugins/inspector/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 { RunExpressionsExample } from './run_expressions';
|
||||||
import { RenderExpressionsExample } from './render_expressions';
|
import { RenderExpressionsExample } from './render_expressions';
|
||||||
import { ActionsExpressionsExample } from './actions_and_expressions';
|
import { ActionsExpressionsExample } from './actions_and_expressions';
|
||||||
import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
|
|
||||||
import { ActionsExpressionsExample2 } from './actions_and_expressions2';
|
import { ActionsExpressionsExample2 } from './actions_and_expressions2';
|
||||||
import { createKibanaReactContext } from '../../../src/plugins/kibana_react/public';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
expressions: ExpressionsStart;
|
expressions: ExpressionsStart;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { CodeEditor } from '../../../../src/plugins/kibana_react/public';
|
import { CodeEditor } from '@kbn/kibana-react-plugin/public';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
value: string;
|
value: string;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { ExpressionFunctionDefinition } from '../../../../src/plugins/expressions/common';
|
import { ExpressionFunctionDefinition } from '@kbn/expressions-plugin/common';
|
||||||
|
|
||||||
interface Arguments {
|
interface Arguments {
|
||||||
color: string;
|
color: string;
|
||||||
|
|
|
@ -10,7 +10,7 @@ import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { FormattedMessage } from '@kbn/i18n-react';
|
import { FormattedMessage } from '@kbn/i18n-react';
|
||||||
import { EuiEmptyPrompt } from '@elastic/eui';
|
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';
|
import { AstDebugView } from './ast_debug_view';
|
||||||
|
|
||||||
interface ExpressionsInspectorViewComponentState {
|
interface ExpressionsInspectorViewComponentState {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
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';
|
import { getExpressionsInspectorViewComponentWrapper } from './expressions_inspector_view_wrapper';
|
||||||
|
|
||||||
export const getExpressionsInspectorViewDescription = (): InspectorViewDescription => ({
|
export const getExpressionsInspectorViewDescription = (): InspectorViewDescription => ({
|
||||||
|
|
|
@ -6,15 +6,12 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
|
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
import { ExpressionsSetup, ExpressionsStart } from '../../../src/plugins/expressions/public';
|
import { ExpressionsSetup, ExpressionsStart } from '@kbn/expressions-plugin/public';
|
||||||
import {
|
import { Setup as InspectorSetup, Start as InspectorStart } from '@kbn/inspector-plugin/public';
|
||||||
Setup as InspectorSetup,
|
import { UiActionsStart, UiActionsSetup } from '@kbn/ui-actions-plugin/public';
|
||||||
Start as InspectorStart,
|
|
||||||
} from '../../../src/plugins/inspector/public';
|
|
||||||
import { getExpressionsInspectorViewDescription } from './inspector';
|
import { getExpressionsInspectorViewDescription } from './inspector';
|
||||||
import { UiActionsStart, UiActionsSetup } from '../../../src/plugins/ui_actions/public';
|
|
||||||
import { NAVIGATE_TRIGGER_ID, navigateTrigger } from './actions/navigate_trigger';
|
import { NAVIGATE_TRIGGER_ID, navigateTrigger } from './actions/navigate_trigger';
|
||||||
import { ACTION_NAVIGATE, createNavigateAction } from './actions/navigate_action';
|
import { ACTION_NAVIGATE, createNavigateAction } from './actions/navigate_action';
|
||||||
import { buttonRenderer } from './renderers/button';
|
import { buttonRenderer } from './renderers/button';
|
||||||
|
|
|
@ -20,9 +20,9 @@ import {
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
EuiButton,
|
EuiButton,
|
||||||
} from '@elastic/eui';
|
} 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 { ExpressionEditor } from './editor/expression_editor';
|
||||||
import { Start as InspectorStart } from '../../../src/plugins/inspector/public';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
expressions: ExpressionsStart;
|
expressions: ExpressionsStart;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { EuiButton } from '@elastic/eui';
|
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> = {
|
export const buttonRenderer: ExpressionRenderDefinition<any> = {
|
||||||
name: 'button',
|
name: 'button',
|
||||||
|
|
|
@ -22,9 +22,9 @@ import {
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
EuiButton,
|
EuiButton,
|
||||||
} from '@elastic/eui';
|
} 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 { ExpressionEditor } from './editor/expression_editor';
|
||||||
import { Adapters, Start as InspectorStart } from '../../../src/plugins/inspector/public';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
expressions: ExpressionsStart;
|
expressions: ExpressionsStart;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
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}
|
// 1. Create a custom formatter by extending {@link FieldFormat}
|
||||||
export class ExampleCurrencyFormat extends FieldFormat {
|
export class ExampleCurrencyFormat extends FieldFormat {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} 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 example1 from './examples/1_using_existing_format';
|
||||||
import * as example2 from './examples/2_creating_custom_formatter';
|
import * as example2 from './examples/2_creating_custom_formatter';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SerializedFieldFormat } from '../../../../src/plugins/field_formats/common';
|
import { SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
|
||||||
import { FieldFormatsStart } from '../../../../src/plugins/field_formats/public';
|
import { FieldFormatsStart } from '@kbn/field-formats-plugin/public';
|
||||||
|
|
||||||
// 1. Assume we have an existing field format configuration serialized and saved somewhere
|
// 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
|
// In this case it is `bytes` field formatter with a configured `'0.00b'` pattern
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SerializedFieldFormat } from '../../../../src/plugins/field_formats/common';
|
import { SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
|
||||||
import { FieldFormatsSetup, FieldFormatsStart } from '../../../../src/plugins/field_formats/public';
|
import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/public';
|
||||||
|
|
||||||
import { ExampleCurrencyFormat } from '../../common';
|
import { ExampleCurrencyFormat } from '../../common';
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import {
|
||||||
FieldFormatEditor,
|
FieldFormatEditor,
|
||||||
FieldFormatEditorFactory,
|
FieldFormatEditorFactory,
|
||||||
IndexPatternFieldEditorSetup,
|
IndexPatternFieldEditorSetup,
|
||||||
} from '../../../../src/plugins/data_view_field_editor/public';
|
} from '@kbn/data-view-field-editor-plugin/public';
|
||||||
import { ExampleCurrencyFormat } from '../../common';
|
import { ExampleCurrencyFormat } from '../../common';
|
||||||
|
|
||||||
// 1. Create an editor component
|
// 1. Create an editor component
|
||||||
|
|
|
@ -14,16 +14,16 @@ import {
|
||||||
CoreSetup,
|
CoreSetup,
|
||||||
CoreStart,
|
CoreStart,
|
||||||
Plugin,
|
Plugin,
|
||||||
} from '../../../src/core/public';
|
} from '@kbn/core/public';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
import { App } from './app';
|
import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/public';
|
||||||
import { FieldFormatsSetup, FieldFormatsStart } from '../../../src/plugins/field_formats/public';
|
|
||||||
import { registerExampleFormat } from './examples/2_creating_custom_formatter';
|
|
||||||
import {
|
import {
|
||||||
IndexPatternFieldEditorStart,
|
IndexPatternFieldEditorStart,
|
||||||
IndexPatternFieldEditorSetup,
|
IndexPatternFieldEditorSetup,
|
||||||
} from '../../../src/plugins/data_view_field_editor/public';
|
} from '@kbn/data-view-field-editor-plugin/public';
|
||||||
import { DataPublicPluginStart } from '../../../src/plugins/data/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 { registerExampleFormatEditor } from './examples/3_creating_custom_format_editor';
|
||||||
import img from './formats.png';
|
import img from './formats.png';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
// This is server-side continuation of examples/field_formats_example/public/examples/2_creating_custom_formatter.ts
|
// 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';
|
import { ExampleCurrencyFormat } from '../../common';
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { CoreSetup, CoreStart, Plugin } from '../../../src/core/server';
|
import { CoreSetup, CoreStart, Plugin } from '@kbn/core/server';
|
||||||
import { FieldFormatsSetup, FieldFormatsStart } from '../../../src/plugins/field_formats/server';
|
import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/server';
|
||||||
import { registerExampleFormat } from './examples/2_creating_custom_formatter';
|
import { registerExampleFormat } from './examples/2_creating_custom_formatter';
|
||||||
|
|
||||||
interface SetupDeps {
|
interface SetupDeps {
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { AppMountParameters, CoreSetup, CoreStart, Plugin } from '../../../src/core/public';
|
import { AppMountParameters, CoreSetup, CoreStart, Plugin } from '@kbn/core/public';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
|
|
||||||
interface SetupDeps {
|
interface SetupDeps {
|
||||||
developerExamples: DeveloperExamplesSetup;
|
developerExamples: DeveloperExamplesSetup;
|
||||||
|
|
|
@ -15,7 +15,7 @@ import { EuiPageContentBody } from '@elastic/eui';
|
||||||
import { Route, Switch, Redirect, Router, useLocation } from 'react-router-dom';
|
import { Route, Switch, Redirect, Router, useLocation } from 'react-router-dom';
|
||||||
import { createBrowserHistory } from 'history';
|
import { createBrowserHistory } from 'history';
|
||||||
import { EuiText } from '@elastic/eui';
|
import { EuiText } from '@elastic/eui';
|
||||||
import { AppMountParameters } from '../../../src/core/public';
|
import { AppMountParameters } from '@kbn/core/public';
|
||||||
|
|
||||||
function useQuery() {
|
function useQuery() {
|
||||||
const { search } = useLocation();
|
const { search } = useLocation();
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { SerializableRecord } from '@kbn/utility-types';
|
import type { SerializableRecord } from '@kbn/utility-types';
|
||||||
import { MigrateFunction } from 'src/plugins/kibana_utils/common';
|
import { MigrateFunction } from '@kbn/kibana-utils-plugin/common';
|
||||||
import { LocatorDefinition, LocatorPublic } from '../../../src/plugins/share/public';
|
import { LocatorDefinition, LocatorPublic } from '@kbn/share-plugin/public';
|
||||||
|
|
||||||
export const HELLO_LOCATOR = 'HELLO_LOCATOR';
|
export const HELLO_LOCATOR = 'HELLO_LOCATOR';
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SharePluginStart, SharePluginSetup } from '../../../src/plugins/share/public';
|
import { SharePluginStart, SharePluginSetup } from '@kbn/share-plugin/public';
|
||||||
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
|
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
|
||||||
import { HelloLocator, HelloLocatorDefinition } from './locator';
|
import { HelloLocator, HelloLocatorDefinition } from './locator';
|
||||||
|
|
||||||
interface SetupDeps {
|
interface SetupDeps {
|
||||||
|
|
|
@ -18,13 +18,13 @@ import { EuiText } from '@elastic/eui';
|
||||||
import { EuiFieldText } from '@elastic/eui';
|
import { EuiFieldText } from '@elastic/eui';
|
||||||
import { EuiPageHeader } from '@elastic/eui';
|
import { EuiPageHeader } from '@elastic/eui';
|
||||||
import { EuiLink } from '@elastic/eui';
|
import { EuiLink } from '@elastic/eui';
|
||||||
import { AppMountParameters } from '../../../src/core/public';
|
import { AppMountParameters } from '@kbn/core/public';
|
||||||
import { SharePluginSetup } from '../../../src/plugins/share/public';
|
import { SharePluginSetup } from '@kbn/share-plugin/public';
|
||||||
import {
|
import {
|
||||||
HelloLocatorV1Params,
|
HelloLocatorV1Params,
|
||||||
HelloLocatorV2Params,
|
HelloLocatorV2Params,
|
||||||
HELLO_LOCATOR,
|
HELLO_LOCATOR,
|
||||||
} from '../../locator_examples/public';
|
} from '@kbn/locator-examples-plugin/public';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
share: SharePluginSetup;
|
share: SharePluginSetup;
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SharePluginSetup, SharePluginStart } from '../../../src/plugins/share/public';
|
import { SharePluginSetup, SharePluginStart } from '@kbn/share-plugin/public';
|
||||||
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '../../../src/core/public';
|
import { Plugin, CoreSetup, AppMountParameters, AppNavLinkStatus } from '@kbn/core/public';
|
||||||
import { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
|
|
||||||
interface SetupDeps {
|
interface SetupDeps {
|
||||||
developerExamples: DeveloperExamplesSetup;
|
developerExamples: DeveloperExamplesSetup;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
EuiTitle,
|
EuiTitle,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import type { Datatable } from 'src/plugins/expressions';
|
import type { Datatable } from '@kbn/expressions-plugin';
|
||||||
import { ExpressionsContext } from './expressions_context';
|
import { ExpressionsContext } from './expressions_context';
|
||||||
|
|
||||||
const expression = `getEvents
|
const expression = `getEvents
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { createContext } from 'react';
|
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);
|
export const ExpressionsContext = createContext<ExpressionsServiceStart | undefined>(undefined);
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import { Observable, fromEvent } from 'rxjs';
|
import { Observable, fromEvent } from 'rxjs';
|
||||||
import { scan, startWith } from 'rxjs/operators';
|
import { scan, startWith } from 'rxjs/operators';
|
||||||
import type { ExpressionFunctionDefinition } from 'src/plugins/expressions';
|
import type { ExpressionFunctionDefinition } from '@kbn/expressions-plugin';
|
||||||
|
|
||||||
export interface CountEventArguments {
|
export interface CountEventArguments {
|
||||||
event: string;
|
event: string;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import { Observable, fromEvent, merge } from 'rxjs';
|
import { Observable, fromEvent, merge } from 'rxjs';
|
||||||
import { distinct, map, pluck, scan, take } from 'rxjs/operators';
|
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> = [
|
const EVENTS: Array<keyof WindowEventMap> = [
|
||||||
'mousedown',
|
'mousedown',
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { Datatable, ExpressionFunctionDefinition } from 'src/plugins/expressions';
|
import type { Datatable, ExpressionFunctionDefinition } from '@kbn/expressions-plugin';
|
||||||
|
|
||||||
export interface PluckArguments {
|
export interface PluckArguments {
|
||||||
key: string;
|
key: string;
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import type { ExpressionsServiceSetup } from 'src/plugins/expressions';
|
import type { ExpressionsServiceSetup } from '@kbn/expressions-plugin';
|
||||||
import { ExpressionsServiceFork } from 'src/plugins/expressions/common/service/expressions_fork';
|
import { ExpressionsServiceFork } from '@kbn/expressions-plugin/common/service/expressions_fork';
|
||||||
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '../../../src/core/public';
|
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '@kbn/core/public';
|
||||||
import type { DeveloperExamplesSetup } from '../../developer_examples/public';
|
import type { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
|
||||||
import { App, ExpressionsContext } from './app';
|
import { App, ExpressionsContext } from './app';
|
||||||
import { countEvent, getEvents, pluck } from './functions';
|
import { countEvent, getEvents, pluck } from './functions';
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {
|
||||||
EuiText,
|
EuiText,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import React, { useEffect, useState } from 'react';
|
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 }) => {
|
export const App = ({ http, token }: { http: HttpSetup; token?: string }) => {
|
||||||
const onCompleteSetup = async ({ shouldReloadConfig }: { shouldReloadConfig: boolean }) => {
|
const onCompleteSetup = async ({ shouldReloadConfig }: { shouldReloadConfig: boolean }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { PluginInitializerContext } from 'kibana/public';
|
import { PluginInitializerContext } from '@kbn/core/public';
|
||||||
import { PrebootExamplePlugin } from './plugin';
|
import { PrebootExamplePlugin } from './plugin';
|
||||||
|
|
||||||
export const plugin = (initializerContext: PluginInitializerContext) =>
|
export const plugin = (initializerContext: PluginInitializerContext) =>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* 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 React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { App } from './app';
|
import { App } from './app';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { TypeOf } from '@kbn/config-schema';
|
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 { ConfigSchema } from './config';
|
||||||
import { PrebootExamplePlugin } from './plugin';
|
import { PrebootExamplePlugin } from './plugin';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { schema } from '@kbn/config-schema';
|
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 fs from 'fs/promises';
|
||||||
import { errors } from '@elastic/elasticsearch';
|
import { errors } from '@elastic/elasticsearch';
|
||||||
import Boom from '@hapi/boom';
|
import Boom from '@hapi/boom';
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { AppMountParameters } from 'kibana/public';
|
import { AppMountParameters } from '@kbn/core/public';
|
||||||
import {
|
import {
|
||||||
EuiPage,
|
EuiPage,
|
||||||
EuiPageBody,
|
EuiPageBody,
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
EuiCallOut,
|
EuiCallOut,
|
||||||
EuiFormRow,
|
EuiFormRow,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { HttpFetchError } from '../../../src/core/public';
|
import { HttpFetchError } from '@kbn/core/public';
|
||||||
import { isError } from './is_error';
|
import { isError } from './is_error';
|
||||||
import { Services } from './services';
|
import { Services } from './services';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { PluginInitializer } from 'kibana/public';
|
import { PluginInitializer } from '@kbn/core/public';
|
||||||
import { RoutingExamplePlugin } from './plugin';
|
import { RoutingExamplePlugin } from './plugin';
|
||||||
|
|
||||||
export const plugin: PluginInitializer<{}, {}> = () => new RoutingExamplePlugin();
|
export const plugin: PluginInitializer<{}, {}> = () => new RoutingExamplePlugin();
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* 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 {
|
export function isError<T>(error: T | HttpFetchError): error is HttpFetchError {
|
||||||
return error instanceof HttpFetchError;
|
return error instanceof HttpFetchError;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue