@girs/gtkfrdp-0.2 4.3.0 → 4.4.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
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtkfrdp-0.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GtkFrdp-0.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
8
+ GJS TypeScript type definitions for GtkFrdp-0.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
9
9
 
10
10
  ## Install
11
11
 
@@ -88,6 +88,23 @@ export interface Widgets {
88
88
  /** Every GType this namespace can create. A consumer derives its own tag map. */
89
89
  export type WidgetGType = keyof Widgets;
90
90
 
91
+ // ---------------------------------------------------------------------------
92
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
93
+ //
94
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
95
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
96
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
97
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
98
+ // more rows in `Widgets`: concatenate them when you mean both.
99
+ // ---------------------------------------------------------------------------
100
+
101
+ export interface ChildHolders {
102
+
103
+ }
104
+
105
+ /** Every GType this namespace holds a child in without it being a widget. */
106
+ export type ChildHolderGType = keyof ChildHolders;
107
+
91
108
  /** The writable, optional, GObject-keyed property surface of one GType. */
92
109
  export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
93
110
 
@@ -123,6 +140,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
123
140
  /** Widget GType -> every declaration its members come from, self first. */
124
141
  export const DECLS: Readonly<Record<string, readonly string[]>>;
125
142
 
143
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
144
+ export const CHILD_HOLDERS: readonly string[];
145
+
126
146
  /** Enum GType -> the nicks this surface offers. */
127
147
  export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
128
148
 
@@ -20,6 +20,12 @@ export const DECLS = {
20
20
  FrdpDisplay: ['FrdpDisplay', 'GtkDrawingArea', 'GtkWidget', 'GtkBuildable'],
21
21
  };
22
22
 
23
+ // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
24
+ // and descend from `GObject.Object`. A renderer places them like a container; a check
25
+ // asking "is this a widget" must not count them. Derived from the accessor pair, never
26
+ // from a list — the count is in the provenance line above.
27
+ export const CHILD_HOLDERS = [];
28
+
23
29
  export const ENUM_NICKS = {};
24
30
 
25
31
  export const SLOT_CANDIDATES = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtkfrdp-0.2",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "GJS TypeScript type definitions for GtkFrdp-0.2",
5
5
  "type": "module",
6
6
  "module": "gtkfrdp-0.2.js",
@@ -36,20 +36,20 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.3.0",
40
- "@girs/gtk-3.0": "^4.3.0",
41
- "@girs/xlib-2.0": "^4.3.0",
42
- "@girs/gdk-3.0": "^4.3.0",
43
- "@girs/cairo-1.0": "^4.3.0",
44
- "@girs/gobject-2.0": "^4.3.0",
45
- "@girs/glib-2.0": "^4.3.0",
46
- "@girs/pango-1.0": "^4.3.0",
47
- "@girs/harfbuzz-0.0": "^4.3.0",
48
- "@girs/freetype2-2.0": "^4.3.0",
49
- "@girs/gio-2.0": "^4.3.0",
50
- "@girs/gmodule-2.0": "^4.3.0",
51
- "@girs/gdkpixbuf-2.0": "^4.3.0",
52
- "@girs/atk-1.0": "^4.3.0" },
39
+ "@girs/gjs": "^4.4.0",
40
+ "@girs/gtk-3.0": "^4.4.0",
41
+ "@girs/xlib-2.0": "^4.4.0",
42
+ "@girs/gdk-3.0": "^4.4.0",
43
+ "@girs/cairo-1.0": "^4.4.0",
44
+ "@girs/gobject-2.0": "^4.4.0",
45
+ "@girs/glib-2.0": "^4.4.0",
46
+ "@girs/pango-1.0": "^4.4.0",
47
+ "@girs/harfbuzz-0.0": "^4.4.0",
48
+ "@girs/freetype2-2.0": "^4.4.0",
49
+ "@girs/gio-2.0": "^4.4.0",
50
+ "@girs/gmodule-2.0": "^4.4.0",
51
+ "@girs/gdkpixbuf-2.0": "^4.4.0",
52
+ "@girs/atk-1.0": "^4.4.0" },
53
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },