@girs/xed-1.0 5.2.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/xed-1.0)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/xed-1.0)
6
6
 
7
- GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.2.0.
7
+ GJS TypeScript type definitions for Xed-1.0 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/xed-1.0",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "GJS TypeScript type definitions for Xed-1.0",
5
5
  "type": "module",
6
6
  "module": "xed-1.0.js",
@@ -36,21 +36,21 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.2.0",
40
- "@girs/gtksource-4": "^5.2.0",
41
- "@girs/gtk-3.0": "^5.2.0",
42
- "@girs/xlib-2.0": "^5.2.0",
43
- "@girs/gdk-3.0": "^5.2.0",
44
- "@girs/cairo-1.0": "^5.2.0",
45
- "@girs/gobject-2.0": "^5.2.0",
46
- "@girs/glib-2.0": "^5.2.0",
47
- "@girs/pango-1.0": "^5.2.0",
48
- "@girs/harfbuzz-0.0": "^5.2.0",
49
- "@girs/freetype2-2.0": "^5.2.0",
50
- "@girs/gio-2.0": "^5.2.0",
51
- "@girs/gmodule-2.0": "^5.2.0",
52
- "@girs/gdkpixbuf-2.0": "^5.2.0",
53
- "@girs/atk-1.0": "^5.2.0" },
39
+ "@girs/gjs": "^5.3.0",
40
+ "@girs/gtksource-4": "^5.3.0",
41
+ "@girs/gtk-3.0": "^5.3.0",
42
+ "@girs/xlib-2.0": "^5.3.0",
43
+ "@girs/gdk-3.0": "^5.3.0",
44
+ "@girs/cairo-1.0": "^5.3.0",
45
+ "@girs/gobject-2.0": "^5.3.0",
46
+ "@girs/glib-2.0": "^5.3.0",
47
+ "@girs/pango-1.0": "^5.3.0",
48
+ "@girs/harfbuzz-0.0": "^5.3.0",
49
+ "@girs/freetype2-2.0": "^5.3.0",
50
+ "@girs/gio-2.0": "^5.3.0",
51
+ "@girs/gmodule-2.0": "^5.3.0",
52
+ "@girs/gdkpixbuf-2.0": "^5.3.0",
53
+ "@girs/atk-1.0": "^5.3.0" },
54
54
  "devDependencies": {
55
55
  "typescript": "*"
56
56
  },
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for Xed-1.0.
3
3
  *
4
- * GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.Object Gio.ActionGroup Gio.ActionMap GObject.InitiallyUnowned Atk.ImplementorIface — inlined base(s) their owner's vocabulary does not emit: Gio.Application
4
+ * GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): Atk.ImplementorIface
5
5
  *
6
- * 14 instantiable GTypes (of which 10 concrete widgets), 15 declarations (1 inlined from a namespace whose vocabulary does not emit them), 2 enum nick unions, 2 slot candidates.
6
+ * 14 instantiable GTypes (of which 10 concrete widgets), 14 declarations, 2 enum nick unions, 2 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
@@ -24,9 +24,10 @@
24
24
  * and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
25
25
  */
26
26
 
27
- import type Gio from '@girs/gio-2.0';
28
27
  import type Gtk from '@girs/gtk-3.0';
29
28
  import type Xed from './xed-1.0.js';
