@fileverse-dev/ddoc 3.0.96-zustand-14 → 3.0.96-zustand-16

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 (2) hide show
  1. package/dist/index.es.js +4 -5
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -41135,7 +41135,7 @@ function yS(e, t) {
41135
41135
  if (!(n != null && n.binding)) return Pt.empty;
41136
41136
  const { doc: r, type: o, binding: i } = n, s = [], a = t.doc.content.size;
41137
41137
  for (const l of e)
41138
- if (!l.deleted)
41138
+ if (!(l.deleted || l.resolved))
41139
41139
  try {
41140
41140
  const u = oa(
41141
41141
  r,
@@ -41149,10 +41149,9 @@ function yS(e, t) {
41149
41149
  i.mapping
41150
41150
  );
41151
41151
  if (u === null || c === null || u >= c || u < 0 || c > a) continue;
41152
- const d = l.resolved ? "inline-comment inline-comment--resolved" : "inline-comment inline-comment--unresolved";
41153
41152
  s.push(
41154
41153
  En.inline(u, c, {
41155
- class: d,
41154
+ class: "inline-comment inline-comment--unresolved",
41156
41155
  "data-comment-id": l.id
41157
41156
  })
41158
41157
  );
@@ -43117,8 +43116,8 @@ const rfe = ({
43117
43116
  t,
43118
43117
  oe,
43119
43118
  () => b.current
43120
- ) : null, G = Y || T !== null, J = Y ? t.getAttributes("comment").resolved ?? !1 : (T == null ? void 0 : T.resolved) ?? !1;
43121
- G !== z && (z = G, Z.setIsCommentActive(G)), J !== te && (te = J, Z.setIsCommentResolved(J)), T && !Y && Z.activeCommentId !== T.id && (Z.setActiveCommentId(T.id), Z.openFloatingThread(T.id));
43119
+ ) : null, G = Y || T !== null && !T.resolved, J = G && Y ? t.getAttributes("comment").resolved ?? !1 : !1;
43120
+ G !== z && (z = G, Z.setIsCommentActive(G)), J !== te && (te = J, Z.setIsCommentResolved(J)), T && !Y && !T.resolved && Z.activeCommentId !== T.id && (Z.setActiveCommentId(T.id), Z.openFloatingThread(T.id));
43122
43121
  };
43123
43122
  let ee = null;
43124
43123
  const K = () => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.96-zustand-14",
5
+ "version": "3.0.96-zustand-16",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {