@univerjs/core 0.6.2 → 0.6.3

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.
package/lib/es/facade.js CHANGED
@@ -1097,29 +1097,23 @@ let U = class extends V {
1097
1097
  this.registerEventHandler(
1098
1098
  this.Event.DocDisposed,
1099
1099
  () => t.unitDisposed$.subscribe((r) => {
1100
- r.type === T.UNIVER_DOC && this.fireEvent(
1101
- this.Event.DocDisposed,
1102
- {
1103
- unitId: r.getUnitId(),
1104
- unitType: r.type,
1105
- snapshot: r.getSnapshot()
1106
- }
1107
- );
1100
+ r.type === T.UNIVER_DOC && this.fireEvent(this.Event.DocDisposed, {
1101
+ unitId: r.getUnitId(),
1102
+ unitType: r.type,
1103
+ snapshot: r.getSnapshot()
1104
+ });
1108
1105
  })
1109
1106
  ), this.registerEventHandler(
1110
1107
  this.Event.DocCreated,
1111
1108
  () => t.unitAdded$.subscribe((r) => {
1112
1109
  if (r.type === T.UNIVER_DOC) {
1113
1110
  const n = r, o = e.createInstance(j, n);
1114
- this.fireEvent(
1115
- this.Event.DocCreated,
1116
- {
1117
- unitId: r.getUnitId(),
1118
- type: r.type,
1119
- doc: o,
1120
- unit: o
1121
- }
1122
- );
1111
+ this.fireEvent(this.Event.DocCreated, {
1112
+ unitId: r.getUnitId(),
1113
+ type: r.type,
1114
+ doc: o,
1115
+ unit: o
1116
+ });
1123
1117
  }
1124
1118
  })
1125
1119
  );
package/lib/es/index.js CHANGED
@@ -8875,24 +8875,19 @@ function ti(t) {
8875
8875
  }
8876
8876
  function Ss(t, e) {
8877
8877
  const n = t.findIndex((s) => s.startIndex < e && s.endIndex >= e), r = t[n];
8878
- r && t.splice(
8879
- n,
8880
- 1,
8881
- {
8882
- rangeId: r.rangeId,
8883
- rangeType: r.rangeType,
8884
- startIndex: r.startIndex,
8885
- endIndex: e - 1,
8886
- properties: { ...r.properties }
8887
- },
8888
- {
8889
- rangeId: r.rangeId,
8890
- rangeType: r.rangeType,
8891
- startIndex: e,
8892
- endIndex: r.endIndex,
8893
- properties: { ...r.properties }
8894
- }
8895
- );
8878
+ r && t.splice(n, 1, {
8879
+ rangeId: r.rangeId,
8880
+ rangeType: r.rangeType,
8881
+ startIndex: r.startIndex,
8882
+ endIndex: e - 1,
8883
+ properties: { ...r.properties }
8884
+ }, {
8885
+ rangeId: r.rangeId,
8886
+ rangeType: r.rangeType,
8887
+ startIndex: e,
8888
+ endIndex: r.endIndex,
8889
+ properties: { ...r.properties }
8890
+ });
8896
8891
  }
8897
8892
  function va(t) {
8898
8893
  if (t.length <= 1) return t;
@@ -8908,22 +8903,17 @@ function va(t) {
8908
8903
  function bs(t, e) {
8909
8904
  t.filter((r) => r.startIndex < e && r.endIndex >= e).forEach((r) => {
8910
8905
  const s = t.indexOf(r);
8911
- t.splice(
8912
- s,
8913
- 1,
8914
- {
8915
- id: r.id,
8916
- type: r.type,
8917
- startIndex: r.startIndex,
8918
- endIndex: e - 1
8919
- },
8920
- {
8921
- id: r.id,
8922
- type: r.type,
8923
- startIndex: e,
8924
- endIndex: r.endIndex
8925
- }
8926
- );
8906
+ t.splice(s, 1, {
8907
+ id: r.id,
8908
+ type: r.type,
8909
+ startIndex: r.startIndex,
8910
+ endIndex: e - 1
8911
+ }, {
8912
+ id: r.id,
8913
+ type: r.type,
8914
+ startIndex: e,
8915
+ endIndex: r.endIndex
8916
+ });
8927
8917
  });
8928
8918
  }
8929
8919
  function bg(t, e, n, r) {
@@ -13398,7 +13388,7 @@ class zm extends ne {
13398
13388
  this._error$.next({ errorKey: n });
13399
13389
  }
13400
13390
  }
13401
- const Vm = "0.6.2", Gm = {
13391
+ const Vm = "0.6.3", Gm = {
13402
13392
  version: Vm
13403
13393
  };
13404
13394
  function Km(t = "", e = Fr.ZH_CN, n = "") {