@fileverse-dev/ddoc 3.0.96-zustand-20 → 3.0.96-zustand-21
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/index.es.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -42710,10 +42710,10 @@ const rfe = () => k0e((e, t) => ({
|
|
|
42710
42710
|
})));
|
|
42711
42711
|
},
|
|
42712
42712
|
blurFloatingItem: (n) => {
|
|
42713
|
-
const { editor: r
|
|
42714
|
-
!r || !
|
|
42715
|
-
floatingItems:
|
|
42716
|
-
...
|
|
42713
|
+
const { editor: r } = Pn(t), { activeCommentId: o, floatingItems: i } = t(), s = i.find((a) => a.itemId === n);
|
|
42714
|
+
!r || !s || (s.type === "thread" && o === s.commentId && (t().setActiveCommentId(null), r.commands.unsetCommentActive()), e((a) => ({
|
|
42715
|
+
floatingItems: a.floatingItems.map((l) => ({
|
|
42716
|
+
...l,
|
|
42717
42717
|
isFocused: !1
|
|
42718
42718
|
}))
|
|
42719
42719
|
})));
|