@githumbi/grabby 0.3.0 → 0.5.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @githumbi/grabby
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b1f43c8: Numbered markers. Each comment now leaves a numbered pin exactly where the reviewer clicked, so it's clear at a glance what was commented on. Hover a pin to see the comment and highlight its element; click it to edit the comment, with Save, Cancel and Delete buttons. Pins belong to the page they were made on: they hide when you move to another page (including client-side and `#/` routes) and come back when you return. They follow their element through scrolling and layout changes, hide while the element isn't rendered, and hide while the toolbar is collapsed. The click position is kept in the browser only; it is never sent to the collector, a webhook or an export.
8
+
9
+ ### Patch Changes
10
+
11
+ - b1f43c8: Collapsing and expanding the toolbar is now animated: it glides between the centre and the bottom-right corner while its width eases, and its buttons fade, blur and scale out (or back in) as it closes and opens. People who ask their system for reduced motion get the change without the animation.
12
+
13
+ ## 0.4.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 1beb9ae: The toolbar's close button now collapses it into a round button in the bottom-right corner, with the comment count on it, instead of removing it. One click (or Alt+G) opens the toolbar again. It stays collapsed when the reviewer moves to another page in the same tab, and comments keep sending while it is collapsed. Finish review is unchanged, and `hideToolbar()` / `hide()` still remove the toolbar completely.
18
+
19
+ ### Patch Changes
20
+
21
+ - 1beb9ae: The element you clicked stays selected while you write its comment. Moving the mouse used to move the highlight onto whatever was underneath, so it was unclear which element the comment would go to (and a click elsewhere quietly switched it). Now the highlight stays on the chosen element, the crosshair lines hide and the normal cursor returns until you save or cancel, and clicks on the page are ignored. Pages that guard their own pointer handlers with `body.grabby-crosshair-active` stay guarded: the class remains, and `body.grabby-crosshair-held` is added while a comment is open.
22
+
3
23
  ## 0.3.0
4
24
 
5
25
  ### Minor Changes
@@ -97,6 +97,14 @@ interface GrabbyComment {
97
97
  framework: string;
98
98
  /** Delivery to a Grabby server, when one is configured. Browser-only. */
99
99
  sync?: 'pending' | 'sent' | 'failed';
100
+ /**
101
+ * Where on the element the reviewer clicked, as fractions of its width and
102
+ * height; the numbered marker sits there. Browser-only, never exported.
103
+ */
104
+ pin?: {
105
+ x: number;
106
+ y: number;
107
+ };
100
108
  }
101
109
  interface GrabbyOptions {
102
110
  /** Keyboard shortcut to activate. Default: "Alt+G" (Option+G on Mac) */