@gjsify/gtk-host 0.55.0 → 0.57.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/lib/esm/capabilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={layout:{refused:`gtk-host's host has no door for a layout-manager child object (ADR 0092); load the .blp through Gtk.Builder instead`},strings:{refused:`gtk-host's host builds widgets and a Gtk.StringList is not one (ADR 0072); load the .blp through Gtk.Builder instead`},responses:{refused:`gtk-host's host builds widgets and a dialog's responses have no door in it (ADR 0072); load the .blp through Gtk.Builder instead`},page:`implemented`,extern:{refused:`gtk-host's host resolves a tag against its built-in widget descriptors and has no registry for an application class; load the .blp through Gtk.Builder instead`},signal:{refused:`gtk-host's tree builder resolves no handler names; a GTK app connects signals in code, or loads the .blp through Gtk.Builder with a scope`},bind:{refused:`gtk-host's tree builder resolves no bindings between objects; a GTK app binds properties in code, or loads the .blp through Gtk.Builder`},breakpoint:{refused:`gtk-host's tree builder resolves no setters between objects and has no Adw.Breakpoint; a GTK app loads the .blp through Gtk.Builder, or builds an Adw.Breakpoint in code`}};export{e as capabilities};
|
|
1
|
+
const e={layout:{refused:`gtk-host's host has no door for a layout-manager child object (ADR 0092); load the .blp through Gtk.Builder instead`},strings:{refused:`gtk-host's host builds widgets and a Gtk.StringList is not one (ADR 0072); load the .blp through Gtk.Builder instead`},responses:{refused:`gtk-host's host builds widgets and a dialog's responses have no door in it (ADR 0072); load the .blp through Gtk.Builder instead`},page:`implemented`,extern:{refused:`gtk-host's host resolves a tag against its built-in widget descriptors and has no registry for an application class; load the .blp through Gtk.Builder instead`},signal:{refused:`gtk-host's tree builder resolves no handler names; a GTK app connects signals in code, or loads the .blp through Gtk.Builder with a scope`},bind:{refused:`gtk-host's tree builder resolves no bindings between objects; a GTK app binds properties in code, or loads the .blp through Gtk.Builder`},breakpoint:{refused:`gtk-host's tree builder resolves no setters between objects and has no Adw.Breakpoint; a GTK app loads the .blp through Gtk.Builder, or builds an Adw.Breakpoint in code`},"sibling-object":{refused:`gtk-host's tree builder has one root and no id scope shared with a second object; a GTK app loads the .blp through Gtk.Builder, which builds every root`}};export{e as capabilities};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import e from"gi://GLib?version=2.0";const t=[`Vulkan: `,`gdk_surface_thaw_updates: `];function isEnvironmentDiagnostic(e){return t.some(t=>e.startsWith(t))}let n=null;function describeLogRecord(e,t=new TextDecoder){let text=e=>e instanceof Uint8Array?t.decode(e):String(e),n=e,r=n?.MESSAGE;if(r!=null){let e=text(r);if(e!==``)return e}let i=n?Object.keys(n).filter(e=>e!==`MESSAGE`&&n[e]!==void 0&&n[e]!==null).map(e=>`${e}=${text(n[e])}`):[];return i.length>0?`<no MESSAGE field> ${i.join(` `)}`:`<a log record with no MESSAGE and no other field>`}function installDiagnosticsGate(){if(n)return n;let t=[],r=[],i=new
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import e from"gi://GLib?version=2.0";const t=[`Vulkan: `,`gdk_surface_thaw_updates: `];function isEnvironmentDiagnostic(e){return t.some(t=>e.startsWith(t))}let n=null;function describeLogRecord(e,t=new TextDecoder){let text=e=>e instanceof Uint8Array?t.decode(e):String(e),n=e,r=n?.MESSAGE;if(r!=null){let e=text(r);if(e!==``)return e}let i=n?Object.keys(n).filter(e=>e!==`MESSAGE`&&n[e]!==void 0&&n[e]!==null).map(e=>`${e}=${text(n[e])}`):[];return i.length>0?`<no MESSAGE field> ${i.join(` `)}`:`<a log record with no MESSAGE and no other field>`}function installDiagnosticsGate(){if(n)return n;let t=[],r=[],i=new Set,a=new TextDecoder,o=e.getenv(`G_MESSAGES_DEBUG`)!==null;return e.log_set_writer_func((n,s)=>{try{let c=describeLogRecord(s,a),l=n&e.LogLevelFlags.LEVEL_MASK;l<=e.LogLevelFlags.LEVEL_WARNING&&(isEnvironmentDiagnostic(c)||i.has(c)?r:t).push(c),(o||l<=e.LogLevelFlags.LEVEL_MESSAGE)&&printerr(c)}catch{printerr(`<gtk-host: a log message could not be decoded>`)}return e.LogWriterOutput.HANDLED}),n={seen:t,environment:r,allowEnvironment(e){i.add(e)},reset(){t.length=0,r.length=0},assertQuiet(e){let n=r.length;if(r.length=0,t.length===0)return;let i=t.length,a=t.join(`
|
|
2
2
|
`);t.length=0;let o=n>0?`\n (plus ${n} diagnostic(s) about the HOST's graphics stack, not the tree — see isEnvironmentDiagnostic)`:``;throw Error(`${e?e+`: `:``}GTK reported ${i} diagnostic(s) that would have passed at exit 0:\n ${a}${o}`)}},n}export{describeLogRecord,installDiagnosticsGate,isEnvironmentDiagnostic};
|
|
@@ -10,6 +10,14 @@ export interface DiagnosticsGate {
|
|
|
10
10
|
*/
|
|
11
11
|
readonly environment: readonly string[];
|
|
12
12
|
reset(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Classify one exact message as the HOST's, for a caller that knows which host it is on.
|
|
15
|
+
*
|
|
16
|
+
* The package reads the operating system nowhere (ADR 0018 would then owe it a claim), so a
|
|
17
|
+
* message that is the host's on ONE platform is declared by the spec running there, not
|
|
18
|
+
* guessed here. Exact text only: a prefix would widen the gate by a namespace.
|
|
19
|
+
*/
|
|
20
|
+
allowEnvironment(message: string): void;
|
|
13
21
|
/** Throw if anything about the tree was recorded, naming every message. */
|
|
14
22
|
assertQuiet(context?: string): void;
|
|
15
23
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The libraries these rows were read from, in the same provenance grammar
|
|
3
3
|
* `methods.mts` uses so one parser reads both lines.
|
|
4
4
|
*/
|
|
5
|
-
export declare const VALUE_TYPES_PROVENANCE = "Adw-1/1.9.
|
|
5
|
+
export declare const VALUE_TYPES_PROVENANCE = "Adw-1/1.9.4 Gio-2.0 Gtk-4.0/4.22.5";
|
|
6
6
|
/**
|
|
7
7
|
* `<Namespace>.<Member>` -> what the typelib says that type is.
|
|
8
8
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/gtk-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
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.
|
|
110
|
-
"@gjsify/utils": "^0.
|
|
109
|
+
"@gjsify/adwaita-core": "^0.57.0",
|
|
110
|
+
"@gjsify/utils": "^0.57.0"
|
|
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.
|
|
133
|
+
"@gjsify/cli": "^0.57.0",
|
|
134
134
|
"@vue/runtime-core": "^3.5.0",
|
|
135
135
|
"solid-js": "^1.9.0",
|
|
136
|
-
"@gjsify/unit": "^0.
|
|
136
|
+
"@gjsify/unit": "^0.57.0",
|
|
137
137
|
"@types/node": "^25.9.2",
|
|
138
138
|
"typescript": "^6.0.3",
|
|
139
139
|
"@gjsify/node-gi": "file:../../node-gi/node-gi",
|