@commentkit/comment-kit 0.7.2 → 0.7.4
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 +14 -0
- 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-CZI1KVdW.js → annotation-toolbar-CpPKy0oq.js} +2 -2
- package/dist/shared/{attachment-refresh-mQw-L7hB.js → attachment-refresh-DmVkfPtl.js} +1 -1
- package/dist/shared/{capture-colors-CxSLsU5-.js → capture-colors-D0uLr-vZ.js} +12 -2
- package/dist/shared/{comment-drawing-canvas-CYFFKgCm.js → comment-drawing-canvas-zIPS1dnW.js} +2 -2
- package/dist/shared/{comment-image-lightbox-DmTNxuqX.js → comment-image-lightbox-CdMNf0_y.js} +2 -2
- package/dist/shared/{comment-images-content-BX4DQ9Ol.js → comment-images-content-DqeqmQnb.js} +3 -3
- package/dist/shared/{comment-kit-core-VuIidMeu.js → comment-kit-core-C-0JJS2i.js} +8 -8
- package/dist/shared/{comment-kit-ui-BjJ1ZLiv.js → comment-kit-ui-CBaz7L3u.js} +370 -357
- package/dist/shared/{comment-screenshot-annotator-CMOG1md7.js → comment-screenshot-annotator-CuYmKafz.js} +2 -2
- package/dist/shared/{comment-screenshot-overlay-iWW-V-Iw.js → comment-screenshot-overlay-Dw81osel.js} +16 -13
- package/dist/shared/{dev-export-panel-CrRENbMn.js → dev-export-panel-D08M2LKD.js} +1 -1
- package/dist/shared/{dev-grab-Ca4MlS2Y.js → dev-grab-BJLZZ2xU.js} +1 -1
- package/dist/shared/{element-selector-g1bTvdEA.js → element-selector-Biyn2cpR.js} +2 -2
- package/dist/shared/{mount-ui-Dz5QLq4W.js → mount-ui-DXdL3p9b.js} +4 -4
- package/dist/shared/{pusher-ue0D83de.js → pusher-D4M5K6Dk.js} +1 -1
- package/dist/shared/{realtime-CieWAnsW.js → realtime-BTqYEy8s.js} +2 -2
- package/dist/shared/{shadow-root-Cv1aLuFf.js → shadow-root-C58Ap5Nu.js} +1 -1
- package/dist/shared/{token-session-CPQpt3-u.js → token-session-D0Y_HZw0.js} +1 -1
- package/dist/shared/{websocket-manager-BnK55c3U.js → websocket-manager-BFKa95TO.js} +2 -2
- package/dist/solid.es.js +2 -2
- package/dist/svelte.es.js +2 -2
- package/dist/vue.es.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,20 @@ 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.4] - 2026-10-17
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fix screenshots on SVG transitions and long pages; preserve scroll position, host styles, redaction and custom providers.
|
|
13
|
+
|
|
14
|
+
## [0.7.3] - 2026-10-17
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Match saved checklist controls to the server's author and comment-manager permissions. Collaborators and read-only workspaces can view checklist progress without being offered an edit the server will reject.
|
|
19
|
+
- Wait for checklist saves, prevent overlapping writes, and show a retry message when a rejected edit rolls back. Preserve explicit API error codes and provide a safe permission message for uncoded HTTP 403 responses.
|
|
20
|
+
- Open threads without replies at the original feedback instead of the empty reply section. Keep existing discussions at their newest reply and preserve a reader's position when the first reply arrives.
|
|
21
|
+
|
|
8
22
|
## [0.7.2] - 2026-10-17
|
|
9
23
|
|
|
10
24
|
### Fixed
|
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-C-0JJS2i.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-DXdL3p9b.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-BFKa95TO.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-C-0JJS2i.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-DXdL3p9b.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-C-0JJS2i.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",
|
|
@@ -444,7 +444,7 @@ async function w(e = {}) {
|
|
|
444
444
|
}
|
|
445
445
|
}, t), i;
|
|
446
446
|
try {
|
|
447
|
-
let { mountCommentKitUI: e } = await import("./shared/mount-ui-
|
|
447
|
+
let { mountCommentKitUI: e } = await import("./shared/mount-ui-DXdL3p9b.js").then((e) => e.n);
|
|
448
448
|
i = await e(r);
|
|
449
449
|
} catch (e) {
|
|
450
450
|
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-BFKa95TO.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-C-0JJS2i.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-C-0JJS2i.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-DXdL3p9b.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-C-0JJS2i.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-DXdL3p9b.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-C-0JJS2i.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-DXdL3p9b.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 = {}) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as e } from "./comment-kit-core-
|
|
1
|
+
import { u as e } from "./comment-kit-core-C-0JJS2i.js";
|
|
2
2
|
import { D as t, I as n, L as r, T as i, c as a, d as o, f as s, g as c, m as l, p as u, s as d, t as f, u as p } from "./button-By0hGrJK.js";
|
|
3
3
|
import { $t as m, Ct as h, Et as g, Nt as _, Ot as v, Tt as y, Zt as ee, en as te, i as b, o as x, r as S, t as C, x as w, xt as T } from "./separator-aphZiRoJ.js";
|
|
4
4
|
import { E as ne, M as re, S as ie, h as ae, j as oe, n as se, t as ce, u as le, y as ue } from "./useValueChanged-CrzfD8l-.js";
|
|
5
5
|
import { a as de } from "./ShadowRootContext-CjciYxVN.js";
|
|
6
6
|
import { a as fe, i as pe, l as me, n as he, o as ge, r as E, s as D, t as _e, u as ve } from "./button-group-C285iSkZ.js";
|
|
7
|
-
import { A as O, B as k, D as ye, E as be, F as A, I as xe, L as j, M, O as Se, P as N, R as Ce, T as we, b as Te, d as P, f as Ee, k as De, o as F, s as I, w as L, x as Oe, y as R, z } from "./comment-kit-ui-
|
|
7
|
+
import { A as O, B as k, D as ye, E as be, F as A, I as xe, L as j, M, O as Se, P as N, R as Ce, T as we, b as Te, d as P, f as Ee, k as De, o as F, s as I, w as L, x as Oe, y as R, z } from "./comment-kit-ui-CBaz7L3u.js";
|
|
8
8
|
import { a as B, c as V, d as H, l as ke, n as U, o as Ae, r as je, s as W, t as G, u as Me } from "./annotation-icons-Dh-bmNYK.js";
|
|
9
9
|
import * as K from "react";
|
|
10
10
|
import { jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e } from "./validation-3wbbbuX0.js";
|
|
2
2
|
import { n as t } from "./dist-De294MVF.js";
|
|
3
3
|
import { t as n } from "./button-By0hGrJK.js";
|
|
4
|
-
import { q as r } from "./comment-kit-ui-
|
|
4
|
+
import { q as r } from "./comment-kit-ui-CBaz7L3u.js";
|
|
5
5
|
import * as i from "react";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
function s(e) {
|
|
@@ -56,10 +56,19 @@ function n(n) {
|
|
|
56
56
|
r += e.slice(i, a.index) + d, i = n.lastIndex = c + 1;
|
|
57
57
|
}
|
|
58
58
|
return r + e.slice(i);
|
|
59
|
-
}, c = [];
|
|
59
|
+
}, c = [], l = [];
|
|
60
60
|
for (let t of n.querySelectorAll("*")) {
|
|
61
61
|
if (!t.style) continue;
|
|
62
|
-
let n = r.getComputedStyle(t);
|
|
62
|
+
let n = r.getComputedStyle(t), i = n.getPropertyValue("transition-property"), a = n.getPropertyValue("animation-name");
|
|
63
|
+
i && i !== "none" && l.push([
|
|
64
|
+
t.style,
|
|
65
|
+
"transition-property",
|
|
66
|
+
"none"
|
|
67
|
+
]), a && a !== "none" && l.push([
|
|
68
|
+
t.style,
|
|
69
|
+
"animation-play-state",
|
|
70
|
+
"paused"
|
|
71
|
+
]);
|
|
63
72
|
for (let r of e) {
|
|
64
73
|
let e = n.getPropertyValue(r), i = s(e);
|
|
65
74
|
i !== e && c.push([
|
|
@@ -69,6 +78,7 @@ function n(n) {
|
|
|
69
78
|
]);
|
|
70
79
|
}
|
|
71
80
|
}
|
|
81
|
+
for (let [e, t, n] of l) e.setProperty(t, n, "important");
|
|
72
82
|
for (let [e, t, n] of c) e.setProperty(t, n, "important");
|
|
73
83
|
}
|
|
74
84
|
export { n as normalizeCaptureColors };
|
package/dist/shared/{comment-drawing-canvas-CYFFKgCm.js → comment-drawing-canvas-zIPS1dnW.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./annotation-toolbar-
|
|
2
|
-
import { N as r, a as i, g as a, i as o } from "./comment-kit-ui-
|
|
1
|
+
import { n as e, r as t, t as n } from "./annotation-toolbar-CpPKy0oq.js";
|
|
2
|
+
import { N as r, a as i, g as a, i as o } from "./comment-kit-ui-CBaz7L3u.js";
|
|
3
3
|
import * as s from "react";
|
|
4
4
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
5
|
var d = ".ck-annotation-toolbar{background-color:var(--background);width:100%;max-width:100%;box-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a, 0 0 0 1px color-mix(in oklch, var(--foreground) 5%, transparent);border-radius:2rem;flex-wrap:wrap;justify-content:center;align-items:center;gap:.375rem .5rem;margin-inline:auto;padding:.375rem;display:flex}@media (width>=1024px){.ck-annotation-toolbar{width:fit-content}}.ck-annotation-separator.ck-separator[data-orientation=vertical]{height:1rem;display:none}@media (width>=1024px){.ck-annotation-separator.ck-separator[data-orientation=vertical]{display:block}}.ck-annotation-stroke{align-items:center;gap:.5rem;width:7rem;padding-inline:.25rem;display:flex}@media (width>=1024px){.ck-annotation-stroke{width:12rem}}.ck-annotation-slider{flex:auto;min-width:0}.ck-annotation-stroke-label{color:var(--muted-foreground);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:.75rem;line-height:1rem}.ck-annotation-swatch{background-color:var(--ck-bg);width:.875rem;height:.875rem;box-shadow:0 0 0 1px color-mix(in oklch, var(--foreground) 5%, transparent);border-radius:999px}.ck-annotation-tooltip{align-items:center;gap:.375rem;display:inline-flex}.ck-annotation-save--disabled{opacity:.5}.ck-drawing-canvas{z-index:var(--z-ck-marker-layer);cursor:none;pointer-events:auto;flex-direction:column;padding-top:1rem;display:flex;position:fixed;inset:0}.ck-drawing-canvas-scrim{pointer-events:none;background-color:#0000004d;position:absolute;inset:0}@supports ((-webkit-backdrop-filter:blur(4px)) or (backdrop-filter:blur(4px))){.ck-drawing-canvas-scrim{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.ck-drawing-canvas-toolbar{z-index:1;cursor:auto;width:100%;min-width:0;margin-inline:auto;padding-inline:.75rem;position:relative}.ck-drawing-canvas-surface{z-index:0;touch-action:none;flex:auto;min-height:0;position:relative}.ck-drawing-canvas-error{border-radius:var(--radius-md);background:var(--background);width:max-content;max-width:calc(100vw - 1.5rem);color:var(--destructive);margin:.75rem auto;padding:.75rem;font-size:.875rem}";
|
package/dist/shared/{comment-image-lightbox-DmTNxuqX.js → comment-image-lightbox-CdMNf0_y.js}
RENAMED
|
@@ -3,8 +3,8 @@ import { s as t, t as n } from "./button-By0hGrJK.js";
|
|
|
3
3
|
import { i as r, o as i, r as a } from "./separator-aphZiRoJ.js";
|
|
4
4
|
import { t as o } from "./comment-icon-4SQd3nlz.js";
|
|
5
5
|
import { t as s } from "./button-group-C285iSkZ.js";
|
|
6
|
-
import { c, h as l, m as u, p as d } from "./comment-kit-ui-
|
|
7
|
-
import { r as f, t as p } from "./attachment-refresh-
|
|
6
|
+
import { c, h as l, m as u, p as d } from "./comment-kit-ui-CBaz7L3u.js";
|
|
7
|
+
import { r as f, t as p } from "./attachment-refresh-DmVkfPtl.js";
|
|
8
8
|
import * as m from "react";
|
|
9
9
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
10
10
|
var v = ".ck-dialog-content.ck-image-lightbox{width:100vw;max-width:none;height:100dvh;max-height:none;box-shadow:none;background-color:#0000;border:0;border-radius:0;justify-content:center;align-items:center;gap:0;padding:0;display:flex;inset:0;translate:none}@media (width>=640px){.ck-dialog-content.ck-image-lightbox{max-width:none}}.ck-root[data-theme=dark] .ck-dialog-content.ck-image-lightbox{box-shadow:none}.ck-image-lightbox-prev,.ck-image-lightbox-next{position:absolute}.ck-image-lightbox-prev{inset-inline-start:1rem}.ck-image-lightbox-next{inset-inline-end:1rem}.ck-image-lightbox-photo{object-fit:contain;width:auto;max-width:90vw;height:auto;max-height:90vh}.ck-image-lightbox-meta{border-radius:var(--radius-xl);background-color:var(--muted);text-align:center;max-width:90vw;color:var(--muted-foreground);padding:.25rem .625rem;font-size:.75rem;line-height:1rem;position:absolute;bottom:3.5rem;left:50%;transform:translate(-50%)}.ck-image-lightbox-actions{top:1rem;position:absolute;inset-inline-end:1rem}.ck-image-lightbox-dots{gap:.5rem;display:flex;position:absolute;bottom:1.5rem}.ck-image-lightbox-dot{cursor:pointer;background-color:color-mix(in oklch, var(--foreground) 40%, transparent);border:0;border-radius:999px;width:.625rem;height:.625rem;padding:0;transition:background-color .15s cubic-bezier(.4,0,.2,1)}.ck-image-lightbox-dot:hover{background-color:color-mix(in oklch, var(--foreground) 60%, transparent)}.ck-image-lightbox-dot--active,.ck-image-lightbox-dot--active:hover{background-color:var(--foreground)}";
|
package/dist/shared/{comment-images-content-BX4DQ9Ol.js → comment-images-content-DqeqmQnb.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as e, s as t, t as n } from "./button-By0hGrJK.js";
|
|
2
2
|
import { t as r } from "./useRender-D1z_X_BY.js";
|
|
3
|
-
import { c as i, j as a, l as o, r as s } from "./comment-kit-ui-
|
|
4
|
-
import { n as c, r as l, t as u } from "./attachment-refresh-
|
|
3
|
+
import { c as i, j as a, l as o, r as s } from "./comment-kit-ui-CBaz7L3u.js";
|
|
4
|
+
import { n as c, r as l, t as u } from "./attachment-refresh-DmVkfPtl.js";
|
|
5
5
|
import * as d from "react";
|
|
6
6
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
7
|
var h = d.forwardRef(function({ ratio: e, className: n, style: r, ...i }, a) {
|
|
@@ -92,7 +92,7 @@ var x = d.forwardRef(function({ className: n, render: i, type: a, ...o }, s) {
|
|
|
92
92
|
render: i,
|
|
93
93
|
state: { slot: "attachment-trigger" }
|
|
94
94
|
});
|
|
95
|
-
}), S = () => import("./comment-image-lightbox-
|
|
95
|
+
}), S = () => import("./comment-image-lightbox-CdMNf0_y.js"), C = 3;
|
|
96
96
|
function w(e) {
|
|
97
97
|
return e.mimeType ? e.mimeType.startsWith("image/") : e.type === "screenshot" || e.type === "drawing" || e.thumbnail ? !0 : /^data:image\//i.test(e.url) || /\.(png|jpe?g|webp|gif|avif|svg)(?:[?#]|$)/i.test(e.filename ?? e.url);
|
|
98
98
|
}
|
|
@@ -149,7 +149,7 @@ var ye = class {
|
|
|
149
149
|
let l = await this.parseResponseBody(s);
|
|
150
150
|
if (!s.ok) {
|
|
151
151
|
s.status === 401 && a && i === this.authRevision && (this.setAuthToken(null), this.onAuthExpired?.());
|
|
152
|
-
let e = o(l) ? l : {}, t = typeof e.error == "string" ? e.error : n;
|
|
152
|
+
let e = o(l) ? l : {}, t = typeof e.error == "string" ? e.error : s.status === 403 ? "unauthorized" : n;
|
|
153
153
|
throw new T(t, x[t] ?? r, s.status, ve(e.details, e.quota));
|
|
154
154
|
}
|
|
155
155
|
return l;
|
|
@@ -2681,7 +2681,7 @@ async function ni(e, t, n, r = {}) {
|
|
|
2681
2681
|
scale: 2,
|
|
2682
2682
|
logging: !1,
|
|
2683
2683
|
ignoreElements: g,
|
|
2684
|
-
onclone: (e) => import("./capture-colors-
|
|
2684
|
+
onclone: (e) => import("./capture-colors-D0uLr-vZ.js").then(({ normalizeCaptureColors: t }) => t(e))
|
|
2685
2685
|
}), Rr, "html2canvas timed out after 15s");
|
|
2686
2686
|
if (i.width > Z || i.height > Z || i.width * i.height > Nr) throw Q("screenshot_too_large", "Captured area is too large to screenshot");
|
|
2687
2687
|
return Yr({
|
|
@@ -2729,7 +2729,7 @@ async function ii(e, t, n) {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
var $ = null;
|
|
2731
2731
|
async function ai() {
|
|
2732
|
-
return $ || ($ = await import("./realtime-
|
|
2732
|
+
return $ || ($ = await import("./realtime-BTqYEy8s.js"), $);
|
|
2733
2733
|
}
|
|
2734
2734
|
var oi = typeof window < "u", si = /* @__PURE__ */ new Set([
|
|
2735
2735
|
"list",
|
|
@@ -2744,7 +2744,7 @@ var oi = typeof window < "u", si = /* @__PURE__ */ new Set([
|
|
|
2744
2744
|
"screenshot",
|
|
2745
2745
|
"select",
|
|
2746
2746
|
null
|
|
2747
|
-
]), li = 256, ui = "0.7.
|
|
2747
|
+
]), li = 256, ui = "0.7.4";
|
|
2748
2748
|
function di(e) {
|
|
2749
2749
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2750
2750
|
return t ? [
|
|
@@ -2929,7 +2929,7 @@ var mi = class extends tt {
|
|
|
2929
2929
|
};
|
|
2930
2930
|
}
|
|
2931
2931
|
let n = e.project?.sdkLatestVersion;
|
|
2932
|
-
n && pi(n, "0.7.
|
|
2932
|
+
n && pi(n, "0.7.4") && (console.warn(`[CommentKit] You are using v${ui}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2933
2933
|
current: ui,
|
|
2934
2934
|
latest: n
|
|
2935
2935
|
})), this.setState({
|
|
@@ -3115,7 +3115,7 @@ var mi = class extends tt {
|
|
|
3115
3115
|
if (this.initialAuthToken = void 0, e === void 0) return;
|
|
3116
3116
|
let t = () => !this.destroyed && this.authRequestRevision === 0;
|
|
3117
3117
|
try {
|
|
3118
|
-
let { verifyAndRestoreToken: n } = await import("./token-session-
|
|
3118
|
+
let { verifyAndRestoreToken: n } = await import("./token-session-D0Y_HZw0.js");
|
|
3119
3119
|
await n(this.ctx, e, t, this.config.persistence !== "memory") && await this.afterAuthenticated();
|
|
3120
3120
|
} catch {
|
|
3121
3121
|
t() && this.handleAuthExpired();
|
|
@@ -3594,7 +3594,7 @@ var mi = class extends tt {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
async grabElement(e, t) {
|
|
3596
3596
|
if (this.destroyed) return null;
|
|
3597
|
-
let { grabElement: n } = await import("./dev-grab-
|
|
3597
|
+
let { grabElement: n } = await import("./dev-grab-BJLZZ2xU.js");
|
|
3598
3598
|
if (this.destroyed) return null;
|
|
3599
3599
|
let r = await n(e, this.ctx, this.screenshotProvider, t);
|
|
3600
3600
|
return this.destroyed ? null : (r && this.emit("agent:element-grabbed", {
|
|
@@ -3604,7 +3604,7 @@ var mi = class extends tt {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
async grabElements(e, t) {
|
|
3606
3606
|
if (this.destroyed) return null;
|
|
3607
|
-
let { grabElements: n } = await import("./dev-grab-
|
|
3607
|
+
let { grabElements: n } = await import("./dev-grab-BJLZZ2xU.js");
|
|
3608
3608
|
if (this.destroyed) return null;
|
|
3609
3609
|
let r = await n(e, this.ctx, this.screenshotProvider, t);
|
|
3610
3610
|
return this.destroyed ? null : (r && this.emit("agent:elements-grabbed", { count: r.results.length }), r);
|