@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.
Files changed (109) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +108 -762
  3. package/SECURITY.md +19 -14
  4. package/dist/npm/THIRD_PARTY_NOTICES.txt +73 -0
  5. package/dist/npm/chunks/anchor-DT-Ynhh1.js +270 -0
  6. package/dist/npm/chunks/client-D1vrh_5G.js +590 -0
  7. package/dist/{shared/capture-colors-D0uLr-vZ.js → npm/chunks/colors-CX-IPjvb.js} +2 -0
  8. package/dist/npm/chunks/html2canvas-_mjSRP3G.js +4011 -0
  9. package/dist/npm/chunks/mount-Ce1MZrcm.js +2485 -0
  10. package/dist/{shared/pusher-BUaiCkDJ.js → npm/chunks/pusher-DRKlokR8.js} +224 -222
  11. package/dist/npm/chunks/realtime-5SvAvTUU.js +23 -0
  12. package/dist/npm/chunks/rolldown-runtime-VHNaYcLd.js +13 -0
  13. package/dist/npm/chunks/src-DJjfvVsa.js +330 -0
  14. package/dist/npm/element.js +24 -0
  15. package/dist/npm/headless.js +3 -0
  16. package/dist/npm/index.js +3 -0
  17. package/dist/npm/react.js +17 -0
  18. package/dist/npm/svelte.js +8 -0
  19. package/dist/npm/types/adapters/react.d.ts +9 -0
  20. package/dist/npm/types/adapters/svelte.d.ts +9 -0
  21. package/dist/npm/types/adapters/vue.d.ts +46 -0
  22. package/dist/npm/types/anchor/index.d.ts +49 -0
  23. package/dist/npm/types/core/api.d.ts +29 -0
  24. package/dist/npm/types/core/auth.d.ts +48 -0
  25. package/dist/npm/types/core/client.d.ts +100 -0
  26. package/dist/npm/types/core/store.d.ts +7 -0
  27. package/dist/npm/types/core/types.d.ts +278 -0
  28. package/dist/npm/types/element.d.ts +10 -0
  29. package/dist/npm/types/headless.d.ts +7 -0
  30. package/dist/npm/types/index.d.ts +30 -0
  31. package/dist/npm/vue.js +32 -0
  32. package/package.json +65 -173
  33. package/dist/THIRD_PARTY_NOTICES.txt +0 -284
  34. package/dist/angular.es.js +0 -321
  35. package/dist/comment-kit.es.js +0 -218
  36. package/dist/demo.es.js +0 -483
  37. package/dist/headless.es.js +0 -4
  38. package/dist/preact.es.js +0 -117
  39. package/dist/qwik.es.js +0 -1
  40. package/dist/qwik.qwik.mjs +0 -114
  41. package/dist/react.es.js +0 -98
  42. package/dist/shared/ShadowRootContext-DD6a0QaI.js +0 -11
  43. package/dist/shared/annotation-icons-Dh-bmNYK.js +0 -172
  44. package/dist/shared/annotation-toolbar-RSrb0Nku.js +0 -1086
  45. package/dist/shared/attachment-refresh-CSTYwRW-.js +0 -94
  46. package/dist/shared/bridge-CJoGYngu.js +0 -177
  47. package/dist/shared/button-D4GHW6oZ.js +0 -474
  48. package/dist/shared/button-group-BVR7iT-S.js +0 -91
  49. package/dist/shared/capture-privacy-DUROnio5.js +0 -77
  50. package/dist/shared/comment-drawing-canvas-DbuXP54N.js +0 -124
  51. package/dist/shared/comment-icon-D8JTCEJ7.js +0 -607
  52. package/dist/shared/comment-image-lightbox-zlIGEVA-.js +0 -190
  53. package/dist/shared/comment-images-content-aYbJb79_.js +0 -214
  54. package/dist/shared/comment-kit-core-B0k7XsMz.js +0 -3680
  55. package/dist/shared/comment-kit-ui-BXLJcZYQ.js +0 -19391
  56. package/dist/shared/comment-screenshot-annotator-ChWwYJzO.js +0 -151
  57. package/dist/shared/comment-screenshot-overlay-Bufg3rHz.js +0 -205
  58. package/dist/shared/comment-shortcut-groups-CfEmkitU.js +0 -153
  59. package/dist/shared/createReactComponent-BZHeRbD0.js +0 -45
  60. package/dist/shared/dev-export-panel-DAZenvgD.js +0 -207
  61. package/dist/shared/dev-grab-O8q25zar.js +0 -197
  62. package/dist/shared/dist-D9A5k-N4.js +0 -617
  63. package/dist/shared/dom-Bhf4WFtY.js +0 -223
  64. package/dist/shared/element-selector-CYkwzfEr.js +0 -902
  65. package/dist/shared/error-boundary-D3PD74vI.js +0 -21
  66. package/dist/shared/errors-Bu5ajEmB.js +0 -22
  67. package/dist/shared/icons-nzMOLzrm.js +0 -266
  68. package/dist/shared/input-UPtAj0M6.js +0 -111
  69. package/dist/shared/mount-ui-BKaWBhKq.js +0 -208
  70. package/dist/shared/realtime-C0Z8dXXH.js +0 -334
  71. package/dist/shared/realtime-recovery-BjlV-ewc.js +0 -162
  72. package/dist/shared/request-activity-DQrAUwfA.js +0 -11
  73. package/dist/shared/screenshot-B-ZfFItT.js +0 -199
  74. package/dist/shared/separator-UhJb0Row.js +0 -3955
  75. package/dist/shared/shadow-root-Cd3SLHyj.js +0 -133
  76. package/dist/shared/styles-CnYsLS2f.js +0 -2
  77. package/dist/shared/text-B4HHZNaa.js +0 -23
  78. package/dist/shared/token-session-DplW5QDx.js +0 -25
  79. package/dist/shared/useLabelableId-8n0QmH8N.js +0 -154
  80. package/dist/shared/useRender-Uxk1OPK-.js +0 -5
  81. package/dist/shared/useValueChanged-DKq5cMot.js +0 -92
  82. package/dist/shared/validation-3wbbbuX0.js +0 -70
  83. package/dist/shared/websocket-manager-798cRDyL.js +0 -381
  84. package/dist/solid.es.js +0 -98
  85. package/dist/svelte.es.js +0 -130
  86. package/dist/types/adapters/bridge.d.ts +0 -122
  87. package/dist/types/angular/index.d.ts +0 -145
  88. package/dist/types/core/agent-context.d.ts +0 -17
  89. package/dist/types/core/api-client.d.ts +0 -155
  90. package/dist/types/core/comment-kit-core.d.ts +0 -254
  91. package/dist/types/core/local-demo.d.ts +0 -60
  92. package/dist/types/core/types.d.ts +0 -770
  93. package/dist/types/core/websocket-manager.d.ts +0 -125
  94. package/dist/types/core/write-access.d.ts +0 -11
  95. package/dist/types/demo.d.ts +0 -17
  96. package/dist/types/headless.d.ts +0 -8
  97. package/dist/types/index.d.ts +0 -87
  98. package/dist/types/preact/index.d.ts +0 -25
  99. package/dist/types/qwik/index.d.ts +0 -73
  100. package/dist/types/react/client.d.ts +0 -31
  101. package/dist/types/react/index.d.ts +0 -4
  102. package/dist/types/solid/index.d.ts +0 -37
  103. package/dist/types/svelte/index.d.ts +0 -55
  104. package/dist/types/utils/dom.d.ts +0 -59
  105. package/dist/types/utils/event-emitter.d.ts +0 -11
  106. package/dist/types/vue/index.d.ts +0 -87
  107. package/dist/vue.es.js +0 -148
  108. package/docs/api-reference.md +0 -405
  109. 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.