@voltro/plugin-comments 0.87.0 → 0.88.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/dist/errors.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Schema as e } from "effect";
2
- //#region src/errors.ts
2
+ // src/errors.ts
3
3
  var t = class extends e.TaggedError()("CommentAccessRefused", {
4
4
  anchor: e.String,
5
5
  reason: e.String
@@ -11,5 +11,4 @@ var t = class extends e.TaggedError()("CommentAccessRefused", {
11
11
  threadId: e.String,
12
12
  reason: e.String
13
13
  }) {};
14
- //#endregion
15
14
  export { t as CommentAccessRefused, n as CommentNotFound, r as CommentNotYours, i as CommentStatusRefused };
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { Effect as v, Option as y } from "effect";
5
5
  import { and as b, contains as x, eq as S, generateId as C, id as w, inSet as T, json as E, neq as D, or as O, table as k, text as A, timestamp as j } from "@voltro/database";
6
6
  import { definePlugin as M, effectiveScopes as N, pluginInstanceName as P, publishReactivity as F } from "@voltro/protocol";
7
7
  import { NotificationService as I } from "@voltro/plugin-notifications";
8
- //#region src/index.ts
8
+ // src/index.ts
9
9
  var L = k("_voltro_comment_threads", {
10
10
  id: w({ prefix: "cmtthr" }),
11
11
  anchor: A(),
@@ -631,5 +631,4 @@ var L = k("_voltro_comment_threads", {
631
631
  comments: a
632
632
  };
633
633
  }, K = () => "plugin-comments";
634
- //#endregion
635
634
  export { c as COMMENT_THREAD_KINDS, e as CommentAccessRefused, t as CommentNotFound, n as CommentNotYours, r as CommentStatusRefused, i as QUOTE_MAX_LENGTH, G as applyCommentRetention, B as commentReactionsTable, V as commentReadsTable, z as commentThreadEventsTable, L as commentThreadsTable, l as commentsFeed, W as commentsPlugin, R as commentsTable, a as findQuote, K as pluginComments, o as textQuote };
package/dist/quote.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/quote.ts
1
+ // src/quote.ts
2
2
  var e = 1e3, t = (t, n, r) => {
3
3
  let i = Math.max(0, Math.min(n, r)), a = Math.min(t.length, Math.max(n, r), i + e), o = t.slice(Math.max(0, i - 32), i), s = t.slice(a, a + 32);
4
4
  return {
@@ -21,5 +21,4 @@ var e = 1e3, t = (t, n, r) => {
21
21
  end: n.start + t.exact.length
22
22
  };
23
23
  };
24
- //#endregion
25
24
  export { e as QUOTE_MAX_LENGTH, n as findQuote, t as textQuote };
package/dist/rpc.js CHANGED
@@ -2,7 +2,7 @@ import { CommentAccessRefused as e, CommentNotFound as t, CommentNotYours as n,
2
2
  import { QUOTE_MAX_LENGTH as i } from "./quote.js";
3
3
  import { Schema as a } from "effect";
4
4
  import { defineMutation as o, defineQuery as s, reactivityChannel as c } from "@voltro/protocol";
5
- //#region src/rpc.ts
5
+ // src/rpc.ts
6
6
  var l = "@voltro/plugin-comments", u = c("comments"), d = a.Struct({
7
7
  id: a.String,
8
8
  threadId: a.String,
@@ -190,5 +190,4 @@ var l = "@voltro/plugin-comments", u = c("comments"), d = a.Struct({
190
190
  }
191
191
  }
192
192
  ];
193
- //#endregion
194
193
  export { l as BASE_NAME, p as COMMENT_THREAD_KINDS, u as commentsFeed, T as commentsRpcClientImports, v as createDescriptor, x as deleteDescriptor, y as editDescriptor, _ as listDescriptor, C as markReadDescriptor, w as mentionSearchDescriptor, S as reactDescriptor, b as resolveDescriptor };
package/dist/web.js CHANGED
@@ -2,7 +2,7 @@ import { QUOTE_MAX_LENGTH as e, findQuote as t, textQuote as n } from "./quote.j
2
2
  import { BASE_NAME as r, COMMENT_THREAD_KINDS as i } from "./rpc.js";
3
3
  import { pluginTag as a } from "@voltro/protocol";
4
4
  import { useMutation as o, useSubscription as s } from "@voltro/client";
5
- //#region src/web.ts
5
+ // src/web.ts
6
6
  var c = (e) => a(r, e), l = (e, t = "app") => {
7
7
  let { data: n, loading: r } = s(t, c("list"), { anchor: e }), i = o(t, c("create")), a = o(t, c("edit")), l = o(t, c("resolve")), u = o(t, c("delete")), d = o(t, c("react")), f = o(t, c("markRead")), p = n ?? [];
8
8
  return {
@@ -37,5 +37,4 @@ var c = (e) => a(r, e), l = (e, t = "app") => {
37
37
  let { data: n } = s(t, c("mentionSearch"), { query: e });
38
38
  return n ?? [];
39
39
  };
40
- //#endregion
41
40
  export { i as COMMENT_THREAD_KINDS, e as QUOTE_MAX_LENGTH, t as findQuote, n as textQuote, l as useComments, d as useMentionSearch, u as useThread };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-comments",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "Comment threads on any anchor your app can name — replies, resolve/reopen, reactions, per-subject unread — live over the existing reactivity channel, with no second push mechanism. Access delegates to your app's own guard (access.viaEntity) or a scope and fails closed when neither is declared; @-mentions are re-filtered to the caller's tenant on search and re-validated at create, then delivered through plugin-notifications when it is installed. useComments / useThread / useMentionSearch in /web, an ejectable <CommentsThread> in @voltro/ui, plus inspect endpoints and a dashboard panel.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -48,13 +48,13 @@
48
48
  "node": ">=24.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@voltro/client": "0.87.0",
52
- "@voltro/database": "0.87.0",
53
- "@voltro/plugin-notifications": "0.87.0",
54
- "@voltro/protocol": "0.87.0"
51
+ "@voltro/client": "0.88.0",
52
+ "@voltro/database": "0.88.0",
53
+ "@voltro/plugin-notifications": "0.88.0",
54
+ "@voltro/protocol": "0.88.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "effect": "4.0.1",
57
+ "effect": "4.1.0",
58
58
  "react": "^19.0.0"
59
59
  },
60
60
  "publishConfig": {