TypeScript Types, JavaScript Bubbling & Many LiveComponent Improvements
Hi UX people!
This release is a big mixture of a lot of nice changes. The most notable are that (A) TypeScript types are now included in the packages, (B) all Stimulus events (e.g. chartjs:connect) now "bubble" so that you can attach listeners around the controllers (this was already the case for some packages, but not all) and (C) MANY continued improvements and fixes for LiveComponents.
Diff: v2.6.1...v2.7.0
UX Autocomplete
-
Add
assets/srcto.gitattributesto exclude them from the installation -
Fix minCharacters option default value handling when using a falsy value like 0.
-
Fix TypeScript types
-
Add a new
routeparameter toAsEntityAutocompleteField, which allows to choose another route for Ajax calls. -
Fix minCharacters option default value handling when using a falsy value like 0.
-
Fix TypeScript types
-
Add a way to detect if a field is an "autocomplete" field in form themes - #608
UX Chartjs
-
The
chartjs:connectJavaScript event now bubbles up. -
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
UX Cropperjs
-
The JavaScript events now bubble up.
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
Dropzone
-
The JavaScript events now bubble up.
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
LazyImage
-
The JavaScript events now bubble up.
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
LiveComponent
-
[BC BREAK]: The "key" used to load the controller in your
assets/controllers.json
file changed fromtypedtolive. Update yourassets/controllers.json
file to change this key. -
Add a strategy for adding a Stimulus controller to a Twig component - #589.
-
Added a new
getCompontent()function in JavaScript as the best way to find
a Component object for a given element. -
Fixed various bugs related to child component handling - #596
-
Added a new
routeparameter toAsLiveComponent, which allows to choose
another route for Ajax calls. -
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
-
Added new
response:errorJavaScript component hook for custom handling Ajax errors - #587.
Notify
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
React
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
Swup
-
The JavaScript events now bubble up.
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
Turbo
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
TwigComponent
PreMountandPostMounthooks can now return nothing.
Typed
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
Vue
-
Add
assets/srcto.gitattributesto exclude source TypeScript files from
installing. -
TypeScript types are now included.
Cheers!