From 08101597bbd0249d318626f3f17333331f96a03d Mon Sep 17 00:00:00 2001 From: Clint Andrew Hall Date: Thu, 10 Mar 2022 21:15:30 -0600 Subject: [PATCH] Tweak BAZEL and service --- packages/kbn-shared-ux-components/BUILD.bazel | 4 ++++ .../kbn-shared-ux-services/src/services/editors.ts | 10 ++++++---- packages/kbn-shared-ux-storybook/src/storybook/main.ts | 6 ++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/kbn-shared-ux-components/BUILD.bazel b/packages/kbn-shared-ux-components/BUILD.bazel index 4efbeefc1d7cc..5d404d17524c5 100644 --- a/packages/kbn-shared-ux-components/BUILD.bazel +++ b/packages/kbn-shared-ux-components/BUILD.bazel @@ -87,6 +87,10 @@ jsts_transpiler( srcs = SRCS, build_pkg_name = package_name(), web = True, + additional_args = [ + "--copy-files", + "--quiet" + ], ) ts_config( diff --git a/packages/kbn-shared-ux-services/src/services/editors.ts b/packages/kbn-shared-ux-services/src/services/editors.ts index b4a472d7699aa..969a7fc996270 100644 --- a/packages/kbn-shared-ux-services/src/services/editors.ts +++ b/packages/kbn-shared-ux-services/src/services/editors.ts @@ -6,10 +6,12 @@ * Side Public License, v 1. */ -export interface DataViewEditorOptions { - onSave: (dataView: TDataView) => void; +type DataView = unknown; + +export interface DataViewEditorOptions { + onSave: (dataView: DataView) => void; } -export interface SharedUXEditorsService { - openDataViewEditor: (options: DataViewEditorOptions) => () => void; +export interface SharedUXEditorsService { + openDataViewEditor: (options: DataViewEditorOptions) => () => void; } diff --git a/packages/kbn-shared-ux-storybook/src/storybook/main.ts b/packages/kbn-shared-ux-storybook/src/storybook/main.ts index 3b931b81eb0df..1981ff546c353 100644 --- a/packages/kbn-shared-ux-storybook/src/storybook/main.ts +++ b/packages/kbn-shared-ux-storybook/src/storybook/main.ts @@ -11,9 +11,7 @@ import { defaultConfig } from '@kbn/storybook'; module.exports = { ...defaultConfig, stories: [ - '../../../kbn-sharedux*/**/*.stories.tsx', - '../../../kbn-sharedux*/**/*.stories.mdx', - '../../../../src/plugins/shared_ux/**/*.stories.tsx', - '../../../../src/plugins/shared_ux/**/*.stories.mdx', + '../../../kbn-shared-ux*/**/*.stories.+(tsx|mdx)', + '../../../../src/plugins/shared_ux/**/*.stories.+(tsx|mdx)', ], };