@univerjs-pro/collaboration 1.0.0-alpha.8 → 1.0.0-beta.0
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/controllers/pdf-transform/algorithms/apply-batch.algo.d.ts +8 -0
- package/lib/types/controllers/pdf-transform/algorithms/index.d.ts +5 -0
- package/lib/types/controllers/pdf-transform/pdf-transform.controller.d.ts +7 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/snapshot/snapshot.service.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +26 -26
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IApplyPdfMutationBatchMutationParams } from '@univerjs-pro/pdfs';
|
|
2
|
+
import type { IMutationInfo } from '@univerjs/core';
|
|
3
|
+
import type { ITransformMutationResult } from '../../../services/transform/types';
|
|
4
|
+
export declare const ApplyPdfMutationBatchWithSelf: {
|
|
5
|
+
m1: string;
|
|
6
|
+
m2: string;
|
|
7
|
+
handler(m1: IMutationInfo<IApplyPdfMutationBatchMutationParams>, m2: IMutationInfo<IApplyPdfMutationBatchMutationParams>): ITransformMutationResult;
|
|
8
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const PDF_ALL_TRANSFORM_ALGORITHMS: {
|
|
2
|
+
m1: string;
|
|
3
|
+
m2: string;
|
|
4
|
+
handler(m1: import("@univerjs/core").IMutationInfo<import("@univerjs-pro/pdfs").IApplyPdfMutationBatchMutationParams>, m2: import("@univerjs/core").IMutationInfo<import("@univerjs-pro/pdfs").IApplyPdfMutationBatchMutationParams>): import("../../../services/transform/types").ITransformMutationResult;
|
|
5
|
+
}[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ITransformService } from '../../services/transform/transform.service';
|
|
3
|
+
/** Registers canonical PDF mutation transforms with the shared collaboration layer. */
|
|
4
|
+
export declare class PdfTransformController extends Disposable {
|
|
5
|
+
private readonly _transformService;
|
|
6
|
+
constructor(_transformService: ITransformService);
|
|
7
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { BoardTransformController } from './controllers/board-transform/board-tr
|
|
|
6
6
|
export { RichTextEditingMutationWithSelf } from './controllers/doc-transform/algorithms/doc-algo';
|
|
7
7
|
export { DocTransformController } from './controllers/doc-transform/doc-transform.controller';
|
|
8
8
|
export { EmptyMutationInfo } from './controllers/empty';
|
|
9
|
+
export { PdfTransformController } from './controllers/pdf-transform/pdf-transform.controller';
|
|
9
10
|
export { SheetTransformController } from './controllers/sheet-transform/sheet-transform.controller';
|
|
10
11
|
export { SlideTransformController } from './controllers/slide-transform/slide-transform.controller';
|
|
11
12
|
export { parseChangesetToProtocol, parseMutationToProtocol, parseProtocolChangeset, parseProtocolCommand, } from './models/changeset';
|
|
@@ -60,6 +60,7 @@ export declare class SnapshotService {
|
|
|
60
60
|
isUnitLoadedFromServer(unit: UnitModel): boolean;
|
|
61
61
|
loadSheet(unitId: string, rev: number, context?: ILogContext, options?: ISnapshotLoadOptions): Promise<Workbook>;
|
|
62
62
|
private _getPrioritizedSheetBlocks;
|
|
63
|
+
private _getCompressedChangesetMutations;
|
|
63
64
|
loadBase(unitId: string, rev: number, context?: ILogContext, options?: ISnapshotLoadOptions): Promise<BaseDataModel>;
|
|
64
65
|
loadDoc(unitID: string, rev: number, context?: ILogContext, options?: ISnapshotLoadOptions): Promise<DocumentDataModel>;
|
|
65
66
|
loadSlide(unitID: string, rev?: number, context?: ILogContext, options?: ISnapshotLoadOptions): Promise<SlideModel>;
|