@gjsify/dom-elements 0.26.0 → 0.27.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.
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{Comment as e}from"../comment.js";import{Text as t}from"../text.js";import{DocumentFragment as n}from"../document-fragment.js";import{document as r}from"../document.js";import{DOMTokenList as i}from"../dom-token-list.js";import{defineGlobal as a,defineGlobalIfMissing as o}from"./helpers.js";import{installWindowEventBus as s}from"./window-event-bus.js";a(`Text`,t),a(`Comment`,e),a(`DocumentFragment`,n),a(`DOMTokenList`,i),a(`document`,r),o(`self`,globalThis);var Window=class{};o(`Window`,Window),o(`window`,globalThis),o(`focus`,()=>{}),o(`blur`,()=>{}),s(globalThis),o(`devicePixelRatio`,1),o(`scrollX`,0),o(`scrollY`,0),o(`pageXOffset`,0),o(`pageYOffset`,0),o(`alert`,(...e)=>console.error(`alert:`,...e)),globalThis.top===void 0&&Object.defineProperty(globalThis,"top",{get:()=>globalThis,configurable:!0});
1
+ import"../_virtual/_rolldown/runtime.js";import{Comment as e}from"../comment.js";import{Text as t}from"../text.js";import{DocumentFragment as n}from"../document-fragment.js";import{document as r}from"../document.js";import{DOMTokenList as i}from"../dom-token-list.js";import{defineGlobal as a,defineGlobalIfMissing as o}from"./helpers.js";import{installWindowEventBus as s}from"./window-event-bus.js";a(`Text`,t),a(`Comment`,e),a(`DocumentFragment`,n),a(`DOMTokenList`,i),a(`document`,r),o(`self`,globalThis);var Window=class{static[Symbol.hasInstance](e){return e===globalThis}};o(`Window`,Window),o(`window`,globalThis),o(`focus`,()=>{}),o(`blur`,()=>{}),s(globalThis),o(`devicePixelRatio`,1),o(`scrollX`,0),o(`scrollY`,0),o(`pageXOffset`,0),o(`pageYOffset`,0),o(`alert`,(...e)=>console.error(`alert:`,...e)),globalThis.top===void 0&&Object.defineProperty(globalThis,"top",{get:()=>globalThis,configurable:!0});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/dom-elements",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "DOM element hierarchy (Node, Element, HTMLElement, HTMLImageElement) for GJS",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -50,7 +50,7 @@
50
50
  "./globals.mjs"
51
51
  ],
52
52
  "scripts": {
53
- "clear": "rm -rf lib tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo test.gjs.mjs test.node.mjs || exit 0",
53
+ "clear": "gjsify clear lib tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo test.gjs.mjs test.node.mjs",
54
54
  "check": "gjsify tsc --noEmit",
55
55
  "build": "gjsify run build:gjsify && gjsify run build:types",
56
56
  "build:gjsify": "gjsify build --library 'src/**/*.{ts,js}' --exclude 'src/**/*.spec.{mts,ts}' 'src/test.{mts,ts}'",
@@ -71,15 +71,15 @@
71
71
  "@girs/gdkpixbuf-2.0": "^4.1.0",
72
72
  "@girs/gjs": "^4.1.0",
73
73
  "@girs/glib-2.0": "^4.1.0",
74
- "@gjsify/abort-controller": "^0.26.0",
75
- "@gjsify/canvas2d-core": "^0.26.0",
76
- "@gjsify/dom-events": "^0.26.0",
77
- "@gjsify/fetch": "^0.26.0"
74
+ "@gjsify/abort-controller": "^0.27.0",
75
+ "@gjsify/canvas2d-core": "^0.27.0",
76
+ "@gjsify/dom-events": "^0.27.0",
77
+ "@gjsify/fetch": "^0.27.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@girs/gst-1.0": "^4.1.0",
81
- "@gjsify/cli": "^0.26.0",
82
- "@gjsify/unit": "^0.26.0",
81
+ "@gjsify/cli": "^0.27.0",
82
+ "@gjsify/unit": "^0.27.0",
83
83
  "@types/node": "^25.9.2",
84
84
  "typescript": "^6.0.3"
85
85
  },