@commentkit/comment-kit 0.7.6 → 1.0.0-beta.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 +30 -0
- package/README.md +108 -762
- package/SECURITY.md +19 -14
- package/dist/npm/THIRD_PARTY_NOTICES.txt +73 -0
- package/dist/npm/chunks/anchor-DT-Ynhh1.js +270 -0
- package/dist/npm/chunks/client-D1vrh_5G.js +590 -0
- package/dist/{shared/capture-colors-D0uLr-vZ.js → npm/chunks/colors-CX-IPjvb.js} +2 -0
- package/dist/npm/chunks/html2canvas-_mjSRP3G.js +4011 -0
- package/dist/npm/chunks/mount-Ce1MZrcm.js +2485 -0
- package/dist/{shared/pusher-BUaiCkDJ.js → npm/chunks/pusher-DRKlokR8.js} +224 -222
- package/dist/npm/chunks/realtime-5SvAvTUU.js +23 -0
- package/dist/npm/chunks/rolldown-runtime-VHNaYcLd.js +13 -0
- package/dist/npm/chunks/src-DJjfvVsa.js +330 -0
- package/dist/npm/element.js +24 -0
- package/dist/npm/headless.js +3 -0
- package/dist/npm/index.js +3 -0
- package/dist/npm/react.js +17 -0
- package/dist/npm/svelte.js +8 -0
- package/dist/npm/types/adapters/react.d.ts +9 -0
- package/dist/npm/types/adapters/svelte.d.ts +9 -0
- package/dist/npm/types/adapters/vue.d.ts +46 -0
- package/dist/npm/types/anchor/index.d.ts +49 -0
- package/dist/npm/types/core/api.d.ts +29 -0
- package/dist/npm/types/core/auth.d.ts +48 -0
- package/dist/npm/types/core/client.d.ts +100 -0
- package/dist/npm/types/core/store.d.ts +7 -0
- package/dist/npm/types/core/types.d.ts +278 -0
- package/dist/npm/types/element.d.ts +10 -0
- package/dist/npm/types/headless.d.ts +7 -0
- package/dist/npm/types/index.d.ts +30 -0
- package/dist/npm/vue.js +32 -0
- package/package.json +65 -173
- package/dist/THIRD_PARTY_NOTICES.txt +0 -284
- package/dist/angular.es.js +0 -321
- package/dist/comment-kit.es.js +0 -218
- package/dist/demo.es.js +0 -483
- package/dist/headless.es.js +0 -4
- package/dist/preact.es.js +0 -117
- package/dist/qwik.es.js +0 -1
- package/dist/qwik.qwik.mjs +0 -114
- package/dist/react.es.js +0 -98
- package/dist/shared/ShadowRootContext-DD6a0QaI.js +0 -11
- package/dist/shared/annotation-icons-Dh-bmNYK.js +0 -172
- package/dist/shared/annotation-toolbar-RSrb0Nku.js +0 -1086
- package/dist/shared/attachment-refresh-CSTYwRW-.js +0 -94
- package/dist/shared/bridge-CJoGYngu.js +0 -177
- package/dist/shared/button-D4GHW6oZ.js +0 -474
- package/dist/shared/button-group-BVR7iT-S.js +0 -91
- package/dist/shared/capture-privacy-DUROnio5.js +0 -77
- package/dist/shared/comment-drawing-canvas-DbuXP54N.js +0 -124
- package/dist/shared/comment-icon-D8JTCEJ7.js +0 -607
- package/dist/shared/comment-image-lightbox-zlIGEVA-.js +0 -190
- package/dist/shared/comment-images-content-aYbJb79_.js +0 -214
- package/dist/shared/comment-kit-core-B0k7XsMz.js +0 -3680
- package/dist/shared/comment-kit-ui-BXLJcZYQ.js +0 -19391
- package/dist/shared/comment-screenshot-annotator-ChWwYJzO.js +0 -151
- package/dist/shared/comment-screenshot-overlay-Bufg3rHz.js +0 -205
- package/dist/shared/comment-shortcut-groups-CfEmkitU.js +0 -153
- package/dist/shared/createReactComponent-BZHeRbD0.js +0 -45
- package/dist/shared/dev-export-panel-DAZenvgD.js +0 -207
- package/dist/shared/dev-grab-O8q25zar.js +0 -197
- package/dist/shared/dist-D9A5k-N4.js +0 -617
- package/dist/shared/dom-Bhf4WFtY.js +0 -223
- package/dist/shared/element-selector-CYkwzfEr.js +0 -902
- package/dist/shared/error-boundary-D3PD74vI.js +0 -21
- package/dist/shared/errors-Bu5ajEmB.js +0 -22
- package/dist/shared/icons-nzMOLzrm.js +0 -266
- package/dist/shared/input-UPtAj0M6.js +0 -111
- package/dist/shared/mount-ui-BKaWBhKq.js +0 -208
- package/dist/shared/realtime-C0Z8dXXH.js +0 -334
- package/dist/shared/realtime-recovery-BjlV-ewc.js +0 -162
- package/dist/shared/request-activity-DQrAUwfA.js +0 -11
- package/dist/shared/screenshot-B-ZfFItT.js +0 -199
- package/dist/shared/separator-UhJb0Row.js +0 -3955
- package/dist/shared/shadow-root-Cd3SLHyj.js +0 -133
- package/dist/shared/styles-CnYsLS2f.js +0 -2
- package/dist/shared/text-B4HHZNaa.js +0 -23
- package/dist/shared/token-session-DplW5QDx.js +0 -25
- package/dist/shared/useLabelableId-8n0QmH8N.js +0 -154
- package/dist/shared/useRender-Uxk1OPK-.js +0 -5
- package/dist/shared/useValueChanged-DKq5cMot.js +0 -92
- package/dist/shared/validation-3wbbbuX0.js +0 -70
- package/dist/shared/websocket-manager-798cRDyL.js +0 -381
- package/dist/solid.es.js +0 -98
- package/dist/svelte.es.js +0 -130
- package/dist/types/adapters/bridge.d.ts +0 -122
- package/dist/types/angular/index.d.ts +0 -145
- package/dist/types/core/agent-context.d.ts +0 -17
- package/dist/types/core/api-client.d.ts +0 -155
- package/dist/types/core/comment-kit-core.d.ts +0 -254
- package/dist/types/core/local-demo.d.ts +0 -60
- package/dist/types/core/types.d.ts +0 -770
- package/dist/types/core/websocket-manager.d.ts +0 -125
- package/dist/types/core/write-access.d.ts +0 -11
- package/dist/types/demo.d.ts +0 -17
- package/dist/types/headless.d.ts +0 -8
- package/dist/types/index.d.ts +0 -87
- package/dist/types/preact/index.d.ts +0 -25
- package/dist/types/qwik/index.d.ts +0 -73
- package/dist/types/react/client.d.ts +0 -31
- package/dist/types/react/index.d.ts +0 -4
- package/dist/types/solid/index.d.ts +0 -37
- package/dist/types/svelte/index.d.ts +0 -55
- package/dist/types/utils/dom.d.ts +0 -59
- package/dist/types/utils/event-emitter.d.ts +0 -11
- package/dist/types/vue/index.d.ts +0 -87
- package/dist/vue.es.js +0 -148
- package/docs/api-reference.md +0 -405
- package/docs/local-demo.md +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.0-beta.0] - 2026-10-19
|
|
4
|
+
|
|
5
|
+
A rewrite around one job: feedback lands on the exact spot, with full context, and reaches the right developer or AI agent.
|
|
6
|
+
|
|
7
|
+
**Breaking:** requires the v1 CommentKit backend. The old `CommentKit` class, `useCommentKit` hooks, Angular/Solid/Qwik/Preact adapters and `createCommentKitDemo` are gone; call `init()` or use the React, Vue or Svelte helpers. Your project key changes from `ck_…` to a publishable `pk_live_…` key shown in Project → Setup.
|
|
8
|
+
|
|
9
|
+
- **Works on every website.** A 0.6 KB script-tag loader, `init()`, a `<comment-kit>` element, and ~20-line React/Vue/Svelte helpers. Preact, the screenshot engine and realtime are bundled and loaded only when needed; hosts install nothing else and no longer need React.
|
|
10
|
+
- **One comment tool.** Click an element, drag an area, or comment on selected text. Comments stay anchored after page changes using developer ids, build-time source locations, stable selectors, text fingerprints and page position, and are reported as moved or detached instead of silently disappearing.
|
|
11
|
+
- **Automatic context.** Every comment carries a screenshot with the pin drawn on it, plus page, branch, commit, viewport, browser and device. Reviewers can draw on the screenshot (arrow, box, pen, irreversible blur, text). Opt-in console errors and failed requests, with credentials removed.
|
|
12
|
+
- **Sign-in that clients understand.** A small CommentKit window (or a same-tab redirect inside in-app browsers and when pop-ups are blocked) using PKCE; credentials never touch the host page. Guests use a review link, their name and a 6-digit email code. Unsent comments survive the round trip.
|
|
13
|
+
- **Conversation and workflow.** Replies, mentions, six reactions, statuses Open → In progress → Ready for review → Resolved/Closed, and a plain "Does this look right?" prompt for reviewers. An inbox panel with this page, all pages and notifications.
|
|
14
|
+
- **Accessible and keyboard-first.** WCAG 2.2 AA (checked with axe in every main state), visible focus, focus that returns where it was, a live region for updates, right-to-left pages, and reduced motion. Keyboard users comment on the focused element or the whole page; J / K move between comments, E resolves, arrow keys move through tabs, menus and lists.
|
|
15
|
+
- **Made for phones.** Tap to comment while the page still scrolls, a bottom-sheet inbox, 44 px touch targets and safe-area spacing; tested on iPhone and Pixel emulation.
|
|
16
|
+
- **Every state explained.** Loading, failed to load (with Try again), offline (the draft is kept), send failed (still there to retry), read-only plans, no permission to reply, and comments whose spot has gone ("Not found on this page", shown with their screenshot).
|
|
17
|
+
- **Live updates.** New comments and replies appear without a reload when the project has live updates on.
|
|
18
|
+
- **Hidden from visitors on production.** Shown on localhost, through review and email links, Cmd/Ctrl + Shift + K, or an existing session. A dashboard switch pauses feedback everywhere within a minute.
|
|
19
|
+
- **Isolation.** Shadow DOM with inherited styles reset, one host element, full cleanup on `destroy()`, no `unsafe-eval`, no source maps or private type declarations in the package.
|
|
20
|
+
|
|
21
|
+
- **Branch mode.** When the site says its branch (or `@commentkit/build` records it), the inbox shows this branch's feedback with "All branches" one click away; feedback from another branch says which, and the thread card shows `branch @ commit`. `init()` reads branch and commit from the build plugins when you do not pass them.
|
|
22
|
+
|
|
23
|
+
The separate **comment-kit-mcp 1.0.0** adds `get_feedback_screenshot`, `list_tasks`/`get_task` (dashboard tasks, and `CK-12` instead of an id), `link_commit`, `check_request` and, with opt-in token permissions, `reply_to_feedback` and `mark_ready_for_review`. Writes that wait for a person's approval answer "waiting for approval" with a request id. Old tool names remain as aliases.
|
|
24
|
+
|
|
25
|
+
New packages: **@commentkit/build 1.0.0-beta.0** (source locations, branch and commit for Vite, Next.js, webpack and Astro) and **@commentkit/cli 1.0.0-beta.0** (`login`, `init`, `pull`, `open`, `token`).
|
|
26
|
+
|
|
27
|
+
## [0.7.7] - 2026-10-18
|
|
28
|
+
|
|
29
|
+
- Stop pending attachment uploads after the authenticated session changes.
|
|
30
|
+
- Exclude iframes from built-in screenshots and omit directly selected editable/form descendants from DOM exports.
|
|
31
|
+
- The separate MCP **0.2.1** release trims deployment URLs before credential redaction and clarifies local snapshot retention.
|
|
32
|
+
|
|
3
33
|
## [0.7.6] - 2026-10-18
|
|
4
34
|
|
|
5
35
|
- Support project-scoped reviewer sessions without granting workspace or billing access.
|