@commentkit/comment-kit 2.0.1 → 2.1.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 +39 -0
- package/README.md +14 -6
- package/dist/node/cli/api.js +61 -15
- package/dist/node/cli/credentials.js +8 -0
- package/dist/node/cli/doctor.js +68 -5
- package/dist/node/cli/main.js +275 -52
- package/dist/node/cli/website.js +140 -0
- package/dist/node/types/next.d.ts +4 -4
- package/dist/npm/THIRD_PARTY_NOTICES.txt +47 -0
- package/dist/npm/chunks/{AgentSend-DOy3jhyF.js → AgentSend-B4rxdY68.js} +3 -3
- package/dist/npm/chunks/Checklist-Cy68X5qC.js +269 -0
- package/dist/npm/chunks/Composer-D65l6Jg4.js +734 -0
- package/dist/npm/chunks/DatePicker-BPzzqW3f.js +161 -0
- package/dist/npm/chunks/{Guest-7hcN765o.js → Guest-C-ZhARI0.js} +18 -17
- package/dist/npm/chunks/{MarkupEditor-6bJGpWGO.js → MarkupEditor-BOb2jFTR.js} +8 -8
- package/dist/npm/chunks/{Panel-ChPUB68C.js → Panel-DgdCgaC-.js} +217 -218
- package/dist/npm/chunks/{Settings-CB5eEKnf.js → Settings-BbWu2Rd5.js} +34 -33
- package/dist/npm/chunks/{Shortcuts-eAyjJ89P.js → Shortcuts-C5wEx-Mq.js} +25 -23
- package/dist/npm/chunks/SignInFirst-BlMbutED.js +36 -0
- package/dist/npm/chunks/{StyleEditor-CZTdAA5c.js → StyleEditor-BN2z7mUs.js} +4 -4
- package/dist/npm/chunks/{StylePanel-B4pHQUL9.js → StylePanel-BZk-r-kl.js} +3 -3
- package/dist/npm/chunks/TaskFields-B2-YvIwV.js +617 -0
- package/dist/npm/chunks/ThreadCard-xKy4JbXK.js +1142 -0
- package/dist/npm/chunks/{Viewer-DY6zb90M.js → Viewer-DL6M3wAT.js} +9 -8
- package/dist/npm/chunks/{agent-MTQHr9ei.js → agent-D1VQvc14.js} +12 -12
- package/dist/npm/chunks/{ar-L5cQ-NPe.js → ar-DtfC6tHi.js} +53 -12
- package/dist/npm/chunks/{card-bits-CTdrkYn8.js → card-bits-B94SwnS9.js} +12 -10
- package/dist/npm/chunks/{client-7eVxvg5j.js → client-CULjcQxz.js} +13 -11
- package/dist/npm/chunks/{confetti-BIs5s14P.js → confetti-K_xKxQGa.js} +1 -1
- package/dist/npm/chunks/{context-Cf6khm7A.js → context-0MfEgoip.js} +1 -1
- package/dist/npm/chunks/{de-D0C-v6tP.js → de-CSyX5Cz-.js} +53 -12
- package/dist/npm/chunks/{dpop-0A76OPa9.js → dpop-DpxIN5kL.js} +1 -1
- package/dist/npm/chunks/entrance-CO0AzUKy.js +90 -0
- package/dist/npm/chunks/{es-Bw4Dj9tN.js → es-D7SAi7fz.js} +53 -12
- package/dist/npm/chunks/{extension-DFVOvciD.js → extension-DpfiPOjC.js} +1 -1
- package/dist/npm/chunks/{extension-SmoH5AA4.js → extension-faFfCApb.js} +2 -2
- package/dist/npm/chunks/{files-4lV9YQIX.js → files-BkHuRlcW.js} +2 -2
- package/dist/npm/chunks/{fr-TkuQaIAa.js → fr-CIr2nUyu.js} +53 -12
- package/dist/npm/chunks/{hi-DXSH2U8d.js → hi-BTocxOL5.js} +53 -12
- package/dist/npm/chunks/{i18n-aVSu9TcJ.js → i18n-CDw_D17c.js} +17 -21
- package/dist/npm/chunks/icons-BJLm_C0M.js +141 -0
- package/dist/npm/chunks/{identify-BGYh2dVo.js → identify-963WDKul.js} +1 -1
- package/dist/npm/chunks/{it-CiWA_bch.js → it-DCExRo0r.js} +53 -12
- package/dist/npm/chunks/{ja-C-QmR3yz.js → ja-CgWpTdWi.js} +52 -11
- package/dist/npm/chunks/late-words-QnNheaDY.js +59 -0
- package/dist/npm/chunks/{live-BExWHzQ7.js → live-BI72WQBA.js} +31 -23
- package/dist/npm/chunks/{nl-CEmZRqjX.js → nl-DhTQ8oJ_.js} +53 -12
- package/dist/npm/chunks/{page-key-HSY3Lze5.js → page-key-CW8Mtf60.js} +1 -1
- package/dist/npm/chunks/{pick-B3sR7jtS.js → pick-BRhngGMq.js} +1 -1
- package/dist/npm/chunks/{pkce-CfZhiNBi.js → pkce-BEeLAZhN.js} +1 -1
- package/dist/npm/chunks/{pt-BR-b-a8sxO8.js → pt-BR-DrO6LV4n.js} +53 -12
- package/dist/npm/chunks/{report-DaVuoRYS.js → report-DAzQvgUh.js} +1 -1
- package/dist/npm/chunks/{show-BoN8AC-F.js → show-Ka3g4eCJ.js} +7 -7
- package/dist/npm/chunks/signin-Car5vP1U.js +101 -0
- package/dist/npm/chunks/{source-mk3rGBBQ.js → source-dd_it90W.js} +1 -1
- package/dist/npm/chunks/{src-C8rZFyL_.js → src-fTYV50pw.js} +21 -15
- package/dist/npm/chunks/start-CE5eR33Z.js +1916 -0
- package/dist/npm/chunks/states-DLMCvwes.js +3 -0
- package/dist/npm/chunks/{upload-B2mkgMeJ.js → upload-Dcv9CCly.js} +1 -1
- package/dist/npm/chunks/uploads-CmeoNVO2.js +1236 -0
- package/dist/npm/chunks/{wrap-DW6EFbVQ.js → wrap-B0mzrRhc.js} +27 -27
- package/dist/npm/chunks/{zh-CN-JTscW8u8.js → zh-CN-Bb8UzT1V.js} +53 -12
- package/dist/npm/element.js +7 -1
- package/dist/npm/headless.js +2 -2
- package/dist/npm/index.js +2 -2
- package/dist/npm/react.js +1 -1
- package/dist/npm/svelte.js +1 -1
- package/dist/npm/types/adapters/vue.d.ts +12 -0
- package/dist/npm/types/core/auth.d.ts +1 -0
- package/dist/npm/types/core/client.d.ts +5 -1
- package/dist/npm/types/core/types.d.ts +17 -2
- package/dist/npm/vue.js +5 -1
- package/package.json +2 -1
- package/dist/npm/chunks/Checklist-CW_SwMpS.js +0 -282
- package/dist/npm/chunks/Composer-Bveq5QrK.js +0 -727
- package/dist/npm/chunks/TaskFields-C8BX0Sgg.js +0 -289
- package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +0 -1160
- package/dist/npm/chunks/late-words-80_VWt8S.js +0 -14
- package/dist/npm/chunks/signin-BOWr_WCo.js +0 -75
- package/dist/npm/chunks/start-CV4j78_q.js +0 -1894
- package/dist/npm/chunks/states-b9Bv3Ci7.js +0 -3
- package/dist/npm/chunks/uploads-8AxyRq7g.js +0 -1147
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, R as t, U as n, V as r } from "./start-CE5eR33Z.js";
|
|
2
2
|
// src/capture/wrap.ts
|
|
3
3
|
var i = 20, a = 200;
|
|
4
4
|
function o(e) {
|
|
@@ -16,54 +16,54 @@ function o(e) {
|
|
|
16
16
|
return "[unreadable]";
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
function s(
|
|
19
|
+
function s(r, i) {
|
|
20
20
|
try {
|
|
21
|
-
e(
|
|
22
|
-
level:
|
|
23
|
-
message:
|
|
21
|
+
e(t, {
|
|
22
|
+
level: r,
|
|
23
|
+
message: n(i()),
|
|
24
24
|
at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25
25
|
});
|
|
26
26
|
} catch {}
|
|
27
27
|
}
|
|
28
28
|
function c(e) {
|
|
29
|
-
let
|
|
30
|
-
let i = e[
|
|
31
|
-
e[
|
|
32
|
-
e[
|
|
29
|
+
let t = [], n = !0, a = (e, n, r) => {
|
|
30
|
+
let i = e[n], a = r(i);
|
|
31
|
+
e[n] = a, t.push(() => {
|
|
32
|
+
e[n] === a && (e[n] = i);
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
if (e.console) {
|
|
36
|
-
for (let e of ["error", "warn"]) a(console, e, (t) => (...
|
|
37
|
-
|
|
36
|
+
for (let e of ["error", "warn"]) a(console, e, (t) => (...r) => {
|
|
37
|
+
n && s(e, () => r.slice(0, i).map(o).join(" ")), t.apply(console, r);
|
|
38
38
|
});
|
|
39
|
-
let e = (e) => s("error", () => e.message || o(e.error)),
|
|
40
|
-
addEventListener("error", e), addEventListener("unhandledrejection",
|
|
39
|
+
let e = (e) => s("error", () => e.message || o(e.error)), r = (e) => s("error", () => `Unhandled promise rejection: ${o(e.reason)}`);
|
|
40
|
+
addEventListener("error", e), addEventListener("unhandledrejection", r), t.push(() => removeEventListener("error", e), () => removeEventListener("unhandledrejection", r));
|
|
41
41
|
}
|
|
42
|
-
if (e.network && typeof fetch == "function" && a(window, "fetch", (e) => async (...
|
|
43
|
-
if (!
|
|
44
|
-
let i = performance.now(), a = (
|
|
42
|
+
if (e.network && typeof fetch == "function" && a(window, "fetch", (e) => async (...t) => {
|
|
43
|
+
if (!n) return e(...t);
|
|
44
|
+
let i = performance.now(), a = (t[1]?.method ?? (t[0] instanceof Request ? t[0].method : "GET")).toUpperCase(), o = t[0] instanceof Request ? t[0].url : String(t[0]);
|
|
45
45
|
try {
|
|
46
|
-
let
|
|
47
|
-
return
|
|
46
|
+
let n = await e(...t);
|
|
47
|
+
return n.status >= 400 && r(a, o, n.status, i), n;
|
|
48
48
|
} catch (e) {
|
|
49
|
-
throw
|
|
49
|
+
throw r(a, o, 0, i), e;
|
|
50
50
|
}
|
|
51
51
|
}), e.network && typeof XMLHttpRequest == "function") {
|
|
52
52
|
let e = /* @__PURE__ */ new WeakMap();
|
|
53
|
-
a(XMLHttpRequest.prototype, "open", (t) => function(
|
|
54
|
-
return
|
|
55
|
-
method: String(
|
|
53
|
+
a(XMLHttpRequest.prototype, "open", (t) => function(r, i, ...a) {
|
|
54
|
+
return n && e.set(this, {
|
|
55
|
+
method: String(r).toUpperCase(),
|
|
56
56
|
url: String(i)
|
|
57
|
-
}), t.call(this,
|
|
58
|
-
}), a(XMLHttpRequest.prototype, "send", (
|
|
57
|
+
}), t.call(this, r, i, ...a);
|
|
58
|
+
}), a(XMLHttpRequest.prototype, "send", (t) => function(i) {
|
|
59
59
|
let a = e.get(this), o = performance.now();
|
|
60
60
|
return a && this.addEventListener("loadend", () => {
|
|
61
|
-
|
|
62
|
-
}, { once: !0 }),
|
|
61
|
+
n && (this.status >= 400 || this.status === 0) && r(a.method, a.url, this.status, o);
|
|
62
|
+
}, { once: !0 }), t.call(this, i);
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
return () => {
|
|
66
|
-
|
|
66
|
+
n = !1, t.forEach((e) => e());
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
export { c as wrap };
|
|
@@ -14,7 +14,7 @@ var e = {
|
|
|
14
14
|
modeBarTouch: "轻点任意位置评论 · 照常滚动 · 先选中文字可引用",
|
|
15
15
|
commentOnPage: "评论整个页面",
|
|
16
16
|
commentFocused: "评论选中的部分",
|
|
17
|
-
attach: "
|
|
17
|
+
attach: "添加附件",
|
|
18
18
|
screenshot: "截图",
|
|
19
19
|
screenshotIncluded: "会自动附上你当前看到的画面截图。",
|
|
20
20
|
screenshotRemove: "移除截图",
|
|
@@ -36,8 +36,6 @@ var e = {
|
|
|
36
36
|
capturing: "正在截图…",
|
|
37
37
|
capturingFailed: "无法截取此页面,但你的评论仍会标记位置。",
|
|
38
38
|
uploadFailed: "文件没能附加。你仍然可以发送评论。",
|
|
39
|
-
signInToSend: "最后一步:告诉我们你是谁",
|
|
40
|
-
signInExplain: "我们会打开一个小窗口,请你确认邮箱。在这台设备上只需要做一次。",
|
|
41
39
|
signIn: "继续",
|
|
42
40
|
signInMember: "登录",
|
|
43
41
|
signOut: "退出登录",
|
|
@@ -67,9 +65,6 @@ var e = {
|
|
|
67
65
|
resolve: "解决",
|
|
68
66
|
resolveHint: "标记为已修复",
|
|
69
67
|
reopen: "重新打开",
|
|
70
|
-
markInProgress: "开始处理",
|
|
71
|
-
markInReview: "请求确认",
|
|
72
|
-
closeThread: "不修复,直接关闭",
|
|
73
68
|
reviewAsk: "团队认为已经修好了。你看可以吗?",
|
|
74
69
|
looksGood: "可以了 — 解决",
|
|
75
70
|
notYet: "还不行 — 回复",
|
|
@@ -110,7 +105,6 @@ var e = {
|
|
|
110
105
|
readOnlyReply: "你可以查看这段对话,但目前无法回复。",
|
|
111
106
|
noReplyAccess: "你可以查看这段对话,但没有回复权限。",
|
|
112
107
|
notOnPage: "当前页面上找不到",
|
|
113
|
-
more: "更多",
|
|
114
108
|
allStatuses: "全部",
|
|
115
109
|
markAllRead: "全部标为已读",
|
|
116
110
|
messageCount: "{n} 条消息",
|
|
@@ -233,7 +227,6 @@ var e = {
|
|
|
233
227
|
sentWithoutFiles: "已发送,但有些文件没能附加。你可以在回复中再附加。",
|
|
234
228
|
replyFailed: "你的回复还没有发送。内容仍在这里,可以再试一次。",
|
|
235
229
|
taskDetails: "任务详情",
|
|
236
|
-
taskDetailsSet: "已添加任务详情",
|
|
237
230
|
priority: "优先级",
|
|
238
231
|
priority_none: "无优先级",
|
|
239
232
|
priority_low: "低",
|
|
@@ -241,7 +234,6 @@ var e = {
|
|
|
241
234
|
priority_high: "高",
|
|
242
235
|
priority_urgent: "紧急",
|
|
243
236
|
dueDate: "截止日期",
|
|
244
|
-
dueOn: "截止 {date}",
|
|
245
237
|
labels: "标签",
|
|
246
238
|
noLabels: "无标签",
|
|
247
239
|
mentionList: "可以提及的人",
|
|
@@ -259,7 +251,7 @@ var e = {
|
|
|
259
251
|
detailPage: "页面",
|
|
260
252
|
detailBrowser: "浏览器",
|
|
261
253
|
detailWindow: "窗口",
|
|
262
|
-
details: "
|
|
254
|
+
details: "详细信息",
|
|
263
255
|
quotedText: "选中的文字",
|
|
264
256
|
replyTo: "回复 {name}",
|
|
265
257
|
quoteReply: "引用回复",
|
|
@@ -293,7 +285,6 @@ var e = {
|
|
|
293
285
|
sortPriority: "优先级最高",
|
|
294
286
|
pinMoved: "{ref} 已移到这里。",
|
|
295
287
|
pinMovable: "标记,拖动可移动",
|
|
296
|
-
assign: "指派",
|
|
297
288
|
modeBarNoText: "点击任意位置评论 · 拖动可框选区域 · 按 Esc 退出",
|
|
298
289
|
modeBarTouchNoText: "轻点任意位置评论 · 照常滚动",
|
|
299
290
|
verifyResendIn: "{n} 秒后可获取新验证码",
|
|
@@ -405,6 +396,56 @@ var e = {
|
|
|
405
396
|
signOffNewCommit: "批准之后此页面已有改动。",
|
|
406
397
|
signOffOpen: "此页面还有 {n} 条评论未解决。你仍然可以批准。",
|
|
407
398
|
signOffOpen_one: "此页面还有 {n} 条评论未解决。你仍然可以批准。",
|
|
408
|
-
signOffWithdraw: "撤回批准"
|
|
399
|
+
signOffWithdraw: "撤回批准",
|
|
400
|
+
moreFeedback: "更多反馈选项",
|
|
401
|
+
messagesRegion: "CommentKit 消息",
|
|
402
|
+
dismissMessage: "关闭消息",
|
|
403
|
+
moreThread: "此评论的更多操作",
|
|
404
|
+
closeCard: "关闭评论",
|
|
405
|
+
closeInbox: "关闭收件箱",
|
|
406
|
+
closeSettings: "关闭设置",
|
|
407
|
+
closeShortcuts: "关闭键盘快捷键",
|
|
408
|
+
closeVerify: "关闭验证码输入",
|
|
409
|
+
closeImage: "关闭图片",
|
|
410
|
+
shownAnnounce: "CommentKit 已开启。按 C 发表评论。",
|
|
411
|
+
shownAnnounceNoKeys: "CommentKit 已开启。",
|
|
412
|
+
addReaction: "添加表情回应",
|
|
413
|
+
fieldChange: "{field}:{value},更改",
|
|
414
|
+
assignee: "负责人",
|
|
415
|
+
dueToday: "今天",
|
|
416
|
+
tomorrow: "明天",
|
|
417
|
+
dueYesterday: "昨天",
|
|
418
|
+
statusHelp_open: "新建,尚未开始。",
|
|
419
|
+
statusHelp_in_progress: "有人正在处理。",
|
|
420
|
+
statusHelp_in_review: "团队已完成,等待提出者确认。",
|
|
421
|
+
statusHelp_resolved: "已修复并确认。",
|
|
422
|
+
statusHelp_closed: "不会处理。",
|
|
423
|
+
findTeammate: "查找团队成员",
|
|
424
|
+
peopleNone: "团队中没有匹配的人。",
|
|
425
|
+
peopleMore: "显示 {n} 人中的 {shown} 人。输入以缩小范围。",
|
|
426
|
+
peopleLoading: "正在加载团队…",
|
|
427
|
+
unassignAll: "取消所有分配",
|
|
428
|
+
teamMembers: "团队成员",
|
|
429
|
+
today: "今天",
|
|
430
|
+
nextWeek: "下周",
|
|
431
|
+
clear: "清除",
|
|
432
|
+
previousMonth: "上个月",
|
|
433
|
+
nextMonth: "下个月",
|
|
434
|
+
screenshotLabel: "当前视图的截图",
|
|
435
|
+
markupShort: "在上面绘制",
|
|
436
|
+
screenshotRemoveShort: "移除",
|
|
437
|
+
signingIn: "正在登录…",
|
|
438
|
+
signInWaiting: "请在打开的窗口中完成登录。你的评论已保存。",
|
|
439
|
+
signInCancel: "取消登录",
|
|
440
|
+
signedInPressSend: "你已登录。按“发送”发布你的评论。",
|
|
441
|
+
stillSending: "仍在发送…",
|
|
442
|
+
signInToComment: "登录后评论",
|
|
443
|
+
signInToCommentBody: "{website} 上的评论仅供其团队和受邀客户使用。请用你的 CommentKit 账户登录,然后点击需要修改的位置。",
|
|
444
|
+
signInToCommentBodyTouch: "{website} 上的评论仅供其团队和受邀客户使用。请用你的 CommentKit 账户登录,然后轻点需要修改的位置。",
|
|
445
|
+
signInToSeeComments: "登录后查看评论",
|
|
446
|
+
signInToSeeCommentsBody: "{website} 上的评论来自其团队和受邀客户。请用你的 CommentKit 账户登录后查看。",
|
|
447
|
+
signInToSend: "登录后发送",
|
|
448
|
+
signInToSendTitle: "登录后发送此评论",
|
|
449
|
+
signInToSendBody: "此网站上的评论来自其团队和受邀客户。登录期间,你的文字会保留在这里。"
|
|
409
450
|
};
|
|
410
451
|
export { e as default };
|
package/dist/npm/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./chunks/src-
|
|
1
|
+
import { t as e } from "./chunks/src-fTYV50pw.js";
|
|
2
2
|
// src/element.ts
|
|
3
3
|
var t, n = [
|
|
4
4
|
"screenshots",
|
|
@@ -15,6 +15,8 @@ var t, n = [
|
|
|
15
15
|
"locale",
|
|
16
16
|
"theme",
|
|
17
17
|
"position",
|
|
18
|
+
"inset-x",
|
|
19
|
+
"inset-y",
|
|
18
20
|
"auth",
|
|
19
21
|
"deployment-url",
|
|
20
22
|
"hide-on-production",
|
|
@@ -49,6 +51,10 @@ var t, n = [
|
|
|
49
51
|
locale: this.getAttribute("locale") ?? void 0,
|
|
50
52
|
theme: this.getAttribute("theme") ?? void 0,
|
|
51
53
|
position: this.getAttribute("position") ?? void 0,
|
|
54
|
+
inset: this.hasAttribute("inset-x") || this.hasAttribute("inset-y") ? {
|
|
55
|
+
x: Number(this.getAttribute("inset-x") ?? NaN),
|
|
56
|
+
y: Number(this.getAttribute("inset-y") ?? NaN)
|
|
57
|
+
} : void 0,
|
|
52
58
|
auth: this.getAttribute("auth") ?? void 0,
|
|
53
59
|
deploymentUrl: this.getAttribute("deployment-url"),
|
|
54
60
|
hideOnProduction: this.getAttribute("hide-on-production") !== "false",
|
package/dist/npm/headless.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as e, i as t, l as n, m as r, o as i, r as a, t as o, v as s } from "./chunks/client-
|
|
1
|
+
import { h as e, i as t, l as n, m as r, o as i, r as a, t as o, v as s } from "./chunks/client-CULjcQxz.js";
|
|
2
2
|
import { i as c } from "./chunks/privacy-BWUGlHw5.js";
|
|
3
3
|
import { c as l, s as u, t as d } from "./chunks/anchor-BsQNVkHj.js";
|
|
4
4
|
import { n as f } from "./chunks/context-BuMl7A07.js";
|
|
5
|
-
import { n as p, t as m } from "./chunks/page-key-
|
|
5
|
+
import { n as p, t as m } from "./chunks/page-key-CW8Mtf60.js";
|
|
6
6
|
f(), n(p);
|
|
7
7
|
export { e as ApiClient, r as AuthManager, o as CommentKitClient, s as CommentKitError, a as EDIT_CONFLICT, t as SDK_VERSION, c as configurePrivacy, d as createAnchor, i as currentPageUrl, m as pageKey, u as resolveAnchor, l as stableSelector };
|
package/dist/npm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./chunks/src-
|
|
2
|
-
import { i as t, v as n } from "./chunks/client-
|
|
1
|
+
import { t as e } from "./chunks/src-fTYV50pw.js";
|
|
2
|
+
import { i as t, v as n } from "./chunks/client-CULjcQxz.js";
|
|
3
3
|
export { n as CommentKitError, t as SDK_VERSION, e as init };
|
package/dist/npm/react.js
CHANGED
package/dist/npm/svelte.js
CHANGED
|
@@ -38,6 +38,10 @@ export declare const CommentKit: import("vue").DefineComponent<import("vue").Ext
|
|
|
38
38
|
type: PropType<CommentKitOptions["position"]>;
|
|
39
39
|
default: undefined;
|
|
40
40
|
};
|
|
41
|
+
inset: {
|
|
42
|
+
type: PropType<CommentKitOptions["inset"]>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
41
45
|
redact: {
|
|
42
46
|
type: PropType<string[]>;
|
|
43
47
|
default: undefined;
|
|
@@ -103,6 +107,10 @@ export declare const CommentKit: import("vue").DefineComponent<import("vue").Ext
|
|
|
103
107
|
type: PropType<CommentKitOptions["position"]>;
|
|
104
108
|
default: undefined;
|
|
105
109
|
};
|
|
110
|
+
inset: {
|
|
111
|
+
type: PropType<CommentKitOptions["inset"]>;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
106
114
|
redact: {
|
|
107
115
|
type: PropType<string[]>;
|
|
108
116
|
default: undefined;
|
|
@@ -143,6 +151,10 @@ export declare const CommentKit: import("vue").DefineComponent<import("vue").Ext
|
|
|
143
151
|
hideOnProduction: boolean;
|
|
144
152
|
theme: "auto" | "dark" | "light" | undefined;
|
|
145
153
|
position: import("../index.js").Position | undefined;
|
|
154
|
+
inset: {
|
|
155
|
+
x?: number;
|
|
156
|
+
y?: number;
|
|
157
|
+
} | undefined;
|
|
146
158
|
redact: string[];
|
|
147
159
|
privacy: "standard" | "strict" | undefined;
|
|
148
160
|
locale: string;
|
|
@@ -73,6 +73,7 @@ export declare class AuthManager {
|
|
|
73
73
|
signIn(options?: {
|
|
74
74
|
share?: string | null;
|
|
75
75
|
mode?: AuthMode;
|
|
76
|
+
signal?: AbortSignal;
|
|
76
77
|
}): Promise<SignInResult>;
|
|
77
78
|
/** Trade a one-time code (from the popup, a redirect or the browser extension) for a session. */
|
|
78
79
|
exchange(code: string, verifier: string): Promise<boolean>;
|
|
@@ -84,6 +84,8 @@ export declare class CommentKitClient {
|
|
|
84
84
|
private readonly offSession;
|
|
85
85
|
/** The CommentKit server this client talks to (no trailing slash). */
|
|
86
86
|
readonly endpoint: string;
|
|
87
|
+
/** Shown by Cmd/Ctrl+Shift+K (index.ts): the widget's entrance leads the eye to it (ui/entrance.ts). Read once by the UI. */
|
|
88
|
+
entrance?: "key";
|
|
87
89
|
private configTag;
|
|
88
90
|
/** Last known ETag per thread and per message, sent as If-Match with edits. */
|
|
89
91
|
private tags;
|
|
@@ -117,7 +119,7 @@ export declare class CommentKitClient {
|
|
|
117
119
|
loadConfig(): Promise<WidgetConfig>;
|
|
118
120
|
loadSession(): Promise<Session | null>;
|
|
119
121
|
/** Never rejects: anything that goes wrong (the window, the code exchange, reading the session) is "failed". */
|
|
120
|
-
signIn(share?: string | null): Promise<SignInResult>;
|
|
122
|
+
signIn(share?: string | null, signal?: AbortSignal): Promise<SignInResult>;
|
|
121
123
|
signOut(): Promise<void>;
|
|
122
124
|
/**
|
|
123
125
|
* The page's open threads: follows `next_cursor` up to MAX_PAGE_THREADS (`moreThreads` says when there
|
|
@@ -162,6 +164,8 @@ export declare class CommentKitClient {
|
|
|
162
164
|
styleChanges?: StyleChange[];
|
|
163
165
|
/** The same key for every attempt at this one comment, so a lost response never creates it twice. */
|
|
164
166
|
idempotencyKey?: string;
|
|
167
|
+
/** Stops waiting (and retrying): the comment arrived another way, by a live update. */
|
|
168
|
+
signal?: AbortSignal;
|
|
165
169
|
}): Promise<Thread>;
|
|
166
170
|
/**
|
|
167
171
|
* Reviewers may only resolve or reopen; priority, assignee, due date and labels are for members who can triage.
|
|
@@ -373,6 +373,17 @@ export interface CommentKitOptions {
|
|
|
373
373
|
theme?: "auto" | "light" | "dark";
|
|
374
374
|
/** Where the launcher sits. Defaults to the dashboard setting. */
|
|
375
375
|
position?: Position;
|
|
376
|
+
/**
|
|
377
|
+
* Extra room, in CSS pixels (0 or more), between the toolbar and the edges it docks to, for a page's own fixed
|
|
378
|
+
* bars and buttons: `x` from the left or right edge (not used in the two centre spots), `y` from the top or
|
|
379
|
+
* bottom edge. The welcome note, the toolbar's menu, the inbox's gap and (docked at the bottom) the toasts move
|
|
380
|
+
* with it. The page can change it at any time without calling CommentKit, with the CSS custom properties
|
|
381
|
+
* `--commentkit-inset-x` and `--commentkit-inset-y` (lengths) on `:root`; those win over this option.
|
|
382
|
+
*/
|
|
383
|
+
inset?: {
|
|
384
|
+
x?: number;
|
|
385
|
+
y?: number;
|
|
386
|
+
};
|
|
376
387
|
/** CSS selectors whose content is never captured in screenshots, nor in the text a comment keeps to find its spot. */
|
|
377
388
|
redact?: string[];
|
|
378
389
|
/**
|
|
@@ -390,7 +401,9 @@ export interface CommentKitOptions {
|
|
|
390
401
|
locale?: string;
|
|
391
402
|
/**
|
|
392
403
|
* How sign-in opens: "auto" (default) uses a popup on desktop and a full-page
|
|
393
|
-
* redirect inside in-app browsers
|
|
404
|
+
* redirect inside in-app browsers, when popups are blocked, and on pages sent with
|
|
405
|
+
* `Cross-Origin-Opener-Policy: same-origin` (which cuts a popup off from the page).
|
|
406
|
+
* "popup" cannot work on such a page: the widget says so once in the console.
|
|
394
407
|
*/
|
|
395
408
|
auth?: "auto" | "popup" | "redirect";
|
|
396
409
|
/**
|
|
@@ -402,7 +415,9 @@ export interface CommentKitOptions {
|
|
|
402
415
|
/**
|
|
403
416
|
* Cmd/Ctrl+Shift+K shows the widget, and while it is shown opens the inbox. Default true. Set false
|
|
404
417
|
* when your site uses that combination itself; show the widget with `show()` or `comment()` instead.
|
|
405
|
-
*
|
|
418
|
+
* When the key shows the widget or opens the inbox, your page's own handlers do not get it (so a Cmd/Ctrl+K
|
|
419
|
+
* search that ignores Shift does not open as well); a listener on `window`'s capture phase added before
|
|
420
|
+
* CommentKit still does.
|
|
406
421
|
*/
|
|
407
422
|
toggleShortcut?: boolean;
|
|
408
423
|
/**
|
package/dist/npm/vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./chunks/src-
|
|
1
|
+
import { t as e } from "./chunks/src-fTYV50pw.js";
|
|
2
2
|
import { defineComponent as t, onBeforeUnmount as n, onMounted as r, watch as i } from "vue";
|
|
3
3
|
// src/adapters/vue.ts
|
|
4
4
|
function a(e) {
|
|
@@ -43,6 +43,10 @@ var o = t({
|
|
|
43
43
|
type: String,
|
|
44
44
|
default: void 0
|
|
45
45
|
},
|
|
46
|
+
inset: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: void 0
|
|
49
|
+
},
|
|
46
50
|
redact: {
|
|
47
51
|
type: Array,
|
|
48
52
|
default: void 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commentkit/comment-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Figma-style comments for any website. Clients pin feedback with an automatic screenshot; developers see it on localhost and hand it to their AI agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"comments",
|
|
@@ -157,6 +157,7 @@
|
|
|
157
157
|
"html2canvas-pro": "2.6.0",
|
|
158
158
|
"jsdom": "30.1.3",
|
|
159
159
|
"laravel-vite-plugin": "3.2.0",
|
|
160
|
+
"lucide-static": "1.73.0",
|
|
160
161
|
"magic-string": "1.4.5",
|
|
161
162
|
"preact": "11.1.0",
|
|
162
163
|
"pusher-js": "8.6.0",
|