Lightweight Node.js library for building Slack Block Kit UIs, with a declarative syntax inspired by SwiftUI.
MIT License
Published by raycharius about 4 years ago
β¨ Add TimePicker Element and TypeScript Definitions
TimePicker
input element.dispatch_action
parameter for input block (dispatchAction
method in Input
object).dispatch_action_config
for plain-text input (dispatchActionOnCharacterEntered
and dispatchActionOnEnterPressed
methods on TextInput
object).Published by raycharius about 4 years ago
π Fix Bug with Text Parameter Not Supporting Markdown in Confirmation Dialog
text
in the ConfirmationDialog
object now supports markdown.Published by raycharius about 4 years ago
β¨ Add Support for Header Block
Header
block, released by Slack on 7/30/20.Published by raycharius over 4 years ago
β¨ Filter Falsy Values from Appending Methods
undefined
, making it easier to work with conditions.Published by raycharius over 4 years ago
β¨ Add Support for Message Attachments
Message.attachments()
method, passing in objects created through the Bits.Attachment()
method.Message.getAttachments()
method (works the same as the existing Surface.getBlocks()
method).Published by raycharius over 4 years ago
β¨ Support Markdown For Description Property of Option Object
description
property of the Option
Bit
object supports markdown when used in a Checkboxes
or RadioButtons
Element
object.Published by raycharius over 4 years ago
π Fix Bug with Slack-Formatted Timestamps
ts
and threadTs
parameters of the Message
surface object.Published by raycharius over 4 years ago
β¨ Support ts
Property for Message Surfaces
ts()
on the Message
surface object now sets the ts
parameter in the payload, which helps when updating messages.Published by raycharius over 4 years ago
β‘ Build Methods for Surface
Objects βΒ Improved
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 include buildToJSON
, buildToObject
, getBlocks()
, printPreviewUrl()
.Published by raycharius over 4 years ago
π Version 1.0.0 Released!
getBlocks()
method to all available Surface
objects.Published by raycharius over 4 years ago
π‘ Minor Fixes for Doc Site Generation
Published by raycharius over 4 years ago
π Beautify README
Published by raycharius over 4 years ago
β¨ Add a new method to the Message
surface.
inChannel
method to Message
object that sets the property response_type
to be in_channel
, which allows the message to be viewed by everyone present in the Slack channel.Published by raycharius over 4 years ago
π A few small bug fixes.
fields()
method of a Section
object would be mutated into plain-text objects instead of markdown text objects.elements()
method of a Context
object would be mutated into plain-text objects instead of markdown text objects.TextInput
object (intiialValue => initialValue).Published by raycharius over 4 years ago
π Initial Release!
Currently in Beta and being integrated into existing production projects and tested before the release of production-ready v1.0.0.
Enjoy!