@commentkit/comment-kit 1.0.0-beta.0 → 1.0.0-beta.2
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 +63 -0
- package/README.md +102 -8
- package/SECURITY.md +7 -2
- package/dist/npm/chunks/Guest-CKoV6pEK.js +157 -0
- package/dist/npm/chunks/MarkupEditor-DAo4qppg.js +199 -0
- package/dist/npm/chunks/Panel-BRBDHlGg.js +399 -0
- package/dist/npm/chunks/Shortcuts-CHMcrjAM.js +56 -0
- package/dist/npm/chunks/ThreadCard-D8FzIxbs.js +570 -0
- package/dist/npm/chunks/ar-D3SPpN1T.js +195 -0
- package/dist/npm/chunks/{client-D1vrh_5G.js → client-D1NizpDK.js} +86 -49
- package/dist/npm/chunks/de-C8eC6c6f.js +187 -0
- package/dist/npm/chunks/es-Bczf42tm.js +187 -0
- package/dist/npm/chunks/extension--it1LAj-.js +54 -0
- package/dist/npm/chunks/extension-XfuRGu2o.js +26 -0
- package/dist/npm/chunks/format-Bw_tNOh9.js +524 -0
- package/dist/npm/chunks/fr-BaQw-v2e.js +187 -0
- package/dist/npm/chunks/hi-BamV-yXv.js +187 -0
- package/dist/npm/chunks/{html2canvas-_mjSRP3G.js → html2canvas-DfGb8yka.js} +1145 -1132
- package/dist/npm/chunks/it-DC14_EjN.js +187 -0
- package/dist/npm/chunks/ja-B1mmTN7Y.js +187 -0
- package/dist/npm/chunks/mount-5fFig0k6.js +1447 -0
- package/dist/npm/chunks/nl-BfhqUsmX.js +187 -0
- package/dist/npm/chunks/privacy-DLhezjyi.js +30 -0
- package/dist/npm/chunks/pt-BR-CEPu4W5U.js +187 -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-Dh4fxd4J.js +27 -0
- package/dist/npm/chunks/{rolldown-runtime-VHNaYcLd.js → rolldown-runtime-Y_bBpyJl.js} +10 -3
- package/dist/npm/chunks/src-DujplxfI.js +517 -0
- package/dist/npm/chunks/zh-CN-kgqjYwHQ.js +187 -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/core/api.d.ts +2 -0
- package/dist/npm/types/core/auth.d.ts +42 -3
- package/dist/npm/types/core/client.d.ts +15 -1
- package/dist/npm/types/core/types.d.ts +31 -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
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-VHNaYcLd.js";
|
|
2
|
-
//#region src/core/realtime.ts
|
|
3
|
-
async function t(t) {
|
|
4
|
-
let { default: n } = await import("./pusher-DRKlokR8.js").then((t) => /* @__PURE__ */ e(t.default, 1)), r = new n(t.key, {
|
|
5
|
-
wsHost: t.host,
|
|
6
|
-
wsPort: t.port,
|
|
7
|
-
wssPort: t.port,
|
|
8
|
-
forceTLS: t.scheme === "https",
|
|
9
|
-
enabledTransports: ["ws", "wss"],
|
|
10
|
-
disableStats: !0,
|
|
11
|
-
cluster: "",
|
|
12
|
-
channelAuthorization: {
|
|
13
|
-
transport: "ajax",
|
|
14
|
-
endpoint: "/unused",
|
|
15
|
-
customHandler: (e, n) => {
|
|
16
|
-
t.authorize(e.socketId, e.channelName).then((e) => n(null, e), (e) => n(e, null));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
return r.subscribe(`presence-ck.project.${t.projectId}`).bind("feedback.changed", (e) => t.onFeedback(e)), r.subscribe(`private-ck.inbox.${t.inbox}`).bind("inbox.changed", (e) => t.onInbox(e.unread)), { disconnect: () => r.disconnect() };
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { t as connect };
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./client-D1vrh_5G.js";
|
|
2
|
-
//#region src/activation.ts
|
|
3
|
-
var t = "commentkit:active";
|
|
4
|
-
function n(e = location.origin) {
|
|
5
|
-
let t = new URL(e).hostname;
|
|
6
|
-
return t === "localhost" || t === "127.0.0.1" || t === "[::1]" || t.endsWith(".localhost") || t.endsWith(".test");
|
|
7
|
-
}
|
|
8
|
-
function r(e, t = !0) {
|
|
9
|
-
if (!t || n()) return !0;
|
|
10
|
-
let r = new URLSearchParams(location.search);
|
|
11
|
-
if (r.has("ck") || r.has("ck_thread") || r.has("ck_code")) return !0;
|
|
12
|
-
try {
|
|
13
|
-
return !!localStorage.getItem(`commentkit:v1:${e}`) || localStorage.getItem("commentkit:active") === "1";
|
|
14
|
-
} catch {
|
|
15
|
-
return !1;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function i(e) {
|
|
19
|
-
try {
|
|
20
|
-
e ? localStorage.setItem(t, "1") : localStorage.removeItem(t);
|
|
21
|
-
} catch {}
|
|
22
|
-
}
|
|
23
|
-
function a(e) {
|
|
24
|
-
let t = (t) => {
|
|
25
|
-
(t.metaKey || t.ctrlKey) && t.shiftKey && t.key.toLowerCase() === "k" && (t.preventDefault(), e());
|
|
26
|
-
};
|
|
27
|
-
return addEventListener("keydown", t), () => removeEventListener("keydown", t);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/capture/diagnostics.ts
|
|
31
|
-
var o = 20, s = /^(token|access_token|id_token|refresh_token|code|key|api_key|apikey|secret|password|pass|auth|session|sig|signature|x-amz-[a-z-]+|ck_invite)$/i, c = [], l = [], u = !1;
|
|
32
|
-
function d(e) {
|
|
33
|
-
if (u) return () => void 0;
|
|
34
|
-
u = !0;
|
|
35
|
-
let t = [];
|
|
36
|
-
if (e.console) {
|
|
37
|
-
for (let e of ["error", "warn"]) {
|
|
38
|
-
let n = console[e];
|
|
39
|
-
console[e] = (...t) => {
|
|
40
|
-
m(c, {
|
|
41
|
-
level: e,
|
|
42
|
-
message: g(t.map(_).join(" ")).slice(0, 1e3),
|
|
43
|
-
at: (/* @__PURE__ */ new Date()).toISOString()
|
|
44
|
-
}), n.apply(console, t);
|
|
45
|
-
}, t.push(() => console[e] = n);
|
|
46
|
-
}
|
|
47
|
-
let e = (e) => m(c, {
|
|
48
|
-
level: "error",
|
|
49
|
-
message: g(e.message || String(e.error)).slice(0, 1e3),
|
|
50
|
-
at: (/* @__PURE__ */ new Date()).toISOString()
|
|
51
|
-
}), n = (e) => m(c, {
|
|
52
|
-
level: "error",
|
|
53
|
-
message: g(`Unhandled promise rejection: ${_(e.reason)}`).slice(0, 1e3),
|
|
54
|
-
at: (/* @__PURE__ */ new Date()).toISOString()
|
|
55
|
-
});
|
|
56
|
-
addEventListener("error", e), addEventListener("unhandledrejection", n), t.push(() => removeEventListener("error", e), () => removeEventListener("unhandledrejection", n));
|
|
57
|
-
}
|
|
58
|
-
if (e.network && typeof fetch == "function") {
|
|
59
|
-
let e = window.fetch;
|
|
60
|
-
window.fetch = async (...t) => {
|
|
61
|
-
let n = performance.now(), r = (t[1]?.method ?? (t[0] instanceof Request ? t[0].method : "GET")).toUpperCase(), i = t[0] instanceof Request ? t[0].url : String(t[0]);
|
|
62
|
-
try {
|
|
63
|
-
let a = await e(...t);
|
|
64
|
-
return a.status >= 400 && p(r, i, a.status, n), a;
|
|
65
|
-
} catch (e) {
|
|
66
|
-
throw p(r, i, 0, n), e;
|
|
67
|
-
}
|
|
68
|
-
}, t.push(() => window.fetch = e);
|
|
69
|
-
}
|
|
70
|
-
return () => {
|
|
71
|
-
t.forEach((e) => e()), u = !1;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function f() {
|
|
75
|
-
return {
|
|
76
|
-
console: c.length ? [...c] : void 0,
|
|
77
|
-
network: l.length ? [...l] : void 0
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function p(e, t, n, r) {
|
|
81
|
-
t.includes("/api/v1/") || m(l, {
|
|
82
|
-
method: e.slice(0, 10),
|
|
83
|
-
url: h(t).slice(0, 2e3),
|
|
84
|
-
status: n,
|
|
85
|
-
duration_ms: Math.round(performance.now() - r)
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function m(e, t) {
|
|
89
|
-
e.push(t), e.length > o && e.shift();
|
|
90
|
-
}
|
|
91
|
-
function h(e) {
|
|
92
|
-
try {
|
|
93
|
-
let t = new URL(e, location.href);
|
|
94
|
-
t.username = "", t.password = "";
|
|
95
|
-
for (let e of [...t.searchParams.keys()]) s.test(e) && t.searchParams.set(e, "[redacted]");
|
|
96
|
-
return t.toString();
|
|
97
|
-
} catch {
|
|
98
|
-
return "[unparseable url]";
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
function g(e) {
|
|
102
|
-
return e.replace(/Bearer\s+[A-Za-z0-9._~+/-]+=*/gi, "Bearer [redacted]").replace(/eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+/g, "[redacted-jwt]").replace(/https?:\/\/[^\s"'<>]+/g, (e) => h(e));
|
|
103
|
-
}
|
|
104
|
-
function _(e) {
|
|
105
|
-
if (e instanceof Error) return `${e.name}: ${e.message}`;
|
|
106
|
-
if (typeof e == "string") return e;
|
|
107
|
-
try {
|
|
108
|
-
return JSON.stringify(e)?.slice(0, 500) ?? String(e);
|
|
109
|
-
} catch {
|
|
110
|
-
return String(e);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region src/ui/i18n.ts
|
|
115
|
-
var v = {
|
|
116
|
-
launcher: "Feedback",
|
|
117
|
-
launcherHint: "Leave feedback on this page",
|
|
118
|
-
comment: "Comment",
|
|
119
|
-
commentHint: "Click anything on the page to comment on it",
|
|
120
|
-
inbox: "Inbox",
|
|
121
|
-
close: "Close",
|
|
122
|
-
cancel: "Cancel",
|
|
123
|
-
send: "Send",
|
|
124
|
-
sending: "Sending…",
|
|
125
|
-
reply: "Reply",
|
|
126
|
-
replyPlaceholder: "Write a reply…",
|
|
127
|
-
composerPlaceholder: "What should change here? Be as specific as you like.",
|
|
128
|
-
modeBar: "Click anything to comment · Drag to mark an area · Esc to stop",
|
|
129
|
-
modeBarTouch: "Tap anything to comment · Scroll as usual · Select text first to quote it",
|
|
130
|
-
commentOnPage: "Comment on the whole page",
|
|
131
|
-
commentFocused: "Comment on the selected part",
|
|
132
|
-
attach: "Attach a file",
|
|
133
|
-
screenshot: "Screenshot",
|
|
134
|
-
screenshotIncluded: "A screenshot of what you see is included automatically.",
|
|
135
|
-
screenshotRemove: "Don't include screenshot",
|
|
136
|
-
screenshotAdd: "Include screenshot",
|
|
137
|
-
markup: "Draw on screenshot",
|
|
138
|
-
markupDone: "Done drawing",
|
|
139
|
-
capturing: "Taking screenshot…",
|
|
140
|
-
uploadFailed: "The file could not be attached. You can still send your comment.",
|
|
141
|
-
signInToSend: "One last step: tell us who you are",
|
|
142
|
-
signInExplain: "We open a small window so you can confirm your email. You only do this once on this device.",
|
|
143
|
-
signIn: "Continue",
|
|
144
|
-
signInMember: "Sign in",
|
|
145
|
-
signOut: "Sign out",
|
|
146
|
-
popupBlocked: "Your browser blocked the sign-in window. Click the button again, or allow pop-ups for this site.",
|
|
147
|
-
signInCancelled: "Sign-in was closed before it finished. Your comment is still here.",
|
|
148
|
-
sent: "Sent! The team has been notified.",
|
|
149
|
-
sentGuest: "Sent! We'll email you when someone replies.",
|
|
150
|
-
thisPage: "This page",
|
|
151
|
-
allPages: "All pages",
|
|
152
|
-
notifications: "Notifications",
|
|
153
|
-
nothingHere: "No feedback on this page yet.",
|
|
154
|
-
nothingHereHint: "Click Comment, then click anything on the page.",
|
|
155
|
-
allCaughtUp: "You're all caught up.",
|
|
156
|
-
search: "Search feedback",
|
|
157
|
-
detached: "We can't find this spot on the page anymore. It may have changed since the comment was left.",
|
|
158
|
-
moved: "This part of the page changed since the comment was left.",
|
|
159
|
-
otherScreen: "Left on a {width}px wide screen",
|
|
160
|
-
status_open: "Open",
|
|
161
|
-
status_in_progress: "In progress",
|
|
162
|
-
status_in_review: "Ready for review",
|
|
163
|
-
status_resolved: "Resolved",
|
|
164
|
-
status_closed: "Closed",
|
|
165
|
-
resolve: "Resolve",
|
|
166
|
-
resolveHint: "Mark this as fixed",
|
|
167
|
-
reopen: "Reopen",
|
|
168
|
-
markInProgress: "Start working",
|
|
169
|
-
markInReview: "Ready for review",
|
|
170
|
-
closeThread: "Close without changes",
|
|
171
|
-
reviewAsk: "The team thinks this is fixed. Does it look right to you?",
|
|
172
|
-
looksGood: "Looks good — resolve",
|
|
173
|
-
notYet: "Not yet — reply",
|
|
174
|
-
copyLink: "Copy link",
|
|
175
|
-
copied: "Copied",
|
|
176
|
-
copyForAgent: "Copy for AI agent",
|
|
177
|
-
copiedForAgent: "Copied. Paste it into your AI coding agent.",
|
|
178
|
-
delete: "Delete",
|
|
179
|
-
deleteConfirm: "Delete this feedback for everyone? This can't be undone.",
|
|
180
|
-
edit: "Edit",
|
|
181
|
-
edited: "edited",
|
|
182
|
-
save: "Save",
|
|
183
|
-
mute: "Stop notifications",
|
|
184
|
-
unmute: "Notify me",
|
|
185
|
-
assign: "Assign",
|
|
186
|
-
unassigned: "Unassigned",
|
|
187
|
-
priority: "Priority",
|
|
188
|
-
readOnly: "Feedback is read-only right now because the workspace plan has ended. You can still read everything.",
|
|
189
|
-
offline: "You're offline. We'll keep your draft until you're back.",
|
|
190
|
-
offlineSend: "You're offline. Your comment is saved here; send it when you're back online.",
|
|
191
|
-
errorGeneric: "Something went wrong. Please try again.",
|
|
192
|
-
loadFailed: "We couldn't load the feedback. Check your connection and try again.",
|
|
193
|
-
sendFailed: "Your comment wasn't sent yet. It's still here, so you can try again.",
|
|
194
|
-
retry: "Try again",
|
|
195
|
-
loadingThread: "Loading the conversation…",
|
|
196
|
-
readOnlyReply: "You can read this conversation, but replies are turned off right now.",
|
|
197
|
-
noReplyAccess: "You can read this feedback, but you don't have permission to reply.",
|
|
198
|
-
notOnPage: "Not found on this page",
|
|
199
|
-
more: "More",
|
|
200
|
-
allStatuses: "All",
|
|
201
|
-
markAllRead: "Mark all as read",
|
|
202
|
-
messageCount: "{n} messages",
|
|
203
|
-
messageCountOne: "1 message",
|
|
204
|
-
kind_mention: "mentioned you",
|
|
205
|
-
kind_reply: "replied",
|
|
206
|
-
kind_assigned: "assigned you",
|
|
207
|
-
kind_ready_for_review: "asked you to check a fix",
|
|
208
|
-
kind_reopened: "reopened",
|
|
209
|
-
kind_resolved: "resolved",
|
|
210
|
-
kind_closed: "closed",
|
|
211
|
-
kind_new_feedback: "left feedback",
|
|
212
|
-
kind_due_soon: "reminds you this is due soon",
|
|
213
|
-
kind_overdue: "reminds you this is overdue",
|
|
214
|
-
kind_agent_request: "wants your approval",
|
|
215
|
-
branchFilter: "Which branch to show",
|
|
216
|
-
thisBranch: "This branch ({branch})",
|
|
217
|
-
allBranches: "All branches",
|
|
218
|
-
onBranch: "on {branch}",
|
|
219
|
-
leftOnBranch: "Left on {branch}{commit}",
|
|
220
|
-
welcomeTitle: "You're invited to give feedback",
|
|
221
|
-
welcomeBody: "Click Comment, then click anything on this page that should change. Your comment stays pinned to that exact spot.",
|
|
222
|
-
welcomeStart: "Show me how",
|
|
223
|
-
tourStep1: "Click Comment",
|
|
224
|
-
tourStep2: "Click the part of the page you want to talk about",
|
|
225
|
-
tourStep3: "Write what should change and press Send",
|
|
226
|
-
gotIt: "Got it",
|
|
227
|
-
shortcuts: "Shortcuts: C to comment, J / K for next or previous, E to resolve, Esc to close, Cmd/Ctrl + Shift + K to show or hide",
|
|
228
|
-
justNow: "just now",
|
|
229
|
-
minutesAgo: "{n} min ago",
|
|
230
|
-
hoursAgo: "{n} h ago",
|
|
231
|
-
daysAgo: "{n} d ago",
|
|
232
|
-
loadingEarlier: "Loading…",
|
|
233
|
-
you: "You",
|
|
234
|
-
team: "Team"
|
|
235
|
-
}, y = { en: v }, b = v;
|
|
236
|
-
function x(e) {
|
|
237
|
-
b = y[(e ?? navigator.language ?? "en").toLowerCase().split("-")[0] ?? "en"] ?? v;
|
|
238
|
-
}
|
|
239
|
-
function S(e, t = {}) {
|
|
240
|
-
return (b[e] ?? v[e]).replace(/\{(\w+)\}/g, (e, n) => String(t[n] ?? ""));
|
|
241
|
-
}
|
|
242
|
-
function C() {
|
|
243
|
-
let e = document.documentElement.dir || document.body?.dir;
|
|
244
|
-
return e === "rtl" || e === "ltr" ? e : /^(ar|he|fa|ur|ps|yi)(-|$)/i.test(document.documentElement.lang || navigator.language || "") ? "rtl" : "ltr";
|
|
245
|
-
}
|
|
246
|
-
function w(e) {
|
|
247
|
-
let t = Math.max(0, (Date.now() - new Date(e).getTime()) / 1e3);
|
|
248
|
-
return t < 60 ? S("justNow") : t < 3600 ? S("minutesAgo", { n: Math.floor(t / 60) }) : t < 86400 ? S("hoursAgo", { n: Math.floor(t / 3600) }) : t < 2592e3 ? S("daysAgo", { n: Math.floor(t / 86400) }) : new Date(e).toLocaleDateString();
|
|
249
|
-
}
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/index.ts
|
|
252
|
-
var T = null;
|
|
253
|
-
function E() {
|
|
254
|
-
let e = (e) => typeof e == "string" && e.trim() ? e.trim().slice(0, 255) : null;
|
|
255
|
-
try {
|
|
256
|
-
let t = typeof __COMMENTKIT_BUILD__ < "u" ? __COMMENTKIT_BUILD__ : globalThis.__COMMENTKIT_BUILD__;
|
|
257
|
-
if (typeof t == "string" && (t = JSON.parse(t)), !t || typeof t != "object") return {
|
|
258
|
-
branch: null,
|
|
259
|
-
commit: null
|
|
260
|
-
};
|
|
261
|
-
let n = t;
|
|
262
|
-
return {
|
|
263
|
-
branch: e(n.branch),
|
|
264
|
-
commit: e(n.commit)
|
|
265
|
-
};
|
|
266
|
-
} catch {
|
|
267
|
-
return {
|
|
268
|
-
branch: null,
|
|
269
|
-
commit: null
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
function D(t) {
|
|
274
|
-
if (T) return T;
|
|
275
|
-
if (typeof window > "u") return O(t);
|
|
276
|
-
if (!t?.project || !/^pk_(live|test)_[a-z0-9]{20,40}$/.test(t.project)) return console.warn("[CommentKit] init() needs your publishable project key (pk_live_… or pk_test_…). Find it in Project settings → Install."), O(t);
|
|
277
|
-
let n = E(), o = {
|
|
278
|
-
...t,
|
|
279
|
-
branch: t.branch || n.branch,
|
|
280
|
-
commit: t.commit || n.commit
|
|
281
|
-
};
|
|
282
|
-
x(o.locale);
|
|
283
|
-
let s = new e(o), c = null, l = null, u = null, f = () => c ? Promise.resolve() : (u ?? (u = (async () => {
|
|
284
|
-
try {
|
|
285
|
-
let e = await s.loadConfig();
|
|
286
|
-
if (!e.enabled) return;
|
|
287
|
-
await s.auth.completeRedirect().catch(() => !1), await s.loadSession().catch(() => null), l = d({
|
|
288
|
-
console: e.features.console_capture,
|
|
289
|
-
network: e.features.network_capture
|
|
290
|
-
});
|
|
291
|
-
let { mountWidget: t } = await import("./mount-Ce1MZrcm.js");
|
|
292
|
-
c = t(s), s.emit("ready", { session: s.state.get().session });
|
|
293
|
-
} catch (e) {
|
|
294
|
-
console.warn("[CommentKit] The widget could not start.", e);
|
|
295
|
-
} finally {
|
|
296
|
-
u = null;
|
|
297
|
-
}
|
|
298
|
-
})()), u), p = () => {
|
|
299
|
-
c?.(), c = null, l?.(), l = null;
|
|
300
|
-
}, m = a(() => {
|
|
301
|
-
c ? (p(), i(!1)) : (i(!0), f());
|
|
302
|
-
});
|
|
303
|
-
return r(o.project, o.hideOnProduction ?? !0) && f(), T = {
|
|
304
|
-
client: s,
|
|
305
|
-
show: f,
|
|
306
|
-
hide: p,
|
|
307
|
-
signIn: async () => await s.signIn() === "signed_in",
|
|
308
|
-
signOut: () => s.signOut(),
|
|
309
|
-
session: () => s.state.get().session,
|
|
310
|
-
on: (e, t) => s.on(e, t),
|
|
311
|
-
destroy() {
|
|
312
|
-
p(), m(), s.destroy(), T = null;
|
|
313
|
-
}
|
|
314
|
-
}, T;
|
|
315
|
-
}
|
|
316
|
-
function O(e) {
|
|
317
|
-
let t = async () => void 0;
|
|
318
|
-
return {
|
|
319
|
-
client: void 0,
|
|
320
|
-
show: t,
|
|
321
|
-
hide: () => void 0,
|
|
322
|
-
signIn: async () => !1,
|
|
323
|
-
signOut: t,
|
|
324
|
-
session: () => null,
|
|
325
|
-
on: () => () => void 0,
|
|
326
|
-
destroy: () => void 0
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
//#endregion
|
|
330
|
-
export { f as a, C as i, w as n, S as r, D as t };
|