@dao42/d42paas-front 0.7.48 → 0.7.50

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.
@@ -44490,7 +44490,6 @@ const CmdKey = () => {
44490
44490
  const [replayList, setReplayList] = react.exports.useState(null);
44491
44491
  const [hotkeys2, setHotkeys] = react.exports.useState(actions);
44492
44492
  react.exports.useEffect(() => {
44493
- console.log("leva init");
44494
44493
  if (ninjaKeys.current) {
44495
44494
  ninjaKeys.current.data = hotkeys2;
44496
44495
  }
@@ -44851,7 +44850,6 @@ class DaoPaaS {
44851
44850
  mapRender(components) {
44852
44851
  components == null ? void 0 : components.forEach((arg, _index) => {
44853
44852
  const omitObj = lodash$2.exports.omit(__spreadValues({}, arg), ["item", "container"]);
44854
- lodash$2.exports.omit(arg, ["item", "container"]);
44855
44853
  switch (arg.item) {
44856
44854
  case "Page":
44857
44855
  this.Page({
@@ -44933,7 +44931,6 @@ class DaoPaaS {
44933
44931
  props: props2
44934
44932
  }) {
44935
44933
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44936
- console.log(props2, 374);
44937
44934
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44938
44935
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44939
44936
  children: /* @__PURE__ */ jsx(LazyTreeComponent, __spreadValues({}, props2))
@@ -190158,6 +190155,7 @@ class MonacoAdapter {
190158
190155
  action && action.apply(this, args);
190159
190156
  }
190160
190157
  onChange(evt) {
190158
+ console.log("eol", evt.eol);
190161
190159
  if (!evt.changes)
190162
190160
  return;
190163
190161
  if (!this.ignoreNextChange) {
@@ -190170,7 +190168,7 @@ class MonacoAdapter {
190170
190168
  const {
190171
190169
  operation,
190172
190170
  liveOperationCode
190173
- } = operationFromMonacoChanges(evt, this.liveOperationCode);
190171
+ } = operationFromMonacoChanges(evt, this.liveOperationCode.replace(/\r\n/gim, "\n"));
190174
190172
  this.liveOperationCode = liveOperationCode;
190175
190173
  this.trigger("change", operation);
190176
190174
  } catch (err) {
@@ -220630,7 +220628,7 @@ const Editor = ({
220630
220628
  setCRDTInfo22(__spreadProps(__spreadValues({}, CRDTInfo22), {
220631
220629
  file: {
220632
220630
  action: "Get",
220633
- value: model.getValue(),
220631
+ value: model.getValue(editor$1.EndOfLinePreference.LF),
220634
220632
  path: model.uri.path.replace(APP_DIR, "")
220635
220633
  }
220636
220634
  }));
@@ -220680,17 +220678,17 @@ const Editor = ({
220680
220678
  var _a2;
220681
220679
  const applyDoc = oTStore.getState().doc;
220682
220680
  console.log(clientEditor.liveOperationCode);
220681
+ client.applyClient(operation);
220683
220682
  setTimeout(() => {
220684
- client.applyClient(operation);
220685
220683
  setLocalFile((applyDoc == null ? void 0 : applyDoc.path) ? applyDoc == null ? void 0 : applyDoc.path : "singleFile", {
220686
- value: editor.getValue(),
220684
+ value: editor.getModel().getValue(editor$1.EndOfLinePreference.LF),
220687
220685
  revision: client.revision
220688
220686
  });
220689
220687
  }, 0);
220690
220688
  if ((_a2 = applyDoc == null ? void 0 : applyDoc.path) == null ? void 0 : _a2.includes("md")) {
220691
- setMarkdownVal(editor.getValue());
220689
+ setMarkdownVal(editor.getModel().getValue(editor$1.EndOfLinePreference.LF));
220692
220690
  }
220693
- setKeepVal(editor.getValue());
220691
+ setKeepVal(editor.getModel().getValue(editor$1.EndOfLinePreference.LF));
220694
220692
  };
220695
220693
  const onDidScroll = (evt) => {
220696
220694
  var _a2;
@@ -220905,7 +220903,7 @@ const Editor = ({
220905
220903
  setTimeout(() => {
220906
220904
  var _a3, _b3;
220907
220905
  if ((_b3 = (_a3 = _d2 == null ? void 0 : _d2.file) == null ? void 0 : _a3.path) == null ? void 0 : _b3.includes("md")) {
220908
- setMarkdownVal(editor.getValue());
220906
+ setMarkdownVal(editor.getModel().getValue(1));
220909
220907
  }
220910
220908
  }, 100);
220911
220909
  }