@gjsify/bridge-types 0.3.20 → 0.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.
@@ -0,0 +1 @@
1
+ var e=Object.defineProperty,__name=(t,n)=>e(t,`name`,{value:n,configurable:!0});export{__name};
@@ -1 +1 @@
1
- import{BridgeWindow as e}from"./bridge-window.js";import{Document as t}from"@gjsify/dom-elements";var n=class{constructor(n){this.document=new t,this.window=new e(this,n)}get body(){return this.document.body}get[Symbol.toStringTag](){return`BridgeEnvironment`}};export{n as BridgeEnvironment};
1
+ import"./_virtual/_rolldown/runtime.js";import{BridgeWindow as e}from"./bridge-window.js";import{Document as t}from"@gjsify/dom-elements";var BridgeEnvironment=class{constructor(n){this.document=new t,this.window=new e(this,n)}get body(){return this.document.body}get[Symbol.toStringTag](){return`BridgeEnvironment`}};export{BridgeEnvironment};
@@ -1 +1 @@
1
- import{EventTarget as e}from"@gjsify/dom-events";var t=class extends e{constructor(e,t){super(),this._environment=e,this._host=t}get document(){return this._environment.document}get innerWidth(){return this._host.getWidth()}get innerHeight(){return this._host.getHeight()}get devicePixelRatio(){return this._host.getDevicePixelRatio()}requestAnimationFrame(e){if(this._host.requestAnimationFrame)return this._host.requestAnimationFrame(e);throw Error(`requestAnimationFrame is not supported by this bridge`)}cancelAnimationFrame(e){this._host.cancelAnimationFrame&&this._host.cancelAnimationFrame(e)}get performance(){let e=this._host;return{now(){return e.performanceNow()}}}getComputedStyle(e){return{}}get[Symbol.toStringTag](){return`BridgeWindow`}};export{t as BridgeWindow};
1
+ import"./_virtual/_rolldown/runtime.js";import{EventTarget as e}from"@gjsify/dom-events";var BridgeWindow=class extends e{constructor(e,t){super(),this._environment=e,this._host=t}get document(){return this._environment.document}get innerWidth(){return this._host.getWidth()}get innerHeight(){return this._host.getHeight()}get devicePixelRatio(){return this._host.getDevicePixelRatio()}requestAnimationFrame(e){if(this._host.requestAnimationFrame)return this._host.requestAnimationFrame(e);throw Error(`requestAnimationFrame is not supported by this bridge`)}cancelAnimationFrame(e){this._host.cancelAnimationFrame&&this._host.cancelAnimationFrame(e)}get performance(){let e=this._host;return{now(){return e.performanceNow()}}}getComputedStyle(e){return{}}get[Symbol.toStringTag](){return`BridgeWindow`}};export{BridgeWindow};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/bridge-types",
3
- "version": "0.3.20",
3
+ "version": "0.4.0",
4
4
  "description": "Shared interfaces and environment classes for GTK-DOM bridge containers",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -25,15 +25,15 @@
25
25
  "bridge"
26
26
  ],
27
27
  "dependencies": {
28
- "@girs/gdk-4.0": "4.0.0-4.0.0-rc.14",
29
- "@girs/gjs": "4.0.0-rc.14",
30
- "@girs/glib-2.0": "2.88.0-4.0.0-rc.14",
31
- "@girs/gtk-4.0": "4.23.0-4.0.0-rc.14",
32
- "@gjsify/dom-elements": "^0.3.20",
33
- "@gjsify/dom-events": "^0.3.20"
28
+ "@girs/gdk-4.0": "4.0.0-4.0.0-rc.15",
29
+ "@girs/gjs": "4.0.0-rc.15",
30
+ "@girs/glib-2.0": "2.88.0-4.0.0-rc.15",
31
+ "@girs/gtk-4.0": "4.23.0-4.0.0-rc.15",
32
+ "@gjsify/dom-elements": "^0.4.0",
33
+ "@gjsify/dom-events": "^0.4.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@gjsify/cli": "^0.3.20",
36
+ "@gjsify/cli": "^0.4.0",
37
37
  "@types/node": "^25.6.2",
38
38
  "typescript": "^6.0.3"
39
39
  }