@dao42/d42paas-front 0.5.27 → 0.5.28

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.
@@ -31647,13 +31647,13 @@ var Tree = react.exports.forwardRef(function(props, ref) {
31647
31647
  }
31648
31648
  return react.exports.createElement(TreeContext.Provider, { value: treeContextProps }, react.exports.createElement(TreeActionsProvider, { ref }, react.exports.createElement(TreeManager, null)));
31649
31649
  });
31650
- function IoClient(revision) {
31650
+ const IoClient = function(revision) {
31651
31651
  this.revision = revision;
31652
31652
  this.state = synchronized_;
31653
31653
  this.operation = [];
31654
31654
  this.receiveOperation = [];
31655
31655
  this.io = useOT.getState().socket;
31656
- }
31656
+ };
31657
31657
  IoClient.prototype.setState = function(state) {
31658
31658
  this.state = state;
31659
31659
  };
@@ -31734,10 +31734,15 @@ AwaitingWithBuffer.prototype.applyClient = function(client2, operation) {
31734
31734
  return new AwaitingWithBuffer(this.outstanding, newBuffer);
31735
31735
  };
31736
31736
  AwaitingWithBuffer.prototype.applyServer = function(client2, operation) {
31737
+ let pair2, pair1;
31737
31738
  const transform = operation.constructor.transform;
31738
- const pair1 = transform(this.outstanding, operation);
31739
- const pair2 = transform(this.buffer, pair1[1]);
31740
- client2.applyOperation(pair2[1]);
31739
+ if (this.outstanding.baseLength === operation.baseLength) {
31740
+ pair1 = transform(this.outstanding, operation);
31741
+ if (this.buffer.baseLength === pair1[1].baseLength) {
31742
+ pair2 = transform(this.buffer, pair1[1]);
31743
+ client2.applyOperation(pair2[1]);
31744
+ }
31745
+ }
31741
31746
  return new AwaitingWithBuffer(pair1[0], pair2[0]);
31742
31747
  };
31743
31748
  AwaitingWithBuffer.prototype.serverAck = function(client2) {
@@ -157517,6 +157522,24 @@ class ToggleHighContrast extends EditorAction {
157517
157522
  }
157518
157523
  }
157519
157524
  registerEditorAction(ToggleHighContrast);
157525
+ var monaco = /* @__PURE__ */ Object.freeze({
157526
+ __proto__: null,
157527
+ [Symbol.toStringTag]: "Module",
157528
+ CancellationTokenSource,
157529
+ Emitter,
157530
+ KeyCode,
157531
+ KeyMod,
157532
+ Position: Position$4,
157533
+ Range: Range$4,
157534
+ Selection: Selection$2,
157535
+ SelectionDirection,
157536
+ MarkerSeverity,
157537
+ MarkerTag,
157538
+ Uri,
157539
+ Token,
157540
+ editor: editor$1,
157541
+ languages
157542
+ });
157520
157543
  var lib$2 = {};
157521
157544
  var textOperation = { exports: {} };
