@girs/gcrgtk4-4 5.2.0 → 5.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
@@ -4,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/gcrgtk4-4)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcrgtk4-4)
6
6
 
7
- GJS TypeScript type definitions for GcrGtk4-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.2.0.
7
+ GJS TypeScript type definitions for GcrGtk4-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.4.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for GcrGtk4-4.
3
3
  *
4
- * GENERATED — do not edit. Provenance: GcrGtk4-4 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object
4
+ * GENERATED — do not edit. Provenance: GcrGtk4-4
5
5
  *
6
6
  * 1 instantiable GTypes (of which 1 concrete widgets), 1 declarations, 0 enum nick unions, 0 slot candidates.
7
7
  *
@@ -26,6 +26,7 @@
26
26
 
27
27
  import type Gcr from '@girs/gcr-4';
28
28
  import type GcrGtk4 from './gcrgtk4-4.js';
29
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
29
30
  import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-4.0/vocabulary';
30
31
 
31
32
  // ---------------------------------------------------------------------------
@@ -145,6 +146,30 @@ export const PROVENANCE: {
145
146
  * GIRs disagreeing, which is what the main emitter answers `never` for as well.
146
147
  */
147
148
  readonly unresolvedProps: readonly string[];
149
+ /**
150
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
151
+ *
152
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
153
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
154
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
155
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
156
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
157
+ *
158
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
159
+ * inventing the namespace name there is a confident wrong answer in place of a missing
160
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
161
+ */
162
+ readonly identifierPrefixes: readonly string[];
163
+ /**
164
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
165
+ *
166
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
167
+ * settable property, `GApplication` has its properties in another package — and this
168
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
169
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
170
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
171
+ */
172
+ readonly requiredVocabularies: readonly string[];
148
173
  };
149
174
 
150
175
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -254,6 +279,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
254
279
  */
255
280
  export const PROP_ENUMS: Readonly<Record<string, string>>;
256
281
 
282
+ /**
283
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
284
+ *
285
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
286
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
287
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
288
+ * reads this one; a host resolving a nick to a number reads that one.
289
+ *
290
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
291
+ * like any other, so absence is readable as "unknown".
292
+ */
293
+ export const PROP_TYPES: Readonly<Record<string, string>>;
294
+
257
295
  /**
258
296
  * The kinds of value a GTK accessible property, relation or state takes.
259
297
  *
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of GcrGtk4-4 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: GcrGtk4-4 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object
3
+ // GENERATED — do not edit. Provenance: GcrGtk4-4
4
4
  //
5
5
  // The type half of this subpath is the sibling `.d.ts`. This file exists because
6
6
  // types are erased: a consumer that wants to ask the installed library whether every
@@ -11,10 +11,12 @@ export const PROVENANCE = {
11
11
  version: '4',
12
12
  libraryVersion: null,
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object'],
14
+ droppedBases: [],
15
15
  inlinedBases: [],
16
16
  unsettableProps: [],
17
17
  unresolvedProps: [],
18
+ identifierPrefixes: ['Gcr'],
19
+ requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-4.0/vocabulary'],
18
20
  };
19
21
 
20
22
  export const OWN_PROPS = {
@@ -31,7 +33,7 @@ export const OWN_SIGNALS = {};
31
33
  // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
32
34
  // below for the narrower questions; they did not move.
33
35
  export const DECLS = {
34
- GcrCertificateWidget: ['GcrCertificateWidget', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
36
+ GcrCertificateWidget: ['GcrCertificateWidget', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
35
37
  };
36
38
 
37
39
  // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
@@ -117,6 +119,20 @@ export const FLAG_VALUES_UNREADABLE = {};
117
119
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
118
120
  export const PROP_ENUMS = {};
119
121
 
122
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
123
+ //
124
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
125
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
126
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
127
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
128
+ //
129
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
130
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
131
+ // child. Absence therefore reads as "unknown" and never as "scalar".
132
+ export const PROP_TYPES = {
133
+ 'GcrCertificateWidget.certificate': 'GcrCertificate',
134
+ };
135
+
120
136
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
121
137
  //
122
138
  // The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gcrgtk4-4",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for GcrGtk4-4",
5
5
  "type": "module",
6
6
  "module": "gcrgtk4-4.js",
@@ -36,23 +36,23 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.2.0",
40
- "@girs/gtk-4.0": "^5.2.0",
41
- "@girs/gsk-4.0": "^5.2.0",
42
- "@girs/graphene-1.0": "^5.2.0",
43
- "@girs/gobject-2.0": "^5.2.0",
44
- "@girs/glib-2.0": "^5.2.0",
45
- "@girs/gdk-4.0": "^5.2.0",
46
- "@girs/cairo-1.0": "^5.2.0",
47
- "@girs/pangocairo-1.0": "^5.2.0",
48
- "@girs/pango-1.0": "^5.2.0",
49
- "@girs/harfbuzz-0.0": "^5.2.0",
50
- "@girs/freetype2-2.0": "^5.2.0",
51
- "@girs/gio-2.0": "^5.2.0",
52
- "@girs/gmodule-2.0": "^5.2.0",
53
- "@girs/gdkpixbuf-2.0": "^5.2.0",
54
- "@girs/gcr-4": "^5.2.0",
55
- "@girs/gck-2": "^5.2.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/gtk-4.0": "^5.4.0",
41
+ "@girs/gsk-4.0": "^5.4.0",
42
+ "@girs/graphene-1.0": "^5.4.0",
43
+ "@girs/gobject-2.0": "^5.4.0",
44
+ "@girs/glib-2.0": "^5.4.0",
45
+ "@girs/gdk-4.0": "^5.4.0",
46
+ "@girs/cairo-1.0": "^5.4.0",
47
+ "@girs/pangocairo-1.0": "^5.4.0",
48
+ "@girs/pango-1.0": "^5.4.0",
49
+ "@girs/harfbuzz-0.0": "^5.4.0",
50
+ "@girs/freetype2-2.0": "^5.4.0",
51
+ "@girs/gio-2.0": "^5.4.0",
52
+ "@girs/gmodule-2.0": "^5.4.0",
53
+ "@girs/gdkpixbuf-2.0": "^5.4.0",
54
+ "@girs/gcr-4": "^5.4.0",
55
+ "@girs/gck-2": "^5.4.0" },
56
56
  "devDependencies": {
57
57
  "typescript": "*"
58
58
  },