Skip to content

Releases: slack-php/slack-php-block-kit

v2.3.0

28 Dec 15:01
902dc66
Compare
Choose a tag to compare

What's Changed

  • feat: add .gitattributes to exclude unnecessary files from Composer dist package by @maartenpaauw in #67
  • Add rich text block, elements and parts by @maartenpaauw in #66

Full Changelog: 2.2.0...2.3.0

v2.2.0

17 Dec 19:31
ff33581
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.1.2...2.2.0

v2.1.2

07 Dec 20:37
d489778
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.1.1...2.1.2

v2.1.1

04 Dec 09:57
57024db
Compare
Choose a tag to compare

What's Changed

  • Fix wrong property name for MultiUserSelectMenu initial value by @attepulkkinen in #59

New Contributors

Full Changelog: 2.1.0...2.1.1

v2.1.0

19 Dec 19:10
8fc2cc6
Compare
Choose a tag to compare
  • Adds NumberInput element.
  • Fixes a handful of reported issues.

Thank you contributors.

v2.0.0

19 Feb 01:41
Compare
Choose a tag to compare

Welcome to Version 2!

V2 is written for PHP 8.1+, and uses all the latest and greatest PHP features (enums, named parameters, attributes, etc.).

The library itself has gone through quite a few changes:

  • Many classes/namespaces have been renamed (Elements -> Components, Inputs -> Elements, Partials -> Parts, etc.). Most of these changes are to align better with Slack documentation.
  • Named parameters have become the primary interface now, but the fluent interface is still there too (and more reliable than before, IMO).
  • Lots of fixes across the different components (found a lot of little bugs here and there), and improvements to validations.
  • Validation is no longer implicit. You have to call ->validate() explicitly now. This means you can choose to validate or not.
  • The Kit class is now a facade for all the components, not just surfaces.
  • The Formatter class is now named Md.
  • Existing component objects are easier to read/update. This makes them more useful in the context of APIs and app code where block kit JSON is received and needs to be altered (very common for modals and app homes).

The README is updated with new examples and diagrams that will help you get a feel for everything.

v2.0.0 Alpha 2

08 Feb 18:00
Compare
Choose a tag to compare
v2.0.0 Alpha 2 Pre-release
Pre-release
  • Rename ActionsCollection to ActionCollection for consistency
  • Separate unique ID validation from ValidCollection into UniqueIds validation attribute
  • Add support for new accessibility_label field on Elements\Button

v2.0.0 Alpha 1

07 Feb 16:00
Compare
Choose a tag to compare
v2.0.0 Alpha 1 Pre-release
Pre-release

Welcome to Version 2!

V2 is written for PHP 8.1+, and uses all the latest and greatest PHP features (enums, named parameters, attributes, etc.).

The library itself has gone through quite a few changes:

  • Many classes/namespaces have been renamed (Elements -> Components, Inputs -> Elements, Partials -> Parts, etc.). Most of these changes are to align better with Slack documentation.
  • Named parameters have become the primary interface now, but the fluent interface is still there too (and more reliable than before, IMO).
  • Lots of fixes across the different components (found a lot of little bugs here and there), and improvements to validations.
  • Validation is no longer implicit. You have to call ->validate() explicitly now. This means you can choose to validate or not.
  • The Kit class is now a facade for all the components, not just surfaces.
  • Existing component objects are easier to read/update. This makes them more useful in the context of APIs and app code where block kit JSON is received and needs to be altered (very common for modals and app homes).

The README is updated with new examples and diagrams that will help you get a feel for everything.

v1.0.0

07 Feb 15:49
4044b9b
Compare
Choose a tag to compare

It's about time I cut a v1 release, so here it is! It's not perfect, but it's complete.

This release includes recent contributions for internationalization, unique ID checks, and test updates as well (Thank you!).

Going forward, any patches for v1 should use the v1 branch.

The main branch (formerly master) has diverged now to v2 work.

v0.19.0

18 Jun 20:25
Compare
Choose a tag to compare
  • Adds tapIf() to all Elements. Works the same as tap(), but allows you to specify a condition to decide if the tap is needed.
  • Adds blocks() methods to all Surfaces for adding arrays/iterables of blocks easily.
  • Adds support for callbackId, externalId, and privateMetadata to AppHome surfaces. This was previously missing.
    • This was done by creating a base View surface class that both Modal and AppHome extend.
  • Adds the encodePrivateMetadata(array $data) method to Modal and AppHome, which provides an easy way to set encoded private metadata from an array.
  • Adds support for the newInput() method to all surfaces, instead of just Modals.
  • Updates all VirtualBlocks to implement IteratorAggregate for emitting it's BlockElements.