@commentkit/comment-kit 1.0.0-beta.0 → 1.0.0
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 +83 -0
- package/README.md +99 -7
- package/SECURITY.md +7 -2
- package/dist/npm/chunks/Guest-VNoofLxw.js +157 -0
- package/dist/npm/chunks/MarkupEditor-DTXrS3DD.js +199 -0
- package/dist/npm/chunks/Panel-B88JYH52.js +438 -0
- package/dist/npm/chunks/Shortcuts-BSOKdMHt.js +56 -0
- package/dist/npm/chunks/ThreadCard-izybwXIC.js +817 -0
- package/dist/npm/chunks/ar-O7EPv0mI.js +222 -0
- package/dist/npm/chunks/art-DK1JwPIo.js +155 -0
- package/dist/npm/chunks/{client-D1vrh_5G.js → client-Iegfv6ZC.js} +95 -65
- package/dist/npm/chunks/de-PGyZVNHX.js +211 -0
- package/dist/npm/chunks/es-Bq1idl8M.js +211 -0
- package/dist/npm/chunks/extension-B7SelsS0.js +54 -0
- package/dist/npm/chunks/extension-DSA8S8Qz.js +26 -0
- package/dist/npm/chunks/format-B5tJGtPC.js +524 -0
- package/dist/npm/chunks/fr-BVB9GGco.js +211 -0
- package/dist/npm/chunks/hi-DyBvrjzQ.js +211 -0
- package/dist/npm/chunks/{html2canvas-_mjSRP3G.js → html2canvas-DfGb8yka.js} +1145 -1132
- package/dist/npm/chunks/it-BlMMMwZh.js +211 -0
- package/dist/npm/chunks/ja-lAioBCJv.js +211 -0
- package/dist/npm/chunks/live-YFyP1GnP.js +34 -0
- package/dist/npm/chunks/mount-Dx_8NhX3.js +1484 -0
- package/dist/npm/chunks/nl-DR8mLHnn.js +211 -0
- package/dist/npm/chunks/privacy-DLhezjyi.js +30 -0
- package/dist/npm/chunks/pt-BR-D7j6aDPx.js +211 -0
- package/dist/npm/chunks/{pusher-DRKlokR8.js → pusher-BSsQoE1K.js} +1 -1
- package/dist/npm/chunks/realtime-CBRW9BB3.js +34 -0
- package/dist/npm/chunks/report-DoDVi1qT.js +28 -0
- package/dist/npm/chunks/{rolldown-runtime-VHNaYcLd.js → rolldown-runtime-Y_bBpyJl.js} +10 -3
- package/dist/npm/chunks/src-C1Qp94nr.js +549 -0
- package/dist/npm/chunks/zh-CN-tzYg9NPH.js +211 -0
- package/dist/npm/element.js +28 -11
- package/dist/npm/headless.js +2 -2
- package/dist/npm/index.js +3 -3
- package/dist/npm/react.js +12 -3
- package/dist/npm/svelte.js +12 -3
- package/dist/npm/types/adapters/react.d.ts +2 -0
- package/dist/npm/types/adapters/svelte.d.ts +1 -1
- package/dist/npm/types/adapters/vue.d.ts +72 -0
- package/dist/npm/types/anchor/index.d.ts +0 -1
- package/dist/npm/types/core/api.d.ts +2 -0
- package/dist/npm/types/core/auth.d.ts +42 -5
- package/dist/npm/types/core/client.d.ts +22 -7
- package/dist/npm/types/core/types.d.ts +50 -6
- package/dist/npm/types/element.d.ts +4 -1
- package/dist/npm/types/index.d.ts +3 -1
- package/dist/npm/vue.js +46 -7
- package/package.json +8 -2
- package/dist/npm/chunks/mount-Ce1MZrcm.js +0 -2485
- package/dist/npm/chunks/realtime-5SvAvTUU.js +0 -23
- package/dist/npm/chunks/src-DJjfvVsa.js +0 -330
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
## 1.0.0 (2026-10-22)
|
|
6
|
+
|
|
7
|
+
First stable release. Installs with `npm install @commentkit/comment-kit`, no `@beta` needed.
|
|
8
|
+
|
|
9
|
+
- **Pins are the CommentKit mark:** a speech drop whose tip sits exactly on the spot, numbered in its head, coloured by status.
|
|
10
|
+
- **Comment mode glows:** a soft accent frame round the window shows you are commenting, not using the page.
|
|
11
|
+
- **Cleaner, more compact design:** one spacing and type scale, one "selected" style, one focus ring, muted disabled buttons, text boxes that grow with your text, a date chip instead of the browser's date field, and an inbox that never sits behind the launcher.
|
|
12
|
+
- **Illustrated empty states** (all caught up, nothing on this page, nothing matches with Clear filters, couldn't load, gone) and skeletons shaped like the content while it loads.
|
|
13
|
+
- **Errors stay where they happened:** a conversation that cannot load explains why in the card, with Close or Try again.
|
|
14
|
+
- **Translations reviewed** in all 10 languages, with plainer English (versions, not branches).
|
|
15
|
+
- **Security:** reviewer text in agent output stays inside the untrusted-content fence in every spelling; crash reports carry a one-time load proof for the CDN canary.
|
|
16
|
+
|
|
17
|
+
## 1.0.0-beta.3 (2026-10-20)
|
|
18
|
+
|
|
19
|
+
- **Security:** the sign-in code only ever comes from the sign-in window's message; the widget never asks the server for it.
|
|
20
|
+
- **Task fields in the widget:** team members can set priority, assignee, due date and labels from a conversation. Reviewers see what is set.
|
|
21
|
+
- **Calmer live updates:** a change refetches only what is on this page or open, after a short random delay, and never your own change twice.
|
|
22
|
+
- **Plain, translated errors** for known problems; a failed screenshot upload or reply says exactly what happened and keeps your text.
|
|
23
|
+
- **Agent output:** every reviewer-written field stays inside the untrusted-content fence.
|
|
24
|
+
|
|
25
|
+
## 1.0.0-beta.2 (2026-10-20)
|
|
26
|
+
|
|
27
|
+
- **Refreshed look.** One set of design tokens (radius, elevation, motion); surfaces get a hairline ring and soft layered shadows so they read on any site; the launcher is frosted glass; the inbox tabs are a segmented control; status pills are tinted per status; buttons, inputs, chips, menus, toasts and pins have hover, press and focus states; cards and menus open with a short pop (sheets slide up on phones), and everything is still off under reduced motion. Same layout, sizes and touch targets.
|
|
28
|
+
- **Text on your brand colour stays readable.** With a dark accent colour the widget switches its button text to white automatically.
|
|
29
|
+
- **Fix:** pressing Esc right after adding a text note on a screenshot could close the comment too.
|
|
30
|
+
|
|
31
|
+
## 1.0.0-beta.1 (2026-10-20)
|
|
32
|
+
|
|
33
|
+
- **Reviewer journey, from the UX audit.**
|
|
34
|
+
- **One Send for share-link guests.** Name and email sit under the comment from the start ("Your name and email, so the team can reply. No account needed."), so the first comment is open → Comment → click → type → name and email → Send. A missing name or a wrong email is said at the field (`aria-invalid`, `role="alert"`) and that field gets focus. The `guest_details` error code is gone.
|
|
35
|
+
- **The code step says what happened.** An expired client link and a removed guest each get their own message (the API's `403 no_access` detail decides; `share_expired` / 410 too) and no Resend; a used-up code offers **Write it again**, back to the saved comment. While a comment waits for its code, a note by the launcher says so with **Enter code**.
|
|
36
|
+
- **Follow and mute.** The thread menu switches between "Stop notifications" and "Notify me" (`PUT` / `DELETE /threads/{id}/watch`), and the toast confirms ("You won't get emails about CK-12 anymore."). It uses `thread.watching` when the server sends it, otherwise assumes you follow, and remembers changes for the visit.
|
|
37
|
+
- **"Not yet — reply"** next to "Looks good — resolve" focuses the reply box: "What still needs to change?"
|
|
38
|
+
- **Delete feedback asks in the card**, like reply delete, instead of the browser's `confirm()`. **Resolve has Undo** in its toast.
|
|
39
|
+
- **Errors that can't be fixed by retrying** (paused, read-only, no access, website not allowed) say why, keep the text and show no Try again. Try again stays for offline, 5xx and 429.
|
|
40
|
+
- **Paused feedback.** Visitors from a client link or an email link see "Feedback is paused on this site right now. Please check back later." instead of nothing; everyone else still sees no widget.
|
|
41
|
+
- **Plain words for clients.** Read-only says "New feedback is paused on this site right now" to guests (members keep the plan wording); thread cards are titled "Feedback CK-12" for guests; screen widths read "Left on a phone-sized screen" (chips: Phone, Tablet, Wide screen; pixels in the tooltip); a deleted or unshared thread says so; the welcome card is one sentence ("Leave feedback on {project}"), a region rather than a dialog, with tap wording on touch screens; the mode bar mentions selecting text to quote it; the shortcut string is gone from the launcher menu; "review link" is now "client link".
|
|
42
|
+
- **Phones.** The launcher keeps its "Comment" label. The docked card stays above the on-screen keyboard (`visualViewport`), and toasts move to the top while a card or the inbox is open.
|
|
43
|
+
- **Launcher menu** opens towards the page in all four corners (it was off-screen for `top-left` and `top-right`).
|
|
44
|
+
- **Accessibility.** The edit box is labelled, saves with Cmd/Ctrl+Enter, cancels with Esc and shows "Saving…"; the inbox status filter is labelled "Status"; opening the inbox focuses its open tab; @mention suggestions are announced (`aria-controls`, `aria-activedescendant`).
|
|
45
|
+
- **`shortcuts: false`** (`data-shortcuts="false"`, `<comment-kit shortcuts="false">`) turns off the single-key shortcuts C, J / K, E and ? for sites with their own (WCAG 2.1.4). Esc and Cmd/Ctrl+Shift+K keep working.
|
|
46
|
+
- Unused strings removed from all 11 languages (`launcher`, `launcherHint`, `welcomeStart`, `assign`, `priority`, `you`, `team`, `shortcuts`, the three tour steps, `guestDetailsMissing`, `otherScreen`, `madeAtWidth`); a test now fails on any English key the widget never uses.
|
|
47
|
+
- The thread card loads with its first conversation, like the inbox panel, which keeps the widget that loads on activation inside its size budget.
|
|
48
|
+
- **Realtime inbox pings are per project.** The person's inbox channel spans projects; a ping whose `project_id` is another project's is ignored, and the badge uses the per-project `unread` the ping carries (pings without `project_id` still count).
|
|
49
|
+
- **CDN canary load count.** The first widget config read of a page load sends `X-CommentKit-Load: 1`; the per-minute re-reads don't, so the server counts each load once.
|
|
50
|
+
- **Docs.** SECURITY.md lists every CSP host (storage, realtime, `blob:`, Google avatars) and the `commentkit-capture` Trusted Types policy, and points to Project → Setup. The browser extension's "not allowed" message points to Project → Setup.
|
|
51
|
+
|
|
52
|
+
- **The 10-second first comment.** On a share link, Send asks for name and email in the same card (no window), posts the comment at once with a pending token (`POST /guest/start`), and a "Check your email" step publishes it with the 6-digit code (`POST /guest/verify`), with "Send a new code" and "Use a different email". The pending token stays in this tab only (sessionStorage) and never counts as a session; after the code the session is stored like any sign-in. Members, and websites where the API refuses the inline path (`403 origin_not_allowed`, e.g. localhost), keep the sign-in window. A `403 verification_required` goes back to the code step. Contract synced.
|
|
53
|
+
|
|
54
|
+
- **Keyboard shortcuts dialog.** Press `?` (or open it from the launcher's menu) for every shortcut in one list. It never opens while typing in the page or the widget.
|
|
55
|
+
- **Delete a reply.** Your own replies, or any reply for people who manage the project, have Delete next to Edit, with a confirmation in the card.
|
|
56
|
+
- **Never breaks the host page.** An error boundary around the widget removes it quietly after a crash (one console warning). `init()`, the loader (including a failed widget download), `<comment-kit>` and the React, Vue and Svelte helpers catch everything and warn once.
|
|
57
|
+
- **`window.CommentKit` for script-tag sites:** `show()`, `hide()`, `open(idOrReference)`, `on()`, `off()`, `destroy()` and `version`, set once the widget is ready and removed by `destroy()`. `init()` instances gain `open()` too.
|
|
58
|
+
- **Trusted Types.** Works under `require-trusted-types-for 'script'`, checked in Chromium with zero violations. The screenshot engine's two fixed HTML writes go through one narrow policy, `commentkit-capture`.
|
|
59
|
+
- **Who's here.** The inbox header shows "3 people here" from the realtime presence channel; hidden when you are alone or live updates are off.
|
|
60
|
+
- **"Made at 390px"** chips on panel rows too, with the same rule as the thread card (more than 200 px from this screen).
|
|
61
|
+
- **Remember me policy.** The widget config's `auth.remember: false` keeps the refresh token in sessionStorage (this tab only); true or absent keeps today's localStorage. Existing tokens move when the policy changes. The sign-in window now opens `auth.authorize_url` from the config.
|
|
62
|
+
- **Inline text notes** on screenshots, typed where you click, instead of a browser prompt. Esc leaves drawing, not the comment. The drawing editor and the inbox panel load on first use.
|
|
63
|
+
- **Safer "Copy for AI agent":** passwords, tokens, keys, signatures and long random values are removed from URLs and text; each message is capped at 4,000 characters and the conversation at about 40,000, with a "…truncated" note.
|
|
64
|
+
- **Console and network capture:** `XMLHttpRequest` failures are recorded too (method, URL, status, timing; never bodies or headers); token-like query values are removed by value as well as by name. Reviewers choose per comment with "Include browser errors to help the developer", unchecked unless the project sets `features.capture_consent_default: true`.
|
|
65
|
+
- **Long-press to comment** on touch screens (500 ms), alongside tap, and the tap or press never follows a link underneath.
|
|
66
|
+
- **Inbox filters:** search on "This page" too, "Assigned to me", assignee and label (from `/labels`). Sends `assignee` and `label`; results are also checked in the widget so a server that ignores `label` still shows the right list.
|
|
67
|
+
- **Attachments:** paste or drag images and files into the composer and the reply box, and attach files to replies. The server's file types and the project's size limit are checked before sending, with a plain reason when something is left out.
|
|
68
|
+
- **Drafts survive closing the tab:** unsent comments and replies are kept per project, page and spot (or thread) for 7 days and removed once sent.
|
|
69
|
+
- **Read-only, everywhere.** While a workspace is read-only, the thread card offers no reply box, Resolve, status changes, edits, deletes or reactions, even if the server still allows commenting, and a lasting notice sits beside the launcher and in the inbox.
|
|
70
|
+
- **Live config.** The widget re-reads its config every minute while the tab is visible and when it becomes visible again, so the kill switch and read-only reach open pages; the kill switch removes the widget cleanly.
|
|
71
|
+
- **"Try again" never duplicates a comment:** a retried send reuses the same request and Idempotency-Key. Screenshots are uploaded under their real type (`screenshot.png` where the browser cannot make WebP).
|
|
72
|
+
- **Phones:** the launcher steps aside while a card, the inbox sheet or a dialog is open, so it never covers Send or Continue.
|
|
73
|
+
- Build: the widget size budget now counts every chunk the widget loads at start, not only `mount-*.js`.
|
|
74
|
+
|
|
75
|
+
- **The widget in 10 more languages:** Spanish, French, German, Portuguese (Brazil), Italian, Dutch, Japanese, Chinese (Simplified), Hindi and Arabic (right to left). The language comes from `init({ locale })`, `data-locale` or `<comment-kit locale>`, then the page's `<html lang>`, then the browser, with region fallback (`es-MX` → Spanish, `pt` → Brazilian Portuguese, `zh` → Simplified Chinese) and English last. Each language is its own small file loaded only when needed; English pages load no extra file. Relative times and message counts use `Intl.RelativeTimeFormat` and `Intl.PluralRules`, including Arabic plural forms. The drawing tools, colours, Undo and reaction buttons are now translated too.
|
|
76
|
+
- **Security hardening from an XSS corpus run through every widget renderer** (65 payloads through comment text, names, attachments, page titles, inbox items, mention suggestions and the AI-agent copy):
|
|
77
|
+
- Attachment and screenshot links and images only use absolute `http(s)` URLs (avatars stay `https` only); anything else shows as plain text.
|
|
78
|
+
- Opening an inbox item never navigates to a non-web URL such as `javascript:`.
|
|
79
|
+
- "Copy for AI agent" can no longer be broken out of its `<untrusted-user-content>` fence, however the tag is spelled. Selected page text and console lines now sit inside fences too; one-line fields cannot add lines or close code spans.
|
|
80
|
+
- Links in comments stop at bidi and zero-width characters, and names, file names and page titles are isolated with `<bdi>`, so right-to-left override tricks cannot disguise links or flip surrounding text.
|
|
81
|
+
- A malformed page URL no longer stops the thread card from opening.
|
|
82
|
+
- **Browser extension handshake.** The widget also shows when the CommentKit browser extension sets `data-commentkit-extension` on `<html>` (only after a signed-in member chose "Comment on this page" on an allowed website). The loader grows by a few bytes and stays well inside its budget.
|
|
83
|
+
- **Extension screenshots and sign-in.** Inside the extension, screenshots use `captureVisibleTab` (pixel-perfect), with the widget hidden and private fields, iframes and redaction selectors painted over; html2canvas stays the engine everywhere else and the fallback. The widget signs in through the extension's session with a one-time PKCE code, so members are not asked twice. Both pieces load only when the handshake is present.
|
|
84
|
+
- **Zapier app** (in `zapier/`, separate from this package): start Zaps from new feedback or tasks, status changes and replies, create tasks, reply to a task (or wait for approval), and find a task by `CK-12`. Connect with an agent key that has the Zapier permission. Not on Zapier yet; the owner registers and pushes it.
|
|
85
|
+
|
|
3
86
|
## [1.0.0-beta.0] - 2026-10-19
|
|
4
87
|
|
|
5
88
|
A rewrite around one job: feedback lands on the exact spot, with full context, and reaches the right developer or AI agent.
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Figma-style comments for any website.
|
|
|
5
5
|
Your clients click the part of the page they mean and write what should change. CommentKit pins the comment to that exact spot, attaches a screenshot of what they saw, and records the page, browser and screen size. You see the feedback on your live site, your staging and preview links, and on `localhost` — and you can hand it straight to your AI coding agent.
|
|
6
6
|
|
|
7
7
|
- **One install, every stack.** A script tag works on any website (WordPress, Webflow, Shopify, plain HTML). npm users get `init()` plus tiny React, Vue and Svelte helpers. Nothing else to install: no React required on your side.
|
|
8
|
-
- **Built for people who have never used a feedback tool.** Clients open a
|
|
8
|
+
- **Built for people who have never used a feedback tool.** Clients open a client link, click, type, confirm their email once. No account, no password.
|
|
9
9
|
- **Built for developers.** Feedback per branch and environment, element selectors and source locations, console errors, a dashboard with list and board views, email notifications, and an MCP server for Claude Code, Cursor and other agents.
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -47,14 +47,29 @@ import { CommentKitPlugin } from "@commentkit/comment-kit/vue";
|
|
|
47
47
|
app.use(CommentKitPlugin, { project: "pk_live_your_key" });
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
Nuxt: create `plugins/commentkit.client.ts`:
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
import { CommentKitPlugin } from "@commentkit/comment-kit/vue";
|
|
54
|
+
|
|
55
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
56
|
+
nuxtApp.vueApp.use(CommentKitPlugin, { project: useRuntimeConfig().public.commentkitKey });
|
|
57
|
+
});
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Or place `<CommentKit project="pk_live_your_key" />` from `@commentkit/comment-kit/vue` once in your root component; it accepts every option below as a prop.
|
|
61
|
+
|
|
50
62
|
### Svelte / SvelteKit
|
|
51
63
|
|
|
52
64
|
```svelte
|
|
65
|
+
<!-- src/routes/+layout.svelte -->
|
|
53
66
|
<script>
|
|
54
67
|
import { commentkit } from "@commentkit/comment-kit/svelte";
|
|
68
|
+
let { children } = $props();
|
|
55
69
|
</script>
|
|
56
70
|
|
|
57
71
|
<svelte:body use:commentkit={{ project: "pk_live_your_key" }} />
|
|
72
|
+
{@render children()}
|
|
58
73
|
```
|
|
59
74
|
|
|
60
75
|
### Anything else
|
|
@@ -69,14 +84,16 @@ import "@commentkit/comment-kit/element";
|
|
|
69
84
|
<comment-kit project="pk_live_your_key" branch="main"></comment-kit>
|
|
70
85
|
```
|
|
71
86
|
|
|
72
|
-
|
|
87
|
+
Attributes: `project` (required), `branch`, `commit`, `locale`, `theme`, `position`, `auth`, `endpoint`, `deployment-url`, `hide-on-production="false"`, `shortcuts="false"`. Changing `project` restarts the widget.
|
|
88
|
+
|
|
89
|
+
Find your key in the dashboard under **Project → Setup** (or run `npx @commentkit/cli login` and then `npx @commentkit/cli init`, or `npx @commentkit/cli init --key pk_live_…` without signing in), and add every website address there (live, staging, preview, e.g. `https://*.vercel.app`). Localhost always works for your team.
|
|
73
90
|
|
|
74
91
|
## How it behaves
|
|
75
92
|
|
|
76
93
|
| Where | Who sees the widget |
|
|
77
94
|
| --- | --- |
|
|
78
95
|
| `localhost`, `*.localhost`, `*.test` | Always visible, for your team |
|
|
79
|
-
| Live, staging and preview sites | Hidden from visitors. Shown when someone opens a
|
|
96
|
+
| Live, staging and preview sites | Hidden from visitors. Shown when someone opens a client link (`?ck=…`), an email link, presses **Cmd/Ctrl + Shift + K**, or is already signed in on that device |
|
|
80
97
|
|
|
81
98
|
People leave feedback with one tool:
|
|
82
99
|
|
|
@@ -100,8 +117,9 @@ init({
|
|
|
100
117
|
theme: "auto", // "light" | "dark" — default from the dashboard
|
|
101
118
|
position: "bottom-right",
|
|
102
119
|
redact: [".customer-email"], // extra selectors never captured
|
|
103
|
-
locale: "
|
|
120
|
+
locale: "fr", // default: <html lang>, then the browser (see Languages)
|
|
104
121
|
auth: "auto", // "popup" | "redirect"
|
|
122
|
+
shortcuts: true, // false turns off C, J / K, E and ? (Esc and Cmd/Ctrl+Shift+K stay)
|
|
105
123
|
});
|
|
106
124
|
```
|
|
107
125
|
|
|
@@ -109,7 +127,17 @@ Most behaviour is set in the dashboard and applies instantly without a deploy: p
|
|
|
109
127
|
|
|
110
128
|
### Script-tag attributes
|
|
111
129
|
|
|
112
|
-
`data-project
|
|
130
|
+
`data-project` (required), `data-branch`, `data-commit`, `data-locale`, `data-auth`, `data-endpoint` (another CommentKit server), `data-hide-on-production="false"`, `data-shortcuts="false"`. `theme`, `position`, `redact` and `deploymentUrl` are `init()` options; theme, position and privacy selectors can also be set in the dashboard.
|
|
131
|
+
|
|
132
|
+
## Languages
|
|
133
|
+
|
|
134
|
+
The widget speaks English, Spanish (`es`), French (`fr`), German (`de`), Portuguese for Brazil (`pt-BR`), Italian (`it`), Dutch (`nl`), Japanese (`ja`), Chinese, Simplified (`zh-CN`), Hindi (`hi`) and Arabic (`ar`, right to left).
|
|
135
|
+
|
|
136
|
+
It picks the first match from `init({ locale })` (or `data-locale` / `<comment-kit locale>`), then the page's `<html lang>`, then the reader's browser languages, and falls back to English. Regions fall back to the language: `es-MX` gets Spanish, `pt` and `pt-PT` get Brazilian Portuguese, `zh` gets Simplified Chinese. Times ("5 minutes ago") and counts use the browser's `Intl` formatting for that language.
|
|
137
|
+
|
|
138
|
+
English is built in. Each other language is a separate ~2.5–3 KB (gzip) file, loaded only for readers who need it, while the widget starts. The widget is right to left when its language is Arabic, and otherwise follows the page's `dir` or `<html lang>`.
|
|
139
|
+
|
|
140
|
+
Only the widget is translated; the dashboard and emails are in English for now.
|
|
113
141
|
|
|
114
142
|
## API
|
|
115
143
|
|
|
@@ -120,14 +148,34 @@ const kit = init({ project: "pk_live_…" });
|
|
|
120
148
|
|
|
121
149
|
kit.show(); // same as Cmd/Ctrl + Shift + K
|
|
122
150
|
kit.hide();
|
|
151
|
+
kit.open("CK-12"); // show the widget and open one conversation (id or reference)
|
|
123
152
|
await kit.signIn(); // call from a click
|
|
124
153
|
await kit.signOut();
|
|
125
|
-
kit.session(); // { person, role, project, capabilities } | null
|
|
154
|
+
kit.session(); // { person, role, project, environment, capabilities } | null
|
|
126
155
|
kit.on("thread:created", ({ thread }) => {});
|
|
127
156
|
kit.destroy(); // removes every trace from the page
|
|
128
157
|
```
|
|
129
158
|
|
|
130
|
-
Events: `ready`, `session:change`, `thread:created`, `thread:updated`, `message:created`, `error
|
|
159
|
+
Events: `ready`, `session:change`, `thread:created`, `thread:updated`, `message:created`, and `error` (the widget could not start; `error.code` is listed at https://commentkit.dev/docs/errors).
|
|
160
|
+
|
|
161
|
+
### Script tag API: `window.CommentKit`
|
|
162
|
+
|
|
163
|
+
On sites that use the script-tag loader, the loader sets one global once the widget is ready, `window.CommentKit`, and `destroy()` removes it again. It is the only global CommentKit adds; npm installs use the `init()` instance instead.
|
|
164
|
+
|
|
165
|
+
```js
|
|
166
|
+
CommentKit.version; // "1.0.0"
|
|
167
|
+
CommentKit.show(); // Promise
|
|
168
|
+
CommentKit.hide();
|
|
169
|
+
CommentKit.open("CK-12"); // or a thread id
|
|
170
|
+
const onNew = ({ thread }) => console.log(thread.reference);
|
|
171
|
+
CommentKit.on("thread:created", onNew);
|
|
172
|
+
CommentKit.off("thread:created", onNew);
|
|
173
|
+
CommentKit.destroy(); // removes the widget, its listeners and window.CommentKit
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
`window.CommentKit` only exists while the widget is shown on that page (local development, a share or email link, a signed-in person, or after Cmd/Ctrl + Shift + K). Check for it before calling: `window.CommentKit?.open("CK-12")`.
|
|
177
|
+
|
|
178
|
+
Nothing CommentKit does can break your page: a failed download, a setup error or a crash inside the widget logs one console warning and the widget removes itself.
|
|
131
179
|
|
|
132
180
|
`@commentkit/comment-kit/headless` exports `CommentKitClient`, `createAnchor` and `resolveAnchor` for custom interfaces and browser extensions.
|
|
133
181
|
|
|
@@ -164,6 +212,8 @@ Agents can list, search and read feedback and dashboard tasks (including the scr
|
|
|
164
212
|
|
|
165
213
|
- The project key (`pk_…`) only identifies a project. Everything is authorised on the server: the widget only works on the websites you list, sessions are bound to that website, and reviewers only see projects they were invited to.
|
|
166
214
|
- The widget runs in a Shadow DOM, adds one element to your page, needs no `unsafe-eval`, and removes itself completely on `destroy()`.
|
|
215
|
+
- Trusted Types: the widget works under `require-trusted-types-for 'script'`. The screenshot engine writes two fixed strings through one narrowly named policy, `commentkit-capture`, that accepts nothing else; no default policy is created. If your CSP limits policy names with `trusted-types`, add `commentkit-capture` (without it, screenshots are skipped and everything else works).
|
|
216
|
+
- Console and network capture are off unless the project turns them on, and then each reviewer chooses per comment ("Include browser errors to help the developer"). Only metadata is kept (message; or method, URL, status, timing for `fetch` and `XMLHttpRequest`), never bodies or headers, and credential-looking values are removed from URLs and text by name and by value. "Copy for AI agent" removes them too.
|
|
167
217
|
- Feedback text is rendered as plain text with safe links only. Agent output marks feedback as untrusted.
|
|
168
218
|
- See [SECURITY.md](SECURITY.md) for hardening guidance and how to report a vulnerability.
|
|
169
219
|
|
|
@@ -176,6 +226,29 @@ Agents can list, search and read feedback and dashboard tasks (including the scr
|
|
|
176
226
|
| Screenshot engine (only while commenting) | ~51 KB |
|
|
177
227
|
| Realtime (signed-in people only) | ~21 KB |
|
|
178
228
|
|
|
229
|
+
## Versioning and support
|
|
230
|
+
|
|
231
|
+
CommentKit follows [semantic versioning](https://semver.org): a patch fixes bugs, a minor adds options or features without breaking anything, and only a new major version may remove or change behaviour. `init()` options, the instance API, events, `data-*` attributes, the custom element and the adapters are the public API. The look of the widget and its wording can improve in any release.
|
|
232
|
+
|
|
233
|
+
**Script tag channels**
|
|
234
|
+
|
|
235
|
+
| Address | What you get |
|
|
236
|
+
| --- | --- |
|
|
237
|
+
| `https://commentkit.dev/cdn/v1/loader.js` | Moving channel: always the latest 1.x release, with fixes and new features as soon as they ship. Recommended for most sites. |
|
|
238
|
+
| `https://commentkit.dev/cdn/<version>/loader.js` (for example `/cdn/1.2.3/`) | Pinned: that exact release, never changed after it is published. |
|
|
239
|
+
|
|
240
|
+
To pin, use the exact version and its Subresource Integrity hash, so the browser refuses the file if it ever differs. The hashes for every published version are in `https://commentkit.dev/cdn/integrity.json` (served from `public/cdn/integrity.json` in the backend):
|
|
241
|
+
|
|
242
|
+
```html
|
|
243
|
+
<script src="https://commentkit.dev/cdn/1.2.3/loader.js" integrity="sha384-…" crossorigin="anonymous" data-project="pk_live_your_key" defer></script>
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
The loader then loads the rest of the widget from the same pinned folder, which is immutable. A pinned version gets no fixes: move to a newer one on purpose, and check its changelog first.
|
|
247
|
+
|
|
248
|
+
**npm**: `npm install @commentkit/comment-kit@^1` follows 1.x the same way as `/cdn/v1`; use an exact version (`--save-exact`) and your lockfile to pin. Release candidates for a future major are published under the `next` tag and are never installed by `^1`. The full rules are in [docs/VERSIONING.md](docs/VERSIONING.md).
|
|
249
|
+
|
|
250
|
+
**Support window**: each major version gets security fixes for 24 months after the next major version is released, and bug fixes until then. The end date of each major is announced in the [changelog](CHANGELOG.md) when its successor ships. Security fixes land in the latest minor of every supported major, so the moving channel and `^` ranges receive them automatically; pinned versions do not. See [SECURITY.md](SECURITY.md) to report a vulnerability.
|
|
251
|
+
|
|
179
252
|
## Development
|
|
180
253
|
|
|
181
254
|
```bash
|
|
@@ -184,10 +257,29 @@ npm run typecheck
|
|
|
184
257
|
npm test # unit tests (Vitest)
|
|
185
258
|
npm run build # npm + CDN bundles, public types, size budgets
|
|
186
259
|
npm run test:e2e # Playwright: Chromium, Firefox, WebKit
|
|
260
|
+
npm run test:visual # screenshot tests of the main widget states (Chromium; baselines recorded on macOS)
|
|
261
|
+
npm run test:host-matrix # packed SDK in Next.js, Nuxt, SvelteKit, Angular, Astro, React Router, HTML, WordPress (slow)
|
|
262
|
+
semgrep scan --config .semgrep.yml --error src # security rules for the widget (brew install semgrep)
|
|
263
|
+
npm run ci # every gate; HOST_MATRIX=1 npm run ci adds the host matrix
|
|
187
264
|
```
|
|
188
265
|
|
|
266
|
+
Locally Playwright reuses an e2e server already running on port 5190; when several checkouts (git worktrees) test at once, give each its own with `CK_E2E_PORT=5291 npm run test:e2e`. Screenshot baselines live in `e2e/specs/visual.spec.ts-snapshots/`. After an intended visual change, update them with `npx playwright test e2e/specs/visual.spec.ts --project=chromium --update-snapshots` and review the new images before committing. The host matrix (`scripts/host-matrix.mjs`) installs the `npm pack` tarball into each app in `e2e/host-matrix/`, builds it for production and checks that the widget mounts once on localhost with no console errors, and that single-page apps destroy it on a route without it. Pass app names to run some of them (`npm run test:host-matrix -- next astro`); WordPress needs `php` on the PATH and is skipped without it.
|
|
267
|
+
|
|
189
268
|
The architecture and roadmap live in [ARCHITECTURE-BLUEPRINT.md](ARCHITECTURE-BLUEPRINT.md) and [TASKS.md](TASKS.md).
|
|
190
269
|
|
|
270
|
+
## Releasing
|
|
271
|
+
|
|
272
|
+
Versions and changelogs are managed with [Changesets](https://github.com/changesets/changesets) for the four published packages: `@commentkit/comment-kit` (this folder), `comment-kit-mcp` (`mcp/`), `@commentkit/cli` (`cli/`) and `@commentkit/build` (`build/`). The browser extension, the Zapier app and the Make app are private and never versioned this way. There are no npm workspaces: each package keeps its own lockfile, and `lerna.json` only tells Changesets where the packages are.
|
|
273
|
+
|
|
274
|
+
1. With every change that people using a package will notice, add a changeset: `npm run changeset`. Pick the packages, the bump (patch, minor or major, see Versioning above) and write one plain sentence for the changelog. Commit the file in `.changeset/` with the change.
|
|
275
|
+
2. To prepare a release, run `npm run release:status` to see what will be bumped, then `npm run version`. It applies the bumps to each `package.json` and writes the changelogs. Review the diff, update each package's lockfile (`npm install --package-lock-only` in that folder), and commit.
|
|
276
|
+
3. While 1.x is in beta, run `npx changeset pre enter beta` once first, so versions come out as `1.0.0-beta.N` instead of jumping to `1.0.0`; `npx changeset pre exit` before the stable release.
|
|
277
|
+
4. Publishing stays manual and needs the owner's go-ahead each time: in each package folder, `npm run check` (or that package's gates) and `node scripts/check-pack.mjs`, then `npm publish`. Do not run `changeset publish`.
|
|
278
|
+
|
|
279
|
+
5. The CDN widget rolls out gradually. In the backend, `scripts/sync-sdk.sh` writes the pinned `public/cdn/<version>/` folder (with SRI hashes); deploy it, then `php artisan cdn:canary <version> --percent=1`, later `10` and `100`. The `/cdn/v1/` loader asks `/api/v1/widget/channel` which version to load, so a change takes effect within a minute. Widget crashes are counted per version, and the canary is rolled back automatically when it crashes in more than 1% of loads or three times as often as stable (`cdn:canary --status`, `--rollback` by hand). When it has held at 100%, sync it into `/cdn/v1/` (the stable files), deploy, and `cdn:canary --clear`.
|
|
280
|
+
|
|
281
|
+
`npm run version` is also npm's lifecycle hook for `npm version`, so `npm version` in this folder runs Changesets too; use the steps above instead of `npm version`.
|
|
282
|
+
|
|
191
283
|
## License
|
|
192
284
|
|
|
193
285
|
Proprietary. See [LICENSE](LICENSE).
|
package/SECURITY.md
CHANGED
|
@@ -39,7 +39,7 @@ Vulnerabilities in the hosted service (`commentkit.dev`, the dashboard and API)
|
|
|
39
39
|
|
|
40
40
|
## How CommentKit protects you
|
|
41
41
|
|
|
42
|
-
- **The project key identifies, it does not authorise.** `pk_…` keys are public. The API only accepts browser calls from the website addresses you list in Project →
|
|
42
|
+
- **The project key identifies, it does not authorise.** `pk_…` keys are public. The API only accepts browser calls from the website addresses you list in Project → Setup (exact scheme, host and port; `*.` wildcards for preview links), and every action is checked against the signed-in person's role.
|
|
43
43
|
- **Sessions are bound to one website.** Sign-in happens on the CommentKit domain (popup or same-tab redirect) with PKCE. Access tokens last 15 minutes and only work from the website they were issued to; refresh tokens rotate on every use, and replaying an old one ends the whole session. The refresh token is stored in `localStorage` for that website, so scripts already running on your page could read it; it is useless from any other origin.
|
|
44
44
|
- **Agent tokens are server-side only.** They are scoped to one project, read-only unless a person grants reply or ready-for-review, refused when sent from a browser, and stop working when that person loses access.
|
|
45
45
|
- **Screenshots leave out private data.** Password, payment and one-time-code fields, hidden inputs, iframes, the widget itself and anything matching `data-commentkit-redact` or your dashboard privacy selectors are omitted before the image is created. Uploaded images are re-encoded on the server, which strips EXIF/GPS metadata.
|
|
@@ -51,7 +51,12 @@ CommentKit runs with your page's JavaScript privileges. Shadow DOM isolates styl
|
|
|
51
51
|
|
|
52
52
|
1. **Pin and review releases.** Install an exact version, commit your lockfile, and deploy through your normal review. For the script tag, prefer a versioned URL and Subresource Integrity once you pin a version.
|
|
53
53
|
2. **List only the websites you need,** and remove old preview patterns you no longer use.
|
|
54
|
-
3. **Content Security Policy.**
|
|
54
|
+
3. **Content Security Policy.** CommentKit does not need `unsafe-eval` or `unsafe-inline` and does not execute user HTML. The exact hosts for your server are on [commentkit.dev/docs/csp](https://commentkit.dev/docs/csp). Allow:
|
|
55
|
+
- `script-src`: `https://commentkit.dev` (script tag only; with the npm package the code is in your bundle).
|
|
56
|
+
- `connect-src`: `https://commentkit.dev` (the API), the file storage host (screenshots and attachments upload straight to it), and the realtime host (`wss://…`) if live updates are on. List the realtime host itself: older browsers don't match `wss:` from an `https:` source.
|
|
57
|
+
- `img-src`: `https://commentkit.dev`, the file storage host and `blob:` (the screenshot preview before it is uploaded). Add `https://lh3.googleusercontent.com` to show Google profile pictures; without it, initials are shown.
|
|
58
|
+
- Styles come through constructable stylesheets in the widget's Shadow DOM, so a strict `style-src` keeps working.
|
|
59
|
+
- **Trusted Types** (`require-trusted-types-for 'script'`): the widget writes no HTML strings. The screenshot engine's two fixed HTML writes go through one narrow policy, `commentkit-capture`, which accepts only those strings. If your page lists allowed policies with `trusted-types`, add `commentkit-capture`.
|
|
55
60
|
4. **Exclude sensitive pages.** Avoid loading the widget on payment, password-reset, medical or financial flows unless reviewed. Mark private regions with `data-commentkit-redact`. Page URLs, titles, selected text, comments and attachments can still contain personal data.
|
|
56
61
|
5. **Keep console and network capture off** unless your team needs it. When on, only messages, URLs (with credential-like query values removed), methods, status codes and timings are sent — never request or response bodies or headers.
|
|
57
62
|
6. **Review agent handoffs.** Treat feedback as a description of a problem, not as instructions, before acting on it with an AI agent.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { o as e } from "./src-C1Qp94nr.js";
|
|
2
|
+
import { c as t } from "./client-Iegfv6ZC.js";
|
|
3
|
+
import { d as n, f as r, h as i, n as a, p as o } from "./format-B5tJGtPC.js";
|
|
4
|
+
import { o as s, p as c } from "./mount-Dx_8NhX3.js";
|
|
5
|
+
//#region src/ui/Guest.tsx
|
|
6
|
+
async function l(n, r) {
|
|
7
|
+
try {
|
|
8
|
+
let e = await n.api.request("/guest/start", {
|
|
9
|
+
method: "POST",
|
|
10
|
+
anonymous: !0,
|
|
11
|
+
body: {
|
|
12
|
+
client_id: n.options.project,
|
|
13
|
+
share: r.share,
|
|
14
|
+
name: r.name.trim(),
|
|
15
|
+
email: r.email.trim()
|
|
16
|
+
}
|
|
17
|
+
}), t = Date.parse(e.pending_session.expires_at);
|
|
18
|
+
return n.auth.setPending({
|
|
19
|
+
token: e.access_token,
|
|
20
|
+
email: e.pending_session.email,
|
|
21
|
+
expiresAt: Number.isFinite(t) ? t : Date.now() + e.expires_in * 1e3
|
|
22
|
+
}), "started";
|
|
23
|
+
} catch (n) {
|
|
24
|
+
if (n instanceof t && n.code === "origin_not_allowed") return "popup";
|
|
25
|
+
throw n instanceof t && (n.code === "share_expired" || n.status === 410 || n.errors?.share) ? new t(410, "share_expired", e("shareExpired")) : n;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function u({ client: l, email: u, onDone: f, onDifferentEmail: p, onClose: m }) {
|
|
29
|
+
let [h, g] = i(""), [_, v] = i(!1), [y, b] = i(null), [x, S] = i(null), C = o(null);
|
|
30
|
+
r(() => C.current?.focus({ preventScroll: !0 }), []);
|
|
31
|
+
let w = async () => {
|
|
32
|
+
if (/^\d{6}$/.test(h) && !_) {
|
|
33
|
+
v(!0), b(null);
|
|
34
|
+
try {
|
|
35
|
+
let e = await l.api.request("/guest/verify", {
|
|
36
|
+
method: "POST",
|
|
37
|
+
body: { code: h }
|
|
38
|
+
});
|
|
39
|
+
l.auth.adopt(e), await l.loadSession().catch(() => null), f(e.published_thread_ids ?? []);
|
|
40
|
+
} catch (n) {
|
|
41
|
+
if ((n instanceof t ? n.status : 0) === 422) return b({
|
|
42
|
+
text: e("verifyWrong"),
|
|
43
|
+
tone: "warning"
|
|
44
|
+
});
|
|
45
|
+
let r = d(n);
|
|
46
|
+
r && (l.auth.setPending(null), S(r === "expired" ? "again" : "stop")), b({
|
|
47
|
+
text: r ? e(r === "link" ? "verifyLinkExpired" : r === "removed" ? "verifyRemoved" : "verifyExpired") : c(n),
|
|
48
|
+
tone: "warning"
|
|
49
|
+
});
|
|
50
|
+
} finally {
|
|
51
|
+
v(!1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}, T = async () => {
|
|
55
|
+
try {
|
|
56
|
+
await l.api.request("/guest/resend", { method: "POST" }), b({ text: e("verifyResent") });
|
|
57
|
+
} catch (n) {
|
|
58
|
+
b({
|
|
59
|
+
text: n instanceof t && n.status === 429 ? e("verifyWait") : e("errorGeneric"),
|
|
60
|
+
tone: "warning"
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return /* @__PURE__ */ n("div", {
|
|
65
|
+
class: "ck-card",
|
|
66
|
+
style: s({
|
|
67
|
+
x: innerWidth / 2 - 190,
|
|
68
|
+
y: 80
|
|
69
|
+
}),
|
|
70
|
+
role: "dialog",
|
|
71
|
+
"aria-labelledby": "ck-verify-title",
|
|
72
|
+
"data-commentkit-ui": !0,
|
|
73
|
+
onKeyDown: (e) => e.key === "Escape" && m(),
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ n("div", {
|
|
76
|
+
class: "ck-card-head",
|
|
77
|
+
children: [/* @__PURE__ */ n("h2", {
|
|
78
|
+
class: "ck-card-title",
|
|
79
|
+
id: "ck-verify-title",
|
|
80
|
+
children: e("verifyTitle")
|
|
81
|
+
}), /* @__PURE__ */ n("button", {
|
|
82
|
+
class: "ck-ghost",
|
|
83
|
+
"aria-label": e("close"),
|
|
84
|
+
onClick: m,
|
|
85
|
+
children: /* @__PURE__ */ n(a, { name: "close" })
|
|
86
|
+
})]
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ n("div", {
|
|
89
|
+
class: "ck-card-body",
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ n("p", {
|
|
92
|
+
class: "ck-verify-text",
|
|
93
|
+
children: e("verifyBody", { email: u })
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ n("label", {
|
|
96
|
+
class: "ck-field",
|
|
97
|
+
children: [/* @__PURE__ */ n("span", { children: e("verifyCode") }), /* @__PURE__ */ n("input", {
|
|
98
|
+
ref: C,
|
|
99
|
+
class: "ck-input ck-code",
|
|
100
|
+
inputMode: "numeric",
|
|
101
|
+
autoComplete: "one-time-code",
|
|
102
|
+
pattern: "[0-9]*",
|
|
103
|
+
maxLength: 6,
|
|
104
|
+
value: h,
|
|
105
|
+
onInput: (e) => g(e.target.value.replace(/\D/g, "").slice(0, 6)),
|
|
106
|
+
onKeyDown: (e) => {
|
|
107
|
+
e.stopPropagation(), e.key === "Enter" && w(), e.key === "Escape" && m();
|
|
108
|
+
}
|
|
109
|
+
})]
|
|
110
|
+
}),
|
|
111
|
+
y ? /* @__PURE__ */ n("div", {
|
|
112
|
+
class: "ck-note",
|
|
113
|
+
role: y.tone ? "alert" : "status",
|
|
114
|
+
"data-tone": y.tone,
|
|
115
|
+
children: y.text
|
|
116
|
+
}) : null,
|
|
117
|
+
x ? null : /* @__PURE__ */ n("div", {
|
|
118
|
+
class: "ck-actions",
|
|
119
|
+
children: [/* @__PURE__ */ n("button", {
|
|
120
|
+
class: "ck-chip",
|
|
121
|
+
onClick: () => void T(),
|
|
122
|
+
children: e("verifyResend")
|
|
123
|
+
}), /* @__PURE__ */ n("button", {
|
|
124
|
+
class: "ck-chip",
|
|
125
|
+
onClick: () => {
|
|
126
|
+
l.auth.setPending(null), p();
|
|
127
|
+
},
|
|
128
|
+
children: e("verifyDifferent")
|
|
129
|
+
})]
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ n("div", {
|
|
134
|
+
class: "ck-card-foot",
|
|
135
|
+
children: [/* @__PURE__ */ n("span", { class: "ck-spacer" }), x === "again" ? /* @__PURE__ */ n("button", {
|
|
136
|
+
class: "ck-btn ck-primary",
|
|
137
|
+
onClick: p,
|
|
138
|
+
children: e("writeAgain")
|
|
139
|
+
}) : x === "stop" ? /* @__PURE__ */ n("button", {
|
|
140
|
+
class: "ck-btn",
|
|
141
|
+
onClick: m,
|
|
142
|
+
children: e("close")
|
|
143
|
+
}) : /* @__PURE__ */ n("button", {
|
|
144
|
+
class: "ck-btn ck-primary",
|
|
145
|
+
disabled: _ || h.length !== 6,
|
|
146
|
+
onClick: () => void w(),
|
|
147
|
+
children: e(_ ? "sending" : "verifyPublish")
|
|
148
|
+
})]
|
|
149
|
+
})
|
|
150
|
+
]
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function d(e) {
|
|
154
|
+
return e instanceof t ? e.code === "share_expired" || e.status === 410 ? "link" : e.code === "guest_removed" ? "removed" : e.status === 403 ? /\blink\b/i.test(e.message) ? "link" : "removed" : e.status === 409 || e.status === 401 ? "expired" : null : null;
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { u as GuestVerify, l as startGuest };
|