@azure/communication-react 1.7.0-alpha-202307220013 → 1.7.0-alpha-202307250014
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/dist-cjs/communication-react/index.js +13 -9
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- 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/react-components/src/components/CaptionsBanner.js +3 -3
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +9 -5
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
- package/package.json +8 -8
@@ -178,7 +178,7 @@ const _isValidIdentifier = (identifier) => {
|
|
178
178
|
// Copyright (c) Microsoft Corporation.
|
179
179
|
// Licensed under the MIT license.
|
180
180
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
181
|
-
var telemetryVersion = '1.7.0-alpha-
|
181
|
+
var telemetryVersion = '1.7.0-alpha-202307250014';
|
182
182
|
|
183
183
|
// Copyright (c) Microsoft Corporation.
|
184
184
|
/**
|
@@ -16233,17 +16233,21 @@ const captionContainerClassName = react.mergeStyles({
|
|
16233
16233
|
/**
|
16234
16234
|
* @private
|
16235
16235
|
*/
|
16236
|
-
const
|
16236
|
+
const captionsBannerStyles = (formFactor) => {
|
16237
16237
|
return {
|
16238
|
-
root: Object.assign({ overflowX: 'hidden', height: formFactor === 'compact' ? '4.5rem' : '
|
16238
|
+
root: Object.assign({ overflowX: 'hidden', height: formFactor === 'compact' ? '4.5rem' : '8.75rem', overflowY: 'auto' }, scrollbarStyles)
|
16239
16239
|
};
|
16240
16240
|
};
|
16241
16241
|
/**
|
16242
16242
|
* @private
|
16243
16243
|
*/
|
16244
|
-
const
|
16245
|
-
|
16246
|
-
|
16244
|
+
const loadingBannerStyles = (formFactor) => {
|
16245
|
+
return {
|
16246
|
+
root: {
|
16247
|
+
height: formFactor === 'compact' ? '4.5rem' : '8.75rem'
|
16248
|
+
}
|
16249
|
+
};
|
16250
|
+
};
|
16247
16251
|
/**
|
16248
16252
|
* @private
|
16249
16253
|
*/
|
@@ -16323,11 +16327,11 @@ const _CaptionsBanner = (props) => {
|
|
16323
16327
|
}, [captions, isAtBottomOfScroll]);
|
16324
16328
|
return (React__default['default'].createElement(React__default['default'].Fragment, null, startCaptionsInProgress && (React__default['default'].createElement(react.FocusZone, { as: "ul", className: captionsContainerClassName },
|
16325
16329
|
isCaptionsOn && (React__default['default'].createElement(c, { innerRef: captionsScrollDivRef },
|
16326
|
-
React__default['default'].createElement(react.Stack, { verticalAlign: "start", styles:
|
16330
|
+
React__default['default'].createElement(react.Stack, { verticalAlign: "start", styles: captionsBannerStyles(formFactor) }, captions.map((caption) => {
|
16327
16331
|
return (React__default['default'].createElement("div", { key: caption.id, className: captionContainerClassName, "data-is-focusable": true },
|
16328
16332
|
React__default['default'].createElement(_Caption, Object.assign({}, caption, { onRenderAvatar: onRenderAvatar }))));
|
16329
16333
|
})))),
|
16330
|
-
!isCaptionsOn && (React__default['default'].createElement(react.Stack, { verticalAlign: "center",
|
16334
|
+
!isCaptionsOn && (React__default['default'].createElement(react.Stack, { verticalAlign: "center", styles: loadingBannerStyles(formFactor), "data-is-focusable": true },
|
16331
16335
|
React__default['default'].createElement(react.Spinner, { label: strings === null || strings === void 0 ? void 0 : strings.captionsBannerSpinnerText, ariaLive: "assertive", labelPosition: "right" })))))));
|
16332
16336
|
};
|
16333
16337
|
|
@@ -21696,7 +21700,7 @@ const CaptionsBanner = (props) => {
|
|
21696
21700
|
/* @conditional-compile-remove(close-captions) */ isCaptionsSettingsOpen && (React__default['default'].createElement(CaptionsSettingsModal, { showCaptionsSettingsModal: isCaptionsSettingsOpen, onDismissCaptionsSettings: onDismissCaptionsSettings })),
|
21697
21701
|
/* @conditional-compile-remove(close-captions) */ React__default['default'].createElement("div", { className: containerClassName },
|
21698
21702
|
React__default['default'].createElement(react.Stack, { horizontalAlign: "center" },
|
21699
|
-
React__default['default'].createElement(react.Stack.Item, { style: { width: props.isMobile ? mobileViewBannerWidth : desktopViewBannerWidth } },
|
21703
|
+
React__default['default'].createElement(react.Stack.Item, { style: { width: props.isMobile ? mobileViewBannerWidth : desktopViewBannerWidth, maxWidth: '35rem' } },
|
21700
21704
|
React__default['default'].createElement(_CaptionsBanner, Object.assign({}, captionsBannerProps, handlers, { formFactor: props.isMobile ? 'compact' : 'default', strings: captionsBannerStrings })))),
|
21701
21705
|
!props.isMobile && captionsBannerProps.isCaptionsOn && (React__default['default'].createElement("div", { className: floatingChildClassName },
|
21702
21706
|
React__default['default'].createElement(CaptionsBannerMoreButton, { onCaptionsSettingsClick: onClickCaptionsSettings }))))));
|