@gjsify/gtk-host 0.64.13 → 0.64.14

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.
@@ -1,5 +1,5 @@
1
1
  import Gio from 'gi://Gio?version=2.0';
2
- import type { AdwMenuInput, AdwMenuModel } from '@gjsify/adwaita-core';
2
+ import type { AdwMenuInput, AdwMenuTree } from '@gjsify/adwaita-core';
3
3
  /**
4
4
  * A portable menu model as a live `Gio.Menu`.
5
5
  *
@@ -7,7 +7,7 @@ import type { AdwMenuInput, AdwMenuModel } from '@gjsify/adwaita-core';
7
7
  * conversion step of its own: `normalizeMenuModel` is idempotent, which is what makes
8
8
  * the two safe to take through one door.
9
9
  */
10
- export declare function buildGioMenu(input: AdwMenuInput | AdwMenuModel): Gio.Menu;
10
+ export declare function buildGioMenu(input: AdwMenuInput | AdwMenuTree): Gio.Menu;
11
11
  /**
12
12
  * Whether a value is a portable menu model rather than a `GMenuModel`.
13
13
  *
@@ -39,5 +39,14 @@ export declare const isPortableMenu: (value: unknown) => value is AdwMenuInput;
39
39
  * · a non-string `label` reads as `''`. `attr()` asks for type `s`; so does
40
40
  * `g_menu_item_get_attribute (item, "label", "&s", …)`, which fails the same way and
41
41
  * leaves GTK drawing an unlabelled row.
42
+ *
43
+ * WHY THIS IS NOT `menuTree` FROM `@gjsify/adwaita-core`, which reads the same tree out of
44
+ * the pure-JS twin (ADR 0128). The two readers differ in one argument neither can give up:
45
+ * `expected_type` is a `GLib.VariantType` here and a type STRING there, because ADR 0118 § 2's
46
+ * `GLib.Variant` subset has no `VariantType` to build one with — the divergence
47
+ * `MENU_MODEL_DIVERGENCE_VECTORS` records as `variant-type-is-a-string`. A shared reader would
48
+ * have to stop filtering by type to bridge that, and the filter is what makes a non-string
49
+ * `label` read as GTK reads it. So the DOOR is shared (`AdwMenuTree`, and the vectors both
50
+ * readers answer) and the two calls are not.
42
51
  */
43
- export declare function fromGioMenu(model: Gio.MenuModel): AdwMenuModel;
52
+ export declare function fromGioMenu(model: Gio.MenuModel): AdwMenuTree;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/gtk-host",
3
- "version": "0.64.13",
3
+ "version": "0.64.14",
4
4
  "description": "Framework-agnostic GTK4/Adwaita host: the element model UI-framework renderers bind to",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -106,8 +106,8 @@
106
106
  "@girs/gtk-4.0": "5.4.0",
107
107
  "@girs/pango-1.0": "5.4.0",
108
108
  "@girs/pangocairo-1.0": "5.4.0",
109
- "@gjsify/adwaita-core": "^0.64.13",
110
- "@gjsify/utils": "^0.64.13"
109
+ "@gjsify/adwaita-core": "^0.64.14",
110
+ "@gjsify/utils": "^0.64.14"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "@vue/runtime-core": "^3.5.0",
@@ -130,10 +130,10 @@
130
130
  }
131
131
  },
132
132
  "devDependencies": {
133
- "@gjsify/cli": "^0.64.13",
133
+ "@gjsify/cli": "^0.64.14",
134
134
  "@vue/runtime-core": "^3.5.0",
135
135
  "solid-js": "^1.9.0",
136
- "@gjsify/unit": "^0.64.13",
136
+ "@gjsify/unit": "^0.64.14",
137
137
  "@types/node": "^25.9.2",
138
138
  "typescript": "^6.0.3",
139
139
  "@gjsify/node-gi": "file:../../node-gi/node-gi",