sykpcomposer 0.0.84 → 0.0.85

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 CHANGED
@@ -47196,7 +47196,7 @@ const Wk = dh, Jk = ({ initialHtml: m, onHtmlChanged: c }) => {
47196
47196
  Bb,
47197
47197
  {
47198
47198
  onChange: (r) => {
47199
- r.read(() => {
47199
+ console.log("editorState", r), r.read(() => {
47200
47200
  c(hb(p));
47201
47201
  });
47202
47202
  }
@@ -47270,7 +47270,7 @@ function eO({ collabApiKey: m, styleConfig: c, userObj: p, docId: t }) {
47270
47270
  };
47271
47271
  jn(() => {
47272
47272
  (async () => {
47273
- if (!currentDocId)
47273
+ if (!t)
47274
47274
  return;
47275
47275
  f && v();
47276
47276
  let x = _;
@@ -47281,9 +47281,9 @@ function eO({ collabApiKey: m, styleConfig: c, userObj: p, docId: t }) {
47281
47281
  console.error("[APP] error: ", S);
47282
47282
  }
47283
47283
  })();
47284
- }, [currentDocId]), jn(() => {
47285
- s && currentDocId && !f && y();
47286
- }, [s, currentDocId, f]), _i(
47284
+ }, [t]), jn(() => {
47285
+ s && t && !f && y();
47286
+ }, [s, t, f]), _i(
47287
47287
  () => ({
47288
47288
  editorState: s ? JSON.stringify({ root: s.root }) : null,
47289
47289
  namespace: "Playground",