@dao42/d42paas-front 0.7.45 → 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.
@@ -27160,7 +27160,7 @@ var DropdownMenu$1 = /* @__PURE__ */ React.forwardRef(function(props2, ref) {
27160
27160
  if (sidenav !== null && sidenav !== void 0 && sidenav.expanded) {
27161
27161
  return /* @__PURE__ */ jsx(SidenavDropdownMenu$1, __spreadValues({}, omit_1(props2, "classPrefix")));
27162
27162
  }
27163
- var _omit2 = omit_1(rest2, ["trigger"]), icon = _omit2.icon, className = _omit2.className, disabled = _omit2.disabled, menuProps = _objectWithoutPropertiesLoose$4(_omit2, ["icon", "className", "disabled"]);
27163
+ var _omit = omit_1(rest2, ["trigger"]), icon = _omit.icon, className = _omit.className, disabled = _omit.disabled, menuProps = _objectWithoutPropertiesLoose$4(_omit, ["icon", "className", "disabled"]);
27164
27164
  var Icon3 = rtl ? AngleLeftIcon : AngleRightIcon;
27165
27165
  return /* @__PURE__ */ jsx(Menu$3, {
27166
27166
  openMenuOn: ["mouseover", "click"],
@@ -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
  }
@@ -44850,17 +44849,18 @@ class DaoPaaS {
44850
44849
  }
44851
44850
  mapRender(components) {
44852
44851
  components == null ? void 0 : components.forEach((arg, _index) => {
44852
+ const omitObj = lodash$2.exports.omit(__spreadValues({}, arg), ["item", "container"]);
44853
44853
  switch (arg.item) {
44854
44854
  case "Page":
44855
44855
  this.Page({
44856
44856
  container: arg.container,
44857
- props: arg.props || _omit()
44857
+ props: arg.props || omitObj
44858
44858
  });
44859
44859
  break;
44860
44860
  case "Tree":
44861
44861
  this.Tree({
44862
44862
  container: arg.container,
44863
- props: arg.props
44863
+ props: arg.props || omitObj
44864
44864
  });
44865
44865
  break;
44866
44866
  case "Editor":
@@ -44874,19 +44874,19 @@ class DaoPaaS {
44874
44874
  case "Console":
44875
44875
  this.Console({
44876
44876
  container: arg.container,
44877
- props: arg.props || _omit()
44877
+ props: arg.props || omitObj
44878
44878
  });
44879
44879
  break;
44880
44880
  case "Browser":
44881
44881
  this.Browser({
44882
44882
  container: arg.container,
44883
- props: arg.props || _omit()
44883
+ props: arg.props || omitObj
44884
44884
  });
44885
44885
  break;
44886
44886
  case "Shell":
44887
44887
  this.Shell({
44888
44888
  container: arg.container,
44889
- props: arg.props || _omit()
44889
+ props: arg.props || omitObj
44890
44890
  });
44891
44891
  break;
44892
44892
  }
@@ -44931,7 +44931,6 @@ class DaoPaaS {
44931
44931
  props: props2
44932
44932
  }) {
44933
44933
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44934
- console.log(props2, 374);
44935
44934
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44936
44935
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44937
44936
  children: /* @__PURE__ */ jsx(LazyTreeComponent, __spreadValues({}, props2))
@@ -44961,9 +44960,6 @@ class DaoPaaS {
44961
44960
  function isHTMLElement$1(arg) {
44962
44961
  return !/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(arg)) ? document.querySelector(arg) : arg;
44963
44962
  }
44964
- function _omit(arg, arg1) {
44965
- throw new Error("Function not implemented.");
44966
- }
44967
44963
  var __assign$a = globalThis && globalThis.__assign || function() {
44968
44964
  __assign$a = Object.assign || function(t2) {
44969
44965
  for (var s2, i = 1, n2 = arguments.length; i < n2; i++) {
@@ -47033,7 +47029,7 @@ function _render(props2, slot, tag, name) {
47033
47029
  if (slot === void 0) {
47034
47030
  slot = {};
47035
47031
  }
47036
- var _omit2 = omit(props2, ["unmount", "static"]), _omit$as = _omit2.as, Component = _omit$as === void 0 ? tag : _omit$as, children = _omit2.children, _omit$refName = _omit2.refName, refName = _omit$refName === void 0 ? "ref" : _omit$refName, passThroughProps = _objectWithoutPropertiesLoose(_omit2, ["as", "children", "refName"]);
47032
+ var _omit = omit(props2, ["unmount", "static"]), _omit$as = _omit.as, Component = _omit$as === void 0 ? tag : _omit$as, children = _omit.children, _omit$refName = _omit.refName, refName = _omit$refName === void 0 ? "ref" : _omit$refName, passThroughProps = _objectWithoutPropertiesLoose(_omit, ["as", "children", "refName"]);
47037
47033
  var refRelatedProps = props2.ref !== void 0 ? (_ref2 = {}, _ref2[refName] = props2.ref, _ref2) : {};
47038
47034
  var resolvedChildren = typeof children === "function" ? children(slot) : children;
47039
47035
  if (passThroughProps.className && typeof passThroughProps.className === "function") {
@@ -190159,6 +190155,7 @@ class MonacoAdapter {
190159
190155
  action && action.apply(this, args);
190160
190156
  }
190161
190157
  onChange(evt) {
190158
+ console.log("eol", evt.eol);
190162
190159
  if (!evt.changes)
190163
190160
  return;
190164
190161
  if (!this.ignoreNextChange) {
@@ -190171,7 +190168,7 @@ class MonacoAdapter {
190171
190168
  const {
190172
190169
  operation,
190173
190170
  liveOperationCode
190174
- } = operationFromMonacoChanges(evt, this.liveOperationCode);
190171
+ } = operationFromMonacoChanges(evt, this.liveOperationCode.replace(/\r\n/gim, "\n"));
190175
190172
  this.liveOperationCode = liveOperationCode;
190176
190173
  this.trigger("change", operation);
190177
190174
  } catch (err) {
@@ -220631,7 +220628,7 @@ const Editor = ({
220631
220628
  setCRDTInfo22(__spreadProps(__spreadValues({}, CRDTInfo22), {
220632
220629
  file: {
220633
220630
  action: "Get",
220634
- value: model.getValue(),
220631
+ value: model.getValue(editor$1.EndOfLinePreference.LF),
220635
220632
  path: model.uri.path.replace(APP_DIR, "")
220636
220633
  }
220637
220634
  }));
@@ -220681,17 +220678,17 @@ const Editor = ({
220681
220678
  var _a2;
220682
220679
  const applyDoc = oTStore.getState().doc;
220683
220680
  console.log(clientEditor.liveOperationCode);
220681
+ client.applyClient(operation);
220684
220682
  setTimeout(() => {
220685
- client.applyClient(operation);
220686
220683
  setLocalFile((applyDoc == null ? void 0 : applyDoc.path) ? applyDoc == null ? void 0 : applyDoc.path : "singleFile", {
220687
- value: editor.getValue(),
220684
+ value: editor.getModel().getValue(editor$1.EndOfLinePreference.LF),
220688
220685
  revision: client.revision
220689
220686
  });
220690
220687
  }, 0);
220691
220688
  if ((_a2 = applyDoc == null ? void 0 : applyDoc.path) == null ? void 0 : _a2.includes("md")) {
220692
- setMarkdownVal(editor.getValue());
220689
+ setMarkdownVal(editor.getModel().getValue(editor$1.EndOfLinePreference.LF));
220693
220690
  }
220694
- setKeepVal(editor.getValue());
220691
+ setKeepVal(editor.getModel().getValue(editor$1.EndOfLinePreference.LF));
220695
220692
  };
220696
220693
  const onDidScroll = (evt) => {
220697
220694
  var _a2;
@@ -220906,7 +220903,7 @@ const Editor = ({
220906
220903
  setTimeout(() => {
220907
220904
  var _a3, _b3;
220908
220905
  if ((_b3 = (_a3 = _d2 == null ? void 0 : _d2.file) == null ? void 0 : _a3.path) == null ? void 0 : _b3.includes("md")) {
220909
- setMarkdownVal(editor.getValue());
220906
+ setMarkdownVal(editor.getModel().getValue(1));
220910
220907
  }
220911
220908
  }, 100);
220912
220909
  }