@dao42/d42paas-front 0.7.7 → 0.7.8

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.
@@ -44325,7 +44325,7 @@ class DaoPaaS {
44325
44325
  get otstore() {
44326
44326
  return oTStore.getState();
44327
44327
  }
44328
- get io() {
44328
+ get socketIO() {
44329
44329
  return useOT.getState().socket;
44330
44330
  }
44331
44331
  get playgroundStatus() {
@@ -44344,8 +44344,7 @@ class DaoPaaS {
44344
44344
  if (this.mode === "tsdoc")
44345
44345
  return;
44346
44346
  const {
44347
- setSocket,
44348
- socket: socket2
44347
+ setSocket
44349
44348
  } = useOT.getState();
44350
44349
  const initClassDIV = document.createElement("div");
44351
44350
  initClassDIV.className = "init-class";
@@ -44385,7 +44384,7 @@ class DaoPaaS {
44385
44384
  userId: args.userId
44386
44385
  }));
44387
44386
  PlaygroundInit(__spreadProps(__spreadValues(__spreadValues({}, this.userInfo), args), {
44388
- io: this.io,
44387
+ io: useOT.getState().socket,
44389
44388
  callback: () => {
44390
44389
  if (this.components) {
44391
44390
  this.mapRender(this.components);
@@ -44422,19 +44421,19 @@ class DaoPaaS {
44422
44421
  }
44423
44422
  activePlayground() {
44424
44423
  var _a2;
44425
- (_a2 = this.io) == null ? void 0 : _a2.emit("active");
44424
+ (_a2 = useOT.getState().socket) == null ? void 0 : _a2.emit("active");
44426
44425
  }
44427
44426
  runPlayground() {
44428
44427
  var _a2;
44429
- (_a2 = this.io) == null ? void 0 : _a2.emit("run");
44428
+ (_a2 = useOT.getState().socket) == null ? void 0 : _a2.emit("run");
44430
44429
  }
44431
44430
  stopPlayground() {
44432
44431
  var _a2;
44433
- (_a2 = this.io) == null ? void 0 : _a2.emit("stop");
44432
+ (_a2 = useOT.getState().socket) == null ? void 0 : _a2.emit("stop");
44434
44433
  }
44435
44434
  onUploadFile(payload) {
44436
44435
  var _a2;
44437
- (_a2 = this.io) == null ? void 0 : _a2.emit("upload", payload);
44436
+ (_a2 = useOT.getState().socket) == null ? void 0 : _a2.emit("upload", payload);
44438
44437
  }
44439
44438
  switchLspServer(arg) {
44440
44439
  this.otstore.setGlobalData({
@@ -44442,12 +44441,14 @@ class DaoPaaS {
44442
44441
  });
44443
44442
  }
44444
44443
  record(setBoolean) {
44445
- var _a2, _b2;
44444
+ const {
44445
+ socket: socket2
44446
+ } = useOT.getState();
44446
44447
  if (setBoolean === "undefined") {
44447
44448
  this.otstore.setGlobalData({
44448
44449
  isRecording: !!setBoolean
44449
44450
  });
44450
- (_a2 = this.io) == null ? void 0 : _a2.emit("globalData", {
44451
+ socket2 == null ? void 0 : socket2.emit("globalData", {
44451
44452
  isRecording: !!setBoolean
44452
44453
  });
44453
44454
  return;
@@ -44455,7 +44456,7 @@ class DaoPaaS {
44455
44456
  this.otstore.setGlobalData({
44456
44457
  isRecording: !!setBoolean
44457
44458
  });
44458
- (_b2 = this.io) == null ? void 0 : _b2.emit("globalData", {
44459
+ socket2 == null ? void 0 : socket2.emit("globalData", {
44459
44460
  isRecording: !!setBoolean
44460
44461
  });
44461
44462
  }