glass-easel-devtools-agent 0.12.1 → 0.13.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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "glass-easel-devtools-agent",
3
- "version": "0.12.1",
3
+ "version": "0.13.0",
4
4
  "main": "dist/index.js",
5
5
  "peerDependencies": {
6
- "glass-easel": ">=0.12.0"
6
+ "glass-easel": ">=0.13.0"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@csstools/css-tokenizer": "^2.4.1",
10
10
  "@csstools/selector-specificity": "^3.1.1",
11
11
  "@types/node": "^20.16.5",
12
12
  "devtools-protocol": "^0.0.1319565",
13
- "glass-easel": ">=0.12.0",
14
- "glass-easel-template-compiler": ">=0.12.0",
13
+ "glass-easel": ">=0.13.0",
14
+ "glass-easel-template-compiler": ">=0.13.0",
15
15
  "postcss-selector-parser": "^6.1.2"
16
16
  },
17
17
  "scripts": {
@@ -341,6 +341,14 @@ export class MountPointsManager {
341
341
  },
342
342
  )
343
343
 
344
+ this.conn.setRequestHandler('DOM.setNodeValue', async ({ nodeId, value }) => {
345
+ const { node } = this.queryActiveNode(nodeId)
346
+ const textNode = node.asTextNode()
347
+ if (!textNode) return undefined
348
+ textNode.textContent = value
349
+ return undefined
350
+ })
351
+
344
352
  this.conn.setRequestHandler(
345
353
  'DOM.getGlassEaselNonInheritComposedChildren',
346
354
  async ({ nodeId }) => {
@@ -399,8 +407,8 @@ export class MountPointsManager {
399
407
  border: toQuad(border),
400
408
  padding: toQuad(padding),
401
409
  content: toQuad(content),
402
- width: border.width,
403
- height: border.height,
410
+ width: content.width,
411
+ height: content.height,
404
412
  }
405
413
  })
406
414