@girs/gkbd-3.0 3.0.0-3.2.6 → 3.0.0-3.2.8

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
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gkbd-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gkbd-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Gkbd-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/gkbd-3.0.d.cts CHANGED
@@ -42,20 +42,20 @@ export enum KeyboardDrawingItemType {
42
42
  KEY_EXTRA,
43
43
  DOODAD,
44
44
  }
45
- export const DESKTOP_SCHEMA: string | null
45
+ export const DESKTOP_SCHEMA: string
46
46
  export const KEYBOARD_DRAWING_H: number
47
- export const KEYBOARD_SCHEMA: string | null
47
+ export const KEYBOARD_SCHEMA: string
48
48
  export function install_glib_log_appender(): void
49
49
  export function keyboard_config_add_default_switch_option_if_necessary(layouts_list: string | null, options_list: string | null, was_appended: boolean): string[]
50
- export function keyboard_config_format_full_description(layout_descr: string | null, variant_descr: string | null): string | null
51
- export function keyboard_config_get_descriptions(config_registry: Xkl.ConfigRegistry, name: string | null, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
52
- export function keyboard_config_merge_items(parent: string | null, child: string | null): string | null
53
- export function keyboard_config_split_items(merged: string | null, parent: string | null, child: string | null): boolean
50
+ export function keyboard_config_format_full_description(layout_descr: string, variant_descr: string): string
51
+ export function keyboard_config_get_descriptions(config_registry: Xkl.ConfigRegistry, name: string, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
52
+ export function keyboard_config_merge_items(parent: string, child: string): string
53
+ export function keyboard_config_split_items(merged: string, parent: string | null, child: string | null): boolean
54
54
  export function preview_load_position(): Gdk.Rectangle
55
55
  export function preview_save_position(rect: Gdk.Rectangle): void
56
56
  export function strv_append(arr: string | null, element: string | null): string[]
57
57
  export function strv_behead(arr: string | null): void
58
- export function strv_remove(arr: string | null, element: string | null): boolean
58
+ export function strv_remove(arr: string | null, element: string): boolean
59
59
  export module Configuration {
60
60
 
61
61
  // Signal callback interfaces
@@ -201,7 +201,7 @@ export interface Indicator extends Atk.ImplementorIface, Gtk.Buildable {
201
201
  * @param child the child widget
202
202
  * @param child_property the name of a child property installed on the class of `container`
203
203
  */
204
- child_notify(child: Gtk.Widget, child_property: string | null): void
204
+ child_notify(child: Gtk.Widget, child_property: string): void
205
205
 
206
206
  // Overloads of child_notify
207
207
 
@@ -215,7 +215,7 @@ export interface Indicator extends Atk.ImplementorIface, Gtk.Buildable {
215
215
  * Also see gtk_container_child_notify().
216
216
  * @param child_property the name of a child property installed on the class of `widget’`s parent
217
217
  */
218
- child_notify(child_property: string | null): void
218
+ child_notify(child_property: string): void
219
219
  /**
220
220
  * Emits a #GtkWidget::child-notify signal for the
221
221
  * [child property][child-properties] `child_property`
@@ -226,7 +226,7 @@ export interface Indicator extends Atk.ImplementorIface, Gtk.Buildable {
226
226
  * Also see gtk_container_child_notify().
227
227
  * @param child_property the name of a child property installed on the class of `widget’`s parent
228
228
  */
229
- child_notify(child_property: string | null): void
229
+ child_notify(child_property: string): void
230
230
 
231
231
  // Own virtual methods of Gkbd-3.0.Gkbd.Indicator
232
232
 
@@ -435,12 +435,12 @@ export interface KeyboardDrawing extends Atk.ImplementorIface, Gtk.Buildable {
435
435
 
436
436
  // Owm methods of Gkbd-3.0.Gkbd.KeyboardDrawing
437
437
 
438
- get_compat(): string | null
439
- get_geometry(): string | null
440
- get_keycodes(): string | null
441
- get_symbols(): string | null
442
- get_types(): string | null
443
- print(parent_window: Gtk.Window, description: string | null): void
438
+ get_compat(): string
439
+ get_geometry(): string
440
+ get_keycodes(): string
441
+ get_symbols(): string
442
+ get_types(): string
443
+ print(parent_window: Gtk.Window, description: string): void
444
444
  /**
445
445
  * Renders a keyboard layout to a cairo_t context. `cr` and `layout` can be got
446
446
  * from e.g. a GtkWidget or a GtkPrintContext. `cr` and `layout` may be modified
@@ -457,7 +457,7 @@ export interface KeyboardDrawing extends Atk.ImplementorIface, Gtk.Buildable {
457
457
  */
458
458
  render(cr: cairo.Context, layout: Pango.Layout, x: number, y: number, width: number, height: number, dpi_x: number, dpi_y: number): boolean
459
459
  set_groups_levels(groupLevels: KeyboardDrawingGroupLevel): void
460
- set_layout(id: string | null): void
460
+ set_layout(id: string): void
461
461
  set_track_config(enable: boolean): void
462
462
  set_track_modifiers(enable: boolean): void
463
463
 
@@ -611,7 +611,7 @@ export class KeyboardDrawing extends Gtk.DrawingArea {
611
611
  static new(): KeyboardDrawing
612
612
  _init(config?: KeyboardDrawing.ConstructorProperties): void
613
613
  static dialog_set_group(dialog: Gtk.Widget, registry: Xkl.ConfigRegistry, group: number): void
614
- static dialog_set_layout(dialog: Gtk.Widget, registry: Xkl.ConfigRegistry, layout: string | null): void
614
+ static dialog_set_layout(dialog: Gtk.Widget, registry: Xkl.ConfigRegistry, layout: string): void
615
615
  }
616
616
 
617
617
  export module Status {
@@ -737,7 +737,7 @@ export interface DesktopConfig {
737
737
  activate(): boolean
738
738
  init(engine: Xkl.Engine): void
739
739
  load(): void
740
- load_group_descriptions(registry: Xkl.ConfigRegistry, layout_ids: string | null, variant_ids: string | null, short_group_names: string | null, full_group_names: string | null): boolean
740
+ load_group_descriptions(registry: Xkl.ConfigRegistry, layout_ids: string, variant_ids: string, short_group_names: string | null, full_group_names: string | null): boolean
741
741
  lock_next_group(): void
742
742
  lock_prev_group(): void
743
743
  restore_group(): void
@@ -844,10 +844,10 @@ export class KeyboardConfig {
844
844
  // Constructors of Gkbd-3.0.Gkbd.KeyboardConfig
845
845
 
846
846
  static add_default_switch_option_if_necessary(layouts_list: string | null, options_list: string | null, was_appended: boolean): string[]
847
- static format_full_description(layout_descr: string | null, variant_descr: string | null): string | null
848
- static get_descriptions(config_registry: Xkl.ConfigRegistry, name: string | null, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
849
- static merge_items(parent: string | null, child: string | null): string | null
850
- static split_items(merged: string | null, parent: string | null, child: string | null): boolean
847
+ static format_full_description(layout_descr: string, variant_descr: string): string
848
+ static get_descriptions(config_registry: Xkl.ConfigRegistry, name: string, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
849
+ static merge_items(parent: string, child: string): string
850
+ static split_items(merged: string, parent: string | null, child: string | null): boolean
851
851
  }
852
852
 
853
853
  export interface KeyboardDrawingClass {
package/gkbd-3.0.d.ts CHANGED
@@ -44,20 +44,20 @@ enum KeyboardDrawingItemType {
44
44
  KEY_EXTRA,
45
45
  DOODAD,
46
46
  }
47
- const DESKTOP_SCHEMA: string | null
47
+ const DESKTOP_SCHEMA: string
48
48
  const KEYBOARD_DRAWING_H: number
49
- const KEYBOARD_SCHEMA: string | null
49
+ const KEYBOARD_SCHEMA: string
50
50
  function install_glib_log_appender(): void
51
51
  function keyboard_config_add_default_switch_option_if_necessary(layouts_list: string | null, options_list: string | null, was_appended: boolean): string[]
52
- function keyboard_config_format_full_description(layout_descr: string | null, variant_descr: string | null): string | null
53
- function keyboard_config_get_descriptions(config_registry: Xkl.ConfigRegistry, name: string | null, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
54
- function keyboard_config_merge_items(parent: string | null, child: string | null): string | null
55
- function keyboard_config_split_items(merged: string | null, parent: string | null, child: string | null): boolean
52
+ function keyboard_config_format_full_description(layout_descr: string, variant_descr: string): string
53
+ function keyboard_config_get_descriptions(config_registry: Xkl.ConfigRegistry, name: string, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
54
+ function keyboard_config_merge_items(parent: string, child: string): string
55
+ function keyboard_config_split_items(merged: string, parent: string | null, child: string | null): boolean
56
56
  function preview_load_position(): Gdk.Rectangle
57
57
  function preview_save_position(rect: Gdk.Rectangle): void
58
58
  function strv_append(arr: string | null, element: string | null): string[]
59
59
  function strv_behead(arr: string | null): void
60
- function strv_remove(arr: string | null, element: string | null): boolean
60
+ function strv_remove(arr: string | null, element: string): boolean
61
61
  module Configuration {
62
62
 
63
63
  // Signal callback interfaces
@@ -203,7 +203,7 @@ interface Indicator extends Atk.ImplementorIface, Gtk.Buildable {
203
203
  * @param child the child widget
204
204
  * @param child_property the name of a child property installed on the class of `container`
205
205
  */
206
- child_notify(child: Gtk.Widget, child_property: string | null): void
206
+ child_notify(child: Gtk.Widget, child_property: string): void
207
207
 
208
208
  // Overloads of child_notify
209
209
 
@@ -217,7 +217,7 @@ interface Indicator extends Atk.ImplementorIface, Gtk.Buildable {
217
217
  * Also see gtk_container_child_notify().
218
218
  * @param child_property the name of a child property installed on the class of `widget’`s parent
219
219
  */
220
- child_notify(child_property: string | null): void
220
+ child_notify(child_property: string): void
221
221
  /**
222
222
  * Emits a #GtkWidget::child-notify signal for the
223
223
  * [child property][child-properties] `child_property`
@@ -228,7 +228,7 @@ interface Indicator extends Atk.ImplementorIface, Gtk.Buildable {
228
228
  * Also see gtk_container_child_notify().
229
229
  * @param child_property the name of a child property installed on the class of `widget’`s parent
230
230
  */
231
- child_notify(child_property: string | null): void
231
+ child_notify(child_property: string): void
232
232
 
233
233
  // Own virtual methods of Gkbd-3.0.Gkbd.Indicator
234
234
 
@@ -437,12 +437,12 @@ interface KeyboardDrawing extends Atk.ImplementorIface, Gtk.Buildable {
437
437
 
438
438
  // Owm methods of Gkbd-3.0.Gkbd.KeyboardDrawing
439
439
 
440
- get_compat(): string | null
441
- get_geometry(): string | null
442
- get_keycodes(): string | null
443
- get_symbols(): string | null
444
- get_types(): string | null
445
- print(parent_window: Gtk.Window, description: string | null): void
440
+ get_compat(): string
441
+ get_geometry(): string
442
+ get_keycodes(): string
443
+ get_symbols(): string
444
+ get_types(): string
445
+ print(parent_window: Gtk.Window, description: string): void
446
446
  /**
447
447
  * Renders a keyboard layout to a cairo_t context. `cr` and `layout` can be got
448
448
  * from e.g. a GtkWidget or a GtkPrintContext. `cr` and `layout` may be modified
@@ -459,7 +459,7 @@ interface KeyboardDrawing extends Atk.ImplementorIface, Gtk.Buildable {
459
459
  */
460
460
  render(cr: cairo.Context, layout: Pango.Layout, x: number, y: number, width: number, height: number, dpi_x: number, dpi_y: number): boolean
461
461
  set_groups_levels(groupLevels: KeyboardDrawingGroupLevel): void
462
- set_layout(id: string | null): void
462
+ set_layout(id: string): void
463
463
  set_track_config(enable: boolean): void
464
464
  set_track_modifiers(enable: boolean): void
465
465
 
@@ -613,7 +613,7 @@ class KeyboardDrawing extends Gtk.DrawingArea {
613
613
  static new(): KeyboardDrawing
614
614
  _init(config?: KeyboardDrawing.ConstructorProperties): void
615
615
  static dialog_set_group(dialog: Gtk.Widget, registry: Xkl.ConfigRegistry, group: number): void
616
- static dialog_set_layout(dialog: Gtk.Widget, registry: Xkl.ConfigRegistry, layout: string | null): void
616
+ static dialog_set_layout(dialog: Gtk.Widget, registry: Xkl.ConfigRegistry, layout: string): void
617
617
  }
618
618
 
619
619
  module Status {
@@ -739,7 +739,7 @@ interface DesktopConfig {
739
739
  activate(): boolean
740
740
  init(engine: Xkl.Engine): void
741
741
  load(): void
742
- load_group_descriptions(registry: Xkl.ConfigRegistry, layout_ids: string | null, variant_ids: string | null, short_group_names: string | null, full_group_names: string | null): boolean
742
+ load_group_descriptions(registry: Xkl.ConfigRegistry, layout_ids: string, variant_ids: string, short_group_names: string | null, full_group_names: string | null): boolean
743
743
  lock_next_group(): void
744
744
  lock_prev_group(): void
745
745
  restore_group(): void
@@ -846,10 +846,10 @@ class KeyboardConfig {
846
846
  // Constructors of Gkbd-3.0.Gkbd.KeyboardConfig
847
847
 
848
848
  static add_default_switch_option_if_necessary(layouts_list: string | null, options_list: string | null, was_appended: boolean): string[]
849
- static format_full_description(layout_descr: string | null, variant_descr: string | null): string | null
850
- static get_descriptions(config_registry: Xkl.ConfigRegistry, name: string | null, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
851
- static merge_items(parent: string | null, child: string | null): string | null
852
- static split_items(merged: string | null, parent: string | null, child: string | null): boolean
849
+ static format_full_description(layout_descr: string, variant_descr: string): string
850
+ static get_descriptions(config_registry: Xkl.ConfigRegistry, name: string, layout_short_descr: string | null, layout_descr: string | null, variant_short_descr: string | null, variant_descr: string | null): boolean
851
+ static merge_items(parent: string, child: string): string
852
+ static split_items(merged: string, parent: string | null, child: string | null): boolean
853
853
  }
854
854
 
855
855
  interface KeyboardDrawingClass {
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/gkbd-3.0",
3
- "version": "3.0.0-3.2.6",
3
+ "version": "3.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for Gkbd-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "gkbd-3.0.js",
7
7
  "main": "gkbd-3.0.js",
8
8
  "exports": {
9
- "./ambient": "./gkbd-3.0-ambient.d.ts",
10
- "./import": "./gkbd-3.0-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./gkbd-3.0-ambient.d.ts",
11
+ "default": "./gkbd-3.0-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./gkbd-3.0-import.d.ts",
15
+ "default": "./gkbd-3.0-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./gkbd-3.0.d.ts",
@@ -25,21 +31,21 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gkbd-3.0.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.6",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.6",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
33
- "@girs/gio-2.0": "^2.78.0-3.2.6",
34
- "@girs/gjs": "^3.2.6",
35
- "@girs/glib-2.0": "^2.78.0-3.2.6",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.6",
39
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
40
- "@girs/pango-1.0": "^1.51.0-3.2.6",
41
- "@girs/xkl-1.0": "^1.0.0-3.2.6",
42
- "@girs/xlib-2.0": "^2.0.0-3.2.6"
34
+ "@girs/atk-1.0": "^2.45.1-3.2.8",
35
+ "@girs/cairo-1.0": "^1.0.0-3.2.8",
36
+ "@girs/freetype2-2.0": "^2.0.0-3.2.8",
37
+ "@girs/gdk-3.0": "^3.24.39-3.2.8",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.8",
39
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
40
+ "@girs/gjs": "^3.2.8",
41
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
42
+ "@girs/gmodule-2.0": "^2.0.0-3.2.8",
43
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
44
+ "@girs/gtk-3.0": "^3.24.39-3.2.8",
45
+ "@girs/harfbuzz-0.0": "^8.1.1-3.2.8",
46
+ "@girs/pango-1.0": "^1.51.0-3.2.8",
47
+ "@girs/xkl-1.0": "^1.0.0-3.2.8",
48
+ "@girs/xlib-2.0": "^2.0.0-3.2.8"
43
49
  },
44
50
  "devDependencies": {
45
51
  "typescript": "*"
@@ -56,7 +62,7 @@
56
62
  "license": "MIT",
57
63
  "repository": {
58
64
  "type": "git",
59
- "url": "git+https://github.com/gjsify/types.git"
65
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
60
66
  },
61
67
  "bugs": {
62
68
  "url": "https://github.com/gjsify/ts-for-gir/issues"