Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@girs/gjs": "^4.3.0",
"@girs/gnome-shell": "workspace:^",
"@girs/gobject-2.0": "^4.3.0",
"@girs/st-18": "^4.3.0"
"@girs/st-51": "^4.3.0"
}
}
2 changes: 1 addition & 1 deletion examples/hello-world/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@girs/gjs'; // For global types like `log()`
import St from '@girs/st-18';
import St from '@girs/st-51';

import '@girs/gnome-shell/extensions/global'; // For global shell types
import { Extension, gettext as _, type ConsoleLike } from '@girs/gnome-shell/extensions/extension';
Expand Down
14 changes: 7 additions & 7 deletions packages/gnome-shell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@girs/gnome-shell",
"version": "50.0.4",
"version": "51.0.0-alpha.1",
"description": "GJS TypeScript type definitions for GNOME Shell Extensions",
"type": "module",
"main": "./dist/index.js",
Expand Down Expand Up @@ -1074,8 +1074,8 @@
"@girs/accountsservice-1.0": "^4.3.0",
"@girs/adw-1": "^4.3.0",
"@girs/atk-1.0": "^4.3.0",
"@girs/clutter-18": "^4.3.0",
"@girs/cogl-18": "^4.3.0",
"@girs/clutter-51": "^4.3.0",
"@girs/cogl-51": "^4.3.0",
"@girs/gcr-4": "^4.3.0",
"@girs/gdm-1.0": "^4.3.0",
"@girs/gio-2.0": "^4.3.0",
Expand All @@ -1088,12 +1088,12 @@
"@girs/gobject-2.0": "^4.3.0",
"@girs/gtk-4.0": "^4.3.0",
"@girs/gvc-1.0": "^4.3.0",
"@girs/meta-18": "^4.3.0",
"@girs/mtk-18": "^4.3.0",
"@girs/meta-51": "^4.3.0",
"@girs/mtk-51": "^4.3.0",
"@girs/polkit-1.0": "^4.3.0",
"@girs/shell-18": "^4.3.0",
"@girs/shell-51": "^4.3.0",
"@girs/shew-0": "^4.3.0",
"@girs/st-18": "^4.3.0",
"@girs/st-51": "^4.3.0",
"@girs/upowerglib-1.0": "^4.3.0"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/gnome-shell/src/extensions/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type Shell from '@girs/shell-18';
import type Clutter from '@girs/clutter-18';
import type Cogl from '@girs/cogl-18';
import type Shell from '@girs/shell-51';
import type Clutter from '@girs/clutter-51';
import type Cogl from '@girs/cogl-51';

