@hailin-zheng/editor-core 1.1.6 → 1.1.7

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.
@@ -1,6 +1,11 @@
1
1
  import { SelectionState } from "./document-selection";
2
2
  import { BranchElement, Element, SerializeProps, ViewOptions } from "./element-define";
3
3
  export declare class ElementSerialize {
4
+ /**
5
+ * 将当前文档对象构建并输出到标准的JSON对象
6
+ * @param element
7
+ * @param viewOptions
8
+ */
4
9
  static serialize(element: Element, viewOptions: ViewOptions): SerializeProps | null;
5
10
  static serializeString(element: Element, options?: {
6
11
  all: boolean;
@@ -303,6 +303,18 @@ export declare class CanvasTextEditor extends AbsolutePanel {
303
303
  * @private
304
304
  */
305
305
  private drawCaret;
306
+ private generatorDoc;
307
+ /**
308
+ * 设置关键字
309
+ * 匹配用户输入的关键字,回调到应用业务中处理
310
+ */
311
+ setKeywords(keys: Array<string>, cb: (item: string) => void): void;
312
+ /**
313
+ * 注册编辑器格式读取器
314
+ */
315
+ registerReaderFactory(handler: IReaderManager): void;
316
+ }
317
+ export interface IReaderManager {
306
318
  }
307
319
  export declare type EditorCurrentPos = {
308
320
  pos: Position;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "1.1.6",
7
+ "version": "1.1.7",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",