@ecodev/natural-editor 61.0.0 → 61.0.2

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,4 +1,3 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
1
  import { FormControl, FormGroup } from '@angular/forms';
3
2
  import * as i0 from "@angular/core";
4
3
  export type ClassDialogData = {
@@ -18,7 +17,7 @@ export declare class ClassDialogComponent {
18
17
  readonly form: FormGroup<{
19
18
  class: FormControl<string>;
20
19
  }>;
21
- constructor(data: ClassDialogData, dialogRef: MatDialogRef<ClassDialogComponent, ClassDialogData>);
20
+ constructor();
22
21
  maybeConfirm(): void;
23
22
  private confirm;
24
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ClassDialogComponent, never>;
@@ -1,4 +1,3 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
1
  import { FormControl, FormGroup } from '@angular/forms';
3
2
  import * as i0 from "@angular/core";
4
3
  export type ColorDialogData = {
@@ -19,7 +18,7 @@ export declare class ColorDialogComponent {
19
18
  readonly form: FormGroup<{
20
19
  color: FormControl<string>;
21
20
  }>;
22
- constructor(data: ColorDialogData, dialogRef: MatDialogRef<ColorDialogComponent, ColorDialogData>);
21
+ constructor();
23
22
  maybeConfirm(): void;
24
23
  private confirm;
25
24
  selectColor(color: string): void;
@@ -22,7 +22,6 @@ export declare class NaturalCustomCssDirective implements OnDestroy {
22
22
  private style;
23
23
  private readonly id;
24
24
  set naturalCustomCss(value: string | undefined);
25
- constructor(document: Document);
26
25
  ngOnDestroy(): void;
27
26
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalCustomCssDirective, never>;
28
27
  static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalCustomCssDirective, "[naturalCustomCss]", never, { "naturalCustomCss": { "alias": "naturalCustomCss"; "required": true; }; }, {}, never, never, true, never>;
@@ -1,7 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { MatDialog } from '@angular/material/dialog';
4
- import { ImagePlugin, ImageUploader } from '../utils/image';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { ImageUploader } from '../utils/image';
5
4
  import { Key, MenuItems } from '../utils/menu';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
@@ -14,7 +13,7 @@ import * as i0 from "@angular/core";
14
13
  * ```
15
14
  */
16
15
  export declare class NaturalEditorComponent implements OnInit, OnDestroy, ControlValueAccessor {
17
- readonly ngControl: NgControl;
16
+ private readonly ngControl;
18
17
  private readonly document;
19
18
  private readonly dialog;
20
19
  private readonly imagePlugin;
@@ -44,7 +43,7 @@ export declare class NaturalEditorComponent implements OnInit, OnDestroy, Contro
44
43
  */
45
44
  readonly save: EventEmitter<void>;
46
45
  disabled: boolean;
47
- constructor(ngControl: NgControl, document: Document, dialog: MatDialog, imagePlugin: ImagePlugin);
46
+ constructor();
48
47
  ngOnInit(): void;
49
48
  writeValue(val: string | undefined): void;
50
49
  private createState;
@@ -59,6 +58,6 @@ export declare class NaturalEditorComponent implements OnInit, OnDestroy, Contro
59
58
  ngOnDestroy(): void;
60
59
  run(event: Event, key: Key): void;
61
60
  upload(file: File): void;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<NaturalEditorComponent, [{ optional: true; self: true; }, null, null, null]>;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<NaturalEditorComponent, never>;
63
62
  static ɵcmp: i0.ɵɵComponentDeclaration<NaturalEditorComponent, "natural-editor", never, { "imageUploader": { "alias": "imageUploader"; "required": false; }; }, { "contentChange": "contentChange"; "save": "save"; }, never, never, true, never>;
64
63
  }
@@ -1,4 +1,3 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
1
  import { FormControl, FormGroup } from '@angular/forms';
3
2
  import * as i0 from "@angular/core";
4
3
  export type IdDialogData = {
@@ -18,7 +17,7 @@ export declare class IdDialogComponent {
18
17
  readonly form: FormGroup<{
19
18
  id: FormControl<string>;
20
19
  }>;
21
- constructor(data: IdDialogData, dialogRef: MatDialogRef<IdDialogComponent, IdDialogData>);
20
+ constructor();
22
21
  maybeConfirm(): void;
23
22
  private confirm;
24
23
  static ɵfac: i0.ɵɵFactoryDeclaration<IdDialogComponent, never>;
@@ -1,4 +1,3 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
1
  import { FormControl, FormGroup } from '@angular/forms';
3
2
  import * as i0 from "@angular/core";
4
3
  export type LinkDialogData = {
@@ -13,7 +12,7 @@ export declare class LinkDialogComponent {
13
12
  href: FormControl<string>;
14
13
  title: FormControl<string>;
15
14
  }>;
16
- constructor(data: LinkDialogData, dialogRef: MatDialogRef<LinkDialogComponent, LinkDialogData>);
15
+ constructor();
17
16
  maybeConfirm(): void;
18
17
  private confirm;
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkDialogComponent, never>;
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  export type ImageUploader = (file: File) => Observable<string>;
7
7
  export declare class ImagePlugin {
8
8
  readonly plugin: Plugin<DecorationSet>;
9
- constructor(document: Document);
9
+ constructor();
10
10
  private findPlaceholder;
11
11
  startImageUpload(view: EditorView, file: File, uploader: ImageUploader, schema: Schema): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ImagePlugin, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural-editor",
3
- "version": "61.0.0",
3
+ "version": "61.0.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
package/public-api.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { NaturalCustomCssDirective } from './lib/custom-css/custom-css.directive';
2
2
  export { NaturalEditorComponent } from './lib/editor/editor.component';
3
- export { ImageUploader } from './lib/utils/image';
3
+ export type { ImageUploader } from './lib/utils/image';