@commentkit/comment-kit 0.7.0 → 0.7.1
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 +27 -0
- package/dist/angular.es.js +2 -2
- package/dist/comment-kit.es.js +5 -5
- package/dist/demo.es.js +4 -3
- package/dist/headless.es.js +3 -3
- 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-B9SxYqoF.js → annotation-toolbar-cGC1p-SP.js} +379 -379
- package/dist/shared/attachment-refresh-CzQFXHkL.js +94 -0
- package/dist/shared/{button-group-Cl9CrvvU.js → button-group-CWdKaOlC.js} +14 -16
- package/dist/shared/capture-colors-CxSLsU5-.js +74 -0
- package/dist/shared/{comment-drawing-canvas-Dzb5YoFw.js → comment-drawing-canvas-DdXlMgbF.js} +2 -2
- package/dist/shared/{comment-utils-BycYTSxA.js → comment-icon-Dg9ZWpz-.js} +29 -23
- package/dist/shared/comment-image-lightbox-B7iHjnAz.js +190 -0
- package/dist/shared/comment-images-content-D7YNUgo5.js +214 -0
- package/dist/shared/{comment-kit-core-BaSuMzp9.js → comment-kit-core-C862uNAm.js} +998 -778
- package/dist/shared/{comment-kit-ui-CzfdAZs2.js → comment-kit-ui-0vd-DY4S.js} +5206 -5410
- package/dist/shared/{comment-screenshot-annotator-C7X-_bm6.js → comment-screenshot-annotator-DcaSSuWB.js} +5 -5
- package/dist/shared/{comment-screenshot-overlay-wIrZrcRy.js → comment-screenshot-overlay-D_nFoJmM.js} +6 -5
- package/dist/shared/{dev-export-panel-FwFVdady.js → dev-export-panel-pWBlhlse.js} +7 -7
- package/dist/shared/dev-grab-eQ9EgEGY.js +210 -0
- package/dist/shared/{element-selector-BhJm-NSs.js → element-selector-DC-_XJ0k.js} +311 -272
- package/dist/shared/{mount-ui--ijs8pWT.js → mount-ui-B68j8r6I.js} +4 -4
- package/dist/shared/{pusher-ipHMJnO_.js → pusher-C1FHQGXV.js} +1 -1
- package/dist/shared/realtime-Diqz7G_y.js +317 -0
- package/dist/shared/realtime-recovery-DJ_adc-H.js +135 -0
- package/dist/shared/{shadow-root-C5v-T8lQ.js → shadow-root-CrO75sED.js} +1 -1
- package/dist/shared/{styles-D3yMtaec.js → styles-C9Jwvm0Q.js} +1 -1
- package/dist/shared/useRender-D1z_X_BY.js +5 -0
- package/dist/shared/{validation-C7QG8j7Z.js → validation-D-8u4M7I.js} +14 -1
- package/dist/shared/{websocket-manager-DhLWh3Jr.js → websocket-manager-CFak_YHy.js} +148 -89
- package/dist/solid.es.js +2 -2
- package/dist/svelte.es.js +2 -2
- package/dist/types/core/api-client.d.ts +8 -1
- package/dist/types/core/comment-kit-core.d.ts +9 -0
- package/dist/types/core/types.d.ts +35 -0
- package/dist/types/core/websocket-manager.d.ts +12 -0
- package/dist/types/core/write-access.d.ts +9 -0
- package/dist/vue.es.js +2 -2
- package/docs/api-reference.md +6 -0
- package/package.json +3 -2
- package/dist/shared/comment-image-lightbox-BPYJT1sB.js +0 -183
- package/dist/shared/dev-grab-DDqg0LQf.js +0 -203
- package/dist/shared/realtime-Dk41VwKg.js +0 -302
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.7.1] - 2026-10-16
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Restore secure realtime WebSocket connections and authorize presence using the current SDK session. Keep numeric channel identities separate from project URL slugs, and discard authorization responses after reconnecting, switching accounts, or disconnecting.
|
|
13
|
+
- Normalize nullable author fields from Laravel broadcasts and retry failed channel authorization without duplicating subscriptions.
|
|
14
|
+
- Fetch oversized comment and reply updates through the authenticated API when the backend sends a compact refresh event. Reconcile missed changes after authorized resubscription while retaining loaded pages, filters, the selected thread and drafts; ignore stale reads and retry transient failures within a bounded window.
|
|
15
|
+
- Match current-page comments to query-string URLs, keeping the panel and page markers consistent during SPA navigation.
|
|
16
|
+
- Clear text-selection tools when their live DOM range collapses after host content is removed.
|
|
17
|
+
- Let an open widget popup handle Escape before closing the underlying comments panel.
|
|
18
|
+
- Preserve the configured deployment branch for new feedback independently of the branch being viewed, including highlight, drawing, screenshot and offline creation.
|
|
19
|
+
- Restore the production toolbar and pins after submitting a comment, while preserving deliberate visibility changes and cancellation. Hide saved highlight targets during placement so they cannot intercept new pins on the same text.
|
|
20
|
+
- Capture pages using OKLCH, Display P3 and other modern CSS colors by normalizing only the temporary screenshot clone. Keep the converter lazy, preserve redaction, and leave the host page unchanged.
|
|
21
|
+
- Save Element-tool attachments and device context through the shared composer flow. Retain failed drafts for retry and prevent canceled uploads from creating feedback afterward.
|
|
22
|
+
- Confirm comment and reply saves using their own operation results. Concurrent realtime comments cannot clear a rejected draft, and another reply being removed cannot make a successful reply appear to fail.
|
|
23
|
+
- Include full thread, attachment, annotation and deployment context in agent handoffs. Identify incomplete loaded snapshots and treat feedback as untrusted data; do not resolve another page's element against the current document.
|
|
24
|
+
- Preserve a reader's scroll position when new replies arrive while they are reading older messages.
|
|
25
|
+
- Expose authorized reply deletion with confirmation and keep parent and reply identifiers separate.
|
|
26
|
+
- Apply backend read-only capabilities to comment mutations, uploads and offline replay. Distinguish an expired plan from project settings and individual storage or tool limits.
|
|
27
|
+
- Keep a visible sign-in action for read-only projects, so members can still authenticate to read and export feedback. Resume retained offline edits when write access returns.
|
|
28
|
+
- Explain that panel search and filters cover loaded comments, and keep pagination available when a search has no matches yet.
|
|
29
|
+
- Refresh expired private attachment links without discarding loaded pages, the open lightbox or local drafts. Replace broken documentation links with the hosted developer guide and terms.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- Enforce the existing statement, branch, function, and line coverage targets in CI and the npm publication checks. Expand lifecycle, offline, tool, authentication, and browser workflow regressions without reducing coverage scope or thresholds.
|
|
34
|
+
|
|
8
35
|
## [0.7.0] - 2026-10-16
|
|
9
36
|
|
|
10
37
|
### Added
|
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-C862uNAm.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-B68j8r6I.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 {
|
|
1
|
+
import { t as e } from "./shared/websocket-manager-CFak_YHy.js";
|
|
2
|
+
import { _ as t, d as n, h as r, n as i, o as a, t as o, u as s, v as c, y as l } from "./shared/comment-kit-core-C862uNAm.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) {
|
|
@@ -8,13 +8,13 @@ async function w(e) {
|
|
|
8
8
|
var T = typeof window < "u", E = class {
|
|
9
9
|
constructor(e) {
|
|
10
10
|
/* v8 ignore start -- isBrowser always true in jsdom */
|
|
11
|
-
this.mountedUI = null, this.destroyed = !1, this.core = new
|
|
11
|
+
this.mountedUI = null, this.destroyed = !1, this.core = new o(e), e.enabled !== !1 && T && this.mount();
|
|
12
12
|
/* v8 ignore stop */
|
|
13
13
|
}
|
|
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-B68j8r6I.js").then((e) => e.n);
|
|
18
18
|
if (this.destroyed) return;
|
|
19
19
|
let n = await t(e);
|
|
20
20
|
if (this.destroyed) {
|
|
@@ -215,4 +215,4 @@ var T = typeof window < "u", E = class {
|
|
|
215
215
|
/* v8 ignore start */
|
|
216
216
|
T && (window.CommentKit = E, window.CommentKitConfig && !window.CommentKitInstance && (window.CommentKitInstance = new E(window.CommentKitConfig)));
|
|
217
217
|
/* v8 ignore stop */
|
|
218
|
-
export { r as ApiClient, E as CommentKit,
|
|
218
|
+
export { r as ApiClient, E as CommentKit, o as CommentKitCore, a as EventEmitter, i as SDK_VERSION, e as WebSocketManager, s as createAgentContext, w as createCommentKitDemo, S as debounce, _ as findElement, n as formatAgentContext, t 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, c as parseMentions, p as percentageToViewport, l as stripMentionMarkup, y as throttle, g as viewportToPercentage };
|
package/dist/demo.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e, r as t } from "./shared/validation-
|
|
2
|
-
import {
|
|
1
|
+
import { o as e, r as t } from "./shared/validation-D-8u4M7I.js";
|
|
2
|
+
import { g as n, t as r } from "./shared/comment-kit-core-C862uNAm.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",
|
|
@@ -174,6 +174,7 @@ var S = class {
|
|
|
174
174
|
setEnvironment() {},
|
|
175
175
|
setOnAuthExpired() {},
|
|
176
176
|
validateApiKey: async () => this.unavailable(),
|
|
177
|
+
authorizeChannel: async () => this.unavailable(),
|
|
177
178
|
requestOtp: async () => this.unavailable(),
|
|
178
179
|
verifyOtp: async () => this.unavailable(),
|
|
179
180
|
validateInvite: async () => this.unavailable(),
|
|
@@ -442,7 +443,7 @@ async function w(e = {}) {
|
|
|
442
443
|
}
|
|
443
444
|
}, t), i;
|
|
444
445
|
try {
|
|
445
|
-
let { mountCommentKitUI: e } = await import("./shared/mount-ui
|
|
446
|
+
let { mountCommentKitUI: e } = await import("./shared/mount-ui-B68j8r6I.js").then((e) => e.n);
|
|
446
447
|
i = await e(n);
|
|
447
448
|
} catch (e) {
|
|
448
449
|
throw n.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 {
|
|
1
|
+
import { t as e } from "./shared/websocket-manager-CFak_YHy.js";
|
|
2
|
+
import { _ as t, d as n, h as r, n as i, o as a, t as o, u as s, v as c, y as l } from "./shared/comment-kit-core-C862uNAm.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
|
-
export { r as ApiClient,
|
|
4
|
+
export { r as ApiClient, o as CommentKitCore, a as EventEmitter, i as SDK_VERSION, e as WebSocketManager, s as createAgentContext, S as debounce, _ as findElement, n as formatAgentContext, t 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, c as parseMentions, p as percentageToViewport, l 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-C862uNAm.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-B68j8r6I.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-C862uNAm.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-B68j8r6I.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-C862uNAm.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-B68j8r6I.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 = {}) {
|