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)) 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'; +}