29
+ import type { GActionGroupConstructOnly, GActionGroupProps, GActionMapConstructOnly, GActionMapProps, GApplicationConstructOnly, GApplicationProps } from '@girs/gio-2.0/vocabulary';
30
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
30
31
  import type { GtkApplicationConstructOnly, GtkApplicationProps, GtkApplicationWindowConstructOnly, GtkApplicationWindowProps, GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkFileChooserConstructOnly, GtkFileChooserDialogConstructOnly, GtkFileChooserDialogProps, GtkFileChooserProps, GtkInfoBarConstructOnly, GtkInfoBarProps, GtkNotebookConstructOnly, GtkNotebookProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkOrientationNick, GtkScrollableConstructOnly, GtkScrollableProps, GtkStatusbarConstructOnly, GtkStatusbarProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
31
32
  import type { GtkSourceBufferConstructOnly, GtkSourceBufferProps, GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-4/vocabulary';
32
33
 
@@ -53,52 +54,10 @@ export type XedTabStateNick = 'state-normal' | 'state-loading' | 'state-revertin
53
54
  // GIR keeps them once, on the interface.
54
55
  // ---------------------------------------------------------------------------
55
56
 
56
- /** `GApplication` is the core class for application support. */
57
- export interface GApplicationProps {
58
- /**
59
- * The group of actions that the application exports.
60
- * @since 2.28
61
- * @deprecated since 2.32: Use the [iface@Gio.ActionMap] interface instead.
62
- */
63
- 'action-group'?: Gio.ActionGroup;
64
- /**
65
- * The unique identifier for the application.
66
- * @since 2.28
67
- * @default NULL
68
- */
69
- 'application-id'?: string | null;
70
- /**
71
- * Flags specifying the behaviour of the application.
72
- * @since 2.28
73
- * @default G_APPLICATION_FLAGS_NONE
74
- */
75
- flags?: number;
76
- /**
77
- * Time (in milliseconds) to stay alive after becoming idle.
78
- * @since 2.28
79
- * @default 0
80
- */
81
- 'inactivity-timeout'?: number;
82
- /**
83
- * The base resource path for the application.
84
- * @since 2.28
85
- * @default NULL
86
- */
87
- 'resource-base-path'?: string | null;
88
- /**
89
- * The human-readable version number of the application.
90
- * @since 2.80
91
- * @default NULL
92
- */
93
- version?: string | null;
57
+ export interface XedAppProps extends GtkApplicationProps, GActionGroupProps, GActionMapProps {
94
58
  }
95
59
  /** Settable only at construction — a renderer must REBUILD, not patch. */
96
- export type GApplicationConstructOnly = never;
97
-
98
- export interface XedAppProps extends GtkApplicationProps {
99
- }
100
- /** Settable only at construction — a renderer must REBUILD, not patch. */
101
- export type XedAppConstructOnly = GtkApplicationConstructOnly;
60
+ export type XedAppConstructOnly = GtkApplicationConstructOnly | GActionGroupConstructOnly | GActionMapConstructOnly;
102
61
 
103
62
  export interface XedDocumentProps extends GtkSourceBufferProps {
104
63
  /**
@@ -132,16 +91,16 @@ export interface XedFileChooserDialogProps extends GtkFileChooserDialogProps, Gt
132
91
  /** Settable only at construction — a renderer must REBUILD, not patch. */
133
92
  export type XedFileChooserDialogConstructOnly = GtkFileChooserDialogConstructOnly | GtkBuildableConstructOnly | GtkFileChooserConstructOnly;
134
93
 
135
- export interface XedMessageProps {
94
+ export interface XedMessageProps extends GObjectProps {
136
95
  type?: Xed.MessageType;
137
96
  }
138
97
  /** Settable only at construction — a renderer must REBUILD, not patch. */
139
- export type XedMessageConstructOnly = 'type';
98
+ export type XedMessageConstructOnly = GObjectConstructOnly | 'type';
140
99
 
141
- export interface XedMessageBusProps {
100
+ export interface XedMessageBusProps extends GObjectProps {
142
101
  }
143
102
  /** Settable only at construction — a renderer must REBUILD, not patch. */
144
- export type XedMessageBusConstructOnly = never;
103
+ export type XedMessageBusConstructOnly = GObjectConstructOnly;
145
104
 
146
105
  export interface XedNotebookProps extends GtkNotebookProps, GtkBuildableProps {
147
106
  }
@@ -186,10 +145,10 @@ export interface XedViewProps extends GtkSourceViewProps, GtkBuildableProps, Gtk
186
145
  /** Settable only at construction — a renderer must REBUILD, not patch. */
187
146
  export type XedViewConstructOnly = GtkSourceViewConstructOnly | GtkBuildableConstructOnly | GtkScrollableConstructOnly;
188
147
 
189
- export interface XedWindowProps extends GtkApplicationWindowProps, GtkBuildableProps {
148
+ export interface XedWindowProps extends GtkApplicationWindowProps, GActionGroupProps, GActionMapProps, GtkBuildableProps {
190
149
  }
191
150
  /** Settable only at construction — a renderer must REBUILD, not patch. */
192
- export type XedWindowConstructOnly = GtkApplicationWindowConstructOnly | GtkBuildableConstructOnly;
151
+ export type XedWindowConstructOnly = GtkApplicationWindowConstructOnly | GActionGroupConstructOnly | GActionMapConstructOnly | GtkBuildableConstructOnly;
193
152
 
194
153
  // ---------------------------------------------------------------------------
195
154
  // The GType-keyed widget map.
@@ -347,6 +306,30 @@ export const PROVENANCE: {
347
306
  * GIRs disagreeing, which is what the main emitter answers `never` for as well.
348
307
  */
349
308
  readonly unresolvedProps: readonly string[];
309
+ /**
310
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
311
+ *
312
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
313
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
314
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
315
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
316
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
317
+ *
318
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
319
+ * inventing the namespace name there is a confident wrong answer in place of a missing
320
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
321
+ */
322
+ readonly identifierPrefixes: readonly string[];
323
+ /**
324
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
325
+ *
326
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
327
+ * settable property, `GApplication` has its properties in another package — and this
328
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
329
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
330
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
331
+ */
332
+ readonly requiredVocabularies: readonly string[];
350
333
  };
351
334
 
352
335
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of Xed-1.0 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.Object Gio.ActionGroup Gio.ActionMap GObject.InitiallyUnowned Atk.ImplementorIface — inlined base(s) their owner's vocabulary does not emit: Gio.Application
3
+ // GENERATED — do not edit. Provenance: Xed-1.0 — 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,14 +11,15 @@ export const PROVENANCE = {
11
11
  version: '1.0',
12
12
  libraryVersion: null,
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.Object', 'Gio.ActionGroup', 'Gio.ActionMap', 'GObject.InitiallyUnowned', 'Atk.ImplementorIface'],
15
- inlinedBases: ['Gio.Application'],
14
+ droppedBases: ['Atk.ImplementorIface'],
15
+ inlinedBases: [],
16
16
  unsettableProps: [],
17
17
  unresolvedProps: [],
18
+ identifierPrefixes: ['Xed'],
19
+ requiredVocabularies: ['@girs/gio-2.0/vocabulary', '@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary', '@girs/gtksource-4/vocabulary'],
18
20
  };
19
21
 
20
22
  export const OWN_PROPS = {
21
- GApplication: ['action-group', 'application-id', 'flags', 'inactivity-timeout', 'resource-base-path', 'version'],
22
23
  XedDocument: ['content-type', 'shortname', 'use-gvfs-metadata'],
23
24
  XedEncodingsComboBox: ['save-mode'],
24
25
  XedMessage: ['type'],
@@ -28,7 +29,6 @@ export const OWN_PROPS = {
28
29
  };
29
30
 
30
31
  export const OWN_SIGNALS = {
31
- GApplication: ['activate', 'command-line', 'handle-local-options', 'name-lost', 'open', 'shutdown', 'startup'],
32
32
  XedDocument: ['cursor-moved', 'load', 'loaded', 'save', 'saved'],
33
33
  XedMessageBus: ['dispatch', 'registered', 'unregistered'],
34
34
  XedNotebook: ['tab-added', 'tab-close-request', 'tab-detached', 'tab-removed', 'tabs-reordered'],
@@ -45,20 +45,20 @@ export const OWN_SIGNALS = {
45
45
  // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
46
46
  // below for the narrower questions; they did not move.
47
47
  export const DECLS = {
48
- XedApp: ['XedApp', 'GtkApplication', 'GApplication'],
49
- XedDocument: ['XedDocument', 'GtkSourceBuffer', 'GtkTextBuffer'],
50
- XedEncodingsComboBox: ['XedEncodingsComboBox', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
51
- XedFileChooserDialog: ['XedFileChooserDialog', 'GtkFileChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkFileChooser'],
52
- XedMessage: ['XedMessage'],
53
- XedMessageBus: ['XedMessageBus'],
54
- XedNotebook: ['XedNotebook', 'GtkNotebook', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
55
- XedPanel: ['XedPanel', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
56
- XedProgressInfoBar: ['XedProgressInfoBar', 'GtkInfoBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
57
- XedSearchbar: ['XedSearchbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
58
- XedStatusbar: ['XedStatusbar', 'GtkStatusbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
59
- XedTab: ['XedTab', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
60
- XedView: ['XedView', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
61
- XedWindow: ['XedWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
48
+ XedApp: ['XedApp', 'GtkApplication', 'GApplication', 'GObject', 'GActionGroup', 'GActionMap'],
49
+ XedDocument: ['XedDocument', 'GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
50
+ XedEncodingsComboBox: ['XedEncodingsComboBox', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
51
+ XedFileChooserDialog: ['XedFileChooserDialog', 'GtkFileChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkFileChooser'],
52
+ XedMessage: ['XedMessage', 'GObject'],
53
+ XedMessageBus: ['XedMessageBus', 'GObject'],
54
+ XedNotebook: ['XedNotebook', 'GtkNotebook', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
55
+ XedPanel: ['XedPanel', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
56
+ XedProgressInfoBar: ['XedProgressInfoBar', 'GtkInfoBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
57
+ XedSearchbar: ['XedSearchbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
58
+ XedStatusbar: ['XedStatusbar', 'GtkStatusbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
59
+ XedTab: ['XedTab', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
60
+ XedView: ['XedView', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
61
+ XedWindow: ['XedWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GActionGroup', 'GActionMap', 'GtkBuildable'],
62
62
  };
63
63
 
64
64
  // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
@@ -69,6 +69,7 @@ export const DECLS = {
69
69
  export const CHILD_HOLDERS = [];
70
70
 
71
71
  export const ENUM_NICKS = {
72
+ GtkOrientation: ['horizontal', 'vertical'],
72
73
  XedSearchMode: ['search', 'replace'],
73
74
  XedTabState: ['state-normal', 'state-loading', 'state-reverting', 'state-saving', 'state-printing', 'state-print-previewing', 'state-showing-print-preview', 'state-generic-not-editable', 'state-loading-error', 'state-reverting-error', 'state-saving-error', 'state-generic-error', 'state-closing', 'state-externally-modified-notification', 'num-of-states'],
74
75
  };
@@ -88,6 +89,8 @@ export const ENUM_NICKS = {
88
89
  // vocabulary describes but the host predates then looks like a missing number rather than a
89
90
  // version gap.
90
91
  export const ENUM_VALUES = {
92
+ 'GtkOrientation.horizontal': 0,
93
+ 'GtkOrientation.vertical': 1,
91
94
  'XedSearchMode.replace': 1,
92
95
  'XedSearchMode.search': 0,
93
96
  'XedTabState.num-of-states': 14,
@@ -143,17 +146,6 @@ export const ENUM_VALUES_UNREADABLE = {};
143
146
  // A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
144
147
  // `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
145
148
  export const FLAG_VALUES = {
146
- 'GApplicationFlags.allow-replacement': 128,
147
- 'GApplicationFlags.can-override-app-id': 64,
148
- 'GApplicationFlags.default-flags': 0,
149
- 'GApplicationFlags.flags-none': 0,
150
- 'GApplicationFlags.handles-command-line': 8,
151
- 'GApplicationFlags.handles-open': 4,
152
- 'GApplicationFlags.is-launcher': 2,
153
- 'GApplicationFlags.is-service': 1,
154
- 'GApplicationFlags.non-unique': 32,
155
- 'GApplicationFlags.replace': 256,
156
- 'GApplicationFlags.send-environment': 16,
157
149
  'XedDebugSection.debug-app': 256,
158
150
  'XedDebugSection.debug-commands': 128,
159
151
  'XedDebugSection.debug-document': 64,
@@ -198,7 +190,6 @@ export const FLAG_VALUES_UNREADABLE = {};
198
190
  // that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
199
191
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
200
192
  export const PROP_ENUMS = {
201
- 'GApplication.flags': 'GApplicationFlags',
202
193
  'XedPanel.orientation': 'GtkOrientation',
203
194
  };
204
195
 
@@ -236,14 +227,4 @@ export const SLOT_CANDIDATES = {
236
227
  },
237
228
  };
238
229
 
239
- export const SINCE = {
240
- 'GApplication': '2.28',
241
- 'GApplication.action-group': '2.28',
242
- 'GApplication.application-id': '2.28',
243
- 'GApplication.flags': '2.28',
244
- 'GApplication.inactivity-timeout': '2.28',
245
- 'GApplication.resource-base-path': '2.28',
246
- 'GApplication.version': '2.80',
247
- 'GApplication::handle-local-options': '2.40',
248
- 'GApplication::name-lost': '2.60',
249
- };
230
+ export const SINCE = {};