@vite-hub/comments 0.4.1 → 0.5.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 (87) hide show
  1. package/README.md +23 -7
  2. package/dist/anchor.d.ts +3 -5
  3. package/dist/anchor.js +1 -2
  4. package/dist/{client-diagnostics-Bubm7Shd.js → client-diagnostics-CvfTW5d4.js} +1 -2
  5. package/dist/{client-files-CJZl5Kc4.js → client-files-lC6X7XyS.js} +1 -2
  6. package/dist/client.d.ts +430 -24
  7. package/dist/client.js +413 -20
  8. package/dist/{console-h4KlhIik.d.ts → console-CK2F53QP.d.ts} +2 -4
  9. package/dist/{context-BqIsmYP1.js → context-DbkBjITZ.js} +1 -2
  10. package/dist/database/postgres.d.ts +1 -3
  11. package/dist/database/postgres.js +1 -2
  12. package/dist/{migrate-Bpw3xL5e.js → database-BkPoOdZr.js} +116 -59
  13. package/dist/database-CPua6Q6_.d.ts +573 -0
  14. package/dist/{database-CA1aHKN7.d.ts → database-DUs3c2al.d.ts} +625 -73
  15. package/dist/database.d.ts +4 -5
  16. package/dist/database.js +1 -2
  17. package/dist/{define-CX_Yr_hz.js → define-9uMM3Ewc.js} +2 -3
  18. package/dist/{define-CHTWfHPo.d.ts → define-B1jLSPe9.d.ts} +8 -6
  19. package/dist/{errors-4gelGVmK.js → errors-C0VwRHiy.js} +25 -2
  20. package/dist/{errors-BHsVXlpd.js → errors-DFNiJg67.js} +26 -3
  21. package/dist/{fold-name-B7Zb3-MF.js → fold-name-g-xg0mQk.js} +1 -2
  22. package/dist/hosted/hosted-comments/client-B3dlmmQd.js +4 -0
  23. package/dist/{overlay/dist-BoHMOFax.js → hosted/hosted-comments/dist-DyVmH21U.js} +1 -1
  24. package/dist/hosted/hosted-comments/frame.js +1 -0
  25. package/dist/hosted/hosted-comments/overlay-4-mWX4Uz.js +170 -0
  26. package/dist/hosted/hosted-comments/protocol-BHvtQKte.js +1 -0
  27. package/dist/hosted/hosted-comments/rest-transport-D-9_pNqZ.js +1 -0
  28. package/dist/hosted/hosted-comments/tools-CdwnUCOr.js +126 -0
  29. package/dist/hosted/hosted-comments.js +9 -0
  30. package/dist/{identity-CBOzgxSf.js → identity-CT7-UGmS.js} +1 -2
  31. package/dist/{index-iPGlSAgj.d.ts → index-BEnHTj2Z.d.ts} +109 -15
  32. package/dist/index.d.ts +6 -7
  33. package/dist/index.js +23 -10
  34. package/dist/{install-96NXWnrw.d.ts → install-B-FQpi47.d.ts} +24 -7
  35. package/dist/{install-jRKmuLHK.js → install-BUXxryut.js} +950 -55
  36. package/dist/{installed-g6nDr5ac.js → installed-C9SkldMi.js} +8 -8
  37. package/dist/{invariant-D8_xBqmZ.js → invariant-CmdvZ3vp.js} +1 -2
  38. package/dist/{migrate-B0k_0swk.d.ts → migrate-XjFeQppf.d.ts} +2 -2
  39. package/dist/{object-Da1zyPCR.js → object-CAK6UYR5.js} +1 -2
  40. package/dist/{operations-7ycAhDCw.d.ts → operations-8hqTi0DH.d.ts} +8 -4
  41. package/dist/{operations-9tskoLsk.js → operations-CKC_lMG_.js} +309 -229
  42. package/dist/{operations-D93EV10O.d.ts → operations-Cic9A9e_.d.ts} +9 -7
  43. package/dist/operations.d.ts +2 -2
  44. package/dist/operations.js +2 -2
  45. package/dist/overlay/{client-lZesR40x.js → client-CerbVjTz.js} +3 -3
  46. package/dist/overlay/dist-DyVmH21U.js +14 -0
  47. package/dist/overlay/overlay.js +36 -40
  48. package/dist/page/loader.js +45 -52
  49. package/dist/page-DE71P_gQ.d.ts +11 -0
  50. package/dist/{page-tools-shared-NHUjKI8E.js → page-tools-shared-fvmJQCrP.js} +8 -5
  51. package/dist/{page-DRz_sDY4.js → page-xzgZ6DGm.js} +2 -3
  52. package/dist/{path--zk6PEMz.js → path-8yqMd8zR.js} +0 -1
  53. package/dist/{plugin-BNFd1zGz.js → plugin-B2hETRii.js} +16 -13
  54. package/dist/realtime.d.ts +3 -5
  55. package/dist/realtime.js +4 -5
  56. package/dist/{reply-id-P_bSuEng.js → reply-id-Cm9FGOBs.js} +1 -2
  57. package/dist/request-log-DllKQXj7.js +104 -0
  58. package/dist/request-origin-YPzfE2eh.js +48 -0
  59. package/dist/{rpc-BQqYx8kb.js → rpc-BKY7XRlR.js} +5 -7
  60. package/dist/{rpc-BZ1QNkCC.d.ts → rpc-D-eqtyfh.d.ts} +1 -3
  61. package/dist/rpc.d.ts +1 -1
  62. package/dist/rpc.js +1 -2
  63. package/dist/runtime/auth.d.ts +3 -5
  64. package/dist/runtime/auth.js +2 -3
  65. package/dist/runtime/console.d.ts +2 -4
  66. package/dist/runtime/console.js +4 -5
  67. package/dist/runtime/index.d.ts +12 -27
  68. package/dist/runtime/index.js +160 -31
  69. package/dist/{server-CqyzrqTI.js → server-BGbD7H5s.js} +2 -3
  70. package/dist/server.d.ts +6 -7
  71. package/dist/server.js +6 -6
  72. package/dist/service-CPiWPoiY.d.ts +69 -0
  73. package/dist/{service-C8ZgFWvy.js → service-DDD4Ubxd.js} +44 -18
  74. package/dist/{session-ByjMyTak.js → session-BGN6Vlm6.js} +31 -37
  75. package/dist/{session-CKfW6DGE.d.ts → session-CTh9nisq.d.ts} +3 -5
  76. package/dist/{service-wC9kx9EX.d.ts → store-DvNTDNgn.d.ts} +3 -73
  77. package/dist/{table-names-DfiKUlOV.js → table-names-BIHjuEFK.js} +4 -3
  78. package/dist/testing.d.ts +2 -4
  79. package/dist/testing.js +4 -5
  80. package/dist/{tokens-DSbwkVSy.js → tokens-Bx4lZ0yt.js} +3 -6
  81. package/dist/{types-C7LzhgRb.d.ts → types-BX3vH18p.d.ts} +1 -3
  82. package/dist/{types-C1qzObs2.d.ts → types-l6GOb_yc.d.ts} +79 -6
  83. package/dist/vite.d.ts +22 -21
  84. package/dist/vite.js +161 -104
  85. package/package.json +19 -19
  86. package/dist/errors-BEChnUo7.d.ts +0 -197
  87. package/dist/page-CWwnmF3K.d.ts +0 -22
@@ -1,9 +1,8 @@
1
- import { C as CommentStatusInput, D as CommentUser, E as CommentUploadInput, O as CommentUsersInput, T as CommentThread, c as CommentCreateInput, f as CommentEditInput, g as CommentGetInput, i as CommentAttachment, l as CommentDeleteInput, n as CommentActor, s as CommentContext, v as CommentListQuery, x as CommentReplyInput, y as CommentMessage } from "./types-C7LzhgRb.js";
2
- import { f as CommentsPolicyGate, g as CommentsUser } from "./define-CHTWfHPo.js";
3
- import { i as CommentsRuntime, t as CommentsAttachmentBody } from "./service-wC9kx9EX.js";
4
- import { t as AnyOperation } from "./operations-7ycAhDCw.js";
1
+ import { i as CommentsRuntime, t as CommentsAttachmentBody } from "./service-CPiWPoiY.js";
2
+ import { t as AnyOperation } from "./operations-8hqTi0DH.js";
3
+ import { f as CommentsPolicyGate, g as CommentsUser } from "./define-B1jLSPe9.js";
4
+ import { C as CommentStatusInput, D as CommentUser, E as CommentUploadInput, O as CommentUsersInput, T as CommentThread, c as CommentCreateInput, f as CommentEditInput, g as CommentGetInput, i as CommentAttachment, l as CommentDeleteInput, n as CommentActor, s as CommentContext, v as CommentListQuery, x as CommentReplyInput, y as CommentMessage } from "./types-BX3vH18p.js";
5
5
  import * as v from "valibot";
