Skip to content

Releases: raycharius/slack-block-builder

Version 2.8.0

22 Dec 21:10
fac1baf
Compare
Choose a tag to compare

✨ Add FileInput element and other minor changes

  • ✨ The FileInput element is now supported (thanks, @michaelbudgell)
  • ✨ Added isExpandable parameter to the Accordion component to pass in a function that dictates whether or not to display/hide the expand button (thanks, @tanguyantoine)
  • ✨ Add altText as a prop for Video block (thanks, @soominchun)
  • ✨ Add multiline as a prop for TextInput element (thanks, @carlovsk)
  • 🐛 Fix typing issues (thanks, @tanguyantoine)
  • 🐛 Fix issue with source not being added to the File block

Version 2.7.2

09 Dec 18:20
Compare
Choose a tag to compare

🐛 Fix issue with DateTimePicker import

  • DateTimePicker is now available as a top-level import

Version 2.7.1

11 Nov 13:25
3bc6ecb
Compare
Choose a tag to compare

🐛 Fix issues with newly added elements and type constraints

  • DateTimePickerBuilder, NumberInputBuilder, EmailInputBuilder, URLInputBuilder are now assignable to Input.element()
  • DateTimePickerBuilder is now assignable to Actions.elements()

Version 2.7.0

06 Nov 16:21
68af561
Compare
Choose a tag to compare

✨ 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

17 Jul 13:50
2ea818e
Compare
Choose a tag to compare

✨ 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() and buildBlocks() utility functions to build and return Slack API-ready objects for separate blocks.
  • Fix bug where using conditionals within the build functions for Accordion and Paginator lead to TypeScript errors.

Version 2.5.0

05 Feb 08:35
d732ba1
Compare
Choose a tag to compare

✨ Add accessibilityLabel() method and introduce OptionCollection and OptionGroupCollection

  • Add accessibilityLabel() method to the ButtonBuilder object.
  • Add two utility functions, OptionCollection and OptionGroupCollection for using Block Builder to create responses to payloads from select menus with external data sources.

Version 2.4.2

01 Dec 12:08
Compare
Choose a tag to compare

🐛 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

30 Nov 22:01
9272278
Compare
Choose a tag to compare

✨ Add focusOnLoad() methods to elements and introduce inline conditional helper functions

  • Add focusOnLoad() method to supported elements to support the focus_on_load feature 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

13 Nov 12:57
Compare
Choose a tag to compare

🐛 Fix issue with exclude_bot_users and exclude_external_shared_channels

  • When calling the excludeBotUsers and excludeExternalSharedChannels, the resulting DTO had both a filter argument as well as exclude_bot_users and exclude_external_shared_channels, resulting in an invalid payload. This has been resolved.

Version 2.3.0

02 Nov 20:24
Compare
Choose a tag to compare

✨ Add buttonId to object passed to actionId function for Paginator and EasyPaginator

  • Add a buttonId parameter to ensure that the resulting action_id for each button in the paginator navigation is always unique.