157522
157545
  (function(module2) {
@@ -162761,8 +162784,8 @@ var DEFAULT = {
162761
162784
  startClosed: false,
162762
162785
  debug: false
162763
162786
  };
162764
- (function() {
162765
- function ReconnectingWebSocket(url2, protocols, options) {
162787
+ var ReconnectingWebSocket = function() {
162788
+ function ReconnectingWebSocket2(url2, protocols, options) {
162766
162789
  var _this = this;
162767
162790
  if (options === void 0) {
162768
162791
  options = {};
@@ -162844,63 +162867,63 @@ var DEFAULT = {
162844
162867
  }
162845
162868
  this._connect();
162846
162869
  }
162847
- Object.defineProperty(ReconnectingWebSocket, "CONNECTING", {
162870
+ Object.defineProperty(ReconnectingWebSocket2, "CONNECTING", {
162848
162871
  get: function() {
162849
162872
  return 0;
162850
162873
  },
162851
162874
  enumerable: true,
162852
162875
  configurable: true
162853
162876
  });
162854
- Object.defineProperty(ReconnectingWebSocket, "OPEN", {
162877
+ Object.defineProperty(ReconnectingWebSocket2, "OPEN", {
162855
162878
  get: function() {
162856
162879
  return 1;
162857
162880
  },
162858
162881
  enumerable: true,
162859
162882
  configurable: true
162860
162883
  });
162861
- Object.defineProperty(ReconnectingWebSocket, "CLOSING", {
162884
+ Object.defineProperty(ReconnectingWebSocket2, "CLOSING", {
162862
162885
  get: function() {
162863
162886
  return 2;
162864
162887
  },
162865
162888
  enumerable: true,
162866
162889
  configurable: true
162867
162890
  });
162868
- Object.defineProperty(ReconnectingWebSocket, "CLOSED", {
162891
+ Object.defineProperty(ReconnectingWebSocket2, "CLOSED", {
162869
162892
  get: function() {
162870
162893
  return 3;
162871
162894
  },
162872
162895
  enumerable: true,
162873
162896
  configurable: true
162874
162897
  });
162875
- Object.defineProperty(ReconnectingWebSocket.prototype, "CONNECTING", {
162898
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "CONNECTING", {
162876
162899
  get: function() {
162877
- return ReconnectingWebSocket.CONNECTING;
162900
+ return ReconnectingWebSocket2.CONNECTING;
162878
162901
  },
162879
162902
  enumerable: true,
162880
162903
  configurable: true
162881
162904
  });
162882
- Object.defineProperty(ReconnectingWebSocket.prototype, "OPEN", {
162905
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "OPEN", {
162883
162906
  get: function() {
162884
- return ReconnectingWebSocket.OPEN;
162907
+ return ReconnectingWebSocket2.OPEN;
162885
162908
  },
162886
162909
  enumerable: true,
162887
162910
  configurable: true
162888
162911
  });
162889
- Object.defineProperty(ReconnectingWebSocket.prototype, "CLOSING", {
162912
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "CLOSING", {
162890
162913
  get: function() {
162891
- return ReconnectingWebSocket.CLOSING;
162914
+ return ReconnectingWebSocket2.CLOSING;
162892
162915
  },
162893
162916
  enumerable: true,
162894
162917
  configurable: true
162895
162918
  });
162896
- Object.defineProperty(ReconnectingWebSocket.prototype, "CLOSED", {
162919
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "CLOSED", {
162897
162920
  get: function() {
162898
- return ReconnectingWebSocket.CLOSED;
162921
+ return ReconnectingWebSocket2.CLOSED;
162899
162922
  },
162900
162923
  enumerable: true,
162901
162924
  configurable: true
162902
162925
  });
162903
- Object.defineProperty(ReconnectingWebSocket.prototype, "binaryType", {
162926
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "binaryType", {
162904
162927
  get: function() {
162905
162928
  return this._ws ? this._ws.binaryType : this._binaryType;
162906
162929
  },
@@ -162913,14 +162936,14 @@ var DEFAULT = {
162913
162936
  enumerable: true,
162914
162937
  configurable: true
162915
162938
  });
162916
- Object.defineProperty(ReconnectingWebSocket.prototype, "retryCount", {
162939
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "retryCount", {
162917
162940
  get: function() {
162918
162941
  return Math.max(this._retryCount, 0);
162919
162942
  },
162920
162943
  enumerable: true,
162921
162944
  configurable: true
162922
162945
  });
162923
- Object.defineProperty(ReconnectingWebSocket.prototype, "bufferedAmount", {
162946
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "bufferedAmount", {
162924
162947
  get: function() {
162925
162948
  var bytes = this._messageQueue.reduce(function(acc, message) {
162926
162949
  if (typeof message === "string") {
@@ -162937,38 +162960,38 @@ var DEFAULT = {
162937
162960
  enumerable: true,
162938
162961
  configurable: true
162939
162962
  });
162940
- Object.defineProperty(ReconnectingWebSocket.prototype, "extensions", {
162963
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "extensions", {
162941
162964
  get: function() {
162942
162965
  return this._ws ? this._ws.extensions : "";
162943
162966
  },
162944
162967
  enumerable: true,
162945
162968
  configurable: true
162946
162969
  });
162947
- Object.defineProperty(ReconnectingWebSocket.prototype, "protocol", {
162970
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "protocol", {
162948
162971
  get: function() {
162949
162972
  return this._ws ? this._ws.protocol : "";
162950
162973
  },
162951
162974
  enumerable: true,
162952
162975
  configurable: true
162953
162976
  });
162954
- Object.defineProperty(ReconnectingWebSocket.prototype, "readyState", {
162977
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "readyState", {
162955
162978
  get: function() {
162956
162979
  if (this._ws) {
162957
162980
  return this._ws.readyState;
162958
162981
  }
162959
- return this._options.startClosed ? ReconnectingWebSocket.CLOSED : ReconnectingWebSocket.CONNECTING;
162982
+ return this._options.startClosed ? ReconnectingWebSocket2.CLOSED : ReconnectingWebSocket2.CONNECTING;
162960
162983
  },
162961
162984
  enumerable: true,
162962
162985
  configurable: true
162963
162986
  });
162964
- Object.defineProperty(ReconnectingWebSocket.prototype, "url", {
162987
+ Object.defineProperty(ReconnectingWebSocket2.prototype, "url", {
162965
162988
  get: function() {
162966
162989
  return this._ws ? this._ws.url : "";
162967
162990
  },
162968
162991
  enumerable: true,
162969
162992
  configurable: true
162970
162993
  });
162971
- ReconnectingWebSocket.prototype.close = function(code2, reason) {
162994
+ ReconnectingWebSocket2.prototype.close = function(code2, reason) {
162972
162995
  if (code2 === void 0) {
162973
162996
  code2 = 1e3;
162974
162997
  }
@@ -162985,7 +163008,7 @@ var DEFAULT = {
162985
163008
  }
162986
163009
  this._ws.close(code2, reason);
162987
163010
  };
162988
- ReconnectingWebSocket.prototype.reconnect = function(code2, reason) {
163011
+ ReconnectingWebSocket2.prototype.reconnect = function(code2, reason) {
162989
163012
  this._shouldReconnect = true;
162990
163013
  this._closeCalled = false;
162991
163014
  this._retryCount = -1;
@@ -162996,7 +163019,7 @@ var DEFAULT = {
162996
163019
  this._connect();
162997
163020
  }
162998
163021
  };
162999
- ReconnectingWebSocket.prototype.send = function(data) {
163022
+ ReconnectingWebSocket2.prototype.send = function(data) {
163000
163023
  if (this._ws && this._ws.readyState === this.OPEN) {
163001
163024
  this._debug("send", data);
163002
163025
  this._ws.send(data);
@@ -163008,12 +163031,12 @@ var DEFAULT = {
163008
163031
  }
163009
163032
  }
163010
163033
  };
163011
- ReconnectingWebSocket.prototype.addEventListener = function(type, listener) {
163034
+ ReconnectingWebSocket2.prototype.addEventListener = function(type, listener) {
163012
163035
  if (this._listeners[type]) {
163013
163036
  this._listeners[type].push(listener);
163014
163037
  }
163015
163038
  };
163016
- ReconnectingWebSocket.prototype.dispatchEvent = function(event) {
163039
+ ReconnectingWebSocket2.prototype.dispatchEvent = function(event) {
163017
163040
  var e_1, _a2;
163018
163041
  var listeners2 = this._listeners[event.type];
163019
163042
  if (listeners2) {
@@ -163036,14 +163059,14 @@ var DEFAULT = {
163036
163059
  }
163037
163060
  return true;
163038
163061
  };
163039
- ReconnectingWebSocket.prototype.removeEventListener = function(type, listener) {
163062
+ ReconnectingWebSocket2.prototype.removeEventListener = function(type, listener) {
163040
163063
  if (this._listeners[type]) {
163041
163064
  this._listeners[type] = this._listeners[type].filter(function(l2) {
163042
163065
  return l2 !== listener;
163043
163066
  });
163044
163067
  }
163045
163068
  };
163046
- ReconnectingWebSocket.prototype._debug = function() {
163069
+ ReconnectingWebSocket2.prototype._debug = function() {
163047
163070
  var args = [];
163048
163071
  for (var _i = 0; _i < arguments.length; _i++) {
163049
163072
  args[_i] = arguments[_i];
@@ -163052,7 +163075,7 @@ var DEFAULT = {
163052
163075
  console.log.apply(console, __spread(["RWS>"], args));
163053
163076
  }
163054
163077
  };
163055
- ReconnectingWebSocket.prototype._getNextDelay = function() {
163078
+ ReconnectingWebSocket2.prototype._getNextDelay = function() {
163056
163079
  var _a2 = this._options, _b2 = _a2.reconnectionDelayGrowFactor, reconnectionDelayGrowFactor = _b2 === void 0 ? DEFAULT.reconnectionDelayGrowFactor : _b2, _c2 = _a2.minReconnectionDelay, minReconnectionDelay = _c2 === void 0 ? DEFAULT.minReconnectionDelay : _c2, _d2 = _a2.maxReconnectionDelay, maxReconnectionDelay = _d2 === void 0 ? DEFAULT.maxReconnectionDelay : _d2;
163057
163080
  var delay = 0;
163058
163081
  if (this._retryCount > 0) {
@@ -163064,13 +163087,13 @@ var DEFAULT = {
163064
163087
  this._debug("next delay", delay);
163065
163088
  return delay;
163066
163089
  };
163067
- ReconnectingWebSocket.prototype._wait = function() {
163090
+ ReconnectingWebSocket2.prototype._wait = function() {
163068
163091
  var _this = this;
163069
163092
  return new Promise(function(resolve2) {
163070
163093
  setTimeout(resolve2, _this._getNextDelay());
163071
163094
  });
163072
163095
  };
163073
- ReconnectingWebSocket.prototype._getNextUrl = function(urlProvider) {
163096
+ ReconnectingWebSocket2.prototype._getNextUrl = function(urlProvider) {
163074
163097
  if (typeof urlProvider === "string") {
163075
163098
  return Promise.resolve(urlProvider);
163076
163099
  }
@@ -163085,7 +163108,7 @@ var DEFAULT = {
163085
163108
  }
163086
163109
  throw Error("Invalid URL");
163087
163110
  };
163088
- ReconnectingWebSocket.prototype._connect = function() {
163111
+ ReconnectingWebSocket2.prototype._connect = function() {
163089
163112
  var _this = this;
163090
163113
  if (this._connectLock || !this._shouldReconnect) {
163091
163114
  return;
@@ -163118,11 +163141,11 @@ var DEFAULT = {
163118
163141
  }, connectionTimeout);
163119
163142
  });
163120
163143
  };
163121
- ReconnectingWebSocket.prototype._handleTimeout = function() {
163144
+ ReconnectingWebSocket2.prototype._handleTimeout = function() {
163122
163145
  this._debug("timeout event");
163123
163146
  this._handleError(new ErrorEvent$1(Error("TIMEOUT"), this));
163124
163147
  };
163125
- ReconnectingWebSocket.prototype._disconnect = function(code2, reason) {
163148
+ ReconnectingWebSocket2.prototype._disconnect = function(code2, reason) {
163126
163149
  if (code2 === void 0) {
163127
163150
  code2 = 1e3;
163128
163151
  }
@@ -163137,18 +163160,18 @@ var DEFAULT = {
163137
163160
  } catch (error2) {
163138
163161
  }
163139
163162
  };
163140
- ReconnectingWebSocket.prototype._acceptOpen = function() {
163163
+ ReconnectingWebSocket2.prototype._acceptOpen = function() {
163141
163164
  this._debug("accept open");
163142
163165
  this._retryCount = 0;
163143
163166
  };
163144
- ReconnectingWebSocket.prototype._callEventListener = function(event, listener) {
163167
+ ReconnectingWebSocket2.prototype._callEventListener = function(event, listener) {
163145
163168
  if ("handleEvent" in listener) {
163146
163169
  listener.handleEvent(event);
163147
163170
  } else {
163148
163171
  listener(event);
163149
163172
  }
163150
163173
  };
163151
- ReconnectingWebSocket.prototype._removeListeners = function() {
163174
+ ReconnectingWebSocket2.prototype._removeListeners = function() {
163152
163175
  if (!this._ws) {
163153
163176
  return;
163154
163177
  }
@@ -163158,7 +163181,7 @@ var DEFAULT = {
163158
163181
  this._ws.removeEventListener("message", this._handleMessage);
163159
163182
  this._ws.removeEventListener("error", this._handleError);
163160
163183
  };
163161
- ReconnectingWebSocket.prototype._addListeners = function() {
163184
+ ReconnectingWebSocket2.prototype._addListeners = function() {
163162
163185
  if (!this._ws) {
163163
163186
  return;
163164
163187
  }
@@ -163168,12 +163191,12 @@ var DEFAULT = {
163168
163191
  this._ws.addEventListener("message", this._handleMessage);
163169
163192
  this._ws.addEventListener("error", this._handleError);
163170
163193
  };
163171
- ReconnectingWebSocket.prototype._clearTimeouts = function() {
163194
+ ReconnectingWebSocket2.prototype._clearTimeouts = function() {
163172
163195
  clearTimeout(this._connectTimeout);
163173
163196
  clearTimeout(this._uptimeTimeout);
163174
163197
  };
163175
- return ReconnectingWebSocket;
163176
- })();
163198
+ return ReconnectingWebSocket2;
163199
+ }();
163177
163200
  var lib = {};
163178
163201
  var disposable = {};
163179
163202
  var services = {};
@@ -174725,7 +174748,10 @@ const ContentLayout = newStyled.div`
174725
174748
  `;
174726
174749
  const Editor = ({
174727
174750
  doc,
174728
- docType
174751
+ docType,
174752
+ containerStyle,
174753
+ menuStyle,
174754
+ editorStyle
174729
174755
  }) => {
174730
174756
  const divEl = react.exports.useRef(null);
174731
174757
  react.exports.useState(doc ? doc : "");
@@ -174798,12 +174824,20 @@ const Editor = ({
174798
174824
  setPosition(editor.getPosition());
174799
174825
  let keepString = 0;
174800
174826
  let rangeLengthamount = 0;
174827
+ let rangeOffsetthamount = 0;
174828
+ let preOffset = 0;
174801
174829
  const valuelength = editorValue.length - changes.reduce((change, nextChange, i2) => change - nextChange.rangeLength + nextChange.text.length, 0);
174802
- const operation = changes.sort((c1, c2) => c1.rangeOffset - c2.rangeOffset).map((change, i2) => {
174803
- rangeLengthamount += i2 === 0 ? 0 : change.rangeLength;
174804
- keepString += i2 === 0 ? 0 : change.text.length;
174805
- return new TextOperation().retain(i2 === 0 ? change.rangeOffset : change.rangeOffset - rangeLengthamount + keepString).delete(change.rangeLength).insert(change.text).retain(valuelength - change.rangeOffset - change.rangeLength);
174806
- }).reduce((a2, b2) => a2.compose(b2));
174830
+ const operation = new TextOperation();
174831
+ changes.sort((change1, change2) => change1.rangeOffset - change2.rangeOffset).forEach((change, index2, _array) => {
174832
+ operation.retain(index2 === 0 ? change.rangeOffset : change.rangeOffset - preOffset).delete(change.rangeLength).insert(change.text);
174833
+ if (index2 + 1 === _array.length) {
174834
+ operation.retain(valuelength - change.rangeLength - change.rangeOffset);
174835
+ }
174836
+ preOffset = change.rangeOffset + change.rangeLength;
174837
+ rangeLengthamount += change.rangeLength;
174838
+ keepString += change.text.length;
174839
+ rangeOffsetthamount += change.rangeOffset;
174840
+ });
174807
174841
  client2.applyClient(operation);
174808
174842
  } else {
174809
174843
  setValue(changes[0].text);
@@ -174892,7 +174926,45 @@ const Editor = ({
174892
174926
  extensions: [".ts"],
174893
174927
  aliases: ["TypeScript", "ts", "TS", "typescript"]
174894
174928
  });
174895
- return;
174929
+ if (disable)
174930
+ return;
174931
+ lib.MonacoServices.install(monaco);
174932
+ const {
174933
+ lspUrl,
174934
+ ticket
174935
+ } = oTStore.getState().dockerInfo;
174936
+ if (!lspUrl)
174937
+ return;
174938
+ const webSocket = new ReconnectingWebSocket(`wss://${lspUrl}/${ticket}`, [], {
174939
+ maxReconnectionDelay: 1e4,
174940
+ minReconnectionDelay: 1e3,
174941
+ reconnectionDelayGrowFactor: 1.3,
174942
+ connectionTimeout: 1e4,
174943
+ maxRetries: Infinity,
174944
+ debug: false
174945
+ });
174946
+ lib$1.listen({
174947
+ webSocket,
174948
+ onConnection: (connection2) => {
174949
+ const languageClient = new lib.MonacoLanguageClient({
174950
+ name: "Language Client",
174951
+ clientOptions: {
174952
+ documentSelector: ["java", "ruby"],
174953
+ errorHandler: {
174954
+ error: () => lib.ErrorAction.Continue,
174955
+ closed: () => lib.CloseAction.DoNotRestart
174956
+ }
174957
+ },
174958
+ connectionProvider: {
174959
+ get: (errorHandler2, closeHandler) => {
174960
+ return Promise.resolve(lib.createConnection(connection2, errorHandler2, closeHandler));
174961
+ }
174962
+ }
174963
+ });
174964
+ const disposable2 = languageClient.start();
174965
+ connection2.onClose(() => disposable2.dispose());
174966
+ }
174967
+ });
174896
174968
  };
174897
174969
  const switchModel = (model) => {
174898
174970
  const {
@@ -174933,13 +175005,14 @@ const Editor = ({
174933
175005
  });
174934
175006
  editor = editor$1.create(divEl.current, {
174935
175007
  theme: "vs-dark",
175008
+ automaticLayout: true,
174936
175009
  glyphMargin: true,
174937
175010
  lightbulb: {
174938
175011
  enabled: true
174939
175012
  }
174940
175013
  });
174941
- lspServerInject(INIT_LANGUAGE, oTStore.getState().lspServerDisabled);
174942
175014
  editorEventBinder();
175015
+ lspServerInject(INIT_LANGUAGE, oTStore.getState().lspServerDisabled);
174943
175016
  const editorService = editor._codeEditorService;
174944
175017
  const openEditorBase = editorService.openCodeEditor.bind(editorService);
174945
175018
  editorService.openCodeEditor = async (input, source, workspacePath) => {
@@ -174985,7 +175058,7 @@ const Editor = ({
174985
175058
  index2 += op;
174986
175059
  }
174987
175060
  if (TextOperation.isInsert(op)) {
174988
- const insert = model.getPositionAt(index2);
175061
+ const insert = model == null ? void 0 : model.getPositionAt(index2);
174989
175062
  const originResult = {
174990
175063
  forceMoveMarkers: true,
174991
175064
  range: new Range$4(insert.lineNumber, insert.column, insert.lineNumber, insert.column),
@@ -174994,8 +175067,8 @@ const Editor = ({
174994
175067
  results.push(originResult);
174995
175068
  }
174996
175069
  if (TextOperation.isDelete(op)) {
174997
- const start = model.getPositionAt(index2);
174998
- const end = model.getPositionAt(index2 - op);
175070
+ const start = model == null ? void 0 : model.getPositionAt(index2);
175071
+ const end = model == null ? void 0 : model.getPositionAt(index2 - op);
174999
175072
  results.push({
175000
175073
  forceMoveMarkers: false,
175001
175074
  range: new Range$4(start.lineNumber, start.column, end.lineNumber, end.column),
@@ -175005,7 +175078,7 @@ const Editor = ({
175005
175078
  }
175006
175079
  });
175007
175080
  {
175008
- model.pushEditOperations([], results, null);
175081
+ model == null ? void 0 : model.pushEditOperations([], results, null);
175009
175082
  }
175010
175083
  }
175011
175084
  }, [OTSTATE.CRDTInfo]);
@@ -175049,10 +175122,9 @@ const Editor = ({
175049
175122
  }));
175050
175123
  });
175051
175124
  setUsersDelta(usersDelta.map((deltaInfo) => {
175052
- var _a3;
175053
175125
  if (deltaInfo.uuid === CRDTInfo.userInfo.uuid) {
175054
175126
  return __spreadProps(__spreadValues({}, deltaInfo), {
175055
- delta: editor.deltaDecorations(deltaInfo.delta ? deltaInfo.delta : "", (_a3 = CRDTInfo == null ? void 0 : CRDTInfo.selection) == null ? void 0 : _a3.map((s2) => ({
175127
+ delta: editor.deltaDecorations(deltaInfo.delta ? deltaInfo.delta : "", (CRDTInfo == null ? void 0 : CRDTInfo.selection).map((s2) => ({
175056
175128
  range: new Range$4(s2[0], s2[1], s2[2], s2[3]),
175057
175129
  options: {
175058
175130
  isWholeLine: false,
@@ -175147,8 +175219,10 @@ const Editor = ({
175147
175219
  });
175148
175220
  }, [USERLISTSTORE.userList, file == null ? void 0 : file.path]);
175149
175221
  return /* @__PURE__ */ jsxs(EditorLayout, {
175222
+ style: containerStyle,
175150
175223
  className: "editor-layout flex flex-col",
175151
175224
  children: [FileTreeStack.length > 0 ? /* @__PURE__ */ jsx("ul", {
175225
+ style: menuStyle,
175152
175226
  className: "bg-codezone-black stack-list flex flex-row items-center flex-shrink-0",
175153
175227
  children: FileTreeStack.map((f2, index2) => /* @__PURE__ */ jsx("li", {
175154
175228
  className: `flex flex-row justify-center items-center cursor-pointer ${f2.path === (file == null ? void 0 : file.path) ? "active" : ""}`,
@@ -175160,7 +175234,8 @@ const Editor = ({
175160
175234
  }) : null, /* @__PURE__ */ jsx(ContentLayout, {
175161
175235
  ref: divEl,
175162
175236
  userList: userListStore.getState().userList,
175163
- className: "edito-content flex-1"
175237
+ className: "edito-content flex-1",
175238
+ style: editorStyle
175164
175239
  })]
175165
175240
  });
175166
175241
  };
@@ -182459,24 +182534,27 @@ const OutputBrowser = (_e2) => {
182459
182534
  react.exports.useEffect(() => {
182460
182535
  }, [iframeRef]);
182461
182536
  const onEnterKey = (e2) => {
182537
+ var _a2, _b2;
182462
182538
  if (e2.keyCode !== 13)
182463
182539
  return;
182464
182540
  const url22 = urlWithProtocol(e2.target.value);
182465
182541
  setIframeSrc(url22);
182466
- iframeRef.current.contentWindow.location.replace(url22);
182542
+ (_b2 = (_a2 = iframeRef == null ? void 0 : iframeRef.current) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.location.replace(url22);
182467
182543
  };
182468
182544
  const onRefresh = () => {
182469
- iframeRef.current.contentWindow.location.replace(iframeSrc);
182545
+ var _a2, _b2;
182546
+ (_b2 = (_a2 = iframeRef == null ? void 0 : iframeRef.current) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.location.replace(iframeSrc);
182470
182547
  };
182471
182548
  const onOpenInNewTab = () => {
182472
182549
  window.open(iframeSrc);
182473
182550
  };
182474
182551
  react.exports.useEffect(() => {
182552
+ var _a2, _b2;
182475
182553
  if (playgroundStatus === "EMPTY")
182476
182554
  return;
182477
182555
  if (playgroundStatus === "ACTIVE" && dockerStatus === "RUNNING") {
182478
182556
  if (iframeSrc !== "http://" && iframeSrc !== "https://") {
182479
- iframeRef.current.contentWindow.location.replace(iframeSrc);
182557
+ (_b2 = (_a2 = iframeRef == null ? void 0 : iframeRef.current) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.location.replace(iframeSrc);
182480
182558
  }
182481
182559
  }
182482
182560
  }, [playgroundStatus, dockerStatus]);
@@ -232587,6 +232665,7 @@ const Index = (props) => {
232587
232665
  };
232588
232666
  const isFolded = useIndexState.getState().isFolded;
232589
232667
  const playgroundInfo = oTStore((state) => state.playgroundInfo);
232668
+ const dockerInfo = oTStore((state) => state.dockerInfo);
232590
232669
  const [active, setActive] = react.exports.useState("shell");
232591
232670
  const [url2, setUrl] = react.exports.useState(playgroundInfo.url);
232592
232671
  const {
@@ -232625,7 +232704,7 @@ const Index = (props) => {
232625
232704
  children: [/* @__PURE__ */ jsx(SliderComponent, {}), /* @__PURE__ */ jsx(TreeComponent, {})]
232626
232705
  }), /* @__PURE__ */ jsx("section", {
232627
232706
  className: "bg-codezone-black rounded-sm mx-3.5 flex-1 flex flex-col",
232628
- children: playgroundInfo.dockerId ? /* @__PURE__ */ jsx(react.exports.Suspense, {
232707
+ children: dockerInfo.dockerId ? /* @__PURE__ */ jsx(react.exports.Suspense, {
232629
232708
  fallback: /* @__PURE__ */ jsx(Skeleton, {
232630
232709
  count: 10
232631
232710
  }),