Releases: raycharius/slack-block-builder
Releases · raycharius/slack-block-builder
Version 2.2.0
✨ Add common UI components to the library
- Add the
Paginator
andEasyPaginator
components for paginated content. - Add the
Accordion
component for expandable content.
Note that there's more information available in the README, on the docs site, and in the demo app repository.
Version 2.1.2
🐛 Fix Issue with type compatibility with Slack Node SDK's
- Fix the return type for
Surface.buildToObject()
for better TypeScript compatibility with Slack's ownWebClient
from their Node SDK (thanks, @M1kep!).
Version 2.1.1
🐛 Fix Issue with printPreviewUrl()
method
- Fix
getPreviewUrl()
forHomeTab
,Modal
,WorkflowStep
(thanks, @zcei!).
Version 2.1.0
✨ New Methods and TS Bug Fix
- Add
getPreviewUrl()
method to surfaces (thanks, @zaini!). - Add
emoji()
method toMd
(thanks @trevor-gullstad!). - Fix TypeScript not allowing
undefined
as an argument whenstrict: true
(thanks @tsnieman!).
Release Version 2
✨ Block Builder Version 2 is now here!
- Better TypeScript experience.
- Configuration methods now accept arguments.
- New
BlockCollection
andAttachmentCollection
features. - New
Md
object with Slack markdown helpers. - All objects now importable through their 'categories' as well as top-level.
- Improved JSDoc annotations.
To read more about this release and possible breaking changes, see the announcement.
Add Support for Workflow Steps
✨ Block Builder now supports workflow step modals with the WorkflowStep
object
- Add
WorkflowStep
object. - Fix types for
Bits.ConfirmationDialog
.
Add Option to Ignore Markdown on Message Object
✨ Add ignoreMarkdown()
Method to Message
- Add
ignoreMarkdown
toMessage
object. - Fix types for
Context.elements()
args. - Fix tests for
onCharacterEntered
andonEnterPressed
.
Add Fallback to Attachment
✨ Add fallback()
Method to Bits.Attachment
- Add
fallback
toAttachment
object.
Refactor and Update TypeScript Definitions
⚡ Refactor and Update TypeScript Definitions
- Refactor
Message
andSurface
objects, so that theprintPreviewUrl
method is on all surfaces. - Updated
types.d.ts
to reflect this change.
Update TypeScript Definitions
⚡ Update TypeScript Definitions
- Update TypeScript definitions to include
TimePicker
and other methods added in version 1.7.0.