@girs/gcrui-3 5.1.0 → 5.3.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/gcrui-3)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcrui-3)
6
6
 
7
- GJS TypeScript type definitions for GcrUi-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.1.0.
7
+ GJS TypeScript type definitions for GcrUi-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.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,9 +1,9 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for GcrUi-3.
3
3
  *
4
- * GENERATED — do not edit. Provenance: GcrUi-3 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface — inlined base(s) from a namespace with no vocabulary: Gcr.Prompt — prop(s) no TypeScript value satisfies: GcrUi.TreeSelector.columns
4
+ * GENERATED — do not edit. Provenance: GcrUi-3 — dropped empty base(s): Atk.ImplementorIface — prop(s) no TypeScript value satisfies: GcrUi.CollectionModel.columns GcrUi.TreeSelector.columns
5
5
  *
6
- * 9 concrete widgets, 10 declarations (1 inlined from a namespace with no surface), 0 enum nick unions, 0 slot candidates.
6
+ * 14 instantiable GTypes (of which 9 concrete widgets), 15 declarations, 0 enum nick unions, 0 slot candidates.
7
7
  *
8
8
  * Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
9
9
  * no `on<Signal>` prop name: those are DIALECT, and every framework answers them
@@ -27,7 +27,9 @@
27
27
  import type Gck from '@girs/gck-1';
28
28
  import type Gcr from '@girs/gcr-3';
29
29
  import type GcrUi from './gcrui-3.js';
