@girs/atspi-2.0 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/atspi-2.0)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/atspi-2.0)
6
6
 
7
- GJS TypeScript type definitions for Atspi-2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.2.0.
7
+ GJS TypeScript type definitions for Atspi-2.0 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.
@@ -26,6 +26,7 @@ type packages.
26
26
  | `@girs/atspi-2.0/ambient` | only the `gi://` module declarations |
27
27
  | `@girs/atspi-2.0/import` | only the `imports.gi` declarations |
28
28
  | `@girs/atspi-2.0/atspi-2.0` | the namespace, without the side-effecting declarations |
29
+ | `@girs/atspi-2.0/vocabulary` | GIR-derived widget data: settable properties, enum nicks, slot candidates |
29
30
 
30
31
  ## Three ways to import
31
32
 
@@ -67,6 +68,24 @@ GJS's global object works the same way, via `@girs/atspi-2.0/import`:
67
68
  const Atspi = imports.gi.Atspi;
68
69
  ```
69
70
 
71
+ ## Widget vocabulary
72
+
73
+ `atspi-2.0` declares widgets, so it also carries what the GIR says about them, as
74
+ types and as values a test can read:
75
+
76
+ ```ts
77
+ import type { Widgets, PropsOf } from '@girs/atspi-2.0/vocabulary';
78
+ import { OWN_PROPS, ENUM_NICKS, PROVENANCE } from '@girs/atspi-2.0/vocabulary';
79
+ ```
80
+
81
+ Properties are keyed the way GObject registered them, writable-only and optional, so they
82
+ match `g_object_set`, GtkBuilder XML and Blueprint. `PROVENANCE.libraryVersion` names the
83
+ library release this was generated from, which lets a check tell "newer than what is
84
+ installed" from "wrong".
85
+
86
+ This subpath answers what the GIR says, not what the installed library has. For the
87
+ second question, ask the library.
88
+
70
89
  ## Building
71
90
 
72
91
  The declarations need no build step. If you bundle, every bundler works, since there is
@@ -0,0 +1,497 @@
1
+ /**
2
+ * The GIR-derived widget VOCABULARY for Atspi-2.0.
3
+ *
4
+ * GENERATED — do not edit. Provenance: Atspi-2.0
5
+ *
6
+ * 13 instantiable GTypes (of which 0 concrete widgets), 25 declarations, 18 enum nick unions, 0 slot candidates.
7
+ *
8
+ * Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
9
+ * no `on<Signal>` prop name: those are DIALECT, and every framework answers them
10
+ * differently. The shape to avoid is the GLOBAL AUGMENT — a `declare global` on
11
+ * `React.JSX` collides with every other library on a shared tag — while a
12
+ * module-scoped `JSX` behind a `jsxImportSource` does not. This package is used by
13
+ * projects that want nothing to do with JSX, so it emits neither; a consumer declaring
14
+ * a module-scoped namespace over these names is doing it right.
15
+ *
16
+ * Three things this is and `ConstructorProps` is not: WRITABLE-only (measured on
17
+ * Gtk-4.0, `ConstructorProps` offers 150 read-only properties across 68 classes as
18
+ * settable, and GTK's failure mode for writing one is exit 0), OPTIONAL, and keyed
19
+ * by the name GObject actually REGISTERED — the dashed spelling `g_object_set`,
20
+ * GtkBuilder XML and Blueprint all use.
21
+ *
22
+ * Signal handler types are not re-derived: `X.SignalSignatures`, which this package
23
+ * already emits for every class with the parent chain, every implemented interface
24
+ * and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
25
+ */
26
+
27
+ import type { GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
28
+
29
+ // ---------------------------------------------------------------------------
30
+ // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
31
+ //
32
+ // Not derived from the member name. Substituting underscores for dashes is not a law:
33
+ // some nicks keep an underscore the substitution would have replaced, and only the
34
+ // attribute knows which. Gtk-4.0 and Adw-1 contradict no derivation at all, which is
35
+ // how a derived nick passes review and breaks elsewhere.
36
+ // Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
37
+ // ---------------------------------------------------------------------------
38
+
39
+ export type AtspiCollectionMatchTypeNick = 'invalid' | 'all' | 'any' | 'none' | 'empty' | 'last-defined';
40
+ export type AtspiCollectionSortOrderNick = 'invalid' | 'canonical' | 'flow' | 'tab' | 'reverse-canonical' | 'reverse-flow' | 'reverse-tab' | 'last-defined';
41
+ export type AtspiCollectionTreeTraversalTypeNick = 'restrict-children' | 'restrict-sibling' | 'inorder' | 'last-defined';
42
+ export type AtspiComponentLayerNick = 'invalid' | 'background' | 'canvas' | 'widget' | 'mdi' | 'popup' | 'overlay' | 'window' | 'last-defined';
43
+ export type AtspiCoordTypeNick = 'screen' | 'window' | 'parent' | 'last-defined';
44
+ export type AtspiEventTypeNick = 'key-pressed-event' | 'key-released-event' | 'button-pressed-event' | 'button-released-event' | 'event-last-defined';
45
+ export type AtspiKeyEventTypeNick = 'pressed' | 'released' | 'event-last-defined';
46
+ export type AtspiKeySynthTypeNick = 'press' | 'release' | 'pressrelease' | 'sym' | 'string' | 'lockmodifiers' | 'unlockmodifiers' | 'synth-last-defined';
47
+ export type AtspiLiveNick = 'none' | 'polite' | 'assertive';
48
+ export type AtspiLocaleTypeNick = 'messages' | 'collate' | 'ctype' | 'monetary' | 'numeric' | 'time' | 'last-defined';
49
+ export type AtspiModifierTypeNick = 'shift' | 'shiftlock' | 'control' | 'alt' | 'meta' | 'meta2' | 'meta3' | 'super' | 'numlock';
50
+ export type AtspiRelationTypeNick = 'null' | 'label-for' | 'labelled-by' | 'controller-for' | 'controlled-by' | 'member-of' | 'tooltip-for' | 'node-child-of' | 'node-parent-of' | 'extended' | 'flows-to' | 'flows-from' | 'subwindow-of' | 'embeds' | 'embedded-by' | 'popup-for' | 'parent-window-of' | 'description-for' | 'described-by' | 'details' | 'details-for' | 'error-message' | 'error-for' | 'last-defined';
51
+ export type AtspiRoleNick = 'invalid' | 'accelerator-label' | 'alert' | 'animation' | 'arrow' | 'calendar' | 'canvas' | 'check-box' | 'check-menu-item' | 'color-chooser' | 'column-header' | 'combo-box' | 'date-editor' | 'desktop-icon' | 'desktop-frame' | 'dial' | 'dialog' | 'directory-pane' | 'drawing-area' | 'file-chooser' | 'filler' | 'focus-traversable' | 'font-chooser' | 'frame' | 'glass-pane' | 'html-container' | 'icon' | 'image' | 'internal-frame' | 'label' | 'layered-pane' | 'list' | 'list-item' | 'menu' | 'menu-bar' | 'menu-item' | 'option-pane' | 'page-tab' | 'page-tab-list' | 'panel' | 'password-text' | 'popup-menu' | 'progress-bar' | 'button' | 'radio-button' | 'radio-menu-item' | 'root-pane' | 'row-header' | 'scroll-bar' | 'scroll-pane' | 'separator' | 'slider' | 'spin-button' | 'split-pane' | 'status-bar' | 'table' | 'table-cell' | 'table-column-header' | 'table-row-header' | 'tearoff-menu-item' | 'terminal' | 'text' | 'toggle-button' | 'tool-bar' | 'tool-tip' | 'tree' | 'tree-table' | 'unknown' | 'viewport' | 'window' | 'extended' | 'header' | 'footer' | 'paragraph' | 'ruler' | 'application' | 'autocomplete' | 'editbar' | 'embedded' | 'entry' | 'chart' | 'caption' | 'document-frame' | 'heading' | 'page' | 'section' | 'redundant-object' | 'form' | 'link' | 'input-method-window' | 'table-row' | 'tree-item' | 'document-spreadsheet' | 'document-presentation' | 'document-text' | 'document-web' | 'document-email' | 'comment' | 'list-box' | 'grouping' | 'image-map' | 'notification' | 'info-bar' | 'level-bar' | 'title-bar' | 'block-quote' | 'audio' | 'video' | 'definition' | 'article' | 'landmark' | 'log' | 'marquee' | 'math' | 'rating' | 'timer' | 'static' | 'math-fraction' | 'math-root' | 'subscript' | 'superscript' | 'description-list' | 'description-term' | 'description-value' | 'footnote' | 'content-deletion' | 'content-insertion' | 'mark' | 'suggestion' | 'push-button-menu' | 'switch' | 'last-defined' | 'push-button';
52
+ export type AtspiScrollTypeNick = 'top-left' | 'bottom-right' | 'top-edge' | 'bottom-edge' | 'left-edge' | 'right-edge' | 'anywhere' | 'last-defined';
53
+ export type AtspiStateTypeNick = 'invalid' | 'active' | 'armed' | 'busy' | 'checked' | 'collapsed' | 'defunct' | 'editable' | 'enabled' | 'expandable' | 'expanded' | 'focusable' | 'focused' | 'has-tooltip' | 'horizontal' | 'iconified' | 'modal' | 'multi-line' | 'multiselectable' | 'opaque' | 'pressed' | 'resizable' | 'selectable' | 'selected' | 'sensitive' | 'showing' | 'single-line' | 'stale' | 'transient' | 'vertical' | 'visible' | 'manages-descendants' | 'indeterminate' | 'required' | 'truncated' | 'animated' | 'invalid-entry' | 'supports-autocompletion' | 'selectable-text' | 'is-default' | 'visited' | 'checkable' | 'has-popup' | 'read-only' | 'last-defined';
54
+ export type AtspiTextBoundaryTypeNick = 'char' | 'word-start' | 'word-end' | 'sentence-start' | 'sentence-end' | 'line-start' | 'line-end' | 'last-defined';
55
+ export type AtspiTextClipTypeNick = 'none' | 'min' | 'max' | 'both' | 'last-defined';
56
+ export type AtspiTextGranularityNick = 'char' | 'word' | 'sentence' | 'line' | 'paragraph';
57
+
58
+ // ---------------------------------------------------------------------------
59
+ // Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
60
+ // inheritance rather than flattening per widget.
61
+ //
62
+ // The interfaces are load-bearing, not tidiness: `GtkBox` declares four properties
63
+ // of its own and `orientation` is not among them — it lives on `Gtk.Orientable`,
64
+ // because GObject installs interface properties on the implementor at runtime while
65
+ // GIR keeps them once, on the interface.
66
+ // ---------------------------------------------------------------------------
67
+
68
+ /** The base interface which is implemented by all accessible objects. */
69
+ export interface AtspiAccessibleProps extends AtspiObjectProps, AtspiActionProps, AtspiCollectionProps, AtspiComponentProps, AtspiDocumentProps, AtspiEditableTextProps, AtspiHypertextProps, AtspiImageProps, AtspiSelectionProps, AtspiTableProps, AtspiTableCellProps, AtspiTextProps, AtspiValueProps {
70
+ }
71
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
72
+ export type AtspiAccessibleConstructOnly = AtspiObjectConstructOnly | AtspiActionConstructOnly | AtspiCollectionConstructOnly | AtspiComponentConstructOnly | AtspiDocumentConstructOnly | AtspiEditableTextConstructOnly | AtspiHypertextConstructOnly | AtspiImageConstructOnly | AtspiSelectionConstructOnly | AtspiTableConstructOnly | AtspiTableCellConstructOnly | AtspiTextConstructOnly | AtspiValueConstructOnly;
73
+
74
+ export interface AtspiActionProps extends GObjectProps {
75
+ }
76
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
77
+ export type AtspiActionConstructOnly = GObjectConstructOnly;
78
+
79
+ /** An interface identifying the root object associated with a running application. */
80
+ export interface AtspiApplicationProps extends GObjectProps {
81
+ }
82
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
83
+ export type AtspiApplicationConstructOnly = GObjectConstructOnly;
84
+
85
+ /** An interface designed to allow accessibles which satisfy a set of criteria to be returned. */
86
+ export interface AtspiCollectionProps extends GObjectProps {
87
+ }
88
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
89
+ export type AtspiCollectionConstructOnly = GObjectConstructOnly;
90
+
91
+ /** An interface implemented by objects which have onscreen visual representations. */
92
+ export interface AtspiComponentProps extends GObjectProps {
93
+ }
94
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
95
+ export type AtspiComponentConstructOnly = GObjectConstructOnly;
96
+
97
+ export interface AtspiDeviceProps extends GObjectProps {
98
+ /** @default NULL */
99
+ 'app-id'?: string;
100
+ }
101
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
102
+ export type AtspiDeviceConstructOnly = GObjectConstructOnly | 'app-id';
103
+
104
+ export interface AtspiDeviceA11yManagerProps extends AtspiDeviceProps {
105
+ }
106
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
107
+ export type AtspiDeviceA11yManagerConstructOnly = AtspiDeviceConstructOnly;
108
+
109
+ export interface AtspiDeviceLegacyProps extends AtspiDeviceProps {
110
+ }
111
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
112
+ export type AtspiDeviceLegacyConstructOnly = AtspiDeviceConstructOnly;
113
+
114
+ export interface AtspiDeviceListenerProps extends GObjectProps {
115
+ }
116
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
117
+ export type AtspiDeviceListenerConstructOnly = GObjectConstructOnly;
118
+
119
+ export interface AtspiDeviceX11Props extends AtspiDeviceProps {
120
+ }
121
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
122
+ export type AtspiDeviceX11ConstructOnly = AtspiDeviceConstructOnly;
123
+
124
+ export interface AtspiDocumentProps extends GObjectProps {
125
+ }
126
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
127
+ export type AtspiDocumentConstructOnly = GObjectConstructOnly;
128
+
129
+ export interface AtspiEditableTextProps extends GObjectProps {
130
+ }
131
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
132
+ export type AtspiEditableTextConstructOnly = GObjectConstructOnly;
133
+
134
+ /** A generic interface implemented by objects for the receipt of event notifications. */
135
+ export interface AtspiEventListenerProps extends GObjectProps {
136
+ }
137
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
138
+ export type AtspiEventListenerConstructOnly = GObjectConstructOnly;
139
+
140
+ /** Instances of atspi-hyperlink are the means by which end users and clients interact with linked content. */
141
+ export interface AtspiHyperlinkProps extends AtspiObjectProps {
142
+ }
143
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
144
+ export type AtspiHyperlinkConstructOnly = AtspiObjectConstructOnly;
145
+
146
+ /** An interface used for objects which implement linking between multiple resource locations. */
147
+ export interface AtspiHypertextProps extends GObjectProps {
148
+ }
149
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
150
+ export type AtspiHypertextConstructOnly = GObjectConstructOnly;
151
+
152
+ export interface AtspiImageProps extends GObjectProps {
153
+ }
154
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
155
+ export type AtspiImageConstructOnly = GObjectConstructOnly;
156
+
157
+ /** An interface that allows the definition of match rules for accessible objects. */
158
+ export interface AtspiMatchRuleProps extends GObjectProps {
159
+ }
160
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
161
+ export type AtspiMatchRuleConstructOnly = GObjectConstructOnly;
162
+
163
+ export interface AtspiObjectProps extends GObjectProps {
164
+ }
165
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
166
+ export type AtspiObjectConstructOnly = GObjectConstructOnly;
167
+
168
+ /** An interface via which non-hierarchical relationships are indicated. */
169
+ export interface AtspiRelationProps extends GObjectProps {
170
+ }
171
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
172
+ export type AtspiRelationConstructOnly = GObjectConstructOnly;
173
+
174
+ /** An interface which indicates that an object exposes a 'selection' model, allowing the selection of one or more of its children. */
175
+ export interface AtspiSelectionProps extends GObjectProps {
176
+ }
177
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
178
+ export type AtspiSelectionConstructOnly = GObjectConstructOnly;
179
+
180
+ /** The atspi-stateset objects implement wrappers around a bitmap of accessible states. */
181
+ export interface AtspiStateSetProps extends GObjectProps {
182
+ }
183
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
184
+ export type AtspiStateSetConstructOnly = GObjectConstructOnly;
185
+
186
+ /** An interface used by containers whose data is arranged in a tabular form. */
187
+ export interface AtspiTableProps extends GObjectProps {
188
+ }
189
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
190
+ export type AtspiTableConstructOnly = GObjectConstructOnly;
191
+
192
+ export interface AtspiTableCellProps extends GObjectProps {
193
+ }
194
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
195
+ export type AtspiTableCellConstructOnly = GObjectConstructOnly;
196
+
197
+ /** An interface implemented by objects which place textual information onscreen. */
198
+ export interface AtspiTextProps extends GObjectProps {
199
+ }
200
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
201
+ export type AtspiTextConstructOnly = GObjectConstructOnly;
202
+
203
+ /** An interface supporting a one-dimensional scalar to be modified, or which reflects its value. */
204
+ export interface AtspiValueProps extends GObjectProps {
205
+ }
206
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
207
+ export type AtspiValueConstructOnly = GObjectConstructOnly;
208
+
209
+ // ---------------------------------------------------------------------------
210
+ // The GType-keyed widget map.
211
+ //
212
+ // Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
213
+ // consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
214
+ // for a Vue `GlobalComponents`, the class itself for a renderer whose element type
215
+ // is the class. None of those is baked in here.
216
+ //
217
+ // `slotCandidates` is a candidate list and never an answer: derived from methods
218
+ // taking exactly one widget argument. The GIR cannot tell adoption from reference —
219
+ // `set_title_widget` parents its argument and `set_activatable_widget` does not, and
220
+ // both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
221
+ // this is what notices when a release adds a candidate.
222
+ // ---------------------------------------------------------------------------
223
+
224
+ export interface Widgets {
225
+
226
+ }
227
+
228
+ /**
229
+ * Every GType this namespace can create AND put on screen. A consumer derives its own
230
+ * tag map. For everything a UI file can instantiate — layout managers, event
231
+ * controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
232
+ */
233
+ export type WidgetGType = keyof Widgets;
234
+
235
+ // ---------------------------------------------------------------------------
236
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
237
+ //
238
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
239
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
240
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
241
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
242
+ // more rows in `Widgets`: concatenate them when you mean both.
243
+ // ---------------------------------------------------------------------------
244
+
245
+ export interface ChildHolders {
246
+
247
+ }
248
+
249
+ /** Every GType this namespace holds a child in without it being a widget. */
250
+ export type ChildHolderGType = keyof ChildHolders;
251
+
252
+ /** The writable, optional, GObject-keyed property surface of one GType. */
253
+ export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
254
+
255
+ /** The signal table this package already emits, reached by GType. */
256
+ export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
257
+
258
+ /** The instance type — what a `ref`-shaped prop should infer. */
259
+ export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
260
+
261
+ /** Property names that can only be set at construction. */
262
+ export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
263
+
264
+ /** Candidate child slots — see the note above; curation decides. */
265
+ export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
266
+
267
+ /**
268
+ * The same facts as runtime data, for a consumer that CHECKS them.
269
+ *
270
+ * Types are erased, so a spec that asks the installed GTK whether every property
271
+ * here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
272
+ * and every nick resolvable through an enum lookup cannot read the interfaces
273
+ * above. Emitted headlessly with no GTK present, which is exactly why the checking
274
+ * belongs to the consumer and the DATA belongs here.
275
+ */
276
+ export const PROVENANCE: {
277
+ readonly namespace: string;
278
+ readonly version: string;
279
+ /** The version the LIBRARY states, or null where it states none. Never the namespace's. */
280
+ readonly libraryVersion: string | null;
281
+ readonly childHolders: number;
282
+ readonly droppedBases: readonly string[];
283
+ readonly inlinedBases: readonly string[];
284
+ /** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
285
+ readonly unsettableProps: readonly string[];
286
+ /**
287
+ * `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
288
+ * could not resolve its type across a namespace boundary — two independently released
289
+ * GIRs disagreeing, which is what the main emitter answers `never` for as well.
290
+ */
291
+ readonly unresolvedProps: readonly string[];
292
+ /**
293
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
294
+ *
295
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
296
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
297
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
298
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
299
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
300
+ *
301
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
302
+ * inventing the namespace name there is a confident wrong answer in place of a missing
303
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
304
+ */
305
+ readonly identifierPrefixes: readonly string[];
306
+ /**
307
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
308
+ *
309
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
310
+ * settable property, `GApplication` has its properties in another package — and this
311
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
312
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
313
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
314
+ */
315
+ readonly requiredVocabularies: readonly string[];
316
+ };
317
+
318
+ /** Declaration GType -> its own settable properties, as GObject registered them. */
319
+ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
320
+
321
+ /**
322
+ * Declaration GType -> the signals it registers itself, never its parents'.
323
+ *
324
+ * Keyed like `OWN_PROPS`, so both are read at every link of a `DECLS` chain. An
325
+ * abstract base has no `Widgets` row and still owns signals — `GtkWidget` owns 13.
326
+ */
327
+ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
328
+
329
+ /**
330
+ * Instantiable GType -> every declaration its members come from, self first.
331
+ *
332
+ * The key set is what a UI description file can NAME: every registered, non-abstract
333
+ * class this namespace declares. GtkBuilder resolves a `<object class="…">` through
334
+ * `g_type_from_name`, which knows nothing about widgets, so this is wider than
335
+ * `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
336
+ * and every `GtkCellRenderer` are here and are not widgets.
337
+ *
338
+ * `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
339
+ */
340
+ export const DECLS: Readonly<Record<string, readonly string[]>>;
341
+
342
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
343
+ export const CHILD_HOLDERS: readonly string[];
344
+
345
+ /** Enum GType -> the nicks this surface offers. */
346
+ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
347
+
348
+ /**
349
+ * `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
350
+ *
351
+ * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
352
+ * GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
353
+ * at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
354
+ * on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
355
+ *
356
+ * Read from the same GIR as the nicks, deliberately. A consumer reading the numbers off an
357
+ * installed typelib instead has two provenances for one table, and then cannot tell a
358
+ * missing number from a host older than the vocabulary.
359
+ */
360
+ export const ENUM_VALUES: Readonly<Record<string, number>>;
361
+
362
+ /**
363
+ * The `<enum GType>.<nick>` entries GIR marks `deprecated="1"`.
364
+ *
365
+ * Two names on one value is how GObject spells an alias -- `GTK_ALIGN_BASELINE` and
366
+ * `GTK_ALIGN_BASELINE_FILL` are both 4, and both keep a `ENUM_VALUES` entry. The pairing
367
+ * is visible in the numbers; which name is the old one is not, and this is that fact --
368
+ * where GIR states it. It usually does not: 4 registered-enum members across the 718 GIRs
369
+ * carry the attribute, and 179 of the 182 value-sharing pairs carry it on neither half, so
370
+ * absence from this list means GIR is silent, not that the nick is the current one.
371
+ */
372
+ export const ENUM_DEPRECATED: readonly string[];
373
+
374
+ /**
375
+ * `<enum GType>.<nick>` -> the raw GIR `value` no number could be read from.
376
+ *
377
+ * The declared remainder, so that every nick in `ENUM_NICKS` is in `ENUM_VALUES` or in
378
+ * here and a drop cannot be silent. Two shapes reach it: a symbolic or absent value (Vala
379
+ * writes `(null)`, a char enum writes a letter) and an integer past
380
+ * `Number.MAX_SAFE_INTEGER`, where a literal would lose precision and stop being the
381
+ * GIR's number. Empty for Gtk, Adw, GLib and Gio.
382
+ */
383
+ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
384
+
385
+ /**
386
+ * `<bitfield GType>.<nick>` -> the integer GObject registers for that one member.
387
+ *
388
+ * `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
389
+ * nothing about a single member's number, and the number is what a host without GI needs.
390
+ * 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
391
+ * `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
392
+ * `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
393
+ * bitfield members this vocabulary carries disagree with their declaration position,
394
+ * against 29 of 672 enumeration members.
395
+ *
396
+ * Combine with `|` as GObject does. There is no nick table to pair this with, so a name
397
+ * here is resolvable and a SET still is not.
398
+ */
399
+ export const FLAG_VALUES: Readonly<Record<string, number>>;
400
+
401
+ /** `<bitfield GType>.<nick>` -> the raw GIR `value` no number could be read from. */
402
+ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
403
+
404
+ /**
405
+ * `<declaration GType>.<property>` -> the GType of that property's enum or bitfield.
406
+ *
407
+ * The join the value tables need and nothing else here carries. A host with no GI has a
408
+ * property name and a nick and needs a number; `ENUM_VALUES` is keyed by ENUM GType, and
409
+ * only this says which enum a property is. Keyed by DECLARATION like `OWN_PROPS`, so it is
410
+ * read at every link of a `DECLS` chain — `orientation` belongs to `GtkOrientable`, not
411
+ * to the `GtkBox` a caller starts from.
412
+ *
413
+ * Present only where the property's OWN type is the enum: an array of them, or a union that
414
+ * merely mentions one, would be an entry a consumer resolves wrongly.
415
+ *
416
+ * The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
417
+ * emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
418
+ * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
419
+ * entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
420
+ * owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
421
+ * resolves against SOME module.
422
+ */
423
+ export const PROP_ENUMS: Readonly<Record<string, string>>;
424
+
425
+ /**
426
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
427
+ *
428
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
429
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
430
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
431
+ * reads this one; a host resolving a nick to a number reads that one.
432
+ *
433
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
434
+ * like any other, so absence is readable as "unknown".
435
+ */
436
+ export const PROP_TYPES: Readonly<Record<string, string>>;
437
+
438
+ /**
439
+ * The kinds of value a GTK accessible property, relation or state takes.
440
+ *
441
+ * `enum` is the one that needs a second lookup: `ARIA_VALUE_ENUMS` names the enum GType,
442
+ * and `ENUM_NICKS` and `ENUM_VALUES` answer from there.
443
+ */
444
+ export type AriaValueType = 'string' | 'integer' | 'double' | 'boolean' | 'reference' | 'enum';
445
+
446
+ /**
447
+ * `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
448
+ *
449
+ * The one table in this file that is not a fact about a ParamSpec. A GtkBuilder or
450
+ * Blueprint `accessibility { … }` block is typed by GTK's ARIA table, not by the widget,
451
+ * and the two disagree where it costs most: `orientation` is settable on a `GtkLabel`
452
+ * that implements no `GtkOrientable`, and `checked` is a `GtkAccessibleTristate`, so
453
+ * `checked: true` is the number 1 rather than a boolean. Typing those slots from the
454
+ * widget's properties gets both wrong and raises nothing.
455
+ *
456
+ * Keyed like `ENUM_VALUES` because the ARIA names ARE enum members — of
457
+ * `GtkAccessibleProperty`, `GtkAccessibleRelation` and `GtkAccessibleState` — so
458
+ * `ENUM_NICKS` already lists them and one key parser reads both.
459
+ *
460
+ * Read from each member's own GIR documentation. `gtk_accessible_property_init_value()`
461
+ * is the C half of this table and is not introspectable; the doc sentence is, and states
462
+ * the type for 52 of the 53 members in gtk4 4.23.3. Complete or absent, never partial: a
463
+ * member the generator cannot answer for fails the build and names itself.
464
+ */
465
+ export const ARIA_VALUE_TYPES: Readonly<Record<string, AriaValueType>>;
466
+
467
+ /**
468
+ * The same keys, for the `'enum'` rows only -> the GType of that enum.
469
+ *
470
+ * A table of its own for the reason `PROP_ENUMS` is one: folded in, the values of
471
+ * `ARIA_VALUE_TYPES` would be six reserved words mixed with arbitrary GTypes and telling
472
+ * them apart would be the consumer's problem. Apart, `ARIA_VALUE_TYPES[k] === 'enum'` is
473
+ * the whole test and `ENUM_NICKS[ARIA_VALUE_ENUMS[k]]` is the nick list.
474
+ */
475
+ export const ARIA_VALUE_ENUMS: Readonly<Record<string, string>>;
476
+
477
+ /** Widget GType -> slot name -> the method that may adopt a child there. */
478
+ export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
479
+
480
+ /**
481
+ * `Type`, `Type.property` and `Type::signal` -> the release that introduced it.
482
+ *
483
+ * What keeps a runtime cross-check honest across a version gap without an
484
+ * allowlist: a name the installed library lacks is a defect UNLESS the version
485
+ * here is newer than the one running.
486
+ *
487
+ * ALL THREE key shapes, because that test only works for the names it covers. A
488
+ * property-only map leaves a consumer no way to explain a missing SIGNAL, which is
489
+ * a correct vocabulary reported as 18 defects; a member-only map leaves it no way to
490
+ * explain a missing CLASS, and that one fails as a bare
491
+ * `TypeError: can't access property "$gtype", ctor() is undefined` that does not
492
+ * even name the GType.
493
+ *
494
+ * A key is present only where the GIR states a version — sparse by nature (`version`
495
+ * sits on 29 of the 301 classes and interfaces in Gtk-4.0), never inferred.
496
+ */
497
+ export const SINCE: Readonly<Record<string, string>>;
@@ -0,0 +1,516 @@
1
+ // The widget vocabulary of Atspi-2.0 as runtime data.
2
+ //
3
+ // GENERATED — do not edit. Provenance: Atspi-2.0
4
+ //
5
+ // The type half of this subpath is the sibling `.d.ts`. This file exists because
6
+ // types are erased: a consumer that wants to ask the installed library whether every
7
+ // name here is real needs values, not declarations.
8
+
9
+ export const PROVENANCE = {
10
+ namespace: 'Atspi',
11
+ version: '2.0',
12
+ libraryVersion: null,
13
+ childHolders: 0,
14
+ droppedBases: [],
15
+ inlinedBases: [],
16
+ unsettableProps: [],
17
+ unresolvedProps: [],
18
+ identifierPrefixes: ['Atspi'],
19
+ requiredVocabularies: ['@girs/gobject-2.0/vocabulary'],
20
+ };
21
+
22
+ export const OWN_PROPS = {
23
+ AtspiDevice: ['app-id'],
24
+ };
25
+
26
+ export const OWN_SIGNALS = {
27
+ AtspiAccessible: ['mode-changed', 'region-changed'],
28
+ AtspiDevice: ['key-pressed', 'key-released', 'pointer-moved'],
29
+ };
30
+
31
+ // Every GType this namespace can INSTANTIATE -> the declarations its members come from.
32
+ //
33
+ // The key set is what a UI description file can name: a registered, non-abstract class.
34
+ // Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
35
+ // nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
36
+ // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
37
+ // below for the narrower questions; they did not move.
38
+ export const DECLS = {
39
+ AtspiAccessible: ['AtspiAccessible', 'AtspiObject', 'GObject', 'AtspiAction', 'AtspiCollection', 'AtspiComponent', 'AtspiDocument', 'AtspiEditableText', 'AtspiHypertext', 'AtspiImage', 'AtspiSelection', 'AtspiTable', 'AtspiTableCell', 'AtspiText', 'AtspiValue'],
40
+ AtspiApplication: ['AtspiApplication', 'GObject'],
41
+ AtspiDevice: ['AtspiDevice', 'GObject'],
42
+ AtspiDeviceA11yManager: ['AtspiDeviceA11yManager', 'AtspiDevice', 'GObject'],
43
+ AtspiDeviceLegacy: ['AtspiDeviceLegacy', 'AtspiDevice', 'GObject'],
44
+ AtspiDeviceListener: ['AtspiDeviceListener', 'GObject'],
45
+ AtspiDeviceX11: ['AtspiDeviceX11', 'AtspiDevice', 'GObject'],
46
+ AtspiEventListener: ['AtspiEventListener', 'GObject'],
47
+ AtspiHyperlink: ['AtspiHyperlink', 'AtspiObject', 'GObject'],
48
+ AtspiMatchRule: ['AtspiMatchRule', 'GObject'],
49
+ AtspiObject: ['AtspiObject', 'GObject'],
50
+ AtspiRelation: ['AtspiRelation', 'GObject'],
51
+ AtspiStateSet: ['AtspiStateSet', 'GObject'],
52
+ };
53
+
54
+ // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
55
+ // are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
56
+ // `GObject.Object`. A renderer places them like a container; a check asking "is this a
57
+ // widget" must not count them. Derived from the accessor pair, never from a list — the
58
+ // count is in the provenance line above.
59
+ export const CHILD_HOLDERS = [];
60
+
61
+ export const ENUM_NICKS = {
62
+ AtspiCollectionMatchType: ['invalid', 'all', 'any', 'none', 'empty', 'last-defined'],
63
+ AtspiCollectionSortOrder: ['invalid', 'canonical', 'flow', 'tab', 'reverse-canonical', 'reverse-flow', 'reverse-tab', 'last-defined'],
64
+ AtspiCollectionTreeTraversalType: ['restrict-children', 'restrict-sibling', 'inorder', 'last-defined'],
65
+ AtspiComponentLayer: ['invalid', 'background', 'canvas', 'widget', 'mdi', 'popup', 'overlay', 'window', 'last-defined'],
66
+ AtspiCoordType: ['screen', 'window', 'parent', 'last-defined'],
67
+ AtspiEventType: ['key-pressed-event', 'key-released-event', 'button-pressed-event', 'button-released-event', 'event-last-defined'],
68
+ AtspiKeyEventType: ['pressed', 'released', 'event-last-defined'],
69
+ AtspiKeySynthType: ['press', 'release', 'pressrelease', 'sym', 'string', 'lockmodifiers', 'unlockmodifiers', 'synth-last-defined'],
70
+ AtspiLive: ['none', 'polite', 'assertive'],
71
+ AtspiLocaleType: ['messages', 'collate', 'ctype', 'monetary', 'numeric', 'time', 'last-defined'],
72
+ AtspiModifierType: ['shift', 'shiftlock', 'control', 'alt', 'meta', 'meta2', 'meta3', 'super', 'numlock'],
73
+ AtspiRelationType: ['null', 'label-for', 'labelled-by', 'controller-for', 'controlled-by', 'member-of', 'tooltip-for', 'node-child-of', 'node-parent-of', 'extended', 'flows-to', 'flows-from', 'subwindow-of', 'embeds', 'embedded-by', 'popup-for', 'parent-window-of', 'description-for', 'described-by', 'details', 'details-for', 'error-message', 'error-for', 'last-defined'],
74
+ AtspiRole: ['invalid', 'accelerator-label', 'alert', 'animation', 'arrow', 'calendar', 'canvas', 'check-box', 'check-menu-item', 'color-chooser', 'column-header', 'combo-box', 'date-editor', 'desktop-icon', 'desktop-frame', 'dial', 'dialog', 'directory-pane', 'drawing-area', 'file-chooser', 'filler', 'focus-traversable', 'font-chooser', 'frame', 'glass-pane', 'html-container', 'icon', 'image', 'internal-frame', 'label', 'layered-pane', 'list', 'list-item', 'menu', 'menu-bar', 'menu-item', 'option-pane', 'page-tab', 'page-tab-list', 'panel', 'password-text', 'popup-menu', 'progress-bar', 'button', 'radio-button', 'radio-menu-item', 'root-pane', 'row-header', 'scroll-bar', 'scroll-pane', 'separator', 'slider', 'spin-button', 'split-pane', 'status-bar', 'table', 'table-cell', 'table-column-header', 'table-row-header', 'tearoff-menu-item', 'terminal', 'text', 'toggle-button', 'tool-bar', 'tool-tip', 'tree', 'tree-table', 'unknown', 'viewport', 'window', 'extended', 'header', 'footer', 'paragraph', 'ruler', 'application', 'autocomplete', 'editbar', 'embedded', 'entry', 'chart', 'caption', 'document-frame', 'heading', 'page', 'section', 'redundant-object', 'form', 'link', 'input-method-window', 'table-row', 'tree-item', 'document-spreadsheet', 'document-presentation', 'document-text', 'document-web', 'document-email', 'comment', 'list-box', 'grouping', 'image-map', 'notification', 'info-bar', 'level-bar', 'title-bar', 'block-quote', 'audio', 'video', 'definition', 'article', 'landmark', 'log', 'marquee', 'math', 'rating', 'timer', 'static', 'math-fraction', 'math-root', 'subscript', 'superscript', 'description-list', 'description-term', 'description-value', 'footnote', 'content-deletion', 'content-insertion', 'mark', 'suggestion', 'push-button-menu', 'switch', 'last-defined', 'push-button'],
75
+ AtspiScrollType: ['top-left', 'bottom-right', 'top-edge', 'bottom-edge', 'left-edge', 'right-edge', 'anywhere', 'last-defined'],
76
+ AtspiStateType: ['invalid', 'active', 'armed', 'busy', 'checked', 'collapsed', 'defunct', 'editable', 'enabled', 'expandable', 'expanded', 'focusable', 'focused', 'has-tooltip', 'horizontal', 'iconified', 'modal', 'multi-line', 'multiselectable', 'opaque', 'pressed', 'resizable', 'selectable', 'selected', 'sensitive', 'showing', 'single-line', 'stale', 'transient', 'vertical', 'visible', 'manages-descendants', 'indeterminate', 'required', 'truncated', 'animated', 'invalid-entry', 'supports-autocompletion', 'selectable-text', 'is-default', 'visited', 'checkable', 'has-popup', 'read-only', 'last-defined'],
77
+ AtspiTextBoundaryType: ['char', 'word-start', 'word-end', 'sentence-start', 'sentence-end', 'line-start', 'line-end', 'last-defined'],
78
+ AtspiTextClipType: ['none', 'min', 'max', 'both', 'last-defined'],
79
+ AtspiTextGranularity: ['char', 'word', 'sentence', 'line', 'paragraph'],
80
+ };
81
+
82
+ // The number behind each of those nicks, read from GIR's own `value` attribute.
83
+ //
84
+ // It ships because position in `ENUM_NICKS` is not the value and a consumer with no
85
+ // typelib has no other way to learn it: a surface without GI still has to hand GObject an
86
+ // integer. The alternative a consumer reaches for first is counting, and counting is wrong
87
+ // on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
88
+ // `GtkResponseType` runs -1 down to
89
+ // -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
90
+ // 1001001000 where counting answers 0.
91
+ //
92
+ // Same provenance as the nicks above, which is the point: a consumer that reads the numbers
93
+ // from an INSTALLED library instead gets two provenances for one table, and a member the
94
+ // vocabulary describes but the host predates then looks like a missing number rather than a
95
+ // version gap.
96
+ export const ENUM_VALUES = {
97
+ 'AtspiCollectionMatchType.all': 1,
98
+ 'AtspiCollectionMatchType.any': 2,
99
+ 'AtspiCollectionMatchType.empty': 4,
100
+ 'AtspiCollectionMatchType.invalid': 0,
101
+ 'AtspiCollectionMatchType.last-defined': 5,
102
+ 'AtspiCollectionMatchType.none': 3,
103
+ 'AtspiCollectionSortOrder.canonical': 1,
104
+ 'AtspiCollectionSortOrder.flow': 2,
105
+ 'AtspiCollectionSortOrder.invalid': 0,
106
+ 'AtspiCollectionSortOrder.last-defined': 7,
107
+ 'AtspiCollectionSortOrder.reverse-canonical': 4,
108
+ 'AtspiCollectionSortOrder.reverse-flow': 5,
109
+ 'AtspiCollectionSortOrder.reverse-tab': 6,
110
+ 'AtspiCollectionSortOrder.tab': 3,
111
+ 'AtspiCollectionTreeTraversalType.inorder': 2,
112
+ 'AtspiCollectionTreeTraversalType.last-defined': 3,
113
+ 'AtspiCollectionTreeTraversalType.restrict-children': 0,
114
+ 'AtspiCollectionTreeTraversalType.restrict-sibling': 1,
115
+ 'AtspiComponentLayer.background': 1,
116
+ 'AtspiComponentLayer.canvas': 2,
117
+ 'AtspiComponentLayer.invalid': 0,
118
+ 'AtspiComponentLayer.last-defined': 8,
119
+ 'AtspiComponentLayer.mdi': 4,
120
+ 'AtspiComponentLayer.overlay': 6,
121
+ 'AtspiComponentLayer.popup': 5,
122
+ 'AtspiComponentLayer.widget': 3,
123
+ 'AtspiComponentLayer.window': 7,
124
+ 'AtspiCoordType.last-defined': 3,
125
+ 'AtspiCoordType.parent': 2,
126
+ 'AtspiCoordType.screen': 0,
127
+ 'AtspiCoordType.window': 1,
128
+ 'AtspiEventType.button-pressed-event': 2,
129
+ 'AtspiEventType.button-released-event': 3,
130
+ 'AtspiEventType.event-last-defined': 4,
131
+ 'AtspiEventType.key-pressed-event': 0,
132
+ 'AtspiEventType.key-released-event': 1,
133
+ 'AtspiKeyEventType.event-last-defined': 2,
134
+ 'AtspiKeyEventType.pressed': 0,
135
+ 'AtspiKeyEventType.released': 1,
136
+ 'AtspiKeySynthType.lockmodifiers': 5,
137
+ 'AtspiKeySynthType.press': 0,
138
+ 'AtspiKeySynthType.pressrelease': 2,
139
+ 'AtspiKeySynthType.release': 1,
140
+ 'AtspiKeySynthType.string': 4,
141
+ 'AtspiKeySynthType.sym': 3,
142
+ 'AtspiKeySynthType.synth-last-defined': 7,
143
+ 'AtspiKeySynthType.unlockmodifiers': 6,
144
+ 'AtspiLive.assertive': 2,
145
+ 'AtspiLive.none': 0,
146
+ 'AtspiLive.polite': 1,
147
+ 'AtspiLocaleType.collate': 1,
148
+ 'AtspiLocaleType.ctype': 2,
149
+ 'AtspiLocaleType.last-defined': 6,
150
+ 'AtspiLocaleType.messages': 0,
151
+ 'AtspiLocaleType.monetary': 3,
152
+ 'AtspiLocaleType.numeric': 4,
153
+ 'AtspiLocaleType.time': 5,
154
+ 'AtspiModifierType.alt': 3,
155
+ 'AtspiModifierType.control': 2,
156
+ 'AtspiModifierType.meta': 4,
157
+ 'AtspiModifierType.meta2': 5,
158
+ 'AtspiModifierType.meta3': 6,
159
+ 'AtspiModifierType.numlock': 14,
160
+ 'AtspiModifierType.shift': 0,
161
+ 'AtspiModifierType.shiftlock': 1,
162
+ 'AtspiModifierType.super': 6,
163
+ 'AtspiRelationType.controlled-by': 4,
164
+ 'AtspiRelationType.controller-for': 3,
165
+ 'AtspiRelationType.described-by': 18,
166
+ 'AtspiRelationType.description-for': 17,
167
+ 'AtspiRelationType.details': 19,
168
+ 'AtspiRelationType.details-for': 20,
169
+ 'AtspiRelationType.embedded-by': 14,
170
+ 'AtspiRelationType.embeds': 13,
171
+ 'AtspiRelationType.error-for': 22,
172
+ 'AtspiRelationType.error-message': 21,
173
+ 'AtspiRelationType.extended': 9,
174
+ 'AtspiRelationType.flows-from': 11,
175
+ 'AtspiRelationType.flows-to': 10,
176
+ 'AtspiRelationType.label-for': 1,
177
+ 'AtspiRelationType.labelled-by': 2,
178
+ 'AtspiRelationType.last-defined': 23,
179
+ 'AtspiRelationType.member-of': 5,
180
+ 'AtspiRelationType.node-child-of': 7,
181
+ 'AtspiRelationType.node-parent-of': 8,
182
+ 'AtspiRelationType.null': 0,
183
+ 'AtspiRelationType.parent-window-of': 16,
184
+ 'AtspiRelationType.popup-for': 15,
185
+ 'AtspiRelationType.subwindow-of': 12,
186
+ 'AtspiRelationType.tooltip-for': 6,
187
+ 'AtspiRole.accelerator-label': 1,
188
+ 'AtspiRole.alert': 2,
189
+ 'AtspiRole.animation': 3,
190
+ 'AtspiRole.application': 75,
191
+ 'AtspiRole.arrow': 4,
192
+ 'AtspiRole.article': 109,
193
+ 'AtspiRole.audio': 106,
194
+ 'AtspiRole.autocomplete': 76,
195
+ 'AtspiRole.block-quote': 105,
196
+ 'AtspiRole.button': 43,
197
+ 'AtspiRole.calendar': 5,
198
+ 'AtspiRole.canvas': 6,
199
+ 'AtspiRole.caption': 81,
200
+ 'AtspiRole.chart': 80,
201
+ 'AtspiRole.check-box': 7,
202
+ 'AtspiRole.check-menu-item': 8,
203
+ 'AtspiRole.color-chooser': 9,
204
+ 'AtspiRole.column-header': 10,
205
+ 'AtspiRole.combo-box': 11,
206
+ 'AtspiRole.comment': 97,
207
+ 'AtspiRole.content-deletion': 125,
208
+ 'AtspiRole.content-insertion': 126,
209
+ 'AtspiRole.date-editor': 12,
210
+ 'AtspiRole.definition': 108,
211
+ 'AtspiRole.description-list': 121,
212
+ 'AtspiRole.description-term': 122,
213
+ 'AtspiRole.description-value': 123,
214
+ 'AtspiRole.desktop-frame': 14,
215
+ 'AtspiRole.desktop-icon': 13,
216
+ 'AtspiRole.dial': 15,
217
+ 'AtspiRole.dialog': 16,
218
+ 'AtspiRole.directory-pane': 17,
219
+ 'AtspiRole.document-email': 96,
220
+ 'AtspiRole.document-frame': 82,
221
+ 'AtspiRole.document-presentation': 93,
222
+ 'AtspiRole.document-spreadsheet': 92,
223
+ 'AtspiRole.document-text': 94,
224
+ 'AtspiRole.document-web': 95,
225
+ 'AtspiRole.drawing-area': 18,
226
+ 'AtspiRole.editbar': 77,
227
+ 'AtspiRole.embedded': 78,
228
+ 'AtspiRole.entry': 79,
229
+ 'AtspiRole.extended': 70,
230
+ 'AtspiRole.file-chooser': 19,
231
+ 'AtspiRole.filler': 20,
232
+ 'AtspiRole.focus-traversable': 21,
233
+ 'AtspiRole.font-chooser': 22,
234
+ 'AtspiRole.footer': 72,
235
+ 'AtspiRole.footnote': 124,
236
+ 'AtspiRole.form': 87,
237
+ 'AtspiRole.frame': 23,
238
+ 'AtspiRole.glass-pane': 24,
239
+ 'AtspiRole.grouping': 99,
240
+ 'AtspiRole.header': 71,
241
+ 'AtspiRole.heading': 83,
242
+ 'AtspiRole.html-container': 25,
243
+ 'AtspiRole.icon': 26,
244
+ 'AtspiRole.image': 27,
245
+ 'AtspiRole.image-map': 100,
246
+ 'AtspiRole.info-bar': 102,
247
+ 'AtspiRole.input-method-window': 89,
248
+ 'AtspiRole.internal-frame': 28,
249
+ 'AtspiRole.invalid': 0,
250
+ 'AtspiRole.label': 29,
251
+ 'AtspiRole.landmark': 110,
252
+ 'AtspiRole.last-defined': 131,
253
+ 'AtspiRole.layered-pane': 30,
254
+ 'AtspiRole.level-bar': 103,
255
+ 'AtspiRole.link': 88,
256
+ 'AtspiRole.list': 31,
257
+ 'AtspiRole.list-box': 98,
258
+ 'AtspiRole.list-item': 32,
259
+ 'AtspiRole.log': 111,
260
+ 'AtspiRole.mark': 127,
261
+ 'AtspiRole.marquee': 112,
262
+ 'AtspiRole.math': 113,
263
+ 'AtspiRole.math-fraction': 117,
264
+ 'AtspiRole.math-root': 118,
265
+ 'AtspiRole.menu': 33,
266
+ 'AtspiRole.menu-bar': 34,
267
+ 'AtspiRole.menu-item': 35,
268
+ 'AtspiRole.notification': 101,
269
+ 'AtspiRole.option-pane': 36,
270
+ 'AtspiRole.page': 84,
271
+ 'AtspiRole.page-tab': 37,
272
+ 'AtspiRole.page-tab-list': 38,
273
+ 'AtspiRole.panel': 39,
274
+ 'AtspiRole.paragraph': 73,
275
+ 'AtspiRole.password-text': 40,
276
+ 'AtspiRole.popup-menu': 41,
277
+ 'AtspiRole.progress-bar': 42,
278
+ 'AtspiRole.push-button': 43,
279
+ 'AtspiRole.push-button-menu': 129,
280
+ 'AtspiRole.radio-button': 44,
281
+ 'AtspiRole.radio-menu-item': 45,
282
+ 'AtspiRole.rating': 114,
283
+ 'AtspiRole.redundant-object': 86,
284
+ 'AtspiRole.root-pane': 46,
285
+ 'AtspiRole.row-header': 47,
286
+ 'AtspiRole.ruler': 74,
287
+ 'AtspiRole.scroll-bar': 48,
288
+ 'AtspiRole.scroll-pane': 49,
289
+ 'AtspiRole.section': 85,
290
+ 'AtspiRole.separator': 50,
291
+ 'AtspiRole.slider': 51,
292
+ 'AtspiRole.spin-button': 52,
293
+ 'AtspiRole.split-pane': 53,
294
+ 'AtspiRole.static': 116,
295
+ 'AtspiRole.status-bar': 54,
296
+ 'AtspiRole.subscript': 119,
297
+ 'AtspiRole.suggestion': 128,
298
+ 'AtspiRole.superscript': 120,
299
+ 'AtspiRole.switch': 130,
300
+ 'AtspiRole.table': 55,
301
+ 'AtspiRole.table-cell': 56,
302
+ 'AtspiRole.table-column-header': 57,
303
+ 'AtspiRole.table-row': 90,
304
+ 'AtspiRole.table-row-header': 58,
305
+ 'AtspiRole.tearoff-menu-item': 59,
306
+ 'AtspiRole.terminal': 60,
307
+ 'AtspiRole.text': 61,
308
+ 'AtspiRole.timer': 115,
309
+ 'AtspiRole.title-bar': 104,
310
+ 'AtspiRole.toggle-button': 62,
311
+ 'AtspiRole.tool-bar': 63,
312
+ 'AtspiRole.tool-tip': 64,
313
+ 'AtspiRole.tree': 65,
314
+ 'AtspiRole.tree-item': 91,
315
+ 'AtspiRole.tree-table': 66,
316
+ 'AtspiRole.unknown': 67,
317
+ 'AtspiRole.video': 107,
318
+ 'AtspiRole.viewport': 68,
319
+ 'AtspiRole.window': 69,
320
+ 'AtspiScrollType.anywhere': 6,
321
+ 'AtspiScrollType.bottom-edge': 3,
322
+ 'AtspiScrollType.bottom-right': 1,
323
+ 'AtspiScrollType.last-defined': 7,
324
+ 'AtspiScrollType.left-edge': 4,
325
+ 'AtspiScrollType.right-edge': 5,
326
+ 'AtspiScrollType.top-edge': 2,
327
+ 'AtspiScrollType.top-left': 0,
328
+ 'AtspiStateType.active': 1,
329
+ 'AtspiStateType.animated': 35,
330
+ 'AtspiStateType.armed': 2,
331
+ 'AtspiStateType.busy': 3,
332
+ 'AtspiStateType.checkable': 41,
333
+ 'AtspiStateType.checked': 4,
334
+ 'AtspiStateType.collapsed': 5,
335
+ 'AtspiStateType.defunct': 6,
336
+ 'AtspiStateType.editable': 7,
337
+ 'AtspiStateType.enabled': 8,
338
+ 'AtspiStateType.expandable': 9,
339
+ 'AtspiStateType.expanded': 10,
340
+ 'AtspiStateType.focusable': 11,
341
+ 'AtspiStateType.focused': 12,
342
+ 'AtspiStateType.has-popup': 42,
343
+ 'AtspiStateType.has-tooltip': 13,
344
+ 'AtspiStateType.horizontal': 14,
345
+ 'AtspiStateType.iconified': 15,
346
+ 'AtspiStateType.indeterminate': 32,
347
+ 'AtspiStateType.invalid': 0,
348
+ 'AtspiStateType.invalid-entry': 36,
349
+ 'AtspiStateType.is-default': 39,
350
+ 'AtspiStateType.last-defined': 44,
351
+ 'AtspiStateType.manages-descendants': 31,
352
+ 'AtspiStateType.modal': 16,
353
+ 'AtspiStateType.multi-line': 17,
354
+ 'AtspiStateType.multiselectable': 18,
355
+ 'AtspiStateType.opaque': 19,
356
+ 'AtspiStateType.pressed': 20,
357
+ 'AtspiStateType.read-only': 43,
358
+ 'AtspiStateType.required': 33,
359
+ 'AtspiStateType.resizable': 21,
360
+ 'AtspiStateType.selectable': 22,
361
+ 'AtspiStateType.selectable-text': 38,
362
+ 'AtspiStateType.selected': 23,
363
+ 'AtspiStateType.sensitive': 24,
364
+ 'AtspiStateType.showing': 25,
365
+ 'AtspiStateType.single-line': 26,
366
+ 'AtspiStateType.stale': 27,
367
+ 'AtspiStateType.supports-autocompletion': 37,
368
+ 'AtspiStateType.transient': 28,
369
+ 'AtspiStateType.truncated': 34,
370
+ 'AtspiStateType.vertical': 29,
371
+ 'AtspiStateType.visible': 30,
372
+ 'AtspiStateType.visited': 40,
373
+ 'AtspiTextBoundaryType.char': 0,
374
+ 'AtspiTextBoundaryType.last-defined': 7,
375
+ 'AtspiTextBoundaryType.line-end': 6,
376
+ 'AtspiTextBoundaryType.line-start': 5,
377
+ 'AtspiTextBoundaryType.sentence-end': 4,
378
+ 'AtspiTextBoundaryType.sentence-start': 3,
379
+ 'AtspiTextBoundaryType.word-end': 2,
380
+ 'AtspiTextBoundaryType.word-start': 1,
381
+ 'AtspiTextClipType.both': 3,
382
+ 'AtspiTextClipType.last-defined': 4,
383
+ 'AtspiTextClipType.max': 2,
384
+ 'AtspiTextClipType.min': 1,
385
+ 'AtspiTextClipType.none': 0,
386
+ 'AtspiTextGranularity.char': 0,
387
+ 'AtspiTextGranularity.line': 3,
388
+ 'AtspiTextGranularity.paragraph': 4,
389
+ 'AtspiTextGranularity.sentence': 2,
390
+ 'AtspiTextGranularity.word': 1,
391
+ };
392
+
393
+ // The nicks GIR marks `deprecated="1"`.
394
+ //
395
+ // Two members of one enum may share a value -- that is how GObject spells an alias, and
396
+ // `GTK_ALIGN_BASELINE` and `GTK_ALIGN_BASELINE_FILL` are both 4. `ENUM_VALUES` keeps
397
+ // both names, so nothing is lost, and this is what says which of the two a number should be
398
+ // spelled back as. Stated rather than derived: the pairing is visible in the values, the
399
+ // DIRECTION is not.
400
+ //
401
+ // Read it as evidence, not as a negative: 4 registered-enum members in the 718 GIRs carry
402
+ // the attribute at all, and 179 of the 182 value-sharing pairs carry it on neither half.
403
+ // A nick missing from here is a nick GIR says nothing about, not a nick GIR calls current.
404
+ export const ENUM_DEPRECATED = [];
405
+
406
+ // The declared remainder: nicks whose GIR `value` is not a number this can carry.
407
+ //
408
+ // Every nick in `ENUM_NICKS` is in `ENUM_VALUES` or here -- a nick in neither would be a
409
+ // silent drop. GIR carries two shapes no integer holds: a symbolic or absent value (Vala
410
+ // writes `(null)`, a char enum writes a letter) and an integer past
411
+ // `Number.MAX_SAFE_INTEGER`. The value kept here is the raw attribute, so the entry says
412
+ // WHAT was unreadable rather than only that something was. Measured over the 718 GIRs in
413
+ // ts-for-gir's `girs/`: 32 of 34096 registered-enum members, none in Gtk, Adw, GLib or Gio.
414
+ export const ENUM_VALUES_UNREADABLE = {};
415
+
416
+ // The number behind each member of a registered BITFIELD, keyed the same way.
417
+ //
418
+ // `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
419
+ // reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
420
+ // Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
421
+ // `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
422
+ // `number`, so a host without GI has nothing to compute one from. Counting is worst
423
+ // exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
424
+ // with their declaration position, against 29 of 672 enumeration members.
425
+ //
426
+ // A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
427
+ // `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
428
+ export const FLAG_VALUES = {
429
+ 'AtspiCache.all': 1073741823,
430
+ 'AtspiCache.attributes': 128,
431
+ 'AtspiCache.children': 2,
432
+ 'AtspiCache.default': 127,
433
+ 'AtspiCache.description': 8,
434
+ 'AtspiCache.interfaces': 64,
435
+ 'AtspiCache.name': 4,
436
+ 'AtspiCache.none': 0,
437
+ 'AtspiCache.parent': 1,
438
+ 'AtspiCache.role': 32,
439
+ 'AtspiCache.states': 16,
440
+ 'AtspiCache.undefined': 1073741824,
441
+ 'AtspiDeviceCapability.keyboard-grab': 4,
442
+ 'AtspiDeviceCapability.keyboard-monitor': 1,
443
+ 'AtspiDeviceCapability.keyboard-synth': 2,
444
+ 'AtspiDeviceCapability.pointer-monitor': 8,
445
+ 'AtspiDeviceCapability.pointer-synth': 16,
446
+ 'AtspiDeviceCapability.touch-monitor': 32,
447
+ 'AtspiDeviceCapability.touch-synth': 64,
448
+ 'AtspiKeyListenerSyncType.all-windows': 4,
449
+ 'AtspiKeyListenerSyncType.canconsume': 2,
450
+ 'AtspiKeyListenerSyncType.nosync': 0,
451
+ 'AtspiKeyListenerSyncType.synchronous': 1,
452
+ };
453
+
454
+ // The same declared remainder for the bitfields. Every one of the 13 members in ts-for-gir's
455
+ // `girs/` whose value is past `Number.MAX_SAFE_INTEGER` is a bitfield member (Fwupd, Qmi),
456
+ // so this is the table that shape actually reaches.
457
+ export const FLAG_VALUES_UNREADABLE = {};
458
+
459
+ // Declaration GType + property name -> the GType of that property's enum or bitfield.
460
+ //
461
+ // Without it the value tables above are half an answer. A host with no GI knows it must set
462
+ // `orientation` to the number behind the nick `vertical`; `ENUM_VALUES` is keyed
463
+ // `GtkOrientation.vertical`, and nothing else says that `orientation` is a
464
+ // `GtkOrientation`. Deriving it is not available: `never` is a member of several Gtk enums,
465
+ // and choosing between them produces a wrong number rather than a missing one.
466
+ //
467
+ // Only where the property's OWN type is the enum. An array of them and a union that mentions
468
+ // one are both entries a consumer would resolve wrongly, so neither is written.
469
+ //
470
+ // A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
471
+ // that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
472
+ // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
473
+ export const PROP_ENUMS = {};
474
+
475
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
476
+ //
477
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
478
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
479
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
480
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
481
+ //
482
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
483
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
484
+ // child. Absence therefore reads as "unknown" and never as "scalar".
485
+ export const PROP_TYPES = {
486
+ 'AtspiDevice.app-id': 'gchararray',
487
+ };
488
+
489
+ // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
490
+ //
491
+ // The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
492
+ // `accessibility { … }` block is typed by GTK's ARIA table instead, and the two disagree
493
+ // where it matters: `orientation` is settable on a `GtkLabel` that implements no
494
+ // `GtkOrientable` and has no such property, and `checked` is a `GtkAccessibleTristate`, so
495
+ // `checked: true` means the number 1 and not the boolean. A consumer typing those slots
496
+ // from the widget gets both wrong, silently.
497
+ //
498
+ // Read from each member's own documentation, which is where GTK keeps the table --
499
+ // `gtk_accessible_property_init_value()` is the C half and is not introspectable, the
500
+ // sentence is. Complete or absent, never partial: a member whose documentation states no
501
+ // value type fails generation and names itself, because a missing row is indistinguishable
502
+ // from "GTK has no such name" and the plausible fallback emits `true` where GTK means 1.
503
+ export const ARIA_VALUE_TYPES = {};
504
+
505
+ // The same keys, for the `'enum'` rows only -> the GType of the enum.
506
+ //
507
+ // The join on from a kind to a number, and a table of its own for the reason `PROP_ENUMS`
508
+ // is one: folding the GType into `ARIA_VALUE_TYPES` would make its values a mix of six
509
+ // reserved words and arbitrary GTypes, and telling them apart would be the consumer's
510
+ // problem. With this, `ARIA_VALUE_TYPES[k] === 'enum'` is the whole test, and
511
+ // `ENUM_NICKS[ARIA_VALUE_ENUMS[k]]` is the nick list.
512
+ export const ARIA_VALUE_ENUMS = {};
513
+
514
+ export const SLOT_CANDIDATES = {};
515
+
516
+ export const SINCE = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/atspi-2.0",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for Atspi-2.0",
5
5
  "type": "module",
