@fileverse-dev/ddoc 2.1.3-patch-24 → 2.1.3-patch-25

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 +13 -1
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -146455,7 +146455,19 @@ const n_ = ({
146455
146455
  ), _ = (Q) => {
146456
146456
  a(Q), h && h !== Q && f(null);
146457
146457
  }, Z = lT(i);
146458
- return S ? /* @__PURE__ */ T.jsxs(
146458
+ return Fe(() => {
146459
+ if (m.current && t) {
146460
+ const Q = m.current.querySelector(
146461
+ `[data-comment-id="${t}"]`
146462
+ );
146463
+ Q && setTimeout(() => {
146464
+ Q.scrollIntoView({
146465
+ behavior: "smooth",
146466
+ block: "center"
146467
+ });
146468
+ });
146469
+ }
146470
+ }, [t, m]), S ? /* @__PURE__ */ T.jsxs(
146459
146471
  "div",
146460
146472
  {
146461
146473
  className: Ae(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.1.3-patch-24",
5
+ "version": "2.1.3-patch-25",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {