Releases: davidcelis/block-kit
Releases · davidcelis/block-kit
1.0.7
1.0.6
Dropped reliance on the now-deprecated ActiveSupport::Configurable module.
1.0.5
rich_text_listblocks now initialize withelementsas an empty array instead ofnil(#1)- The DSLs for creating surfaces can now accept and pass a hash of attributes through to the underlying surface class itself (e.g.
BlockKit.modal(title: "Hello, world!") { ... } BlockKit::Blocks.newcan now accept either a hash of attributes or an array of blocks.
New Contributors
- @wilsonehusin made their first contribution in #1. Thanks, Wilson!
1.0.4
- Fixes a bug where blocks with
plain_textattributes would not properly initialize with provided arguments via the DSL - Adds many new attribute aliases (e.g.
confirmation_dialoginstead ofconfirm) and constant aliases (e.g.Datetimepicker) to allow conforming to Slack's naming or more human-readable names - Adds support for specifying attribute aliases when initializing via the DSL. For example:
BlockKit::Blocks.new do |b|
b.input(label: "Choose a date and time") do |input|
input.datetime_picker(initial_datetime: Time.now) # instead of `initial_date_time:`
end
end1.0.3
- Fixes a bug where
number_inputwithis_decimal_allowedset to false would render theirmin_value,max_value, andinitial_valuefields as integers instead of strings, failing Slack's schema requirements.
1.0.2
- Adds a validation and fixer to ensure that modals have a submit button when it contains input elements
- Fixes an issue with the inheritance of attribute fixers
1.0.1
Added a missing lib/block-kit.rb file to allow bundler to auto-require the gem.
1.0.0
Initial release of block-kit.