slack-block-builder

Lightweight Node.js library for building Slack Block Kit UIs, with a declarative syntax inspired by SwiftUI.

MIT License

Downloads
338.7K
Stars
524
Committers
15
slack-block-builder - TimePicker, TypeScript Definitions, Dispatch Actions

Published by raycharius about 4 years ago

✨ Add TimePicker Element and TypeScript Definitions

  • Add TimePicker input element.
  • Support dispatch_action parameter for input block (dispatchAction method in Input object).
  • Support dispatch_action_config for plain-text input (dispatchActionOnCharacterEntered and dispatchActionOnEnterPressed methods on TextInput object).
  • Add TypeScript definitions.
slack-block-builder - Support Markdown in Text Parameter for Confirmation Dialog

Published by raycharius about 4 years ago

πŸ› Fix Bug with Text Parameter Not Supporting Markdown in Confirmation Dialog

  • Parameter text in the ConfirmationDialog object now supports markdown.
slack-block-builder - Add Support for Header Block

Published by raycharius about 4 years ago

✨ Add Support for Header Block

  • Block Builder now supports the new Header block, released by Slack on 7/30/20.
slack-block-builder - Filter Falsy Values from Appending Methods

Published by raycharius over 4 years ago

✨ 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.
slack-block-builder - Add Support for Message Attachments

Published by raycharius over 4 years ago

✨ Add Support for Message Attachments

  • Add support for message attachments using the Message.attachments() method, passing in objects created through the Bits.Attachment() method.
  • Add Message.getAttachments() method (works the same as the existing Surface.getBlocks() method).
slack-block-builder - Support Markdown For Description Property of Option Object

Published by raycharius over 4 years ago

✨ Support Markdown For Description Property of Option Object

  • Now the description property of the Option Bit object supports markdown when used in a Checkboxes or RadioButtons Element object.
slack-block-builder - Fix Bug with Slack-Formatted Timestamps

Published by raycharius over 4 years ago

πŸ› Fix Bug with Slack-Formatted Timestamps

  • Fix issue where Slack timestamp format not permitted for ts and threadTs parameters of the Message surface object.
slack-block-builder - Support ts Property for Message Surface

Published by raycharius over 4 years ago

✨ Support ts Property for Message Surfaces

  • Calling ts() on the Message surface object now sets the ts parameter in the payload, which helps when updating messages.
slack-block-builder - Improve Build Methods for Surfaces

Published by raycharius over 4 years ago

⚑ 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 include buildToJSON, buildToObject, getBlocks(), printPreviewUrl().
  • Add links to Slack channels for discussing Block Builder to the README.
slack-block-builder - Version 1.0.0 Released!

Published by raycharius over 4 years ago

πŸŽ‰ Version 1.0.0 Released!

slack-block-builder - Minor Fixes for Doc Site Generation

Published by raycharius over 4 years ago

πŸ’‘ Minor Fixes for Doc Site Generation

  • Fix minor typo in class name that was creating issue with doc generation.
  • Add JSDoc comments with links to Slack API for a few classes.
slack-block-builder - Beautify README

Published by raycharius over 4 years ago

πŸ“š Beautify README

  • Add project logo (kudos to Alexey Chernyshov).
  • Beautify README.md file.
  • Update README images to reflect new project branding.
slack-block-builder - Add inChannel() Method to Message Object

Published by raycharius over 4 years ago

✨ Add a new method to the Message surface.

  • Add 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.
slack-block-builder - Fix Minor Bugs

Published by raycharius over 4 years ago

πŸ› A few small bug fixes.

  • Fix issue where strings passed to the fields() method of a Section object would be mutated into plain-text objects instead of markdown text objects.
  • Fix issue where strings passed to the elements() method of a Context object would be mutated into plain-text objects instead of markdown text objects.
  • Fix type in JSDoc for TextInput object (intiialValue => initialValue).
slack-block-builder - Beta Release

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!