@commentkit/comment-kit 0.6.1 → 0.6.3
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 +7 -0
- package/README.md +63 -60
- package/dist/angular/{comment-kit-ui-wEJfMh4T.js → comment-kit-ui-BYFqkQq1.js} +1 -1
- package/dist/angular/{mount-ui-CxChSb8B.js → mount-ui-CM6GekDi.js} +1 -1
- package/dist/angular/{realtime-CfJZMEAi.js → realtime-D-sBnozI.js} +1 -1
- package/dist/angular.es.js +5 -5
- package/dist/comment-kit.es.js +5 -5
- package/dist/core/{comment-kit-ui-DjWARy4X.js → comment-kit-ui-BiJZt5rE.js} +1 -1
- package/dist/core/{mount-ui-DrFjMJJu.js → mount-ui-EgkHvqV9.js} +1 -1
- package/dist/core/{realtime-DYf6E_sN.js → realtime-yUS-GhJ_.js} +1 -1
- package/dist/preact/{comment-kit-ui-BKi15Z4Q.js → comment-kit-ui-BUrKxAhh.js} +1 -1
- package/dist/preact/{mount-ui-b9JcJQYE.js → mount-ui-2SqQgVGO.js} +1 -1
- package/dist/preact/{realtime-BFgP4BlB.js → realtime-PCo5q96o.js} +1 -1
- package/dist/preact.es.js +5 -5
- package/dist/qwik/{comment-kit-ui-CRmJhZlX.js → comment-kit-ui-DYW9KrsB.js} +1 -1
- package/dist/qwik/{mount-ui-CaRrLb9u.js → mount-ui-DcWO4cw4.js} +1 -1
- package/dist/qwik/{realtime-DUhkZAVc.js → realtime-BJTjcla8.js} +1 -1
- package/dist/qwik.es.js +5 -5
- package/dist/react/{realtime-C7h-Agwo.js → realtime-DtkfBr0e.js} +1 -1
- package/dist/react.es.js +5 -5
- package/dist/solid/{comment-kit-ui-Dw_67h_e.js → comment-kit-ui-B2LPR7cY.js} +1 -1
- package/dist/solid/{mount-ui-bPWYgjmm.js → mount-ui-zLYWCM7u.js} +1 -1
- package/dist/solid/{realtime-DK86zDCJ.js → realtime-CthMPv02.js} +1 -1
- package/dist/solid.es.js +5 -5
- package/dist/svelte/{comment-kit-ui-DhCWlEd8.js → comment-kit-ui-D__j1cXs.js} +1 -1
- package/dist/svelte/{mount-ui-DtXWMEYn.js → mount-ui-DoUxiZdf.js} +1 -1
- package/dist/svelte/{realtime-zYOctwRk.js → realtime-TdWPhe9S.js} +1 -1
- package/dist/svelte.es.js +5 -5
- package/dist/vue/{comment-kit-ui-BX1wDZ2c.js → comment-kit-ui-B0id65SI.js} +1 -1
- package/dist/vue/{mount-ui-DdTYzv6J.js → mount-ui-QijqPINi.js} +1 -1
- package/dist/vue/{realtime-YJKvS2eB.js → realtime-2P9gIgF8.js} +1 -1
- package/dist/vue.es.js +5 -5
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.3] - 2026-10-11
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Package name is `@commentkit/comment-kit`.
|
|
15
|
+
- Default API host is `https://api.commentkit.dev/api`.
|
|
16
|
+
|
|
10
17
|
## [0.6.1] - 2026-06-19
|
|
11
18
|
|
|
12
19
|
### Fixed
|
package/README.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
**Figma-style comments, drawing, and feedback for any website.**
|
|
4
4
|
Drop-in SDK for React, Vue, Svelte, Angular, Solid.js, Qwik, Preact, and vanilla JavaScript.
|
|
5
5
|
|
|
6
|
-
[npm version](https://www.npmjs.com/package/comment-kit)
|
|
7
|
-
[downloads](https://www.npmjs.com/package/comment-kit)
|
|
6
|
+
[npm version](https://www.npmjs.com/package/@commentkit/comment-kit)
|
|
7
|
+
[downloads](https://www.npmjs.com/package/@commentkit/comment-kit)
|
|
8
8
|
[license](https://github.com/commentkit/comment-kit/blob/main/LICENSE)
|
|
9
|
-
[docs](https://commentkit.
|
|
9
|
+
[docs](https://commentkit.dev/docs)
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -49,12 +49,12 @@ Drop-in SDK for React, Vue, Svelte, Angular, Solid.js, Qwik, Preact, and vanilla
|
|
|
49
49
|
### 1. Install
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
npm install comment-kit
|
|
52
|
+
npm install @commentkit/comment-kit
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### 2. Get Your API Key
|
|
56
56
|
|
|
57
|
-
1. Sign up at [commentkit.
|
|
57
|
+
1. Sign up at [commentkit.dev](https://commentkit.dev)
|
|
58
58
|
2. Create an organization
|
|
59
59
|
3. Create a project inside the organization
|
|
60
60
|
4. Copy the **API key** from the project dashboard
|
|
@@ -72,9 +72,12 @@ Next.js 16 with Turbopack prerenders `/_not-found` during `next build`. CommentK
|
|
|
72
72
|
"use client";
|
|
73
73
|
import dynamic from "next/dynamic";
|
|
74
74
|
|
|
75
|
-
const CommentKit = dynamic(
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
const CommentKit = dynamic(
|
|
76
|
+
() => import("@commentkit/comment-kit/react").then((m) => m.CommentKit),
|
|
77
|
+
{
|
|
78
|
+
ssr: false,
|
|
79
|
+
},
|
|
80
|
+
);
|
|
78
81
|
|
|
79
82
|
export function CommentKitClient(props: { apiKey: string }) {
|
|
80
83
|
return <CommentKit apiKey={props.apiKey} />;
|
|
@@ -101,7 +104,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|
|
101
104
|
|
|
102
105
|
```tsx
|
|
103
106
|
// pages/_app.tsx
|
|
104
|
-
import { CommentKit } from "comment-kit/react";
|
|
107
|
+
import { CommentKit } from "@commentkit/comment-kit/react";
|
|
105
108
|
import type { AppProps } from "next/app";
|
|
106
109
|
|
|
107
110
|
export default function App({ Component, pageProps }: AppProps) {
|
|
@@ -123,7 +126,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
|
|
123
126
|
|
|
124
127
|
```tsx
|
|
125
128
|
// app/root.tsx
|
|
126
|
-
import { CommentKit } from "comment-kit/react";
|
|
129
|
+
import { CommentKit } from "@commentkit/comment-kit/react";
|
|
127
130
|
|
|
128
131
|
export default function App() {
|
|
129
132
|
return (
|
|
@@ -147,7 +150,7 @@ export default function App() {
|
|
|
147
150
|
|
|
148
151
|
```tsx
|
|
149
152
|
// main.tsx or App.tsx
|
|
150
|
-
import { CommentKit } from "comment-kit/react";
|
|
153
|
+
import { CommentKit } from "@commentkit/comment-kit/react";
|
|
151
154
|
|
|
152
155
|
export default function App() {
|
|
153
156
|
return (
|
|
@@ -163,7 +166,7 @@ export default function App() {
|
|
|
163
166
|
|
|
164
167
|
```vue
|
|
165
168
|
<script setup>
|
|
166
|
-
import { useCommentKit } from "comment-kit/vue";
|
|
169
|
+
import { useCommentKit } from "@commentkit/comment-kit/vue";
|
|
167
170
|
|
|
168
171
|
// Reactive refs — auto-update when state changes.
|
|
169
172
|
// Theme auto-detects. Tooltips built into the toolbar.
|
|
@@ -178,7 +181,7 @@ Or register as a plugin:
|
|
|
178
181
|
|
|
179
182
|
```ts
|
|
180
183
|
// main.ts — makes useCommentKit available app-wide via provide/inject
|
|
181
|
-
import { CommentKitPlugin } from "comment-kit/vue";
|
|
184
|
+
import { CommentKitPlugin } from "@commentkit/comment-kit/vue";
|
|
182
185
|
|
|
183
186
|
app.use(CommentKitPlugin);
|
|
184
187
|
```
|
|
@@ -191,7 +194,7 @@ CommentKit must never load on the Nitro server. The cleanest pattern is a compon
|
|
|
191
194
|
<!-- components/CommentKitClient.client.vue -->
|
|
192
195
|
<script setup lang="ts">
|
|
193
196
|
import { onMounted } from "vue";
|
|
194
|
-
import { useCommentKit } from "comment-kit/vue";
|
|
197
|
+
import { useCommentKit } from "@commentkit/comment-kit/vue";
|
|
195
198
|
|
|
196
199
|
onMounted(() => {
|
|
197
200
|
useCommentKit({ apiKey: "your-api-key" });
|
|
@@ -215,7 +218,7 @@ onMounted(() => {
|
|
|
215
218
|
|
|
216
219
|
```svelte
|
|
217
220
|
<script>
|
|
218
|
-
import { useCommentKit } from "comment-kit/svelte";
|
|
221
|
+
import { useCommentKit } from "@commentkit/comment-kit/svelte";
|
|
219
222
|
|
|
220
223
|
// Svelte stores — use $store syntax for reactivity.
|
|
221
224
|
// Theme auto-detects. Tooltips built into the toolbar.
|
|
@@ -231,7 +234,7 @@ onMounted(() => {
|
|
|
231
234
|
|
|
232
235
|
**SvelteKit**
|
|
233
236
|
|
|
234
|
-
SvelteKit prerenders pages on the server, so dynamic-import inside `onMount` (which is client-only by definition) keeps
|
|
237
|
+
SvelteKit prerenders pages on the server, so dynamic-import inside `onMount` (which is client-only by definition) keeps `@commentkit/comment-kit/svelte` off the SSR module graph entirely.
|
|
235
238
|
|
|
236
239
|
```svelte
|
|
237
240
|
<!-- src/routes/+layout.svelte -->
|
|
@@ -241,7 +244,7 @@ SvelteKit prerenders pages on the server, so dynamic-import inside `onMount` (wh
|
|
|
241
244
|
|
|
242
245
|
onMount(async () => {
|
|
243
246
|
if (!browser) return;
|
|
244
|
-
const { useCommentKit } = await import("comment-kit/svelte");
|
|
247
|
+
const { useCommentKit } = await import("@commentkit/comment-kit/svelte");
|
|
245
248
|
useCommentKit({ apiKey: "your-api-key" });
|
|
246
249
|
});
|
|
247
250
|
</script>
|
|
@@ -253,7 +256,7 @@ SvelteKit prerenders pages on the server, so dynamic-import inside `onMount` (wh
|
|
|
253
256
|
|
|
254
257
|
```typescript
|
|
255
258
|
// app.config.ts
|
|
256
|
-
import { provideCommentKit } from "comment-kit/angular";
|
|
259
|
+
import { provideCommentKit } from "@commentkit/comment-kit/angular";
|
|
257
260
|
|
|
258
261
|
export const appConfig = {
|
|
259
262
|
providers: [
|
|
@@ -269,7 +272,7 @@ export const appConfig = {
|
|
|
269
272
|
|
|
270
273
|
```typescript
|
|
271
274
|
// app.component.ts
|
|
272
|
-
import { CommentKitService } from "comment-kit/angular";
|
|
275
|
+
import { CommentKitService } from "@commentkit/comment-kit/angular";
|
|
273
276
|
|
|
274
277
|
@Component({ ... })
|
|
275
278
|
export class AppComponent {
|
|
@@ -283,7 +286,7 @@ export class AppComponent {
|
|
|
283
286
|
**Solid.js / SolidStart**
|
|
284
287
|
|
|
285
288
|
```tsx
|
|
286
|
-
import { useCommentKit } from "comment-kit/solid";
|
|
289
|
+
import { useCommentKit } from "@commentkit/comment-kit/solid";
|
|
287
290
|
|
|
288
291
|
function App() {
|
|
289
292
|
// Solid signals — auto-track dependencies, fine-grained reactivity.
|
|
@@ -300,7 +303,7 @@ function App() {
|
|
|
300
303
|
|
|
301
304
|
```tsx
|
|
302
305
|
import { component$ } from "@builder.io/qwik";
|
|
303
|
-
import { useCommentKit$ } from "comment-kit/qwik";
|
|
306
|
+
import { useCommentKit$ } from "@commentkit/comment-kit/qwik";
|
|
304
307
|
|
|
305
308
|
export default component$(() => {
|
|
306
309
|
// Qwik signals — serializable, resumable.
|
|
@@ -316,7 +319,7 @@ export default component$(() => {
|
|
|
316
319
|
**Preact**
|
|
317
320
|
|
|
318
321
|
```tsx
|
|
319
|
-
import { useCommentKit } from "comment-kit/preact";
|
|
322
|
+
import { useCommentKit } from "@commentkit/comment-kit/preact";
|
|
320
323
|
|
|
321
324
|
function App() {
|
|
322
325
|
// Preact hooks — lightweight React alternative.
|
|
@@ -340,7 +343,7 @@ import { useEffect, useState } from "react";
|
|
|
340
343
|
export default function CommentKitClient({ apiKey }: { apiKey: string }) {
|
|
341
344
|
const [Cmp, setCmp] = useState<React.ComponentType<{ apiKey: string }> | null>(null);
|
|
342
345
|
useEffect(() => {
|
|
343
|
-
import("comment-kit/react").then((m) => setCmp(() => m.CommentKit));
|
|
346
|
+
import("@commentkit/comment-kit/react").then((m) => setCmp(() => m.CommentKit));
|
|
344
347
|
}, []);
|
|
345
348
|
return Cmp ? <Cmp apiKey={apiKey} /> : null;
|
|
346
349
|
}
|
|
@@ -363,7 +366,7 @@ Or use vanilla JS in any `.astro` page:
|
|
|
363
366
|
|
|
364
367
|
```html
|
|
365
368
|
<script>
|
|
366
|
-
import { CommentKit } from "comment-kit";
|
|
369
|
+
import { CommentKit } from "@commentkit/comment-kit";
|
|
367
370
|
new CommentKit({ apiKey: "your-api-key" });
|
|
368
371
|
</script>
|
|
369
372
|
```
|
|
@@ -375,7 +378,7 @@ Or use vanilla JS in any `.astro` page:
|
|
|
375
378
|
Theme follows .dark class on <html> or system preference.
|
|
376
379
|
Tooltips, dialogs, and panels are built-in. -->
|
|
377
380
|
<script type="module">
|
|
378
|
-
import { CommentKit } from "comment-kit";
|
|
381
|
+
import { CommentKit } from "@commentkit/comment-kit";
|
|
379
382
|
|
|
380
383
|
const ck = new CommentKit({
|
|
381
384
|
apiKey: "your-api-key",
|
|
@@ -404,7 +407,7 @@ The SDK auto-detects `?ck_invite=` from the URL — no code changes needed.
|
|
|
404
407
|
|
|
405
408
|
Every framework and meta-framework gets the full CommentKit UI — identical toolbar, sidebar, login, and comments panel rendered in Shadow DOM.
|
|
406
409
|
|
|
407
|
-
**React family** —
|
|
410
|
+
**React family** — `@commentkit/comment-kit/react`
|
|
408
411
|
|
|
409
412
|
| Framework / Tool | Notes |
|
|
410
413
|
| ----------------------- | --------------------------------------------------------------------- |
|
|
@@ -424,7 +427,7 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
424
427
|
| Nextra | Drop into `theme.config.tsx` layout |
|
|
425
428
|
| Laravel Inertia (React) | Mount in `app.tsx` |
|
|
426
429
|
|
|
427
|
-
**Vue family** —
|
|
430
|
+
**Vue family** — `@commentkit/comment-kit/vue`
|
|
428
431
|
|
|
429
432
|
| Framework / Tool | Notes |
|
|
430
433
|
| --------------------- | ------------------------------------------------------------------ |
|
|
@@ -435,7 +438,7 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
435
438
|
| Vike-Vue | Mount in `_default.page.client.ts` |
|
|
436
439
|
| Laravel Inertia (Vue) | Mount in `app.ts` |
|
|
437
440
|
|
|
438
|
-
**Svelte family** —
|
|
441
|
+
**Svelte family** — `@commentkit/comment-kit/svelte`
|
|
439
442
|
|
|
440
443
|
| Framework / Tool | Notes |
|
|
441
444
|
| ------------------------ | ------------------------------------------------------- |
|
|
@@ -443,7 +446,7 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
443
446
|
| SvelteKit | Gate on `browser` from `$app/environment` (see snippet) |
|
|
444
447
|
| Laravel Inertia (Svelte) | Mount in `app.ts` |
|
|
445
448
|
|
|
446
|
-
**Angular family** —
|
|
449
|
+
**Angular family** — `@commentkit/comment-kit/angular`
|
|
447
450
|
|
|
448
451
|
| Framework / Tool | Notes |
|
|
449
452
|
| ------------------------ | -------------------------------------------------- |
|
|
@@ -451,7 +454,7 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
451
454
|
| Analog | Angular-based meta-framework; same provider |
|
|
452
455
|
| Angular Universal | Provider is browser-only-safe (SSR-aware) |
|
|
453
456
|
|
|
454
|
-
**Solid family** —
|
|
457
|
+
**Solid family** — `@commentkit/comment-kit/solid`
|
|
455
458
|
|
|
456
459
|
| Framework / Tool | Notes |
|
|
457
460
|
| ---------------- | ------------------------------------ |
|
|
@@ -459,28 +462,28 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
459
462
|
| SolidStart | Use inside a `<ClientOnly>` boundary |
|
|
460
463
|
| Vike-Solid | Same as SolidStart |
|
|
461
464
|
|
|
462
|
-
**Qwik family** —
|
|
465
|
+
**Qwik family** — `@commentkit/comment-kit/qwik`
|
|
463
466
|
|
|
464
467
|
| Framework / Tool | Notes |
|
|
465
468
|
| ---------------- | ---------------------------------------------------- |
|
|
466
469
|
| Qwik | Inside `useVisibleTask$` (client-only by definition) |
|
|
467
470
|
| QwikCity | Same; mount in `root.tsx` |
|
|
468
471
|
|
|
469
|
-
**Preact family** —
|
|
472
|
+
**Preact family** — `@commentkit/comment-kit/preact`
|
|
470
473
|
|
|
471
474
|
| Framework / Tool | Notes |
|
|
472
475
|
| ---------------- | ------------------------------ |
|
|
473
476
|
| Preact | Vite, esbuild — same import |
|
|
474
477
|
| Fresh (Deno) | Use in an `islands/` component |
|
|
475
478
|
|
|
476
|
-
**Multi-framework / unified** —
|
|
479
|
+
**Multi-framework / unified** — `@commentkit/comment-kit/react`, `@commentkit/comment-kit/vue`, `@commentkit/comment-kit/svelte`, `@commentkit/comment-kit/preact`, or `@commentkit/comment-kit/solid` depending on island
|
|
477
480
|
|
|
478
481
|
| Framework / Tool | Notes |
|
|
479
482
|
| ---------------------- | ------------------------------------------------------- |
|
|
480
483
|
| Astro | Use any adapter under `client:only` matching the island |
|
|
481
484
|
| Vike (multi-framework) | Pick adapter matching your selected framework |
|
|
482
485
|
|
|
483
|
-
**Vanilla / Web Components / HTML-first** —
|
|
486
|
+
**Vanilla / Web Components / HTML-first** — `@commentkit/comment-kit`
|
|
484
487
|
|
|
485
488
|
| Framework / Tool | Notes |
|
|
486
489
|
| -------------------------- | ------------------------------------------------------- |
|
|
@@ -496,7 +499,7 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
496
499
|
| Laravel Filament | Drop the `<script>` into a custom page layout |
|
|
497
500
|
| Mitosis | Mount in the compiled framework's init |
|
|
498
501
|
|
|
499
|
-
**WebView / hybrid shells** —
|
|
502
|
+
**WebView / hybrid shells** — `@commentkit/comment-kit` (vanilla), works the same as a normal page
|
|
500
503
|
|
|
501
504
|
| Shell | Notes |
|
|
502
505
|
| ----------------- | ---------------------------------------------- |
|
|
@@ -661,22 +664,22 @@ To disable in production:
|
|
|
661
664
|
|
|
662
665
|
CommentKit is designed to be safe for production use on customer-facing websites.
|
|
663
666
|
|
|
664
|
-
| Concern | How CommentKit handles it
|
|
665
|
-
| ----------------------------- |
|
|
666
|
-
| **No telemetry** | The SDK sends zero analytics, tracking, or telemetry data. No data is collected from your users.
|
|
667
|
-
| **No phone-home** | The SDK only communicates with `api.commentkit.
|
|
668
|
-
| **No install scripts** | `npm install` runs zero code. No `postinstall`, `preinstall`, or lifecycle scripts.
|
|
669
|
-
| **No dynamic code execution** | Zero `eval()`, `new Function()`, `innerHTML`, or `document.write`.
|
|
670
|
-
| **Shadow DOM isolation** | All UI renders inside Shadow DOM. CommentKit cannot read or modify your page's DOM, CSS, or JavaScript. Your page cannot interfere with CommentKit.
|
|
671
|
-
| **Source maps disabled** | No `.map` files ship. No `sourceMappingURL` in built files.
|
|
672
|
-
| **OTP authentication** | All commenters verify via email OTP. No passwords stored.
|
|
667
|
+
| Concern | How CommentKit handles it |
|
|
668
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
669
|
+
| **No telemetry** | The SDK sends zero analytics, tracking, or telemetry data. No data is collected from your users. |
|
|
670
|
+
| **No phone-home** | The SDK only communicates with `api.commentkit.dev` (your backend) by default. Google Fonts (`fonts.googleapis.com`) is contacted only when you opt in via `ui.loadRemoteFonts: true`. No other third-party services. |
|
|
671
|
+
| **No install scripts** | `npm install` runs zero code. No `postinstall`, `preinstall`, or lifecycle scripts. |
|
|
672
|
+
| **No dynamic code execution** | Zero `eval()`, `new Function()`, `innerHTML`, or `document.write`. |
|
|
673
|
+
| **Shadow DOM isolation** | All UI renders inside Shadow DOM. CommentKit cannot read or modify your page's DOM, CSS, or JavaScript. Your page cannot interfere with CommentKit. |
|
|
674
|
+
| **Source maps disabled** | No `.map` files ship. No `sourceMappingURL` in built files. |
|
|
675
|
+
| **OTP authentication** | All commenters verify via email OTP. No passwords stored. |
|
|
673
676
|
| **Session persistence** | Sanctum Bearer token is kept in **sessionStorage** (tab-scoped) so in-tab refresh keeps auth and the offline queue can drain. Closing the tab clears the session; logout / auth-expiry also clear the offline queue. Prefer Bearer over `X-User-Email` (spoofable). |
|
|
674
|
-
| **Origin allowlist** | Browser requests must match the project's `allowed_domains` (wildcards like `*.example.com` supported). Empty allowlists deny browser traffic unless the backend enables `COMMENTKIT_ALLOW_EMPTY_ALLOWED_DOMAINS`. Server/MCP clients may omit `Origin`.
|
|
675
|
-
| **GDPR** | CommentKit stores only email and display name for authenticated commenters. No cookies. No fingerprinting. No cross-site tracking.
|
|
677
|
+
| **Origin allowlist** | Browser requests must match the project's `allowed_domains` (wildcards like `*.example.com` supported). Empty allowlists deny browser traffic unless the backend enables `COMMENTKIT_ALLOW_EMPTY_ALLOWED_DOMAINS`. Server/MCP clients may omit `Origin`. |
|
|
678
|
+
| **GDPR** | CommentKit stores only email and display name for authenticated commenters. No cookies. No fingerprinting. No cross-site tracking. |
|
|
676
679
|
|
|
677
680
|
### Backend API contract (SDK ↔ backend-v2)
|
|
678
681
|
|
|
679
|
-
- Base path is `/api` (not `/api/v1`). Default host: `https://api.commentkit.
|
|
682
|
+
- Base path is `/api` (not `/api/v1`). Default host: `https://api.commentkit.dev/api`.
|
|
680
683
|
- Auth: `X-API-Key` on every route; user identity via `Authorization: Bearer` (Sanctum ability `sdk`). Prefer Bearer over `X-User-Email` (only honored when `COMMENTKIT_ALLOW_EMAIL_AUTH=true`).
|
|
681
684
|
- Attachments: create a comment then `POST .../files` with `comment_id`, **or** upload first and pass `attachment_ids` on create/update. Unlinked orphans do not appear on comments.
|
|
682
685
|
- MCP comment reads may use API key only when `COMMENTKIT_MACHINE_READ_ENABLED` is on; mutations still need Bearer.
|
|
@@ -702,16 +705,16 @@ See [SECURITY.md](./SECURITY.md) for how to report security issues and our suppo
|
|
|
702
705
|
|
|
703
706
|
## Bundle Size
|
|
704
707
|
|
|
705
|
-
| Entry
|
|
706
|
-
|
|
|
707
|
-
| Core (
|
|
708
|
-
| React (
|
|
709
|
-
| Vue (
|
|
710
|
-
| Svelte (
|
|
711
|
-
| Angular (
|
|
712
|
-
| Solid.js (
|
|
713
|
-
| Qwik (
|
|
714
|
-
| Preact (
|
|
708
|
+
| Entry | Raw | Gzipped |
|
|
709
|
+
| ------------------------------------------- | ------ | ------- |
|
|
710
|
+
| Core (`@commentkit/comment-kit`) | 101 KB | ~25 KB |
|
|
711
|
+
| React (`@commentkit/comment-kit/react`) | 450 KB | ~117 KB |
|
|
712
|
+
| Vue (`@commentkit/comment-kit/vue`) | 104 KB | ~25 KB |
|
|
713
|
+
| Svelte (`@commentkit/comment-kit/svelte`) | 104 KB | ~25 KB |
|
|
714
|
+
| Angular (`@commentkit/comment-kit/angular`) | 111 KB | ~26 KB |
|
|
715
|
+
| Solid.js (`@commentkit/comment-kit/solid`) | 103 KB | ~25 KB |
|
|
716
|
+
| Qwik (`@commentkit/comment-kit/qwik`) | 102 KB | ~25 KB |
|
|
717
|
+
| Preact (`@commentkit/comment-kit/preact`) | 102 KB | ~25 KB |
|
|
715
718
|
|
|
716
719
|
Tree-shakeable ESM. Only the entry point you import is bundled.
|
|
717
720
|
|
|
@@ -758,10 +761,10 @@ CommentKit is proprietary software. See [LICENSE](./LICENSE) for details.
|
|
|
758
761
|
|
|
759
762
|
## Links
|
|
760
763
|
|
|
761
|
-
- [Documentation](https://commentkit.
|
|
762
|
-
- [Dashboard](https://commentkit.
|
|
764
|
+
- [Documentation](https://commentkit.dev/docs)
|
|
765
|
+
- [Dashboard](https://commentkit.dev/dashboard)
|
|
763
766
|
- [Changelog](./CHANGELOG.md)
|
|
764
767
|
- [GitHub](https://github.com/commentkit/comment-kit)
|
|
765
|
-
- [npm](https://www.npmjs.com/package/comment-kit)
|
|
768
|
+
- [npm](https://www.npmjs.com/package/@commentkit/comment-kit)
|
|
766
769
|
- [Twitter / X](https://x.com/commentkit)
|
|
767
770
|
- [Discord](https://discord.gg/commentkit)
|
|
@@ -9352,7 +9352,7 @@ function Xf(e) {
|
|
|
9352
9352
|
function Zf(e, t) {
|
|
9353
9353
|
try {
|
|
9354
9354
|
L.warning(`CommentKit v${e} is outdated`, {
|
|
9355
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
9355
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
9356
9356
|
duration: 1e4
|
|
9357
9357
|
});
|
|
9358
9358
|
} catch {}
|
|
@@ -11,7 +11,7 @@ function n(e) {
|
|
|
11
11
|
}
|
|
12
12
|
async function r(r) {
|
|
13
13
|
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-CvndAWRF.js"), { ShadowContainer: s } = await import("./shadow-root-C7wgghDv.js"), { ErrorBoundary: c } = await import("./error-boundary-CxhCm8iF.js"), { CommentKitUI: l } = await import("./comment-kit-ui-
|
|
14
|
+
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-CvndAWRF.js"), { ShadowContainer: s } = await import("./shadow-root-C7wgghDv.js"), { ErrorBoundary: c } = await import("./error-boundary-CxhCm8iF.js"), { CommentKitUI: l } = await import("./comment-kit-ui-BYFqkQq1.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
15
|
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
16
|
let m = document.createElement("div");
|
|
17
17
|
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
@@ -400,7 +400,7 @@ function _e(e, t) {
|
|
|
400
400
|
} catch {}
|
|
401
401
|
t.wsManager = null;
|
|
402
402
|
}
|
|
403
|
-
let n = e.config.baseUrl || "https://api.commentkit.
|
|
403
|
+
let n = e.config.baseUrl || "https://api.commentkit.dev/api", r = e.getState().currentUser, i = R(e);
|
|
404
404
|
try {
|
|
405
405
|
t.wsManager = new oe({
|
|
406
406
|
key: e.config.reverb.key,
|
package/dist/angular.es.js
CHANGED
|
@@ -240,7 +240,7 @@ var le = class {
|
|
|
240
240
|
listenerCount(e) {
|
|
241
241
|
return this.listeners.get(e)?.size ?? 0;
|
|
242
242
|
}
|
|
243
|
-
}, ue = "https://api.commentkit.
|
|
243
|
+
}, ue = "https://api.commentkit.dev/api", de = 3e4, fe = 10 * 1024 * 1024, pe = 10, me = 1e4, he = 5e3, ge = 254, _e = 6, ve = 4096, ye = [
|
|
244
244
|
".png",
|
|
245
245
|
".jpg",
|
|
246
246
|
".jpeg",
|
|
@@ -2714,7 +2714,7 @@ async function yi(e, t) {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
var X = null;
|
|
2716
2716
|
async function bi() {
|
|
2717
|
-
return X || (X = await import("./angular/realtime-
|
|
2717
|
+
return X || (X = await import("./angular/realtime-D-sBnozI.js"), X);
|
|
2718
2718
|
}
|
|
2719
2719
|
var Z = typeof window < "u", xi = new Set([
|
|
2720
2720
|
"list",
|
|
@@ -2729,7 +2729,7 @@ var Z = typeof window < "u", xi = new Set([
|
|
|
2729
2729
|
"screenshot",
|
|
2730
2730
|
"select",
|
|
2731
2731
|
null
|
|
2732
|
-
]), Ci = 256, wi = "0.6.
|
|
2732
|
+
]), Ci = 256, wi = "0.6.3";
|
|
2733
2733
|
function Ti(e) {
|
|
2734
2734
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2735
2735
|
return t ? [
|
|
@@ -2859,7 +2859,7 @@ var Oi = class extends le {
|
|
|
2859
2859
|
};
|
|
2860
2860
|
}
|
|
2861
2861
|
let n = e.project?.sdkLatestVersion;
|
|
2862
|
-
n && Di(n, "0.6.
|
|
2862
|
+
n && Di(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${wi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2863
2863
|
current: wi,
|
|
2864
2864
|
latest: n
|
|
2865
2865
|
})), this.setState({
|
|
@@ -3586,7 +3586,7 @@ var $ = class {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
async mountSharedUI(e, t, n) {
|
|
3588
3588
|
try {
|
|
3589
|
-
let { mountCommentKitUI: n } = await import("./angular/mount-ui-
|
|
3589
|
+
let { mountCommentKitUI: n } = await import("./angular/mount-ui-CM6GekDi.js");
|
|
3590
3590
|
if (this.core !== e || this.lifecycleId !== t) return;
|
|
3591
3591
|
let r = await n(e);
|
|
3592
3592
|
if (this.core !== e || this.lifecycleId !== t) {
|
package/dist/comment-kit.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, r as s, s as c, t as l, u } from "./core/websocket-manager-DorGPjR4.js";
|
|
2
2
|
import { a as d, c as f, d as p, f as m, i as h, l as g, m as _, n as v, o as y, p as ee, r as b, s as te, t as ne, u as re } from "./core/dom-x9svfpMk.js";
|
|
3
|
-
var ie = "https://api.commentkit.
|
|
3
|
+
var ie = "https://api.commentkit.dev/api", ae = 3e4, oe = 10 * 1024 * 1024, se = 10, ce = 1e4, le = 5e3, ue = 254, de = 6, fe = 4096, pe = [
|
|
4
4
|
".png",
|
|
5
5
|
".jpg",
|
|
6
6
|
".jpeg",
|
|
@@ -2523,7 +2523,7 @@ async function gi(e, t) {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
var Z = null;
|
|
2525
2525
|
async function _i() {
|
|
2526
|
-
return Z || (Z = await import("./core/realtime-
|
|
2526
|
+
return Z || (Z = await import("./core/realtime-yUS-GhJ_.js"), Z);
|
|
2527
2527
|
}
|
|
2528
2528
|
var vi = typeof window < "u", yi = new Set([
|
|
2529
2529
|
"list",
|
|
@@ -2538,7 +2538,7 @@ var vi = typeof window < "u", yi = new Set([
|
|
|
2538
2538
|
"screenshot",
|
|
2539
2539
|
"select",
|
|
2540
2540
|
null
|
|
2541
|
-
]), xi = 256, Q = "0.6.
|
|
2541
|
+
]), xi = 256, Q = "0.6.3";
|
|
2542
2542
|
function Si(e) {
|
|
2543
2543
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2544
2544
|
return t ? [
|
|
@@ -2668,7 +2668,7 @@ var Ti = class extends it {
|
|
|
2668
2668
|
};
|
|
2669
2669
|
}
|
|
2670
2670
|
let n = e.project?.sdkLatestVersion;
|
|
2671
|
-
n && wi(n, "0.6.
|
|
2671
|
+
n && wi(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${Q}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2672
2672
|
current: Q,
|
|
2673
2673
|
latest: n
|
|
2674
2674
|
})), this.setState({
|
|
@@ -3169,7 +3169,7 @@ var Ti = class extends it {
|
|
|
3169
3169
|
async mount() {
|
|
3170
3170
|
let e = this.core;
|
|
3171
3171
|
try {
|
|
3172
|
-
let { mountCommentKitUI: t } = await import("./core/mount-ui-
|
|
3172
|
+
let { mountCommentKitUI: t } = await import("./core/mount-ui-EgkHvqV9.js");
|
|
3173
3173
|
if (this.destroyed) return;
|
|
3174
3174
|
let n = await t(e);
|
|
3175
3175
|
if (this.destroyed) {
|
|
@@ -9352,7 +9352,7 @@ function Xf(e) {
|
|
|
9352
9352
|
function Zf(e, t) {
|
|
9353
9353
|
try {
|
|
9354
9354
|
L.warning(`CommentKit v${e} is outdated`, {
|
|
9355
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
9355
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
9356
9356
|
duration: 1e4
|
|
9357
9357
|
});
|
|
9358
9358
|
} catch {}
|
|
@@ -11,7 +11,7 @@ function n(e) {
|
|
|
11
11
|
}
|
|
12
12
|
async function r(r) {
|
|
13
13
|
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-D19zARBi.js"), { ShadowContainer: s } = await import("./shadow-root-09zwHxly.js"), { ErrorBoundary: c } = await import("./error-boundary-CN_BGsYl.js"), { CommentKitUI: l } = await import("./comment-kit-ui-
|
|
14
|
+
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-D19zARBi.js"), { ShadowContainer: s } = await import("./shadow-root-09zwHxly.js"), { ErrorBoundary: c } = await import("./error-boundary-CN_BGsYl.js"), { CommentKitUI: l } = await import("./comment-kit-ui-BiJZt5rE.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
15
|
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
16
|
let m = document.createElement("div");
|
|
17
17
|
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
@@ -120,7 +120,7 @@ function H(t, n) {
|
|
|
120
120
|
} catch {}
|
|
121
121
|
n.wsManager = null;
|
|
122
122
|
}
|
|
123
|
-
let r = t.config.baseUrl || "https://api.commentkit.
|
|
123
|
+
let r = t.config.baseUrl || "https://api.commentkit.dev/api", i = t.getState().currentUser, o = y(t);
|
|
124
124
|
try {
|
|
125
125
|
n.wsManager = new a({
|
|
126
126
|
key: t.config.reverb.key,
|
|
@@ -9352,7 +9352,7 @@ function Xf(e) {
|
|
|
9352
9352
|
function Zf(e, t) {
|
|
9353
9353
|
try {
|
|
9354
9354
|
L.warning(`CommentKit v${e} is outdated`, {
|
|
9355
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
9355
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
9356
9356
|
duration: 1e4
|
|
9357
9357
|
});
|
|
9358
9358
|
} catch {}
|
|
@@ -11,7 +11,7 @@ function n(e) {
|
|
|
11
11
|
}
|
|
12
12
|
async function r(r) {
|
|
13
13
|
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-Dwd4AJR8.js"), { ShadowContainer: s } = await import("./shadow-root-DAhpHo_W.js"), { ErrorBoundary: c } = await import("./error-boundary-B4-Bfy3g.js"), { CommentKitUI: l } = await import("./comment-kit-ui-
|
|
14
|
+
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-Dwd4AJR8.js"), { ShadowContainer: s } = await import("./shadow-root-DAhpHo_W.js"), { ErrorBoundary: c } = await import("./error-boundary-B4-Bfy3g.js"), { CommentKitUI: l } = await import("./comment-kit-ui-BUrKxAhh.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
15
|
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
16
|
let m = document.createElement("div");
|
|
17
17
|
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
@@ -400,7 +400,7 @@ function _e(e, t) {
|
|
|
400
400
|
} catch {}
|
|
401
401
|
t.wsManager = null;
|
|
402
402
|
}
|
|
403
|
-
let n = e.config.baseUrl || "https://api.commentkit.
|
|
403
|
+
let n = e.config.baseUrl || "https://api.commentkit.dev/api", r = e.getState().currentUser, i = R(e);
|
|
404
404
|
try {
|
|
405
405
|
t.wsManager = new oe({
|
|
406
406
|
key: e.config.reverb.key,
|
package/dist/preact.es.js
CHANGED
|
@@ -238,7 +238,7 @@ var ae = class {
|
|
|
238
238
|
listenerCount(e) {
|
|
239
239
|
return this.listeners.get(e)?.size ?? 0;
|
|
240
240
|
}
|
|
241
|
-
}, oe = "https://api.commentkit.
|
|
241
|
+
}, oe = "https://api.commentkit.dev/api", se = 3e4, ce = 10 * 1024 * 1024, le = 10, ue = 1e4, de = 5e3, fe = 254, pe = 6, me = 4096, he = [
|
|
242
242
|
".png",
|
|
243
243
|
".jpg",
|
|
244
244
|
".jpeg",
|
|
@@ -2712,7 +2712,7 @@ async function mi(e, t) {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
var Q = null;
|
|
2714
2714
|
async function hi() {
|
|
2715
|
-
return Q || (Q = await import("./preact/realtime-
|
|
2715
|
+
return Q || (Q = await import("./preact/realtime-PCo5q96o.js"), Q);
|
|
2716
2716
|
}
|
|
2717
2717
|
var $ = typeof window < "u", gi = new Set([
|
|
2718
2718
|
"list",
|
|
@@ -2727,7 +2727,7 @@ var $ = typeof window < "u", gi = new Set([
|
|
|
2727
2727
|
"screenshot",
|
|
2728
2728
|
"select",
|
|
2729
2729
|
null
|
|
2730
|
-
]), vi = 256, yi = "0.6.
|
|
2730
|
+
]), vi = 256, yi = "0.6.3";
|
|
2731
2731
|
function bi(e) {
|
|
2732
2732
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2733
2733
|
return t ? [
|
|
@@ -2857,7 +2857,7 @@ var Ci = class extends ae {
|
|
|
2857
2857
|
};
|
|
2858
2858
|
}
|
|
2859
2859
|
let n = e.project?.sdkLatestVersion;
|
|
2860
|
-
n && Si(n, "0.6.
|
|
2860
|
+
n && Si(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${yi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2861
2861
|
current: yi,
|
|
2862
2862
|
latest: n
|
|
2863
2863
|
})), this.setState({
|
|
@@ -3382,7 +3382,7 @@ function wi(e) {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
}, d = async (e) => {
|
|
3384
3384
|
try {
|
|
3385
|
-
let { mountCommentKitUI: r } = await import("./preact/mount-ui-
|
|
3385
|
+
let { mountCommentKitUI: r } = await import("./preact/mount-ui-2SqQgVGO.js");
|
|
3386
3386
|
if (i || t.current !== e) return;
|
|
3387
3387
|
let a = await r(e);
|
|
3388
3388
|
if (i || t.current !== e) {
|
|
@@ -9352,7 +9352,7 @@ function Xf(e) {
|
|
|
9352
9352
|
function Zf(e, t) {
|
|
9353
9353
|
try {
|
|
9354
9354
|
L.warning(`CommentKit v${e} is outdated`, {
|
|
9355
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
9355
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
9356
9356
|
duration: 1e4
|
|
9357
9357
|
});
|
|
9358
9358
|
} catch {}
|
|
@@ -11,7 +11,7 @@ function n(e) {
|
|
|
11
11
|
}
|
|
12
12
|
async function r(r) {
|
|
13
13
|
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-BB1B91hh.js"), { ShadowContainer: s } = await import("./shadow-root-tLjXys-_.js"), { ErrorBoundary: c } = await import("./error-boundary-C4hlYQwS.js"), { CommentKitUI: l } = await import("./comment-kit-ui-
|
|
14
|
+
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-BB1B91hh.js"), { ShadowContainer: s } = await import("./shadow-root-tLjXys-_.js"), { ErrorBoundary: c } = await import("./error-boundary-C4hlYQwS.js"), { CommentKitUI: l } = await import("./comment-kit-ui-DYW9KrsB.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
15
|
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
16
|
let m = document.createElement("div");
|
|
17
17
|
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
@@ -400,7 +400,7 @@ function _e(e, t) {
|
|
|
400
400
|
} catch {}
|
|
401
401
|
t.wsManager = null;
|
|
402
402
|
}
|
|
403
|
-
let n = e.config.baseUrl || "https://api.commentkit.
|
|
403
|
+
let n = e.config.baseUrl || "https://api.commentkit.dev/api", r = e.getState().currentUser, i = R(e);
|
|
404
404
|
try {
|
|
405
405
|
t.wsManager = new oe({
|
|
406
406
|
key: e.config.reverb.key,
|
package/dist/qwik.es.js
CHANGED
|
@@ -238,7 +238,7 @@ var se = class {
|
|
|
238
238
|
listenerCount(e) {
|
|
239
239
|
return this.listeners.get(e)?.size ?? 0;
|
|
240
240
|
}
|
|
241
|
-
}, ce = "https://api.commentkit.
|
|
241
|
+
}, ce = "https://api.commentkit.dev/api", le = 3e4, ue = 10 * 1024 * 1024, C = 10, de = 1e4, w = 5e3, fe = 254, pe = 6, me = 4096, he = [
|
|
242
242
|
".png",
|
|
243
243
|
".jpg",
|
|
244
244
|
".jpeg",
|
|
@@ -2712,7 +2712,7 @@ async function mi(e, t) {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
var $ = null;
|
|
2714
2714
|
async function hi() {
|
|
2715
|
-
return $ || ($ = await import("./qwik/realtime-
|
|
2715
|
+
return $ || ($ = await import("./qwik/realtime-BJTjcla8.js"), $);
|
|
2716
2716
|
}
|
|
2717
2717
|
var gi = typeof window < "u", _i = new Set([
|
|
2718
2718
|
"list",
|
|
@@ -2727,7 +2727,7 @@ var gi = typeof window < "u", _i = new Set([
|
|
|
2727
2727
|
"screenshot",
|
|
2728
2728
|
"select",
|
|
2729
2729
|
null
|
|
2730
|
-
]), yi = 256, bi = "0.6.
|
|
2730
|
+
]), yi = 256, bi = "0.6.3";
|
|
2731
2731
|
function xi(e) {
|
|
2732
2732
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2733
2733
|
return t ? [
|
|
@@ -2857,7 +2857,7 @@ var wi = class extends se {
|
|
|
2857
2857
|
};
|
|
2858
2858
|
}
|
|
2859
2859
|
let n = e.project?.sdkLatestVersion;
|
|
2860
|
-
n && Ci(n, "0.6.
|
|
2860
|
+
n && Ci(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${bi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2861
2861
|
current: bi,
|
|
2862
2862
|
latest: n
|
|
2863
2863
|
})), this.setState({
|
|
@@ -3386,7 +3386,7 @@ function Ti(e) {
|
|
|
3386
3386
|
}
|
|
3387
3387
|
}, _ = async (e) => {
|
|
3388
3388
|
try {
|
|
3389
|
-
let { mountCommentKitUI: t } = await import("./qwik/mount-ui-
|
|
3389
|
+
let { mountCommentKitUI: t } = await import("./qwik/mount-ui-DcWO4cw4.js");
|
|
3390
3390
|
if (d || a.value !== e) return;
|
|
3391
3391
|
let n = await t(e);
|
|
3392
3392
|
if (d || a.value !== e) {
|
|
@@ -400,7 +400,7 @@ function _e(e, n) {
|
|
|
400
400
|
} catch {}
|
|
401
401
|
n.wsManager = null;
|
|
402
402
|
}
|
|
403
|
-
let i = e.config.baseUrl || "https://api.commentkit.
|
|
403
|
+
let i = e.config.baseUrl || "https://api.commentkit.dev/api", a = e.getState().currentUser, o = z(e);
|
|
404
404
|
try {
|
|
405
405
|
n.wsManager = new A({
|
|
406
406
|
key: e.config.reverb.key,
|
package/dist/react.es.js
CHANGED
|
@@ -235,7 +235,7 @@ var ae = class {
|
|
|
235
235
|
listenerCount(e) {
|
|
236
236
|
return this.listeners.get(e)?.size ?? 0;
|
|
237
237
|
}
|
|
238
|
-
}, V = "https://api.commentkit.
|
|
238
|
+
}, V = "https://api.commentkit.dev/api", H = 3e4, U = 10 * 1024 * 1024, W = 10, oe = 1e4, se = 5e3, ce = 254, le = 6, ue = 4096, de = [
|
|
239
239
|
".png",
|
|
240
240
|
".jpg",
|
|
241
241
|
".jpeg",
|
|
@@ -2709,7 +2709,7 @@ async function Ii(t, n) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
var Li = null;
|
|
2711
2711
|
async function Ri() {
|
|
2712
|
-
return Li || (Li = await import("./react/realtime-
|
|
2712
|
+
return Li || (Li = await import("./react/realtime-DtkfBr0e.js"), Li);
|
|
2713
2713
|
}
|
|
2714
2714
|
var zi = typeof window < "u", Bi = new Set([
|
|
2715
2715
|
"list",
|
|
@@ -2724,7 +2724,7 @@ var zi = typeof window < "u", Bi = new Set([
|
|
|
2724
2724
|
"screenshot",
|
|
2725
2725
|
"select",
|
|
2726
2726
|
null
|
|
2727
|
-
]), Hi = 256, Ui = "0.6.
|
|
2727
|
+
]), Hi = 256, Ui = "0.6.3";
|
|
2728
2728
|
function Wi(e) {
|
|
2729
2729
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2730
2730
|
return t ? [
|
|
@@ -2854,7 +2854,7 @@ var qi = class extends ae {
|
|
|
2854
2854
|
};
|
|
2855
2855
|
}
|
|
2856
2856
|
let n = e.project?.sdkLatestVersion;
|
|
2857
|
-
n && Ki(n, "0.6.
|
|
2857
|
+
n && Ki(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${Ui}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2858
2858
|
current: Ui,
|
|
2859
2859
|
latest: n
|
|
2860
2860
|
})), this.setState({
|
|
@@ -12716,7 +12716,7 @@ function _v(e) {
|
|
|
12716
12716
|
function vv(e, t) {
|
|
12717
12717
|
try {
|
|
12718
12718
|
ca.warning(`CommentKit v${e} is outdated`, {
|
|
12719
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
12719
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
12720
12720
|
duration: 1e4
|
|
12721
12721
|
});
|
|
12722
12722
|
} catch {}
|
|
@@ -9352,7 +9352,7 @@ function Xf(e) {
|
|
|
9352
9352
|
function Zf(e, t) {
|
|
9353
9353
|
try {
|
|
9354
9354
|
L.warning(`CommentKit v${e} is outdated`, {
|
|
9355
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
9355
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
9356
9356
|
duration: 1e4
|
|
9357
9357
|
});
|
|
9358
9358
|
} catch {}
|
|
@@ -11,7 +11,7 @@ function n(e) {
|
|
|
11
11
|
}
|
|
12
12
|
async function r(r) {
|
|
13
13
|
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-CtYBghRP.js"), { ShadowContainer: s } = await import("./shadow-root-D5nErAFI.js"), { ErrorBoundary: c } = await import("./error-boundary-9mimpbZA.js"), { CommentKitUI: l } = await import("./comment-kit-ui-
|
|
14
|
+
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-CtYBghRP.js"), { ShadowContainer: s } = await import("./shadow-root-D5nErAFI.js"), { ErrorBoundary: c } = await import("./error-boundary-9mimpbZA.js"), { CommentKitUI: l } = await import("./comment-kit-ui-B2LPR7cY.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
15
|
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
16
|
let m = document.createElement("div");
|
|
17
17
|
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
@@ -400,7 +400,7 @@ function _e(e, t) {
|
|
|
400
400
|
} catch {}
|
|
401
401
|
t.wsManager = null;
|
|
402
402
|
}
|
|
403
|
-
let n = e.config.baseUrl || "https://api.commentkit.
|
|
403
|
+
let n = e.config.baseUrl || "https://api.commentkit.dev/api", r = e.getState().currentUser, i = R(e);
|
|
404
404
|
try {
|
|
405
405
|
t.wsManager = new oe({
|
|
406
406
|
key: e.config.reverb.key,
|
package/dist/solid.es.js
CHANGED
|
@@ -238,7 +238,7 @@ var oe = class {
|
|
|
238
238
|
listenerCount(e) {
|
|
239
239
|
return this.listeners.get(e)?.size ?? 0;
|
|
240
240
|
}
|
|
241
|
-
}, se = "https://api.commentkit.
|
|
241
|
+
}, se = "https://api.commentkit.dev/api", ce = 3e4, le = 10 * 1024 * 1024, ue = 10, de = 1e4, fe = 5e3, pe = 254, me = 6, he = 4096, C = [
|
|
242
242
|
".png",
|
|
243
243
|
".jpg",
|
|
244
244
|
".jpeg",
|
|
@@ -2712,7 +2712,7 @@ async function pi(e, t) {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
var $ = null;
|
|
2714
2714
|
async function mi() {
|
|
2715
|
-
return $ || ($ = await import("./solid/realtime-
|
|
2715
|
+
return $ || ($ = await import("./solid/realtime-CthMPv02.js"), $);
|
|
2716
2716
|
}
|
|
2717
2717
|
var hi = typeof window < "u", gi = new Set([
|
|
2718
2718
|
"list",
|
|
@@ -2727,7 +2727,7 @@ var hi = typeof window < "u", gi = new Set([
|
|
|
2727
2727
|
"screenshot",
|
|
2728
2728
|
"select",
|
|
2729
2729
|
null
|
|
2730
|
-
]), vi = 256, yi = "0.6.
|
|
2730
|
+
]), vi = 256, yi = "0.6.3";
|
|
2731
2731
|
function bi(e) {
|
|
2732
2732
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2733
2733
|
return t ? [
|
|
@@ -2857,7 +2857,7 @@ var Ci = class extends oe {
|
|
|
2857
2857
|
};
|
|
2858
2858
|
}
|
|
2859
2859
|
let n = e.project?.sdkLatestVersion;
|
|
2860
|
-
n && Si(n, "0.6.
|
|
2860
|
+
n && Si(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${yi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2861
2861
|
current: yi,
|
|
2862
2862
|
latest: n
|
|
2863
2863
|
})), this.setState({
|
|
@@ -3372,7 +3372,7 @@ function wi(e) {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
}, ye = async (e) => {
|
|
3374
3374
|
try {
|
|
3375
|
-
let { mountCommentKitUI: t } = await import("./solid/mount-ui-
|
|
3375
|
+
let { mountCommentKitUI: t } = await import("./solid/mount-ui-zLYWCM7u.js");
|
|
3376
3376
|
if (v || d !== e) return;
|
|
3377
3377
|
let n = await t(e);
|
|
3378
3378
|
if (v || d !== e) {
|
|
@@ -9352,7 +9352,7 @@ function Xf(e) {
|
|
|
9352
9352
|
function Zf(e, t) {
|
|
9353
9353
|
try {
|
|
9354
9354
|
L.warning(`CommentKit v${e} is outdated`, {
|
|
9355
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
9355
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
9356
9356
|
duration: 1e4
|
|
9357
9357
|
});
|
|
9358
9358
|
} catch {}
|
|
@@ -11,7 +11,7 @@ function n(e) {
|
|
|
11
11
|
}
|
|
12
12
|
async function r(r) {
|
|
13
13
|
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-DKCGeARl.js"), { ShadowContainer: s } = await import("./shadow-root-Cz-v-rYe.js"), { ErrorBoundary: c } = await import("./error-boundary-C3GWI_IX.js"), { CommentKitUI: l } = await import("./comment-kit-ui-
|
|
14
|
+
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-DKCGeARl.js"), { ShadowContainer: s } = await import("./shadow-root-Cz-v-rYe.js"), { ErrorBoundary: c } = await import("./error-boundary-C3GWI_IX.js"), { CommentKitUI: l } = await import("./comment-kit-ui-D__j1cXs.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
15
|
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
16
|
let m = document.createElement("div");
|
|
17
17
|
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
@@ -400,7 +400,7 @@ function _e(e, t) {
|
|
|
400
400
|
} catch {}
|
|
401
401
|
t.wsManager = null;
|
|
402
402
|
}
|
|
403
|
-
let n = e.config.baseUrl || "https://api.commentkit.
|
|
403
|
+
let n = e.config.baseUrl || "https://api.commentkit.dev/api", r = e.getState().currentUser, i = R(e);
|
|
404
404
|
try {
|
|
405
405
|
t.wsManager = new oe({
|
|
406
406
|
key: e.config.reverb.key,
|
package/dist/svelte.es.js
CHANGED
|
@@ -239,7 +239,7 @@ var se = class {
|
|
|
239
239
|
listenerCount(e) {
|
|
240
240
|
return this.listeners.get(e)?.size ?? 0;
|
|
241
241
|
}
|
|
242
|
-
}, ce = "https://api.commentkit.
|
|
242
|
+
}, ce = "https://api.commentkit.dev/api", le = 3e4, S = 10 * 1024 * 1024, C = 10, w = 1e4, T = 5e3, ue = 254, E = 6, de = 4096, fe = [
|
|
243
243
|
".png",
|
|
244
244
|
".jpg",
|
|
245
245
|
".jpeg",
|
|
@@ -2713,7 +2713,7 @@ async function hi(e, t) {
|
|
|
2713
2713
|
}
|
|
2714
2714
|
var Z = null;
|
|
2715
2715
|
async function gi() {
|
|
2716
|
-
return Z || (Z = await import("./svelte/realtime-
|
|
2716
|
+
return Z || (Z = await import("./svelte/realtime-TdWPhe9S.js"), Z);
|
|
2717
2717
|
}
|
|
2718
2718
|
var _i = typeof window < "u", vi = new Set([
|
|
2719
2719
|
"list",
|
|
@@ -2728,7 +2728,7 @@ var _i = typeof window < "u", vi = new Set([
|
|
|
2728
2728
|
"screenshot",
|
|
2729
2729
|
"select",
|
|
2730
2730
|
null
|
|
2731
|
-
]), bi = 256, xi = "0.6.
|
|
2731
|
+
]), bi = 256, xi = "0.6.3";
|
|
2732
2732
|
function Si(e) {
|
|
2733
2733
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2734
2734
|
return t ? [
|
|
@@ -2858,7 +2858,7 @@ var Ti = class extends se {
|
|
|
2858
2858
|
};
|
|
2859
2859
|
}
|
|
2860
2860
|
let n = e.project?.sdkLatestVersion;
|
|
2861
|
-
n && wi(n, "0.6.
|
|
2861
|
+
n && wi(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${xi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2862
2862
|
current: xi,
|
|
2863
2863
|
latest: n
|
|
2864
2864
|
})), this.setState({
|
|
@@ -3371,7 +3371,7 @@ function $(e) {
|
|
|
3371
3371
|
} catch {}
|
|
3372
3372
|
}, de = async (e) => {
|
|
3373
3373
|
try {
|
|
3374
|
-
let { mountCommentKitUI: n } = await import("./svelte/mount-ui-
|
|
3374
|
+
let { mountCommentKitUI: n } = await import("./svelte/mount-ui-DoUxiZdf.js");
|
|
3375
3375
|
if (w || g(t) !== e) return;
|
|
3376
3376
|
let r = await n(e);
|
|
3377
3377
|
if (w || g(t) !== e) {
|
|
@@ -9352,7 +9352,7 @@ function Xf(e) {
|
|
|
9352
9352
|
function Zf(e, t) {
|
|
9353
9353
|
try {
|
|
9354
9354
|
L.warning(`CommentKit v${e} is outdated`, {
|
|
9355
|
-
description: `Update to v${t}: npm update comment-kit`,
|
|
9355
|
+
description: `Update to v${t}: npm update @commentkit/comment-kit`,
|
|
9356
9356
|
duration: 1e4
|
|
9357
9357
|
});
|
|
9358
9358
|
} catch {}
|
|
@@ -11,7 +11,7 @@ function n(e) {
|
|
|
11
11
|
}
|
|
12
12
|
async function r(r) {
|
|
13
13
|
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-BrHt1-ia.js"), { ShadowContainer: s } = await import("./shadow-root-SLTVf5yk.js"), { ErrorBoundary: c } = await import("./error-boundary-DW6uGR8U.js"), { CommentKitUI: l } = await import("./comment-kit-ui-
|
|
14
|
+
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-BrHt1-ia.js"), { ShadowContainer: s } = await import("./shadow-root-SLTVf5yk.js"), { ErrorBoundary: c } = await import("./error-boundary-DW6uGR8U.js"), { CommentKitUI: l } = await import("./comment-kit-ui-B0id65SI.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
15
|
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
16
|
let m = document.createElement("div");
|
|
17
17
|
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
@@ -400,7 +400,7 @@ function _e(e, t) {
|
|
|
400
400
|
} catch {}
|
|
401
401
|
t.wsManager = null;
|
|
402
402
|
}
|
|
403
|
-
let n = e.config.baseUrl || "https://api.commentkit.
|
|
403
|
+
let n = e.config.baseUrl || "https://api.commentkit.dev/api", r = e.getState().currentUser, i = R(e);
|
|
404
404
|
try {
|
|
405
405
|
t.wsManager = new oe({
|
|
406
406
|
key: e.config.reverb.key,
|
package/dist/vue.es.js
CHANGED
|
@@ -44,7 +44,7 @@ var ee = class {
|
|
|
44
44
|
listenerCount(e) {
|
|
45
45
|
return this.listeners.get(e)?.size ?? 0;
|
|
46
46
|
}
|
|
47
|
-
}, te = "https://api.commentkit.
|
|
47
|
+
}, te = "https://api.commentkit.dev/api", ne = 3e4, re = 10 * 1024 * 1024, ie = 10, ae = 1e4, C = 5e3, w = 254, T = 6, oe = 4096, E = [
|
|
48
48
|
".png",
|
|
49
49
|
".jpg",
|
|
50
50
|
".jpeg",
|
|
@@ -2518,7 +2518,7 @@ async function ci(e, t) {
|
|
|
2518
2518
|
}
|
|
2519
2519
|
var Q = null;
|
|
2520
2520
|
async function li() {
|
|
2521
|
-
return Q || (Q = await import("./vue/realtime-
|
|
2521
|
+
return Q || (Q = await import("./vue/realtime-2P9gIgF8.js"), Q);
|
|
2522
2522
|
}
|
|
2523
2523
|
var ui = typeof window < "u", di = new Set([
|
|
2524
2524
|
"list",
|
|
@@ -2533,7 +2533,7 @@ var ui = typeof window < "u", di = new Set([
|
|
|
2533
2533
|
"screenshot",
|
|
2534
2534
|
"select",
|
|
2535
2535
|
null
|
|
2536
|
-
]), pi = 256, mi = "0.6.
|
|
2536
|
+
]), pi = 256, mi = "0.6.3";
|
|
2537
2537
|
function hi(e) {
|
|
2538
2538
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2539
2539
|
return t ? [
|
|
@@ -2663,7 +2663,7 @@ var vi = class extends ee {
|
|
|
2663
2663
|
};
|
|
2664
2664
|
}
|
|
2665
2665
|
let n = e.project?.sdkLatestVersion;
|
|
2666
|
-
n && _i(n, "0.6.
|
|
2666
|
+
n && _i(n, "0.6.3") && (console.warn(`[CommentKit] You are using v${mi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2667
2667
|
current: mi,
|
|
2668
2668
|
latest: n
|
|
2669
2669
|
})), this.setState({
|
|
@@ -3366,7 +3366,7 @@ function Ei(e) {
|
|
|
3366
3366
|
} catch {}
|
|
3367
3367
|
}, se = async (e) => {
|
|
3368
3368
|
try {
|
|
3369
|
-
let { mountCommentKitUI: t } = await import("./vue/mount-ui-
|
|
3369
|
+
let { mountCommentKitUI: t } = await import("./vue/mount-ui-QijqPINi.js");
|
|
3370
3370
|
if (T || o.value !== e) return;
|
|
3371
3371
|
let n = await t(e);
|
|
3372
3372
|
if (T || o.value !== e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commentkit/comment-kit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Figma-style collaborative commenting, drawing, and feedback tools for any website. Works with React, Vue, Svelte, Angular, and Vanilla JS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"svelte",
|
|
15
15
|
"vue"
|
|
16
16
|
],
|
|
17
|
-
"homepage": "https://commentkit.
|
|
17
|
+
"homepage": "https://commentkit.dev",
|
|
18
18
|
"license": "SEE LICENSE IN LICENSE",
|
|
19
19
|
"author": "CommentKit Team",
|
|
20
20
|
"repository": {
|
|
@@ -200,8 +200,5 @@
|
|
|
200
200
|
"engines": {
|
|
201
201
|
"node": ">=18"
|
|
202
202
|
},
|
|
203
|
-
"packageManager": "npm@11.12.1"
|
|
204
|
-
"publishConfig": {
|
|
205
|
-
"access": "public"
|
|
206
|
-
}
|
|
203
|
+
"packageManager": "npm@11.12.1"
|
|
207
204
|
}
|