@commentkit/comment-kit 0.7.5 → 0.7.7
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 +20 -1
- package/README.md +2 -2
- package/dist/angular.es.js +2 -2
- package/dist/comment-kit.es.js +3 -3
- package/dist/demo.es.js +2 -2
- package/dist/headless.es.js +2 -2
- package/dist/preact.es.js +2 -2
- package/dist/qwik.qwik.mjs +2 -2
- package/dist/react.es.js +2 -2
- package/dist/shared/{annotation-toolbar-DgqxkHy8.js → annotation-toolbar-zeiCmKIr.js} +110 -109
- package/dist/shared/{attachment-refresh-DRX7dKDI.js → attachment-refresh-DAacLaRu.js} +1 -1
- package/dist/shared/{capture-privacy-DUROnio5.js → capture-privacy-CiOrcAlt.js} +38 -14
- package/dist/shared/{comment-drawing-canvas-hSdcLShI.js → comment-drawing-canvas-Btc12IsS.js} +2 -2
- package/dist/shared/{comment-image-lightbox-4zroOCCG.js → comment-image-lightbox--QpbcAtH.js} +2 -2
- package/dist/shared/{comment-images-content-D4hTya6e.js → comment-images-content-C_r4SHM-.js} +13 -13
- package/dist/shared/{comment-kit-core-D068rcdY.js → comment-kit-core-CmLUFujd.js} +382 -348
- package/dist/shared/{comment-kit-ui-BDzNt0jv.js → comment-kit-ui-BHwYuSIi.js} +5255 -5487
- package/dist/shared/{comment-screenshot-annotator-BGnu_NgP.js → comment-screenshot-annotator-zJZyO-XM.js} +2 -2
- package/dist/shared/{comment-screenshot-overlay-BCRmojWB.js → comment-screenshot-overlay-CoKTYB0J.js} +6 -6
- package/dist/shared/{dev-export-panel-CYmUKmIV.js → dev-export-panel-Cnt6oCZU.js} +4 -4
- package/dist/shared/{dev-grab-BYsCpsGI.js → dev-grab-B85jo9AS.js} +3 -3
- package/dist/shared/{element-selector-79Oo5pit.js → element-selector-Cng84xC7.js} +349 -347
- package/dist/shared/input-UPtAj0M6.js +111 -0
- package/dist/shared/{mount-ui-DuHk132g.js → mount-ui-Dz7FB_Ak.js} +4 -4
- package/dist/shared/{pusher-3jyUauYd.js → pusher-CnhQgAvF.js} +1 -1
- package/dist/shared/{realtime-DspH16g5.js → realtime-yGLX4wMK.js} +2 -2
- package/dist/shared/{screenshot-BIuEaRiu.js → screenshot-B5-hwpmt.js} +2 -2
- package/dist/shared/{shadow-root-3-yGIhMs.js → shadow-root-B58ZI2yz.js} +1 -1
- package/dist/shared/{token-session-_Pi4fOEi.js → token-session-D92MYbNu.js} +2 -2
- package/dist/shared/useLabelableId-8n0QmH8N.js +154 -0
- package/dist/shared/{websocket-manager-CvgZSo_L.js → websocket-manager-KhH4hL0Q.js} +2 -2
- package/dist/solid.es.js +2 -2
- package/dist/svelte.es.js +2 -2
- package/dist/types/core/api-client.d.ts +2 -0
- package/dist/types/core/comment-kit-core.d.ts +4 -2
- package/dist/types/core/types.d.ts +12 -5
- package/dist/types/core/write-access.d.ts +2 -0
- package/dist/vue.es.js +2 -2
- package/docs/api-reference.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.7] - 2026-10-18
|
|
4
|
+
|
|
5
|
+
- Stop pending attachment uploads after the authenticated session changes.
|
|
6
|
+
- Exclude iframes from built-in screenshots and omit directly selected editable/form descendants from DOM exports.
|
|
7
|
+
- The separate MCP **0.2.1** release trims deployment URLs before credential redaction and clarifies local snapshot retention.
|
|
8
|
+
|
|
9
|
+
## [0.7.6] - 2026-10-18
|
|
10
|
+
|
|
11
|
+
- Support project-scoped reviewer sessions without granting workspace or billing access.
|
|
12
|
+
- Validate captured invitation links before email verification; complete enrolled MFA before accepting access and discard stale invitation challenges.
|
|
13
|
+
- Keep sign-in retries working after invitation acceptance or session restoration, and refresh pending reviewer invitation challenges when resending email codes.
|
|
14
|
+
- 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.
|
|
15
|
+
- Make the list's Reopen action reopen resolved feedback instead of sending another resolve request; use the latest thread status after concurrent changes.
|
|
16
|
+
- 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.
|
|
17
|
+
- 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.
|
|
18
|
+
- Reject unsafe MCP server URLs without reflecting credential-bearing input in errors.
|
|
19
|
+
|
|
20
|
+
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.
|
|
21
|
+
|
|
3
22
|
## [0.7.5] - 2026-10-17
|
|
4
23
|
|
|
5
24
|
- Require the enrolled second factor after SDK email sign-in, including recovery-code support.
|
|
@@ -11,7 +30,7 @@
|
|
|
11
30
|
- Remove bundled development diagnostics and load screenshot code only when needed, retaining the original package-size budgets.
|
|
12
31
|
- The separate MCP **0.1.1** release uses server search and explicit list/reply continuation.
|
|
13
32
|
|
|
14
|
-
|
|
33
|
+
SDK 0.7.5 and MCP 0.1.1 were released with the paired backend audit-hardening update.
|
|
15
34
|
|
|
16
35
|
All notable changes to this project will be documented in this file.
|
|
17
36
|
|
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
|
|
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
|
|
|
@@ -763,7 +763,7 @@ An older API’s missing context route is tolerated during a rolling upgrade, bu
|
|
|
763
763
|
|
|
764
764
|
### Screenshot redaction
|
|
765
765
|
|
|
766
|
-
Built-in screenshots exclude password, hidden, payment-autocomplete and one-time-code fields. Mark other sensitive regions with `data-commentkit-redact`; the marker also excludes their content from element grabs and DOM context exports, including when an ancestor is selected. DOM exports omit form values, script/template/embedded-document contents, arbitrary data attributes, event handlers, and URL attributes while retaining structural context.
|
|
766
|
+
Built-in screenshots exclude password, hidden, payment-autocomplete and one-time-code fields. They also omit iframes; redaction of individual elements inside embedded documents is not supported. Mark other sensitive regions with `data-commentkit-redact`; the marker also excludes their content from element grabs and DOM context exports, including when an ancestor is selected. DOM exports omit form values and editable content, including directly selected descendants of those containers, as well as script/template/embedded-document contents, arbitrary data attributes, event handlers, and URL attributes while retaining structural context.
|
|
767
767
|
|
|
768
768
|
A custom `screenshotProvider` is responsible for masking private descendants in its image. These controls do not detect secrets in ordinary text, page URLs, titles, selected text, or files users attach. Keep CommentKit off sensitive routes until their capture and data-sharing behavior has been reviewed.
|
|
769
769
|
|
package/dist/angular.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./shared/comment-kit-core-
|
|
1
|
+
import { t as e } from "./shared/comment-kit-core-CmLUFujd.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-
|
|
250
|
+
let { mountCommentKitUI: n } = await import("./shared/mount-ui-Dz7FB_Ak.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) {
|
package/dist/comment-kit.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./shared/websocket-manager-
|
|
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-
|
|
1
|
+
import { t as e } from "./shared/websocket-manager-KhH4hL0Q.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-CmLUFujd.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-
|
|
17
|
+
let { mountCommentKitUI: t } = await import("./shared/mount-ui-Dz7FB_Ak.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-
|
|
2
|
+
import { t as n, v as r } from "./shared/comment-kit-core-CmLUFujd.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-
|
|
456
|
+
let { mountCommentKitUI: e } = await import("./shared/mount-ui-Dz7FB_Ak.js").then((e) => e.n);
|
|
457
457
|
i = await e(r);
|
|
458
458
|
} catch (e) {
|
|
459
459
|
throw r.destroy(), C = !1, e;
|
package/dist/headless.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./shared/websocket-manager-
|
|
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-
|
|
1
|
+
import { t as e } from "./shared/websocket-manager-KhH4hL0Q.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-CmLUFujd.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-
|
|
1
|
+
import { t as e } from "./shared/comment-kit-core-CmLUFujd.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-
|
|
37
|
+
let { mountCommentKitUI: t } = await import("./shared/mount-ui-Dz7FB_Ak.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) {
|
package/dist/qwik.qwik.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./shared/comment-kit-core-
|
|
1
|
+
import { t as e } from "./shared/comment-kit-core-CmLUFujd.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-
|
|
45
|
+
let { mountCommentKitUI: t } = await import("./shared/mount-ui-Dz7FB_Ak.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-
|
|
3
|
+
import { t as e } from "./shared/comment-kit-core-CmLUFujd.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-
|
|
6
|
+
import { t as o } from "./shared/mount-ui-Dz7FB_Ak.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 = {}) {
|