@azure/communication-react 1.9.0-alpha-202310140012 → 1.9.0-alpha-202310170013
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 +35 -20
- 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/VideoEffects/VideoBackgroundEffectsPicker.js +7 -3
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +22 -14
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js +8 -5
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/package.json +8 -8
@@ -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.9.0-alpha-
|
180
|
+
var telemetryVersion = '1.9.0-alpha-202310170013';
|
181
181
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
183
183
|
/**
|
@@ -17608,19 +17608,17 @@ const videoEffectsItemContainerStyles = (args) => {
|
|
17608
17608
|
color: args.theme.palette.neutralPrimary,
|
17609
17609
|
cursor: args.disabled ? 'default' : 'pointer',
|
17610
17610
|
height: VideoEffectsItemContainerHeight,
|
17611
|
-
position: 'relative',
|
17612
17611
|
width: VideoEffectsItemContainerWidth,
|
17612
|
+
border: args.isSelected
|
17613
|
+
? `${borderActiveThickness} solid ${args.theme.palette.themePrimary}`
|
17614
|
+
: `${borderDefaultThickness} solid ${args.theme.palette.neutralQuaternaryAlt}`,
|
17613
17615
|
// Use :after to display a border element. This is used to prevent the background image
|
17614
17616
|
// resizing when the border thichkness is changed. We also want the border to be inside
|
17615
17617
|
// the frame of the container, i.e. we want it to expand inwards and not outwards when
|
17616
17618
|
// border thickness changes from hover/selection.
|
17617
17619
|
':after': {
|
17618
17620
|
content: '""',
|
17619
|
-
position: 'absolute',
|
17620
17621
|
boxSizing: 'border-box',
|
17621
|
-
border: args.isSelected
|
17622
|
-
? `${borderActiveThickness} solid ${args.theme.palette.themePrimary}`
|
17623
|
-
: `${borderDefaultThickness} solid ${args.theme.palette.neutralQuaternaryAlt}`,
|
17624
17622
|
height: '100%',
|
17625
17623
|
width: '100%',
|
17626
17624
|
borderRadius: '0.25rem'
|
@@ -17632,6 +17630,11 @@ const videoEffectsItemContainerStyles = (args) => {
|
|
17632
17630
|
: `${borderActiveThickness} solid ${args.theme.palette.themePrimary}`
|
17633
17631
|
}
|
17634
17632
|
}
|
17633
|
+
},
|
17634
|
+
rootFocused: {
|
17635
|
+
':after': {
|
17636
|
+
outline: `2px solid ${args.theme.palette.neutralQuaternaryAlt}`
|
17637
|
+
}
|
17635
17638
|
}
|
17636
17639
|
};
|
17637
17640
|
};
|
@@ -17654,19 +17657,27 @@ const _VideoEffectsItem = (props) => {
|
|
17654
17657
|
disabled,
|
17655
17658
|
backgroundImage
|
17656
17659
|
}), [backgroundImage, disabled, isSelected, theme]);
|
17660
|
+
const componentRef = React__default["default"].createRef();
|
17661
|
+
React.useEffect(() => {
|
17662
|
+
if (props.focusOnMount && componentRef.current) {
|
17663
|
+
componentRef.current.focus();
|
17664
|
+
}
|
17665
|
+
}, [componentRef, props.focusOnMount]);
|
17657
17666
|
return (React__default["default"].createElement(react.TooltipHost, Object.assign({}, props.tooltipProps),
|
17658
|
-
React__default["default"].createElement(react.Stack, { key: props.itemKey, className: react.mergeStyles((_d = props.styles) === null || _d === void 0 ? void 0 : _d.root), verticalAlign: "center", horizontalAlign: "center",
|
17659
|
-
|
17660
|
-
|
17661
|
-
|
17662
|
-
|
17663
|
-
(
|
17664
|
-
|
17665
|
-
|
17666
|
-
|
17667
|
-
React__default["default"].createElement(react.
|
17668
|
-
|
17669
|
-
|
17667
|
+
React__default["default"].createElement(react.Stack, { key: props.itemKey, className: react.mergeStyles((_d = props.styles) === null || _d === void 0 ? void 0 : _d.root), verticalAlign: "center", horizontalAlign: "center", "data-ui-id": `video-effects-item`, "aria-label": (_e = props.ariaLabel) !== null && _e !== void 0 ? _e : props.itemKey, "aria-disabled": props.disabled },
|
17668
|
+
React__default["default"].createElement(react.DefaultButton, { styles: containerStyles(), onClick: disabled ? undefined : () => { var _a; return (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, props.itemKey); }, componentRef: componentRef, autoFocus: props.focusOnMount, onKeyDown: disabled
|
17669
|
+
? undefined
|
17670
|
+
: (e) => {
|
17671
|
+
var _a;
|
17672
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
17673
|
+
(_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, props.itemKey);
|
17674
|
+
}
|
17675
|
+
} },
|
17676
|
+
React__default["default"].createElement(react.Stack, { horizontalAlign: 'center', tokens: { childrenGap: '0.15rem' } },
|
17677
|
+
props.iconProps && (React__default["default"].createElement(react.Stack.Item, { styles: { root: (_f = props.styles) === null || _f === void 0 ? void 0 : _f.iconContainer } },
|
17678
|
+
React__default["default"].createElement(react.Icon, Object.assign({}, props.iconProps)))),
|
17679
|
+
props.title && (React__default["default"].createElement(react.Stack.Item, { styles: { root: (_g = props.styles) === null || _g === void 0 ? void 0 : _g.textContainer } },
|
17680
|
+
React__default["default"].createElement(react.Text, { variant: "small" }, props.title))))))));
|
17670
17681
|
};
|
17671
17682
|
|
17672
17683
|
// Copyright (c) Microsoft Corporation.
|
@@ -17707,8 +17718,12 @@ const _VideoBackgroundEffectsPicker = (props) => {
|
|
17707
17718
|
optionsByRow.map((options, rowIndex) => {
|
17708
17719
|
var _a;
|
17709
17720
|
return (React__default["default"].createElement(react.Stack, { className: react.mergeStyles((_a = props.styles) === null || _a === void 0 ? void 0 : _a.rowRoot), wrap: props.itemsPerRow === 'wrap', horizontal: true, key: rowIndex, tokens: { childrenGap: '0.5rem' }, "data-ui-id": "video-effects-picker-row" },
|
17710
|
-
options.map((option) =>
|
17711
|
-
|
17721
|
+
options.map((option, i) => {
|
17722
|
+
if (i === 0 && rowIndex === 0) {
|
17723
|
+
return (React__default["default"].createElement(_VideoEffectsItem, Object.assign({}, option, { itemKey: option.itemKey, key: option.itemKey, focusOnMount: true })));
|
17724
|
+
}
|
17725
|
+
return React__default["default"].createElement(_VideoEffectsItem, Object.assign({}, option, { itemKey: option.itemKey, key: option.itemKey }));
|
17726
|
+
}),
|
17712
17727
|
fillCount > 0 &&
|
17713
17728
|
rowIndex === optionsByRow.length - 1 &&
|
17714
17729
|
Array.from({ length: fillCount }).map((_, index) => (React__default["default"].createElement(react.Stack, { key: index, styles: hiddenVideoEffectsItemContainerStyles, "data-ui-id": "video-effects-hidden-item" })))));
|