@azure/communication-react 1.23.0-alpha-202412270016 → 1.23.0-alpha-202501010018
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/communication-react.d.ts +161 -76
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CCXnpoKF.js → ChatMessageComponentAsRichTextEditBox-C-il3-6g.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CCXnpoKF.js.map → ChatMessageComponentAsRichTextEditBox-C-il3-6g.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-6PxjjqPz.js → RichTextSendBoxWrapper-C9huyOrM.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-6PxjjqPz.js.map → RichTextSendBoxWrapper-C9huyOrM.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-CusJUNf0.js → index-CoXZD7Ml.js} +299 -211
- package/dist/dist-cjs/communication-react/index-CoXZD7Ml.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +3 -3
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +4 -4
- package/dist/dist-esm/communication-react/src/index.js +3 -3
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.js +3 -2
- package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +40 -0
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +52 -4
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +3 -2
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.d.ts +7 -7
- package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js +12 -11
- package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RealTimeText.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/RealTimeText.js +1 -1
- package/dist/dist-esm/react-components/src/components/RealTimeText.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RealTimeTextModal.d.ts +39 -0
- package/dist/dist-esm/react-components/src/components/{RTTModal.js → RealTimeTextModal.js} +15 -15
- package/dist/dist-esm/react-components/src/components/RealTimeTextModal.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.d.ts +47 -0
- package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js +30 -0
- package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/index.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/index.js +3 -1
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.d.ts +5 -1
- package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js +10 -0
- package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +7 -7
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +17 -14
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.js +3 -3
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +24 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js +9 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +6 -0
- package/package.json +1 -1
- package/dist/dist-cjs/communication-react/index-CusJUNf0.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RTTModal.d.ts +0 -39
- package/dist/dist-esm/react-components/src/components/RTTModal.js.map +0 -1
@@ -1,39 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
/**
|
3
|
-
* @beta
|
4
|
-
* strings for rtt modal
|
5
|
-
*/
|
6
|
-
export interface RTTModalStrings {
|
7
|
-
/** The title of the RTT modal */
|
8
|
-
rttModalTitle?: string;
|
9
|
-
/** The text of the RTT modal */
|
10
|
-
rttModalText?: string;
|
11
|
-
/** The label for the confirm button */
|
12
|
-
rttConfirmButtonLabel?: string;
|
13
|
-
/** The label for the cancel button */
|
14
|
-
rttCancelButtonLabel?: string;
|
15
|
-
/** The aria label for the modal */
|
16
|
-
rttModalAriaLabel?: string;
|
17
|
-
/** The aria label for the close button */
|
18
|
-
rttCloseModalButtonAriaLabel?: string;
|
19
|
-
}
|
20
|
-
/**
|
21
|
-
* @beta
|
22
|
-
* RTTModal Component Props.
|
23
|
-
*/
|
24
|
-
export interface RTTModalProps {
|
25
|
-
/** The strings for the RTT modal */
|
26
|
-
strings?: RTTModalStrings;
|
27
|
-
/** The flag to show the modal */
|
28
|
-
showModal?: boolean;
|
29
|
-
/** The function to dismiss the modal */
|
30
|
-
onDismissModal?: () => void;
|
31
|
-
/** The function to start RTT */
|
32
|
-
onStartRTT?: () => Promise<void>;
|
33
|
-
}
|
34
|
-
/**
|
35
|
-
* @beta
|
36
|
-
* a component for rtt modal
|
37
|
-
*/
|
38
|
-
export declare const RTTModal: (props: RTTModalProps) => JSX.Element;
|
39
|
-
//# sourceMappingURL=RTTModal.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RTTModal.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/RTTModal.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,sCAAsC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,sCAAsC;AACtC,OAAO,EAAgB,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGvH,sCAAsC;AACtC,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,gCAAgC,EAChC,cAAc,EACd,uBAAuB,EACxB,MAAM,uCAAuC,CAAC;AAC/C,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAoC5C,sCAAsC;AACtC;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAe,EAAE;IAC5D,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACxD,MAAM,aAAa,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IACnD,MAAM,OAAO,mCAAQ,aAAa,GAAK,KAAK,CAAC,OAAO,CAAE,CAAC;IAEvD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,MAAM,SAAS,GAAG,WAAW,CAAC,GAAS,EAAE;QACvC,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,EAAE,CAAC;QACnB,CAAC;IACH,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,MAAM,SAAS,GAAG,WAAW,CAAC,GAAwB,EAAE;QACtD,IAAI,UAAU,EAAE,CAAC;YACf,MAAM,UAAU,EAAE,CAAC;QACrB,CAAC;QACD,SAAS,EAAE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AK,CAAC;gBAC5D,kCAAO,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,CAAQ,CAC9B,CACV,CACF,CAET,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* @conditional-compile-remove(rtt) */\nimport React, { useCallback } from 'react';\n/* @conditional-compile-remove(rtt) */\nimport { useMemo } from 'react';\n/* @conditional-compile-remove(rtt) */\nimport { IModalStyles, Modal, Stack, useTheme, Text, IconButton, DefaultButton, PrimaryButton } from '@fluentui/react';\n/* @conditional-compile-remove(rtt) */\nimport { _preventDismissOnEvent } from '@internal/acs-ui-common';\n/* @conditional-compile-remove(rtt) */\nimport {\n buttonsContainerClassName,\n buttonStyles,\n themedCaptionsSettingsModalStyle,\n titleClassName,\n titleContainerClassName\n} from './styles/CaptionsSettingsModal.styles';\n/* @conditional-compile-remove(rtt) */\nimport { useLocale } from '../localization';\n\n/* @conditional-compile-remove(rtt) */\n/**\n * @beta\n * strings for rtt modal\n */\nexport interface RTTModalStrings {\n /** The title of the RTT modal */\n rttModalTitle?: string;\n /** The text of the RTT modal */\n rttModalText?: string;\n /** The label for the confirm button */\n rttConfirmButtonLabel?: string;\n /** The label for the cancel button */\n rttCancelButtonLabel?: string;\n /** The aria label for the modal */\n rttModalAriaLabel?: string;\n /** The aria label for the close button */\n rttCloseModalButtonAriaLabel?: string;\n}\n/* @conditional-compile-remove(rtt) */\n/**\n * @beta\n * RTTModal Component Props.\n */\nexport interface RTTModalProps {\n /** The strings for the RTT modal */\n strings?: RTTModalStrings;\n /** The flag to show the modal */\n showModal?: boolean;\n /** The function to dismiss the modal */\n onDismissModal?: () => void;\n /** The function to start RTT */\n onStartRTT?: () => Promise<void>;\n}\n/* @conditional-compile-remove(rtt) */\n/**\n * @beta\n * a component for rtt modal\n */\nexport const RTTModal = (props: RTTModalProps): JSX.Element => {\n const { showModal, onDismissModal, onStartRTT } = props;\n const localeStrings = useLocale().strings.rttModal;\n const strings = { ...localeStrings, ...props.strings };\n\n const theme = useTheme();\n\n const onDismiss = useCallback((): void => {\n if (onDismissModal) {\n onDismissModal();\n }\n }, [onDismissModal]);\n\n const onConfirm = useCallback(async (): Promise<void> => {\n if (onStartRTT) {\n await onStartRTT();\n }\n onDismiss();\n }, [onDismiss, onStartRTT]);\n\n const RTTModalStyle: Partial<IModalStyles> = useMemo(() => themedCaptionsSettingsModalStyle(theme), [theme]);\n\n return (\n <>\n {\n <Modal\n titleAriaId={strings?.rttModalAriaLabel}\n isOpen={showModal}\n onDismiss={onDismiss}\n isBlocking={true}\n styles={RTTModalStyle}\n >\n <Stack horizontal horizontalAlign=\"space-between\" verticalAlign=\"center\" className={titleContainerClassName}>\n <Text className={titleClassName}>{strings?.rttModalTitle}</Text>\n <IconButton\n iconProps={{ iconName: 'Cancel' }}\n ariaLabel={strings?.rttCloseModalButtonAriaLabel}\n onClick={onDismiss}\n style={{ color: theme.palette.black }}\n />\n </Stack>\n <Text>{strings?.rttModalText}</Text>\n\n <Stack horizontal horizontalAlign=\"end\" className={buttonsContainerClassName}>\n <PrimaryButton styles={buttonStyles(theme)} onClick={onConfirm}>\n <span>{strings?.rttConfirmButtonLabel}</span>\n </PrimaryButton>\n <DefaultButton onClick={onDismiss} styles={buttonStyles(theme)}>\n <span>{strings?.rttCancelButtonLabel}</span>\n </DefaultButton>\n </Stack>\n </Modal>\n }\n </>\n );\n};\n"]}
|