@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.
@@ -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.org/cm/state-restore";
1920
+ var stateRestoreAnnotation = "org.dxos.cm.state-restore";
1912
1921
  var createEditorStateTransaction = ({ scrollTo, selection }) => {
1913
1922
  return {
1914
1923
  selection,