@girs/foundryadw-1 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/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.3.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for 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. */
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/foundryadw-1",
3
- "version": "5.2.0",
3
+ "version": "5.3.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.3.0",
40
+ "@girs/peas-2": "^5.3.0",
41
+ "@girs/gio-2.0": "^5.3.0",
42
+ "@girs/gobject-2.0": "^5.3.0",
43
+ "@girs/glib-2.0": "^5.3.0",
44
+ "@girs/gmodule-2.0": "^5.3.0",
45
+ "@girs/gtk-4.0": "^5.3.0",
46
+ "@girs/gsk-4.0": "^5.3.0",
47
+ "@girs/graphene-1.0": "^5.3.0",
48
+ "@girs/gdk-4.0": "^5.3.0",
49
+ "@girs/cairo-1.0": "^5.3.0",
50
+ "@girs/pangocairo-1.0": "^5.3.0",
51
+ "@girs/pango-1.0": "^5.3.0",
52
+ "@girs/harfbuzz-0.0": "^5.3.0",
53
+ "@girs/freetype2-2.0": "^5.3.0",
54
+ "@girs/gdkpixbuf-2.0": "^5.3.0",
55
+ "@girs/foundrygtk-1": "^5.3.0",
56
+ "@girs/json-1.0": "^5.3.0",
57
+ "@girs/gtksource-5": "^5.3.0",
58
+ "@girs/foundry-1": "^5.3.0",
59
+ "@girs/dex-1": "^5.3.0",
60
+ "@girs/giounix-2.0": "^5.3.0",
61
+ "@girs/adw-1": "^5.3.0" },
62
62
  "devDependencies": {
63
63
  "typescript": "*"
64
64
  },