@azure/communication-react 1.10.0-alpha-202311050013 → 1.10.0-alpha-202311060013
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 +43 -29
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/common.d.ts +7 -0
- package/dist/dist-esm/acs-ui-common/src/common.js +9 -0
- package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.d.ts +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/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/VideoGallery/DefaultLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +16 -5
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +3 -8
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +7 -12
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +1 -1
- package/package.json +1 -1
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
|
|
177
177
|
// Copyright (c) Microsoft Corporation.
|
178
178
|
// Licensed under the MIT License.
|
179
179
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
180
|
-
var telemetryVersion = '1.10.0-alpha-
|
180
|
+
var telemetryVersion = '1.10.0-alpha-202311060013';
|
181
181
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
183
183
|
/**
|
@@ -286,6 +286,15 @@ const createSafeReplacer = () => {
|
|
286
286
|
const _convertRemToPx = (rem) => {
|
287
287
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
288
288
|
};
|
289
|
+
/**
|
290
|
+
* @internal
|
291
|
+
* Converts units of pixels to units of rem
|
292
|
+
* @param px - units of px
|
293
|
+
* @returns units of rem
|
294
|
+
*/
|
295
|
+
const _convertPxToRem = (px) => {
|
296
|
+
return px / parseFloat(getComputedStyle(document.documentElement).fontSize);
|
297
|
+
};
|
289
298
|
/**
|
290
299
|
* @internal
|
291
300
|
* Disable dismiss on resize to work around a couple Fluent UI bugs
|
@@ -14035,16 +14044,13 @@ const scrollableHorizontalGalleryStyles = {
|
|
14035
14044
|
/**
|
14036
14045
|
* @private
|
14037
14046
|
*/
|
14038
|
-
const scrollableHorizontalGalleryContainerStyles =
|
14039
|
-
|
14040
|
-
|
14041
|
-
|
14042
|
-
|
14043
|
-
|
14044
|
-
|
14045
|
-
'scrollbar-width': 'none',
|
14046
|
-
'::-webkit-scrollbar': { display: 'none' }
|
14047
|
-
});
|
14047
|
+
const scrollableHorizontalGalleryContainerStyles = {
|
14048
|
+
display: 'flex',
|
14049
|
+
minHeight: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,
|
14050
|
+
overflow: 'scroll',
|
14051
|
+
'-ms-overflow-style': 'none',
|
14052
|
+
'scrollbar-width': 'none',
|
14053
|
+
'::-webkit-scrollbar': { display: 'none' }
|
14048
14054
|
};
|
14049
14055
|
|
14050
14056
|
// Copyright (c) Microsoft Corporation.
|
@@ -14053,11 +14059,7 @@ const scrollableHorizontalGalleryContainerStyles = (fullWidth) => {
|
|
14053
14059
|
* @private
|
14054
14060
|
*/
|
14055
14061
|
const ScrollableHorizontalGallery = (props) => {
|
14056
|
-
const { horizontalGalleryElements, onFetchTilesToRender,
|
14057
|
-
const useFullWidthTrampoline = () => {
|
14058
|
-
/* @conditional-compile-remove(gallery-layouts) */
|
14059
|
-
return layout === 'default' ? true : false;
|
14060
|
-
};
|
14062
|
+
const { horizontalGalleryElements, onFetchTilesToRender, containerStyles } = props;
|
14061
14063
|
React.useEffect(() => {
|
14062
14064
|
const indexesArray = [...Array(horizontalGalleryElements === null || horizontalGalleryElements === void 0 ? void 0 : horizontalGalleryElements.length).keys()];
|
14063
14065
|
if (onFetchTilesToRender && indexesArray) {
|
@@ -14066,7 +14068,7 @@ const ScrollableHorizontalGallery = (props) => {
|
|
14066
14068
|
}, [onFetchTilesToRender, horizontalGalleryElements === null || horizontalGalleryElements === void 0 ? void 0 : horizontalGalleryElements.length]);
|
14067
14069
|
const ref = React.useRef();
|
14068
14070
|
const { events: dragabbleEvents } = reactUseDraggableScroll.useDraggable(ref);
|
14069
|
-
return (React__default["default"].createElement("div", Object.assign({ ref: ref }, dragabbleEvents, { className: scrollableHorizontalGalleryContainerStyles
|
14071
|
+
return (React__default["default"].createElement("div", Object.assign({ ref: ref }, dragabbleEvents, { className: react.mergeStyles(scrollableHorizontalGalleryContainerStyles, containerStyles) }),
|
14070
14072
|
React__default["default"].createElement(react.Stack, { "data-ui-id": "scrollable-horizontal-gallery", horizontal: true, styles: scrollableHorizontalGalleryStyles, tokens: { childrenGap: '0.5rem' } }, horizontalGalleryElements)));
|
14071
14073
|
};
|
14072
14074
|
|
@@ -14081,7 +14083,7 @@ const OverflowGallery = (props) => {
|
|
14081
14083
|
/* @conditional-compile-remove(vertical-gallery) */
|
14082
14084
|
isShort = false, overflowGalleryElements, horizontalGalleryStyles,
|
14083
14085
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition = 'horizontalBottom',
|
14084
|
-
/* @conditional-compile-remove(vertical-gallery) */ verticalGalleryStyles, onChildrenPerPageChange } = props;
|
14086
|
+
/* @conditional-compile-remove(vertical-gallery) */ verticalGalleryStyles, onChildrenPerPageChange, parentWidth } = props;
|
14085
14087
|
const containerStyles = React.useMemo(() => {
|
14086
14088
|
/* @conditional-compile-remove(vertical-gallery) */
|
14087
14089
|
if (overflowGalleryPosition === 'verticalRight') {
|
@@ -14107,6 +14109,16 @@ const OverflowGallery = (props) => {
|
|
14107
14109
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
14108
14110
|
/* @conditional-compile-remove(vertical-gallery) */ verticalGalleryStyles
|
14109
14111
|
]);
|
14112
|
+
const scrollableHorizontalGalleryContainerStyles = React.useMemo(() => {
|
14113
|
+
if (isNarrow && parentWidth) {
|
14114
|
+
return {
|
14115
|
+
width: props.layout === 'default'
|
14116
|
+
? `${_convertPxToRem(parentWidth) - 1}rem`
|
14117
|
+
: `${_convertPxToRem(parentWidth) - SMALL_FLOATING_MODAL_SIZE_REM.width - 1}rem`
|
14118
|
+
};
|
14119
|
+
}
|
14120
|
+
return undefined;
|
14121
|
+
}, [isNarrow, parentWidth, props.layout]);
|
14110
14122
|
/* @conditional-compile-remove(vertical-gallery) */
|
14111
14123
|
if (overflowGalleryPosition === 'verticalRight') {
|
14112
14124
|
return (React__default["default"].createElement(ResponsiveVerticalGallery, { key: "responsive-vertical-gallery", containerStyles: containerStyles, verticalGalleryStyles: galleryStyles, controlBarHeightRem: HORIZONTAL_GALLERY_BUTTON_WIDTH, gapHeightRem: HORIZONTAL_GALLERY_GAP, isShort: isShort, onFetchTilesToRender: onFetchTilesToRender, onChildrenPerPageChange: onChildrenPerPageChange }, overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)]));
|
@@ -14116,9 +14128,7 @@ const OverflowGallery = (props) => {
|
|
14116
14128
|
// There are no pages for ScrollableHorizontalGallery so we will approximate the first 3 remote
|
14117
14129
|
// participant tiles are visible
|
14118
14130
|
onChildrenPerPageChange === null || onChildrenPerPageChange === void 0 ? void 0 : onChildrenPerPageChange(3);
|
14119
|
-
return (React__default["default"].createElement(ScrollableHorizontalGallery, { horizontalGalleryElements: overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)], onFetchTilesToRender: onFetchTilesToRender, key: "scrollable-horizontal-gallery",
|
14120
|
-
/* @conditional-compile-remove(gallery-layouts) */
|
14121
|
-
layout: props.layout }));
|
14131
|
+
return (React__default["default"].createElement(ScrollableHorizontalGallery, { horizontalGalleryElements: overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)], onFetchTilesToRender: onFetchTilesToRender, key: "scrollable-horizontal-gallery", containerStyles: scrollableHorizontalGalleryContainerStyles }));
|
14122
14132
|
}
|
14123
14133
|
return (React__default["default"].createElement(ResponsiveHorizontalGallery, { key: "responsive-horizontal-gallery", containerStyles: containerStyles, onFetchTilesToRender: onFetchTilesToRender, horizontalGalleryStyles: galleryStyles, buttonWidthRem: HORIZONTAL_GALLERY_BUTTON_WIDTH, gapWidthRem: HORIZONTAL_GALLERY_GAP, onChildrenPerPageChange: onChildrenPerPageChange }, overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)]));
|
14124
14134
|
};
|
@@ -14192,7 +14202,7 @@ const DefaultLayout = (props) => {
|
|
14192
14202
|
childrenPerPage.current = n;
|
14193
14203
|
},
|
14194
14204
|
/* @conditional-compile-remove(gallery-layouts) */
|
14195
|
-
layout: 'default' }));
|
14205
|
+
layout: 'default', parentWidth: parentWidth }));
|
14196
14206
|
}, [
|
14197
14207
|
isNarrow,
|
14198
14208
|
/* @conditional-compile-remove(vertical-gallery) */ isShort,
|
@@ -14200,7 +14210,8 @@ const DefaultLayout = (props) => {
|
|
14200
14210
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
14201
14211
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
14202
14212
|
setIndexesToRender,
|
14203
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
14213
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
14214
|
+
parentWidth
|
14204
14215
|
]);
|
14205
14216
|
return (React__default["default"].createElement(react.Stack
|
14206
14217
|
/* @conditional-compile-remove(vertical-gallery) */
|
@@ -15061,7 +15072,7 @@ const FloatingLocalVideoLayout = (props) => {
|
|
15061
15072
|
/* @conditional-compile-remove(vertical-gallery) */
|
15062
15073
|
overflowGalleryPosition: overflowGalleryPosition, onChildrenPerPageChange: (n) => {
|
15063
15074
|
childrenPerPage.current = n;
|
15064
|
-
} }));
|
15075
|
+
}, parentWidth: parentWidth }));
|
15065
15076
|
}, [
|
15066
15077
|
isNarrow,
|
15067
15078
|
/* @conditional-compile-remove(vertical-gallery) */ isShort,
|
@@ -15070,7 +15081,8 @@ const FloatingLocalVideoLayout = (props) => {
|
|
15070
15081
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
15071
15082
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
15072
15083
|
setIndexesToRender,
|
15073
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
15084
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
15085
|
+
parentWidth
|
15074
15086
|
]);
|
15075
15087
|
return (React__default["default"].createElement(react.Stack, { styles: rootLayoutStyle },
|
15076
15088
|
wrappedLocalVideoComponent,
|
@@ -15189,7 +15201,7 @@ const SpeakerVideoLayout = (props) => {
|
|
15189
15201
|
/* @conditional-compile-remove(vertical-gallery) */
|
15190
15202
|
overflowGalleryPosition: overflowGalleryPosition, onChildrenPerPageChange: (n) => {
|
15191
15203
|
childrenPerPage.current = n;
|
15192
|
-
} }));
|
15204
|
+
}, parentWidth: parentWidth }));
|
15193
15205
|
}, [
|
15194
15206
|
isNarrow,
|
15195
15207
|
/* @conditional-compile-remove(vertical-gallery) */ isShort,
|
@@ -15198,7 +15210,8 @@ const SpeakerVideoLayout = (props) => {
|
|
15198
15210
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
15199
15211
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
15200
15212
|
setIndexesToRender,
|
15201
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
15213
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
15214
|
+
parentWidth
|
15202
15215
|
]);
|
15203
15216
|
return (React__default["default"].createElement(react.Stack, { styles: rootLayoutStyle },
|
15204
15217
|
wrappedLocalVideoComponent,
|
@@ -15308,7 +15321,7 @@ const LargeGalleryLayout = (props) => {
|
|
15308
15321
|
/* @conditional-compile-remove(vertical-gallery) */
|
15309
15322
|
overflowGalleryPosition: overflowGalleryPosition, onFetchTilesToRender: setIndexesToRender, onChildrenPerPageChange: (n) => {
|
15310
15323
|
childrenPerPage.current = n;
|
15311
|
-
} }));
|
15324
|
+
}, parentWidth: parentWidth }));
|
15312
15325
|
}, [
|
15313
15326
|
isNarrow,
|
15314
15327
|
/* @conditional-compile-remove(gallery-layouts) */ isShort,
|
@@ -15316,7 +15329,8 @@ const LargeGalleryLayout = (props) => {
|
|
15316
15329
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
15317
15330
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
15318
15331
|
setIndexesToRender,
|
15319
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
15332
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
15333
|
+
parentWidth
|
15320
15334
|
]);
|
15321
15335
|
return (React__default["default"].createElement(react.Stack
|
15322
15336
|
/* @conditional-compile-remove(vertical-gallery) */
|