@githumbi/grabby 0.5.0 → 0.6.0
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 +19 -0
- package/dist/angular/index.d.ts +22 -1
- package/dist/angular/index.js +608 -63
- package/dist/angular/index.js.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/core/index.cjs +723 -178
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +608 -63
- package/dist/core/index.js.map +1 -1
- package/dist/export/index.cjs +19 -1
- package/dist/export/index.cjs.map +1 -1
- package/dist/export/index.d.cts +23 -2
- package/dist/export/index.d.ts +23 -2
- package/dist/export/index.js +19 -1
- package/dist/export/index.js.map +1 -1
- package/dist/grabby.global.js +177 -137
- package/dist/live/index.d.cts +1 -1
- package/dist/live/index.d.ts +1 -1
- package/dist/react/index.d.ts +22 -1
- package/dist/react/index.js +608 -63
- package/dist/react/index.js.map +1 -1
- package/dist/{types-BQDEG-Gl.d.cts → types-DOAcZ0U6.d.cts} +23 -2
- package/dist/{types-BQDEG-Gl.d.ts → types-DOAcZ0U6.d.ts} +23 -2
- package/package.json +1 -1
|
@@ -87,7 +87,28 @@ interface GrabbyComment {
|
|
|
87
87
|
pin?: {
|
|
88
88
|
x: number;
|
|
89
89
|
y: number;
|
|
90
|
-
};
|
|
90
|
+
}; /**
|
|
91
|
+
* A comment on several elements at once (drag across them, or ⌘/Ctrl-click
|
|
92
|
+
* each). `target` is then the smallest element containing them all.
|
|
93
|
+
*/
|
|
94
|
+
members?: GrabbyMember[];
|
|
95
|
+
/**
|
|
96
|
+
* A comment on a region rather than an element (drag over empty space), as
|
|
97
|
+
* fractions of `target`'s box. `target` is the element around the region.
|
|
98
|
+
*/
|
|
99
|
+
area?: AreaBox;
|
|
100
|
+
}
|
|
101
|
+
/** One element of a multi-element comment: enough to find it, without the per-element facts. */
|
|
102
|
+
type GrabbyMember = Pick<GrabbyTarget, 'kind' | 'tag' | 'component' | 'source' | 'selector' | 'preview'> & {
|
|
103
|
+
/** Plain name for reviewers, e.g. `Button "Approve"`. */
|
|
104
|
+
label: string;
|
|
105
|
+
};
|
|
106
|
+
/** A rectangle as fractions (0–1) of an element's width and height. */
|
|
107
|
+
interface AreaBox {
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
110
|
+
w: number;
|
|
111
|
+
h: number;
|
|
91
112
|
}
|
|
92
113
|
interface ToolbarState {
|
|
93
114
|
visible: boolean;
|
|
@@ -272,4 +293,4 @@ interface GrabbyAPI {
|
|
|
272
293
|
dispose(): void;
|
|
273
294
|
}
|
|
274
295
|
|
|
275
|
-
export type { ComponentResolver as C, DetailLevel as D, ElementContext as E, FrameworkAdapter as F, GrabbyAPI as G, PageInfo as P, SourceResolver as S, TargetKind as T, GrabbyOptions as a, GrabbyComment as b, GrabbyTarget as c, CommentAuthor as d, ComponentStackEntry as e,
|
|
296
|
+
export type { AreaBox as A, ComponentResolver as C, DetailLevel as D, ElementContext as E, FrameworkAdapter as F, GrabbyAPI as G, PageInfo as P, SourceResolver as S, TargetKind as T, GrabbyOptions as a, GrabbyComment as b, GrabbyTarget as c, CommentAuthor as d, ComponentStackEntry as e, GrabbyMember as f, Plugin as g, PluginCleanup as h, PluginHooks as i, ScreenshotRef as j, SourceLocation as k, StackFrame as l, Theme as m, ThemeMode as n, ToolbarState as o };
|
|
@@ -87,7 +87,28 @@ interface GrabbyComment {
|
|
|
87
87
|
pin?: {
|
|
88
88
|
x: number;
|
|
89
89
|
y: number;
|
|
90
|
-
};
|
|
90
|
+
}; /**
|
|
91
|
+
* A comment on several elements at once (drag across them, or ⌘/Ctrl-click
|
|
92
|
+
* each). `target` is then the smallest element containing them all.
|
|
93
|
+
*/
|
|
94
|
+
members?: GrabbyMember[];
|
|
95
|
+
/**
|
|
96
|
+
* A comment on a region rather than an element (drag over empty space), as
|
|
97
|
+
* fractions of `target`'s box. `target` is the element around the region.
|
|
98
|
+
*/
|
|
99
|
+
area?: AreaBox;
|
|
100
|
+
}
|
|
101
|
+
/** One element of a multi-element comment: enough to find it, without the per-element facts. */
|
|
102
|
+
type GrabbyMember = Pick<GrabbyTarget, 'kind' | 'tag' | 'component' | 'source' | 'selector' | 'preview'> & {
|
|
103
|
+
/** Plain name for reviewers, e.g. `Button "Approve"`. */
|
|
104
|
+
label: string;
|
|
105
|
+
};
|
|
106
|
+
/** A rectangle as fractions (0–1) of an element's width and height. */
|
|
107
|
+
interface AreaBox {
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
110
|
+
w: number;
|
|
111
|
+
h: number;
|
|
91
112
|
}
|
|
92
113
|
interface ToolbarState {
|
|
93
114
|
visible: boolean;
|
|
@@ -272,4 +293,4 @@ interface GrabbyAPI {
|
|
|
272
293
|
dispose(): void;
|
|
273
294
|
}
|
|
274
295
|
|
|
275
|
-
export type { ComponentResolver as C, DetailLevel as D, ElementContext as E, FrameworkAdapter as F, GrabbyAPI as G, PageInfo as P, SourceResolver as S, TargetKind as T, GrabbyOptions as a, GrabbyComment as b, GrabbyTarget as c, CommentAuthor as d, ComponentStackEntry as e,
|
|
296
|
+
export type { AreaBox as A, ComponentResolver as C, DetailLevel as D, ElementContext as E, FrameworkAdapter as F, GrabbyAPI as G, PageInfo as P, SourceResolver as S, TargetKind as T, GrabbyOptions as a, GrabbyComment as b, GrabbyTarget as c, CommentAuthor as d, ComponentStackEntry as e, GrabbyMember as f, Plugin as g, PluginCleanup as h, PluginHooks as i, ScreenshotRef as j, SourceLocation as k, StackFrame as l, Theme as m, ThemeMode as n, ToolbarState as o };
|
package/package.json
CHANGED