@girs/foundrygtk-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 +1 -1
- package/foundrygtk-1-vocabulary.d.ts +43 -29
- package/foundrygtk-1-vocabulary.js +19 -19
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for FoundryGtk-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.
|
|
7
|
+
GJS TypeScript type definitions for FoundryGtk-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 FoundryGtk-1.
|
|
3
3
|
*
|
|
4
|
-
* GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s):
|
|
4
|
+
* GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s): Json.Serializable
|
|
5
5
|
*
|
|
6
|
-
* 14 instantiable GTypes (of which 6 concrete widgets),
|
|
6
|
+
* 14 instantiable GTypes (of which 6 concrete widgets), 14 declarations, 0 enum nick unions, 0 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
|
|
@@ -28,6 +28,9 @@ import type Foundry from '@girs/foundry-1';
|
|
|
28
28
|
import type FoundryGtk from './foundrygtk-1.js';
|
|
29
29
|
import type Gio from '@girs/gio-2.0';
|
|
30
30
|
import type Pango from '@girs/pango-1.0';
|
|
31
|
+
import type { FoundryContextualConstructOnly, FoundryContextualProps, FoundryServiceConstructOnly, FoundryServiceProps, FoundryTextBufferConstructOnly, FoundryTextBufferProps } from '@girs/foundry-1/vocabulary';
|
|
32
|
+
import type { GListModelConstructOnly, GListModelProps, GMenuModelConstructOnly, GMenuModelProps } from '@girs/gio-2.0/vocabulary';
|
|
33
|
+
import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
|
|
31
34
|
import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkAccessibleTextConstructOnly, GtkAccessibleTextProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-4.0/vocabulary';
|
|
32
35
|
import type { GtkSourceBufferConstructOnly, GtkSourceBufferProps, GtkSourceGutterRendererConstructOnly, GtkSourceGutterRendererProps, GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-5/vocabulary';
|
|
33
36
|
|
|
@@ -60,13 +63,6 @@ export interface FoundryChangesGutterRendererProps extends GtkSourceGutterRender
|
|
|
60
63
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
61
64
|
export type FoundryChangesGutterRendererConstructOnly = GtkSourceGutterRendererConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
62
65
|
|
|
63
|
-
/** Abstract base class for objects that are associated with a Foundry context. */
|
|
64
|
-
export interface FoundryContextualProps {
|
|
65
|
-
context?: Foundry.Context;
|
|
66
|
-
}
|
|
67
|
-
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
68
|
-
export type FoundryContextualConstructOnly = 'context';
|
|
69
|
-
|
|
70
66
|
export interface FoundryDiagnosticsGutterRendererProps extends GtkSourceGutterRendererProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
71
67
|
diagnostics?: Foundry.OnTypeDiagnostics;
|
|
72
68
|
}
|
|
@@ -90,33 +86,33 @@ export interface FoundryMarkupViewProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
90
86
|
export type FoundryMarkupViewConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
91
87
|
|
|
92
88
|
/** The goal of #FoundryMenuManager is to simplify the process of merging multiple GtkBuilder .ui files containing menus into a single representation of the application menus. */
|
|
93
|
-
export interface FoundryMenuManagerProps {
|
|
89
|
+
export interface FoundryMenuManagerProps extends GObjectProps {
|
|
94
90
|
}
|
|
95
91
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
96
|
-
export type FoundryMenuManagerConstructOnly =
|
|
92
|
+
export type FoundryMenuManagerConstructOnly = GObjectConstructOnly;
|
|
97
93
|
|
|
98
|
-
export interface FoundryMenuProxyProps {
|
|
94
|
+
export interface FoundryMenuProxyProps extends GMenuModelProps {
|
|
99
95
|
/** @default NULL */
|
|
100
96
|
'menu-id'?: string;
|
|
101
97
|
}
|
|
102
98
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
103
|
-
export type FoundryMenuProxyConstructOnly =
|
|
99
|
+
export type FoundryMenuProxyConstructOnly = GMenuModelConstructOnly;
|
|
104
100
|
|
|
105
|
-
export interface FoundryShortcutBundleProps {
|
|
101
|
+
export interface FoundryShortcutBundleProps extends GObjectProps, GListModelProps {
|
|
106
102
|
}
|
|
107
103
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
108
|
-
export type FoundryShortcutBundleConstructOnly =
|
|
104
|
+
export type FoundryShortcutBundleConstructOnly = GObjectConstructOnly | GListModelConstructOnly;
|
|
109
105
|
|
|
110
|
-
export interface FoundryShortcutManagerProps {
|
|
106
|
+
export interface FoundryShortcutManagerProps extends FoundryServiceProps, GListModelProps {
|
|
111
107
|
}
|
|
112
108
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
113
|
-
export type FoundryShortcutManagerConstructOnly =
|
|
109
|
+
export type FoundryShortcutManagerConstructOnly = FoundryServiceConstructOnly | GListModelConstructOnly;
|
|
114
110
|
|
|
115
|
-
export interface FoundryShortcutObserverProps {
|
|
111
|
+
export interface FoundryShortcutObserverProps extends GObjectProps {
|
|
116
112
|
model?: Gio.ListModel;
|
|
117
113
|
}
|
|
118
114
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
119
|
-
export type FoundryShortcutObserverConstructOnly = 'model';
|
|
115
|
+
export type FoundryShortcutObserverConstructOnly = GObjectConstructOnly | 'model';
|
|
120
116
|
|
|
121
117
|
export interface FoundrySourceBufferProps extends GtkSourceBufferProps, FoundryTextBufferProps {
|
|
122
118
|
context?: Foundry.Context;
|
|
@@ -166,21 +162,15 @@ export interface FoundryTerminalProps extends GtkWidgetProps, GtkAccessibleProps
|
|
|
166
162
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
167
163
|
export type FoundryTerminalConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkAccessibleTextConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkScrollableConstructOnly;
|
|
168
164
|
|
|
169
|
-
export interface FoundryTerminalPaletteProps {
|
|
170
|
-
}
|
|
171
|
-
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
172
|
-
export type FoundryTerminalPaletteConstructOnly = never;
|
|
173
|
-
|
|
174
|
-
export interface FoundryTerminalPaletteSetProps {
|
|
165
|
+
export interface FoundryTerminalPaletteProps extends GObjectProps {
|
|
175
166
|
}
|
|
176
167
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
177
|
-
export type
|
|
168
|
+
export type FoundryTerminalPaletteConstructOnly = GObjectConstructOnly;
|
|
178
169
|
|
|
179
|
-
export interface
|
|
180
|
-
context?: Foundry.Context;
|
|
170
|
+
export interface FoundryTerminalPaletteSetProps extends GObjectProps {
|
|
181
171
|
}
|
|
182
172
|
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
183
|
-
export type
|
|
173
|
+
export type FoundryTerminalPaletteSetConstructOnly = GObjectConstructOnly;
|
|
184
174
|
|
|
185
175
|
// ---------------------------------------------------------------------------
|
|
186
176
|
// The GType-keyed widget map.
|
|
@@ -306,6 +296,30 @@ export const PROVENANCE: {
|
|
|
306
296
|
* GIRs disagreeing, which is what the main emitter answers `never` for as well.
|
|
307
297
|
*/
|
|
308
298
|
readonly unresolvedProps: readonly string[];
|
|
299
|
+
/**
|
|
300
|
+
* `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
|
|
301
|
+
*
|
|
302
|
+
* The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
|
|
303
|
+
* and nothing else in this package states that `Gio` spells itself `G`. Carried rather
|
|
304
|
+
* than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
|
|
305
|
+
* wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
|
|
306
|
+
* both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
|
|
307
|
+
*
|
|
308
|
+
* Empty where the GIR states none — 17 of the 627 emitting namespaces — because
|
|
309
|
+
* inventing the namespace name there is a confident wrong answer in place of a missing
|
|
310
|
+
* one. A LIST because 20 of them state more than one, which no single string expresses.
|
|
311
|
+
*/
|
|
312
|
+
readonly identifierPrefixes: readonly string[];
|
|
313
|
+
/**
|
|
314
|
+
* Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
|
|
315
|
+
*
|
|
316
|
+
* A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
|
|
317
|
+
* settable property, `GApplication` has its properties in another package — and this
|
|
318
|
+
* list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
|
|
319
|
+
* carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
|
|
320
|
+
* consumer nothing to load and a `.ui` file using the property never names its owner.
|
|
321
|
+
*/
|
|
322
|
+
readonly requiredVocabularies: readonly string[];
|
|
309
323
|
};
|
|
310
324
|
|
|
311
325
|
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The widget vocabulary of FoundryGtk-1 as runtime data.
|
|
2
2
|
//
|
|
3
|
-
// GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s):
|
|
3
|
+
// GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s): Json.Serializable
|
|
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,15 +11,16 @@ export const PROVENANCE = {
|
|
|
11
11
|
version: '1',
|
|
12
12
|
libraryVersion: null,
|
|
13
13
|
childHolders: 0,
|
|
14
|
-
droppedBases: ['
|
|
15
|
-
inlinedBases: [
|
|
14
|
+
droppedBases: ['Json.Serializable'],
|
|
15
|
+
inlinedBases: [],
|
|
16
16
|
unsettableProps: [],
|
|
17
17
|
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['Foundry'],
|
|
19
|
+
requiredVocabularies: ['@girs/foundry-1/vocabulary', '@girs/gio-2.0/vocabulary', '@girs/gobject-2.0/vocabulary', '@girs/gtk-4.0/vocabulary', '@girs/gtksource-5/vocabulary'],
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export const OWN_PROPS = {
|
|
21
23
|
FoundryChangesGutterRenderer: ['show-overview'],
|
|
22
|
-
FoundryContextual: ['context'],
|
|
23
24
|
FoundryDiagnosticsGutterRenderer: ['diagnostics'],
|
|
24
25
|
FoundryGitLanes: ['entry'],
|
|
25
26
|
FoundryMenuProxy: ['menu-id'],
|
|
@@ -27,7 +28,6 @@ export const OWN_PROPS = {
|
|
|
27
28
|
FoundrySourceBuffer: ['context', 'override-syntax'],
|
|
28
29
|
FoundrySourceView: ['document', 'enable-completion', 'enable-vim', 'font', 'line-height', 'show-diagnostics', 'show-line-changes', 'show-line-changes-overview'],
|
|
29
30
|
FoundryTerminal: ['palette'],
|
|
30
|
-
FoundryTextBuffer: ['context'],
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const OWN_SIGNALS = {
|
|
@@ -42,20 +42,20 @@ export const OWN_SIGNALS = {
|
|
|
42
42
|
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
43
43
|
// below for the narrower questions; they did not move.
|
|
44
44
|
export const DECLS = {
|
|
45
|
-
FoundryChangesGutterRenderer: ['FoundryChangesGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
46
|
-
FoundryDiagnosticsGutterRenderer: ['FoundryDiagnosticsGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
47
|
-
FoundryGitLanes: ['FoundryGitLanes', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
48
|
-
FoundryMarkupView: ['FoundryMarkupView', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
49
|
-
FoundryMenuManager: ['FoundryMenuManager'],
|
|
50
|
-
FoundryMenuProxy: ['FoundryMenuProxy'],
|
|
51
|
-
FoundryShortcutBundle: ['FoundryShortcutBundle'],
|
|
52
|
-
FoundryShortcutManager: ['FoundryShortcutManager', 'FoundryContextual'],
|
|
53
|
-
FoundryShortcutObserver: ['FoundryShortcutObserver'],
|
|
54
|
-
FoundrySourceBuffer: ['FoundrySourceBuffer', 'GtkSourceBuffer', 'GtkTextBuffer', 'FoundryTextBuffer'],
|
|
55
|
-
FoundrySourceView: ['FoundrySourceView', 'GtkSourceView', 'GtkTextView', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
56
|
-
FoundryTerminal: ['FoundryTerminal', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
57
|
-
FoundryTerminalPalette: ['FoundryTerminalPalette'],
|
|
58
|
-
FoundryTerminalPaletteSet: ['FoundryTerminalPaletteSet'],
|
|
45
|
+
FoundryChangesGutterRenderer: ['FoundryChangesGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
46
|
+
FoundryDiagnosticsGutterRenderer: ['FoundryDiagnosticsGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
47
|
+
FoundryGitLanes: ['FoundryGitLanes', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
48
|
+
FoundryMarkupView: ['FoundryMarkupView', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
49
|
+
FoundryMenuManager: ['FoundryMenuManager', 'GObject'],
|
|
50
|
+
FoundryMenuProxy: ['FoundryMenuProxy', 'GMenuModel', 'GObject'],
|
|
51
|
+
FoundryShortcutBundle: ['FoundryShortcutBundle', 'GObject', 'GListModel'],
|
|
52
|
+
FoundryShortcutManager: ['FoundryShortcutManager', 'FoundryService', 'FoundryContextual', 'GObject', 'GListModel'],
|
|
53
|
+
FoundryShortcutObserver: ['FoundryShortcutObserver', 'GObject'],
|
|
54
|
+
FoundrySourceBuffer: ['FoundrySourceBuffer', 'GtkSourceBuffer', 'GtkTextBuffer', 'GObject', 'FoundryTextBuffer'],
|
|
55
|
+
FoundrySourceView: ['FoundrySourceView', 'GtkSourceView', 'GtkTextView', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
56
|
+
FoundryTerminal: ['FoundryTerminal', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
|
|
57
|
+
FoundryTerminalPalette: ['FoundryTerminalPalette', 'GObject'],
|
|
58
|
+
FoundryTerminalPaletteSet: ['FoundryTerminalPaletteSet', 'GObject'],
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
// 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/foundrygtk-1",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for FoundryGtk-1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "foundrygtk-1.js",
|
|
@@ -36,27 +36,27 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^5.
|
|
40
|
-
"@girs/peas-2": "^5.
|
|
41
|
-
"@girs/gio-2.0": "^5.
|
|
42
|
-
"@girs/gobject-2.0": "^5.
|
|
43
|
-
"@girs/glib-2.0": "^5.
|
|
44
|
-
"@girs/gmodule-2.0": "^5.
|
|
45
|
-
"@girs/json-1.0": "^5.
|
|
46
|
-
"@girs/gtksource-5": "^5.
|
|
47
|
-
"@girs/gtk-4.0": "^5.
|
|
48
|
-
"@girs/gsk-4.0": "^5.
|
|
49
|
-
"@girs/graphene-1.0": "^5.
|
|
50
|
-
"@girs/gdk-4.0": "^5.
|
|
51
|
-
"@girs/cairo-1.0": "^5.
|
|
52
|
-
"@girs/pangocairo-1.0": "^5.
|
|
53
|
-
"@girs/pango-1.0": "^5.
|
|
54
|
-
"@girs/harfbuzz-0.0": "^5.
|
|
55
|
-
"@girs/freetype2-2.0": "^5.
|
|
56
|
-
"@girs/gdkpixbuf-2.0": "^5.
|
|
57
|
-
"@girs/foundry-1": "^5.
|
|
58
|
-
"@girs/dex-1": "^5.
|
|
59
|
-
"@girs/giounix-2.0": "^5.
|
|
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/json-1.0": "^5.3.0",
|
|
46
|
+
"@girs/gtksource-5": "^5.3.0",
|
|
47
|
+
"@girs/gtk-4.0": "^5.3.0",
|
|
48
|
+
"@girs/gsk-4.0": "^5.3.0",
|
|
49
|
+
"@girs/graphene-1.0": "^5.3.0",
|
|
50
|
+
"@girs/gdk-4.0": "^5.3.0",
|
|
51
|
+
"@girs/cairo-1.0": "^5.3.0",
|
|
52
|
+
"@girs/pangocairo-1.0": "^5.3.0",
|
|
53
|
+
"@girs/pango-1.0": "^5.3.0",
|
|
54
|
+
"@girs/harfbuzz-0.0": "^5.3.0",
|
|
55
|
+
"@girs/freetype2-2.0": "^5.3.0",
|
|
56
|
+
"@girs/gdkpixbuf-2.0": "^5.3.0",
|
|
57
|
+
"@girs/foundry-1": "^5.3.0",
|
|
58
|
+
"@girs/dex-1": "^5.3.0",
|
|
59
|
+
"@girs/giounix-2.0": "^5.3.0" },
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"typescript": "*"
|
|
62
62
|
},
|