@commentkit/comment-kit 0.7.5 → 0.7.6

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 (39) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/README.md +1 -1
  3. package/dist/angular.es.js +2 -2
  4. package/dist/comment-kit.es.js +3 -3
  5. package/dist/demo.es.js +2 -2
  6. package/dist/headless.es.js +2 -2
  7. package/dist/preact.es.js +2 -2
  8. package/dist/qwik.qwik.mjs +2 -2
  9. package/dist/react.es.js +2 -2
  10. package/dist/shared/{annotation-toolbar-DgqxkHy8.js → annotation-toolbar-RSrb0Nku.js} +110 -109
  11. package/dist/shared/{attachment-refresh-DRX7dKDI.js → attachment-refresh-CSTYwRW-.js} +1 -1
  12. package/dist/shared/{comment-drawing-canvas-hSdcLShI.js → comment-drawing-canvas-DbuXP54N.js} +2 -2
  13. package/dist/shared/{comment-image-lightbox-4zroOCCG.js → comment-image-lightbox-zlIGEVA-.js} +2 -2
  14. package/dist/shared/{comment-images-content-D4hTya6e.js → comment-images-content-aYbJb79_.js} +13 -13
  15. package/dist/shared/{comment-kit-core-D068rcdY.js → comment-kit-core-B0k7XsMz.js} +378 -346
  16. package/dist/shared/{comment-kit-ui-BDzNt0jv.js → comment-kit-ui-BXLJcZYQ.js} +5255 -5487
  17. package/dist/shared/{comment-screenshot-annotator-BGnu_NgP.js → comment-screenshot-annotator-ChWwYJzO.js} +2 -2
  18. package/dist/shared/{comment-screenshot-overlay-BCRmojWB.js → comment-screenshot-overlay-Bufg3rHz.js} +5 -5
  19. package/dist/shared/{dev-export-panel-CYmUKmIV.js → dev-export-panel-DAZenvgD.js} +4 -4
  20. package/dist/shared/{dev-grab-BYsCpsGI.js → dev-grab-O8q25zar.js} +2 -2
  21. package/dist/shared/{element-selector-79Oo5pit.js → element-selector-CYkwzfEr.js} +349 -347
  22. package/dist/shared/input-UPtAj0M6.js +111 -0
  23. package/dist/shared/{mount-ui-DuHk132g.js → mount-ui-BKaWBhKq.js} +4 -4
  24. package/dist/shared/{pusher-3jyUauYd.js → pusher-BUaiCkDJ.js} +1 -1
  25. package/dist/shared/{realtime-DspH16g5.js → realtime-C0Z8dXXH.js} +2 -2
  26. package/dist/shared/{screenshot-BIuEaRiu.js → screenshot-B-ZfFItT.js} +1 -1
  27. package/dist/shared/{shadow-root-3-yGIhMs.js → shadow-root-Cd3SLHyj.js} +1 -1
  28. package/dist/shared/{token-session-_Pi4fOEi.js → token-session-DplW5QDx.js} +2 -2
  29. package/dist/shared/useLabelableId-8n0QmH8N.js +154 -0
  30. package/dist/shared/{websocket-manager-CvgZSo_L.js → websocket-manager-798cRDyL.js} +2 -2
  31. package/dist/solid.es.js +2 -2
  32. package/dist/svelte.es.js +2 -2
  33. package/dist/types/core/api-client.d.ts +2 -0
  34. package/dist/types/core/comment-kit-core.d.ts +4 -2
  35. package/dist/types/core/types.d.ts +12 -5
  36. package/dist/types/core/write-access.d.ts +2 -0
  37. package/dist/vue.es.js +2 -2
  38. package/docs/api-reference.md +1 -1
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.6] - 2026-10-18
4
+
5
+ - Support project-scoped reviewer sessions without granting workspace or billing access.
6
+ - Validate captured invitation links before email verification; complete enrolled MFA before accepting access and discard stale invitation challenges.
7
+ - Keep sign-in retries working after invitation acceptance or session restoration, and refresh pending reviewer invitation challenges when resending email codes.
8
+ - Match list, marker, checklist and composer controls to reviewer/triage capabilities while preserving older backend permissions. Reviewers can resolve their own feedback; workspace members control triage and completion.
9
+ - Make the list's Reopen action reopen resolved feedback instead of sending another resolve request; use the latest thread status after concurrent changes.
10
+ - Restrict agent handoff controls and single/multiple element exports to workspace members when the backend returns that capability. Keep reviewers mentionable without offering them as workspace assignees.
11
+ - The separate MCP **0.2.0** release requires a dedicated project-scoped, read-only agent token and numeric project ID. It no longer sends public project keys or accepts SDK login tokens; update existing MCP configurations with the paired backend.
12
+ - Reject unsafe MCP server URLs without reflecting credential-bearing input in errors.
13
+
14
+ Keep project-reviewer access disabled until the paired backend migrations, private downloads and real invitation/OTP/MFA checks pass. Stage these immutable packages under `next`, then promote only after backend acceptance.
15
+
3
16
  ## [0.7.5] - 2026-10-17
