@fileverse-dev/ddoc 1.6.8 → 1.6.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -59489,11 +59489,11 @@ const Ple = kt.create({
59489
59489
  }
59490
59490
  },
59491
59491
  autofocus: "start",
59492
- onUpdate: (D) => {
59492
+ onTransaction: (D) => {
59493
59493
  w != null && w.isEmpty || o == null || o(D.editor.getJSON());
59494
59494
  },
59495
- shouldRerenderOnTransaction: !!n,
59496
- immediatelyRender: !0
59495
+ shouldRerenderOnTransaction: !0,
59496
+ immediatelyRender: !1
59497
59497
  },
59498
59498
  [h]
59499
59499
  ), A = ft(() => {
@@ -59526,7 +59526,7 @@ const Ple = kt.create({
59526
59526
  Ye(() => {
59527
59527
  w == null || w.setEditable(!t);
59528
59528
  }, [t, w]), Ye(() => {
59529
- e && w && !m.current && (w.commands.setContent(e), m.current = !0), setTimeout(() => {
59529
+ console.log("helo world"), e && w && !m.current && (console.log(e), w.commands.setContent(e), m.current = !0), setTimeout(() => {
59530
59530
  m.current = !1;
59531
59531
  });
59532
59532
  }, [e, w]), Ye(() => {