@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
package/dist/live/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GrabbyAPI, a as GrabbyOptions } from '../types-
|
|
1
|
+
import { G as GrabbyAPI, a as GrabbyOptions } from '../types-DOAcZ0U6.cjs';
|
|
2
2
|
|
|
3
3
|
interface LiveHandle {
|
|
4
4
|
/** Start a feedback session and load Grabby, e.g. from your own "Give feedback" button. */
|
package/dist/live/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GrabbyAPI, a as GrabbyOptions } from '../types-
|
|
1
|
+
import { G as GrabbyAPI, a as GrabbyOptions } from '../types-DOAcZ0U6.js';
|
|
2
2
|
|
|
3
3
|
interface LiveHandle {
|
|
4
4
|
/** Start a feedback session and load Grabby, e.g. from your own "Give feedback" button. */
|
package/dist/react/index.d.ts
CHANGED
|
@@ -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 GrabbyOptions {
|
|
93
114
|
/** Keyboard shortcut to activate. Default: "Alt+G" (Option+G on Mac) */
|