@girs/meta-12 5.3.0 → 5.5.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/meta-12)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/meta-12)
6
6
 
7
- GJS TypeScript type definitions for Meta-12 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for Meta-12 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.5.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.
@@ -524,6 +524,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
524
524
  */
525
525
  export const PROP_ENUMS: Readonly<Record<string, string>>;
526
526
 
527
+ /**
528
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
529
+ *
530
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
531
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
532
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
533
+ * reads this one; a host resolving a nick to a number reads that one.
534
+ *
535
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
536
+ * like any other, so absence is readable as "unknown".
537
+ */
538
+ export const PROP_TYPES: Readonly<Record<string, string>>;
539
+
527
540
  /**
528
541
  * The kinds of value a GTK accessible property, relation or state takes.
529
542
  *
@@ -599,6 +599,58 @@ export const PROP_ENUMS = {
599
599
  'MetaBarrier.directions': 'MetaBarrierDirection',
600
600
  };
601
601
 
602
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
603
+ //
604
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
605
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
606
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
607
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
608
+ //
609
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
610
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
611
+ // child. Absence therefore reads as "unknown" and never as "scalar".
612
+ export const PROP_TYPES = {
613
+ 'MetaBackground.meta-display': 'MetaDisplay',
614
+ 'MetaBackgroundActor.meta-display': 'MetaDisplay',
615
+ 'MetaBackgroundActor.monitor': 'gint',
616
+ 'MetaBackgroundContent.background': 'MetaBackground',
617
+ 'MetaBackgroundContent.brightness': 'gdouble',
618
+ 'MetaBackgroundContent.gradient': 'gboolean',
619
+ 'MetaBackgroundContent.gradient-height': 'gint',
620
+ 'MetaBackgroundContent.gradient-max-darkness': 'gdouble',
621
+ 'MetaBackgroundContent.meta-display': 'MetaDisplay',
622
+ 'MetaBackgroundContent.monitor': 'gint',
623
+ 'MetaBackgroundContent.rounded-clip-radius': 'gfloat',
624
+ 'MetaBackgroundContent.vignette': 'gboolean',
625
+ 'MetaBackgroundContent.vignette-sharpness': 'gdouble',
626
+ 'MetaBarrier.backend': 'MetaBackend',
627
+ 'MetaBarrier.directions': 'MetaBarrierDirection',
628
+ 'MetaBarrier.display': 'MetaDisplay',
629
+ 'MetaBarrier.x1': 'gint',
630
+ 'MetaBarrier.x2': 'gint',
631
+ 'MetaBarrier.y1': 'gint',
632
+ 'MetaBarrier.y2': 'gint',
633
+ 'MetaContext.name': 'gchararray',
634
+ 'MetaContext.unsafe-mode': 'gboolean',
635
+ 'MetaCursorTracker.backend': 'MetaBackend',
636
+ 'MetaIdleMonitor.device': 'ClutterInputDevice',
637
+ 'MetaLaunchContext.display': 'MetaDisplay',
638
+ 'MetaLaunchContext.timestamp': 'guint',
639
+ 'MetaLaunchContext.workspace': 'MetaWorkspace',
640
+ 'MetaMonitorManager.backend': 'MetaBackend',
641
+ 'MetaMonitorManager.experimental-hdr': 'gchararray',
642
+ 'MetaRemoteAccessHandle.is-recording': 'gboolean',
643
+ 'MetaStartupNotification.display': 'MetaDisplay',
644
+ 'MetaStartupSequence.application-id': 'gchararray',
645
+ 'MetaStartupSequence.display': 'MetaDisplay',
646
+ 'MetaStartupSequence.icon-name': 'gchararray',
647
+ 'MetaStartupSequence.id': 'gchararray',
648
+ 'MetaStartupSequence.name': 'gchararray',
649
+ 'MetaStartupSequence.timestamp': 'guint64',
650
+ 'MetaStartupSequence.wmclass': 'gchararray',
651
+ 'MetaStartupSequence.workspace': 'gint',
652
+ };
653
+
602
654
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
603
655
  //
604
656
  // 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/meta-12",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "description": "GJS TypeScript type definitions for Meta-12",
5
5
  "type": "module",
6
6
  "module": "meta-12.js",
@@ -36,26 +36,26 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.3.0",
40
- "@girs/xlib-2.0": "^5.3.0",
41
- "@girs/xfixes-4.0": "^5.3.0",
42
- "@girs/gobject-2.0": "^5.3.0",
43
- "@girs/glib-2.0": "^5.3.0",
44
- "@girs/gdesktopenums-3.0": "^5.3.0",
45
- "@girs/coglpango-12": "^5.3.0",
46
- "@girs/pangocairo-1.0": "^5.3.0",
47
- "@girs/cairo-1.0": "^5.3.0",
48
- "@girs/pango-1.0": "^5.3.0",
49
- "@girs/harfbuzz-0.0": "^5.3.0",
50
- "@girs/freetype2-2.0": "^5.3.0",
51
- "@girs/gio-2.0": "^5.3.0",
52
- "@girs/gmodule-2.0": "^5.3.0",
53
- "@girs/cogl-12": "^5.3.0",
54
- "@girs/graphene-1.0": "^5.3.0",
55
- "@girs/gl-1.0": "^5.3.0",
56
- "@girs/clutter-12": "^5.3.0",
57
- "@girs/json-1.0": "^5.3.0",
58
- "@girs/atk-1.0": "^5.3.0" },
39
+ "@girs/gjs": "^5.5.0",
40
+ "@girs/xlib-2.0": "^5.5.0",
41
+ "@girs/xfixes-4.0": "^5.5.0",
42
+ "@girs/gobject-2.0": "^5.5.0",
43
+ "@girs/glib-2.0": "^5.5.0",
44
+ "@girs/gdesktopenums-3.0": "^5.5.0",
45
+ "@girs/coglpango-12": "^5.5.0",
46
+ "@girs/pangocairo-1.0": "^5.5.0",
47
+ "@girs/cairo-1.0": "^5.5.0",
48
+ "@girs/pango-1.0": "^5.5.0",
49
+ "@girs/harfbuzz-0.0": "^5.5.0",
50
+ "@girs/freetype2-2.0": "^5.5.0",
51
+ "@girs/gio-2.0": "^5.5.0",
52
+ "@girs/gmodule-2.0": "^5.5.0",
53
+ "@girs/cogl-12": "^5.5.0",
54
+ "@girs/graphene-1.0": "^5.5.0",
55
+ "@girs/gl-1.0": "^5.5.0",
56
+ "@girs/clutter-12": "^5.5.0",
57
+ "@girs/json-1.0": "^5.5.0",
58
+ "@girs/atk-1.0": "^5.5.0" },
59
59
  "devDependencies": {
60
60
  "typescript": "*"
61
61
  },