@ts-for-gir/lib 3.0.0-beta.12 → 3.0.1
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/lib/constants.d.ts +7 -3
- package/lib/constants.js +14 -2
- package/lib/constants.js.map +1 -1
- package/lib/dependency-manager.d.ts +52 -3
- package/lib/dependency-manager.js +138 -18
- package/lib/dependency-manager.js.map +1 -1
- package/lib/gir-module.d.ts +12 -5
- package/lib/gir-module.js +25 -8
- package/lib/gir-module.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/injection/classes/gjs/index.js +3 -3
- package/lib/injection/classes/index.js +1 -1
- package/lib/injection/classes/node-gtk/index.js +8 -8
- package/lib/messages.d.ts +0 -2
- package/lib/messages.js +1 -3
- package/lib/messages.js.map +1 -1
- package/lib/package-data-parser.d.ts +13 -0
- package/lib/package-data-parser.js +67 -0
- package/lib/package-data-parser.js.map +1 -0
- package/lib/package-data.d.ts +9 -0
- package/lib/package-data.js +41 -0
- package/lib/package-data.js.map +1 -0
- package/lib/symtable.js +2 -1
- package/lib/symtable.js.map +1 -1
- package/lib/template-processor.d.ts +59 -19
- package/lib/template-processor.js +128 -41
- package/lib/template-processor.js.map +1 -1
- package/lib/transformation.d.ts +2 -1
- package/lib/transformation.js +44 -26
- package/lib/transformation.js.map +1 -1
- package/lib/types/construct-name.d.ts +1 -1
- package/lib/types/dependency.d.ts +17 -2
- package/lib/types/generate-config.d.ts +9 -2
- package/lib/types/index.d.ts +5 -0
- package/lib/types/index.js +5 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/module-type.d.ts +1 -1
- package/lib/types/package-data-parsed.d.ts +28 -0
- package/lib/types/package-data-parsed.js +2 -0
- package/lib/types/package-data-parsed.js.map +1 -0
- package/lib/types/package-data.d.ts +23 -0
- package/lib/types/package-data.js +2 -0
- package/lib/types/package-data.js.map +1 -0
- package/lib/types/package-section-parsed.d.ts +8 -0
- package/lib/types/package-section-parsed.js +2 -0
- package/lib/types/package-section-parsed.js.map +1 -0
- package/lib/types/package-section.d.ts +8 -0
- package/lib/types/package-section.js +2 -0
- package/lib/types/package-section.js.map +1 -0
- package/lib/types/parsed-package-data.d.ts +6 -0
- package/lib/types/parsed-package-data.js +2 -0
- package/lib/types/parsed-package-data.js.map +1 -0
- package/lib/types/template-data.d.ts +2 -1
- package/lib/types/transformation-case.d.ts +1 -1
- package/lib/types/transformations.d.ts +1 -1
- package/lib/types/user-config.d.ts +6 -2
- package/lib/utils.d.ts +31 -16
- package/lib/utils.js +68 -30
- package/lib/utils.js.map +1 -1
- package/package.json +22 -20
- package/packages.xml +1213 -0
- package/templates/README.md +102 -0
- package/templates/gjs/README-GJS.md +109 -0
- package/templates/gjs/ambient.d.ts +59 -0
- package/templates/gjs/cairo-1.0.d.ts +9 -0
- package/templates/gjs/cairo.d.ts +8 -0
- package/templates/gjs/cairo.js +11 -0
- package/templates/gjs/gettext.d.ts +41 -0
- package/templates/gjs/gettext.js +11 -0
- package/templates/{Gjs/Gio-2.0.d.ts → gjs/gio-2.0.d.ts} +1 -1
- package/templates/{Gjs/index.d.ts → gjs/gjs.d.ts} +221 -58
- package/templates/gjs/gjs.js +10 -0
- package/templates/{Gjs/GObject-2.0.d.ts → gjs/gobject-2.0.d.ts} +1 -1
- package/templates/gjs/module-ambient.d.ts +31 -0
- package/templates/gjs/module-import.d.ts +33 -0
- package/templates/gjs/module.append.d.ts +1 -0
- package/templates/gjs/module.d.ts +12 -0
- package/templates/gjs/module.js +17 -0
- package/templates/gjs/system.d.ts +32 -0
- package/templates/gjs/system.js +11 -0
- package/templates/gjs/tsconfig.alias.json +12 -0
- package/templates/node-gtk/README-NODE-GTK.md +71 -0
- package/templates/node-gtk/ambient.d.ts +19 -0
- package/templates/node-gtk/module-import.d.ts +29 -0
- package/templates/node-gtk/module.append.d.ts +1 -0
- package/templates/node-gtk/module.d.ts +4 -0
- package/templates/node-gtk/module.js +2 -1
- package/templates/node-gtk/node-gtk.d.ts +25 -0
- package/templates/node-gtk/{index.js → node-gtk.js} +0 -2
- package/templates/package.json +173 -0
- package/templates/tsconfig.doc.json +30 -0
- package/lib/injection/classes/GooCanvas-2.0.d.ts +0 -2
- package/lib/injection/classes/GooCanvas-2.0.js +0 -26
- package/lib/injection/classes/GooCanvas-2.0.js.map +0 -1
- package/lib/injection/classes/GooCanvas-3.0.d.ts +0 -2
- package/lib/injection/classes/GooCanvas-3.0.js +0 -26
- package/lib/injection/classes/GooCanvas-3.0.js.map +0 -1
- package/lib/injection/classes/GooCanvas-x.0.d.ts +0 -2
- package/lib/injection/classes/GooCanvas-x.0.js +0 -26
- package/lib/injection/classes/GooCanvas-x.0.js.map +0 -1
- package/lib/injection/classes/gjs/GooCanvas-2.0.d.ts +0 -2
- package/lib/injection/classes/gjs/GooCanvas-2.0.js +0 -14
- package/lib/injection/classes/gjs/GooCanvas-2.0.js.map +0 -1
- package/lib/types/library-version.d.ts +0 -7
- package/lib/types/library-version.js +0 -2
- package/lib/types/library-version.js.map +0 -1
- package/templates/Gjs/Gjs.d.ts +0 -204
- package/templates/Gjs/Gjs.js +0 -21
- package/templates/Gjs/GnomeShell.d.ts +0 -154
- package/templates/Gjs/GnomeShell.js +0 -10
- package/templates/Gjs/index.js +0 -4
- package/templates/Gjs/misc/dbusUtils.d.ts +0 -15
- package/templates/Gjs/misc/dbusUtils.js +0 -6
- package/templates/Gjs/misc/extensionUtils.d.ts +0 -99
- package/templates/Gjs/misc/extensionUtils.js +0 -6
- package/templates/Gjs/misc/fileUtils.d.ts +0 -51
- package/templates/Gjs/misc/fileUtils.js +0 -6
- package/templates/Gjs/misc/gnomeSession.d.ts +0 -74
- package/templates/Gjs/misc/gnomeSession.js +0 -6
- package/templates/Gjs/misc/parentalControlsManager.d.ts +0 -42
- package/templates/Gjs/misc/parentalControlsManager.js +0 -6
- package/templates/Gjs/misc/signals.d.ts +0 -15
- package/templates/Gjs/misc/signals.js +0 -6
- package/templates/Gjs/module.d.ts +0 -6
- package/templates/Gjs/module.js +0 -16
- package/templates/Gjs/tsconfig.alias.json +0 -10
- package/templates/Gjs/ui/accessDialog.d.ts +0 -19
- package/templates/Gjs/ui/accessDialog.js +0 -6
- package/templates/Gjs/ui/altTab.d.ts +0 -124
- package/templates/Gjs/ui/altTab.js +0 -6
- package/templates/Gjs/ui/animation.d.ts +0 -58
- package/templates/Gjs/ui/animation.js +0 -6
- package/templates/Gjs/ui/appDisplay.d.ts +0 -204
- package/templates/Gjs/ui/appDisplay.js +0 -6
- package/templates/Gjs/ui/appFavorites.d.ts +0 -34
- package/templates/Gjs/ui/appFavorites.js +0 -6
- package/templates/Gjs/ui/appMenu.d.ts +0 -74
- package/templates/Gjs/ui/appMenu.js +0 -6
- package/templates/Gjs/ui/audioDeviceSelection.d.ts +0 -51
- package/templates/Gjs/ui/audioDeviceSelection.js +0 -6
- package/templates/Gjs/ui/background.d.ts +0 -255
- package/templates/Gjs/ui/background.js +0 -5
- package/templates/Gjs/ui/backgroundMenu.d.ts +0 -19
- package/templates/Gjs/ui/backgroundMenu.js +0 -5
- package/templates/Gjs/ui/barLevel.d.ts +0 -42
- package/templates/Gjs/ui/barLevel.js +0 -5
- package/templates/Gjs/ui/boxpointer.d.ts +0 -103
- package/templates/Gjs/ui/boxpointer.js +0 -5
- package/templates/Gjs/ui/calendar.d.ts +0 -261
- package/templates/Gjs/ui/calendar.js +0 -5
- package/templates/Gjs/ui/checkBox.d.ts +0 -22
- package/templates/Gjs/ui/checkBox.js +0 -5
- package/templates/Gjs/ui/closeDialog.d.ts +0 -40
- package/templates/Gjs/ui/closeDialog.js +0 -5
- package/templates/Gjs/ui/components/__init__.d.ts +0 -9
- package/templates/Gjs/ui/components/__init__.js +0 -6
- package/templates/Gjs/ui/components/automountManager.d.ts +0 -8
- package/templates/Gjs/ui/components/automountManager.js +0 -6
- package/templates/Gjs/ui/components/autorunManager.d.ts +0 -8
- package/templates/Gjs/ui/components/autorunManager.js +0 -6
- package/templates/Gjs/ui/components/index.d.ts +0 -6
- package/templates/Gjs/ui/components/index.js +0 -6
- package/templates/Gjs/ui/components/keyring.d.ts +0 -19
- package/templates/Gjs/ui/components/keyring.js +0 -6
- package/templates/Gjs/ui/components/networkAgent.d.ts +0 -10
- package/templates/Gjs/ui/components/networkAgent.js +0 -6
- package/templates/Gjs/ui/components/polkitAgent.d.ts +0 -19
- package/templates/Gjs/ui/components/polkitAgent.js +0 -6
- package/templates/Gjs/ui/components/telepathyClient.d.ts +0 -10
- package/templates/Gjs/ui/components/telepathyClient.js +0 -6
- package/templates/Gjs/ui/dialog.d.ts +0 -78
- package/templates/Gjs/ui/dialog.js +0 -6
- package/templates/Gjs/ui/dnd.d.ts +0 -127
- package/templates/Gjs/ui/dnd.js +0 -6
- package/templates/Gjs/ui/iconGrid.d.ts +0 -172
- package/templates/Gjs/ui/iconGrid.js +0 -6
- package/templates/Gjs/ui/layout.d.ts +0 -311
- package/templates/Gjs/ui/layout.js +0 -6
- package/templates/Gjs/ui/main.d.ts +0 -215
- package/templates/Gjs/ui/main.js +0 -6
- package/templates/Gjs/ui/messageList.d.ts +0 -113
- package/templates/Gjs/ui/messageList.js +0 -6
- package/templates/Gjs/ui/messageTray.d.ts +0 -423
- package/templates/Gjs/ui/messageTray.js +0 -6
- package/templates/Gjs/ui/modalDialog.d.ts +0 -96
- package/templates/Gjs/ui/modalDialog.js +0 -6
- package/templates/Gjs/ui/mpris.d.ts +0 -78
- package/templates/Gjs/ui/mpris.js +0 -6
- package/templates/Gjs/ui/notificationDaemon.d.ts +0 -5
- package/templates/Gjs/ui/notificationDaemon.js +0 -6
- package/templates/Gjs/ui/panel.d.ts +0 -65
- package/templates/Gjs/ui/panel.js +0 -6
- package/templates/Gjs/ui/panelMenu.d.ts +0 -51
- package/templates/Gjs/ui/panelMenu.js +0 -6
- package/templates/Gjs/ui/popupMenu.d.ts +0 -228
- package/templates/Gjs/ui/popupMenu.js +0 -6
- package/templates/Gjs/ui/ripples.d.ts +0 -44
- package/templates/Gjs/ui/ripples.js +0 -6
- package/templates/Gjs/ui/search.d.ts +0 -158
- package/templates/Gjs/ui/search.js +0 -6
- package/templates/Gjs/ui/switcherPopup.d.ts +0 -107
- package/templates/Gjs/ui/switcherPopup.js +0 -6
- package/templates/Gjs/ui/userWidget.d.ts +0 -13
- package/templates/Gjs/ui/userWidget.js +0 -6
- package/templates/node-gtk/index.d.ts +0 -40
- /package/templates/{Cogl-2.0.d.ts → cogl-2-0.d.ts} +0 -0
- /package/templates/{Granite-1.0.d.ts → granite-1.0.d.ts} +0 -0
- /package/templates/{Granite-7.0.d.ts → granite-7.0.d.ts} +0 -0
- /package/templates/{GstBase-0.10.d.ts → gstbase-0.10.d.ts} +0 -0
- /package/templates/node-gtk/{GObject-2.0.d.ts → gobject-2.0.d.ts} +0 -0
- /package/templates/{RygelServer-2.6.d.ts → rygelserver-2.6.d.ts} +0 -0
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import type * as DbusUtils from './misc/dbusUtils.js';
|
|
2
|
-
import type * as ExtensionUtils from './misc/extensionUtils.js';
|
|
3
|
-
import type * as FileUtils from './misc/fileUtils.js';
|
|
4
|
-
import type * as GnomeSession from './misc/gnomeSession.js';
|
|
5
|
-
import type * as ParentalControlsManager from './misc/parentalControlsManager.js';
|
|
6
|
-
import type * as Signals from './misc/signals.js';
|
|
7
|
-
|
|
8
|
-
// TODO: https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/main/js/misc
|
|
9
|
-
export namespace misc {
|
|
10
|
-
export const dbusUtils: typeof DbusUtils;
|
|
11
|
-
export const extensionUtils: typeof ExtensionUtils;
|
|
12
|
-
export const fileUtils: typeof FileUtils;
|
|
13
|
-
export const gnomeSession: typeof GnomeSession;
|
|
14
|
-
export const history: any;
|
|
15
|
-
export const ibusManager: any;
|
|
16
|
-
export const inputMethod: any;
|
|
17
|
-
export const introspect: any;
|
|
18
|
-
export const jsParse: any;
|
|
19
|
-
export const keyboardManager: any;
|
|
20
|
-
export const loginManager: any;
|
|
21
|
-
export const modemManager: any;
|
|
22
|
-
export const objectManager: any;
|
|
23
|
-
export const params: any;
|
|
24
|
-
export const parentalControlsManager: typeof ParentalControlsManager;
|
|
25
|
-
export const permissionStore: any;
|
|
26
|
-
export const signalTracker: any;
|
|
27
|
-
export const signals: typeof Signals;
|
|
28
|
-
export const smartcardManager: any;
|
|
29
|
-
export const systemActions: any;
|
|
30
|
-
export const util: any;
|
|
31
|
-
export const weather: any;
|
|
32
|
-
}
|
|
33
|
-
import type * as Components from './ui/components/index.js';
|
|
34
|
-
import type * as AccessDialog from './ui/accessDialog.js';
|
|
35
|
-
import type * as AltTab from './ui/altTab.js';
|
|
36
|
-
import type * as Animation from './ui/animation.js';
|
|
37
|
-
import type * as AppDisplay from './ui/appDisplay.js';
|
|
38
|
-
import type * as AppFavorites from './ui/appFavorites.js';
|
|
39
|
-
import type * as AppMenu from './ui/appMenu.js';
|
|
40
|
-
import type * as AudioDeviceSelection from './ui/audioDeviceSelection.js';
|
|
41
|
-
import type * as Background from './ui/background.js';
|
|
42
|
-
import type * as BackgroundMenu from './ui/backgroundMenu.js';
|
|
43
|
-
import type * as BarLevel from './ui/barLevel.js';
|
|
44
|
-
import type * as Boxpointer from './ui/boxpointer.js';
|
|
45
|
-
import type * as Calendar from './ui/calendar.js';
|
|
46
|
-
import type * as CheckBox from './ui/checkBox.js';
|
|
47
|
-
import type * as CloseDialog from './ui/closeDialog.js';
|
|
48
|
-
import type * as Dialog from './ui/dialog.js';
|
|
49
|
-
import type * as DnD from './ui/dnd.js';
|
|
50
|
-
import type * as IconGrid from './ui/iconGrid.js';
|
|
51
|
-
import type * as Layout from './ui/layout.js';
|
|
52
|
-
import type * as Main from './ui/main.js';
|
|
53
|
-
import type * as MessageList from './ui/messageList.js';
|
|
54
|
-
import type * as MessageTray from './ui/messageTray.js';
|
|
55
|
-
import type * as ModalDialog from './ui/modalDialog.js';
|
|
56
|
-
import type * as Mpris from './ui/mpris.js';
|
|
57
|
-
import type * as NotificationDaemon from './ui/notificationDaemon.js';
|
|
58
|
-
import type * as Panel from './ui/panel.js';
|
|
59
|
-
import type * as PanelMenu from './ui/panelMenu.js';
|
|
60
|
-
import type * as PopupMenu from './ui/popupMenu.js';
|
|
61
|
-
import type * as Ripples from './ui/ripples.js';
|
|
62
|
-
import type * as Search from './ui/search.js';
|
|
63
|
-
import type * as SwitcherPopup from './ui/switcherPopup.js';
|
|
64
|
-
import type * as UserWidget from './ui/userWidget.js';
|
|
65
|
-
|
|
66
|
-
// TODO: https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/main/js/ui
|
|
67
|
-
export namespace ui {
|
|
68
|
-
export const components: typeof Components;
|
|
69
|
-
export const status: any;
|
|
70
|
-
export const accessDialog: typeof AccessDialog;
|
|
71
|
-
export const altTab: typeof AltTab;
|
|
72
|
-
export const animation: typeof Animation;
|
|
73
|
-
export const appDisplay: typeof AppDisplay;
|
|
74
|
-
export const appFavorites: typeof AppFavorites;
|
|
75
|
-
export const appMenu: typeof AppMenu;
|
|
76
|
-
export const audioDeviceSelection: typeof AudioDeviceSelection;
|
|
77
|
-
export const background: typeof Background;
|
|
78
|
-
export const backgroundMenu: typeof BackgroundMenu;
|
|
79
|
-
export const barLevel: typeof BarLevel;
|
|
80
|
-
export const boxpointer: typeof Boxpointer;
|
|
81
|
-
export const calendar: typeof Calendar;
|
|
82
|
-
export const checkBox: typeof CheckBox;
|
|
83
|
-
export const closeDialog: typeof CloseDialog;
|
|
84
|
-
export const ctrlAltTab: any;
|
|
85
|
-
export const dash: any;
|
|
86
|
-
export const dateMenu: any;
|
|
87
|
-
export const dialog: typeof Dialog;
|
|
88
|
-
export const dnd: typeof DnD;
|
|
89
|
-
export const edgeDragAction: any;
|
|
90
|
-
export const endSessionDialog: any;
|
|
91
|
-
export const environment: any;
|
|
92
|
-
export const extensionDownloader: any;
|
|
93
|
-
export const extensionSystem: any;
|
|
94
|
-
export const focusCaretTracker: any;
|
|
95
|
-
export const grabHelper: any;
|
|
96
|
-
export const ibusCandidatePopup: any;
|
|
97
|
-
export const iconGrid: typeof IconGrid;
|
|
98
|
-
export const inhibitShortcutsDialog: any;
|
|
99
|
-
export const init: any;
|
|
100
|
-
export const kbdA11yDialog: any;
|
|
101
|
-
export const keyboard: any;
|
|
102
|
-
export const layout: typeof Layout;
|
|
103
|
-
export const lightbox: any;
|
|
104
|
-
export const locatePointer: any;
|
|
105
|
-
export const lookingGlass: any;
|
|
106
|
-
export const magnifier: any;
|
|
107
|
-
export const main: typeof Main;
|
|
108
|
-
export const messageList: typeof MessageList;
|
|
109
|
-
export const messageTray: typeof MessageTray;
|
|
110
|
-
export const modalDialog: typeof ModalDialog;
|
|
111
|
-
export const mpris: typeof Mpris;
|
|
112
|
-
export const notificationDaemon: typeof NotificationDaemon;
|
|
113
|
-
export const osdMonitorLabeler: any;
|
|
114
|
-
export const osdWindow: any;
|
|
115
|
-
export const overview: any;
|
|
116
|
-
export const overviewControls: any;
|
|
117
|
-
export const padOsd: any;
|
|
118
|
-
export const pageIndicators: any;
|
|
119
|
-
export const panel: typeof Panel;
|
|
120
|
-
export const panelMenu: typeof PanelMenu;
|
|
121
|
-
export const pointerA11yTimeout: any;
|
|
122
|
-
export const pointerWatcher: any;
|
|
123
|
-
export const popupMenu: typeof PopupMenu;
|
|
124
|
-
export const quickSettings: any;
|
|
125
|
-
export const remoteSearch: any;
|
|
126
|
-
export const ripples: typeof Ripples;
|
|
127
|
-
export const runDialog: any;
|
|
128
|
-
export const screenShield: any;
|
|
129
|
-
export const screenshot: any;
|
|
130
|
-
export const scripting: any;
|
|
131
|
-
export const search: typeof Search;
|
|
132
|
-
export const searchController: any;
|
|
133
|
-
export const sessionMode: any;
|
|
134
|
-
export const shellDBus: any;
|
|
135
|
-
export const shellEntry: any;
|
|
136
|
-
export const shellMountOperation: any;
|
|
137
|
-
export const slider: any;
|
|
138
|
-
export const swipeTracker: any;
|
|
139
|
-
export const switchMonitor: any;
|
|
140
|
-
export const switcherPopup: typeof SwitcherPopup;
|
|
141
|
-
export const unlockDialog: any;
|
|
142
|
-
export const userWidget: typeof UserWidget;
|
|
143
|
-
export const welcomeDialog: any;
|
|
144
|
-
export const windowAttentionHandler: any;
|
|
145
|
-
export const windowManager: any;
|
|
146
|
-
export const windowMenu: any;
|
|
147
|
-
export const windowPreview: any;
|
|
148
|
-
export const workspace: any;
|
|
149
|
-
export const workspaceAnimation: any;
|
|
150
|
-
export const workspaceSwitcherPopup: any;
|
|
151
|
-
export const workspaceThumbnail: any;
|
|
152
|
-
export const workspacesView: any;
|
|
153
|
-
export const xdndHandler: any;
|
|
154
|
-
}
|
package/templates/Gjs/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/dbusUtils.js
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Load an interface xml file
|
|
5
|
-
* @param iface iface the interface name
|
|
6
|
-
* @returns the interface XML or null if not found
|
|
7
|
-
*/
|
|
8
|
-
export function loadInterfaceXML(iface: string): string | null
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Load an subinterface xml file
|
|
12
|
-
* @param iface the interface name
|
|
13
|
-
* @param ifaceFile the interface XML string or null if it is not found
|
|
14
|
-
*/
|
|
15
|
-
export function loadSubInterfaceXML(iface: string, ifaceFile: string): string | null
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// https://gitlab.gnome.org/GNOME/gnome-shell/blob/main/js/misc/extensionUtils.js
|
|
2
|
-
|
|
3
|
-
// TODO: untested
|
|
4
|
-
export interface Extension {
|
|
5
|
-
type: ExtensionType;
|
|
6
|
-
state: ExtensionState;
|
|
7
|
-
path: string;
|
|
8
|
-
error: string | null;
|
|
9
|
-
hasPrefs: boolean;
|
|
10
|
-
hasUpdate: boolean;
|
|
11
|
-
canChange: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export enum ExtensionType {
|
|
15
|
-
SYSTEM = 1,
|
|
16
|
-
PER_USER = 2,
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export enum ExtensionState {
|
|
20
|
-
ENABLED = 1,
|
|
21
|
-
DISABLED = 2,
|
|
22
|
-
ERROR = 3,
|
|
23
|
-
OUT_OF_DATE = 4,
|
|
24
|
-
DOWNLOADING = 5,
|
|
25
|
-
INITIALIZED = 6,
|
|
26
|
-
DISABLING = 7,
|
|
27
|
-
ENABLING = 8,
|
|
28
|
-
UNINSTALLED = 99,
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare const SERIALIZED_PROPERTIES: string[];
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Get current extension
|
|
35
|
-
* @param extension the extension object to use in utilities like `initTranslations()`
|
|
36
|
-
*/
|
|
37
|
-
export function setCurrentExtension(extension: Extension): void;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @returns The current extension, or null if not called from an extension.
|
|
41
|
-
*/
|
|
42
|
-
export function getCurrentExtension(): Extension | null;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Init translation
|
|
46
|
-
* @param domain the gettext domain to use
|
|
47
|
-
*
|
|
48
|
-
* Initialize Gettext to load translations from extensionsdir/locale.
|
|
49
|
-
* If @domain is not provided, it will be taken from metadata['gettext-domain']
|
|
50
|
-
*/
|
|
51
|
-
export function initTranslations(domain: string): void;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* gettext:
|
|
55
|
-
* @param str the string to translate
|
|
56
|
-
*
|
|
57
|
-
* Translate @str using the extension's gettext domain
|
|
58
|
-
*
|
|
59
|
-
* @returns the translated string
|
|
60
|
-
*/
|
|
61
|
-
export function gettext(str: string): string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* ngettext:
|
|
65
|
-
* @param str the string to translate
|
|
66
|
-
* @param strPlural the plural form of the string
|
|
67
|
-
* @param n the quantity for which translation is needed
|
|
68
|
-
*
|
|
69
|
-
* Translate @str and choose plural form using the extension's gettext domain
|
|
70
|
-
*
|
|
71
|
-
* @returns the translated string
|
|
72
|
-
*/
|
|
73
|
-
export function ngettext(str: string, strPlural: string, n: number): string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* pgettext:
|
|
77
|
-
* @param context context to disambiguate @str
|
|
78
|
-
* @param str the string to translate
|
|
79
|
-
*
|
|
80
|
-
* Translate @str in the context of @context using the extension's gettext domain
|
|
81
|
-
*
|
|
82
|
-
* @returns the translated string
|
|
83
|
-
*/
|
|
84
|
-
export function pgettext(context: string, str: string): string;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* openPrefs:
|
|
88
|
-
*
|
|
89
|
-
* Open the preference dialog of the current extension
|
|
90
|
-
*/
|
|
91
|
-
export function openPrefs(): void;
|
|
92
|
-
|
|
93
|
-
export function isOutOfDate(extension: Extension): boolean;
|
|
94
|
-
|
|
95
|
-
export function installImporter(extension: Extension): void;
|
|
96
|
-
|
|
97
|
-
export function serializeExtension(extension: Extension): object;
|
|
98
|
-
|
|
99
|
-
export function deserializeExtension(data: object): Extension;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/fileUtils.js
|
|
2
|
-
|
|
3
|
-
<% const Gio = dep.find('Gio') %>
|
|
4
|
-
|
|
5
|
-
<%_ if(noNamespace){ _%>
|
|
6
|
-
import type * as Gio from '../<%= Gio.packageName %>.js';
|
|
7
|
-
<%_ } else { _%>
|
|
8
|
-
import type Gio from '../<%= Gio.packageName %>.js';
|
|
9
|
-
<%_ } _%>
|
|
10
|
-
|
|
11
|
-
export interface SubdirInfo {
|
|
12
|
-
dir: Gio.File
|
|
13
|
-
info: Gio.FileInfo
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Collects all subdirectories named `subdir` within the system data directories and (optionally) the user's data directory
|
|
18
|
-
*
|
|
19
|
-
* @param {string} subdir - the subdirectory to search within the data directories
|
|
20
|
-
* @param {boolean} includeUserDir - whether the user's data directory should also be searched in addition to the system data directories
|
|
21
|
-
* @returns {IterableIterator<SubdirInfo>} - a generator which yields file info for subdirectories named `subdir` within data directories
|
|
22
|
-
*/
|
|
23
|
-
export function collectFromDatadirs(subdir: string, includeUserDir: boolean): IterableIterator<SubdirInfo>
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Recursively delete a directory and its contents
|
|
27
|
-
*
|
|
28
|
-
* @param {Gio.File} dir - the file object for the directory to delete
|
|
29
|
-
* @param {boolean} deleteParent - whether to delete the parent directory
|
|
30
|
-
*/
|
|
31
|
-
export function recursivelyDeleteDir(dir: Gio.File, deleteParent: boolean): void
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Recursively move a directory and its contents
|
|
35
|
-
*
|
|
36
|
-
* @param {Gio.File} srcDir - the file object for the directory to move
|
|
37
|
-
* @param {Gio.File} destDir - the file object for the destination directory
|
|
38
|
-
*/
|
|
39
|
-
export function recursivelyMoveDir(srcDir: Gio.File, destDir: Gio.File): void
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Load an interface xml file
|
|
43
|
-
* @param {string} name - the name of the interface file to load
|
|
44
|
-
*/
|
|
45
|
-
export var loadInterfaceXML: (name: string) => any
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Load an subinterface xml file
|
|
49
|
-
* @param {string} name - the name of the subinterface file to load
|
|
50
|
-
*/
|
|
51
|
-
export function loadSubInterfaceXML(name: string): any
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/gnomeSession.js
|
|
2
|
-
|
|
3
|
-
<% const Gio = dep.find('Gio') %>
|
|
4
|
-
|
|
5
|
-
<%_ if(noNamespace){ _%>
|
|
6
|
-
import type * as Gio from '../<%= Gio.packageName %>.js';
|
|
7
|
-
<%_ } else { _%>
|
|
8
|
-
import type Gio from '../<%= Gio.packageName %>.js';
|
|
9
|
-
<%_ } _%>
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Enumeration of the possible presence statuses
|
|
13
|
-
*/
|
|
14
|
-
export enum PresenceStatus {
|
|
15
|
-
AVAILABLE = 0,
|
|
16
|
-
INVISIBLE = 1,
|
|
17
|
-
BUSY = 2,
|
|
18
|
-
IDLE = 3,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum InhibitFlags {
|
|
22
|
-
LOGOUT = 1 << 0,
|
|
23
|
-
SWITCH = 1 << 1,
|
|
24
|
-
SUSPEND = 1 << 2,
|
|
25
|
-
IDLE = 1 << 3,
|
|
26
|
-
AUTOMOUNT = 1 << 4,
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The interface of `org.gnome.SessionManager.Presence`
|
|
31
|
-
* TODO: Untested
|
|
32
|
-
*/
|
|
33
|
-
interface PresenceIface {
|
|
34
|
-
// TODO: `org.gnome.SessionManager.Presence`
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Create a new DBus proxy for the presence interface
|
|
39
|
-
* @param {Function | null} initCallback - a callback to call when the proxy is ready
|
|
40
|
-
* @param {Gio.Cancellable | null} cancellable - a cancellable
|
|
41
|
-
* @returns {Gio.DBusProxy & PresenceIface} - a new DBus proxy for the presence interface
|
|
42
|
-
*/
|
|
43
|
-
export function Presence(initCallback: Function | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy & PresenceIface;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* THe interface of `org.gnome.SessionManager.Inhibitor`
|
|
47
|
-
* Representation of the DBus interface for the inhibitor, which is used to prevent the session from being closed
|
|
48
|
-
* TODO: Untested
|
|
49
|
-
*/
|
|
50
|
-
interface InhibitorIface {
|
|
51
|
-
// TODO: `org.gnome.SessionManager.Inhibitor`
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Create a new DBus proxy for the inhibitor interface
|
|
56
|
-
*
|
|
57
|
-
* Note inhibitors are immutable objects, so they don't
|
|
58
|
-
* change at runtime (changes always come in the form
|
|
59
|
-
* of new inhibitors)
|
|
60
|
-
* @param objectPath
|
|
61
|
-
* @param initCallback
|
|
62
|
-
* @param cancellable
|
|
63
|
-
*/
|
|
64
|
-
export function Inhibitor(objectPath: string, initCallback: Function | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy & InhibitorIface;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* The interface of `org.gnome.SessionManager`
|
|
69
|
-
*/
|
|
70
|
-
interface SessionManagerIface {
|
|
71
|
-
// TODO: `org.gnome.SessionManager`
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function SessionManager(initCallback: Function | null, cancellable: Gio.Cancellable | null): Gio.DBusProxy & SessionManagerIface;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/parentalControlsManager.js
|
|
2
|
-
|
|
3
|
-
<% const GObject = dep.find('GObject') %>
|
|
4
|
-
<% const Gio = dep.find('Gio') %>
|
|
5
|
-
<% const Shell = dep.find('Shell') %>
|
|
6
|
-
|
|
7
|
-
<%_ if(noNamespace){ _%>
|
|
8
|
-
import type * as GObject from '../<%= GObject.packageName %>.js';
|
|
9
|
-
import type * as Gio from '../<%= Gio.packageName %>.js';
|
|
10
|
-
import type * as Shell from '../<%= Shell.packageName %>.js';
|
|
11
|
-
<%_ } else { _%>
|
|
12
|
-
import type GObject from '../<%= GObject.packageName %>.js';
|
|
13
|
-
import type Gio from '../<%= Gio.packageName %>.js';
|
|
14
|
-
import type Shell from '../<%= Shell.packageName %>.js';
|
|
15
|
-
<%_ } _%>
|
|
16
|
-
|
|
17
|
-
declare class ParentalControlsManager extends GObject.Object {
|
|
18
|
-
|
|
19
|
-
protected _initialized: boolean;
|
|
20
|
-
public readonly initialized: boolean;
|
|
21
|
-
|
|
22
|
-
constructor();
|
|
23
|
-
public _init(): void;
|
|
24
|
-
|
|
25
|
-
_initializeManager(): Promise<void>;
|
|
26
|
-
_onAppFilterChanged(manager: any, uid: ReturnType<typeof Shell.util_get_uid>): void;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Calculate whether the given app (a Gio.DesktopAppInfo) should be shown
|
|
30
|
-
* on the desktop, in search results, etc. The app should be shown if:
|
|
31
|
-
* - The .desktop file doesn’t say it should be hidden.
|
|
32
|
-
* - The executable from the .desktop file’s Exec line isn’t denied in
|
|
33
|
-
* the user’s parental controls.
|
|
34
|
-
* - None of the flatpak app IDs from the X-Flatpak and the
|
|
35
|
-
* X-Flatpak-RenamedFrom lines are denied in the user’s parental
|
|
36
|
-
* controls.
|
|
37
|
-
* @param appInfo The app to check
|
|
38
|
-
*/
|
|
39
|
-
shouldShowApp(appInfo: Gio.DesktopAppInfo): boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function getDefault(): ParentalControlsManager;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/signals.js
|
|
2
|
-
|
|
3
|
-
import type { Signals } from '../Gjs.js';
|
|
4
|
-
|
|
5
|
-
export interface EventEmitter extends Signals.Methods {}
|
|
6
|
-
|
|
7
|
-
export class EventEmitter {
|
|
8
|
-
connectObject(...args: any[]): number // TODO: return type is return type of imports.misc.signalTracker.connectObject
|
|
9
|
-
|
|
10
|
-
disconnectObject(...args: any[]): number // TODO: return type is return type of imports.misc.signalTracker.disconnectObject
|
|
11
|
-
|
|
12
|
-
connect_object(...args: any[]): ReturnType<typeof this.connectObject>
|
|
13
|
-
|
|
14
|
-
disconnect_object(...args: any[]): ReturnType<typeof this.disconnectObject>
|
|
15
|
-
}
|
package/templates/Gjs/module.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<% if(moduleType === 'esm'){ %>
|
|
2
|
-
// @ts-expect-error
|
|
3
|
-
import <%= name %> from 'gi://<%= name %>?version=<%= version %>';
|
|
4
|
-
export { <%= name %> };
|
|
5
|
-
export default <%= name %>;
|
|
6
|
-
<% } else { %>
|
|
7
|
-
imports.gi.versions.<%= name %> = '<%= version %>'
|
|
8
|
-
const <%= name %> = imports.gi.<%= name %>;
|
|
9
|
-
<% if(!noNamespace){ %>
|
|
10
|
-
module.exports = { <%= name %> };
|
|
11
|
-
exports.default = <%= name %>;
|
|
12
|
-
<% } else { %>
|
|
13
|
-
module.exports = <%= name %>;
|
|
14
|
-
<% } %>
|
|
15
|
-
<% } %>
|
|
16
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"paths": { <% girModules.forEach(function(module, idx) { %>
|
|
5
|
-
"gi://<%= module.namespace %>?version=<%= module.version %>": ["<%= typeDir %>/<%= module.namespace %>-<%= module.version %>.d.ts"],
|
|
6
|
-
"gi://<%= module.namespace %>": ["<%= typeDir %>/<%= module.namespace %>-<%= module.version %>.d.ts"]<% if (idx < girModules.length - 1) { %>,<% } %><% }); %>
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
"include": ["<%= typeDir %>/*.ts"]
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/accessDialog.js
|
|
2
|
-
|
|
3
|
-
export namespace AccessDialogDBus {
|
|
4
|
-
export interface AccessDialogAsyncParams {
|
|
5
|
-
handle: string;
|
|
6
|
-
appId: string;
|
|
7
|
-
parentWindow_: any;
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
body: any;
|
|
11
|
-
options: any;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class AccessDialogDBus {
|
|
16
|
-
constructor();
|
|
17
|
-
|
|
18
|
-
AccessDialogAsync(params: AccessDialogDBus.AccessDialogAsyncParams, invocation: any): void;
|
|
19
|
-
}
|