Commit 330a344 1 parent 765d226 commit 330a344 Copy full SHA for 330a344
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 @@ -987,6 +987,7 @@ export interface CallCompositeStrings {
987
987
realTimeTextCloseModalButtonAriaLabel: string;
988
988
realTimeTextConfirmButtonLabel: string;
989
989
realTimeTextInputBoxDefaultText?: string;
990
+ realTimeTextInputErrorMessage?: string;
990
991
realTimeTextLabel?: string;
991
992
realTimeTextModalAriaLabel: string;
992
993
realTimeTextModalText: string;
@@ -1909,6 +1910,7 @@ export interface CaptionsBannerStrings {
1909
1910
realTimeTextBannerLinkLabel?: string;
1910
1911
realTimeTextBannerTitle?: string;
1911
1912
realTimeTextInputBoxDefaultText?: string;
1913
+ realTimeTextInputErrorMessage?: string;
1912
1914
}
1913
1915
1914
1916
// @public (undocumented)
Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ export interface CaptionsBannerStrings {
104
104
*/
105
105
realTimeTextInputBoxDefaultText ?: string ;
106
106
/* @conditional -compile-remove(rtt) */
107
+ /**
108
+ * Error message for RTT input text box when the size exceeds the limit 2000
109
+ */
110
+ realTimeTextInputErrorMessage ?: string ;
111
+ /* @conditional -compile-remove(rtt) */
107
112
/**
108
113
* Real time text disclosure banner title
109
114
*/
@@ -359,6 +364,8 @@ export const CaptionsBanner = (props: CaptionsBannerProps): JSX.Element => {
359
364
setTextFieldValue ( newValue || '' ) ;
360
365
onSendRealTimeText ( newValue || '' , false ) ;
361
366
} }
367
+ maxLength = { 2000 }
368
+ errorMessage = { textFieldValue . length >= 2000 ? strings . realTimeTextInputErrorMessage : undefined }
362
369
/>
363
370
)
364
371
}
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 @@ -60,6 +60,8 @@ export const CallingCaptionsBanner = (props: {
60
60
/* @conditional -compile-remove(rtt) */
61
61
realTimeTextInputBoxDefaultText : strings . realTimeTextInputBoxDefaultText ,
62
62
/* @conditional -compile-remove(rtt) */
63
+ realTimeTextInputErrorMessage : strings . realTimeTextInputErrorMessage ,
64
+ /* @conditional -compile-remove(rtt) */
63
65
realTimeTextBannerContent : strings . realTimeTextBannerContent ,
64
66
/* @conditional -compile-remove(rtt) */
65
67
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