declare module '@girs/cairo-1.0/cairo-1.0' {
export namespace cairo {
Expand Down Expand Up @@ -158,7 +158,7 @@ type AnimatableActorFields =

interface EasingParamsWithProperties extends EasingParams, Partial<Pick<Clutter.Actor, AnimatableActorFields>> {}

declare module '@girs/st-18/st-18' {
declare module '@girs/st-51/st-18' {
export namespace St {
interface Adjustment {
/**
Expand All @@ -173,7 +173,7 @@ declare module '@girs/st-18/st-18' {
}
}

declare module '@girs/clutter-18/clutter-18' {
declare module '@girs/clutter-51/clutter-18' {
export namespace Clutter {
interface Actor {
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/gnome-shell/src/misc/animationUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/animationUtils.js

import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-51';
import type Clutter from '@girs/clutter-51';

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/animationUtils.js#L23
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/misc/parentalControlsManager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type GObject from '@girs/gobject-2.0';
import GioUnix from '@girs/giounix-2.0';

import type Shell from '@girs/shell-18';
import type Shell from '@girs/shell-51';

declare class ParentalControlsManager extends GObject.Object {
_initialized: boolean;
Expand Down
4 changes: 2 additions & 2 deletions packages/gnome-shell/src/ui/altTab.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/altTab.js

import type GLib from '@girs/glib-2.0';
import type Clutter from '@girs/clutter-18';
import type Meta from '@girs/meta-18';
import type Clutter from '@girs/clutter-51';
import type Meta from '@girs/meta-51';

import { SwitcherPopup } from './switcherPopup.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/animation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import type GLib from '@girs/glib-2.0';
import type Gio from '@girs/gio-2.0';
import type St from '@girs/st-18';
import type St from '@girs/st-51';

export class Animation extends St.Bin {
constructor(file: Gio.File, width: number, height: number, speed: number);
Expand Down
6 changes: 3 additions & 3 deletions packages/gnome-shell/src/ui/appDisplay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import type GObject from '@girs/gobject-2.0';
import type Gio from '@girs/gio-2.0';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-18';
import type Shell from '@girs/shell-18';
import type Clutter from '@girs/clutter-51';
import type St from '@girs/st-51';
import type Shell from '@girs/shell-51';

import { GridSearchResult, MetaInfo } from './search.js';
import { IconGrid, BaseIcon } from './iconGrid.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/appFavorites.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/appFavorites.js

import type Shell from '@girs/shell-18';
import type Shell from '@girs/shell-51';

import { EventEmitter } from '../misc/signals.js';

Expand Down
6 changes: 3 additions & 3 deletions packages/gnome-shell/src/ui/appMenu.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/appMenu.js

import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-18';
import type Shell from '@girs/shell-18';
import type St from '@girs/st-51';
import type Clutter from '@girs/clutter-51';
import type Shell from '@girs/shell-51';

import type { PopupMenu, PopupSeparatorMenuItem, PopupMenuSection } from './popupMenu.js';
import type { getAppFavorites } from './appFavorites.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/audioDeviceSelection.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/audioDeviceSelection.js

import type Gio from '@girs/gio-2.0';
import type St from '@girs/st-18';
import type St from '@girs/st-51';

import type { ModalDialog } from './modalDialog.js';

Expand Down
4 changes: 2 additions & 2 deletions packages/gnome-shell/src/ui/background.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
*/

import type Gio from '@girs/gio-2.0';
import type Clutter from '@girs/clutter-18';
import type Meta from '@girs/meta-18';
import type Clutter from '@girs/clutter-51';
import type Meta from '@girs/meta-51';
import type GnomeDesktop from '@girs/gnomedesktop-4.0';
import type GnomeBG from '@girs/gnomebg-4.0';

Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/backgroundMenu.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/backgroundMenu.js

import type Clutter from '@girs/clutter-18';
import type Clutter from '@girs/clutter-51';

import type { PopupMenu } from './popupMenu.js';
import type { LayoutManager } from './layout.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/barLevel.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/barLevel.js

import type St from '@girs/st-18';
import type St from '@girs/st-51';

export namespace BarLevel {
export interface ConstructorProps extends St.DrawingArea.ConstructorProps {}
Expand Down
4 changes: 2 additions & 2 deletions packages/gnome-shell/src/ui/boxpointer.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-51';
import type Clutter from '@girs/clutter-51';

import type { LayoutManager } from './layout.js';

Expand Down
4 changes: 2 additions & 2 deletions packages/gnome-shell/src/ui/calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import type GObject from '@girs/gobject-2.0';
import type Gio from '@girs/gio-2.0';
import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-51';
import type Clutter from '@girs/clutter-51';

import type { Switch } from './popupMenu.js';
import type { MessageView } from './messageList.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/checkBox.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type St from '@girs/st-18';
import type St from '@girs/st-51';

export class CheckBox extends St.Button {
_box: St.Bin;
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/closeDialog.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type GObject from '@girs/gobject-2.0';
import type Meta from '@girs/meta-18';
import type Meta from '@girs/meta-51';

import { Dialog, MessageDialogContent } from './dialog.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/components/polkitAgent.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/components/polkitAgent.js

import type Shell from '@girs/shell-18';
import type Shell from '@girs/shell-51';

declare class AuthenticationAgent extends Shell.PolkitAuthenticationAgent {
constructor();
Expand Down
6 changes: 3 additions & 3 deletions packages/gnome-shell/src/ui/dash.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/dash.js

import type Clutter from '@girs/clutter-18';
import type Shell from '@girs/shell-18';
import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-51';
import type Shell from '@girs/shell-51';
import type St from '@girs/st-51';

import { AppIcon } from './appDisplay.js';
import { DragEvent, DragMonitor, DragMotionResult } from './dnd.js';
Expand Down
4 changes: 2 additions & 2 deletions packages/gnome-shell/src/ui/dialog.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/dialog.js

import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-51';
import type St from '@girs/st-51';

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/dialog.js#L113
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/dnd.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/dnd.js

import type Clutter from '@girs/clutter-18';
import type Clutter from '@girs/clutter-51';

import { EventEmitter } from '../misc/signals.js';

Expand Down
6 changes: 3 additions & 3 deletions packages/gnome-shell/src/ui/iconGrid.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/iconGrid.js

import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-18';
import type Shell from '@girs/shell-18';
import type Clutter from '@girs/clutter-51';
import type St from '@girs/st-51';
import type Shell from '@girs/shell-51';

export namespace BaseIcon {
export interface ConstructorProps {
Expand Down
10 changes: 5 additions & 5 deletions packages/gnome-shell/src/ui/layout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import type GObject from '@girs/gobject-2.0';
import type Gio from '@girs/gio-2.0';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-18';
import type Meta from '@girs/meta-18';
import type Mtk from '@girs/mtk-18';
import type Shell from '@girs/shell-18';
import type Clutter from '@girs/clutter-51';
import type St from '@girs/st-51';
import type Meta from '@girs/meta-51';
import type Mtk from '@girs/mtk-51';
import type Shell from '@girs/shell-51';

import { EventEmitter } from '../misc/signals.js';

Expand Down
16 changes: 8 additions & 8 deletions packages/gnome-shell/src/ui/lightbox.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/lightbox.js

import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-18';
import type Shell from '@girs/shell-18';
import type Clutter from '@girs/clutter-51';
import type Cogl from '@girs/cogl-51';
import type St from '@girs/st-51';

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/lightbox.js#L10
Expand All @@ -14,20 +14,20 @@ export const VIGNETTE_SHARPNESS = 0.7;

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/lightbox.js#L31
* @version 48
* @version 51
*/
export namespace RadialShaderEffect {
export interface ConstructorProps extends Shell.GLSLEffect.ConstructorProps {
export interface ConstructorProps extends Clutter.ShaderEffect.ConstructorProps {
brightness: number;
sharpness: number;
}
}

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/lightbox.js#L42
* @version 48
* @version 51
*/
export class RadialShaderEffect extends Shell.GLSLEffect {
export class RadialShaderEffect extends Clutter.ShaderEffect {
_brightness: number;
_sharpness: number;

Expand All @@ -37,7 +37,7 @@ export class RadialShaderEffect extends Shell.GLSLEffect {
constructor(props: Partial<RadialShaderEffect.ConstructorProps>);
_init(props: Partial<RadialShaderEffect.ConstructorProps>): void;

vfunc_build_pipeline(): void;
vfunc_get_static_snippet(): Cogl.Snippet;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/lookingGlass.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type Clutter from '@girs/clutter-18';
import type Clutter from '@girs/clutter-51';

/**
* @version 46
Expand Down
8 changes: 4 additions & 4 deletions packages/gnome-shell/src/ui/main.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/main.js

import type Gio from '@girs/gio-2.0';
import type Shell from '@girs/shell-18';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-18';
import type Meta from '@girs/meta-18';
import type Shell from '@girs/shell-51';
import type Clutter from '@girs/clutter-51';
import type St from '@girs/st-51';
import type Meta from '@girs/meta-51';

import { ComponentManager } from './components.js';
import { AccessDialogDBus } from './accessDialog.js';
Expand Down
4 changes: 2 additions & 2 deletions packages/gnome-shell/src/ui/messageList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import type GObject from '@girs/gobject-2.0';
import type Gio from '@girs/gio-2.0';
import type GLib from '@girs/glib-2.0';
import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-51';
import type Clutter from '@girs/clutter-51';
import type { Notification } from './messageTray.js';
import type { MprisPlayer, MprisSource } from './mpris.js';

Expand Down
6 changes: 3 additions & 3 deletions packages/gnome-shell/src/ui/messageTray.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import type GObject from '@girs/gobject-2.0';
import type GLib from '@girs/glib-2.0';
import type Gio from '@girs/gio-2.0';
import type St from '@girs/st-18';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-51';
import type Clutter from '@girs/clutter-51';
import type GnomeDesktop from '@girs/gnomedesktop-4.0';
import type Shell from '@girs/shell-18';
import type Shell from '@girs/shell-51';

import type { PresenceStatus } from '../misc/gnomeSession.js';
import type * as MessageList from './messageList.js';
Expand Down
6 changes: 3 additions & 3 deletions packages/gnome-shell/src/ui/modalDialog.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/modalDialog.js

import type St from '@girs/st-18';
import type Shell from '@girs/shell-18';
import type Clutter from '@girs/clutter-18';
import type St from '@girs/st-51';
import type Shell from '@girs/shell-51';
import type Clutter from '@girs/clutter-51';

import type { MonitorConstraint } from './layout.js';
import type { ButtonInfo, Dialog } from './dialog.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/gnome-shell/src/ui/mpris.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import type Gio from '@girs/gio-2.0';
import type GObject from '@girs/gobject-2.0';
import type St from '@girs/st-18';
import type St from '@girs/st-51';

import type { EventEmitter } from '../misc/signals.js';

Expand Down
Loading