- Update
shadow-dom-selector
to its latest version
- Make the event threshold a property that can be sent by the clients instead a constant. With this change the event threshold has been changed from
50
to450
.
- Do not allow any event to be dispatched more than once in a short timestamp
- Breaking change: refactored the event names and created a new event (an event that will be triggered if any panel is loaded not only a lovelace panel)
- Breaking change: Removed "lovelace" string from all the events because these events can be triggered on any dashboard if the
listen
method is called. The new even names are:- ON_PANEL_LOAD (
onPanelLoad
) - ON_MORE_INFO_DIALOG_OPEN (
onMoreInfoDialogOpen
) - ON_HISTORY_AND_LOGBOOK_DIALOG_OPEN (
onHistoryAndLogBookDialogOpen
) - ON_SETTINGS_DIALOG_OPEN (
onSettingsDialogOpen
)
- ON_PANEL_LOAD (
- Fix a bug: if one of the elements in a tree is null, return null instead of trying to perform a query on a null element which will throw an error
- Publish the package using npm provenance
- Update the
shadow-dom-selector
package to the latest version
- Update the
shadow-dom-selector
package to the latest version to make it possible to use the newdeepQuery
method
- Remove private class properties
- Export all the
CustomEvents
details object to be able to use them for type checking in the clients
- Update
shadow-dom-selector
and use the new dot notation syntax
- Change
querySelector
,querySelectorAll
andshadowRootQuerySelector
by the shadow-dom-selector async dot notation.
- Do not bundle
shadow-dom-selector
inside the final bundle ofhome-assistant-query-selector
- Trigger the
onLovelacePanelLoad
event also when closing the raw configuration editor - Improve the types when using the
detail
property of theCustomEvent
-
Fix typos in events prefixes
onLovelaveMoreInfoDialogOpen
=>onLovelaceMoreInfoDialogOpen
onLovelaveHistoryAndLogBookDialogOpen
=>onLovelaceHistoryAndLogBookDialogOpen
onLovelaveSettingsDialogOpen
=>onLovelaceSettingsDialogOpen
-
Add suport for three more events:
onLovelaveMoreInfoDialogOpen
This event is triggered when a more-info dialog is open or when one returns to the main view of the more-info dialog from theHistory
orSettings
view inside the dialog.onLovelaveHistoryAndLogBookDialogOpen
This event is triggered when theHistory
view is opened from the header actions of a more-info dialog.onLovelaveSettingsDialogOpen
This event is triggered when theSettings
view is opened from the header actions of a more-info dialog.
- Release of
home-assistant-query-selector