Skip to content

Commit

Permalink
Tweak BAZEL and service
Browse files Browse the repository at this point in the history
  • Loading branch information
clintandrewhall committed Mar 11, 2022
1 parent 5b9777e commit 0810159
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions packages/kbn-shared-ux-components/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ jsts_transpiler(
srcs = SRCS,
build_pkg_name = package_name(),
web = True,
additional_args = [
"--copy-files",
"--quiet"
],
)

ts_config(
Expand Down
10 changes: 6 additions & 4 deletions packages/kbn-shared-ux-services/src/services/editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
* Side Public License, v 1.
*/

export interface DataViewEditorOptions<TDataView extends unknown = unknown> {
onSave: (dataView: TDataView) => void;
type DataView = unknown;

export interface DataViewEditorOptions {
onSave: (dataView: DataView) => void;
}

export interface SharedUXEditorsService<TDataView extends unknown = unknown> {
openDataViewEditor: (options: DataViewEditorOptions<TDataView>) => () => void;
export interface SharedUXEditorsService {
openDataViewEditor: (options: DataViewEditorOptions) => () => void;
}
6 changes: 2 additions & 4 deletions packages/kbn-shared-ux-storybook/src/storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
],
};

0 comments on commit 0810159

Please sign in to comment.