From 7c6bfa33849045b4a0259456465fca1ef6deee9f Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 17 Dec 2018 16:07:55 -0700 Subject: [PATCH 1/2] Re-export some service TS defs --- src/services/color/index.ts | 1 + src/services/index.d.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/services/color/index.ts b/src/services/color/index.ts index c31c6b8da19..1eb5bb1cf41 100644 --- a/src/services/color/index.ts +++ b/src/services/color/index.ts @@ -5,3 +5,4 @@ export { calculateContrast, calculateLuminance } from './luminance_and_contrast' export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR } from './visualization_colors'; export { colorPalette } from './color_palette'; export { palettes } from './eui_palettes'; +export { rgbDef } from './color_types'; diff --git a/src/services/index.d.ts b/src/services/index.d.ts index ef1c504f570..f016a527aa4 100644 --- a/src/services/index.d.ts +++ b/src/services/index.d.ts @@ -1 +1,16 @@ /// + +declare module '@elastic/eui' { + // @ts-ignore + export * from '@elastic/eui/src/services/alignment'; + // @ts-ignore + export * from '@elastic/eui/src/services/copy_to_clipboard'; + // @ts-ignore + export * from '@elastic/eui/src/services/key_codes'; + // @ts-ignore + export * from '@elastic/eui/src/services/objects'; + // @ts-ignore + export * from '@elastic/eui/src/services/random'; + // @ts-ignore + export * from '@elastic/eui/src/services/utils'; +} From f7387611cd5b501c4c39d87e819ced0d101edf23 Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 17 Dec 2018 16:11:25 -0700 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f8671059a3..dfd889b47c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ **Bug fixes** - Only style anchor tags in `EuiText` that have no class attribute ([#1373](https://github.com/elastic/eui/pull/1373)) +- Fixed some EUI services' TS definitions ([#1380](https://github.com/elastic/eui/pull/1380)) **Breaking changes** @@ -14,6 +15,8 @@ ## [`5.8.0`](https://github.com/elastic/eui/tree/v5.8.0) +**Note: this release broke some of the exported TypeScript definitions.** + - Reinstate ([#1353](https://github.com/elastic/eui/pull/1353)) `onBlur` action on `EuiComboBox` ([#1364](https://github.com/elastic/eui/pull/1364)) - Convert roughly half of the services to TypeScript ([#1360](https://github.com/elastic/eui/pull/1360))