@weni/unnnic-system 3.25.1 → 3.25.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/dist/{es-C8VS1ffe.mjs → es-BDAz3NtB.mjs} +1 -1
- package/dist/{index-C6Qo0kKX.mjs → index-CUqc1Vz2.mjs} +159 -120
- package/dist/index.d.ts +144 -4
- package/dist/{pt-br-DeXLNEjj.mjs → pt-br-BJz_J4p6.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +1 -1
- package/dist/unnnic.umd.js +10 -10
- package/package.json +2 -2
- package/src/components/AudioRecorder/AudioHandler.vue +28 -2
- package/src/components/AudioRecorder/AudioRecorder.vue +21 -7
package/dist/index.d.ts
CHANGED
|
@@ -594,9 +594,11 @@ type: {
|
|
|
594
594
|
new (): HTMLAudioElement;
|
|
595
595
|
prototype: HTMLAudioElement;
|
|
596
596
|
};
|
|
597
|
+
required: true;
|
|
597
598
|
};
|
|
598
599
|
src: {
|
|
599
600
|
type: StringConstructor;
|
|
601
|
+
default: undefined;
|
|
600
602
|
};
|
|
601
603
|
canDiscard: {
|
|
602
604
|
type: BooleanConstructor;
|
|
@@ -639,6 +641,18 @@ fluidBar: {
|
|
|
639
641
|
type: BooleanConstructor;
|
|
640
642
|
default: boolean;
|
|
641
643
|
};
|
|
644
|
+
saveText: {
|
|
645
|
+
type: StringConstructor;
|
|
646
|
+
default: string;
|
|
647
|
+
};
|
|
648
|
+
discardText: {
|
|
649
|
+
type: StringConstructor;
|
|
650
|
+
default: string;
|
|
651
|
+
};
|
|
652
|
+
hideRecordingIndicator: {
|
|
653
|
+
type: BooleanConstructor;
|
|
654
|
+
default: boolean;
|
|
655
|
+
};
|
|
642
656
|
}>, {}, {
|
|
643
657
|
recorder: MediaRecorder;
|
|
644
658
|
audio: HTMLAudioElement;
|
|
@@ -681,9 +695,11 @@ type: {
|
|
|
681
695
|
new (): HTMLAudioElement;
|
|
682
696
|
prototype: HTMLAudioElement;
|
|
683
697
|
};
|
|
698
|
+
required: true;
|
|
684
699
|
};
|
|
685
700
|
src: {
|
|
686
701
|
type: StringConstructor;
|
|
702
|
+
default: undefined;
|
|
687
703
|
};
|
|
688
704
|
canDiscard: {
|
|
689
705
|
type: BooleanConstructor;
|
|
@@ -726,6 +742,18 @@ fluidBar: {
|
|
|
726
742
|
type: BooleanConstructor;
|
|
727
743
|
default: boolean;
|
|
728
744
|
};
|
|
745
|
+
saveText: {
|
|
746
|
+
type: StringConstructor;
|
|
747
|
+
default: string;
|
|
748
|
+
};
|
|
749
|
+
discardText: {
|
|
750
|
+
type: StringConstructor;
|
|
751
|
+
default: string;
|
|
752
|
+
};
|
|
753
|
+
hideRecordingIndicator: {
|
|
754
|
+
type: BooleanConstructor;
|
|
755
|
+
default: boolean;
|
|
756
|
+
};
|
|
729
757
|
}>> & Readonly<{
|
|
730
758
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
731
759
|
"onFailed-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -733,6 +761,9 @@ default: boolean;
|
|
|
733
761
|
onStatus?: ((...args: any[]) => any) | undefined;
|
|
734
762
|
}>, {
|
|
735
763
|
locale: string;
|
|
764
|
+
src: string;
|
|
765
|
+
saveText: string;
|
|
766
|
+
hideRecordingIndicator: boolean;
|
|
736
767
|
enableGenerateTranscription: boolean;
|
|
737
768
|
reqStatus: string;
|
|
738
769
|
showTranscriptionAction: boolean;
|
|
@@ -742,6 +773,7 @@ transcriptionText: string;
|
|
|
742
773
|
fluidBar: boolean;
|
|
743
774
|
canDiscard: boolean;
|
|
744
775
|
playbackAudioBars: boolean;
|
|
776
|
+
discardText: string;
|
|
745
777
|
}, {}, {
|
|
746
778
|
AudioHandler: DefineComponent<ExtractPropTypes< {
|
|
747
779
|
isRecording: {
|
|
@@ -752,9 +784,37 @@ time: {
|
|
|
752
784
|
type: StringConstructor;
|
|
753
785
|
default: string;
|
|
754
786
|
};
|
|
755
|
-
|
|
787
|
+
saveText: {
|
|
788
|
+
type: StringConstructor;
|
|
789
|
+
default: string;
|
|
790
|
+
};
|
|
791
|
+
hideRecordingIndicator: {
|
|
792
|
+
type: BooleanConstructor;
|
|
793
|
+
default: boolean;
|
|
794
|
+
};
|
|
795
|
+
}>, {}, {
|
|
796
|
+
defaultTranslations: {
|
|
797
|
+
save: {
|
|
798
|
+
'pt-br': string;
|
|
799
|
+
en: string;
|
|
800
|
+
es: string;
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
}, {}, {
|
|
756
804
|
save(): void;
|
|
757
|
-
},
|
|
805
|
+
}, {
|
|
806
|
+
props: {
|
|
807
|
+
locale: {
|
|
808
|
+
type: StringConstructor;
|
|
809
|
+
};
|
|
810
|
+
translations: {
|
|
811
|
+
type: ObjectConstructor;
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
methods: {
|
|
815
|
+
i18n(...args: any[]): any;
|
|
816
|
+
};
|
|
817
|
+
}, ComponentOptionsMixin, "save"[], "save", PublicProps, Readonly<ExtractPropTypes< {
|
|
758
818
|
isRecording: {
|
|
759
819
|
type: BooleanConstructor;
|
|
760
820
|
default: boolean;
|
|
@@ -763,11 +823,21 @@ time: {
|
|
|
763
823
|
type: StringConstructor;
|
|
764
824
|
default: string;
|
|
765
825
|
};
|
|
826
|
+
saveText: {
|
|
827
|
+
type: StringConstructor;
|
|
828
|
+
default: string;
|
|
829
|
+
};
|
|
830
|
+
hideRecordingIndicator: {
|
|
831
|
+
type: BooleanConstructor;
|
|
832
|
+
default: boolean;
|
|
833
|
+
};
|
|
766
834
|
}>> & Readonly<{
|
|
767
835
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
768
836
|
}>, {
|
|
769
837
|
time: string;
|
|
770
838
|
isRecording: boolean;
|
|
839
|
+
saveText: string;
|
|
840
|
+
hideRecordingIndicator: boolean;
|
|
771
841
|
}, {}, {
|
|
772
842
|
UnnnicIcon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
773
843
|
click: (event: Event) => any;
|
|
@@ -1122,9 +1192,11 @@ type: {
|
|
|
1122
1192
|
new (): HTMLAudioElement;
|
|
1123
1193
|
prototype: HTMLAudioElement;
|
|
1124
1194
|
};
|
|
1195
|
+
required: true;
|
|
1125
1196
|
};
|
|
1126
1197
|
src: {
|
|
1127
1198
|
type: StringConstructor;
|
|
1199
|
+
default: undefined;
|
|
1128
1200
|
};
|
|
1129
1201
|
canDiscard: {
|
|
1130
1202
|
type: BooleanConstructor;
|
|
@@ -1167,6 +1239,18 @@ fluidBar: {
|
|
|
1167
1239
|
type: BooleanConstructor;
|
|
1168
1240
|
default: boolean;
|
|
1169
1241
|
};
|
|
1242
|
+
saveText: {
|
|
1243
|
+
type: StringConstructor;
|
|
1244
|
+
default: string;
|
|
1245
|
+
};
|
|
1246
|
+
discardText: {
|
|
1247
|
+
type: StringConstructor;
|
|
1248
|
+
default: string;
|
|
1249
|
+
};
|
|
1250
|
+
hideRecordingIndicator: {
|
|
1251
|
+
type: BooleanConstructor;
|
|
1252
|
+
default: boolean;
|
|
1253
|
+
};
|
|
1170
1254
|
}>, {}, {
|
|
1171
1255
|
recorder: MediaRecorder;
|
|
1172
1256
|
audio: HTMLAudioElement;
|
|
@@ -1209,9 +1293,11 @@ type: {
|
|
|
1209
1293
|
new (): HTMLAudioElement;
|
|
1210
1294
|
prototype: HTMLAudioElement;
|
|
1211
1295
|
};
|
|
1296
|
+
required: true;
|
|
1212
1297
|
};
|
|
1213
1298
|
src: {
|
|
1214
1299
|
type: StringConstructor;
|
|
1300
|
+
default: undefined;
|
|
1215
1301
|
};
|
|
1216
1302
|
canDiscard: {
|
|
1217
1303
|
type: BooleanConstructor;
|
|
@@ -1254,6 +1340,18 @@ fluidBar: {
|
|
|
1254
1340
|
type: BooleanConstructor;
|
|
1255
1341
|
default: boolean;
|
|
1256
1342
|
};
|
|
1343
|
+
saveText: {
|
|
1344
|
+
type: StringConstructor;
|
|
1345
|
+
default: string;
|
|
1346
|
+
};
|
|
1347
|
+
discardText: {
|
|
1348
|
+
type: StringConstructor;
|
|
1349
|
+
default: string;
|
|
1350
|
+
};
|
|
1351
|
+
hideRecordingIndicator: {
|
|
1352
|
+
type: BooleanConstructor;
|
|
1353
|
+
default: boolean;
|
|
1354
|
+
};
|
|
1257
1355
|
}>> & Readonly<{
|
|
1258
1356
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
1259
1357
|
"onFailed-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1261,6 +1359,9 @@ default: boolean;
|
|
|
1261
1359
|
onStatus?: ((...args: any[]) => any) | undefined;
|
|
1262
1360
|
}>, {
|
|
1263
1361
|
locale: string;
|
|
1362
|
+
src: string;
|
|
1363
|
+
saveText: string;
|
|
1364
|
+
hideRecordingIndicator: boolean;
|
|
1264
1365
|
enableGenerateTranscription: boolean;
|
|
1265
1366
|
reqStatus: string;
|
|
1266
1367
|
showTranscriptionAction: boolean;
|
|
@@ -1270,6 +1371,7 @@ transcriptionText: string;
|
|
|
1270
1371
|
fluidBar: boolean;
|
|
1271
1372
|
canDiscard: boolean;
|
|
1272
1373
|
playbackAudioBars: boolean;
|
|
1374
|
+
discardText: string;
|
|
1273
1375
|
}, {}, {
|
|
1274
1376
|
AudioHandler: DefineComponent<ExtractPropTypes< {
|
|
1275
1377
|
isRecording: {
|
|
@@ -1280,9 +1382,37 @@ time: {
|
|
|
1280
1382
|
type: StringConstructor;
|
|
1281
1383
|
default: string;
|
|
1282
1384
|
};
|
|
1283
|
-
|
|
1385
|
+
saveText: {
|
|
1386
|
+
type: StringConstructor;
|
|
1387
|
+
default: string;
|
|
1388
|
+
};
|
|
1389
|
+
hideRecordingIndicator: {
|
|
1390
|
+
type: BooleanConstructor;
|
|
1391
|
+
default: boolean;
|
|
1392
|
+
};
|
|
1393
|
+
}>, {}, {
|
|
1394
|
+
defaultTranslations: {
|
|
1395
|
+
save: {
|
|
1396
|
+
'pt-br': string;
|
|
1397
|
+
en: string;
|
|
1398
|
+
es: string;
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1401
|
+
}, {}, {
|
|
1284
1402
|
save(): void;
|
|
1285
|
-
},
|
|
1403
|
+
}, {
|
|
1404
|
+
props: {
|
|
1405
|
+
locale: {
|
|
1406
|
+
type: StringConstructor;
|
|
1407
|
+
};
|
|
1408
|
+
translations: {
|
|
1409
|
+
type: ObjectConstructor;
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
methods: {
|
|
1413
|
+
i18n(...args: any[]): any;
|
|
1414
|
+
};
|
|
1415
|
+
}, ComponentOptionsMixin, "save"[], "save", PublicProps, Readonly<ExtractPropTypes< {
|
|
1286
1416
|
isRecording: {
|
|
1287
1417
|
type: BooleanConstructor;
|
|
1288
1418
|
default: boolean;
|
|
@@ -1291,11 +1421,21 @@ time: {
|
|
|
1291
1421
|
type: StringConstructor;
|
|
1292
1422
|
default: string;
|
|
1293
1423
|
};
|
|
1424
|
+
saveText: {
|
|
1425
|
+
type: StringConstructor;
|
|
1426
|
+
default: string;
|
|
1427
|
+
};
|
|
1428
|
+
hideRecordingIndicator: {
|
|
1429
|
+
type: BooleanConstructor;
|
|
1430
|
+
default: boolean;
|
|
1431
|
+
};
|
|
1294
1432
|
}>> & Readonly<{
|
|
1295
1433
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
1296
1434
|
}>, {
|
|
1297
1435
|
time: string;
|
|
1298
1436
|
isRecording: boolean;
|
|
1437
|
+
saveText: string;
|
|
1438
|
+
hideRecordingIndicator: boolean;
|
|
1299
1439
|
}, {}, {
|
|
1300
1440
|
UnnnicIcon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1301
1441
|
click: (event: Event) => any;
|