@gjsify/gtk-host 0.64.2-next.252 → 0.64.2-next.254

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 +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`},"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
+ 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`},accessibility:`implemented`,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 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{createElement as e,insert as t,materialize as n,setProp as r}from"../host.js";import{capabilities as i}from"../capabilities.js";import{assertTreeConstructs as a}from"@gjsify/adwaita-core/conformance";function buildSharedTree(e,t=[]){return a(`gtk-host`,i,e),buildNode(e,t)}function buildNode(i,a){let o=e(i.tag,i.props);a.push(o),n(o),i.slot!==void 0&&r(o,`slot`,i.slot);for(let e of i.children??[]){let n=buildNode(e,a);e.page!==void 0&&setPageLayout(o,n,e),t(n,o)}return o}function setPageLayout(e,t,n){let{page:i}=n,a=e.descriptor.gtype;if(a===`GtkNotebook`)r(t,`layout`,i?.label===void 0?{}:{tabLabel:i.label});else if(a===`GtkStack`)r(t,`layout`,{...i?.name===void 0?{}:{name:i.name},...i?.label===void 0?{}:{title:i.label}});else throw Error(`gtk-host's shared-tree builder: \`${n.tag}\` has a page, and ${a} has no pages.`)}export{buildSharedTree};
1
+ import"../_virtual/_rolldown/runtime.js";import{createElement as e,insert as t,materialize as n,setProp as r}from"../host.js";import{capabilities as i}from"../capabilities.js";import{assertTreeConstructs as a}from"@gjsify/adwaita-core/conformance";function buildSharedTree(e,t=[]){return a(`gtk-host`,i,e),buildNode(e,t)}function buildNode(i,a){let o=e(i.tag,i.props);if(a.push(o),i.accessibility!==void 0){let e=Object.entries(i.accessibility).map(([e,t])=>[e,t.value]);r(o,`accessibility`,Object.fromEntries(e))}n(o),i.slot!==void 0&&r(o,`slot`,i.slot);for(let e of i.children??[]){let n=buildNode(e,a);e.page!==void 0&&setPageLayout(o,n,e),t(n,o)}return o}function setPageLayout(e,t,n){let{page:i}=n,a=e.descriptor.gtype;if(a===`GtkNotebook`)r(t,`layout`,i?.label===void 0?{}:{tabLabel:i.label});else if(a===`GtkStack`)r(t,`layout`,{...i?.name===void 0?{}:{name:i.name},...i?.label===void 0?{}:{title:i.label}});else throw Error(`gtk-host's shared-tree builder: \`${n.tag}\` has a page, and ${a} has no pages.`)}export{buildSharedTree};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/gtk-host",
3
- "version": "0.64.2-next.252",
3
+ "version": "0.64.2-next.254",
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.2-next.252",
110
- "@gjsify/utils": "0.64.2-next.252"
109
+ "@gjsify/adwaita-core": "0.64.2-next.254",
110
+ "@gjsify/utils": "0.64.2-next.254"
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.2-next.252",
133
+ "@gjsify/cli": "0.64.2-next.254",
134
134
  "@vue/runtime-core": "^3.5.0",
135
135
  "solid-js": "^1.9.0",
136
- "@gjsify/unit": "0.64.2-next.252",
136
+ "@gjsify/unit": "0.64.2-next.254",
137
137
  "@types/node": "^25.9.2",
138
138
  "typescript": "^6.0.3",
139
139
  "@gjsify/node-gi": "file:../../node-gi/node-gi",
@@ -167,5 +167,5 @@
167
167
  "url": "https://github.com/gjsify/gjsify/issues"
168
168
  },
169
169
  "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/framework/gtk-host#readme",
170
- "gitHead": "3853c65f772d30460e3894ff08a6079a70d7b206"
170
+ "gitHead": "6c88ac780b9742fce781e9b35aa2f45c125d8064"
171
171
  }