@fileverse-dev/ddoc 3.1.9 → 3.2.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.
- package/dist/index.es.js +4 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -40064,6 +40064,8 @@ const Nc = new Rt(
|
|
|
40064
40064
|
},
|
|
40065
40065
|
onSelectionUpdate() {
|
|
40066
40066
|
var s;
|
|
40067
|
+
if (!this.editor.isEditable)
|
|
40068
|
+
return;
|
|
40067
40069
|
const e = this.storage.activeCommentId, { $from: t } = this.editor.state.selection, n = t.marks(), r = this.editor.schema.marks.comment, o = n.find((a) => a.type === r), i = ((s = o == null ? void 0 : o.attrs.commentId) == null ? void 0 : s.trim()) || null;
|
|
40068
40070
|
this.storage.activeCommentId = i, this.options.onCommentActivated(i || ""), !(!e && !i) && requestAnimationFrame(() => {
|
|
40069
40071
|
var a, l;
|
|
@@ -53034,8 +53036,8 @@ const Up = (e) => {
|
|
|
53034
53036
|
const j = Te((R) => {
|
|
53035
53037
|
R == null || R.style.setProperty("z-index", Wxe);
|
|
53036
53038
|
}, []), L = Te(
|
|
53037
|
-
({ editor: R }) => Pxe({ editor: R }) ? !0 : v && Uxe(R) && zxe(R),
|
|
53038
|
-
[v]
|
|
53039
|
+
({ editor: R }) => Pxe({ editor: R }) ? !0 : (v || o) && Uxe(R) && zxe(R),
|
|
53040
|
+
[v, o]
|
|
53039
53041
|
), P = Dt(() => [
|
|
53040
53042
|
{
|
|
53041
53043
|
name: "Bold",
|