@vite-hub/comments 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -4
- package/dist/{client-diagnostics-CvfTW5d4.js → client-diagnostics-D987sEK7.js} +4 -0
- package/dist/client.d.ts +96 -19
- package/dist/client.js +525 -79
- package/dist/{console-CK2F53QP.d.ts → console-CCLX_eIk.d.ts} +1 -1
- package/dist/{database-BkPoOdZr.js → database-Cguz3hZL.js} +1 -1
- package/dist/database.js +1 -1
- package/dist/{define-9uMM3Ewc.js → define-C2tnAtBU.js} +2 -2
- package/dist/{errors-DFNiJg67.js → errors-ByCRdInk.js} +1 -1
- package/dist/hosted/hosted-comments/{client-B3dlmmQd.js → client-Czl2zu9P.js} +3 -3
- package/dist/hosted/hosted-comments/frame.js +1 -1
- package/dist/hosted/hosted-comments/overlay-DpS0P-nd.js +186 -0
- package/dist/hosted/hosted-comments/protocol-DuB0Zhs-.js +1 -0
- package/dist/hosted/hosted-comments/rest-transport-CKZG_jZ4.js +1 -0
- package/dist/hosted/hosted-comments/tools-D8xg-kDW.js +126 -0
- package/dist/hosted/hosted-comments.js +13 -3
- package/dist/{index-BEnHTj2Z.d.ts → index-D1T7RJ4R.d.ts} +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -10
- package/dist/{install-B-FQpi47.d.ts → install-9L4ASzUC.d.ts} +11 -2
- package/dist/{install-BUXxryut.js → install-D6hXZaSN.js} +45 -19
- package/dist/{installed-C9SkldMi.js → installed-bPUnazFf.js} +1 -1
- package/dist/{operations-CKC_lMG_.js → operations-B1ALn4VS.js} +7 -7
- package/dist/{operations-Cic9A9e_.d.ts → operations-BkkrI8a3.d.ts} +1 -1
- package/dist/operations.d.ts +2 -2
- package/dist/operations.js +2 -2
- package/dist/overlay/{client-CerbVjTz.js → client-C7ftI-CB.js} +3 -3
- package/dist/overlay/overlay.js +42 -16
- package/dist/page/loader.js +1 -1
- package/dist/{page-xzgZ6DGm.js → page-2NzFladc.js} +5 -1
- package/dist/{plugin-B2hETRii.js → plugin-l4sPt5-n.js} +13 -7
- package/dist/realtime.d.ts +11 -3
- package/dist/realtime.js +14 -6
- package/dist/{rpc-BKY7XRlR.js → rpc-BYmbVkr8.js} +1 -1
- package/dist/rpc.js +1 -1
- package/dist/runtime/auth.js +1 -1
- package/dist/runtime/console.d.ts +1 -1
- package/dist/runtime/console.js +2 -2
- package/dist/runtime/index.d.ts +42 -10
- package/dist/runtime/index.js +16 -8
- package/dist/{server-BGbD7H5s.js → server-DvSehkPP.js} +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/server.js +6 -6
- package/dist/{service-DDD4Ubxd.js → service-BIGe1Hpo.js} +11 -6
- package/dist/{service-CPiWPoiY.d.ts → service-IvgrI4XM.d.ts} +2 -0
- package/dist/{session-BGN6Vlm6.js → session-CCRLR9bf.js} +24 -9
- package/dist/{session-CTh9nisq.d.ts → session-CN4irEqf.d.ts} +1 -1
- package/dist/testing.js +1 -1
- package/dist/vite.d.ts +19 -2
- package/dist/vite.js +39 -10
- package/package.json +7 -7
- package/dist/hosted/hosted-comments/overlay-4-mWX4Uz.js +0 -170
- package/dist/hosted/hosted-comments/protocol-BHvtQKte.js +0 -1
- package/dist/hosted/hosted-comments/rest-transport-D-9_pNqZ.js +0 -1
- package/dist/hosted/hosted-comments/tools-CdwnUCOr.js +0 -126
|
@@ -127,7 +127,7 @@ interface ViteHubConsoleOperationAction {
|
|
|
127
127
|
operation: string;
|
|
128
128
|
input: Readonly<Record<string, string>>;
|
|
129
129
|
/**
|
|
130
|
-
* The result is `{ url }`, such as a
|
|
130
|
+
* The result is `{ url }`, such as a provider sign-in: the Console opens it in a new tab, and loads
|
|
131
131
|
* the list again when the person comes back. The URL must be `https:`, or `http:` on a loopback host.
|
|
132
132
|
*/
|
|
133
133
|
tab?: true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as commentsErrorDiagnostics } from "./errors-
|
|
1
|
+
import { t as commentsErrorDiagnostics } from "./errors-ByCRdInk.js";
|
|
2
2
|
import { sql } from "drizzle-orm";
|
|
3
3
|
import { index, integer, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
4
4
|
// src/operations-core/database.ts
|
package/dist/database.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { u as commentCounters, d as commentForge, f as commentMessages, t as commentSends, n as commentSendsSchema, r as commentSendsTables, p as commentThreads, i as commentsMigrationSql, m as commentsSchema, o as commentsSchemaState, h as commentsSqliteTables, l as commentsTables, s as liveThreadsBackup, c as migrateComments } from "./database-
|
|
1
|
+
export { u as commentCounters, d as commentForge, f as commentMessages, t as commentSends, n as commentSendsSchema, r as commentSendsTables, p as commentThreads, i as commentsMigrationSql, m as commentsSchema, o as commentsSchemaState, h as commentsSqliteTables, l as commentsTables, s as liveThreadsBackup, c as migrateComments } from "./database-Cguz3hZL.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as commentsErrorDiagnostics } from "./errors-
|
|
1
|
+
import { t as commentsErrorDiagnostics } from "./errors-ByCRdInk.js";
|
|
2
2
|
// src/operations-core/define.ts
|
|
3
3
|
const marker = Symbol.for("vitehub.comments.definition");
|
|
4
4
|
/** Marks a definition, so the build can check what `server/comments.ts` exports. */
|
|
@@ -27,7 +27,7 @@ const builtinCommentSubjects = [defineCommentSubject({
|
|
|
27
27
|
kind: "content",
|
|
28
28
|
scope: () => "site"
|
|
29
29
|
})];
|
|
30
|
-
/** The roles of a user: the comma-separated `role
|
|
30
|
+
/** The roles of a user: the comma-separated `role`, such as the roles of the Site access cookie or of Better Auth's `admin()` plugin. */
|
|
31
31
|
function rolesOf(user) {
|
|
32
32
|
const role = user?.role;
|
|
33
33
|
return typeof role === "string" ? role.split(",").map((name) => name.trim()) : [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as commentsClientCodes } from "./client-diagnostics-
|
|
1
|
+
import { n as commentsClientCodes } from "./client-diagnostics-D987sEK7.js";
|
|
2
2
|
import { defineDiagnostics } from "nostics";
|
|
3
3
|
// src/operations-core/errors.ts
|
|
4
4
|
const commentsErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
|