@girs/gd-1.0 1.0.0-3.2.4 → 1.0.0-3.2.6

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/gd-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gd-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for Gd-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
9
9
 
10
10
 
11
11
  ## Install
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
81
81
  const Gd = imports.gi.Gd;
82
82
  ```
83
83
 
84
+
85
+ ### ESM vs. CommonJS
86
+
87
+ GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
88
+
89
+ In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
90
+
91
+ On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
92
+
93
+ This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
94
+
95
+ Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
96
+
84
97
  ### Bundle
85
98
 
86
99
  Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  declare module 'gi://Gd?version=1.0' {
4
3
  import Gd10 from '@girs/gd-1.0';
5
4
  export default Gd10;
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import Gd10 from '@girs/gd-1.0';
4
3
 
5
4
  declare global {
package/gd-1.0.d.cts CHANGED
@@ -72,6 +72,14 @@ export module HeaderButton {
72
72
  * Whether the label of the #GdHeaderButton object should use markup.
73
73
  */
74
74
  use_markup?: boolean | null
75
+ /**
76
+ * The symbolic icon name of the #GdHeaderButton object.
77
+ */
78
+ symbolicIconName?: string | null
79
+ /**
80
+ * Whether the label of the #GdHeaderButton object should use markup.
81
+ */
82
+ useMarkup?: boolean | null
75
83
  }
76
84
 
77
85
  }
@@ -88,10 +96,18 @@ export interface HeaderButton extends Gtk.Button {
88
96
  * The symbolic icon name of the #GdHeaderButton object.
89
97
  */
90
98
  symbolic_icon_name: string | null
99
+ /**
100
+ * The symbolic icon name of the #GdHeaderButton object.
101
+ */
102
+ symbolicIconName: string | null
91
103
  /**
92
104
  * Whether the label of the #GdHeaderButton object should use markup.
93
105
  */
94
106
  use_markup: boolean
107
+ /**
108
+ * Whether the label of the #GdHeaderButton object should use markup.
109
+ */
110
+ useMarkup: boolean
95
111
 
96
112
  // Owm methods of Gd-1.0.Gd.HeaderButton
97
113
 
@@ -523,6 +539,7 @@ export module HeaderBar {
523
539
  subtitle?: string | null
524
540
  title?: string | null
525
541
  vpadding?: number | null
542
+ customTitle?: Gtk.Widget | null
526
543
  }
527
544
 
528
545
  }
@@ -532,6 +549,7 @@ export interface HeaderBar extends Atk.ImplementorIface, Gtk.Buildable {
532
549
  // Own properties of Gd-1.0.Gd.HeaderBar
533
550
 
534
551
  custom_title: Gtk.Widget
552
+ customTitle: Gtk.Widget
535
553
  hpadding: number
536
554
  spacing: number
537
555
  subtitle: string | null
@@ -2541,6 +2559,7 @@ export module MainToolbar {
2541
2559
  // Own constructor properties of Gd-1.0.Gd.MainToolbar
2542
2560
 
2543
2561
  show_modes?: boolean | null
2562
+ showModes?: boolean | null
2544
2563
  }
2545
2564
 
2546
2565
  }
@@ -2550,6 +2569,7 @@ export interface MainToolbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
2550
2569
  // Own properties of Gd-1.0.Gd.MainToolbar
2551
2570
 
2552
2571
  show_modes: boolean
2572
+ showModes: boolean
2553
2573
 
2554
2574
  // Own fields of Gd-1.0.Gd.MainToolbar
2555
2575
 
@@ -2892,6 +2912,8 @@ export module MainView {
2892
2912
  model?: Gtk.TreeModel | null
2893
2913
  selection_mode?: boolean | null
2894
2914
  view_type?: number | null
2915
+ selectionMode?: boolean | null
2916
+ viewType?: number | null
2895
2917
  }
2896
2918
 
2897
2919
  }
@@ -2902,7 +2924,9 @@ export interface MainView extends Atk.ImplementorIface, Gtk.Buildable {
2902
2924
 
2903
2925
  model: Gtk.TreeModel
2904
2926
  selection_mode: boolean
2927
+ selectionMode: boolean
2905
2928
  view_type: number
2929
+ viewType: number
2906
2930
 
2907
2931
  // Conflicting properties
2908
2932
 
@@ -3208,6 +3232,8 @@ export module Revealer {
3208
3232
  orientation?: Gtk.Orientation | null
3209
3233
  reveal_child?: boolean | null
3210
3234
  transition_duration?: number | null
3235
+ revealChild?: boolean | null
3236
+ transitionDuration?: number | null
3211
3237
  }
3212
3238
 
3213
3239
  }
@@ -3217,9 +3243,12 @@ export interface Revealer extends Atk.ImplementorIface, Gtk.Buildable {
3217
3243
  // Own properties of Gd-1.0.Gd.Revealer
3218
3244
 
3219
3245
  readonly child_revealed: boolean
3246
+ readonly childRevealed: boolean
3220
3247
  orientation: Gtk.Orientation
3221
3248
  reveal_child: boolean
3249
+ revealChild: boolean
3222
3250
  transition_duration: number
3251
+ transitionDuration: number
3223
3252
 
3224
3253
  // Own fields of Gd-1.0.Gd.Revealer
3225
3254
 
@@ -3450,6 +3479,10 @@ export module Stack {
3450
3479
  transition_type?: number | null
3451
3480
  visible_child?: Gtk.Widget | null
3452
3481
  visible_child_name?: string | null
3482
+ transitionDuration?: number | null
3483
+ transitionType?: number | null
3484
+ visibleChild?: Gtk.Widget | null
3485
+ visibleChildName?: string | null
3453
3486
  }
3454
3487
 
3455
3488
  }
@@ -3460,9 +3493,13 @@ export interface Stack extends Atk.ImplementorIface, Gtk.Buildable {
3460
3493
 
3461
3494
  homogeneous: boolean
3462
3495
  transition_duration: number
3496
+ transitionDuration: number
3463
3497
  transition_type: number
3498
+ transitionType: number
3464
3499
  visible_child: Gtk.Widget
3500
+ visibleChild: Gtk.Widget
3465
3501
  visible_child_name: string | null
3502
+ visibleChildName: string | null
3466
3503
 
3467
3504
  // Own fields of Gd-1.0.Gd.Stack
3468
3505
 
@@ -4208,6 +4245,7 @@ export module TaggedEntry {
4208
4245
  // Own constructor properties of Gd-1.0.Gd.TaggedEntry
4209
4246
 
4210
4247
  tag_close_visible?: boolean | null
4248
+ tagCloseVisible?: boolean | null
4211
4249
  }
4212
4250
 
4213
4251
  }
@@ -4217,6 +4255,7 @@ export interface TaggedEntry extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Ce
4217
4255
  // Own properties of Gd-1.0.Gd.TaggedEntry
4218
4256
 
4219
4257
  tag_close_visible: boolean
4258
+ tagCloseVisible: boolean
4220
4259
 
4221
4260
  // Own fields of Gd-1.0.Gd.TaggedEntry
4222
4261
 
@@ -4560,6 +4599,7 @@ export module TaggedEntryTag {
4560
4599
  has_close_button?: boolean | null
4561
4600
  label?: string | null
4562
4601
  style?: string | null
4602
+ hasCloseButton?: boolean | null
4563
4603
  }
4564
4604
 
4565
4605
  }
@@ -4569,6 +4609,7 @@ export interface TaggedEntryTag {
4569
4609
  // Own properties of Gd-1.0.Gd.TaggedEntryTag
4570
4610
 
4571
4611
  has_close_button: boolean
4612
+ hasCloseButton: boolean
4572
4613
  label: string | null
4573
4614
  style: string | null
4574
4615
 
@@ -4630,6 +4671,7 @@ export module TogglePixbufRenderer {
4630
4671
  active?: boolean | null
4631
4672
  pulse?: number | null
4632
4673
  toggle_visible?: boolean | null
4674
+ toggleVisible?: boolean | null
4633
4675
  }
4634
4676
 
4635
4677
  }
@@ -4641,6 +4683,7 @@ export interface TogglePixbufRenderer {
4641
4683
  active: boolean
4642
4684
  pulse: number
4643
4685
  toggle_visible: boolean
4686
+ toggleVisible: boolean
4644
4687
 
4645
4688
  // Own fields of Gd-1.0.Gd.TogglePixbufRenderer
4646
4689
 
@@ -4767,6 +4810,8 @@ export module TwoLinesRenderer {
4767
4810
 
4768
4811
  line_two?: string | null
4769
4812
  text_lines?: number | null
4813
+ lineTwo?: string | null
4814
+ textLines?: number | null
4770
4815
  }
4771
4816
 
4772
4817
  }
@@ -4776,7 +4821,9 @@ export interface TwoLinesRenderer {
4776
4821
  // Own properties of Gd-1.0.Gd.TwoLinesRenderer
4777
4822
 
4778
4823
  line_two: string | null
4824
+ lineTwo: string | null
4779
4825
  text_lines: number
4826
+ textLines: number
4780
4827
 
4781
4828
  // Own fields of Gd-1.0.Gd.TwoLinesRenderer
4782
4829
 
package/gd-1.0.d.ts CHANGED
@@ -74,6 +74,14 @@ module HeaderButton {
74
74
  * Whether the label of the #GdHeaderButton object should use markup.
75
75
  */
76
76
  use_markup?: boolean | null
77
+ /**
78
+ * The symbolic icon name of the #GdHeaderButton object.
79
+ */
80
+ symbolicIconName?: string | null
81
+ /**
82
+ * Whether the label of the #GdHeaderButton object should use markup.
83
+ */
84
+ useMarkup?: boolean | null
77
85
  }
78
86
 
79
87
  }
@@ -90,10 +98,18 @@ interface HeaderButton extends Gtk.Button {
90
98
  * The symbolic icon name of the #GdHeaderButton object.
91
99
  */
92
100
  symbolic_icon_name: string | null
101
+ /**
102
+ * The symbolic icon name of the #GdHeaderButton object.
103
+ */
104
+ symbolicIconName: string | null
93
105
  /**
94
106
  * Whether the label of the #GdHeaderButton object should use markup.
95
107
  */
96
108
  use_markup: boolean
109
+ /**
110
+ * Whether the label of the #GdHeaderButton object should use markup.
111
+ */
112
+ useMarkup: boolean
97
113
 
98
114
  // Owm methods of Gd-1.0.Gd.HeaderButton
99
115
 
@@ -525,6 +541,7 @@ module HeaderBar {
525
541
  subtitle?: string | null
526
542
  title?: string | null
527
543
  vpadding?: number | null
544
+ customTitle?: Gtk.Widget | null
528
545
  }
529
546
 
530
547
  }
@@ -534,6 +551,7 @@ interface HeaderBar extends Atk.ImplementorIface, Gtk.Buildable {
534
551
  // Own properties of Gd-1.0.Gd.HeaderBar
535
552
 
536
553
  custom_title: Gtk.Widget
554
+ customTitle: Gtk.Widget
537
555
  hpadding: number
538
556
  spacing: number
539
557
  subtitle: string | null
@@ -2543,6 +2561,7 @@ module MainToolbar {
2543
2561
  // Own constructor properties of Gd-1.0.Gd.MainToolbar
2544
2562
 
2545
2563
  show_modes?: boolean | null
2564
+ showModes?: boolean | null
2546
2565
  }
2547
2566
 
2548
2567
  }
@@ -2552,6 +2571,7 @@ interface MainToolbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
2552
2571
  // Own properties of Gd-1.0.Gd.MainToolbar
2553
2572
 
2554
2573
  show_modes: boolean
2574
+ showModes: boolean
2555
2575
 
2556
2576
  // Own fields of Gd-1.0.Gd.MainToolbar
2557
2577
 
@@ -2894,6 +2914,8 @@ module MainView {
2894
2914
  model?: Gtk.TreeModel | null
2895
2915
  selection_mode?: boolean | null
2896
2916
  view_type?: number | null
2917
+ selectionMode?: boolean | null
2918
+ viewType?: number | null
2897
2919
  }
2898
2920
 
2899
2921
  }
@@ -2904,7 +2926,9 @@ interface MainView extends Atk.ImplementorIface, Gtk.Buildable {
2904
2926
 
2905
2927
  model: Gtk.TreeModel
2906
2928
  selection_mode: boolean
2929
+ selectionMode: boolean
2907
2930
  view_type: number
2931
+ viewType: number
2908
2932
 
2909
2933
  // Conflicting properties
2910
2934
 
@@ -3210,6 +3234,8 @@ module Revealer {
3210
3234
  orientation?: Gtk.Orientation | null
3211
3235
  reveal_child?: boolean | null
3212
3236
  transition_duration?: number | null
3237
+ revealChild?: boolean | null
3238
+ transitionDuration?: number | null
3213
3239
  }
3214
3240
 
3215
3241
  }
@@ -3219,9 +3245,12 @@ interface Revealer extends Atk.ImplementorIface, Gtk.Buildable {
3219
3245
  // Own properties of Gd-1.0.Gd.Revealer
3220
3246
 
3221
3247
  readonly child_revealed: boolean
3248
+ readonly childRevealed: boolean
3222
3249
  orientation: Gtk.Orientation
3223
3250
  reveal_child: boolean
3251
+ revealChild: boolean
3224
3252
  transition_duration: number
3253
+ transitionDuration: number
3225
3254
 
3226
3255
  // Own fields of Gd-1.0.Gd.Revealer
3227
3256
 
@@ -3452,6 +3481,10 @@ module Stack {
3452
3481
  transition_type?: number | null
3453
3482
  visible_child?: Gtk.Widget | null
3454
3483
  visible_child_name?: string | null
3484
+ transitionDuration?: number | null
3485
+ transitionType?: number | null
3486
+ visibleChild?: Gtk.Widget | null
3487
+ visibleChildName?: string | null
3455
3488
  }
3456
3489
 
3457
3490
  }
@@ -3462,9 +3495,13 @@ interface Stack extends Atk.ImplementorIface, Gtk.Buildable {
3462
3495
 
3463
3496
  homogeneous: boolean
3464
3497
  transition_duration: number
3498
+ transitionDuration: number
3465
3499
  transition_type: number
3500
+ transitionType: number
3466
3501
  visible_child: Gtk.Widget
3502
+ visibleChild: Gtk.Widget
3467
3503
  visible_child_name: string | null
3504
+ visibleChildName: string | null
3468
3505
 
3469
3506
  // Own fields of Gd-1.0.Gd.Stack
3470
3507
 
@@ -4210,6 +4247,7 @@ module TaggedEntry {
4210
4247
  // Own constructor properties of Gd-1.0.Gd.TaggedEntry
4211
4248
 
4212
4249
  tag_close_visible?: boolean | null
4250
+ tagCloseVisible?: boolean | null
4213
4251
  }
4214
4252
 
4215
4253
  }
@@ -4219,6 +4257,7 @@ interface TaggedEntry extends Atk.ImplementorIface, Gtk.Buildable, Gtk.CellEdita
4219
4257
  // Own properties of Gd-1.0.Gd.TaggedEntry
4220
4258
 
4221
4259
  tag_close_visible: boolean
4260
+ tagCloseVisible: boolean
4222
4261
 
4223
4262
  // Own fields of Gd-1.0.Gd.TaggedEntry
4224
4263
 
@@ -4562,6 +4601,7 @@ module TaggedEntryTag {
4562
4601
  has_close_button?: boolean | null
4563
4602
  label?: string | null
4564
4603
  style?: string | null
4604
+ hasCloseButton?: boolean | null
4565
4605
  }
4566
4606
 
4567
4607
  }
@@ -4571,6 +4611,7 @@ interface TaggedEntryTag {
4571
4611
  // Own properties of Gd-1.0.Gd.TaggedEntryTag
4572
4612
 
4573
4613
  has_close_button: boolean
4614
+ hasCloseButton: boolean
4574
4615
  label: string | null
4575
4616
  style: string | null
4576
4617
 
@@ -4632,6 +4673,7 @@ module TogglePixbufRenderer {
4632
4673
  active?: boolean | null
4633
4674
  pulse?: number | null
4634
4675
  toggle_visible?: boolean | null
4676
+ toggleVisible?: boolean | null
4635
4677
  }
4636
4678
 
4637
4679
  }
@@ -4643,6 +4685,7 @@ interface TogglePixbufRenderer {
4643
4685
  active: boolean
4644
4686
  pulse: number
4645
4687
  toggle_visible: boolean
4688
+ toggleVisible: boolean
4646
4689
 
4647
4690
  // Own fields of Gd-1.0.Gd.TogglePixbufRenderer
4648
4691
 
@@ -4769,6 +4812,8 @@ module TwoLinesRenderer {
4769
4812
 
4770
4813
  line_two?: string | null
4771
4814
  text_lines?: number | null
4815
+ lineTwo?: string | null
4816
+ textLines?: number | null
4772
4817
  }
4773
4818
 
4774
4819
  }
@@ -4778,7 +4823,9 @@ interface TwoLinesRenderer {
4778
4823
  // Own properties of Gd-1.0.Gd.TwoLinesRenderer
4779
4824
 
4780
4825
  line_two: string | null
4826
+ lineTwo: string | null
4781
4827
  text_lines: number
4828
+ textLines: number
4782
4829
 
4783
4830
  // Own fields of Gd-1.0.Gd.TwoLinesRenderer
4784
4831
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gd-1.0",
3
- "version": "1.0.0-3.2.4",
3
+ "version": "1.0.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for Gd-1.0, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "gd-1.0.js",
@@ -25,20 +25,20 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gd-1.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.4",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.4",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.4",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.4",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.4",
33
- "@girs/gio-2.0": "^2.78.0-3.2.4",
34
- "@girs/gjs": "^3.2.4",
35
- "@girs/glib-2.0": "^2.78.0-3.2.4",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.4",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.4",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.4",
39
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.4",
40
- "@girs/pango-1.0": "^1.51.0-3.2.4",
41
- "@girs/xlib-2.0": "^2.0.0-3.2.4"
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/xlib-2.0": "^2.0.0-3.2.6"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "*"