@girs/anjuta-3.0 3.0.0-3.2.4 → 3.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/anjuta-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Anjuta-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for Anjuta-3.0, generated from library version 3.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 Anjuta = imports.gi.Anjuta;
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://Anjuta?version=3.0' {
4
3
  import Anjuta30 from '@girs/anjuta-3.0';
5
4
  export default Anjuta30;
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import Anjuta30 from '@girs/anjuta-3.0';
4
3
 
5
4
  declare global {
package/anjuta-3.0.d.cts CHANGED
@@ -2196,6 +2196,7 @@ export module CommandBar {
2196
2196
  // Own constructor properties of Anjuta-3.0.Anjuta.CommandBar
2197
2197
 
2198
2198
  max_text_width?: number | null
2199
+ maxTextWidth?: number | null
2199
2200
  }
2200
2201
 
2201
2202
  }
@@ -2205,6 +2206,7 @@ export interface CommandBar extends Atk.ImplementorIface, Gtk.Buildable {
2205
2206
  // Own properties of Anjuta-3.0.Anjuta.CommandBar
2206
2207
 
2207
2208
  readonly max_text_width: number
2209
+ readonly maxTextWidth: number
2208
2210
 
2209
2211
  // Own fields of Anjuta-3.0.Anjuta.CommandBar
2210
2212
 
@@ -2533,6 +2535,7 @@ export module Completion {
2533
2535
  // Own constructor properties of Anjuta-3.0.Anjuta.Completion
2534
2536
 
2535
2537
  case_sensitive?: boolean | null
2538
+ caseSensitive?: boolean | null
2536
2539
  }
2537
2540
 
2538
2541
  }
@@ -2542,6 +2545,7 @@ export interface Completion {
2542
2545
  // Own properties of Anjuta-3.0.Anjuta.Completion
2543
2546
 
2544
2547
  case_sensitive: boolean
2548
+ caseSensitive: boolean
2545
2549
 
2546
2550
  // Own fields of Anjuta-3.0.Anjuta.Completion
2547
2551
 
@@ -3415,6 +3419,7 @@ export module Entry {
3415
3419
  // Own constructor properties of Anjuta-3.0.Anjuta.Entry
3416
3420
 
3417
3421
  help_text?: string | null
3422
+ helpText?: string | null
3418
3423
  }
3419
3424
 
3420
3425
  }
@@ -3424,6 +3429,7 @@ export interface Entry extends Atk.ImplementorIface, Gtk.Buildable, Gtk.CellEdit
3424
3429
  // Own properties of Anjuta-3.0.Anjuta.Entry
3425
3430
 
3426
3431
  help_text: string | null
3432
+ helpText: string | null
3427
3433
 
3428
3434
  // Own fields of Anjuta-3.0.Anjuta.Entry
3429
3435
 
@@ -3982,6 +3988,7 @@ export module FileDropEntry {
3982
3988
  // Own constructor properties of Anjuta-3.0.Anjuta.FileDropEntry
3983
3989
 
3984
3990
  relative_path?: string | null
3991
+ relativePath?: string | null
3985
3992
  }
3986
3993
 
3987
3994
  }
@@ -3991,6 +3998,7 @@ export interface FileDropEntry extends Atk.ImplementorIface, Gtk.Buildable, Gtk.
3991
3998
  // Own properties of Anjuta-3.0.Anjuta.FileDropEntry
3992
3999
 
3993
4000
  relative_path: string | null
4001
+ relativePath: string | null
3994
4002
 
3995
4003
  // Own fields of Anjuta-3.0.Anjuta.FileDropEntry
3996
4004
 
@@ -4313,6 +4321,8 @@ export module FileList {
4313
4321
 
4314
4322
  relative_path?: string | null
4315
4323
  show_add_button?: boolean | null
4324
+ relativePath?: string | null
4325
+ showAddButton?: boolean | null
4316
4326
  }
4317
4327
 
4318
4328
  }
@@ -4322,7 +4332,9 @@ export interface FileList extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orien
4322
4332
  // Own properties of Anjuta-3.0.Anjuta.FileList
4323
4333
 
4324
4334
  relative_path: string | null
4335
+ relativePath: string | null
4325
4336
  show_add_button: boolean
4337
+ showAddButton: boolean
4326
4338
 
4327
4339
  // Own fields of Anjuta-3.0.Anjuta.FileList
4328
4340
 
