@girs/gspell-1 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/gspell-1)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gspell-1)
6
6
 
7
- GJS TypeScript type definitions for Gspell-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.2.0.
7
+ GJS TypeScript type definitions for Gspell-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.4.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for Gspell-1.
3
3
  *
4
- * GENERATED — do not edit. Provenance: Gspell-1 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned Atk.ImplementorIface
4
+ * GENERATED — do not edit. Provenance: Gspell-1 — dropped empty base(s): Atk.ImplementorIface
5
5
  *
6
6
  * 9 instantiable GTypes (of which 3 concrete widgets), 11 declarations, 0 enum nick unions, 0 slot candidates.
7
7
  *
@@ -26,6 +26,7 @@
26
26
 
27
27
  import type Gspell from './gspell-1.js';
28
28
  import type Gtk from '@girs/gtk-3.0';
29
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
29
30
  import type { GtkActionableConstructOnly, GtkActionableProps, GtkActivatableConstructOnly, GtkActivatableProps, GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkButtonConstructOnly, GtkButtonProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
30
31
 
31
32
  // ---------------------------------------------------------------------------
@@ -50,12 +51,12 @@ import type { GtkActionableConstructOnly, GtkActionableProps, GtkActivatableCons
50
51
  // GIR keeps them once, on the interface.
51
52
  // ---------------------------------------------------------------------------
52
53
 
53
- export interface GspellCheckerProps {
54
+ export interface GspellCheckerProps extends GObjectProps {
54
55
  /** The #GspellLanguage used. */
55
56
  language?: Gspell.Language | null;
56
57
  }
57
58
  /** Settable only at construction — a renderer must REBUILD, not patch. */
58
- export type GspellCheckerConstructOnly = never;
59
+ export type GspellCheckerConstructOnly = GObjectConstructOnly;
59
60
 
60
61
  export interface GspellCheckerDialogProps extends GtkDialogProps, GtkBuildableProps {
61
62
  /** The #GspellNavigator to use. */
@@ -64,7 +65,7 @@ export interface GspellCheckerDialogProps extends GtkDialogProps, GtkBuildablePr
64
65
  /** Settable only at construction — a renderer must REBUILD, not patch. */
65
66
  export type GspellCheckerDialogConstructOnly = GtkDialogConstructOnly | GtkBuildableConstructOnly | 'spell-navigator';
66
67
 
67
- export interface GspellEntryProps {
68
+ export interface GspellEntryProps extends GObjectProps {
68
69
  /**
69
70
  * The #GtkEntry.
70
71
  * @since 1.4
@@ -78,9 +79,9 @@ export interface GspellEntryProps {
78
79
  'inline-spell-checking'?: boolean;
79
80
  }
80
81
  /** Settable only at construction — a renderer must REBUILD, not patch. */
81
- export type GspellEntryConstructOnly = 'entry';
82
+ export type GspellEntryConstructOnly = GObjectConstructOnly | 'entry';
82
83
 
83
- export interface GspellEntryBufferProps {
84
+ export interface GspellEntryBufferProps extends GObjectProps {
84
85
  /**
85
86
  * The #GtkEntryBuffer.
86
87
  * @since 1.4
@@ -93,16 +94,16 @@ export interface GspellEntryBufferProps {
93
94
  'spell-checker'?: Gspell.Checker | null;
94
95
  }
95
96
  /** Settable only at construction — a renderer must REBUILD, not patch. */
96
- export type GspellEntryBufferConstructOnly = 'buffer';
97
+ export type GspellEntryBufferConstructOnly = GObjectConstructOnly | 'buffer';
97
98
 
98
- export interface GspellLanguageChooserProps {
99
+ export interface GspellLanguageChooserProps extends GObjectProps {
99
100
  /** The selected #GspellLanguage. */
100
101
  language?: Gspell.Language | null;
101
102
  /** The empty string if the default language was set and the selection hasn't changed. */
102
103
  'language-code'?: string;
103
104
  }
104
105
  /** Settable only at construction — a renderer must REBUILD, not patch. */
105
- export type GspellLanguageChooserConstructOnly = never;
106
+ export type GspellLanguageChooserConstructOnly = GObjectConstructOnly;
106
107
 
107
108
  export interface GspellLanguageChooserButtonProps extends GtkButtonProps, GspellLanguageChooserProps, GtkActionableProps, GtkActivatableProps, GtkBuildableProps {
108
109
  }
@@ -114,28 +115,28 @@ export interface GspellLanguageChooserDialogProps extends GtkDialogProps, Gspell
114
115
  /** Settable only at construction — a renderer must REBUILD, not patch. */
115
116
  export type GspellLanguageChooserDialogConstructOnly = GtkDialogConstructOnly | GspellLanguageChooserConstructOnly | GtkBuildableConstructOnly;
116
117
 
117
- export interface GspellNavigatorProps {
118
+ export interface GspellNavigatorProps extends GInitiallyUnownedProps {
118
119
  }
119
120
  /** Settable only at construction — a renderer must REBUILD, not patch. */
120
- export type GspellNavigatorConstructOnly = never;
121
+ export type GspellNavigatorConstructOnly = GInitiallyUnownedConstructOnly;
121
122
 
122
- export interface GspellNavigatorTextViewProps extends GspellNavigatorProps {
123
+ export interface GspellNavigatorTextViewProps extends GInitiallyUnownedProps, GspellNavigatorProps {
123
124
  /** The #GtkTextView. */
124
125
  view?: Gtk.TextView;
125
126
  }
126
127
  /** Settable only at construction — a renderer must REBUILD, not patch. */
127
- export type GspellNavigatorTextViewConstructOnly = GspellNavigatorConstructOnly | 'view';
128
+ export type GspellNavigatorTextViewConstructOnly = GInitiallyUnownedConstructOnly | GspellNavigatorConstructOnly | 'view';
128
129
 
129
- export interface GspellTextBufferProps {
130
+ export interface GspellTextBufferProps extends GObjectProps {
130
131
  /** The #GtkTextBuffer. */
131
132
  buffer?: Gtk.TextBuffer;
132
133
  /** The #GspellChecker. */
133
134
  'spell-checker'?: Gspell.Checker | null;
134
135
  }
135
136
  /** Settable only at construction — a renderer must REBUILD, not patch. */
136
- export type GspellTextBufferConstructOnly = 'buffer';
137
+ export type GspellTextBufferConstructOnly = GObjectConstructOnly | 'buffer';
137
138
 
138
- export interface GspellTextViewProps {
139
+ export interface GspellTextViewProps extends GObjectProps {
139
140
  /**
140
141
  * When the context menu is shown, whether to add a sub-menu to select the language for the spell checking.
141
142
  * @since 1.2
@@ -151,7 +152,7 @@ export interface GspellTextViewProps {
151
152
  view?: Gtk.TextView;
152
153
  }
153
154
  /** Settable only at construction — a renderer must REBUILD, not patch. */
154
- export type GspellTextViewConstructOnly = 'view';
155
+ export type GspellTextViewConstructOnly = GObjectConstructOnly | 'view';
155
156
 
156
157
  // ---------------------------------------------------------------------------
157
158
  // The GType-keyed widget map.
@@ -256,6 +257,30 @@ export const PROVENANCE: {
256
257
  * GIRs disagreeing, which is what the main emitter answers `never` for as well.
257
258
  */
258
259
  readonly unresolvedProps: readonly string[];
260
+ /**
261
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
262
+ *
263
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
264
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
265
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
266
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
267
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
268
+ *
269
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
270
+ * inventing the namespace name there is a confident wrong answer in place of a missing
271
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
272
+ */
273
+ readonly identifierPrefixes: readonly string[];
274
+ /**
275
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
276
+ *
277
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
278
+ * settable property, `GApplication` has its properties in another package — and this
279
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
280
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
281
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
282
+ */
283
+ readonly requiredVocabularies: readonly string[];
259
284
  };
260
285
 
261
286
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -365,6 +390,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
365
390
  */
366
391
  export const PROP_ENUMS: Readonly<Record<string, string>>;
367
392
 
393
+ /**
394
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
395
+ *
396
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
397
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
398
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
399
+ * reads this one; a host resolving a nick to a number reads that one.
400
+ *
401
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
402
+ * like any other, so absence is readable as "unknown".
403
+ */
404
+ export const PROP_TYPES: Readonly<Record<string, string>>;
405
+
368
406
  /**
369
407
  * The kinds of value a GTK accessible property, relation or state takes.
370
408
  *
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of Gspell-1 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: Gspell-1 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned Atk.ImplementorIface
3
+ // GENERATED — do not edit. Provenance: Gspell-1 — dropped empty base(s): Atk.ImplementorIface
4
4
  //
5
5
  // The type half of this subpath is the sibling `.d.ts`. This file exists because
6
6
  // types are erased: a consumer that wants to ask the installed library whether every
@@ -11,10 +11,12 @@ export const PROVENANCE = {
11
11
  version: '1',
12
12
  libraryVersion: null,
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.Object', 'GObject.InitiallyUnowned', 'Atk.ImplementorIface'],
14
+ droppedBases: ['Atk.ImplementorIface'],
15
15
  inlinedBases: [],
16
16
  unsettableProps: [],
17
17
  unresolvedProps: [],
18
+ identifierPrefixes: ['Gspell'],
19
+ requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary'],
18
20
  };
19
21
 
20
22
  export const OWN_PROPS = {
@@ -40,15 +42,15 @@ export const OWN_SIGNALS = {
40
42
  // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
41
43
  // below for the narrower questions; they did not move.
42
44
  export const DECLS = {
43
- GspellChecker: ['GspellChecker'],
44
- GspellCheckerDialog: ['GspellCheckerDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
45
- GspellEntry: ['GspellEntry'],
46
- GspellEntryBuffer: ['GspellEntryBuffer'],
47
- GspellLanguageChooserButton: ['GspellLanguageChooserButton', 'GtkButton', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GspellLanguageChooser', 'GtkActionable', 'GtkActivatable', 'GtkBuildable'],
48
- GspellLanguageChooserDialog: ['GspellLanguageChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GspellLanguageChooser', 'GtkBuildable'],
49
- GspellNavigatorTextView: ['GspellNavigatorTextView', 'GspellNavigator'],
50
- GspellTextBuffer: ['GspellTextBuffer'],
51
- GspellTextView: ['GspellTextView'],
45
+ GspellChecker: ['GspellChecker', 'GObject'],
46
+ GspellCheckerDialog: ['GspellCheckerDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
47
+ GspellEntry: ['GspellEntry', 'GObject'],
48
+ GspellEntryBuffer: ['GspellEntryBuffer', 'GObject'],
49
+ GspellLanguageChooserButton: ['GspellLanguageChooserButton', 'GtkButton', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GspellLanguageChooser', 'GtkActionable', 'GtkActivatable', 'GtkBuildable'],
50
+ GspellLanguageChooserDialog: ['GspellLanguageChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GspellLanguageChooser', 'GtkBuildable'],
51
+ GspellNavigatorTextView: ['GspellNavigatorTextView', 'GInitiallyUnowned', 'GObject', 'GspellNavigator'],
52
+ GspellTextBuffer: ['GspellTextBuffer', 'GObject'],
53
+ GspellTextView: ['GspellTextView', 'GObject'],
52
54
  };
53
55
 
54
56
  // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
@@ -134,6 +136,31 @@ export const FLAG_VALUES_UNREADABLE = {};
134
136
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
135
137
  export const PROP_ENUMS = {};
136
138
 
139
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
140
+ //
141
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
142
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
143
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
144
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
145
+ //
146
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
147
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
148
+ // child. Absence therefore reads as "unknown" and never as "scalar".
149
+ export const PROP_TYPES = {
150
+ 'GspellCheckerDialog.spell-navigator': 'GspellNavigator',
151
+ 'GspellEntry.entry': 'GtkEntry',
152
+ 'GspellEntry.inline-spell-checking': 'gboolean',
153
+ 'GspellEntryBuffer.buffer': 'GtkEntryBuffer',
154
+ 'GspellEntryBuffer.spell-checker': 'GspellChecker',
155
+ 'GspellLanguageChooser.language-code': 'gchararray',
156
+ 'GspellNavigatorTextView.view': 'GtkTextView',
157
+ 'GspellTextBuffer.buffer': 'GtkTextBuffer',
158
+ 'GspellTextBuffer.spell-checker': 'GspellChecker',
159
+ 'GspellTextView.enable-language-menu': 'gboolean',
160
+ 'GspellTextView.inline-spell-checking': 'gboolean',
161
+ 'GspellTextView.view': 'GtkTextView',
162
+ };
163
+
137
164
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
138
165
  //
139
166
  // The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gspell-1",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for Gspell-1",
5
5
  "type": "module",
6
6
  "module": "gspell-1.js",
@@ -36,20 +36,20 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.2.0",
40
- "@girs/gtk-3.0": "^5.2.0",
41
- "@girs/xlib-2.0": "^5.2.0",
42
- "@girs/gdk-3.0": "^5.2.0",
43
- "@girs/cairo-1.0": "^5.2.0",
44
- "@girs/gobject-2.0": "^5.2.0",
45
- "@girs/glib-2.0": "^5.2.0",
46
- "@girs/pango-1.0": "^5.2.0",
47
- "@girs/harfbuzz-0.0": "^5.2.0",
48
- "@girs/freetype2-2.0": "^5.2.0",
49
- "@girs/gio-2.0": "^5.2.0",
50
- "@girs/gmodule-2.0": "^5.2.0",
51
- "@girs/gdkpixbuf-2.0": "^5.2.0",
52
- "@girs/atk-1.0": "^5.2.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/gtk-3.0": "^5.4.0",
41
+ "@girs/xlib-2.0": "^5.4.0",
42
+ "@girs/gdk-3.0": "^5.4.0",
43
+ "@girs/cairo-1.0": "^5.4.0",
44
+ "@girs/gobject-2.0": "^5.4.0",
45
+ "@girs/glib-2.0": "^5.4.0",
46
+ "@girs/pango-1.0": "^5.4.0",
47
+ "@girs/harfbuzz-0.0": "^5.4.0",
48
+ "@girs/freetype2-2.0": "^5.4.0",
49
+ "@girs/gio-2.0": "^5.4.0",
50
+ "@girs/gmodule-2.0": "^5.4.0",
51
+ "@girs/gdkpixbuf-2.0": "^5.4.0",
52
+ "@girs/atk-1.0": "^5.4.0" },
53
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },