@girs/handy-1 4.5.0 → 4.7.0

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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/handy-1)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/handy-1)
6
6
 
7
- GJS TypeScript type definitions for Handy-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.5.0.
7
+ GJS TypeScript type definitions for Handy-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.7.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
@@ -48,6 +48,7 @@ export const OWN_PROPS = {
48
48
  export const OWN_SIGNALS = {
49
49
  HdyActionRow: ['activated'],
50
50
  HdyCarousel: ['page-changed'],
51
+ HdySwipeable: ['child-switched'],
51
52
  HdyTabBar: ['extra-drag-data-received'],
52
53
  HdyTabView: ['close-page', 'create-window', 'indicator-activated', 'page-attached', 'page-detached', 'page-reordered', 'setup-menu'],
53
54
  };
@@ -286,6 +287,7 @@ export const SINCE = {
286
287
  'HdyStatusPage.icon-name': '1.2',
287
288
  'HdyStatusPage.title': '1.2',
288
289
  'HdySwipeable': '1.0',
290
+ 'HdySwipeable::child-switched': '1.0',
289
291
  'HdyTabBar': '1.2',
290
292
  'HdyTabBar.autohide': '1.2',
291
293
  'HdyTabBar.end-action-widget': '1.2',
package/handy-1.d.ts CHANGED
@@ -818,7 +818,7 @@ export namespace Handy {
818
818
 
819
819
  namespace ApplicationWindow {
820
820
  // Signal signatures
821
- interface SignalSignatures extends Gtk.ApplicationWindow.SignalSignatures {
821
+ interface SignalSignatures extends Gtk.ApplicationWindow.SignalSignatures, Gio.ActionGroup.SignalSignatures {
822
822
  "notify::show-menubar": (pspec: GObject.ParamSpec) => void;
823
823
  "notify::accept-focus": (pspec: GObject.ParamSpec) => void;
824
824
  "notify::application": (pspec: GObject.ParamSpec) => void;
@@ -1882,7 +1882,7 @@ export namespace Handy {
1882
1882
 
1883
1883
  namespace Carousel {
1884
1884
  // Signal signatures
1885
- interface SignalSignatures extends Gtk.EventBox.SignalSignatures {
1885
+ interface SignalSignatures extends Gtk.EventBox.SignalSignatures, Swipeable.SignalSignatures {
1886
1886
  /**
1887
1887
  * This signal is emitted after a page has been changed.
1888
1888
  *
@@ -3350,7 +3350,7 @@ export namespace Handy {
3350
3350
 
3351
3351
  namespace Deck {
3352
3352
  // Signal signatures
3353
- interface SignalSignatures extends Gtk.Container.SignalSignatures {
3353
+ interface SignalSignatures extends Gtk.Container.SignalSignatures, Swipeable.SignalSignatures {
3354
3354
  "notify::can-swipe-back": (pspec: GObject.ParamSpec) => void;
3355
3355
  "notify::can-swipe-forward": (pspec: GObject.ParamSpec) => void;
3356
3356
  "notify::hhomogeneous": (pspec: GObject.ParamSpec) => void;
@@ -4441,7 +4441,7 @@ export namespace Handy {
4441
4441
 
4442
4442
  namespace Flap {
4443
4443
  // Signal signatures
4444
- interface SignalSignatures extends Gtk.Container.SignalSignatures {
4444
+ interface SignalSignatures extends Gtk.Container.SignalSignatures, Swipeable.SignalSignatures {
4445
4445
  "notify::content": (pspec: GObject.ParamSpec) => void;
4446
4446
  "notify::flap": (pspec: GObject.ParamSpec) => void;
4447
4447
  "notify::flap-position": (pspec: GObject.ParamSpec) => void;
@@ -6610,7 +6610,7 @@ export namespace Handy {
6610
6610
 
6611
6611
  namespace Leaflet {
6612
6612
  // Signal signatures
6613
- interface SignalSignatures extends Gtk.Container.SignalSignatures {
6613
+ interface SignalSignatures extends Gtk.Container.SignalSignatures, Swipeable.SignalSignatures {
6614
6614
  "notify::can-swipe-back": (pspec: GObject.ParamSpec) => void;
6615
6615
  "notify::can-swipe-forward": (pspec: GObject.ParamSpec) => void;
6616
6616
  "notify::child-transition-duration": (pspec: GObject.ParamSpec) => void;
@@ -13092,6 +13092,20 @@ export namespace Handy {
13092
13092
  type WindowHandleClass = typeof WindowHandle;
13093
13093
 
13094
13094
  namespace Swipeable {
13095
+ // Signal signatures
13096
+ interface SignalSignatures {
13097
+ /**
13098
+ * Emitted when the widget's visible child is changed.
13099
+ *
13100
+ * `duration` can be 0 if the child is switched without animation.
13101
+ *
13102
+ * This is used by {@link SwipeGroup}, applications should not connect to it.
13103
+ * @signal
13104
+ * @since 1.0
13105
+ * @run-first
13106
+ */
13107
+ "child-switched": (index: number, duration: number) => void;
13108
+ }
13095
13109
  /**
13096
13110
  * Interface for implementing Swipeable.
13097
13111
  * Contains only the virtual methods that need to be implemented.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/handy-1",
3
- "version": "4.5.0",
3
+ "version": "4.7.0",
4
4
  "description": "GJS TypeScript type definitions for Handy-1",
5
5
  "type": "module",
6
6
  "module": "handy-1.js",
@@ -36,20 +36,20 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.5.0",
40
- "@girs/gtk-3.0": "^4.5.0",
41
- "@girs/xlib-2.0": "^4.5.0",
42
- "@girs/gdk-3.0": "^4.5.0",
43
- "@girs/cairo-1.0": "^4.5.0",
44
- "@girs/gobject-2.0": "^4.5.0",
45
- "@girs/glib-2.0": "^4.5.0",
46
- "@girs/pango-1.0": "^4.5.0",
47
- "@girs/harfbuzz-0.0": "^4.5.0",
48
- "@girs/freetype2-2.0": "^4.5.0",
49
- "@girs/gio-2.0": "^4.5.0",
50
- "@girs/gmodule-2.0": "^4.5.0",
51
- "@girs/gdkpixbuf-2.0": "^4.5.0",
52
- "@girs/atk-1.0": "^4.5.0" },
39
+ "@girs/gjs": "^4.7.0",
40
+ "@girs/gtk-3.0": "^4.7.0",
41
+ "@girs/xlib-2.0": "^4.7.0",
42
+ "@girs/gdk-3.0": "^4.7.0",
43
+ "@girs/cairo-1.0": "^4.7.0",
44
+ "@girs/gobject-2.0": "^4.7.0",
45
+ "@girs/glib-2.0": "^4.7.0",
46
+ "@girs/pango-1.0": "^4.7.0",
47
+ "@girs/harfbuzz-0.0": "^4.7.0",
48
+ "@girs/freetype2-2.0": "^4.7.0",
49
+ "@girs/gio-2.0": "^4.7.0",
50
+ "@girs/gmodule-2.0": "^4.7.0",
51
+ "@girs/gdkpixbuf-2.0": "^4.7.0",
52
+ "@girs/atk-1.0": "^4.7.0" },
53
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },