@girs/gcrui-3 4.2.0 → 4.3.0

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.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/gcrui-3.d.ts +30 -0
  3. package/package.json +17 -17
package/README.md CHANGED
@@ -5,25 +5,25 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcrui-3)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GcrUi-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.2.0.
8
+ GJS TypeScript type definitions for GcrUi-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
9
9
 
10
10
  ## Install
11
11
 
12
- To use this type definitions, install them with NPM:
12
+ Install the type definitions with npm:
13
13
  ```bash
14
14
  npm install @girs/gcrui-3
15
15
  ```
16
16
 
17
17
  ## Usage
18
18
 
19
- You can import this package into your project like this:
19
+ Import it like any other module:
20
20
  ```ts
21
21
  import GcrUi from '@girs/gcrui-3';
22
22
  ```
23
23
 
24
24
  ### Ambient Modules
25
25
 
26
- You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
26
+ [Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
27
27
  For this you need to include `@girs/gcrui-3` or `@girs/gcrui-3/ambient` in your `tsconfig` or entry point Typescript file:
28
28
 
29
29
  `index.ts`:
@@ -42,7 +42,7 @@ import '@girs/gcrui-3'
42
42
  }
43
43
  ```
44
44
 
45
- Now you can import the ambient module with TypeScript support:
45
+ The ambient module now resolves with types:
46
46
 
47
47
  ```ts
48
48
  import GcrUi from 'gi://GcrUi?version=3';
@@ -50,7 +50,7 @@ import GcrUi from 'gi://GcrUi?version=3';
50
50
 
51
51
  ### Global import
52
52
 
53
- You can also import the module with Typescript support using the global `imports.gi` object of GJS.
53
+ GJS's global `imports.gi` works too, with types.
54
54
  For this you need to include `@girs/gcrui-3` or `@girs/gcrui-3/import` in your `tsconfig` or entry point Typescript file:
55
55
 
56
56
  `index.ts`:
@@ -69,7 +69,7 @@ import '@girs/gcrui-3'
69
69
  }
70
70
  ```
71
71
 
72
- Now you have also type support for this, too:
72
+ That form carries types as well:
73
73
 
74
74
  ```ts
75
75
  const GcrUi = imports.gi.GcrUi;
@@ -77,7 +77,7 @@ const GcrUi = imports.gi.GcrUi;
77
77
 
78
78
  ### Bundle
79
79
 
80
- 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).
80
+ Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
81
81
 
82
82
  ## Other packages
83
83
 
