@girs/xed-1.0 5.3.0 → 5.4.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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/xed-1.0)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/xed-1.0)
6
6
 
7
- GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.4.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/xed-1.0",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for Xed-1.0",
5
5
  "type": "module",
6
6
  "module": "xed-1.0.js",
@@ -36,21 +36,21 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.3.0",
40
- "@girs/gtksource-4": "^5.3.0",
41
- "@girs/gtk-3.0": "^5.3.0",
42
- "@girs/xlib-2.0": "^5.3.0",
43
- "@girs/gdk-3.0": "^5.3.0",
44
- "@girs/cairo-1.0": "^5.3.0",
45
- "@girs/gobject-2.0": "^5.3.0",
46
- "@girs/glib-2.0": "^5.3.0",
47
- "@girs/pango-1.0": "^5.3.0",
48
- "@girs/harfbuzz-0.0": "^5.3.0",
49
- "@girs/freetype2-2.0": "^5.3.0",
50
- "@girs/gio-2.0": "^5.3.0",
51
- "@girs/gmodule-2.0": "^5.3.0",
52
- "@girs/gdkpixbuf-2.0": "^5.3.0",
53
- "@girs/atk-1.0": "^5.3.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/gtksource-4": "^5.4.0",
41
+ "@girs/gtk-3.0": "^5.4.0",
42
+ "@girs/xlib-2.0": "^5.4.0",
43
+ "@girs/gdk-3.0": "^5.4.0",
44
+ "@girs/cairo-1.0": "^5.4.0",
45
+ "@girs/gobject-2.0": "^5.4.0",
46
+ "@girs/glib-2.0": "^5.4.0",
47
+ "@girs/pango-1.0": "^5.4.0",
48
+ "@girs/harfbuzz-0.0": "^5.4.0",
49
+ "@girs/freetype2-2.0": "^5.4.0",
50
+ "@girs/gio-2.0": "^5.4.0",
51
+ "@girs/gmodule-2.0": "^5.4.0",
52
+ "@girs/gdkpixbuf-2.0": "^5.4.0",
53
+ "@girs/atk-1.0": "^5.4.0" },
54
54
  "devDependencies": {
55
55
  "typescript": "*"
56
56
  },
@@ -439,6 +439,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
439
439
  */
440
440
  export const PROP_ENUMS: Readonly<Record<string, string>>;
441
441
 
442
+ /**
443
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
444
+ *
445
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
446
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
447
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
448
+ * reads this one; a host resolving a nick to a number reads that one.
449
+ *
450
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
451
+ * like any other, so absence is readable as "unknown".
452
+ */
453
+ export const PROP_TYPES: Readonly<Record<string, string>>;
454
+
442
455
  /**
443
456
  * The kinds of value a GTK accessible property, relation or state takes.
444
457
  *
@@ -193,6 +193,27 @@ export const PROP_ENUMS = {
193
193
  'XedPanel.orientation': 'GtkOrientation',
194
194
  };
195
195
 
196
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
197
+ //
198
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
199
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
200
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
201
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
202
+ //
203
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
204
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
205
+ // child. Absence therefore reads as "unknown" and never as "scalar".
206
+ export const PROP_TYPES = {
207
+ 'XedDocument.content-type': 'gchararray',
208
+ 'XedDocument.shortname': 'gchararray',
209
+ 'XedDocument.use-gvfs-metadata': 'gboolean',
210
+ 'XedEncodingsComboBox.save-mode': 'gboolean',
211
+ 'XedPanel.orientation': 'GtkOrientation',
212
+ 'XedProgressInfoBar.has-cancel-button': 'gboolean',
213
+ 'XedTab.autosave': 'gboolean',
214
+ 'XedTab.autosave-interval': 'gint',
215
+ };
216
+
196
217
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
197
218
  //
198
219
  // The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint