Skip to content

Commit

Permalink
deploy: 073d97c
Browse files Browse the repository at this point in the history
  • Loading branch information
antmicrobot committed Nov 20, 2024
1 parent 5a60c4d commit 492bfb7
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions MystEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -49669,27 +49669,27 @@ const o7t = er.div`
m.dom.style.opacity = "0.5";
}
}, [s.error]), Ai(() => {
var v, y, b;
var v, y;
if (s.opts.enabled && !s.ready || h.value || s.error)
return;
((v = s.ytext) == null ? void 0 : v.toString().length) === 0 && t.get().length > 0 && (console.warn("[Collaboration] Remote state is empty, overriding with local state"), s.ytext.insert(0, t.get())), s.opts.enabled && (t.set(s.ytext.toString()), s.ytext.observe((w, O) => {
!O.local || (p.current = performance.now());
s.opts.enabled && (t.set(s.ytext.toString()), s.ytext.observe((b, w) => {
!w.local || (p.current = performance.now());
})), t.readyToRender();
const g = dr.create({
root: e,
doc: s.opts.enabled ? s.ytext.toString() : t.get(),
extensions: tf.basicSetup().useHighlighter(i).useCompartment(tne, yD([])).useSpellcheck(n).if(s.opts.enabled, (w) => w.useCollaboration({
extensions: tf.basicSetup().useHighlighter(i).useCompartment(tne, yD([])).useSpellcheck(n).if(s.opts.enabled, (b) => b.useCollaboration({
...s,
editorView: h
})).if(s.opts.commentsEnabled, (w) => w.useComments({
})).if(s.opts.commentsEnabled, (b) => b.useComments({
ycomments: s.ycomments
}).useSuggestionPopup({
ycomments: s.ycomments,
editorMountpoint: f
})).addUpdateListener((w) => w.docChanged && t.set(m.state.doc.toString(), w)).useFixFoldingScroll(d).useMoveCursorAfterFold().useCursorIndicator({
})).addUpdateListener((b) => b.docChanged && t.set(m.state.doc.toString(), b)).useFixFoldingScroll(d).useMoveCursorAfterFold().useCursorIndicator({
lineMap: t.lineMap,
preview: a
}).if(o, (w) => w.useSyncPreviewWithCursor({
}).if(o, (b) => b.useSyncPreviewWithCursor({
lineMap: t.lineMap,
preview: a,
lastTyped: p
Expand All @@ -49698,7 +49698,7 @@ const o7t = er.div`
state: g,
parent: f.current
});
return h.value = m, window.myst_editor[u.value].main_editor = m, l != null && r7t(m, l), (y = s.ycomments) == null || y.registerCodeMirror(m), (b = s.provider) == null || b.watchCollabolators(s.setUsers), t.onSync((w) => p7t(m, w)), () => {
return h.value = m, window.myst_editor[u.value].main_editor = m, l != null && r7t(m, l), (v = s.ycomments) == null || v.registerCodeMirror(m), (y = s.provider) == null || y.watchCollabolators(s.setUsers), t.onSync((b) => p7t(m, b)), () => {
m.destroy();
};
}, [s.ready]), Be(zue, {
Expand Down
4 changes: 2 additions & 2 deletions docs/collaboration.html
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ <h2 id="other-collaborative-features">Other Collaborative Features<a class="head
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -472,7 +472,7 @@ <h2 id="other-collaborative-features">Other Collaborative Features<a class="head

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ <h2 id="suggestions">Suggestions<a class="headerlink" href="#suggestions" title=
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -622,7 +622,7 @@ <h2 id="suggestions">Suggestions<a class="headerlink" href="#suggestions" title=

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -367,7 +367,7 @@

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ <h1 id="myst-editor-user-manual">MyST Editor - User Manual<a class="headerlink"
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -426,7 +426,7 @@ <h1 id="myst-editor-user-manual">MyST Editor - User Manual<a class="headerlink"

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ <h1 id="introduction">Introduction<a class="headerlink" href="#introduction" tit
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -426,7 +426,7 @@ <h1 id="introduction">Introduction<a class="headerlink" href="#introduction" tit

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/mermaid.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ <h1 id="mermaid-diagrams">Mermaid Diagrams<a class="headerlink" href="#mermaid-d
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -430,7 +430,7 @@ <h1 id="mermaid-diagrams">Mermaid Diagrams<a class="headerlink" href="#mermaid-d

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/rich-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ <h2 id="refreshing-links">Refreshing Links<a class="headerlink" href="#refreshin
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -506,7 +506,7 @@ <h2 id="refreshing-links">Refreshing Links<a class="headerlink" href="#refreshin

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ <h2 id="view-mode-buttons">View Mode Buttons<a class="headerlink" href="#view-mo
<small>

Last update:
2024-11-19
2024-11-20

</small>
</div>
Expand Down Expand Up @@ -519,7 +519,7 @@ <h2 id="view-mode-buttons">View Mode Buttons<a class="headerlink" href="#view-mo

</div>

<a href="https://github.com/antmicro/myst-editor/tree/1b194f39ae32cd5f225d08ef55780a3de9ad134a">1b194f39</a>
<a href="https://github.com/antmicro/myst-editor/tree/073d97caf3619c97eec68e0494245a6548e57aed">073d97ca</a>
@ <a href="https://github.com/antmicro/myst-editor/tree/main">main</a>

</div>
Expand Down

0 comments on commit 492bfb7

Please sign in to comment.