@@ -5302,13 +5314,17 @@ export interface PluginHandle {
5302
5314
 
5303
5315
  readonly about: string | null
5304
5316
  readonly can_load: boolean
5317
+ readonly canLoad: boolean
5305
5318
  readonly can_unload: boolean
5319
+ readonly canUnload: boolean
5306
5320
  readonly checked: boolean
5307
5321
  readonly dependencies: any
5308
5322
  readonly dependency_names: any
5323
+ readonly dependencyNames: any
5309
5324
  readonly dependents: any
5310
5325
  readonly description: any
5311
5326
  readonly icon_path: string | null
5327
+ readonly iconPath: string | null
5312
5328
  readonly id: string | null
5313
5329
  readonly interfaces: any
5314
5330
  readonly language: string | null
@@ -5316,7 +5332,9 @@ export interface PluginHandle {
5316
5332
  readonly path: string | null
5317
5333
  readonly resident: boolean
5318
5334
  readonly resolve_pass: number
5335
+ readonly resolvePass: number
5319
5336
  readonly user_activatable: boolean
5337
+ readonly userActivatable: boolean
5320
5338
 
5321
5339
  // Own fields of Anjuta-3.0.Anjuta.PluginHandle
5322
5340
 
@@ -5454,7 +5472,9 @@ export interface PluginManager {
5454
5472
  // Own properties of Anjuta-3.0.Anjuta.PluginManager
5455
5473
 
5456
5474
  readonly activated_plugins: any
5475
+ readonly activatedPlugins: any
5457
5476
  readonly available_plugins: any
5477
+ readonly availablePlugins: any
5458
5478
  readonly profiles: any
5459
5479
  shell: GObject.Object
5460
5480
  status: Status
@@ -6091,6 +6111,9 @@ export module Profile {
6091
6111
  plugin_manager?: PluginManager | null
6092
6112
  profile_name?: string | null
6093
6113
  sync_file?: Gio.File | null
6114
+ pluginManager?: PluginManager | null
6115
+ profileName?: string | null
6116
+ syncFile?: Gio.File | null
6094
6117
  }
6095
6118
 
6096
6119
  }
@@ -6100,8 +6123,11 @@ export interface Profile {
6100
6123
  // Own properties of Anjuta-3.0.Anjuta.Profile
6101
6124
 
6102
6125
  plugin_manager: PluginManager
6126
+ pluginManager: PluginManager
6103
6127
  profile_name: string | null
6128
+ profileName: string | null
6104
6129
  sync_file: Gio.File
6130
+ syncFile: Gio.File
6105
6131
 
6106
6132
  // Own fields of Anjuta-3.0.Anjuta.Profile
6107
6133
 
@@ -6261,6 +6287,7 @@ export module ProfileManager {
6261
6287
  // Own constructor properties of Anjuta-3.0.Anjuta.ProfileManager
6262
6288
 
6263
6289
  plugin_manager?: PluginManager | null
6290
+ pluginManager?: PluginManager | null
6264
6291
  }
6265
6292
 
6266
6293
  }
@@ -6270,6 +6297,7 @@ export interface ProfileManager {
6270
6297
  // Own properties of Anjuta-3.0.Anjuta.ProfileManager
6271
6298
 
6272
6299
  plugin_manager: PluginManager
6300
+ pluginManager: PluginManager
6273
6301
 
6274
6302
  // Own fields of Anjuta-3.0.Anjuta.ProfileManager
6275
6303
 
@@ -8268,6 +8296,9 @@ export module VcsStatusTreeView {
8268
8296
  conflicted_selectable?: boolean | null
8269
8297
  show_status?: boolean | null
8270
8298
  status_codes?: VcsStatus | null
8299
+ conflictedSelectable?: boolean | null
8300
+ showStatus?: boolean | null
8301
+ statusCodes?: VcsStatus | null
8271
8302
  }
8272
8303
 
8273
8304
  }
@@ -8277,8 +8308,11 @@ export interface VcsStatusTreeView extends Atk.ImplementorIface, Gtk.Buildable,
8277
8308
  // Own properties of Anjuta-3.0.Anjuta.VcsStatusTreeView
8278
8309
 
8279
8310
  readonly conflicted_selectable: boolean
8311
+ readonly conflictedSelectable: boolean
8280
8312
  show_status: boolean
8313
+ showStatus: boolean
8281
8314
  readonly status_codes: VcsStatus
8315
+ readonly statusCodes: VcsStatus
8282
8316
 
8283
8317
  // Own fields of Anjuta-3.0.Anjuta.VcsStatusTreeView
8284
8318
 
package/anjuta-3.0.d.ts CHANGED
@@ -2198,6 +2198,7 @@ module CommandBar {
2198
2198
  // Own constructor properties of Anjuta-3.0.Anjuta.CommandBar
2199
2199
 
2200
2200
  max_text_width?: number | null
2201
+ maxTextWidth?: number | null
2201
2202
  }
2202
2203
 
2203
2204
  }
@@ -2207,6 +2208,7 @@ interface CommandBar extends Atk.ImplementorIface, Gtk.Buildable {
2207
2208
  // Own properties of Anjuta-3.0.Anjuta.CommandBar
2208
2209
 
2209
2210
  readonly max_text_width: number
2211
+ readonly maxTextWidth: number
2210
2212
 
2211
2213
  // Own fields of Anjuta-3.0.Anjuta.CommandBar
2212
2214
 
@@ -2535,6 +2537,7 @@ module Completion {
2535
2537
  // Own constructor properties of Anjuta-3.0.Anjuta.Completion
2536
2538
 
2537
2539
  case_sensitive?: boolean | null
2540
+ caseSensitive?: boolean | null
2538
2541
  }
2539
2542
 
2540
2543
  }
@@ -2544,6 +2547,7 @@ interface Completion {
2544
2547
  // Own properties of Anjuta-3.0.Anjuta.Completion
2545
2548
 
2546
2549
  case_sensitive: boolean
2550
+ caseSensitive: boolean
2547
2551
 
2548
2552
  // Own fields of Anjuta-3.0.Anjuta.Completion
2549
2553
 
@@ -3417,6 +3421,7 @@ module Entry {
3417
3421
  // Own constructor properties of Anjuta-3.0.Anjuta.Entry
3418
3422
 
3419
3423
  help_text?: string | null
3424
+ helpText?: string | null
3420
3425
  }
3421
3426
 
3422
3427
  }
@@ -3426,6 +3431,7 @@ interface Entry extends Atk.ImplementorIface, Gtk.Buildable, Gtk.CellEditable, G
3426
3431
  // Own properties of Anjuta-3.0.Anjuta.Entry
3427
3432
 
3428
3433
  help_text: string | null
3434
+ helpText: string | null
3429
3435
 
3430
3436
  // Own fields of Anjuta-3.0.Anjuta.Entry
3431
3437
 
@@ -3984,6 +3990,7 @@ module FileDropEntry {
3984
3990
  // Own constructor properties of Anjuta-3.0.Anjuta.FileDropEntry
3985
3991
 
3986
3992
  relative_path?: string | null
3993
+ relativePath?: string | null
3987
3994
  }
3988
3995
 
3989
3996
  }
