mesurer-solid 0.2.1-beta.0 → 0.2.1-beta.1
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/README.md +1 -1
- package/dist/index.d.ts +16 -14
- package/dist/index.js +397 -331
- package/dist/inject-script.js +6 -6
- package/dist/inject.js +392 -326
- package/dist/plugins.js +62 -57
- package/package.json +1 -1
- package/skills/mesurer-ui/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -104,7 +104,7 @@ Programmatic injection reuses an existing connected instance by default. Lifecyc
|
|
|
104
104
|
- Compact the toolbar to active controls without changing tool state or order.
|
|
105
105
|
- Choose System, Light, or Dark appearance while keeping the same theme across isolated and document-backed Mesurer UI.
|
|
106
106
|
|
|
107
|
-
Use `1` for Select and `2` for Edit. Select contains inspection tools. Edit owns movement and direct text/style changes. Context and Codex remain visible in both modes. The grouped toolbar changes modes in 150 ms. `Shift+A` still enters Edit
|
|
107
|
+
Use `1` for Select and `2` for Edit. Select contains inspection tools. Edit owns movement and direct text/style changes. Context and Codex remain visible in both modes. The grouped toolbar changes modes in 150 ms. `Shift+A` still enters Edit as a compatibility shortcut.
|
|
108
108
|
|
|
109
109
|
Toolbar dragging starts after the pointer crosses the drag threshold. Dragging from Settings, Guide, or plugin triggers closes the open menu or panel. Pointer activity inside menus, dialogs, form controls, editable regions, and sliders does not drag the toolbar.
|
|
110
110
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MesurerAgentHarness, type MesurerTextEditIntent } from "./agent";
|
|
2
|
-
import { type
|
|
2
|
+
import { type EditCapturePlan, type EditIntent, type EditPresentation, type EditReview } from "./arrange";
|
|
3
3
|
import type { MesurerAnnotation, MesurerCapturePlanV1, MesurerContextRequest, MesurerContextV1, MesurerReviewV1 } from "./context";
|
|
4
4
|
import type { MesurerPlugin, MesurerPluginDescription, MesurerPluginHost } from "./core";
|
|
5
5
|
import { type MesurerHostLayerMode } from "./host-layer";
|
|
@@ -202,14 +202,16 @@ export type MesurerContextHarness = {
|
|
|
202
202
|
prepareCapture(): Promise<void>;
|
|
203
203
|
finishCapture(): Promise<void>;
|
|
204
204
|
};
|
|
205
|
-
export type
|
|
206
|
-
arrangements(): Promise<
|
|
207
|
-
arrange(id: string): Promise<
|
|
208
|
-
showArrange(id: string, state:
|
|
209
|
-
arrangeCapturePlan(id: string, state:
|
|
210
|
-
reviewArrange(id: string, tolerance?: number): Promise<
|
|
205
|
+
export type MesurerEditHarness = {
|
|
206
|
+
arrangements(): Promise<EditIntent[]>;
|
|
207
|
+
arrange(id: string): Promise<EditIntent>;
|
|
208
|
+
showArrange(id: string, state: EditPresentation): Promise<void>;
|
|
209
|
+
arrangeCapturePlan(id: string, state: EditPresentation): Promise<EditCapturePlan>;
|
|
210
|
+
reviewArrange(id: string, tolerance?: number): Promise<EditReview>;
|
|
211
211
|
};
|
|
212
|
-
|
|
212
|
+
/** @deprecated Use `MesurerEditHarness`. The method names remain for compatibility. */
|
|
213
|
+
export type MesurerArrangeHarness = MesurerEditHarness;
|
|
214
|
+
export type MesurerBrowserAgent = MesurerAgentHarness & MesurerContextHarness & MesurerEditHarness;
|
|
213
215
|
export type MountedMesurer = {
|
|
214
216
|
readonly element: HTMLDivElement;
|
|
215
217
|
readonly root: HTMLDivElement | ShadowRoot;
|
|
@@ -229,11 +231,11 @@ export type MountedMesurer = {
|
|
|
229
231
|
capturePlan(request?: MesurerContextRequest): Promise<MesurerCapturePlanV1>;
|
|
230
232
|
prepareCapture(): Promise<void>;
|
|
231
233
|
finishCapture(): Promise<void>;
|
|
232
|
-
arrangements(): Promise<
|
|
233
|
-
arrange(id: string): Promise<
|
|
234
|
-
showArrange(id: string, state:
|
|
235
|
-
arrangeCapturePlan(id: string, state:
|
|
236
|
-
reviewArrange(id: string, tolerance?: number): Promise<
|
|
234
|
+
arrangements(): Promise<EditIntent[]>;
|
|
235
|
+
arrange(id: string): Promise<EditIntent>;
|
|
236
|
+
showArrange(id: string, state: EditPresentation): Promise<void>;
|
|
237
|
+
arrangeCapturePlan(id: string, state: EditPresentation): Promise<EditCapturePlan>;
|
|
238
|
+
reviewArrange(id: string, tolerance?: number): Promise<EditReview>;
|
|
237
239
|
textEdits(): Promise<MesurerTextEditIntent[]>;
|
|
238
240
|
textEdit(id: string): Promise<MesurerTextEditIntent>;
|
|
239
241
|
bringToFront(): void;
|
|
@@ -250,7 +252,7 @@ export declare const mountMeasurer: typeof mountMesurer;
|
|
|
250
252
|
export { createMesurerAgentHarness, MESURER_TEXT_EDIT_SERVICE_ID } from "./agent";
|
|
251
253
|
export { MESURER_VERSION } from "./version";
|
|
252
254
|
export type { AgentDistance, AgentEdges, AgentElementInspection, AgentFeedbackSnapshot, AgentRect, AgentViewportSnapshot, CreateMesurerAgentHarnessOptions, MesurerAgentHarness, MesurerTextEditIntent, MesurerTextEditService, MesurerTextStyleChange, MesurerTextStyleProperty, } from "./agent";
|
|
253
|
-
export type { ArrangeCapturePlan, ArrangeIntent, ArrangeOffset, ArrangePresentation, ArrangeRect, ArrangeReview, ArrangeReviewTarget, ArrangeTarget, MesurerArrangeService, } from "./arrange";
|
|
255
|
+
export type { ArrangeCapturePlan, ArrangeIntent, ArrangeOffset, ArrangePresentation, ArrangeRect, ArrangeReview, ArrangeReviewTarget, ArrangeTarget, MesurerArrangeService, EditCapturePlan, EditIntent, EditOffset, EditPresentation, EditRect, EditReview, EditReviewTarget, EditTarget, MesurerEditService, } from "./arrange";
|
|
254
256
|
export { captureMesurerContext, copyTextToClipboard, createMesurerCapturePlan, formatMesurerContext, reviewMesurerAnnotation, } from "./context";
|
|
255
257
|
export type { MesurerAnnotation, MesurerAnnotationBaseline, MesurerAnnotationTarget, MesurerCapturePlanV1, MesurerContextDistance, MesurerContextEdges, MesurerContextGuide, MesurerContextLayoutGuide, MesurerContextMeasurement, MesurerContextRect, MesurerContextRequest, MesurerContextTarget, MesurerContextV1, MesurerElementFingerprint, MesurerElementInspection, MesurerReviewChange, MesurerReviewMetricChange, MesurerReviewPresenceChange, MesurerReviewV1, } from "./context";
|
|
256
258
|
export { createMesurerPluginHost, createMesurerRuntime, defineMesurerPlugin } from "./core";
|