@ones-editor/editor 2.6.1-beta.1 → 2.6.1-beta.3

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.
@@ -2,7 +2,7 @@ import { BlockElement, OnesEditor } from '../../../types';
2
2
  import { DocBlockTextOp } from '../../../doc';
3
3
  export declare function getTextAfterOffset(editor: OnesEditor, block: BlockElement, offset: number): string;
4
4
  export declare function getTextBeforeOffset(editor: OnesEditor, block: BlockElement, offset: number): string;
5
- export type OffsetCharType = 'box' | 'text' | 'space';
5
+ export type OffsetCharType = 'box' | 'text' | 'space' | 'cjk' | 'cjk_punctuation';
6
6
  export interface OffsetInfo {
7
7
  op: DocBlockTextOp;
8
8
  charType: OffsetCharType;
@@ -2,4 +2,5 @@ export declare function isNumber(str: string): boolean;
2
2
  export declare function isLetter(str: string): boolean;
3
3
  export declare function isSpace(str: string): boolean;
4
4
  export declare function isCJK(str: string): boolean;
5
+ export declare function isCJKPunctuation(char: string): boolean;
5
6
  export declare function trimChar(s: string, char: string): string;