@@ -3993,6 +4000,7 @@ interface FileDropEntry extends Atk.ImplementorIface, Gtk.Buildable, Gtk.CellEdi
3993
4000
  // Own properties of Anjuta-3.0.Anjuta.FileDropEntry
3994
4001
 
3995
4002
  relative_path: string | null
4003
+ relativePath: string | null
3996
4004
 
3997
4005
  // Own fields of Anjuta-3.0.Anjuta.FileDropEntry
3998
4006
 
@@ -4315,6 +4323,8 @@ module FileList {
4315
4323
 
4316
4324
  relative_path?: string | null
4317
4325
  show_add_button?: boolean | null
4326
+ relativePath?: string | null
4327
+ showAddButton?: boolean | null
4318
4328
  }
4319
4329
 
4320
4330
  }
@@ -4324,7 +4334,9 @@ interface FileList extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
4324
4334
  // Own properties of Anjuta-3.0.Anjuta.FileList
4325
4335
 
4326
4336
  relative_path: string | null
4337
+ relativePath: string | null
4327
4338
  show_add_button: boolean
4339
+ showAddButton: boolean
4328
4340
 
4329
4341
  // Own fields of Anjuta-3.0.Anjuta.FileList
4330
4342
 
@@ -5304,13 +5316,17 @@ interface PluginHandle {
5304
5316
 
5305
5317
  readonly about: string | null
5306
5318
  readonly can_load: boolean
5319
+ readonly canLoad: boolean
5307
5320
  readonly can_unload: boolean
5321
+ readonly canUnload: boolean
5308
5322
  readonly checked: boolean
5309
5323
  readonly dependencies: any
5310
5324
  readonly dependency_names: any
5325
+ readonly dependencyNames: any
5311
5326
  readonly dependents: any
5312
5327
  readonly description: any
5313
5328
  readonly icon_path: string | null
5329
+ readonly iconPath: string | null
5314
5330
  readonly id: string | null
5315
5331
  readonly interfaces: any
5316
5332
  readonly language: string | null
@@ -5318,7 +5334,9 @@ interface PluginHandle {
5318
5334
  readonly path: string | null
5319
5335
  readonly resident: boolean
5320
5336
  readonly resolve_pass: number
5337
+ readonly resolvePass: number
5321
5338
  readonly user_activatable: boolean
5339
+ readonly userActivatable: boolean
5322
5340
 
5323
5341
  // Own fields of Anjuta-3.0.Anjuta.PluginHandle
5324
5342
 
@@ -5456,7 +5474,9 @@ interface PluginManager {
5456
5474
  // Own properties of Anjuta-3.0.Anjuta.PluginManager
5457
5475
 
5458
5476
  readonly activated_plugins: any
5477
+ readonly activatedPlugins: any
5459
5478
  readonly available_plugins: any
5479
+ readonly availablePlugins: any
5460
5480
  readonly profiles: any
5461
5481
  shell: GObject.Object
5462
5482
  status: Status
@@ -6093,6 +6113,9 @@ module Profile {
6093
6113
  plugin_manager?: PluginManager | null
6094
6114
  profile_name?: string | null
6095
6115
  sync_file?: Gio.File | null
6116
+ pluginManager?: PluginManager | null
6117
+ profileName?: string | null
6118
+ syncFile?: Gio.File | null
6096
6119
  }
6097
6120
 
6098
6121
  }
@@ -6102,8 +6125,11 @@ interface Profile {
6102
6125
  // Own properties of Anjuta-3.0.Anjuta.Profile
6103
6126
 
6104
6127
  plugin_manager: PluginManager
6128
+ pluginManager: PluginManager
6105
6129
  profile_name: string | null
6130
+ profileName: string | null
6106
6131
  sync_file: Gio.File
6132
+ syncFile: Gio.File
6107
6133
 
6108
6134
  // Own fields of Anjuta-3.0.Anjuta.Profile
6109
6135
 
@@ -6263,6 +6289,7 @@ module ProfileManager {
6263
6289
  // Own constructor properties of Anjuta-3.0.Anjuta.ProfileManager
6264
6290
 
6265
6291
  plugin_manager?: PluginManager | null
6292
+ pluginManager?: PluginManager | null
6266
6293
  }
6267
6294
 
6268
6295
  }
@@ -6272,6 +6299,7 @@ interface ProfileManager {
6272
6299
  // Own properties of Anjuta-3.0.Anjuta.ProfileManager
6273
6300
 
6274
6301
  plugin_manager: PluginManager
6302
+ pluginManager: PluginManager
6275
6303
 
6276
6304
  // Own fields of Anjuta-3.0.Anjuta.ProfileManager
6277
6305
 
@@ -8270,6 +8298,9 @@ module VcsStatusTreeView {
8270
8298
  conflicted_selectable?: boolean | null
8271
8299
  show_status?: boolean | null
8272
8300
  status_codes?: VcsStatus | null
8301
+ conflictedSelectable?: boolean | null
8302
+ showStatus?: boolean | null
8303
+ statusCodes?: VcsStatus | null
8273
8304
  }
8274
8305
 
8275
8306
  }
@@ -8279,8 +8310,11 @@ interface VcsStatusTreeView extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scr
8279
8310
  // Own properties of Anjuta-3.0.Anjuta.VcsStatusTreeView
8280
8311
 
8281
8312
  readonly conflicted_selectable: boolean
8313
+ readonly conflictedSelectable: boolean
8282
8314
  show_status: boolean
8315
+ showStatus: boolean
8283
8316
  readonly status_codes: VcsStatus
8317
+ readonly statusCodes: VcsStatus
8284
8318
 
8285
8319
  // Own fields of Anjuta-3.0.Anjuta.VcsStatusTreeView
8286
8320
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/anjuta-3.0",
3
- "version": "3.0.0-3.2.4",
3
+ "version": "3.0.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for Anjuta-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "anjuta-3.0.js",
@@ -25,21 +25,21 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit anjuta-3.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/gdl-3": "^3.0.0-3.2.4",
34
- "@girs/gio-2.0": "^2.78.0-3.2.4",
35
- "@girs/gjs": "^3.2.4",
36
- "@girs/glib-2.0": "^2.78.0-3.2.4",
37
- "@girs/gmodule-2.0": "^2.0.0-3.2.4",
38
- "@girs/gobject-2.0": "^2.78.0-3.2.4",
39
- "@girs/gtk-3.0": "^3.24.38-3.2.4",
40
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.4",
41
- "@girs/pango-1.0": "^1.51.0-3.2.4",
42
- "@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/gdl-3": "^3.0.0-3.2.6",
34
+ "@girs/gio-2.0": "^2.78.0-3.2.6",
35
+ "@girs/gjs": "^3.2.6",
36
+ "@girs/glib-2.0": "^2.78.0-3.2.6",
37
+ "@girs/gmodule-2.0": "^2.0.0-3.2.6",
38
+ "@girs/gobject-2.0": "^2.78.0-3.2.6",
39
+ "@girs/gtk-3.0": "^3.24.38-3.2.6",
40
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
41
+ "@girs/pango-1.0": "^1.51.0-3.2.6",
42
+ "@girs/xlib-2.0": "^2.0.0-3.2.6"
43
43
  },
44
44
  "devDependencies": {
45
45
  "typescript": "*"