flinker-dom 1.1.17 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,6 +162,18 @@ export class UIComponent {
162
162
  this.dom.addEventListener('mousedown', callback);
163
163
  return this;
164
164
  }
165
+ onMouseOver(callback) {
166
+ this.dom.addEventListener('mouseover', callback);
167
+ return this;
168
+ }
169
+ onMouseOut(callback) {
170
+ this.dom.addEventListener('mouseout', callback);
171
+ return this;
172
+ }
173
+ onMouseLeave(callback) {
174
+ this.dom.addEventListener('mouseleave', callback);
175
+ return this;
176
+ }
165
177
  onKeyUp(callback) {
166
178
  this.dom.addEventListener('keyup', callback);
167
179
  return this;
@@ -34,6 +34,9 @@ export declare class UIComponent<P extends UIComponentProps> {
34
34
  onClick(callback: (event: MouseEvent) => void): this;
35
35
  onDoubleClick(callback: (event: MouseEvent) => void): this;
36
36
  onMouseDown(callback: (event: MouseEvent) => void): this;
37
+ onMouseOver(callback: (event: MouseEvent) => void): this;
38
+ onMouseOut(callback: (event: MouseEvent) => void): this;
39
+ onMouseLeave(callback: (event: MouseEvent) => void): this;
37
40
  onKeyUp(callback: (event: KeyboardEvent) => void): this;
38
41
  onKeyDown(callback: (event: KeyboardEvent) => void): this;
39
42
  onBlur(callback: (event: FocusEvent) => void): this;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flinker-dom",
3
3
  "description": "Free TypeScript library for writing frontend apps",
4
- "version": "1.1.17",
4
+ "version": "1.1.18",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Dittner/FlinkerDOM.git"