@univerjs/core
Advanced tools
Comparing version 0.1.0-beta.3 to 0.1.0-beta.4
@@ -19,3 +19,3 @@ /** | ||
import type { IPaddingData } from '../../types/interfaces/i-style-data'; | ||
import type { TextXAction } from './mutation-types'; | ||
import { type TextXAction } from './action-types'; | ||
export declare const DEFAULT_DOC: { | ||
@@ -66,3 +66,3 @@ id: string; | ||
getUnitId(): string; | ||
apply(mutations: TextXAction[]): TextXAction[]; | ||
apply(actions: TextXAction[]): TextXAction[]; | ||
sliceBody(startOffset: number, endOffset: number): Nullable<IDocumentBody>; | ||
@@ -69,0 +69,0 @@ private _updateApply; |
@@ -18,3 +18,3 @@ /** | ||
import type { IDocumentBody } from '../../../types/interfaces/i-document-data'; | ||
import type { TextXAction } from '../mutation-types'; | ||
import { type TextXAction } from '../action-types'; | ||
export declare class TextX { | ||
@@ -28,2 +28,3 @@ static compose(thisActions: TextXAction[], otherActions: TextXAction[]): TextXAction[]; | ||
push(...args: TextXAction[]): this; | ||
trimEndUselessRetainAction(): this; | ||
} |
@@ -24,3 +24,5 @@ /** | ||
export * from './docs/data-model'; | ||
export { type TextXAction, type IDeleteAction, type IInsertAction, type IRetainAction, } from './docs/data-model/mutation-types'; | ||
export { TextXActionType, type TextXAction, type IDeleteAction, type IInsertAction, type IRetainAction, } from './docs/data-model/action-types'; | ||
export { ActionIterator } from './docs/data-model/text-x/action-iterator'; | ||
export { getBodySlice, composeBody } from './docs/data-model/text-x/utils'; | ||
export { TextX } from './docs/data-model/text-x/text-x'; | ||
@@ -27,0 +29,0 @@ export * from './observer'; |
{ | ||
"name": "@univerjs/core", | ||
"version": "0.1.0-beta.3", | ||
"version": "0.1.0-beta.4", | ||
"private": false, | ||
@@ -58,3 +58,3 @@ "description": "Core library for Univer.", | ||
"vitest": "^1.2.1", | ||
"@univerjs/shared": "0.1.0-beta.3" | ||
"@univerjs/shared": "0.1.0-beta.4" | ||
}, | ||
@@ -61,0 +61,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
815633
155
15673