@useclickly/react 1.0.4 → 1.1.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/LICENSE +21 -0
- package/README.md +7 -2
- package/dist/index.cjs +5237 -1455
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -7
- package/dist/index.d.ts +93 -12
- package/dist/index.js +5181 -1390
- package/dist/index.js.map +1 -1
- package/package.json +13 -12
- package/dist/Clickly.d.ts +0 -25
- package/dist/Clickly.d.ts.map +0 -1
- package/dist/hooks/useDraggable.d.ts +0 -28
- package/dist/hooks/useDraggable.d.ts.map +0 -1
- package/dist/hooks/usePersistedState.d.ts +0 -6
- package/dist/hooks/usePersistedState.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/AnnotationList.d.ts +0 -11
- package/dist/internal/AnnotationList.d.ts.map +0 -1
- package/dist/internal/AnnotationPins.d.ts +0 -2
- package/dist/internal/AnnotationPins.d.ts.map +0 -1
- package/dist/internal/AnnotationPopup.d.ts +0 -5
- package/dist/internal/AnnotationPopup.d.ts.map +0 -1
- package/dist/internal/ClicklyRoot.d.ts +0 -15
- package/dist/internal/ClicklyRoot.d.ts.map +0 -1
- package/dist/internal/CollapsedFAB.d.ts +0 -10
- package/dist/internal/CollapsedFAB.d.ts.map +0 -1
- package/dist/internal/SettingsPopover.d.ts +0 -11
- package/dist/internal/SettingsPopover.d.ts.map +0 -1
- package/dist/internal/Toolbar.d.ts +0 -8
- package/dist/internal/Toolbar.d.ts.map +0 -1
- package/dist/internal/globalStyles.d.ts +0 -13
- package/dist/internal/globalStyles.d.ts.map +0 -1
- package/dist/internal/icons.d.ts +0 -14
- package/dist/internal/icons.d.ts.map +0 -1
- package/dist/internal/styles.d.ts +0 -7
- package/dist/internal/styles.d.ts.map +0 -1
- package/dist/output/markdown.d.ts +0 -5
- package/dist/output/markdown.d.ts.map +0 -1
- package/dist/output/markdown.test.d.ts +0 -2
- package/dist/output/markdown.test.d.ts.map +0 -1
- package/dist/state/annotations.d.ts +0 -21
- package/dist/state/annotations.d.ts.map +0 -1
- package/dist/state/annotations.test.d.ts +0 -2
- package/dist/state/annotations.test.d.ts.map +0 -1
- package/dist/state/settings.d.ts +0 -14
- package/dist/state/settings.d.ts.map +0 -1
- package/dist/state/settings.test.d.ts +0 -2
- package/dist/state/settings.test.d.ts.map +0 -1
- package/dist/state/useEngineState.d.ts +0 -7
- package/dist/state/useEngineState.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -7
- package/dist/test/setup.d.ts.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Clickly contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -40,6 +40,9 @@ That's it. The component returns `null` on the server (safe under SSR / Next App
|
|
|
40
40
|
| **Single** | Click any element → popup with comment box |
|
|
41
41
|
| **Multi-select** | Press `2` or shift-click to pin elements, hit **Annotate (N)** when done |
|
|
42
42
|
| **Area drag** | Press `3`, drag a rectangle, every intersecting element gets pinned |
|
|
43
|
+
| **Draw** | Press `4` to sketch freehand strokes — saved as AFS stroke annotations |
|
|
44
|
+
| **Layout mode** | Press `L` for a component palette + section-rearrange overlay. Optional wireframe sub-mode fades the page so you can sketch a fresh layout. |
|
|
45
|
+
| **Animation pause** | Press `P` to freeze CSS / WAAPI / GSAP / videos for annotating a specific frame |
|
|
43
46
|
| **Persistent pins** | Annotated elements stay numbered on the page across page interactions |
|
|
44
47
|
| **Auto-copy** | Submitting an annotation copies markdown to clipboard (toggleable) |
|
|
45
48
|
| **Settings** | Output detail tier, React component info, marker colour — all in the gear menu |
|
|
@@ -61,9 +64,11 @@ For every selected element, Clickly automatically collects:
|
|
|
61
64
|
| Key | Action |
|
|
62
65
|
|---|---|
|
|
63
66
|
| `⌘/Ctrl + Shift + F` | Toggle the toolbar |
|
|
64
|
-
| `1` / `2` / `3` | Switch mode (single / multi / area) |
|
|
67
|
+
| `1` / `2` / `3` / `4` | Switch mode (single / multi / area / draw) |
|
|
68
|
+
| `L` | Toggle layout mode (palette + section rearrange) |
|
|
69
|
+
| `P` | Pause / resume page animations |
|
|
65
70
|
| `Enter` | Open the popup with all pinned elements |
|
|
66
|
-
| `Esc` | Cancel popup ·
|
|
71
|
+
| `Esc` | Cancel popup · cancel a layout drag · clear pins · or collapse toolbar |
|
|
67
72
|
| `C` | Copy all annotations as markdown |
|
|
68
73
|
| `X` | Clear all annotations |
|
|
69
74
|
|