mesurer-solid 0.2.4-beta.3 → 0.2.4

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,6 +1,6 @@
1
1
  # Mesurer agent integration
2
2
 
3
- Mesurer's agent integration is the rendered page itself. This guide matches `mesurer-solid@0.2.2` stable. The coding agent reads `window.__MESURER__` through the browser control it already has, consumes human visual intent, edits normal application source, and verifies the real Live result.
3
+ Mesurer's agent integration is the rendered page itself. This guide matches `mesurer-solid@0.2.4` stable. The coding agent reads `window.__MESURER__` through the browser control it already has, consumes human visual intent, edits normal application source, and verifies the real Live result.
4
4
 
5
5
  The normal agent workflow requires no Mesurer MCP server, Send-to-agent callback, or special browser transport. The optional `codex()` plugin is a separate human convenience path for sending Context feedback into local Codex threads; it does not replace the browser-state contract described here. In Electron it can use the native preload bridge. In an ordinary browser it can use the local Mesurer Codex Bridge companion on loopback. Neither path is the Mesurer Solid ChatGPT/Codex agent plugin.
6
6
 
package/README.md CHANGED
@@ -4,7 +4,7 @@ Framework-agnostic UI inspection, measurement, visual intent, and agent-readable
4
4
 
5
5
  Mesurer Solid ships its own isolated Solid 2 renderer. Host applications can use Solid 1 or 2, React, Vue, Svelte, vanilla DOM, or an Electron renderer without providing Solid.
6
6
 
7
- **Current stable:** `mesurer-solid@0.2.2` on the `latest` dist-tag.
7
+ **Current stable:** `mesurer-solid@0.2.4` on the `latest` dist-tag.
8
8
 
9
9
  <p align="center">
10
10
  <img src="https://raw.githubusercontent.com/jhomra21/mesurer-solid/main/docs/assets/readme/hero-multi-spacing.png" alt="Mesurer Solid measuring spacing between selected elements" width="100%">
package/dist/index.js CHANGED
@@ -9887,17 +9887,17 @@ function xh(e) {
9887
9887
  };
9888
9888
  }, fe = () => {
9889
9889
  N();
9890
- let t = e.model.state.hoverElement, r = t ? Qu(t) : e.model.state.hoverRect, i = r && t ? Xd(r, Yd(t.ownerDocument)) : r;
9891
- if (!i || i.width <= 0 || i.height <= 0) return null;
9892
- let a = !!ue(), o = de();
9893
- var s = X("div", {
9890
+ let t = e.model.state.hoverElement, r = t ? Qu(t) : e.model.state.hoverRect, i = t ? Yd(t.ownerDocument) : void 0, a = r && t ? Xd(r, i) : r;
9891
+ if (!a || a.width <= 0 || a.height <= 0) return null;
9892
+ let o = !!ue(), s = o || i ? "2147482700" : void 0, c = de();
9893
+ var l = X("div", {
9894
9894
  "data-mesurer-hover-measurement": "true",
9895
- "data-mesurer-document-hover-layer": a ? "true" : void 0,
9895
+ "data-mesurer-document-hover-layer": o ? "true" : void 0,
9896
9896
  class: "msr:pointer-events-none msr:absolute"
9897
9897
  });
9898
9898
  return lc(() => (e) => {
9899
9899
  n = e;
9900
- }, s), Q(s, Y(K, {
9900
+ }, l), Q(l, Y(K, {
9901
9901
  get when() {
9902
9902
  return le()?.top;
9903
9903
  },
@@ -9914,7 +9914,7 @@ function xh(e) {
9914
9914
  $(e, "style", t, n);
9915
9915
  }), e;
9916
9916
  }
9917
- }), null), Q(s, Y(K, {
9917
+ }), null), Q(l, Y(K, {
9918
9918
  get when() {
9919
9919
  return le()?.right;
9920
9920
  },
@@ -9931,7 +9931,7 @@ function xh(e) {
9931
9931
  $(e, "style", t, n);
9932
9932
  }), e;
9933
9933
  }
9934
- }), null), Q(s, Y(K, {
9934
+ }), null), Q(l, Y(K, {
9935
9935
  get when() {
9936
9936
  return le()?.bottom;
9937
9937
  },
@@ -9948,7 +9948,7 @@ function xh(e) {
9948
9948
  $(e, "style", t, n);
9949
9949
  }), e;
9950
9950
  }
9951
- }), null), Q(s, Y(K, {
9951
+ }), null), Q(l, Y(K, {
9952
9952
  get when() {
9953
9953
  return le()?.left;
9954
9954
  },
@@ -9968,17 +9968,17 @@ function xh(e) {
9968
9968
  }), null), q(() => ({
9969
9969
  position: "absolute",
9970
9970
  "pointer-events": "none",
9971
- "z-index": a ? "2147482700" : void 0,
9972
- left: `${i.left + o.x}px`,
9973
- top: `${i.top + o.y}px`,
9974
- width: `${i.width}px`,
9975
- height: `${i.height}px`,
9971
+ "z-index": s,
9972
+ left: `${a.left + c.x}px`,
9973
+ top: `${a.top + c.y}px`,
9974
+ width: `${a.width}px`,
9975
+ height: `${a.height}px`,
9976
9976
  "background-color": k(),
9977
9977
  transition: "none",
9978
9978
  animation: "none"
9979
9979
  }), (e, t) => {
9980
- $(s, "style", e, t);
9981
- }), s;
9980
+ $(l, "style", e, t);
9981
+ }), l;
9982
9982
  }, pe = (t) => {
9983
9983
  let n = t === "active" ? 100 : t === "hover" ? 90 : t === "preview" ? 50 : 70;
9984
9984
  return `color-mix(in oklch, ${e.model.state.settings.guideColor} ${n}%, transparent)`;
@@ -27920,7 +27920,7 @@ function FO(e) {
27920
27920
  }
27921
27921
  //#endregion
27922
27922
  //#region src/version.ts
27923
- var IO = "0.2.4-beta.3", LO = ab, RO = ob, zO = () => ({
27923
+ var IO = "0.2.4", LO = ab, RO = ob, zO = () => ({
27924
27924
  ...tx(),
27925
27925
  version: IO
27926
27926
  }), BO = RO, VO = (e, t) => e.left <= t.left + t.width && e.left + e.width >= t.left && e.top <= t.top + t.height && e.top + e.height >= t.top, HO = (e) => {