@hufe921/canvas-editor 0.9.44 → 0.9.45

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.
@@ -84,5 +84,6 @@ export declare class Command {
84
84
  getRangeContext: CommandAdapt['getRangeContext'];
85
85
  getPaperMargin: CommandAdapt['getPaperMargin'];
86
86
  getSearchNavigateInfo: CommandAdapt['getSearchNavigateInfo'];
87
+ getLocale: CommandAdapt['getLocale'];
87
88
  constructor(adapt: CommandAdapt);
88
89
  }
@@ -108,6 +108,7 @@ export declare class CommandAdapt {
108
108
  setValue(payload: Partial<IEditorData>): void;
109
109
  removeControl(): void;
110
110
  setLocale(payload: string): void;
111
+ getLocale(): string;
111
112
  getCatalog(): Promise<ICatalog | null>;
112
113
  locationCatalog(titleId: string): void;
113
114
  wordTool(): void;
@@ -4,6 +4,7 @@ export declare class I18n {
4
4
  private langMap;
5
5
  private currentLocale;
6
6
  registerLangMap(locale: string, lang: DeepPartial<ILang>): void;
7
+ getLocale(): string;
7
8
  setLocale(locale: string): void;
8
9
  getLang(): ILang;
9
10
  t(path: string): string;
@@ -3,3 +3,6 @@ export declare const LETTER_REG: RegExp;
3
3
  export declare const NUMBER_LIKE_REG: RegExp;
4
4
  export declare const CHINESE_REG: RegExp;
5
5
  export declare const WORD_LIKE_REG: RegExp;
6
+ export declare const SURROGATE_PAIR_REG: RegExp;
7
+ export declare const EMOJI_REG: RegExp;
8
+ export declare const UNICODE_SYMBOL_REG: RegExp;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hufe921/canvas-editor",
3
3
  "author": "Hufe",
4
4
  "license": "MIT",
5
- "version": "0.9.44",
5
+ "version": "0.9.45",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",