@githumbi/grabby 0.2.0 → 0.3.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/README.md +3 -3
- package/dist/angular/index.d.ts +2 -0
- package/dist/angular/index.js +536 -354
- package/dist/angular/index.js.map +1 -1
- package/dist/cli/index.js +54 -13
- package/dist/cli/index.js.map +1 -1
- package/dist/core/index.cjs +683 -501
- 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 +536 -354
- package/dist/core/index.js.map +1 -1
- package/dist/grabby.global.js +101 -96
- package/dist/live/index.d.cts +1 -1
- package/dist/live/index.d.ts +1 -1
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +536 -354
- package/dist/react/index.js.map +1 -1
- package/dist/{types-CMgpkvBz.d.cts → types-DjpIHekd.d.cts} +2 -0
- package/dist/{types-CMgpkvBz.d.ts → types-DjpIHekd.d.ts} +2 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @githumbi/grabby
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5eec68c: Reviewers on a live site now see plain names while choosing what to comment on: `Button "Start free trial" · Click to select`, `Card "Your plan"`, `Text box "Email"`, `Whole page`, instead of the element's tag, classes and source file. Their "Your feedback" list uses the same names. Developer mode is unchanged. Only visible labels, headings, alt text and placeholders are used, never what someone typed, and masked areas show no text.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 45343a4: Typing a "g" in the comment box no longer closes it. The Alt+G shortcut toggled selection mode on the release of any "g" key, so adding or editing a comment vanished mid-word. It now toggles only when the full shortcut was pressed.
|
|
12
|
+
- 45343a4: Deleting a comment that was already sent now deletes it on the feedback server too, so `pull`, the inbox and MCP no longer return it. The delete waits out the 8-second Undo window (Undo cancels it), is retried like any send, and goes out at once if the reviewer leaves the page. The collector accepts it only from the browser session that wrote the comment, with the project key and an allowed site, as for screenshots. Finish review's Done and `clearComments()` still only tidy the reviewer's browser.
|
|
13
|
+
|
|
14
|
+
## 0.2.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 0fa0419: `share` no longer fails with "could not create the inbox link (404)" right after setting up a new collector: it waits while the new Worker reaches all of Cloudflare's servers. It also saves its settings as soon as the collector exists, so if a later step fails, running `share` again just works instead of asking for `--rotate-admin`.
|
|
19
|
+
|
|
20
|
+
`share` now also adds the script to Astro sites: the one layout in `src/layouts/` that renders `</body>`, as an `is:inline` tag so Astro leaves it as written.
|
|
21
|
+
|
|
3
22
|
## 0.2.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Send a client, tester or stakeholder a link to your site. They click **Comment**, click anything on the page, and type what should change. No account, no install. Every comment arrives with a screenshot, who left it, the page, and where that element lives in your code (component and `file:line`). You read it all in a private inbox, get a Slack message when new feedback comes in, and pass it to Claude, Cursor, Copilot or ChatGPT with one click, or let your agent read it directly.
|
|
8
8
|
|
|
9
|
-
Setting it up is one command, and it works with Next.js, React, Vue, Svelte, Angular and plain HTML sites, wherever they're hosted.
|
|
9
|
+
Setting it up is one command, and it works with Next.js, Astro, React, Vue, Svelte, Angular and plain HTML sites, wherever they're hosted.
|
|
10
10
|
|
|
11
11
|
- [Get feedback on your live site](#get-feedback-on-your-live-site): step by step
|
|
12
12
|
- [Read and act on feedback](#4-read-the-feedback)
|
|
@@ -51,7 +51,7 @@ It asks for your site's address once (for example `https://my-app.netlify.app`),
|
|
|
51
51
|
1. **The first time only, a browser window opens to sign in to Cloudflare.** Sign in (or create a free account) and click **Allow**. You can close that tab afterwards.
|
|
52
52
|
2. **The first time only, if your Cloudflare account is new, the terminal asks you to pick a `workers.dev` subdomain.** Answer `Y` and type a name, such as your name or company. It becomes part of your collector's address: `https://grabby-my-app.<your-name>.workers.dev`.
|
|
53
53
|
3. **It sets up the collector** in your Cloudflare account. This takes about 30 seconds.
|
|
54
|
-
4. **It adds the Grabby script to your site**: `app/layout.tsx` (or `src/app/layout.tsx`) in Next.js, `index.html` in Vite, Angular, SvelteKit and plain HTML sites. If it can't find the right file, it prints the tag for you to paste before `</body>`.
|
|
54
|
+
4. **It adds the Grabby script to your site**: `app/layout.tsx` (or `src/app/layout.tsx`) in Next.js, the layout in `src/layouts/` in Astro, `index.html` in Vite, Angular, SvelteKit and plain HTML sites. If it can't find the right file, it prints the tag for you to paste before `</body>`.
|
|
55
55
|
5. **It saves its settings** in `.grabby/config.json`, which is private and added to `.gitignore`, and lets your AI agent read feedback through `.mcp.json`.
|
|
56
56
|
|
|
57
57
|
It finishes with everything you need:
|
|
@@ -85,7 +85,7 @@ It's your site's address with `?grabby=` and your project key on the end. `share
|
|
|
85
85
|
https://my-app.netlify.app/pricing?grabby=pk_…
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
Reviewers get a **Comment** button and a short three-step tip:
|
|
88
|
+
Reviewers get a **Comment** button and a short three-step tip. As they move the pointer, Grabby names what's under it in plain words, such as `Button "Start free trial" · Click to select` or `Card "Your plan"`, so nobody needs to know HTML:
|
|
89
89
|
|
|
90
90
|
1. Click **Comment**.
|
|
91
91
|
2. Click the part of the page they want to talk about.
|
package/dist/angular/index.d.ts
CHANGED
|
@@ -240,7 +240,9 @@ interface GrabbyAPI {
|
|
|
240
240
|
level?: DetailLevel;
|
|
241
241
|
ids?: string[];
|
|
242
242
|
}): string;
|
|
243
|
+
/** Deletes a comment here and, in live mode, on the feedback server too. */
|
|
243
244
|
deleteComment(id: string): void;
|
|
245
|
+
/** Clears this browser's list only; comments already sent stay with the team. */
|
|
244
246
|
clearComments(): void;
|
|
245
247
|
/**
|
|
246
248
|
* Tell Grabby who is signed in, so commenters aren't asked for a name.
|