@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/cjs/index.js +8 -8
- package/lib/es/facade.js +11 -17
- package/lib/es/index.js +3946 -3939
- package/lib/types/docs/data-model/document-data-model.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/instance/instance.service.d.ts +13 -3
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +1 -0
- package/lib/types/sheets/empty-snapshot.d.ts +1 -1
- package/lib/umd/index.js +9 -9
- package/package.json +6 -6
- package/LICENSE +0 -176
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
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
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
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
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
|
);
|