@fileverse-dev/ddoc 2.1.0-yjs-patch-4 → 2.1.0-yjs-patch-5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.es.js +8 -4
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -137299,7 +137299,11 @@ const $0 = class $0 {
137299
137299
  "1.5": "-translate-x-[140%]",
137300
137300
  2: "-translate-x-[300%]"
137301
137301
  };
137302
- n in r && (e.classList.remove(...Array.from(e.classList).filter((i) => i.startsWith("-translate-x-"))), e.classList.add(r[n]));
137302
+ n in r && (e.classList.remove(
137303
+ ...Array.from(e.classList).filter(
137304
+ (i) => i.startsWith("-translate-x-")
137305
+ )
137306
+ ), e.classList.add(r[n]));
137303
137307
  }
137304
137308
  };
137305
137309
  pe($0, "instance");
@@ -137491,10 +137495,10 @@ const xk = sA.getInstance(), ZF = [
137491
137495
  H == null ? void 0 : H.storage.characterCount.words()
137492
137496
  ]), qe(() => {
137493
137497
  const ue = () => {
137494
- console.log("onchange is getting called "), o == null || o(zie(C8(b)));
137498
+ o == null || o(zie(C8(b)));
137495
137499
  };
137496
- return b && (console.log("ydoc, on"), b.on("update", ue)), () => {
137497
- console.log("ydoc, off"), b == null || b.off("update", ue);
137500
+ return b && b.on("update", ue), () => {
137501
+ b == null || b.off("update", ue);
137498
137502
  };
137499
137503
  }, [b]), qe(() => () => {
137500
137504
  H && H.destroy();
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.0-yjs-patch-4",
5
+ "version": "2.1.0-yjs-patch-5",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {