@girs/foundryadw-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/foundryadw-1)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/foundryadw-1)
6
6
 
7
- GJS TypeScript type definitions for FoundryAdw-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.2.0.
7
+ GJS TypeScript type definitions for FoundryAdw-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,9 +1,9 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for FoundryAdw-1.
3
3
  *
4
- * GENERATED — do not edit. Provenance: FoundryAdw-1 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned
4
+ * GENERATED — do not edit. Provenance: FoundryAdw-1
5
5
  *
6
- * 10 instantiable GTypes (of which 7 concrete widgets), 11 declarations, 1 enum nick unions, 12 slot candidates.
6
+ * 10 instantiable GTypes (of which 7 concrete widgets), 11 declarations, 0 enum nick unions, 12 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
@@ -30,6 +30,8 @@ import type Gdk from '@girs/gdk-4.0';
30
30
  import type Gio from '@girs/gio-2.0';
31
31
  import type Gtk from '@girs/gtk-4.0';
32
32
  import type { AdwDialogConstructOnly, AdwDialogProps, AdwEntryRowConstructOnly, AdwEntryRowProps, AdwPreferencesRowConstructOnly, AdwPreferencesRowProps } from '@girs/adw-1/vocabulary';
33
+ import type { GFileTypeNick } from '@girs/gio-2.0/vocabulary';
34
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
33
35
  import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkActionableConstructOnly, GtkActionableProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkEditableConstructOnly, GtkEditableProps, GtkListBoxRowConstructOnly, GtkListBoxRowProps, GtkShortcutManagerConstructOnly, GtkShortcutManagerProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-4.0/vocabulary';
34
36
 
35
37
  // ---------------------------------------------------------------------------
@@ -42,7 +44,7 @@ import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkActionableConst
42
44
  // Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
43
45
  // ---------------------------------------------------------------------------
44
46
 
45
- export type GFileTypeNick = 'unknown' | 'regular' | 'directory' | 'symbolic-link' | 'special' | 'shortcut' | 'mountable';
47
+
46
48
 
47
49
  // ---------------------------------------------------------------------------
48
50
  // Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
@@ -101,10 +103,10 @@ export interface FoundryPathBarProps extends GtkWidgetProps, GtkAccessibleProps,
101
103
  /** Settable only at construction — a renderer must REBUILD, not patch. */
102
104
  export type FoundryPathBarConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
103
105
 
