@ecodev/natural-editor 64.0.0 → 64.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.
package/index.d.ts CHANGED
@@ -28,6 +28,9 @@ declare class NaturalCustomCssDirective implements OnDestroy {
28
28
  static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalCustomCssDirective, "[naturalCustomCss]", never, { "naturalCustomCss": { "alias": "naturalCustomCss"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
29
29
  }
30
30
 
31
+ /**
32
+ * Callback to upload the image to the server, and return the URL used to view the uploaded image.
33
+ */
31
34
  type ImageUploader = (file: File) => Observable<string>;
32
35
 
33
36
  /**
@@ -75,11 +78,12 @@ declare class NaturalEditorComponent implements OnInit, OnDestroy, ControlValueA
75
78
  private readonly document;
76
79
  private readonly dialog;
77
80
  private readonly imagePlugin;
81
+ protected readonly commonImageMimeTypes = "image/avif,image/bmp,image/x-ms-bmp,image/gif,image/heic,image/heif,image/jpeg,image/pjpeg,image/png,image/svg+xml,image/svg,image/webp";
78
82
  private view;
79
83
  private readonly editor;
80
84
  readonly contentChange: i0.OutputEmitterRef<string>;
81
85
  /**
82
- * Callback to upload an image.
86
+ * Callback to upload an image and return the URL to view the image.
83
87
  *
84
88
  * If given it will enable advanced schema, including image and tables.
85
89
  * It must be given on initialization and cannot be changed later on.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural-editor",
3
- "version": "64.0.0",
3
+ "version": "64.0.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
@@ -34,7 +34,7 @@
34
34
  "@angular/common": "^20.3.0",
35
35
  "@angular/core": "^20.3.0",
36
36
  "@angular/forms": "^20.3.0",
37
- "@angular/material": "^20.3.0",
37
+ "@angular/material": "^20.2.0",
38
38
  "@ecodev/natural": ">50.0"
39
39
  },
40
40
  "module": "fesm2022/ecodev-natural-editor.mjs",
@@ -28,6 +28,10 @@
28
28
  height: 50px;
29
29
  }
30
30
 
31
+ button.natural-file-over {
32
+ background: mat.m2-get-color-from-palette($primary);
33
+ }
34
+
31
35
  .menu-container {
32
36
  background-color: $drawer-container-background-color;
33
37
  }