4
17
 
5
18
  - Require the enrolled second factor after SDK email sign-in, including recovery-code support.
@@ -11,7 +24,7 @@
11
24
  - Remove bundled development diagnostics and load screenshot code only when needed, retaining the original package-size budgets.
12
25
  - The separate MCP **0.1.1** release uses server search and explicit list/reply continuation.
13
26
 
14
- These versions are prepared for release. Deploy and verify the paired backend audit-hardening update before promoting either consumer to `latest`.
27
+ SDK 0.7.5 and MCP 0.1.1 were released with the paired backend audit-hardening update.
15
28
 
16
29
  All notable changes to this project will be documented in this file.
17
30
 
package/README.md CHANGED
@@ -661,7 +661,7 @@ const prompt = await commentKit.formatAgentContextAsync({ includeResolved: false
661
661
 
662
662
  ### MCP server
663
663
 
664
- The separate `comment-kit-mcp` companion implements `list_comments`, `get_comment`, and `search_comments` for MCP clients. It is installed independently from this browser SDK and requires a project key, project slug and authenticated member token. See its [package guide](https://www.npmjs.com/package/comment-kit-mcp) for installation and local stdio configuration.
664
+ The separate `comment-kit-mcp` companion implements `list_comments`, `get_comment`, and `search_comments` for MCP clients. It is installed independently from this browser SDK and requires a numeric project ID and dedicated 30-day read-only agent token from Project → Installation; public project keys and SDK login tokens are not accepted. See its [package guide](https://www.npmjs.com/package/comment-kit-mcp) for installation and local stdio configuration.
665
665
 
666
666
  Contributors with access to the private repository can follow the [MCP development guide](https://github.com/commentkit/comment-kit/blob/main/mcp/README.md). Clipboard-based agent handoff works directly from the SDK and does not require this companion.
667
667
 
@@ -1,4 +1,4 @@
1
- import { t as e } from "./shared/comment-kit-core-D068rcdY.js";
1
+ import { t as e } from "./shared/comment-kit-core-B0k7XsMz.js";
2
2
  import { n as t, r as n, t as r } from "./shared/bridge-CJoGYngu.js";
3
3
  import { n as i, t as a } from "./shared/errors-Bu5ajEmB.js";
4
4
  import { Inject as o, Injectable as s, InjectionToken as c, Optional as l } from "@angular/core";
@@ -247,7 +247,7 @@ var v = class {
247
247
  }
248
248
  async mountSharedUI(e, t, n) {
249
249
  try {
250
- let { mountCommentKitUI: n } = await import("./shared/mount-ui-DuHk132g.js").then((e) => e.n);
250
+ let { mountCommentKitUI: n } = await import("./shared/mount-ui-BKaWBhKq.js").then((e) => e.n);
251
251
  if (this.core !== e || this.lifecycleId !== t) return;
252
252
  let r = await n(e);
253
253
  if (this.core !== e || this.lifecycleId !== t) {
@@ -1,5 +1,5 @@
1
- import { t as e } from "./shared/websocket-manager-CvgZSo_L.js";
2
- import { _ as t, b as n, h as r, l as i, m as a, n as o, t as s, x as c, y as l } from "./shared/comment-kit-core-D068rcdY.js";
1
+ import { t as e } from "./shared/websocket-manager-798cRDyL.js";
2
+ import { _ as t, b as n, h as r, l as i, m as a, n as o, t as s, x as c, y as l } from "./shared/comment-kit-core-B0k7XsMz.js";
3
3
  import { a as u, c as d, d as f, f as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "./shared/dom-Bhf4WFtY.js";
4
4
  import "./headless.es.js";
5
5
  async function w(e) {
@@ -14,7 +14,7 @@ var T = typeof window < "u", E = class {
14
14
  async mount() {
15
15
  let e = this.core;
16
16
  try {
17
- let { mountCommentKitUI: t } = await import("./shared/mount-ui-DuHk132g.js").then((e) => e.n);
17
+ let { mountCommentKitUI: t } = await import("./shared/mount-ui-BKaWBhKq.js").then((e) => e.n);
18
18
  if (this.destroyed) return;
19
19
  let n = await t(e);
20
20
  if (this.destroyed) {
package/dist/demo.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { o as e, r as t } from "./shared/validation-3wbbbuX0.js";
2
- import { t as n, v as r } from "./shared/comment-kit-core-D068rcdY.js";
2
+ import { t as n, v as r } from "./shared/comment-kit-core-B0k7XsMz.js";
3
3
  var i = 864e5, a = 512e3, o = 50, s = 20, c = "commentkit:demo:", l = {
4
4
  id: "local-demo-you",
5
5
  name: "You",
@@ -453,7 +453,7 @@ async function w(e = {}) {
453
453
  }
454
454
  }, t), i;
455
455
  try {
456
- let { mountCommentKitUI: e } = await import("./shared/mount-ui-DuHk132g.js").then((e) => e.n);
456
+ let { mountCommentKitUI: e } = await import("./shared/mount-ui-BKaWBhKq.js").then((e) => e.n);
457
457
  i = await e(r);
458
458
  } catch (e) {
459
459
  throw r.destroy(), C = !1, e;
@@ -1,4 +1,4 @@
1
- import { t as e } from "./shared/websocket-manager-CvgZSo_L.js";
2
- import { _ as t, b as n, h as r, l as i, m as a, n as o, t as s, x as c, y as l } from "./shared/comment-kit-core-D068rcdY.js";
1
+ import { t as e } from "./shared/websocket-manager-798cRDyL.js";
2
+ import { _ as t, b as n, h as r, l as i, m as a, n as o, t as s, x as c, y as l } from "./shared/comment-kit-core-B0k7XsMz.js";
3
3
  import { a as u, c as d, d as f, f as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "./shared/dom-Bhf4WFtY.js";
4
4
  export { t as ApiClient, s as CommentKitCore, i as EventEmitter, o as SDK_VERSION, e as WebSocketManager, a as createAgentContext, S as debounce, _ as findElement, r as formatAgentContext, l as formatMention, b as generateId, m as generateSelector, u as generateXPath, v as getCurrentPage, x as getElementBounds, d as getSelectionRange, h as getSelectionText, C as isElementVisible, f as isInteractiveElement, n as parseMentions, p as percentageToViewport, c as stripMentionMarkup, y as throttle, g as viewportToPercentage };
package/dist/preact.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./shared/comment-kit-core-D068rcdY.js";
1
+ import { t as e } from "./shared/comment-kit-core-B0k7XsMz.js";
2
2
  import { n as t, r as n, t as r } from "./shared/bridge-CJoGYngu.js";
3
3
  import { n as i, t as a } from "./shared/errors-Bu5ajEmB.js";
4
4
  import { useEffect as o, useMemo as s, useRef as c, useState as l } from "preact/hooks";
@@ -34,7 +34,7 @@ function u(u) {
34
34
  }
35
35
  }, l = async (e) => {
36
36
  try {
37
- let { mountCommentKitUI: t } = await import("./shared/mount-ui-DuHk132g.js").then((e) => e.n);
37
+ let { mountCommentKitUI: t } = await import("./shared/mount-ui-BKaWBhKq.js").then((e) => e.n);
38
38
  if (r || d.current !== e) return;
39
39
  let n = await t(e);
40
40
  if (r || d.current !== e) {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./shared/comment-kit-core-D068rcdY.js";
1
+ import { t as e } from "./shared/comment-kit-core-B0k7XsMz.js";
2
2
  import { n as t, r as n, t as r } from "./shared/bridge-CJoGYngu.js";
3
3
  import { n as i, t as a } from "./shared/errors-Bu5ajEmB.js";
4
4
  import { noSerialize as o, useComputed$ as s, useSignal as c, useStore as l, useVisibleTask$ as u } from "@builder.io/qwik";
@@ -42,7 +42,7 @@ function d(d) {
42
42
  }
43
43
  }, b = async (e) => {
44
44
  try {
45
- let { mountCommentKitUI: t } = await import("./shared/mount-ui-DuHk132g.js").then((e) => e.n);
45
+ let { mountCommentKitUI: t } = await import("./shared/mount-ui-BKaWBhKq.js").then((e) => e.n);
46
46
  if (u || g.value !== e) return;
47
47
  let n = await t(e);
48
48
  if (u || g.value !== e) {
package/dist/react.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as e } from "./shared/comment-kit-core-D068rcdY.js";
3
+ import { t as e } from "./shared/comment-kit-core-B0k7XsMz.js";
4
4
  import { n as t, r as n, t as r } from "./shared/bridge-CJoGYngu.js";
5
5
  import { n as i, t as a } from "./shared/errors-Bu5ajEmB.js";
6
- import { t as o } from "./shared/mount-ui-DuHk132g.js";
6
+ import { t as o } from "./shared/mount-ui-BKaWBhKq.js";
7
7
  import { useCallback as s, useEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
8
8
  import { Fragment as p, jsx as m } from "react/jsx-runtime";
9
9
  function h(i, o = {}) {