30
- import type { GtkActionableConstructOnly, GtkActionableProps, GtkActivatableConstructOnly, GtkActivatableProps, GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkButtonConstructOnly, GtkButtonProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTreeViewConstructOnly, GtkTreeViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
30
+ import type { GcrCertificateConstructOnly, GcrCertificateProps, GcrComparableConstructOnly, GcrComparableProps, GcrPromptConstructOnly, GcrPromptProps } from '@girs/gcr-3/vocabulary';
31
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
32
+ import type { GtkActionableConstructOnly, GtkActionableProps, GtkActivatableConstructOnly, GtkActivatableProps, GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkButtonConstructOnly, GtkButtonProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkEntryBufferConstructOnly, GtkEntryBufferProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTreeModelConstructOnly, GtkTreeModelProps, GtkTreeSortableConstructOnly, GtkTreeSortableProps, GtkTreeViewConstructOnly, GtkTreeViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
31
33
 
32
34
  // ---------------------------------------------------------------------------
33
35
  // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
@@ -51,6 +53,18 @@ import type { GtkActionableConstructOnly, GtkActionableProps, GtkActivatableCons
51
53
  // GIR keeps them once, on the interface.
52
54
  // ---------------------------------------------------------------------------
53
55
 
56
+ /** An implementation of #GcrRenderer which renders certificates. */
57
+ export interface GcrCertificateRendererProps extends GObjectProps, GcrCertificateProps, GcrComparableProps, Omit<GcrRendererProps, 'attributes'> {
58
+ /** The certificate attributes to display. */
59
+ attributes?: Gck.Attributes;
60
+ /** The certificate to display. */
61
+ certificate?: Gcr.Certificate;
62
+ /** The label to display. */
63
+ label?: string;
64
+ }
65
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
66
+ export type GcrCertificateRendererConstructOnly = GObjectConstructOnly | GcrCertificateConstructOnly | GcrComparableConstructOnly | GcrRendererConstructOnly;
67
+
54
68
  /** A widget that can be used to display a certificate. */
55
69
  export interface GcrCertificateWidgetProps extends GtkBinProps, GtkBuildableProps {
56
70
  attributes?: Gck.Attributes | null;
@@ -59,6 +73,14 @@ export interface GcrCertificateWidgetProps extends GtkBinProps, GtkBuildableProp
59
73
  /** Settable only at construction — a renderer must REBUILD, not patch. */
60
74
  export type GcrCertificateWidgetConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly;
61
75
 
76
+ /** Ain implementation of a [iface@Gtk.TreeModel] which contains a row for each object in a [iface@Gcr.Collection]. */
77
+ export interface GcrCollectionModelProps extends GObjectProps, GtkTreeModelProps, GtkTreeSortableProps {
78
+ collection?: Gcr.Collection;
79
+ columns?: never;
80
+ }
81
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
82
+ export type GcrCollectionModelConstructOnly = GObjectConstructOnly | GtkTreeModelConstructOnly | GtkTreeSortableConstructOnly | 'columns';
83
+
62
84
  /** A widget that can be used to select a certificate or key. */
63
85
  export interface GcrComboSelectorProps extends GtkComboBoxProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps {
64
86
  /** The collection which contains the objects to display in the selector. */
@@ -67,12 +89,27 @@ export interface GcrComboSelectorProps extends GtkComboBoxProps, GtkBuildablePro
67
89
  /** Settable only at construction — a renderer must REBUILD, not patch. */
68
90
  export type GcrComboSelectorConstructOnly = GtkComboBoxConstructOnly | GtkBuildableConstructOnly | GtkCellEditableConstructOnly | GtkCellLayoutConstructOnly | 'collection';
69
91
 
92
+ /** A renderer that can be used for unsupported data. */
93
+ export interface GcrFailureRendererProps extends GObjectProps, Omit<GcrRendererProps, 'attributes'> {
94
+ attributes?: Gck.Attributes;
95
+ label?: string;
96
+ }
97
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
98
+ export type GcrFailureRendererConstructOnly = GObjectConstructOnly | GcrRendererConstructOnly;
99
+
70
100
  /** A button which imports keys and certificates. */
71
101
  export interface GcrImportButtonProps extends GtkButtonProps, GtkActionableProps, GtkActivatableProps, GtkBuildableProps {
72
102
  }
73
103
  /** Settable only at construction — a renderer must REBUILD, not patch. */
74
104
  export type GcrImportButtonConstructOnly = GtkButtonConstructOnly | GtkActionableConstructOnly | GtkActivatableConstructOnly | GtkBuildableConstructOnly;
75
105
 
106
+ /** An implementation of #GcrRenderer which renders keys. */
107
+ export interface GcrKeyRendererProps extends GObjectProps, GcrRendererProps {
108
+ object?: Gck.Object;
109
+ }
110
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
111
+ export type GcrKeyRendererConstructOnly = GObjectConstructOnly | GcrRendererConstructOnly;
112
+
76
113
  /** A key widget and renderer A key widget can be used to display a RSA, DSA or EC key. */
77
114
  export interface GcrKeyWidgetProps extends GtkBinProps, GtkBuildableProps {
78
115
  attributes?: Gck.Attributes | null;
@@ -88,68 +125,28 @@ export interface GcrListSelectorProps extends GtkTreeViewProps, GtkBuildableProp
88
125
  /** Settable only at construction — a renderer must REBUILD, not patch. */
89
126
  export type GcrListSelectorConstructOnly = GtkTreeViewConstructOnly | GtkBuildableConstructOnly | GtkScrollableConstructOnly | 'collection';
90
127
 
91
- /** A prompt displayed to the user. */
92
- export interface GcrPromptProps {
93
- /**
94
- * The string handle of the caller's window.
95
- * @default NULL
96
- */
97
- 'caller-window'?: string;
98
- /**
99
- * The label for the cancel button in the prompt.
100
- * @default Cancel
101
- */
102
- 'cancel-label'?: string;
103
- /**
104
- * Whether the additional choice is chosen or not.
105
- * @default FALSE
106
- */
107
- 'choice-chosen'?: boolean;
108
- /**
109
- * The label for the additional choice.
110
- * @default NULL
111
- */
112
- 'choice-label'?: string;
113
- /**
114
- * The label for the continue button in the prompt.
115
- * @default Continue
116
- */
117
- 'continue-label'?: string;
118
- /**
119
- * The detailed description of the prompt.
120
- * @default NULL
121
- */
122
- description?: string;
123
- /**
124
- * The prompt message for the user.
125
- * @default NULL
126
- */
127
- message?: string;
128
- /**
129
- * Whether the prompt will prompt for a new password.
130
- * @default FALSE
131
- */
132
- 'password-new'?: boolean;
133
- /**
134
- * The title of the prompt.
135
- * @default NULL
136
- */
137
- title?: string;
138
- /**
139
- * A prompt warning displayed on the prompt, or %NULL for no warning.
140
- * @default NULL
141
- */
142
- warning?: string;
143
- }
144
- /** Settable only at construction — a renderer must REBUILD, not patch. */
145
- export type GcrPromptConstructOnly = never;
146
-
147
128
  /** A [iface@Gcr.Prompt] implementation which shows a GTK dialog. */
148
129
  export interface GcrPromptDialogProps extends GtkDialogProps, Omit<GcrPromptProps, 'title'>, GtkBuildableProps {
149
130
  }
150
131
  /** Settable only at construction — a renderer must REBUILD, not patch. */
151
132
  export type GcrPromptDialogConstructOnly = GtkDialogConstructOnly | GcrPromptConstructOnly | GtkBuildableConstructOnly;
152
133
 
134
+ /** An interface that's implemented by renderers which wish to render data to a [iface@Viewer]. */
135
+ export interface GcrRendererProps extends GObjectProps {
136
+ /** The attributes to display. */
137
+ attributes?: Gck.Attributes | null;
138
+ /** The label to display. */
139
+ label?: string;
140
+ }
141
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
142
+ export type GcrRendererConstructOnly = GObjectConstructOnly;
143
+
144
+ /** A [class@Gtk.EntryBuffer] that uses non-pageable memory. */
145
+ export interface GcrSecureEntryBufferProps extends GtkEntryBufferProps {
146
+ }
147
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
148
+ export type GcrSecureEntryBufferConstructOnly = GtkEntryBufferConstructOnly;
149
+
153
150
  /** A tree selector can be used to select certificates or keys. */
154
151
  export interface GcrTreeSelectorProps extends GtkTreeViewProps, GtkBuildableProps, GtkScrollableProps {
155
152
  /** The collection which contains the objects to display in the selector. */
@@ -262,7 +259,11 @@ export interface Widgets {
262
259
  };
263
260
  }
264
261
 
265
- /** Every GType this namespace can create. A consumer derives its own tag map. */
262
+ /**
263
+ * Every GType this namespace can create AND put on screen. A consumer derives its own
264
+ * tag map. For everything a UI file can instantiate — layout managers, event
265
+ * controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
266
+ */
266
267
  export type WidgetGType = keyof Widgets;
267
268
 
268
269
  // ---------------------------------------------------------------------------
@@ -314,7 +315,38 @@ export const PROVENANCE: {
314
315
  readonly childHolders: number;
315
316
  readonly droppedBases: readonly string[];
316
317
  readonly inlinedBases: readonly string[];
318
+ /** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
317
319
  readonly unsettableProps: readonly string[];
320
+ /**
321
+ * `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
322
+ * could not resolve its type across a namespace boundary — two independently released
323
+ * GIRs disagreeing, which is what the main emitter answers `never` for as well.
324
+ */
325
+ readonly unresolvedProps: readonly string[];
326
+ /**
327
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
328
+ *
329
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
330
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
331
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
332
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
333
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
334
+ *
335
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
336
+ * inventing the namespace name there is a confident wrong answer in place of a missing
337
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
338
+ */
339
+ readonly identifierPrefixes: readonly string[];
340
+ /**
341
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
342
+ *
343
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
344
+ * settable property, `GApplication` has its properties in another package — and this
345
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
346
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
347
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
348
+ */
349
+ readonly requiredVocabularies: readonly string[];
318
350
  };
319
351
 
320
352
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -328,7 +360,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
328
360
  */
329
361
  export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
330
362
 
331
- /** Widget GType -> every declaration its members come from, self first. */
363
+ /**
364
+ * Instantiable GType -> every declaration its members come from, self first.
365
+ *
366
+ * The key set is what a UI description file can NAME: every registered, non-abstract
367
+ * class this namespace declares. GtkBuilder resolves a `<object class="…">` through
368
+ * `g_type_from_name`, which knows nothing about widgets, so this is wider than
369
+ * `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
370
+ * and every `GtkCellRenderer` are here and are not widgets.
371
+ *
372
+ * `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
373
+ */
332
374
  export const DECLS: Readonly<Record<string, readonly string[]>>;
333
375
 
334
376
  /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
@@ -340,8 +382,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
340
382
  /**
341
383
  * `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
342
384
  *
343
- * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 129 enums a
344
- * GTK 4 vocabulary carries -- 104 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
385
+ * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
386
+ * GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
345
387
  * at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
346
388
  * on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
347
389
  *
@@ -379,10 +421,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
379
421
  *
380
422
  * `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
381
423
  * nothing about a single member's number, and the number is what a host without GI needs.
382
- * 21 writable widget properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared
383
- * bare `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`
384
- * among them. Counting is worst here: 95 of 121 Gtk-4.0 bitfield members disagree with their
385
- * position, against 29 of 685 enumeration members.
424
+ * 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
425
+ * `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
426
+ * `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
427
+ * bitfield members this vocabulary carries disagree with their declaration position,
428
+ * against 29 of 672 enumeration members.
386
429
  *
387
430
  * Combine with `|` as GObject does. There is no nick table to pair this with, so a name
388
431
  * here is resolvable and a SET still is not.
@@ -406,7 +449,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
406
449
  *
407
450
  * The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
408
451
  * emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
409
- * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 57 of the 438
452
+ * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
410
453
  * entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
411
454
  * owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
412
455
  * resolves against SOME module.
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of GcrUi-3 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: GcrUi-3 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface — inlined base(s) from a namespace with no vocabulary: Gcr.Prompt — prop(s) no TypeScript value satisfies: GcrUi.TreeSelector.columns
3
+ // GENERATED — do not edit. Provenance: GcrUi-3 — dropped empty base(s): Atk.ImplementorIface — prop(s) no TypeScript value satisfies: GcrUi.CollectionModel.columns GcrUi.TreeSelector.columns
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,17 +11,24 @@ export const PROVENANCE = {
11
11
  version: '3',
12
12
  libraryVersion: null,
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object', 'Atk.ImplementorIface'],
15
- inlinedBases: ['Gcr.Prompt'],
16
- unsettableProps: ['GcrUi.TreeSelector.columns'],
14
+ droppedBases: ['Atk.ImplementorIface'],
15
+ inlinedBases: [],
16
+ unsettableProps: ['GcrUi.CollectionModel.columns', 'GcrUi.TreeSelector.columns'],
17
+ unresolvedProps: [],
18
+ identifierPrefixes: ['Gcr'],
19
+ requiredVocabularies: ['@girs/gcr-3/vocabulary', '@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary'],
17
20
  };
18
21
 
19
22
  export const OWN_PROPS = {
23
+ GcrCertificateRenderer: ['attributes', 'certificate', 'label'],
20
24
  GcrCertificateWidget: ['attributes', 'certificate'],
25
+ GcrCollectionModel: ['collection', 'columns'],
21
26
  GcrComboSelector: ['collection'],
27
+ GcrFailureRenderer: ['attributes', 'label'],
28
+ GcrKeyRenderer: ['object'],
22
29
  GcrKeyWidget: ['attributes'],
23
30
  GcrListSelector: ['collection'],
24
- GcrPrompt: ['caller-window', 'cancel-label', 'choice-chosen', 'choice-label', 'continue-label', 'description', 'message', 'password-new', 'title', 'warning'],
31
+ GcrRenderer: ['attributes', 'label'],
25
32
  GcrTreeSelector: ['collection', 'columns'],
26
33
  GcrUnlockOptionsWidget: ['choice', 'ttl'],
27
34
  GcrViewerWidget: ['display-name'],
@@ -29,26 +36,39 @@ export const OWN_PROPS = {
29
36
 
30
37
  export const OWN_SIGNALS = {
31
38
  GcrImportButton: ['imported', 'importing'],
32
- GcrPrompt: ['prompt-close'],
39
+ GcrRenderer: ['data-changed'],
33
40
  GcrViewerWidget: ['added'],
34
41
  };
35
42
 
43
+ // Every GType this namespace can INSTANTIATE -> the declarations its members come from.
44
+ //
45
+ // The key set is what a UI description file can name: a registered, non-abstract class.
46
+ // Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
47
+ // nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
48
+ // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
49
+ // below for the narrower questions; they did not move.
36
50
  export const DECLS = {
37
- GcrCertificateWidget: ['GcrCertificateWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
38
- GcrComboSelector: ['GcrComboSelector', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
39
- GcrImportButton: ['GcrImportButton', 'GtkButton', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkActionable', 'GtkActivatable', 'GtkBuildable'],
40
- GcrKeyWidget: ['GcrKeyWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
41
- GcrListSelector: ['GcrListSelector', 'GtkTreeView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
42
- GcrPromptDialog: ['GcrPromptDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GcrPrompt', 'GtkBuildable'],
43
- GcrTreeSelector: ['GcrTreeSelector', 'GtkTreeView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
44
- GcrUnlockOptionsWidget: ['GcrUnlockOptionsWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
45
- GcrViewerWidget: ['GcrViewerWidget', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
51
+ GcrCertificateRenderer: ['GcrCertificateRenderer', 'GObject', 'GcrCertificate', 'GcrComparable', 'GcrRenderer'],
52
+ GcrCertificateWidget: ['GcrCertificateWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
53
+ GcrCollectionModel: ['GcrCollectionModel', 'GObject', 'GtkTreeModel', 'GtkTreeSortable'],
54
+ GcrComboSelector: ['GcrComboSelector', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
55
+ GcrFailureRenderer: ['GcrFailureRenderer', 'GObject', 'GcrRenderer'],
56
+ GcrImportButton: ['GcrImportButton', 'GtkButton', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkActionable', 'GtkActivatable', 'GtkBuildable'],
57
+ GcrKeyRenderer: ['GcrKeyRenderer', 'GObject', 'GcrRenderer'],
58
+ GcrKeyWidget: ['GcrKeyWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
59
+ GcrListSelector: ['GcrListSelector', 'GtkTreeView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
60
+ GcrPromptDialog: ['GcrPromptDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GcrPrompt', 'GtkBuildable'],
61
+ GcrSecureEntryBuffer: ['GcrSecureEntryBuffer', 'GtkEntryBuffer', 'GObject'],
62
+ GcrTreeSelector: ['GcrTreeSelector', 'GtkTreeView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
63
+ GcrUnlockOptionsWidget: ['GcrUnlockOptionsWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
64
+ GcrViewerWidget: ['GcrViewerWidget', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
46
65
  };
47
66
 
48
- // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
49
- // and descend from `GObject.Object`. A renderer places them like a container; a check
50
- // asking "is this a widget" must not count them. Derived from the accessor pair, never
51
- // from a list the count is in the provenance line above.
67
+ // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
68
+ // are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
69
+ // `GObject.Object`. A renderer places them like a container; a check asking "is this a
70
+ // widget" must not count them. Derived from the accessor pair, never from a list — the
71
+ // count is in the provenance line above.
52
72
  export const CHILD_HOLDERS = [];
53
73
 
54
74
  export const ENUM_NICKS = {};
@@ -58,7 +78,7 @@ export const ENUM_NICKS = {};
58
78
  // It ships because position in `ENUM_NICKS` is not the value and a consumer with no
59
79
  // typelib has no other way to learn it: a surface without GI still has to hand GObject an
60
80
  // integer. The alternative a consumer reaches for first is counting, and counting is wrong
61
- // on 6 of the 129 enums a GTK 4 vocabulary carries (104 in Gtk-4.0, 25 in Adw-1) --
81
+ // on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
62
82
  // `GtkResponseType` runs -1 down to
63
83
  // -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
64
84
  // 1001001000 where counting answers 0.
@@ -95,11 +115,12 @@ export const ENUM_VALUES_UNREADABLE = {};
95
115
  // The number behind each member of a registered BITFIELD, keyed the same way.
96
116
  //
97
117
  // `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
98
- // reason says nothing about one member's number. 21 writable widget properties in Gtk-4.0
99
- // and Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
100
- // `AdwTabView:shortcuts`, ... -- and they are typed bare `number`, so a host without GI
101
- // has nothing to compute one from. Counting is worst exactly here: 95 of 121 Gtk-4.0
102
- // bitfield members disagree with their position, against 29 of 685 enumeration members.
118
+ // reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
119
+ // Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
120
+ // `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
121
+ // `number`, so a host without GI has nothing to compute one from. Counting is worst
122
+ // exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
123
+ // with their declaration position, against 29 of 672 enumeration members.
103
124
  //
104
125
  // A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
105
126
  // `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
@@ -122,7 +143,7 @@ export const FLAG_VALUES_UNREADABLE = {};
122
143
  // one are both entries a consumer would resolve wrongly, so neither is written.
123
144
  //
124
145
  // A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
125
- // that OWNS an enum publishes it, so 57 of the 438 entries a full run emits want the owner's
146
+ // that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
126
147
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
127
148
  export const PROP_ENUMS = {};
128
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gcrui-3",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "GJS TypeScript type definitions for GcrUi-3",
5
5
  "type": "module",
6
6
  "module": "gcrui-3.js",
@@ -36,22 +36,22 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.1.0",
40
- "@girs/gtk-3.0": "^5.1.0",
41
- "@girs/xlib-2.0": "^5.1.0",
42
- "@girs/gdk-3.0": "^5.1.0",
43
- "@girs/cairo-1.0": "^5.1.0",
44
- "@girs/gobject-2.0": "^5.1.0",
45
- "@girs/glib-2.0": "^5.1.0",
46
- "@girs/pango-1.0": "^5.1.0",
47
- "@girs/harfbuzz-0.0": "^5.1.0",
48
- "@girs/freetype2-2.0": "^5.1.0",
49
- "@girs/gio-2.0": "^5.1.0",
50
- "@girs/gmodule-2.0": "^5.1.0",
51
- "@girs/gdkpixbuf-2.0": "^5.1.0",
52
- "@girs/atk-1.0": "^5.1.0",
53
- "@girs/gcr-3": "^5.1.0",
54
- "@girs/gck-1": "^5.1.0" },
39
+ "@girs/gjs": "^5.3.0",
40
+ "@girs/gtk-3.0": "^5.3.0",
41
+ "@girs/xlib-2.0": "^5.3.0",
42
+ "@girs/gdk-3.0": "^5.3.0",
43
+ "@girs/cairo-1.0": "^5.3.0",
44
+ "@girs/gobject-2.0": "^5.3.0",
45
+ "@girs/glib-2.0": "^5.3.0",
46
+ "@girs/pango-1.0": "^5.3.0",
47
+ "@girs/harfbuzz-0.0": "^5.3.0",
48
+ "@girs/freetype2-2.0": "^5.3.0",
49
+ "@girs/gio-2.0": "^5.3.0",
50
+ "@girs/gmodule-2.0": "^5.3.0",
51
+ "@girs/gdkpixbuf-2.0": "^5.3.0",
52
+ "@girs/atk-1.0": "^5.3.0",
53
+ "@girs/gcr-3": "^5.3.0",
54
+ "@girs/gck-1": "^5.3.0" },
55
55
  "devDependencies": {
56
56
  "typescript": "*"
57
57
  },