2.0.0
✨ Feature:
-
Use the in the Neos UI build in cache for current changes and send old prop value:
lastTransientValues = selectors.UI.Inspector.transientValues(state);
now one can easily not only get the new prop value but also the previous value - helpfully for classlist.remove and add. -
neos.guestFrame.findElementByNode(node)
the globalwindow.neos
object is extended by this package and exposes underguestFrame
this function, which makes it possible to get the dom element by node object.
💥 Breaking:
This one is really breaking since we work on putting the functionality into core and so the api was improved.
Since this version could potentially land in the core the naming of the events was also changed so once this is in the core one doesnt need a big migration.
-
Use the consumer api: neos/neos-ui#2945 - that leads to only being Neos ^7.2.0 compatible
-
Rename and split up events: 'Neos.NodeCommit' 'Neos.NodeDiscard'
The naming matches existing events: https://docs.neos.io/cms/manual/extending-the-user-interface/interacting-with-the-neos-backend -
Send on discard only the props who were resetted.
-
Send event only when value truly changed.
-
Event
event.detail
changed. see https://github.com/mhsdesign/MhsDesign.LiveInspectorJsEvents/blob/1761d848a9716a9eb81310a6c17ebeb2139775e8/README.md -
Event
event.message
has an actual message.