mesurer-solid 0.2.3-beta.1 → 0.2.3-beta.3

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.
@@ -225,6 +225,7 @@ const context = await window.__MESURER__.context({ annotation: annotationId })
225
225
  ```
226
226
 
227
227
  Saved annotation UI is source-linked presentation, not the durable state itself. Saved annotations survive a same-tab reload and conservatively rebind through their stored selector/fingerprint identity; ambiguous targets remain unresolved rather than attaching to a different element. Add Note, its composer, saved markers and panels, and the ownership edge move with their target through window and nested scrolling. A saved panel keeps its target-relative page point and may leave the viewport with its source. Several notes on one target keep separate nearby markers, and Add Note remains available while an existing note is open.
228
+ The composer is a compact auto-growing text field with an in-field Send button. Enter sends, Shift+Enter inserts a newline, and Escape discards. The first outside click on a non-empty draft prompts rather than discarding it; a second outside click closes it.
228
229
 
229
230
  Do not infer that an annotation disappeared because its card or marker is currently offscreen. Read `annotations()` and annotation-scoped `context()` instead. When a note is highlighted, the temporary ownership emphasis uses one exact target boundary rather than a second fill, glow, or rounded frame.
230
231
 
package/README.md CHANGED
@@ -106,6 +106,7 @@ Programmatic injection reuses an existing connected instance by default. Lifecyc
106
106
  - Inspect rendered typography in Select. Edit previews reversible direct copy and style changes.
107
107
  - Use Edit to move selected UI and change direct text, typography, and text color without changing source.
108
108
  - Capture page regions through the optional Screenshot plugin. It selects native host capture, the Chromium extension adapter, or browser display capture internally, and flattens transparent native captures against the renderer backdrop before preview, copy, or save.
109
+ - Open one live iPhone 15 (393 × 852 CSS px) preview with the built-in Responsive inspector. Inspection routing into previews is not included in this initial frames-only release.
109
110
  - Record adjustable selected regions through the optional Recording plugin at 60 fps by default or 120 fps when selected and supported. Browser, extension, and Electron APIs only acquire the stream; MediaBunny owns encoding, inspection, trim, 1×/2×/3× resize, and WebM/MP4 export.
110
111
  - Read selection, measurements, guides, annotations, layout, styles, and saved human intent through Context and agent APIs.
111
112
  - Keep saved annotations across same-tab reloads and conservatively rebind them to their original DOM targets; markers, cards, and ownership evidence stay attached through scrolling, repeated-note markers stay local, Add Note remains available while a note is open, and cards/composers occlude Select hover and selection chrome.
@@ -154,6 +155,7 @@ Global shortcuts are enabled by default. Turn them off from **Settings > General
154
155
  | `A` | Typography |
155
156
  | `G` | Guides |
156
157
  | `L` | Layout Guides when the plugin is enabled |
158
+ | `B` | Responsive inspector |
157
159
  | `H` / `V` | Horizontal / vertical guide orientation |
158
160
  | `Alt` / `Option` | Distance overlay |
159
161
  | `Cmd/Ctrl + ,` | Settings |
@@ -206,6 +208,7 @@ See [Queue Context feedback to Codex](https://github.com/jhomra21/mesurer-solid/
206
208
  - [Measurements and distance geometry](https://github.com/jhomra21/mesurer-solid/blob/main/docs/MEASUREMENTS.md)
207
209
  - [Screenshots](https://github.com/jhomra21/mesurer-solid/blob/main/docs/SCREENSHOTS.md)
208
210
  - [Recording](https://github.com/jhomra21/mesurer-solid/blob/main/docs/RECORDING.md)
211
+ - [Responsive inspector](https://github.com/jhomra21/mesurer-solid/blob/main/docs/RESPONSIVE_INSPECTOR.md)
209
212
  - [Electron renderer example](https://github.com/jhomra21/mesurer-solid/blob/main/examples/electron-renderer/README.md)
210
213
  - [Context workflow](https://github.com/jhomra21/mesurer-solid/blob/main/docs/CONTEXT_WORKFLOW.md)
211
214
  - [Queue Context feedback to Codex](https://github.com/jhomra21/mesurer-solid/blob/main/docs/CODEX.md)
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { type MesurerAgentHarness, type MesurerTextEditIntent } from "./agent";
2
2
  import { type EditCapturePlan, type EditIntent, type EditPresentation, type EditReview } from "./arrange";
3
3
  import type { MesurerAnnotation, MesurerCapturePlanV1, MesurerContextRequest, MesurerContextV1, MesurerReviewV1 } from "./context";
4
- import type { MesurerPlugin, MesurerPluginDescription, MesurerPluginHost } from "./core";
4
+ import { type MesurerPlugin, type MesurerPluginDescription, type MesurerPluginHost } from "./core";
5
5
  import { type MesurerHostLayerMode } from "./host-layer";
6
6
  export type ColorPickerFormat = "hex" | "rgb" | "hsl" | "oklch";
7
7
  export type MesurerTheme = "system" | "light" | "dark";
8
8
  /** Public built-in names, aligned with the factories exported by `mesurer-solid/plugins`. */
9
- export type MesurerBuiltin = "select" | "xray" | "colorPicker" | "rulers" | "typography" | "guides" | "distance" | "settings";
9
+ export type MesurerBuiltin = "select" | "xray" | "colorPicker" | "rulers" | "responsive" | "typography" | "guides" | "distance" | "settings";
10
10
  /** @deprecated Internal compatibility ids used by the older `excludePlugins` option. */
11
- export type MesurerBuiltinPluginId = "select" | "xray" | "color-picker" | "rulers" | "text-inspector" | "guides" | "distance" | "settings";
11
+ export type MesurerBuiltinPluginId = "select" | "xray" | "color-picker" | "rulers" | "responsive" | "text-inspector" | "guides" | "distance" | "settings";
12
12
  export type LinePattern = "solid" | "dashed" | "dotted";
13
13
  export type LineStyle = {
14
14
  opacity: number;