Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: davidcelis/block-kit

1.0.7

20 Feb 20:22
v1.0.7
38e74b4

Choose a tag to compare

Dropped usage of Enumerable#rfind to keep Ruby 3.x support

1.0.6

20 Feb 19:54
v1.0.6
c701894

Choose a tag to compare

Dropped reliance on the now-deprecated ActiveSupport::Configurable module.

1.0.5

02 Jun 16:07
v1.0.5
959b62f

Choose a tag to compare

  • rich_text_list blocks now initialize with elements as an empty array instead of nil (#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.new can now accept either a hash of attributes or an array of blocks.

New Contributors

1.0.4

11 May 20:04
v1.0.4
c4d3e6a

Choose a tag to compare

  • 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

1.0.3

24 Apr 16:37
v1.0.3
f35d86f

Choose a tag to compare

  • Fixes a bug where number_input with is_decimal_allowed set to false would render their min_value, max_value, and initial_value fields as integers instead of strings, failing Slack's schema requirements.

1.0.2

21 Apr 23:08
v1.0.2
432f314

Choose a tag to compare

  • 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

17 Apr 16:42
v1.0.1
da4fc45

Choose a tag to compare

Added a missing lib/block-kit.rb file to allow bundler to auto-require the gem.

1.0.0

17 Apr 15:57
v1.0.0
c835ea7

Choose a tag to compare

Initial release of block-kit.