Releases: raycharius/slack-block-builder
Releases · raycharius/slack-block-builder
TimePicker, TypeScript Definitions, Dispatch Actions
✨ Add TimePicker Element and TypeScript Definitions
- Add
TimePicker
input element. - Support
dispatch_action
parameter for input block (dispatchAction
method inInput
object). - Support
dispatch_action_config
for plain-text input (dispatchActionOnCharacterEntered
anddispatchActionOnEnterPressed
methods onTextInput
object). - Add TypeScript definitions.
Support Markdown in Text Parameter for Confirmation Dialog
🐛 Fix Bug with Text Parameter Not Supporting Markdown in Confirmation Dialog
- Parameter
text
in theConfirmationDialog
object now supports markdown.
Add Support for Header Block
✨ Add Support for Header Block
- Block Builder now supports the new
Header
block, released by Slack on 7/30/20.
Filter Falsy Values from Appending Methods
✨ Filter Falsy Values from Appending Methods
- Now all falsy values passed into appending methods are filtered before validation, not just
undefined
, making it easier to work with conditions.
Add Support for Message Attachments
✨ Add Support for Message Attachments
- Add support for message attachments using the
Message.attachments()
method, passing in objects created through theBits.Attachment()
method. - Add
Message.getAttachments()
method (works the same as the existingSurface.getBlocks()
method).
Support Markdown For Description Property of Option Object
✨ Support Markdown For Description Property of Option Object
- Now the
description
property of theOption
Bit
object supports markdown when used in aCheckboxes
orRadioButtons
Element
object.
Fix Bug with Slack-Formatted Timestamps
🐛 Fix Bug with Slack-Formatted Timestamps
- Fix issue where Slack timestamp format not permitted for
ts
andthreadTs
parameters of theMessage
surface object.
Support ts Property for Message Surface
✨ Support ts
Property for Message Surfaces
- Calling
ts()
on theMessage
surface object now sets thets
parameter in the payload, which helps when updating messages.
Improve Build Methods for Surfaces
⚡ Build Methods for Surface
Objects – Improved
- Methods that build a
Surface
object can now be called multiple times. Calling a building method after the initial build does not mutate the object in any way – it just returns the built result. These methods includebuildToJSON
,buildToObject
,getBlocks()
,printPreviewUrl()
. - Add links to Slack channels for discussing Block Builder to the README.
Version 1.0.0 Released!
🎉 Version 1.0.0 Released!
- Add
getBlocks()
method to all availableSurface
objects. - Publish and add docs site at https://blockbuilder.dev.