104
- export interface FoundryPathNavigatorProps {
106
+ export interface FoundryPathNavigatorProps extends GObjectProps {
105
107
  }
106
108
  /** Settable only at construction — a renderer must REBUILD, not patch. */
107
- export type FoundryPathNavigatorConstructOnly = never;
109
+ export type FoundryPathNavigatorConstructOnly = GObjectConstructOnly;
108
110
 
109
111
  export interface FoundrySearchDialogProps extends AdwDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
110
112
  context?: Foundry.Context;
@@ -317,6 +319,30 @@ export const PROVENANCE: {
317
319
  * GIRs disagreeing, which is what the main emitter answers `never` for as well.
318
320
  */
319
321
  readonly unresolvedProps: readonly string[];
322
+ /**
323
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
324
+ *
325
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
326
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
327
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
328
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
329
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
330
+ *
331
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
332
+ * inventing the namespace name there is a confident wrong answer in place of a missing
333
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
334
+ */
335
+ readonly identifierPrefixes: readonly string[];
336
+ /**
337
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
338
+ *
339
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
340
+ * settable property, `GApplication` has its properties in another package — and this
341
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
342
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
343
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
344
+ */
345
+ readonly requiredVocabularies: readonly string[];
320
346
  };
321
347
 
322
348
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -426,6 +452,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
426
452
  */
427
453
  export const PROP_ENUMS: Readonly<Record<string, string>>;
428
454
 
455
+ /**
456
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
457
+ *
458
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
459
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
460
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
461
+ * reads this one; a host resolving a nick to a number reads that one.
462
+ *
463
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
464
+ * like any other, so absence is readable as "unknown".
465
+ */
466
+ export const PROP_TYPES: Readonly<Record<string, string>>;
467
+
429
468
  /**
430
469
  * The kinds of value a GTK accessible property, relation or state takes.
431
470
  *
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of FoundryAdw-1 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: FoundryAdw-1 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned
3
+ // GENERATED — do not edit. Provenance: FoundryAdw-1
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'],
14
+ droppedBases: [],
15
15
  inlinedBases: [],
16
16
  unsettableProps: [],
17
17
  unresolvedProps: [],
18
+ identifierPrefixes: ['Foundry'],
19
+ requiredVocabularies: ['@girs/adw-1/vocabulary', '@girs/gio-2.0/vocabulary', '@girs/gobject-2.0/vocabulary', '@girs/gtk-4.0/vocabulary'],
18
20
  };
19
21
 
20
22
  export const OWN_PROPS = {
@@ -43,16 +45,16 @@ export const OWN_SIGNALS = {
43
45
  // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
44
46
  // below for the narrower questions; they did not move.
45
47
  export const DECLS = {
46
- FoundryDocumentationNavigator: ['FoundryDocumentationNavigator', 'FoundryPathNavigator'],
47
- FoundryFileNavigator: ['FoundryFileNavigator', 'FoundryPathNavigator'],
48
- FoundryFileRow: ['FoundryFileRow', 'AdwEntryRow', 'AdwPreferencesRow', 'GtkListBoxRow', 'GtkWidget', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget', 'GtkEditable'],
49
- FoundryPage: ['FoundryPage', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
50
- FoundryPanelBar: ['FoundryPanelBar', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
51
- FoundryPathBar: ['FoundryPathBar', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
52
- FoundrySearchDialog: ['FoundrySearchDialog', 'AdwDialog', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkShortcutManager'],
53
- FoundrySymbolNavigator: ['FoundrySymbolNavigator', 'FoundryPathNavigator'],
54
- FoundryTreeExpander: ['FoundryTreeExpander', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
55
- FoundryWorkspace: ['FoundryWorkspace', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
48
+ FoundryDocumentationNavigator: ['FoundryDocumentationNavigator', 'FoundryPathNavigator', 'GObject'],
49
+ FoundryFileNavigator: ['FoundryFileNavigator', 'FoundryPathNavigator', 'GObject'],
50
+ FoundryFileRow: ['FoundryFileRow', 'AdwEntryRow', 'AdwPreferencesRow', 'GtkListBoxRow', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget', 'GtkEditable'],
51
+ FoundryPage: ['FoundryPage', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
52
+ FoundryPanelBar: ['FoundryPanelBar', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
53
+ FoundryPathBar: ['FoundryPathBar', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
54
+ FoundrySearchDialog: ['FoundrySearchDialog', 'AdwDialog', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkShortcutManager'],
55
+ FoundrySymbolNavigator: ['FoundrySymbolNavigator', 'FoundryPathNavigator', 'GObject'],
56
+ FoundryTreeExpander: ['FoundryTreeExpander', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
57
+ FoundryWorkspace: ['FoundryWorkspace', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
56
58
  };
57
59
 
58
60
  // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
@@ -150,6 +152,57 @@ export const PROP_ENUMS = {
150
152
  'FoundryFileRow.file-type': 'GFileType',
151
153
  };
152
154
 
155
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
156
+ //
157
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
158
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
159
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
160
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
161
+ //
162
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
163
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
164
+ // child. Absence therefore reads as "unknown" and never as "scalar".
165
+ export const PROP_TYPES = {
166
+ 'FoundryDocumentationNavigator.documentation': 'FoundryDocumentation',
167
+ 'FoundryFileNavigator.file': 'GFile',
168
+ 'FoundryFileRow.file': 'GFile',
169
+ 'FoundryFileRow.file-type': 'GFileType',
170
+ 'FoundryPage.auxiliary': 'GtkWidget',
171
+ 'FoundryPage.content': 'GtkWidget',
172
+ 'FoundryPage.needs-attention': 'gboolean',
173
+ 'FoundryPanelBar.show-bottom': 'gboolean',
174
+ 'FoundryPanelBar.show-start': 'gboolean',
175
+ 'FoundryPanelBar.workspace': 'FoundryWorkspace',
176
+ 'FoundryPathBar.root': 'FoundryPathNavigator',
177
+ 'FoundryPathBar.selected-item': 'FoundryPathNavigator',
178
+ 'FoundrySearchDialog.context': 'FoundryContext',
179
+ 'FoundrySearchDialog.search-text': 'gchararray',
180
+ 'FoundrySymbolNavigator.symbol': 'FoundrySymbol',
181
+ 'FoundryTreeExpander.activate-on-click': 'gboolean',
182
+ 'FoundryTreeExpander.expanded-icon': 'GIcon',
183
+ 'FoundryTreeExpander.expanded-icon-name': 'gchararray',
184
+ 'FoundryTreeExpander.expanded-paintable': 'GdkPaintable',
185
+ 'FoundryTreeExpander.icon': 'GIcon',
186
+ 'FoundryTreeExpander.icon-name': 'gchararray',
187
+ 'FoundryTreeExpander.ignored': 'gboolean',
188
+ 'FoundryTreeExpander.list-row': 'GtkTreeListRow',
189
+ 'FoundryTreeExpander.menu-model': 'GMenuModel',
190
+ 'FoundryTreeExpander.paintable': 'GdkPaintable',
191
+ 'FoundryTreeExpander.suffix': 'GtkWidget',
192
+ 'FoundryTreeExpander.title': 'gchararray',
193
+ 'FoundryTreeExpander.use-markup': 'gboolean',
194
+ 'FoundryWorkspace.auxiliary-placeholder': 'GtkWidget',
195
+ 'FoundryWorkspace.collapsed-titlebar': 'GtkWidget',
196
+ 'FoundryWorkspace.context': 'FoundryContext',
197
+ 'FoundryWorkspace.primary-menu': 'GMenuModel',
198
+ 'FoundryWorkspace.show-auxiliary': 'gboolean',
199
+ 'FoundryWorkspace.show-sidebar': 'gboolean',
200
+ 'FoundryWorkspace.show-utilities': 'gboolean',
201
+ 'FoundryWorkspace.sidebar-titlebar': 'GtkWidget',
202
+ 'FoundryWorkspace.status-widget': 'GtkWidget',
203
+ 'FoundryWorkspace.titlebar': 'GtkWidget',
204
+ };
205
+
153
206
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
154
207
  //
155
208
  // 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/foundryadw-1",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for FoundryAdw-1",
5
5
  "type": "module",
6
6
  "module": "foundryadw-1.js",
@@ -36,29 +36,29 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.2.0",
40
- "@girs/peas-2": "^5.2.0",
41
- "@girs/gio-2.0": "^5.2.0",
42
- "@girs/gobject-2.0": "^5.2.0",
43
- "@girs/glib-2.0": "^5.2.0",
44
- "@girs/gmodule-2.0": "^5.2.0",
45
- "@girs/gtk-4.0": "^5.2.0",
46
- "@girs/gsk-4.0": "^5.2.0",
47
- "@girs/graphene-1.0": "^5.2.0",
48
- "@girs/gdk-4.0": "^5.2.0",
49
- "@girs/cairo-1.0": "^5.2.0",
50
- "@girs/pangocairo-1.0": "^5.2.0",
51
- "@girs/pango-1.0": "^5.2.0",
52
- "@girs/harfbuzz-0.0": "^5.2.0",
53
- "@girs/freetype2-2.0": "^5.2.0",
54
- "@girs/gdkpixbuf-2.0": "^5.2.0",
55
- "@girs/foundrygtk-1": "^5.2.0",
56
- "@girs/json-1.0": "^5.2.0",
57
- "@girs/gtksource-5": "^5.2.0",
58
- "@girs/foundry-1": "^5.2.0",
59
- "@girs/dex-1": "^5.2.0",
60
- "@girs/giounix-2.0": "^5.2.0",
61
- "@girs/adw-1": "^5.2.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/peas-2": "^5.4.0",
41
+ "@girs/gio-2.0": "^5.4.0",
42
+ "@girs/gobject-2.0": "^5.4.0",
43
+ "@girs/glib-2.0": "^5.4.0",
44
+ "@girs/gmodule-2.0": "^5.4.0",
45
+ "@girs/gtk-4.0": "^5.4.0",
46
+ "@girs/gsk-4.0": "^5.4.0",
47
+ "@girs/graphene-1.0": "^5.4.0",
48
+ "@girs/gdk-4.0": "^5.4.0",
49
+ "@girs/cairo-1.0": "^5.4.0",
50
+ "@girs/pangocairo-1.0": "^5.4.0",
51
+ "@girs/pango-1.0": "^5.4.0",
52
+ "@girs/harfbuzz-0.0": "^5.4.0",
53
+ "@girs/freetype2-2.0": "^5.4.0",
54
+ "@girs/gdkpixbuf-2.0": "^5.4.0",
55
+ "@girs/foundrygtk-1": "^5.4.0",
56
+ "@girs/json-1.0": "^5.4.0",
57
+ "@girs/gtksource-5": "^5.4.0",
58
+ "@girs/foundry-1": "^5.4.0",
59
+ "@girs/dex-1": "^5.4.0",
60
+ "@girs/giounix-2.0": "^5.4.0",
61
+ "@girs/adw-1": "^5.4.0" },
62
62
  "devDependencies": {
63
63
  "typescript": "*"
64
64
  },