@commentkit/comment-kit 0.6.9 → 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.
Files changed (73) hide show
  1. package/CHANGELOG.md +63 -4
  2. package/LICENSE +18 -2
  3. package/README.md +133 -88
  4. package/SECURITY.md +48 -0
  5. package/dist/THIRD_PARTY_NOTICES.txt +284 -0
  6. package/dist/angular.es.js +25 -12
  7. package/dist/comment-kit.es.js +25 -13
  8. package/dist/demo.es.js +148 -70
  9. package/dist/headless.es.js +3 -3
  10. package/dist/preact.es.js +3 -3
  11. package/dist/qwik.es.js +1 -110
  12. package/dist/qwik.qwik.mjs +114 -0
  13. package/dist/react.es.js +3 -3
  14. package/dist/shared/annotation-icons-Dh-bmNYK.js +172 -0
  15. package/dist/shared/annotation-toolbar-cGC1p-SP.js +1093 -0
  16. package/dist/shared/attachment-refresh-CzQFXHkL.js +94 -0
  17. package/dist/shared/{bridge-DRE03N9X.js → bridge-CJoGYngu.js} +6 -3
  18. package/dist/shared/{button-group-CHfMRXyA.js → button-group-CWdKaOlC.js} +14 -16
  19. package/dist/shared/capture-colors-CxSLsU5-.js +74 -0
  20. package/dist/shared/comment-drawing-canvas-DdXlMgbF.js +124 -0
  21. package/dist/shared/comment-icon-Dg9ZWpz-.js +608 -0
  22. package/dist/shared/comment-image-lightbox-B7iHjnAz.js +190 -0
  23. package/dist/shared/comment-images-content-D7YNUgo5.js +214 -0
  24. package/dist/shared/{comment-kit-core-D0kY00St.js → comment-kit-core-C862uNAm.js} +1371 -853
  25. package/dist/shared/comment-kit-ui-0vd-DY4S.js +19977 -0
  26. package/dist/shared/comment-screenshot-annotator-DcaSSuWB.js +151 -0
  27. package/dist/shared/comment-screenshot-overlay-D_nFoJmM.js +207 -0
  28. package/dist/shared/{dev-export-panel-BLngcr5q.js → dev-export-panel-pWBlhlse.js} +8 -8
  29. package/dist/shared/dev-grab-eQ9EgEGY.js +210 -0
  30. package/dist/shared/dist-De294MVF.js +623 -0
  31. package/dist/shared/{element-selector-CtFzgHvq.js → element-selector-DC-_XJ0k.js} +350 -305
  32. package/dist/shared/{icons-BSHCWYO1.js → icons-nzMOLzrm.js} +2 -3
  33. package/dist/shared/{mount-ui-CVivB_eQ.js → mount-ui-B68j8r6I.js} +4 -4
  34. package/dist/shared/{pusher-BEl7Qn-8.js → pusher-C1FHQGXV.js} +1 -1
  35. package/dist/shared/realtime-Diqz7G_y.js +317 -0
  36. package/dist/shared/realtime-recovery-DJ_adc-H.js +135 -0
  37. package/dist/shared/{separator-DusFNTs-.js → separator-XDBsaWyw.js} +891 -785
  38. package/dist/shared/{shadow-root-CmYXiSRR.js → shadow-root-CrO75sED.js} +1 -1
  39. package/dist/shared/styles-C9Jwvm0Q.js +2 -0
  40. package/dist/shared/useRender-D1z_X_BY.js +5 -0
  41. package/dist/shared/{useValueChanged-DQXLia-2.js → useValueChanged-CrzfD8l-.js} +15 -15
  42. package/dist/shared/{validation-C7QG8j7Z.js → validation-D-8u4M7I.js} +14 -1
  43. package/dist/shared/{websocket-manager-BTRqNTB7.js → websocket-manager-CFak_YHy.js} +148 -89
  44. package/dist/solid.es.js +3 -3
  45. package/dist/svelte.es.js +3 -3
  46. package/dist/types/adapters/bridge.d.ts +9 -12
  47. package/dist/types/angular/index.d.ts +15 -5
  48. package/dist/types/core/api-client.d.ts +24 -18
  49. package/dist/types/core/comment-kit-core.d.ts +28 -11
  50. package/dist/types/core/local-demo.d.ts +1 -0
  51. package/dist/types/core/types.d.ts +103 -0
  52. package/dist/types/core/websocket-manager.d.ts +12 -0
  53. package/dist/types/core/write-access.d.ts +9 -0
  54. package/dist/types/headless.d.ts +1 -1
  55. package/dist/types/index.d.ts +8 -4
  56. package/dist/types/qwik/index.d.ts +4 -1
  57. package/dist/vue.es.js +3 -3
  58. package/docs/api-reference.md +378 -0
  59. package/docs/local-demo.md +60 -0
  60. package/package.json +17 -6
  61. package/dist/shared/annotation-toolbar-pX17NLmJ.js +0 -1104
  62. package/dist/shared/clamp-CcFVX0vC.js +0 -55
  63. package/dist/shared/comment-drawing-canvas-CYu5SwRf.js +0 -126
  64. package/dist/shared/comment-image-lightbox-0VdAs2iT.js +0 -178
  65. package/dist/shared/comment-kit-ui-D2j2gvnm.js +0 -16685
  66. package/dist/shared/comment-screenshot-annotator-BuojwviY.js +0 -137
  67. package/dist/shared/comment-screenshot-overlay-BZX0Vcb8.js +0 -144
  68. package/dist/shared/dev-grab-pDAfH2lr.js +0 -203
  69. package/dist/shared/local-demo-context-BohlYbHt.js +0 -6
  70. package/dist/shared/realtime-BG_t_ze7.js +0 -281
  71. package/dist/shared/resolveAriaLabelledBy-CIKpnjNJ.js +0 -669
  72. package/dist/shared/styles-D_FEJZ9G.js +0 -2
  73. package/dist/shared/useLabelableId-DGbfdMi_.js +0 -155
