mesurer 0.2.5 → 0.2.6
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 +8 -0
- package/README.md +5 -3
- package/dist/{chunk-BFNKUAED.js → chunk-6DU6M3Z4.js} +4 -1
- package/dist/index.cjs +3363 -2052
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +3131 -1822
- package/dist/{screen-recording-gif-WG5J6DEP.js → screen-recording-gif-4B4R3ZBM.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -56,6 +56,15 @@ type CommentTarget = {
|
|
|
56
56
|
rect: Rect;
|
|
57
57
|
documentPoint: Point$1;
|
|
58
58
|
anchor?: Point$1;
|
|
59
|
+
/** The address of the page the element was on when it was commented on. */
|
|
60
|
+
url?: string;
|
|
61
|
+
/** The size, in CSS px, of the window that page was in. */
|
|
62
|
+
viewport?: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
};
|
|
66
|
+
/** That window was a responsive preview of this size, not the page itself. */
|
|
67
|
+
preview?: boolean;
|
|
59
68
|
};
|
|
60
69
|
type CommentThread = {
|
|
61
70
|
id: string;
|
|
@@ -276,6 +285,7 @@ type MesurerFeatures = {
|
|
|
276
285
|
screenshot?: boolean;
|
|
277
286
|
rulers?: boolean;
|
|
278
287
|
settings?: boolean;
|
|
288
|
+
responsive?: boolean;
|
|
279
289
|
};
|
|
280
290
|
|
|
281
291
|
type ExtensionRecordingSession = {
|
|
@@ -357,7 +367,7 @@ type MesurerProps = {
|
|
|
357
367
|
};
|
|
358
368
|
};
|
|
359
369
|
|
|
360
|
-
declare function Mesurer(
|
|
370
|
+
declare function Mesurer(props: MesurerProps): react_jsx_runtime.JSX.Element;
|
|
361
371
|
|
|
362
372
|
type TypographyRow = {
|
|
363
373
|
label: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,15 @@ type CommentTarget = {
|
|
|
56
56
|
rect: Rect;
|
|
57
57
|
documentPoint: Point$1;
|
|
58
58
|
anchor?: Point$1;
|
|
59
|
+
/** The address of the page the element was on when it was commented on. */
|
|
60
|
+
url?: string;
|
|
61
|
+
/** The size, in CSS px, of the window that page was in. */
|
|
62
|
+
viewport?: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
};
|
|
66
|
+
/** That window was a responsive preview of this size, not the page itself. */
|
|
67
|
+
preview?: boolean;
|
|
59
68
|
};
|
|
60
69
|
type CommentThread = {
|
|
61
70
|
id: string;
|
|
@@ -276,6 +285,7 @@ type MesurerFeatures = {
|
|
|
276
285
|
screenshot?: boolean;
|
|
277
286
|
rulers?: boolean;
|
|
278
287
|
settings?: boolean;
|
|
288
|
+
responsive?: boolean;
|
|
279
289
|
};
|
|
280
290
|
|
|
281
291
|
type ExtensionRecordingSession = {
|
|
@@ -357,7 +367,7 @@ type MesurerProps = {
|
|
|
357
367
|
};
|
|
358
368
|
};
|
|
359
369
|
|
|
360
|
-
declare function Mesurer(
|
|
370
|
+
declare function Mesurer(props: MesurerProps): react_jsx_runtime.JSX.Element;
|
|
361
371
|
|
|
362
372
|
type TypographyRow = {
|
|
363
373
|
label: string;
|