- 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