T
TyphonJSTyphonJS (Michael)

TRL `0.1.2` - Fine Tuning release

Greets @FVTT ▹ Developer! I have just released a fine tuning release that brings a few more features, but really shores up a few things that slipped by initial testing of the beta release. I got in several small enhancements suggested by the dev community. There is one possible breaking change, but it is minor and I will discuss it after the release notes below. Do keep the conversation going and let me know about things that you encounter. The API docs are updated: https://typhonjs-fvtt-lib.github.io/api-docs/index.html - Fixed min window height / width for app shells (global vs script space variable access) - Fixed SvelteApplication render gating / force: false will short circuit properly when app not already rendered. - EmptyApplicationShell component can now be made resizable via setting the resizable app option. - Added closeOnInput prop to TJSGlassPane which fires close:glasspane event on pointer down event. - Added modalOptions.closeOnInput to TJSDialog data / close modal dialog on glasspane input. - Upgraded TJSDialogData adding reactive accessors for all standard data. New replace function instead of accessor setting of all data. - Update types for transition / modal options for TJSDialog. - Fixed application shell transition prop handling - defaultCloseAnimation option not taking when set to false w/ no transition defined. - separately defined in / out transitions works correctly. - DynReducerHelper.filters.regexObjectQuery - Can now take "accessor" strings to lookup nested properties. Simply provide a string separated by . for each depth. - An additional option is available accessWarn when set to true will log warnings when property lookups fail. Breaking Change: The potential breaking change is how dialog data is set in TJSDialog. There is a new replace method on the data field rather than directly setting an object to data. This change was due to that Typescript / creating declarations and API docs didn't like the types to differ for the getter and setter accessors. This likely doesn't actually cause any problems for folks as you'd have to explicitly set the data property in a custom dialog constructor. Instead of this.data = { ... } change things to this.data.replace({ ... }); New reactive data accessors: The TJSDialogData instance now has reactive accessors for all standard dialog data. For instance you can do this.data.content = 'New Content'; or this.data.content = { class: MySvelteComponent }; and the dialog will reactively update. Check out the API docs: https://typhonjs-fvtt-lib.github.io/api-docs/classes/_runtime_svelte_application.TJSDialog.html https://typhonjs-fvtt-lib.github.io/api-docs/interfaces/_runtime_svelte_application.TJSDialogData.html