Skip to content

Commit

Permalink
Re-export some service TS defs (#1380)
Browse files Browse the repository at this point in the history
* Re-export some service TS defs

* changelog
  • Loading branch information
chandlerprall authored Dec 17, 2018
1 parent 5d60ead commit effba95
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
**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**

- Moved `EuiExpressionButton` contents to `EuiExpression` and deleted `EuiExpressionButton`. Also added support for `color` and `uppercase` props as well as made `onClick` optional to support read only expressions. ([#1368](https://github.com/elastic/eui/pull/1368))

## [`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))

Expand Down
1 change: 1 addition & 0 deletions src/services/color/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
15 changes: 15 additions & 0 deletions src/services/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
/// <reference path="./popover/index.d.ts" />

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

0 comments on commit effba95

Please sign in to comment.