mesurer 0.1.4 → 0.1.5
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/CHANGELOG.md +10 -0
- package/PRIVACY.md +1 -1
- package/README.md +10 -0
- package/dist/index.cjs +13565 -10075
- package/dist/index.d.cts +71 -4
- package/dist/index.d.ts +71 -4
- package/dist/index.js +13472 -9978
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# mesurer
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
- add DOM-attached comment threads with replies, persistence, iframe and Shadow DOM targets, and agent-ready copy
|
|
6
|
+
- improve inspection with copyable info cards, typography details, iframe selection, and X-ray support
|
|
7
|
+
- add guide-linked measurements, Option+S pinned measurements, and shared guide controls
|
|
8
|
+
- add configurable Screenshot, Rulers, and Settings features with matching shortcut control
|
|
9
|
+
- isolate Mesurer styles and keyboard behavior from host pages
|
|
10
|
+
- harden extension screenshot capture by removing the page-injected capture bridge
|
|
11
|
+
- Thanks to [Moumen Soliman](https://github.com/moumen-soliman) for [adding Option+S pinned measurements](https://github.com/ibelick/mesurer/pull/25).
|
|
12
|
+
|
|
3
13
|
## 0.1.4
|
|
4
14
|
|
|
5
15
|
- inject extension scripts only after the user activates the extension
|
package/PRIVACY.md
CHANGED
|
@@ -30,7 +30,7 @@ Used to inject the extension script into the active page to render measurement o
|
|
|
30
30
|
### storage
|
|
31
31
|
|
|
32
32
|
Used to store Mesurer settings and page workspaces locally in Chrome. This data stays in the
|
|
33
|
-
browser and is not sent to Mesurer servers.
|
|
33
|
+
browser and is not sent to Mesurer servers. This includes comment threads and their replies.
|
|
34
34
|
|
|
35
35
|
### clipboardWrite
|
|
36
36
|
|
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ function App() {
|
|
|
58
58
|
| `portalTarget` | Optional element or shadow root used as the overlay portal mount target. |
|
|
59
59
|
| `persistence` | Optional storage adapter for custom or extension-backed persistence. |
|
|
60
60
|
| `captureVisibleTab` | Optional function supplying a PNG of the visible tab for Screenshot capture. |
|
|
61
|
+
| `features` | Enable or disable `screenshot`, `rulers`, and `settings`; each defaults to `true`. |
|
|
61
62
|
| `onPersistenceError` | Called when persistence is unavailable or a storage write fails. |
|
|
62
63
|
| `colorPickerFormats` | Color formats displayed in the picker popover, in display order. |
|
|
63
64
|
| `colorPickerClickFormat` | Format copied to the clipboard when a color is picked. |
|
|
@@ -94,12 +95,20 @@ Props are the defaults. Saved settings override them; **Use defaults** restores
|
|
|
94
95
|
| `H` | Set guide orientation to horizontal. |
|
|
95
96
|
| `V` | Set guide orientation to vertical. |
|
|
96
97
|
| `Alt` | Temporarily enable option/guide measurement overlays. |
|
|
98
|
+
| `Option + S` / `Alt + S` | Pin the measurement currently shown under `Option` / `Alt` so it stays on screen. |
|
|
97
99
|
| `Esc` | Close an open panel, cancel the current interaction, or deselect the tool. Press again to minimize Mesurer. |
|
|
98
100
|
| `Backspace` / `Delete` | Remove selected guides, arrows, pen strokes, or text. |
|
|
99
101
|
| `Cmd/Ctrl + Z` | Undo. |
|
|
100
102
|
| `Cmd/Ctrl + Shift + Z` | Redo. |
|
|
101
103
|
| `Cmd/Ctrl + A` | Select all annotations. |
|
|
102
104
|
| `Cmd/Ctrl + ,` | Open Settings. |
|
|
105
|
+
| `Cmd/Ctrl + K` | Copy comments for an agent. |
|
|
106
|
+
|
|
107
|
+
`initialState` accepts `enabled`, `minimized`, `toolbarPosition`, `toolMode`, guides, arrows, pen strokes, text annotations, measurements, and comments. Saved workspace state overrides it.
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
<Mesurer initialState={{ minimized: true, toolbarPosition: { x: 24, y: 24 } }} />
|
|
111
|
+
```
|
|
103
112
|
|
|
104
113
|
## Features
|
|
105
114
|
|
|
@@ -114,6 +123,7 @@ Props are the defaults. Saved settings override them; **Use defaults** restores
|
|
|
114
123
|
- **Screenshot** - Drag a region of the visible tab and copy or download it. In a React integration without the extension, the browser may show a tab-sharing prompt.
|
|
115
124
|
- **Distance overlays** - Hold Alt for quick spacing checks
|
|
116
125
|
- **Undo/redo** - Command history for guides, measurements, arrows, pen strokes, and text annotations
|
|
126
|
+
- **Comments** - Pin threads to live elements, add replies, move targets, search threads, and copy structured feedback for agents
|
|
117
127
|
- **Settings** - Configure selection, guide, ruler, arrow, text, color, format, and persistence behavior
|
|
118
128
|
- **Workspace controls** - Restore defaults or clear guides, measurements, and annotations; minimize Mesurer to a single toolbar button
|
|
119
129
|
|