@jupyter/ydoc
Advanced tools
Comparing version 3.0.0-a1 to 3.0.0-a2
@@ -116,3 +116,3 @@ /* ----------------------------------------------------------------------------- | ||
this._modelObserver = (events, transaction) => { | ||
if (transaction.origin !== 'modeldb') { | ||
if (transaction.origin !== 'silent-change') { | ||
this._changed.emit(this.getChanges(events)); | ||
@@ -637,9 +637,8 @@ } | ||
const newOutputs = []; | ||
for (const output of outputs) { | ||
let _newOutput; | ||
const newOutput = new Y.Map(); | ||
for (const output of JSONExt.deepCopy(outputs)) { | ||
let _newOutput1; | ||
if (output.output_type === 'stream') { | ||
// Set the text field as a Y.Text | ||
const { text, ...outputWithoutText } = output; | ||
_newOutput = outputWithoutText; | ||
_newOutput1 = outputWithoutText; | ||
const newText = new Y.Text(); | ||
@@ -652,10 +651,12 @@ let length = 0; | ||
} | ||
_newOutput['text'] = newText; | ||
_newOutput1['text'] = newText; | ||
} | ||
else { | ||
_newOutput = output; | ||
_newOutput1 = output; | ||
} | ||
for (const [key, value] of Object.entries(_newOutput)) { | ||
newOutput.set(key, value); | ||
const _newOutput2 = []; | ||
for (const [key, value] of Object.entries(_newOutput1)) { | ||
_newOutput2.push([key, value]); | ||
} | ||
const newOutput = new Y.Map(_newOutput2); | ||
newOutputs.push(newOutput); | ||
@@ -662,0 +663,0 @@ } |
{ | ||
"name": "@jupyter/ydoc", | ||
"version": "3.0.0-a1", | ||
"version": "3.0.0-a2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Jupyter document structures for collaborative editing using YJS", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137052
3137