@univerjs/core 0.6.1 → 0.6.2-nightly.202503031606

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
  );