6
- //#region src/operations-core/operations.d.ts
7
6
  declare const anchor: v.UnionSchema<[v.StrictObjectSchema<{
8
7
  readonly kind: v.LiteralSchema<"page", undefined>;
9
8
  }, undefined>, v.StrictObjectSchema<{
@@ -167,7 +166,7 @@ declare const commentInputSchemas: {
167
166
  readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
168
167
  }, undefined>;
169
168
  readonly get: v.UnionSchema<[v.StrictObjectSchema<{
170
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
169
+ readonly threadId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
171
170
  }, undefined>, v.StrictObjectSchema<{
172
171
  readonly n: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
173
172
  readonly scope: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
@@ -242,6 +241,10 @@ declare const commentActions: {
242
241
  edit(input: CommentEditInput, who: CommentsCaller): Promise<CommentThread>;
243
242
  delete(input: CommentDeleteInput, who: CommentsCaller): Promise<CommentThread | null>;
244
243
  setStatus(input: CommentStatusInput, who: CommentsCaller, status: "open" | "resolved"): Promise<CommentThread>;
244
+ resolveThreads(input: readonly {
245
+ threadId: string;
246
+ reply?: string;
247
+ }[], who: CommentsCaller): Promise<CommentThread[]>;
245
248
  /** `minimum`: the shortest query that gets suggestions. The operations ask for two characters. */
246
249
  users(input: CommentUsersInput, who: CommentsCaller, options?: {
247
250
  minimum?: number;
@@ -254,5 +257,4 @@ declare const commentActions: {
254
257
  };
255
258
  /** The comment operations. The Console, the CLI, MCP, and the comments client call them. */
256
259
  declare const commentsOperations: readonly AnyOperation[];
257
- //#endregion
258
260
  export { commentsOperations as a, commentInputSchemas as i, commentActions as n, commentAnchorSchema as r, CommentsCaller as t };
@@ -1,3 +1,3 @@
1
- import { a as maximumCommentBodyLength } from "./service-wC9kx9EX.js";
2
- import { a as commentsOperations, i as commentInputSchemas, n as commentActions, r as commentAnchorSchema, t as CommentsCaller } from "./operations-D93EV10O.js";
1
+ import { a as maximumCommentBodyLength } from "./service-CPiWPoiY.js";
2
+ import { a as commentsOperations, i as commentInputSchemas, n as commentActions, r as commentAnchorSchema, t as CommentsCaller } from "./operations-Cic9A9e_.js";
3
3
  export { CommentsCaller, commentActions, commentAnchorSchema, commentInputSchemas, commentsOperations, maximumCommentBodyLength };
@@ -1,3 +1,3 @@
1
- import { i as commentsOperations, n as commentAnchorSchema, r as commentInputSchemas, t as commentActions } from "./operations-9tskoLsk.js";
2
- import { f as maximumCommentBodyLength } from "./service-C8ZgFWvy.js";
1
+ import { i as commentsOperations, n as commentAnchorSchema, r as commentInputSchemas, t as commentActions } from "./operations-CKC_lMG_.js";
2
+ import { f as maximumCommentBodyLength } from "./service-DDD4Ubxd.js";
3
3
  export { commentActions, commentAnchorSchema, commentInputSchemas, commentsOperations, maximumCommentBodyLength };