valtech-components 4.0.243 → 4.0.245

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.
@@ -33,12 +33,19 @@ export declare class ChatComposerComponent implements OnDestroy {
33
33
  readonly maxLength: import("@angular/core").InputSignal<number>;
34
34
  readonly replyingTo: import("@angular/core").InputSignal<MessageReplyTo>;
35
35
  readonly showAttach: import("@angular/core").InputSignal<boolean>;
36
+ /** Botón de dictado voz→texto (SpeechRecognition). Nativo en Safari/iOS y Chrome. */
36
37
  readonly showMic: import("@angular/core").InputSignal<boolean>;
38
+ /** Botón de mensaje de voz (grabar clip). Opt-in: la reproducción cross-device
39
+ * requiere transcode server-side (pendiente), por eso default false. */
40
+ readonly showVoiceMessage: import("@angular/core").InputSignal<boolean>;
37
41
  readonly send: import("@angular/core").OutputEmitterRef<ChatComposerSendEvent>;
38
42
  readonly typing: import("@angular/core").OutputEmitterRef<void>;
39
43
  readonly voice: import("@angular/core").OutputEmitterRef<void>;
40
44
  readonly cancelReply: import("@angular/core").OutputEmitterRef<void>;
41
45
  private readonly editableRef;
46
+ protected readonly dictating: import("@angular/core").WritableSignal<boolean>;
47
+ protected readonly dictationSupported: boolean;
48
+ private recognition?;
42
49
  protected readonly body: import("@angular/core").WritableSignal<string>;
43
50
  protected readonly pending: import("@angular/core").WritableSignal<PendingAttachment[]>;
44
51
  private pendingId;
@@ -77,9 +84,14 @@ export declare class ChatComposerComponent implements OnDestroy {
77
84
  protected onAudioLoaded(where: string, file: File, event: Event): void;
78
85
  /** ¿El navegador declara que puede reproducir este tipo? '' / 'maybe' / 'probably'. */
79
86
  private canPlay;
87
+ protected toggleDictation(): void;
88
+ private startDictation;
89
+ private stopDictation;
90
+ /** Inserta el texto dictado al final del editable y sincroniza el body. */
91
+ private insertDictated;
80
92
  ngOnDestroy(): void;
81
93
  t(key: string): string;
82
94
  static ɵfac: i0.ɵɵFactoryDeclaration<ChatComposerComponent, never>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatComposerComponent, "val-chat-composer", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "replyingTo": { "alias": "replyingTo"; "required": false; "isSignal": true; }; "showAttach": { "alias": "showAttach"; "required": false; "isSignal": true; }; "showMic": { "alias": "showMic"; "required": false; "isSignal": true; }; }, { "send": "send"; "typing": "typing"; "voice": "voice"; "cancelReply": "cancelReply"; }, never, never, true, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatComposerComponent, "val-chat-composer", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "replyingTo": { "alias": "replyingTo"; "required": false; "isSignal": true; }; "showAttach": { "alias": "showAttach"; "required": false; "isSignal": true; }; "showMic": { "alias": "showMic"; "required": false; "isSignal": true; }; "showVoiceMessage": { "alias": "showVoiceMessage"; "required": false; "isSignal": true; }; }, { "send": "send"; "typing": "typing"; "voice": "voice"; "cancelReply": "cancelReply"; }, never, never, true, never>;
84
96
  }
85
97
  export {};
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.243";
5
+ export declare const VERSION = "4.0.245";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.243",
3
+ "version": "4.0.245",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
@@ -43,6 +43,7 @@
43
43
  "@zxing/browser": "^0.2.0",
44
44
  "@zxing/library": "^0.22.0",
45
45
  "compressorjs": "^1.3.0",
46
+ "fix-webm-duration": "^1.0.6",
46
47
  "ng-otp-input": "^1.9.3",
47
48
  "ngx-image-cropper": "^9.0.0",
48
49
  "prismjs": "^1.30.0",