6
6
  "module": "atspi-2.0.js",
@@ -16,6 +16,11 @@
16
16
  "import": "./atspi-2.0-import.js",
17
17
  "default": "./atspi-2.0-import.js"
18
18
  },
19
+ "./vocabulary": {
20
+ "types": "./atspi-2.0-vocabulary.d.ts",
21
+ "import": "./atspi-2.0-vocabulary.js",
22
+ "default": "./atspi-2.0-vocabulary.js"
23
+ },
19
24
  "./atspi-2.0": {
20
25
  "types": "./atspi-2.0.d.ts",
21
26
  "import": "./atspi-2.0.js",
@@ -31,10 +36,10 @@
31
36
  "test": "tsc --project tsconfig.json"
32
37
  },
33
38
  "dependencies": {
34
- "@girs/gjs": "^5.2.0",
35
- "@girs/gobject-2.0": "^5.2.0",
36
- "@girs/glib-2.0": "^5.2.0",
37
- "@girs/dbus-1.0": "^5.2.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/gobject-2.0": "^5.4.0",
41
+ "@girs/glib-2.0": "^5.4.0",
42
+ "@girs/dbus-1.0": "^5.4.0" },
38
43
  "devDependencies": {
39
44
  "typescript": "*"
40
45
  },
package/tsconfig.json CHANGED
@@ -32,7 +32,7 @@
32
32
  ]
33
33
  }
34
34
  },
35
- "include": ["./atspi-2.0.d.ts"]
35
+ "include": ["./atspi-2.0.d.ts","./atspi-2.0-vocabulary.d.ts"]
36
36
  }
37
37
 
38
38