package/SECURITY.md ADDED
@@ -0,0 +1,48 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ | Release | Supported |
6
+ | ------------------------------ | ---------------------------------------------- |
7
+ | Latest published SDK release | Yes |
8
+ | Older published releases | Upgrade to the latest release |
9
+ | Unpublished release candidates | Test builds; not a production security release |
10
+
11
+ Only the latest published release receives security fixes. Preparing a new version does not end support for the current published version before its successor is released.
12
+
13
+ ## Reporting a Vulnerability
14
+
15
+ Please report security vulnerabilities privately to **<security@commentkit.dev>**. Do not open public GitHub issues for security problems.
16
+
17
+ Include, where possible:
18
+
19
+ - A description of the vulnerability and its impact
20
+ - Steps to reproduce (proof-of-concept code or a minimal host page)
21
+ - The affected package and version (`@commentkit/comment-kit` or `comment-kit-mcp`)
22
+
23
+ ### Response expectations
24
+
25
+ - **Acknowledgement:** within 2 business days
26
+ - **Triage and initial assessment:** within 7 days
27
+ - **Fix or mitigation plan:** communicated within 30 days for confirmed issues
28
+
29
+ We will credit reporters in release notes unless you prefer to remain anonymous.
30
+
31
+ ## Scope
32
+
33
+ This policy covers:
34
+
35
+ - **The CommentKit SDK** (`@commentkit/comment-kit` npm package) — all framework entry points (core, React, Vue, Svelte, Angular, Solid, Qwik, Preact)
36
+ - **The MCP server** (`comment-kit-mcp` sibling package in `mcp/`)
37
+
38
+ Vulnerabilities in the hosted CommentKit backend (`api.commentkit.dev`, the dashboard) are also welcome at the same address, but are handled by the platform team.
39
+
40
+ ## Hardening Guidance for Hosts
41
+
42
+ CommentKit runs inside your page's JavaScript context — Shadow DOM isolates styles, not JS. Recommended baseline for production sites embedding the widget:
43
+
44
+ - **Content Security Policy (CSP):** serve a strict CSP so a host-page XSS cannot exfiltrate the widget session or impersonate commenters.
45
+ - **Subresource Integrity (SRI):** use SRI hashes for any third-party scripts you load alongside the widget.
46
+ - **Redaction:** screenshots mask `input[type="password"]` fields by default; mark any other sensitive element with `data-commentkit-redact` to exclude it from screenshot capture.
47
+ - **HTTPS-only `baseUrl`:** if you configure a custom `baseUrl` (self-hosted or staging API), it must be HTTPS — never point the SDK at a plain-HTTP endpoint in production.
48
+ - **Backend identity:** your realtime channel-auth endpoint must derive identity from the session token, never from client-supplied `user_id` / `user_name` / `user_email` parameters.
@@ -0,0 +1,284 @@
1
+ Third-party code included in CommentKit
2
+
3
+ The following notices apply to their respective dependencies and vendored assets.
4
+ CommentKit's own license is in the package LICENSE file.
5
+
6
+ @base-ui/react@1.9.0
7
+ ====================
8
+
9
+ MIT License
10
+
11
+ Copyright (c) 2019 Material-UI SAS
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
30
+
31
+
32
+ @base-ui/utils@0.5.0
33
+ ====================
34
+
35
+ MIT License
36
+
37
+ Copyright (c) 2019 Material-UI SAS
38
+
39
+ Permission is hereby granted, free of charge, to any person obtaining a copy
40
+ of this software and associated documentation files (the "Software"), to deal
41
+ in the Software without restriction, including without limitation the rights
42
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43
+ copies of the Software, and to permit persons to whom the Software is
44
+ furnished to do so, subject to the following conditions:
45
+
46
+ The above copyright notice and this permission notice shall be included in all
47
+ copies or substantial portions of the Software.
48
+
49
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55
+ SOFTWARE.
56
+
57
+
58
+ @floating-ui/core@1.8.0
59
+ =======================
60
+
61
+ MIT License
62
+
63
+ Copyright (c) 2021-present Floating UI contributors
64
+
65
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
66
+ this software and associated documentation files (the "Software"), to deal in
67
+ the Software without restriction, including without limitation the rights to
68
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
69
+ the Software, and to permit persons to whom the Software is furnished to do so,
70
+ subject to the following conditions:
71
+
72
+ The above copyright notice and this permission notice shall be included in all
73
+ copies or substantial portions of the Software.
74
+
75
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
77
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
78
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
79
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
80
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
81
+
82
+
83
+ @floating-ui/dom@1.8.0
84
+ ======================
85
+
86
+ MIT License
87
+
88
+ Copyright (c) 2021-present Floating UI contributors
89
+
90
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
91
+ this software and associated documentation files (the "Software"), to deal in
92
+ the Software without restriction, including without limitation the rights to
93
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
94
+ the Software, and to permit persons to whom the Software is furnished to do so,
95
+ subject to the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be included in all
98
+ copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
101
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
102
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
103
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
104
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
105
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
106
+
107
+
108
+ @floating-ui/react-dom@2.1.9
109
+ ============================
110
+
111
+ MIT License
112
+
113
+ Copyright (c) 2021-present Floating UI contributors
114
+
115
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
116
+ this software and associated documentation files (the "Software"), to deal in
117
+ the Software without restriction, including without limitation the rights to
118
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
119
+ the Software, and to permit persons to whom the Software is furnished to do so,
120
+ subject to the following conditions:
121
+
122
+ The above copyright notice and this permission notice shall be included in all
123
+ copies or substantial portions of the Software.
124
+
125
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
126
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
127
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
128
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
129
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
130
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
131
+
132
+
133
+ @floating-ui/utils@0.2.12
134
+ =========================
135
+
136
+ MIT License
137
+
138
+ Copyright (c) 2021-present Floating UI contributors
139
+
140
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
141
+ this software and associated documentation files (the "Software"), to deal in
142
+ the Software without restriction, including without limitation the rights to
143
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
144
+ the Software, and to permit persons to whom the Software is furnished to do so,
145
+ subject to the following conditions:
146
+
147
+ The above copyright notice and this permission notice shall be included in all
148
+ copies or substantial portions of the Software.
149
+
150
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
151
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
152
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
153
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
154
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
155
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
156
+
157
+
158
+ @hugeicons/core-free-icons@4.3.5 (selected icon geometry)
159
+ =========================================================
160
+
161
+ Selected geometry from @hugeicons/core-free-icons 4.3.5.
162
+ MIT License
163
+
164
+ Copyright (c) 2025 Hugeicons
165
+
166
+ Permission is hereby granted, free of charge, to any person obtaining a copy
167
+ of this software and associated documentation files (the "Software"), to deal
168
+ in the Software without restriction, including without limitation the rights
169
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
170
+ copies of the Software, and to permit persons to whom the Software is
171
+ furnished to do so, subject to the following conditions:
172
+
173
+ The above copyright notice and this permission notice shall be included in all
174
+ copies or substantial portions of the Software.
175
+
176
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
177
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
178
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
179
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
180
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
181
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
182
+ SOFTWARE.
183
+
184
+
185
+ @tabler/icons-react@3.49.0
186
+ ==========================
187
+
188
+ MIT License
189
+
190
+ Copyright (c) 2020-2026 Paweł Kuna
191
+
192
+ Permission is hereby granted, free of charge, to any person obtaining a copy
193
+ of this software and associated documentation files (the "Software"), to deal
194
+ in the Software without restriction, including without limitation the rights
195
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
196
+ copies of the Software, and to permit persons to whom the Software is
197
+ furnished to do so, subject to the following conditions:
198
+
199
+ The above copyright notice and this permission notice shall be included in all
200
+ copies or substantial portions of the Software.
201
+
202
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
203
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
204
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
205
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
206
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
207
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
208
+ SOFTWARE.
209
+
210
+
211
+ input-otp@1.5.0
212
+ ===============
213
+
214
+ MIT License
215
+
216
+ Copyright (c) 2024 Guilherme Rodz
217
+
218
+ Permission is hereby granted, free of charge, to any person obtaining a copy
219
+ of this software and associated documentation files (the "Software"), to deal
220
+ in the Software without restriction, including without limitation the rights
221
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
222
+ copies of the Software, and to permit persons to whom the Software is
223
+ furnished to do so, subject to the following conditions:
224
+
225
+ The above copyright notice and this permission notice shall be included in all
226
+ copies or substantial portions of the Software.
227
+
228
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
229
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
230
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
231
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
232
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
233
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
234
+ SOFTWARE.
235
+
236
+
237
+ pusher-js@8.6.0
238
+ ===============
239
+
240
+ Copyright (c) 2020 Pusher, Ltd (https://pusher.com)
241
+
242
+ Permission is hereby granted, free of charge, to any person obtaining a copy
243
+ of this software and associated documentation files (the "Software"), to deal
244
+ in the Software without restriction, including without limitation the rights
245
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
246
+ copies of the Software, and to permit persons to whom the Software is
247
+ furnished to do so, subject to the following conditions:
248
+
249
+ The above copyright notice and this permission notice shall be included in
250
+ all copies or substantial portions of the Software.
251
+
252
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
253
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
254
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
255
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
256
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
257
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
258
+ THE SOFTWARE.
259
+
260
+
261
+ sonner@2.0.8
262
+ ============
263
+
264
+ MIT License
265
+
266
+ Copyright (c) 2023 Emil Kowalski
267
+
268
+ Permission is hereby granted, free of charge, to any person obtaining a copy
269
+ of this software and associated documentation files (the "Software"), to deal
270
+ in the Software without restriction, including without limitation the rights
271
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
272
+ copies of the Software, and to permit persons to whom the Software is
273
+ furnished to do so, subject to the following conditions:
274
+
275
+ The above copyright notice and this permission notice shall be included in all
276
+ copies or substantial portions of the Software.
277
+
278
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
279
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
280
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
281
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
282
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
283
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
284
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
- import { t as e } from "./shared/comment-kit-core-D0kY00St.js";
2
- import { n as t, r as n, t as r } from "./shared/bridge-DRE03N9X.js";
1
+ import { t as e } from "./shared/comment-kit-core-C862uNAm.js";
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";
5
5
  import { BehaviorSubject as u } from "rxjs";
@@ -90,6 +90,15 @@ var v = class {
90
90
  loadMoreComments() {
91
91
  return this.assertReadyAsync() ?? this.bridge.loadMoreComments();
92
92
  }
93
+ reloadComments() {
94
+ return this.assertReadyAsync() ?? this.bridge.reloadComments();
95
+ }
96
+ setBranch(...e) {
97
+ return this.assertReadyAsync() ?? this.bridge.setBranch(...e);
98
+ }
99
+ reloadProjectContext() {
100
+ return this.assertReadyAsync() ?? this.bridge.reloadProjectContext();
101
+ }
93
102
  getProjectMembers() {
94
103
  return this.assertReadyAsync() ?? this.bridge.getProjectMembers();
95
104
  }
@@ -114,17 +123,17 @@ var v = class {
114
123
  selectComment(...e) {
115
124
  this.assertReady(), this.bridge.selectComment(...e);
116
125
  }
117
- addReply(e, t) {
118
- return this.assertReadyAsync() ?? this.bridge.addReply(e, t);
126
+ addReply(...e) {
127
+ return this.assertReadyAsync() ?? this.bridge.addReply(...e);
119
128
  }
120
- updateReply(e, t, n) {
121
- return this.assertReadyAsync() ?? this.bridge.updateReply(e, t, n);
129
+ updateReply(...e) {
130
+ return this.assertReadyAsync() ?? this.bridge.updateReply(...e);
122
131
  }
123
132
  deleteReply(e, t) {
124
133
  return this.assertReadyAsync() ?? this.bridge.deleteReply(e, t);
125
134
  }
126
- reactToComment(e, t) {
127
- return this.assertReadyAsync() ?? this.bridge.reactToComment(e, t);
135
+ reactToComment(...e) {
136
+ return this.assertReadyAsync() ?? this.bridge.reactToComment(...e);
128
137
  }
129
138
  updateCommentPosition(e, t, n) {
130
139
  return this.assertReadyAsync() ?? this.bridge.updateCommentPosition(e, t, n);
@@ -150,8 +159,8 @@ var v = class {
150
159
  setActiveScreenshot(...e) {
151
160
  this.assertReady(), this.bridge.setActiveScreenshot(...e);
152
161
  }
153
- uploadFiles(e) {
154
- return this.assertReadyAsync() ?? this.bridge.uploadFiles(e);
162
+ uploadFiles(...e) {
163
+ return this.assertReadyAsync() ?? this.bridge.uploadFiles(...e);
155
164
  }
156
165
  markThreadSeen(e) {
157
166
  this.assertReady(), this.bridge.markThreadSeen(e);
@@ -238,7 +247,7 @@ var v = class {
238
247
  }
239
248
  async mountSharedUI(e, t, n) {
240
249
  try {
241
- let { mountCommentKitUI: n } = await import("./shared/mount-ui-CVivB_eQ.js").then((e) => e.n);
250
+ let { mountCommentKitUI: n } = await import("./shared/mount-ui-B68j8r6I.js").then((e) => e.n);
242
251
  if (this.core !== e || this.lifecycleId !== t) return;
243
252
  let r = await n(e);
244
253
  if (this.core !== e || this.lifecycleId !== t) {
@@ -278,7 +287,11 @@ function y() {
278
287
  return new v();
279
288
  }
280
289
  function b(e) {
281
- return [v, {
290
+ return [{
291
+ provide: v,
292
+ useFactory: (e) => new v(e),
293
+ deps: [g]
294
+ }, {
282
295
  provide: g,
283
296
  useValue: e
284
297
  }];
@@ -1,5 +1,5 @@
1
- import { t as e } from "./shared/websocket-manager-BTRqNTB7.js";
2
- import { a as t, c as n, f as r, g as i, h as a, l as o, m as s, n as c, t as l } from "./shared/comment-kit-core-D0kY00St.js";
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 l(e), e.enabled !== !1 && T && this.mount();
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-CVivB_eQ.js").then((e) => e.n);
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) {
@@ -91,21 +91,30 @@ var T = typeof window < "u", E = class {
91
91
  selectComment(e) {
92
92
  this.core.selectComment(e);
93
93
  }
94
- addReply(e, t) {
95
- return this.core.addReply(e, t);
94
+ addReply(...e) {
95
+ return this.core.addReply(...e);
96
96
  }
97
- updateReply(e, t, n) {
98
- return this.core.updateReply(e, t, n);
97
+ updateReply(...e) {
98
+ return this.core.updateReply(...e);
99
99
  }
100
100
  deleteReply(e, t) {
101
101
  return this.core.deleteReply(e, t);
102
102
  }
103
- reactToComment(e, t) {
104
- return this.core.reactToComment(e, t);
103
+ reactToComment(...e) {
104
+ return this.core.reactToComment(...e);
105
105
  }
106
106
  updateCommentPosition(e, t, n) {
107
107
  return this.core.updateCommentPosition(e, t, n);
108
108
  }
109
+ setBranch(e) {
110
+ return this.core.setBranch(e);
111
+ }
112
+ reloadProjectContext() {
113
+ return this.core.reloadProjectContext();
114
+ }
115
+ reloadComments() {
116
+ return this.core.reloadComments();
117
+ }
109
118
  loadMoreComments() {
110
119
  return this.core.loadMoreComments();
111
120
  }
@@ -130,8 +139,8 @@ var T = typeof window < "u", E = class {
130
139
  setActiveScreenshot(e) {
131
140
  this.core.setActiveScreenshot(e);
132
141
  }
133
- uploadFiles(e) {
134
- return this.core.uploadFiles(e);
142
+ uploadFiles(...e) {
143
+ return this.core.uploadFiles(...e);
135
144
  }
136
145
  getOnlineUsers() {
137
146
  return this.core.getOnlineUsers();
@@ -148,6 +157,9 @@ var T = typeof window < "u", E = class {
148
157
  isThreadNew(e) {
149
158
  return this.core.isThreadNew(e);
150
159
  }
160
+ blockEscape() {
161
+ return this.core.blockEscape();
162
+ }
151
163
  setPanelView(e) {
152
164
  this.core.setPanelView(e);
153
165
  }
@@ -203,4 +215,4 @@ var T = typeof window < "u", E = class {
203
215
  /* v8 ignore start */
204
216
  T && (window.CommentKit = E, window.CommentKitConfig && !window.CommentKitInstance && (window.CommentKitInstance = new E(window.CommentKitConfig)));
205
217
  /* v8 ignore stop */
206
- export { r as ApiClient, E as CommentKit, l as CommentKitCore, t as EventEmitter, c as SDK_VERSION, e as WebSocketManager, n as createAgentContext, w as createCommentKitDemo, S as debounce, _ as findElement, o as formatAgentContext, s 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, a as parseMentions, p as percentageToViewport, i as stripMentionMarkup, y as throttle, g as viewportToPercentage };
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 };