Releases: raycharius/slack-block-builder
Releases · raycharius/slack-block-builder
Version 2.8.0
✨ Add FileInput element and other minor changes
- ✨ The
FileInputelement is now supported (thanks, @michaelbudgell) - ✨ Added
isExpandableparameter to theAccordioncomponent to pass in a function that dictates whether or not to display/hide the expand button (thanks, @tanguyantoine) - ✨ Add
altTextas a prop forVideoblock (thanks, @soominchun) - ✨ Add
multilineas a prop forTextInputelement (thanks, @carlovsk) - 🐛 Fix typing issues (thanks, @tanguyantoine)
- 🐛 Fix issue with
sourcenot being added to theFileblock
Version 2.7.2
🐛 Fix issue with DateTimePicker import
DateTimePickeris now available as a top-level import
Version 2.7.1
🐛 Fix issues with newly added elements and type constraints
DateTimePickerBuilder,NumberInputBuilder,EmailInputBuilder,URLInputBuilderare now assignable toInput.element()DateTimePickerBuilderis now assignable toActions.elements()
Version 2.7.0
✨ Support new block elements introduced by Slack and minor bug fixes
- Add
DateTimePicker()to support the all-new date time picker element introduced by Slack. - Add
NumberInput(),URLInput(),EmailInput()to support the new input types introduced by Slack. - Fix bug where props passed into the constructor were assigned instead of copied (thanks, @nlwillia!).
Version 2.6.0
✨ Add Video() to support video blocks and minor feature and bug fixes
- Add
Video()to the library to support the latest block supported by the Slack API. - Add
buildBlock()andbuildBlocks()utility functions to build and return Slack API-ready objects for separate blocks. - Fix bug where using conditionals within the build functions for
AccordionandPaginatorlead to TypeScript errors.
Version 2.5.0
✨ Add accessibilityLabel() method and introduce OptionCollection and OptionGroupCollection
- Add
accessibilityLabel()method to theButtonBuilderobject. - Add two utility functions,
OptionCollectionandOptionGroupCollectionfor using Block Builder to create responses to payloads from select menus with external data sources.
Version 2.4.2
🐛 Fix critical issue with filter and dispatch configs
- In 2.4.0, there was a critical bug introduced that created issues with the filter and dispatch configs for Block Kit Elements
Version 2.4.0
✨ Add focusOnLoad() methods to elements and introduce inline conditional helper functions
- Add
focusOnLoad()method to supported elements to support thefocus_on_loadfeature of Block Kit. - Add
setIfTruthy(),omitIfTruthy(),setIfFalsy(),omitIfFalsy()functions to make it easy to use inline conditionals. More information can be found in the README and on the doc site. - A lot of reworking for the internal file structure.
Version 2.3.1
🐛 Fix issue with exclude_bot_users and exclude_external_shared_channels
- When calling the
excludeBotUsersandexcludeExternalSharedChannels, the resulting DTO had both afilterargument as well asexclude_bot_usersandexclude_external_shared_channels, resulting in an invalid payload. This has been resolved.
Version 2.3.0
✨ Add buttonId to object passed to actionId function for Paginator and EasyPaginator
- Add a
buttonIdparameter to ensure that the resultingaction_idfor each button in the paginator navigation is always unique.