@fileverse-dev/dsheet 0.0.6 → 0.0.7
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 +15 -13
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -81788,20 +81788,22 @@ const kV = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
|
81788
81788
|
color: "yellow",
|
|
81789
81789
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
81790
81790
|
}
|
|
81791
|
-
}), h.current = I, !
|
|
81792
|
-
|
|
81793
|
-
|
|
81794
|
-
|
|
81795
|
-
|
|
81796
|
-
|
|
81797
|
-
|
|
81798
|
-
|
|
81799
|
-
|
|
81800
|
-
|
|
81791
|
+
}), h.current = I, !(!o || (o == null ? void 0 : o.length) === 0)) {
|
|
81792
|
+
if (!v.current && (o == null ? void 0 : o.length) !== 0) {
|
|
81793
|
+
const k = new cV(
|
|
81794
|
+
"wss://demos.yjs.dev/ws",
|
|
81795
|
+
t,
|
|
81796
|
+
M
|
|
81797
|
+
);
|
|
81798
|
+
v.current = k, v.current.on("status", (D) => {
|
|
81799
|
+
console.log("WebRTC connection status:", D);
|
|
81800
|
+
}), v.current.on("sync", (D) => {
|
|
81801
|
+
});
|
|
81802
|
+
}
|
|
81803
|
+
return () => {
|
|
81804
|
+
v.current && (v.current.disconnect(), v.current.destroy(), v.current = null);
|
|
81805
|
+
};
|
|
81801
81806
|
}
|
|
81802
|
-
return () => {
|
|
81803
|
-
v.current && (v.current.disconnect(), v.current.destroy(), v.current = null);
|
|
81804
|
-
};
|
|
81805
81807
|
}, [u, d.current, o]);
|
|
81806
81808
|
const w = Tt((M) => {
|
|
81807
81809
|
if (console.log("handleChange:", M, s.current, f.current), s.current) {
|