valtech-components 4.0.972 → 4.0.973

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.
@@ -27,19 +27,31 @@ export declare class RichEditorComponent implements AfterViewInit, OnChanges, On
27
27
  articleChange: EventEmitter<ArticleMetadata>;
28
28
  editorHost: ElementRef<HTMLElement>;
29
29
  private i18n;
30
+ private injector;
30
31
  private editor?;
31
32
  /** Se recalcula en cada `onUpdate`/`onSelectionUpdate` para reflejar el
32
33
  * mark/nodo activo bajo el cursor (ej. el botón "B" resaltado si el
33
34
  * cursor está dentro de texto en negrita). */
34
35
  private readonly _toolbarTick;
35
36
  readonly toolbarButtons: import("@angular/core").WritableSignal<RichEditorToolbarButton[]>;
37
+ readonly uploadingImage: import("@angular/core").WritableSignal<boolean>;
36
38
  constructor();
37
- private t;
39
+ t(key: string): string;
38
40
  ngAfterViewInit(): void;
39
41
  ngOnChanges(changes: SimpleChanges): void;
40
42
  private emitArticle;
41
43
  private refreshToolbar;
42
44
  runCommand(token: string): void;
45
+ /**
46
+ * Sube la imagen elegida vía `StorageService` (Regla #12 — nunca URL pegada
47
+ * a mano, siempre vía Storage) y la inserta en el punto del cursor.
48
+ * `StorageService` se resuelve perezosamente (vía `Injector`, no como
49
+ * campo de la clase): si la app consumer no configuró
50
+ * `provideValtechFirebase`, el editor sigue funcionando normal para todo
51
+ * lo demás — solo el botón de imagen queda sin efecto, con log de error en
52
+ * vez de romper el resto del componente.
53
+ */
54
+ onImageSelected(event: Event): Promise<void>;
43
55
  ngOnDestroy(): void;
44
56
  static ɵfac: i0.ɵɵFactoryDeclaration<RichEditorComponent, never>;
45
57
  static ɵcmp: i0.ɵɵComponentDeclaration<RichEditorComponent, "val-rich-editor", never, { "props": { "alias": "props"; "required": false; }; }, { "articleChange": "articleChange"; }, never, never, true, never>;
@@ -12,6 +12,7 @@ export declare const RICH_EDITOR_I18N: {
12
12
  readonly orderedList: "Lista numerada";
13
13
  readonly quote: "Cita";
14
14
  readonly separator: "Separador";
15
+ readonly image: "Insertar imagen";
15
16
  };
16
17
  readonly en: {
17
18
  readonly bold: "Bold";
@@ -22,5 +23,6 @@ export declare const RICH_EDITOR_I18N: {
22
23
  readonly orderedList: "Numbered list";
23
24
  readonly quote: "Quote";
24
25
  readonly separator: "Separator";
26
+ readonly image: "Insert image";
25
27
  };
26
28
  };
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.972";
5
+ export declare const VERSION = "4.0.973";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.972",
3
+ "version": "4.0.973",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"