@fileverse-dev/ddoc 2.1.3-patch-19 → 2.1.3-patch-20

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 +11 -1
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -95953,7 +95953,17 @@ const Nee = async (t, e) => {
95953
95953
  replies: [],
95954
95954
  createdAt: /* @__PURE__ */ new Date()
95955
95955
  };
95956
- c == null || c(Ee), o(Ee.id), H(""), x == null || x();
95956
+ c == null || c(Ee), o(Ee.id), H(""), x == null || x(), setTimeout(() => {
95957
+ if (q.current) {
95958
+ const _e = q.current.querySelector(
95959
+ `[data-comment-id="${Ee.id}"]`
95960
+ );
95961
+ _e && _e.scrollIntoView({
95962
+ behavior: "smooth",
95963
+ block: "center"
95964
+ });
95965
+ }
95966
+ });
95957
95967
  }, G = (Ee) => {
95958
95968
  Ee.key === "Enter" && !Ee.shiftKey && (Ee.preventDefault(), C());
95959
95969
  }, C = () => {
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-19",
5
+ "version": "2.1.3-patch-20",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {