Skip to content

Releases: symfony/ux

2.21.0 : Turbo + TwigComponents = ❤️

22 Oct 23:54
v2.21.0
Compare
Choose a tag to compare

Hey UX-er's!

In addition to many minor bug fixes and improvements across all packages, this release adds new
<twig:Turbo:Stream:*> Twig components to Turbo. Also in Turbo, a newTurboStreamResponse and
TurboStream helpers we added.

Map

  • Explicitly require StimulusBundle in Bridges, fix tests by @Kocal in #2207
  • Update index.rst by @ebedy in #2229

Translator

  • Many performance improvements on the cache warming by @Kocal in #2206

Twig Components

Toggle Password

React

  • Update some dependencies to fix some issues from Dependabot by @Kocal in #2219
  • Add permanent option to react_component function by @smnandre in #2283
  • Update phpunit.xml.dist by @smnandre in #2286

Swup

  • For Swup's dev dependencies exclusion from our yarn.lock by @Kocal in #2221

StimulusBundle

  • Normalize Stimulus controller name in event name by @7-zete-7 in #2159

Autocomplete

Icons

Turbo

Dropzone

  • Enable file replacement via "drag-and-drop" by @rrr63 in #2154

Live Components

Miscellaneous

New Contributors

Full Changelog: v2.20.0...v2.21.0

2.20.0 : Performance and Optimization!

24 Sep 19:01
v2.20.0
Compare
Choose a tag to compare

Hey UX-ers!

This release is packed full of bug fixes and new features. You can now add Polygons in Map and configure icon sets and aliases in Icons. There are also some great performance optimizations, especially in Twig/Live components and StimulusBundle.

Map

Twig Components

Live Components

Autocomplete

  • Reset form state on each request for applications that reuse the Symfony application between requests by @dotdevio in #2094
  • Translate "Add ..." text by @jmsche in #2108

Icons

Dropzone

  • Change physical link to the default style file by @chadyred in #2188

Translator

  • Option to throw an exception instead of returning the message as is when the message is not found. by @Crovitche-1623 in #2185

StimulusBundle

  • Improve StimulusAttributes rendering performances by switching to html escaping strategy by @Kocal in #2180

Miscellaneous

New Contributors

Full Changelog: v2.19.3...v2.20.0

2.19.3 : Translator fix

16 Aug 18:49
v2.19.3
2ded754
Compare
Choose a tag to compare

Map

Translator

  • Revert #1965, which break cache warmup for Symfony applications by @Kocal in #2060

New Contributors

Full Changelog: v2.19.2...v2.19.3

2.19.2 : Enable Anon. Twig Components in Bundles

13 Aug 17:20
v2.19.2
dec76be
Compare
Choose a tag to compare

Another follow up to 2.19.0 that fixes UX Map plus enables a convention for providing anonymous Twig Components in 3rd-party bundles!

Map

  • Re-add keyword "symfony-ux", to fix Symfony Flex package.json resolving by @Kocal in #2052
  • [Leaflet] Fix marker icon gradients rendering, which can fails on some projects by @Kocal in #2055

Twig Components

  • Adding convention to load Anonymous components from bundles by @yceruto in #2019

Live Components

  • Update naming of stimulus controller on default attributes - index.rst by @DennisdeBest in #2046

Autocomplete

New Contributors

Full Changelog: v2.19.1...v2.19.2

2.19.1 : UX Map Improvements

12 Aug 20:53
v2.19.1
9e6920d
Compare
Choose a tag to compare

Just a small follow up to 2.19.0 that adds some missing UX Map features!

Map

  • Add the possibility to not configure map zoom/center if fit bounds to markers by @Kocal in #2045
  • Add support for libraries for Google Bridge, inject provider's SDK (L or google) to dispatched events by @Kocal in #2044

Full Changelog: v2.19.0...v2.19.1

2.19.0 : New UX Map Package

12 Aug 20:04
v2.19.0
Compare
Choose a tag to compare

Hey UX-ers!

This is a big new release with a lot of bug fixes, quality of live improvements, and a
new UX Map package. A new live_action() Twig function was added to dramatically reduce
the boilerplate for Live Component actions.

Translator

Turbo

Twig Components

Live Components

Dropzone

  • Remove event listeners on disconnect by @aleho in #1951

Icons

React

Lazy Image

Map

  • Create Map component by @Kocal in #1937
  • Rename "symfony/ux-map-%s" to "symfony/ux-%s-map" by @Kocal in #2031
  • Fix custom attribute "data-controller" usage by @Kocal in #2032
  • [Leaflet] Fix Marker inside-circle by @Kocal in #2036
  • [Leaflet] Fix Popup's automatic-content by @Kocal in #2035
  • Change "BeforeConnect" for "BeforeCreate" in documentation by @Kocal in #2039
  • Add "extra" data for markers and infowindows by @Kocal in #2040
  • Fix some comments in component defer part by @Nek- in #2043

Miscellaneous

New Contributors

Full Changelog: v2.18.1...v2.19.0

2.18.1 : Hotfix

12 Jun 13:54
v2.18.1
3b65275
Compare
Choose a tag to compare

👋🏻 This is a small release that fixes some issues we had in 2.18.0.

Twig Components

  • Revert throwing exception when public property is unitialized by @smnandre in #1911
  • Revert removing twig_component.controllers_json by @smnandre in #1908

Live Components

  • Accept live component Content-Type with suffix by @WebMamba in #1903

Stimulus

Translator

Full Changelog: v2.18.0...v2.18.1

2.18.0 : Mostly Maintenance

07 Jun 23:35
v2.18.0
933808a
Compare
Choose a tag to compare

Hey UX'ers!

This is mostly a maintenance release with a lot of small fixes and improvements across all components.
The most notable changes are the addition of Slovak translations for the Autocomplete component the
abstraction of image content fetching in the Lazy Image component.

Lazy Image

Autocomplete

Turbo

Live Components

Twig Components

Icons

Translator

Stimulus

Chart.js

ux.symfony.com

New Contributors

Full Changelog: v2.17.0...v2.18.0

2.17.0 : New UX Icons Package

23 Apr 14:16
v2.17.0
80b36bc
Compare
Choose a tag to compare

Hey UX-ers!

This is a big release - lots of new features to Twig/Live Components and the first release of UX Icons! With UX Icons, comes a beautiful icon search on ux.symfony.com!

Live Components

Twig Components

Icons

Chart.js

Autocomplete

  • Command make:autocomplete-field output a doc compliant class by @lucbu in #1699
  • Use choice_value in the WrappedEntityTypeAutocompleter in EntityAutocompleteField by @jakubtobiasz in #1723

Turbo

Lazy Image

New Contributors

Full Changelog: v2.16.0...v2.17.0

2.16.0 : Live Components is Stable 🥳

29 Feb 16:53
v2.16.0
Compare
Choose a tag to compare

Hi UX'ers!

This release is the first that declares Live Components as stable 🎆! This means that it is now protected by our backwards compatibility promise. However, there are some BC breaks in LiveComponents that will affect most projects. See https://github.com/symfony/ux/blob/2.x/src/LiveComponent/CHANGELOG.md#2160

In addition, this release has a number of fun features & fixes.

Live Components

  • LiveComponents is now stable and no longer experimental 🥳

  • [BC BREAK] The data-action-name attribute behavior was removed in favor of using Stimulus "action parameters" and data-live-action-param. This is a breaking change if you were using the data-action-name attribute directly in your templates. #1418

    To upgrade your application, follow these changes:

    <button
        data-action="live#action"
    -    data-action-name="debounce(300)|save"
    +    data-live-action-param="debounce(300)|save"
    >Save</button>

    To pass arguments to an action, also use the Stimulus "action parameters" syntax:

    <button
        data-action="live#action"
    -     data-action-name="addItem(id={{ item.id }}, itemName=CustomItem)"
    +     data-live-action-param="addItem"
    +     data-live-id-param="{{ item.id }}"
    +     data-live-item-name-param="CustomItem"
    >Add Item</button>

    Additionally, the prevent modifier (e.g. prevent|save) was removed. Replace this with the standard Stimulus :prevent action option:

    <button
    -    data-action="live#action
    +    data-action="live#action:prevent"
    -    data-action-name="prevent|save"
    +    data-live-action-param="save"
     >Save</button>
  • [BC BREAK] The data-event attribute was removed in favor of using Stimulus "action parameters": rename data-event to data-live-event-param. Additionally, if you were passing arguments to the event name, use action parameter attributes for those as well - e.g. data-live-foo-param="bar". #1418

  • Reverted setting ignoreActiveValue: true in Idiomorph #1548

  • New placeholder macro to generate defer/lazy skeleton #1532

  • improve TestLiveComponent::actingAs() #1461

  • Drop Twig 2 support #1436

  • Add better error message when hydrating dates #1431

  • Store TemplateMap in build_dir #1525

Twig Component

  • Introduce CVA to style TwigComponent #1416
  • Drop Twig 2 support #1436
  • Fix full context is stored in profiler #1552

Autocomplete

Translator

  • Increase version range of intl-messageformat to ^10.5.11, in order to see a faster implementation of ICU messages parsing. #1443

New Contributors

Full Changelog: v2.15.0...v2.16.0

Have fun!