@girs/gtksource-4 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/gtksource-4)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtksource-4)
6
6
 
7
- GJS TypeScript type definitions for GtkSource-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for GtkSource-4 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.
@@ -988,6 +988,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
988
988
  */
989
989
  export const PROP_ENUMS: Readonly<Record<string, string>>;
990
990
 
991
+ /**
992
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
993
+ *
994
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
995
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
996
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
997
+ * reads this one; a host resolving a nick to a number reads that one.
998
+ *
999
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
1000
+ * like any other, so absence is readable as "unknown".
1001
+ */
1002
+ export const PROP_TYPES: Readonly<Record<string, string>>;
1003
+
991
1004
  /**
992
1005
  * The kinds of value a GTK accessible property, relation or state takes.
993
1006
  *
@@ -276,6 +276,140 @@ export const PROP_ENUMS = {
276
276
  'GtkSourceView.smart-home-end': 'GtkSourceSmartHomeEndType',
277
277
  };
278
278
 
279
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
280
+ //
281
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
282
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
283
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
284
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
285
+ //
286
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
287
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
288
+ // child. Absence therefore reads as "unknown" and never as "scalar".
289
+ export const PROP_TYPES = {
290
+ 'GtkSourceBuffer.highlight-matching-brackets': 'gboolean',
291
+ 'GtkSourceBuffer.highlight-syntax': 'gboolean',
292
+ 'GtkSourceBuffer.implicit-trailing-newline': 'gboolean',
293
+ 'GtkSourceBuffer.language': 'GtkSourceLanguage',
294
+ 'GtkSourceBuffer.max-undo-levels': 'gint',
295
+ 'GtkSourceBuffer.style-scheme': 'GtkSourceStyleScheme',
296
+ 'GtkSourceBuffer.undo-manager': 'GtkSourceUndoManager',
297
+ 'GtkSourceCompletion.accelerators': 'guint',
298
+ 'GtkSourceCompletion.auto-complete-delay': 'guint',
299
+ 'GtkSourceCompletion.proposal-page-size': 'guint',
300
+ 'GtkSourceCompletion.provider-page-size': 'guint',
301
+ 'GtkSourceCompletion.remember-info-visibility': 'gboolean',
302
+ 'GtkSourceCompletion.select-on-show': 'gboolean',
303
+ 'GtkSourceCompletion.show-headers': 'gboolean',
304
+ 'GtkSourceCompletion.show-icons': 'gboolean',
305
+ 'GtkSourceCompletion.view': 'GtkSourceView',
306
+ 'GtkSourceCompletionContext.activation': 'GtkSourceCompletionActivation',
307
+ 'GtkSourceCompletionContext.completion': 'GtkSourceCompletion',
308
+ 'GtkSourceCompletionItem.gicon': 'GIcon',
309
+ 'GtkSourceCompletionItem.icon': 'GdkPixbuf',
310
+ 'GtkSourceCompletionItem.icon-name': 'gchararray',
311
+ 'GtkSourceCompletionItem.info': 'gchararray',
312
+ 'GtkSourceCompletionItem.label': 'gchararray',
313
+ 'GtkSourceCompletionItem.markup': 'gchararray',
314
+ 'GtkSourceCompletionItem.text': 'gchararray',
315
+ 'GtkSourceCompletionWords.activation': 'GtkSourceCompletionActivation',
316
+ 'GtkSourceCompletionWords.icon': 'GdkPixbuf',
317
+ 'GtkSourceCompletionWords.interactive-delay': 'gint',
318
+ 'GtkSourceCompletionWords.minimum-word-size': 'guint',
319
+ 'GtkSourceCompletionWords.name': 'gchararray',
320
+ 'GtkSourceCompletionWords.priority': 'gint',
321
+ 'GtkSourceCompletionWords.proposals-batch-size': 'guint',
322
+ 'GtkSourceCompletionWords.scan-batch-size': 'guint',
323
+ 'GtkSourceFile.location': 'GFile',
324
+ 'GtkSourceFileLoader.buffer': 'GtkSourceBuffer',
325
+ 'GtkSourceFileLoader.file': 'GtkSourceFile',
326
+ 'GtkSourceFileLoader.input-stream': 'GInputStream',
327
+ 'GtkSourceFileLoader.location': 'GFile',
328
+ 'GtkSourceFileSaver.buffer': 'GtkSourceBuffer',
329
+ 'GtkSourceFileSaver.compression-type': 'GtkSourceCompressionType',
330
+ 'GtkSourceFileSaver.file': 'GtkSourceFile',
331
+ 'GtkSourceFileSaver.flags': 'GtkSourceFileSaverFlags',
332
+ 'GtkSourceFileSaver.location': 'GFile',
333
+ 'GtkSourceFileSaver.newline-type': 'GtkSourceNewlineType',
334
+ 'GtkSourceGutter.view': 'GtkSourceView',
335
+ 'GtkSourceGutter.window-type': 'GtkTextWindowType',
336
+ 'GtkSourceGutterRenderer.alignment-mode': 'GtkSourceGutterRendererAlignmentMode',
337
+ 'GtkSourceGutterRenderer.background-set': 'gboolean',
338
+ 'GtkSourceGutterRenderer.size': 'gint',
339
+ 'GtkSourceGutterRenderer.visible': 'gboolean',
340
+ 'GtkSourceGutterRenderer.xalign': 'gfloat',
341
+ 'GtkSourceGutterRenderer.xpad': 'gint',
342
+ 'GtkSourceGutterRenderer.yalign': 'gfloat',
343
+ 'GtkSourceGutterRenderer.ypad': 'gint',
344
+ 'GtkSourceGutterRendererPixbuf.gicon': 'GIcon',
345
+ 'GtkSourceGutterRendererPixbuf.icon-name': 'gchararray',
346
+ 'GtkSourceGutterRendererPixbuf.pixbuf': 'GdkPixbuf',
347
+ 'GtkSourceGutterRendererText.markup': 'gchararray',
348
+ 'GtkSourceGutterRendererText.text': 'gchararray',
349
+ 'GtkSourceMap.view': 'GtkSourceView',
350
+ 'GtkSourceMark.category': 'gchararray',
351
+ 'GtkSourceMarkAttributes.gicon': 'GIcon',
352
+ 'GtkSourceMarkAttributes.icon-name': 'gchararray',
353
+ 'GtkSourceMarkAttributes.pixbuf': 'GdkPixbuf',
354
+ 'GtkSourcePrintCompositor.body-font-name': 'gchararray',
355
+ 'GtkSourcePrintCompositor.buffer': 'GtkSourceBuffer',
356
+ 'GtkSourcePrintCompositor.footer-font-name': 'gchararray',
357
+ 'GtkSourcePrintCompositor.header-font-name': 'gchararray',
358
+ 'GtkSourcePrintCompositor.highlight-syntax': 'gboolean',
359
+ 'GtkSourcePrintCompositor.line-numbers-font-name': 'gchararray',
360
+ 'GtkSourcePrintCompositor.print-footer': 'gboolean',
361
+ 'GtkSourcePrintCompositor.print-header': 'gboolean',
362
+ 'GtkSourcePrintCompositor.print-line-numbers': 'guint',
363
+ 'GtkSourcePrintCompositor.tab-width': 'guint',
364
+ 'GtkSourcePrintCompositor.wrap-mode': 'GtkWrapMode',
365
+ 'GtkSourceRegion.buffer': 'GtkTextBuffer',
366
+ 'GtkSourceSearchContext.buffer': 'GtkSourceBuffer',
367
+ 'GtkSourceSearchContext.highlight': 'gboolean',
368
+ 'GtkSourceSearchContext.match-style': 'GtkSourceStyle',
369
+ 'GtkSourceSearchContext.settings': 'GtkSourceSearchSettings',
370
+ 'GtkSourceSearchSettings.at-word-boundaries': 'gboolean',
371
+ 'GtkSourceSearchSettings.case-sensitive': 'gboolean',
372
+ 'GtkSourceSearchSettings.regex-enabled': 'gboolean',
373
+ 'GtkSourceSearchSettings.search-text': 'gchararray',
374
+ 'GtkSourceSearchSettings.wrap-around': 'gboolean',
375
+ 'GtkSourceSpaceDrawer.enable-matrix': 'gboolean',
376
+ 'GtkSourceStyle.background': 'gchararray',
377
+ 'GtkSourceStyle.background-set': 'gboolean',
378
+ 'GtkSourceStyle.bold': 'gboolean',
379
+ 'GtkSourceStyle.bold-set': 'gboolean',
380
+ 'GtkSourceStyle.foreground': 'gchararray',
381
+ 'GtkSourceStyle.foreground-set': 'gboolean',
382
+ 'GtkSourceStyle.italic': 'gboolean',
383
+ 'GtkSourceStyle.italic-set': 'gboolean',
384
+ 'GtkSourceStyle.line-background': 'gchararray',
385
+ 'GtkSourceStyle.line-background-set': 'gboolean',
386
+ 'GtkSourceStyle.pango-underline': 'PangoUnderline',
387
+ 'GtkSourceStyle.scale': 'gchararray',
388
+ 'GtkSourceStyle.scale-set': 'gboolean',
389
+ 'GtkSourceStyle.strikethrough': 'gboolean',
390
+ 'GtkSourceStyle.strikethrough-set': 'gboolean',
391
+ 'GtkSourceStyle.underline-color': 'gchararray',
392
+ 'GtkSourceStyle.underline-color-set': 'gboolean',
393
+ 'GtkSourceStyle.underline-set': 'gboolean',
394
+ 'GtkSourceStyleScheme.id': 'gchararray',
395
+ 'GtkSourceStyleSchemeChooser.style-scheme': 'GtkSourceStyleScheme',
396
+ 'GtkSourceTag.draw-spaces': 'gboolean',
397
+ 'GtkSourceTag.draw-spaces-set': 'gboolean',
398
+ 'GtkSourceView.auto-indent': 'gboolean',
399
+ 'GtkSourceView.background-pattern': 'GtkSourceBackgroundPatternType',
400
+ 'GtkSourceView.highlight-current-line': 'gboolean',
401
+ 'GtkSourceView.indent-on-tab': 'gboolean',
402
+ 'GtkSourceView.indent-width': 'gint',
403
+ 'GtkSourceView.insert-spaces-instead-of-tabs': 'gboolean',
404
+ 'GtkSourceView.right-margin-position': 'guint',
405
+ 'GtkSourceView.show-line-marks': 'gboolean',
406
+ 'GtkSourceView.show-line-numbers': 'gboolean',
407
+ 'GtkSourceView.show-right-margin': 'gboolean',
408
+ 'GtkSourceView.smart-backspace': 'gboolean',
409
+ 'GtkSourceView.smart-home-end': 'GtkSourceSmartHomeEndType',
410
+ 'GtkSourceView.tab-width': 'guint',
411
+ };
412
+
279
413
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
280
414
  //
281
415
  // The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-4",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for GtkSource-4",
5
5
  "type": "module",
6
6
  "module": "gtksource-4.js",
@@ -36,20 +36,20 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.3.0",
40
- "@girs/gtk-3.0": "^5.3.0",
41
- "@girs/xlib-2.0": "^5.3.0",
42
- "@girs/gdk-3.0": "^5.3.0",
43
- "@girs/cairo-1.0": "^5.3.0",
44
- "@girs/gobject-2.0": "^5.3.0",
45
- "@girs/glib-2.0": "^5.3.0",
46
- "@girs/pango-1.0": "^5.3.0",
47
- "@girs/harfbuzz-0.0": "^5.3.0",
48
- "@girs/freetype2-2.0": "^5.3.0",
49
- "@girs/gio-2.0": "^5.3.0",
50
- "@girs/gmodule-2.0": "^5.3.0",
51
- "@girs/gdkpixbuf-2.0": "^5.3.0",
52
- "@girs/atk-1.0": "^5.3.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/gtk-3.0": "^5.4.0",
41
+ "@girs/xlib-2.0": "^5.4.0",
42
+ "@girs/gdk-3.0": "^5.4.0",
43
+ "@girs/cairo-1.0": "^5.4.0",
44
+ "@girs/gobject-2.0": "^5.4.0",
45
+ "@girs/glib-2.0": "^5.4.0",
46
+ "@girs/pango-1.0": "^5.4.0",
47
+ "@girs/harfbuzz-0.0": "^5.4.0",
48
+ "@girs/freetype2-2.0": "^5.4.0",
49
+ "@girs/gio-2.0": "^5.4.0",
50
+ "@girs/gmodule-2.0": "^5.4.0",
51
+ "@girs/gdkpixbuf-2.0": "^5.4.0",
52
+ "@girs/atk-1.0": "^5.4.0" },
53
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },