@talrace/ngx-noder 0.0.11 → 0.0.12

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.
@@ -113,7 +113,7 @@ export declare class Editor {
113
113
  applyOperation(operation: Operation): void;
114
114
  saveRemoveToHistory(range: Range): void;
115
115
  saveInsertTextToHistory(paragraph: number, indexInParagraph: number, text: string): void;
116
- saveInsertParagraphToHistory(model: InsertParagraphModel): void;
116
+ saveInsertParagraphToHistory(content: string, model: InsertParagraphModel): void;
117
117
  saveInsertStyledTextToHistory(paragraph: number, indexInParagraph: number, text: string, style: TextStyleModel): void;
118
118
  saveInsertElementToHistory(model: InsertElementModel): void;
119
119
  saveInsertBreakToHistory(model: InsertBreakModel): void;
@@ -30,9 +30,9 @@ export declare class OperationHistory {
30
30
  private step;
31
31
  constructor(editorService: EditorService, regulatorService: RegulatorService);
32
32
  pushInsertText(insertIndex: number, text: string): void;
33
- pushInsertParagraph(model: InsertParagraphModel, paragraphs: ParagraphModel[]): void;
33
+ pushInsertParagraph(content: string, model: InsertParagraphModel, paragraphs: ParagraphModel[]): void;
34
34
  pushInsertElement(model: InsertElementModel): void;
35
- pushInsertBreak(model: InsertBreakModel, endIndex: number): void;
35
+ pushInsertBreak(model: InsertBreakModel, count: number): void;
36
36
  pushInsertTab(model: InsertTabModel): void;
37
37
  pushInsertImage(model: InsertImageModel): void;
38
38
  pushInsertLink(model: InsertLinkModel): void;
@@ -1,5 +1,5 @@
1
1
  export declare class ContentOperationsHelper {
2
- static removeContent(content: string, startIndex: number, endIndex: number): string;
2
+ static removeContent(content: string, startIndex: number, count: number): string;
3
3
  static insertContent(content: string, text: string, index: number): string;
4
4
  static replaceContent(content: string, startIndex: number, endIndex: number, text: string): string;
5
5
  }
@@ -36,7 +36,7 @@ export declare class OperationsHelper {
36
36
  static insertStyledText(document: ContentsInterface, text: string, index: number, style: TextStyleModel): void;
37
37
  static deleteRestore(document: ContentsInterface, model: RestoreModel): void;
38
38
  static restore(document: ContentsInterface, model: RestoreModel): void;
39
- static delete(document: ContentsInterface, startIndex: number, endIndex: number): void;
39
+ static delete(document: ContentsInterface, startIndex: number, count: number): void;
40
40
  static replaceText(document: ContentsInterface, startIndex: number, endIndex: number, text: string): void;
41
41
  static replace(document: ContentsInterface, model: ReplaceModel, contentWidth: number): void;
42
42
  static applyTextStyle(document: ContentsInterface, startIndex: number, endIndex: number, style: TextStyleModel): void;
@@ -25,7 +25,7 @@ export declare class SaveCommandsHelper {
25
25
  static getApplyImageStyleCommand(height: number, width: number, insertIndex: number, targets: TargetModel[]): CommandModel;
26
26
  static getApplyParagraphStyleCommand(startIndex: number, endIndex: number, paragraphStyle: ParagraphStyleModel, targets: TargetModel[]): CommandModel;
27
27
  static getApplyTextStyleCommand(startIndex: number, endIndex: number, textStyle: TextStyleModel, targets: TargetModel[]): CommandModel;
28
- static getDeleteCommand(startIndex: number, endIndex: number, targets: TargetModel[]): CommandModel;
28
+ static getDeleteCommand(startIndex: number, count: number, targets: TargetModel[]): CommandModel;
29
29
  static getInsertTextCommand(text: string, insertIndex: number, targets: TargetModel[]): CommandModel;
30
30
  static getInsertParagraphCommand(insertParagraph: InsertParagraphModel, targets: TargetModel[]): CommandModel;
31
31
  static getInsertStyledTextCommand(text: string, insertIndex: number, textStyle: TextStyleModel, targets: TargetModel[]): CommandModel;
@@ -1,5 +1,5 @@
1
1
  export declare class DeleteModel {
2
- endIndex: number;
2
+ count: number;
3
3
  startIndex: number;
4
4
  constructor(fields?: Partial<DeleteModel>);
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talrace/ngx-noder",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.3.12",