SIGN IN SIGN UP

test: update tests and stories for imageRef, onTransform, and element accessors

Tests:
- useCropper.test: fix mock (add imageRef, getImage, getCroppedCanvas);
  add tests for getCanvas/getSelection/getImage accessors and onTransform
- Cropper.test: add tests for getSelection/getImage via ref, onTransform
  listener on image element, and grid prop rendering
- useCropperAdvanced.test: add onTransform and getImage tests; extend
  null-check test to include getImage

Stories:
- useCropperAdvanced.stories: add imageRef to all stories (required after
  breaking change); add WithOnTransform story
- Cropper.stories: fix WithEventHandlers (e.detail.bounds → e.detail);
  add WithGrid, NoGrid, and WithOnTransform stories
- useCropper.stories: add WithOnTransform story

Fix: default grid=true in Cropper component to match useCropper behaviour

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
I
Israel Merljak.ext committed
8712bd9fe0dfd841debff2d11519fc33235929f2
Parent: 4dad6ba
Committed by Israel Merljak <17605203+imerljak@users.noreply.github.com> on 2/19/2026, 4:41:48 PM