package/gcrui-3.d.ts CHANGED
@@ -485,11 +485,14 @@ export namespace GcrUi {
485
485
  set_attributes(attrs: Gck.Attributes | null): void;
486
486
 
487
487
  /**
488
+ * signal emitted when data being rendered changes
488
489
  * @virtual
489
490
  */
490
491
  vfunc_data_changed(): void;
491
492
 
492
493
  /**
494
+ * method invoked to populate a popup menu with additional
495
+ * renderer options
493
496
  * @param viewer
494
497
  * @param menu
495
498
  * @virtual
@@ -1899,11 +1902,14 @@ export namespace GcrUi {
1899
1902
  set_attributes(attrs: Gck.Attributes | null): void;
1900
1903
 
1901
1904
  /**
1905
+ * signal emitted when data being rendered changes
1902
1906
  * @virtual
1903
1907
  */
1904
1908
  vfunc_data_changed(): void;
1905
1909
 
1906
1910
  /**
1911
+ * method invoked to populate a popup menu with additional
1912
+ * renderer options
1907
1913
  * @param viewer
1908
1914
  * @param menu
1909
1915
  * @virtual
@@ -2040,6 +2046,7 @@ export namespace GcrUi {
2040
2046
 
2041
2047
  // Virtual methods
2042
2048
  /**
2049
+ * Emitted when the import completes, or fails.
2043
2050
  * @param importer
2044
2051
  * @param error
2045
2052
  * @virtual
@@ -2047,6 +2054,7 @@ export namespace GcrUi {
2047
2054
  vfunc_imported(importer: Gcr.Importer, error: GLib.Error): void;
2048
2055
 
2049
2056
  /**
2057
+ * Emitted when the import begins.
2050
2058
  * @param importer
2051
2059
  * @virtual
2052
2060
  */
@@ -2498,11 +2506,14 @@ export namespace GcrUi {
2498
2506
  render_view(viewer: Viewer): void;
2499
2507
 
2500
2508
  /**
2509
+ * signal emitted when data being rendered changes
2501
2510
  * @virtual
2502
2511
  */
2503
2512
  vfunc_data_changed(): void;
2504
2513
 
2505
2514
  /**
2515
+ * method invoked to populate a popup menu with additional
2516
+ * renderer options
2506
2517
  * @param viewer
2507
2518
  * @param menu
2508
2519
  * @virtual
@@ -3033,48 +3044,56 @@ export namespace GcrUi {
3033
3044
  /**
3034
3045
  * Whether the choice check box is visible or not.
3035
3046
  * @read-only
3047
+ * @default false
3036
3048
  */
3037
3049
  get choice_visible(): boolean;
3038
3050
 
3039
3051
  /**
3040
3052
  * Whether the choice check box is visible or not.
3041
3053
  * @read-only
3054
+ * @default false
3042
3055
  */
3043
3056
  get choiceVisible(): boolean;
3044
3057
 
3045
3058
  /**
3046
3059
  * Whether the password confirm entry is visible or not.
3047
3060
  * @read-only
3061
+ * @default false
3048
3062
  */
3049
3063
  get confirm_visible(): boolean;
3050
3064
 
3051
3065
  /**
3052
3066
  * Whether the password confirm entry is visible or not.
3053
3067
  * @read-only
3068
+ * @default false
3054
3069
  */
3055
3070
  get confirmVisible(): boolean;
3056
3071
 
3057
3072
  /**
3058
3073
  * Whether the password entry is visible or not.
3059
3074
  * @read-only
3075
+ * @default false
3060
3076
  */
3061
3077
  get password_visible(): boolean;
3062
3078
 
3063
3079
  /**
3064
3080
  * Whether the password entry is visible or not.
3065
3081
  * @read-only
3082
+ * @default false
3066
3083
  */
3067
3084
  get passwordVisible(): boolean;
3068
3085
 
3069
3086
  /**
3070
3087
  * Whether the warning label is visible or not.
3071
3088
  * @read-only
3089
+ * @default false
3072
3090
  */
3073
3091
  get warning_visible(): boolean;
3074
3092
 
3075
3093
  /**
3076
3094
  * Whether the warning label is visible or not.
3077
3095
  * @read-only
3096
+ * @default false
3078
3097
  */
3079
3098
  get warningVisible(): boolean;
3080
3099
 
@@ -4156,9 +4175,15 @@ export namespace GcrUi {
4156
4175
  static $gtype: GObject.GType<UnlockOptionsWidget>;
4157
4176
 
4158
4177
  // Properties
4178
+ /**
4179
+ * @default null
4180
+ */
4159
4181
  get choice(): string;
4160
4182
  set choice(val: string);
4161
4183
 
4184
+ /**
4185
+ * @default 0
4186
+ */
4162
4187
  get ttl(): number;
4163
4188
  set ttl(val: number);
4164
4189
 
@@ -4349,6 +4374,7 @@ export namespace GcrUi {
4349
4374
  *
4350
4375
  * Used as a hint when displaying a title for the data, but may be
4351
4376
  * overridden by the parsed data.
4377
+ * @default null
4352
4378
  */
4353
4379
  get display_name(): string;
4354
4380
  set display_name(val: string);
@@ -4359,6 +4385,7 @@ export namespace GcrUi {
4359
4385
  *
4360
4386
  * Used as a hint when displaying a title for the data, but may be
4361
4387
  * overridden by the parsed data.
4388
+ * @default null
4362
4389
  */
4363
4390
  get displayName(): string;
4364
4391
  set displayName(val: string);
@@ -4688,11 +4715,14 @@ export namespace GcrUi {
4688
4715
 
4689
4716
  // Virtual methods
4690
4717
  /**
4718
+ * signal emitted when data being rendered changes
4691
4719
  * @virtual
4692
4720
  */
4693
4721
  vfunc_data_changed(): void;
4694
4722
 
4695
4723
  /**
4724
+ * method invoked to populate a popup menu with additional
4725
+ * renderer options
4696
4726
  * @param viewer
4697
4727
  * @param menu
4698
4728
  * @virtual
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gcrui-3",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "GJS TypeScript type definitions for GcrUi-3",
5
5
  "type": "module",
6
6
  "module": "gcrui-3.js",
@@ -36,22 +36,22 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.2.0",
40
- "@girs/gtk-3.0": "^4.2.0",
41
- "@girs/xlib-2.0": "^4.2.0",
42
- "@girs/gdk-3.0": "^4.2.0",
43
- "@girs/cairo-1.0": "^4.2.0",
44
- "@girs/gobject-2.0": "^4.2.0",
45
- "@girs/glib-2.0": "^4.2.0",
46
- "@girs/pango-1.0": "^4.2.0",
47
- "@girs/harfbuzz-0.0": "^4.2.0",
48
- "@girs/freetype2-2.0": "^4.2.0",
49
- "@girs/gio-2.0": "^4.2.0",
50
- "@girs/gmodule-2.0": "^4.2.0",
51
- "@girs/gdkpixbuf-2.0": "^4.2.0",
52
- "@girs/atk-1.0": "^4.2.0",
53
- "@girs/gcr-3": "^4.2.0",
54
- "@girs/gck-1": "^4.2.0" },
39
+ "@girs/gjs": "^4.3.0",
40
+ "@girs/gtk-3.0": "^4.3.0",
41
+ "@girs/xlib-2.0": "^4.3.0",
42
+ "@girs/gdk-3.0": "^4.3.0",
43
+ "@girs/cairo-1.0": "^4.3.0",
44
+ "@girs/gobject-2.0": "^4.3.0",
45
+ "@girs/glib-2.0": "^4.3.0",
46
+ "@girs/pango-1.0": "^4.3.0",
47
+ "@girs/harfbuzz-0.0": "^4.3.0",
48
+ "@girs/freetype2-2.0": "^4.3.0",
49
+ "@girs/gio-2.0": "^4.3.0",
50
+ "@girs/gmodule-2.0": "^4.3.0",
51
+ "@girs/gdkpixbuf-2.0": "^4.3.0",
52
+ "@girs/atk-1.0": "^4.3.0",
53
+ "@girs/gcr-3": "^4.3.0",
54
+ "@girs/gck-1": "^4.3.0" },
55
55
  "devDependencies": {
56
56
  "typescript": "*"
57
57
  },