Commit 4f34e33 1 parent 5f7c625 commit 4f34e33 Copy full SHA for 4f34e33
File tree 6 files changed +18
-0
lines changed
communication-react/review/beta
localization/locales/en-US
react-composites/src/composites
localization/locales/en-US
6 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -993,6 +993,7 @@ export interface CallCompositeStrings {
993
993
realTimeTextCloseModalButtonAriaLabel: string;
994
994
realTimeTextConfirmButtonLabel: string;
995
995
realTimeTextInputBoxDefaultText?: string;
996
+ realTimeTextInputErrorMessage?: string;
996
997
realTimeTextLabel?: string;
997
998
realTimeTextModalAriaLabel: string;
998
999
realTimeTextModalText: string;
@@ -1929,6 +1930,7 @@ export interface CaptionsBannerStrings {
1929
1930
realTimeTextBannerLinkLabel?: string;
1930
1931
realTimeTextBannerTitle?: string;
1931
1932
realTimeTextInputBoxDefaultText?: string;
1933
+ realTimeTextInputErrorMessage?: string;
1932
1934
}
1933
1935
1934
1936
// @public (undocumented)
Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ export interface CaptionsBannerStrings {
105
105
*/
106
106
realTimeTextInputBoxDefaultText ?: string ;
107
107
/* @conditional -compile-remove(rtt) */
108
+ /**
109
+ * Error message for RTT input text box when the size exceeds the limit 2000
110
+ */
111
+ realTimeTextInputErrorMessage ?: string ;
112
+ /* @conditional -compile-remove(rtt) */
108
113
/**
109
114
* Real time text disclosure banner title
110
115
*/
@@ -360,6 +365,8 @@ export const CaptionsBanner = (props: CaptionsBannerProps): JSX.Element => {
360
365
setTextFieldValue ( newValue || '' ) ;
361
366
onSendRealTimeText ( newValue || '' , false ) ;
362
367
} }
368
+ maxLength = { 2000 }
369
+ errorMessage = { textFieldValue . length >= 2000 ? strings . realTimeTextInputErrorMessage : undefined }
363
370
/>
364
371
)
365
372
}
Original file line number Diff line number Diff line change 82
82
"captionsBanner" : {
83
83
"captionsBannerSpinnerText" : " Starting captions..." ,
84
84
"realTimeTextInputBoxDefaultText" : " Type message in real time" ,
85
+ "realTimeTextInputErrorMessage" : " Message can not exceed 2000 characters" ,
85
86
"realTimeTextBannerTitle" : " RTT" ,
86
87
"realTimeTextBannerContent" : " RTT (real-time text) is enabled for all participants for the entire duration of the meeting." ,
87
88
"realTimeTextBannerLinkLabel" : " Learn more"
Original file line number Diff line number Diff line change @@ -565,6 +565,11 @@ export interface CallCompositeStrings {
565
565
*/
566
566
realTimeTextInputBoxDefaultText ?: string ;
567
567
/* @conditional -compile-remove(rtt) */
568
+ /**
569
+ * Error message for RTT input text box when the size exceeds the limit 2000
570
+ */
571
+ realTimeTextInputErrorMessage ?: string ;
572
+ /* @conditional -compile-remove(rtt) */
568
573
/**
569
574
* Text to show in the real time text disclosure banner
570
575
*/
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ export const CallingCaptionsBanner = (props: {
62
62
/* @conditional -compile-remove(rtt) */
63
63
realTimeTextInputBoxDefaultText : strings . realTimeTextInputBoxDefaultText ,
64
64
/* @conditional -compile-remove(rtt) */
65
+ realTimeTextInputErrorMessage : strings . realTimeTextInputErrorMessage ,
66
+ /* @conditional -compile-remove(rtt) */
65
67
realTimeTextBannerContent : strings . realTimeTextBannerContent ,
66
68
/* @conditional -compile-remove(rtt) */
67
69
realTimeTextBannerTitle : strings . realTimeTextBannerTitle ,
Original file line number Diff line number Diff line change 219
219
},
220
220
"captionsBannerSpinnerText" : " Starting captions..." ,
221
221
"realTimeTextInputBoxDefaultText" : " Type message in real-time" ,
222
+ "realTimeTextInputErrorMessage" : " Message can not exceed 2000 characters" ,
222
223
"realTimeTextBannerTitle" : " RTT" ,
223
224
"realTimeTextBannerContent" : " RTT (real-time text) is enabled for all participants for the entire duration of the meeting." ,
224
225
"realTimeTextBannerLinkLabel" : " Learn more" ,
You can’t perform that action at this time.
0 commit comments