Skip to content

1.0.4

Latest
Compare
Choose a tag to compare
@davidcelis davidcelis released this 11 May 20:04
· 3 commits to main since this release
v1.0.4
c4d3e6a
  • Fixes a bug where blocks with plain_text attributes would not properly initialize with provided arguments via the DSL
  • Adds many new attribute aliases (e.g. confirmation_dialog instead of confirm) 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
end