@univerjs/docs-ui 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-7b9120d
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 +2 -2
- package/lib/es/index.js +3 -2
- package/lib/index.js +3 -2
- package/lib/types/services/editor/editor.d.ts +1 -1
- package/lib/umd/index.js +16 -16
- package/package.json +10 -10
package/lib/es/index.js
CHANGED
|
@@ -6925,7 +6925,8 @@ class HA extends me {
|
|
|
6925
6925
|
return this._undoRedoService.clearUndoRedo(t);
|
|
6926
6926
|
}
|
|
6927
6927
|
dispose() {
|
|
6928
|
-
this._getDocDataModel()
|
|
6928
|
+
const t = this._getDocDataModel();
|
|
6929
|
+
t == null || t.dispose();
|
|
6929
6930
|
}
|
|
6930
6931
|
/**
|
|
6931
6932
|
* @deprecated use getEditorId.
|
|
@@ -12291,7 +12292,7 @@ let Mr = class extends me {
|
|
|
12291
12292
|
ro((n) => n.type === ra.resize),
|
|
12292
12293
|
Rn(0, Yl)
|
|
12293
12294
|
).subscribe(() => {
|
|
12294
|
-
this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection();
|
|
12295
|
+
this._disposed || (this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection());
|
|
12295
12296
|
})
|
|
12296
12297
|
);
|
|
12297
12298
|
}
|
package/lib/index.js
CHANGED
|
@@ -6925,7 +6925,8 @@ class HA extends me {
|
|
|
6925
6925
|
return this._undoRedoService.clearUndoRedo(t);
|
|
6926
6926
|
}
|
|
6927
6927
|
dispose() {
|
|
6928
|
-
this._getDocDataModel()
|
|
6928
|
+
const t = this._getDocDataModel();
|
|
6929
|
+
t == null || t.dispose();
|
|
6929
6930
|
}
|
|
6930
6931
|
/**
|
|
6931
6932
|
* @deprecated use getEditorId.
|
|
@@ -12291,7 +12292,7 @@ let Mr = class extends me {
|
|
|
12291
12292
|
ro((n) => n.type === ra.resize),
|
|
12292
12293
|
Rn(0, Yl)
|
|
12293
12294
|
).subscribe(() => {
|
|
12294
|
-
this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection();
|
|
12295
|
+
this._disposed || (this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection());
|
|
12295
12296
|
})
|
|
12296
12297
|
);
|
|
12297
12298
|
}
|
|
@@ -86,7 +86,7 @@ export declare class Editor extends Disposable implements IEditor {
|
|
|
86
86
|
getCursorPosition(): number;
|
|
87
87
|
getEditorId(): string;
|
|
88
88
|
getDocumentData(): IDocumentData;
|
|
89
|
-
getDocumentDataModel(): DocumentDataModel
|
|
89
|
+
getDocumentDataModel(): Nullable<DocumentDataModel>;
|
|
90
90
|
setDocumentData(data: IDocumentData, textRanges: Nullable<ITextRangeWithStyle[]>): void;
|
|
91
91
|
replaceText(text: string, resetCursor?: boolean | ITextRangeWithStyle[]): void;
|
|
92
92
|
clearUndoRedoHistory(): void;
|