@gjsify/event-bridge 0.4.29 → 0.4.31
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Gtk from 'gi://Gtk?version=4.0';
|
|
2
|
+
import { Event as OurEvent } from '@gjsify/dom-events';
|
|
2
3
|
/**
|
|
3
4
|
* Attach GTK event controllers to a widget and dispatch standard DOM events
|
|
4
5
|
* on the HTMLElement returned by `getElement()`.
|
|
@@ -23,5 +24,5 @@ export interface EventControllerOptions {
|
|
|
23
24
|
captureKeys?: boolean;
|
|
24
25
|
}
|
|
25
26
|
export declare function attachEventControllers(widget: Gtk.Widget, getElement: () => {
|
|
26
|
-
dispatchEvent(event:
|
|
27
|
+
dispatchEvent(event: OurEvent): boolean;
|
|
27
28
|
} | null, options?: EventControllerOptions): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/event-bridge",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.31",
|
|
4
4
|
"description": "Bridge GTK event controllers to standard DOM events (MouseEvent, KeyboardEvent, etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@girs/gjs": "4.0.1",
|
|
38
38
|
"@girs/glib-2.0": "2.88.0-4.0.1",
|
|
39
39
|
"@girs/gtk-4.0": "4.23.0-4.0.1",
|
|
40
|
-
"@gjsify/dom-events": "^0.4.
|
|
40
|
+
"@gjsify/dom-events": "^0.4.31"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@gjsify/cli": "^0.4.
|
|
44
|
-
"@gjsify/unit": "^0.4.
|
|
43
|
+
"@gjsify/cli": "^0.4.31",
|
|
44
|
+
"@gjsify/unit": "^0.4.31",
|
|
45
45
|
"@types/node": "^25.9.1",
|
|
46
46
|
"typescript": "^6.0.3"
|
|
47
47
|
}
|