Releases: raycharius/slack-block-builder
Releases · raycharius/slack-block-builder
Version 2.8.0
✨ Add FileInput
element and other minor changes
- ✨ The
FileInput
element is now supported (thanks, @michaelbudgell) - ✨ Added
isExpandable
parameter to theAccordion
component to pass in a function that dictates whether or not to display/hide the expand button (thanks, @tanguyantoine) - ✨ Add
altText
as a prop forVideo
block (thanks, @soominchun) - ✨ Add
multiline
as a prop forTextInput
element (thanks, @carlovsk) - 🐛 Fix typing issues (thanks, @tanguyantoine)
- 🐛 Fix issue with
source
not being added to theFile
block
Version 2.7.2
🐛 Fix issue with DateTimePicker
import
DateTimePicker
is now available as a top-level import
Version 2.7.1
🐛 Fix issues with newly added elements and type constraints
DateTimePickerBuilder
,NumberInputBuilder
,EmailInputBuilder
,URLInputBuilder
are now assignable toInput.element()
DateTimePickerBuilder
is 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
Accordion
andPaginator
lead to TypeScript errors.
Version 2.5.0
✨ Add accessibilityLabel()
method and introduce OptionCollection
and OptionGroupCollection
- Add
accessibilityLabel()
method to theButtonBuilder
object. - Add two utility functions,
OptionCollection
andOptionGroupCollection
for 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_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
🐛 Fix issue with exclude_bot_users
and exclude_external_shared_channels
- When calling the
excludeBotUsers
andexcludeExternalSharedChannels
, the resulting DTO had both afilter
argument as well asexclude_bot_users
andexclude_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
buttonId
parameter to ensure that the resultingaction_id
for each button in the paginator navigation is always unique.