@dxos/ui-editor 0.8.4-main.c85a9c8dae → 0.8.4-main.d05673bc65
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/lib/browser/index.mjs +10 -1
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +10 -1
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/extensions/automerge/automerge.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -25
- package/src/extensions/automerge/automerge.ts +6 -5
- package/src/extensions/selection.ts +1 -1
|
@@ -1046,6 +1046,15 @@ var automerge = (accessor) => {
|
|
|
1046
1046
|
const value = DocAccessor.getValue(accessor);
|
|
1047
1047
|
const current = this._view.state.doc.toString();
|
|
1048
1048
|
if (value !== current) {
|
|
1049
|
+
console.warn("ENABLING INITIAL SYNC -- THIS MAY BE A REGRESSION");
|
|
1050
|
+
this._view.dispatch({
|
|
1051
|
+
changes: {
|
|
1052
|
+
from: 0,
|
|
1053
|
+
to: this._view.state.doc.length,
|
|
1054
|
+
insert: value
|
|
1055
|
+
},
|
|
1056
|
+
annotations: initialSync
|
|
1057
|
+
});
|
|
1049
1058
|
}
|
|
1050
1059
|
});
|
|
1051
1060
|
}
|
|
@@ -1908,7 +1917,7 @@ import { invariant as invariant3 } from "@dxos/invariant";
|
|
|
1908
1917
|
import { isTruthy } from "@dxos/util";
|
|
1909
1918
|
var __dxlog_file9 = "/__w/dxos/dxos/packages/ui/ui-editor/src/extensions/selection.ts";
|
|
1910
1919
|
var documentId = singleValueFacet();
|
|
1911
|
-
var stateRestoreAnnotation = "dxos.
|
|
1920
|
+
var stateRestoreAnnotation = "org.dxos.cm.state-restore";
|
|
1912
1921
|
var createEditorStateTransaction = ({ scrollTo, selection }) => {
|
|
1913
1922
|
return {
|
|
1914
1923
|
selection,
|