@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.
Files changed (55) hide show
  1. package/README.md +21 -4
  2. package/dist/{client-diagnostics-CvfTW5d4.js → client-diagnostics-D987sEK7.js} +4 -0
  3. package/dist/client.d.ts +96 -19
  4. package/dist/client.js +525 -79
  5. package/dist/{console-CK2F53QP.d.ts → console-CCLX_eIk.d.ts} +1 -1
  6. package/dist/{database-BkPoOdZr.js → database-Cguz3hZL.js} +1 -1
  7. package/dist/database.js +1 -1
  8. package/dist/{define-9uMM3Ewc.js → define-C2tnAtBU.js} +2 -2
  9. package/dist/{errors-DFNiJg67.js → errors-ByCRdInk.js} +1 -1
  10. package/dist/hosted/hosted-comments/{client-B3dlmmQd.js → client-Czl2zu9P.js} +3 -3
  11. package/dist/hosted/hosted-comments/frame.js +1 -1
  12. package/dist/hosted/hosted-comments/overlay-DpS0P-nd.js +186 -0
  13. package/dist/hosted/hosted-comments/protocol-DuB0Zhs-.js +1 -0
  14. package/dist/hosted/hosted-comments/rest-transport-CKZG_jZ4.js +1 -0
  15. package/dist/hosted/hosted-comments/tools-D8xg-kDW.js +126 -0
  16. package/dist/hosted/hosted-comments.js +13 -3
  17. package/dist/{index-BEnHTj2Z.d.ts → index-D1T7RJ4R.d.ts} +5 -2
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +11 -10
  20. package/dist/{install-B-FQpi47.d.ts → install-9L4ASzUC.d.ts} +11 -2
  21. package/dist/{install-BUXxryut.js → install-D6hXZaSN.js} +45 -19
  22. package/dist/{installed-C9SkldMi.js → installed-bPUnazFf.js} +1 -1
  23. package/dist/{operations-CKC_lMG_.js → operations-B1ALn4VS.js} +7 -7
  24. package/dist/{operations-Cic9A9e_.d.ts → operations-BkkrI8a3.d.ts} +1 -1
  25. package/dist/operations.d.ts +2 -2
  26. package/dist/operations.js +2 -2
  27. package/dist/overlay/{client-CerbVjTz.js → client-C7ftI-CB.js} +3 -3
  28. package/dist/overlay/overlay.js +42 -16
  29. package/dist/page/loader.js +1 -1
  30. package/dist/{page-xzgZ6DGm.js → page-2NzFladc.js} +5 -1
  31. package/dist/{plugin-B2hETRii.js → plugin-l4sPt5-n.js} +13 -7
  32. package/dist/realtime.d.ts +11 -3
  33. package/dist/realtime.js +14 -6
  34. package/dist/{rpc-BKY7XRlR.js → rpc-BYmbVkr8.js} +1 -1
  35. package/dist/rpc.js +1 -1
  36. package/dist/runtime/auth.js +1 -1
  37. package/dist/runtime/console.d.ts +1 -1
  38. package/dist/runtime/console.js +2 -2
  39. package/dist/runtime/index.d.ts +42 -10
  40. package/dist/runtime/index.js +16 -8
  41. package/dist/{server-BGbD7H5s.js → server-DvSehkPP.js} +1 -1
  42. package/dist/server.d.ts +3 -3
  43. package/dist/server.js +6 -6
  44. package/dist/{service-DDD4Ubxd.js → service-BIGe1Hpo.js} +11 -6
  45. package/dist/{service-CPiWPoiY.d.ts → service-IvgrI4XM.d.ts} +2 -0
  46. package/dist/{session-BGN6Vlm6.js → session-CCRLR9bf.js} +24 -9
  47. package/dist/{session-CTh9nisq.d.ts → session-CN4irEqf.d.ts} +1 -1
  48. package/dist/testing.js +1 -1
  49. package/dist/vite.d.ts +19 -2
  50. package/dist/vite.js +39 -10
  51. package/package.json +7 -7
  52. package/dist/hosted/hosted-comments/overlay-4-mWX4Uz.js +0 -170
  53. package/dist/hosted/hosted-comments/protocol-BHvtQKte.js +0 -1
  54. package/dist/hosted/hosted-comments/rest-transport-D-9_pNqZ.js +0 -1
  55. 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 one-time link or a provider sign-in: the Console opens it in a new tab, and loads
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-DFNiJg67.js";
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-BkPoOdZr.js";
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-DFNiJg67.js";
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` of Better Auth's `admin()` plugin, as ViteHub Auth passes it on. */
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-CvfTW5d4.js";
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({