@azure/communication-react 1.7.1-alpha-202308212239 → 1.7.1-alpha-202308230012

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.
Files changed (19) hide show
  1. package/dist/communication-react.d.ts +1 -1
  2. package/dist/dist-cjs/communication-react/index.js +8 -19
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.d.ts +1 -1
  7. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  8. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  9. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +1 -4
  10. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  11. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +9 -9
  12. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  13. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +1 -7
  14. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  15. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  16. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +1 -7
  17. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  18. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  19. package/package.json +10 -10
@@ -4026,7 +4026,7 @@ export declare type ChatErrors = {
4026
4026
  *
4027
4027
  * @public
4028
4028
  */
4029
- export declare type ChatErrorTarget = 'ChatClient.createChatThread' | 'ChatClient.deleteChatThread' | 'ChatClient.getChatThreadClient' | 'ChatClient.listChatThreads' | 'ChatClient.off' | 'ChatClient.on' | 'ChatClient.startRealtimeNotifications' | 'ChatClient.stopRealtimeNotifications' | 'ChatThreadClient.addParticipants' | 'ChatThreadClient.deleteMessage' | 'ChatThreadClient.getMessage' | 'ChatThreadClient.getProperties' | 'ChatThreadClient.listMessages' | 'ChatThreadClient.listParticipants' | 'ChatThreadClient.listReadReceipts' | 'ChatThreadClient.removeParticipant' | 'ChatThreadClient.sendMessage' | 'ChatThreadClient.sendReadReceipt' | 'ChatThreadClient.sendTypingNotification' | 'ChatThreadClient.updateMessage' | 'ChatThreadClient.updateTopic';
4029
+ export declare type ChatErrorTarget = 'ChatClient.createChatThread' | 'ChatClient.deleteChatThread' | 'ChatClient.getChatThreadClient' | 'ChatClient.listChatThreads' | 'ChatClient.off' | 'ChatClient.on' | 'ChatClient.startRealtimeNotifications' | 'ChatClient.stopRealtimeNotifications' | 'ChatThreadClient.addParticipants' | 'ChatThreadClient.deleteMessage' | 'ChatThreadClient.getMessage' | 'ChatThreadClient.getProperties' | 'ChatThreadClient.listMessages' | 'ChatThreadClient.listParticipants' | 'ChatThreadClient.listReadReceipts' | 'ChatThreadClient.removeParticipant' | 'ChatThreadClient.sendMessage' | 'ChatThreadClient.sendReadReceipt' | 'ChatThreadClient.sendTypingNotification' | 'ChatThreadClient.updateMessage' | /* @conditional-compile-remove(chat-beta-sdk) */ 'ChatThreadClient.updateProperties' | 'ChatThreadClient.updateTopic';
4030
4030
 
4031
4031
  /**
4032
4032
  * Object containing all the handlers required for chat components.
@@ -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.1-alpha-202308212239';
181
+ var telemetryVersion = '1.7.1-alpha-202308230012';
182
182
 
183
183
  // Copyright (c) Microsoft Corporation.
184
184
  /**
@@ -23449,9 +23449,9 @@ const controlBarStyles = react.memoizeFunction((background) => ({ root: { backgr
23449
23449
  */
23450
23450
  const CallControls = (props) => {
23451
23451
  const options = React.useMemo(() => (typeof props.options === 'boolean' ? {} : props.options), [props.options]);
23452
- /* @conditional-compile-remove(new-call-control-bar) */
23452
+ /* @conditional-compile-remove(PSTN-calls) */
23453
23453
  const adapter = useAdapter();
23454
- /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
23454
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
23455
23455
  const localeStrings = useLocale();
23456
23456
  /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
23457
23457
  const peopleButtonStrings = React.useMemo(() => ({
@@ -23459,7 +23459,7 @@ const CallControls = (props) => {
23459
23459
  tooltipOffContent: localeStrings.strings.call.peopleButtonTooltipOpen,
23460
23460
  tooltipOnContent: localeStrings.strings.call.peopleButtonTooltipClose
23461
23461
  }), [localeStrings]);
23462
- /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
23462
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
23463
23463
  const moreButtonStrings = React.useMemo(() => ({
23464
23464
  label: localeStrings.strings.call.moreButtonCallingLabel,
23465
23465
  tooltipOffContent: localeStrings.strings.callWithChat.moreDrawerButtonTooltip
@@ -23476,7 +23476,7 @@ const CallControls = (props) => {
23476
23476
  const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
23477
23477
  /* @conditional-compile-remove(PSTN-calls) */
23478
23478
  const alternateCallerId = useAdapter().getState().alternateCallerId;
23479
- /* @conditional-compile-remove(new-call-control-bar) */
23479
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
23480
23480
  const moreButtonContextualMenuItems = () => {
23481
23481
  const items = [];
23482
23482
  if (props.isMobile && props.onPeopleButtonClicked && isEnabled$2(options === null || options === void 0 ? void 0 : options.participantsButton)) {
@@ -23581,7 +23581,7 @@ const CallControls = (props) => {
23581
23581
  /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
23582
23582
  React__default['default'].createElement(People, { checked: props.peopleButtonChecked, ariaLabel: peopleButtonStrings === null || peopleButtonStrings === void 0 ? void 0 : peopleButtonStrings.label, showLabel: (options === null || options === void 0 ? void 0 : options.displayType) !== 'compact', onClick: props.onPeopleButtonClicked, "data-ui-id": "call-composite-people-button", strings: peopleButtonStrings, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.participantsButton) })),
23583
23583
  isEnabled$2(options === null || options === void 0 ? void 0 : options.devicesButton) && (React__default['default'].createElement(Devices, { displayType: options === null || options === void 0 ? void 0 : options.displayType, increaseFlyoutItemSize: props.increaseFlyoutItemSize, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.devicesButton) })),
23584
- /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
23584
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
23585
23585
  isEnabled$2(options === null || options === void 0 ? void 0 : options.moreButton) && moreButtonContextualMenuItems().length > 0 && (React__default['default'].createElement(MoreButton, { "data-ui-id": "common-call-composite-more-button", strings: moreButtonStrings, menuIconProps: { hidden: true }, menuProps: { items: moreButtonContextualMenuItems() }, showLabel: (options === null || options === void 0 ? void 0 : options.displayType) !== 'compact' })),
23586
23586
  customButtons['primary'],
23587
23587
  isEnabled$2(options === null || options === void 0 ? void 0 : options.endCallButton) && React__default['default'].createElement(EndCall, { displayType: options === null || options === void 0 ? void 0 : options.displayType })))));
@@ -24824,7 +24824,7 @@ const useIsParticularSidePaneOpen = (sidePaneId) => {
24824
24824
  const PeopleAndChatHeader = (props) => {
24825
24825
  const { onClose, onChatButtonClicked, onPeopleButtonClicked, activeTab } = props;
24826
24826
  const theme = useTheme();
24827
- const strings = localeTrampoline$1(useLocale());
24827
+ const strings = useLocale().strings.call;
24828
24828
  const haveMultipleTabs = onChatButtonClicked && onPeopleButtonClicked;
24829
24829
  const mobilePaneButtonStylesThemed = React.useMemo(() => {
24830
24830
  return react.concatStyleSets(mobilePaneButtonStyles, {
@@ -24849,11 +24849,6 @@ const PeopleAndChatHeader = (props) => {
24849
24849
  React__default['default'].createElement(react.Stack.Item, { grow: true }, onPeopleButtonClicked && (React__default['default'].createElement(react.DefaultButton, { onClick: onPeopleButtonClicked, styles: mobilePaneButtonStylesThemed, checked: activeTab === 'people', "aria-selected": activeTab === 'people', role: 'tab', disabled: props.disablePeopleButton }, strings.peopleButtonLabel))),
24850
24850
  React__default['default'].createElement(react.DefaultButton, { styles: mobilePaneHiddenIconStyles, onRenderIcon: () => React__default['default'].createElement(CallWithChatCompositeIcon, { iconName: "ChevronLeft" }) })));
24851
24851
  };
24852
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
24853
- const localeTrampoline$1 = (locale) => {
24854
- /* @conditional-compile-remove(new-call-control-bar) */
24855
- return locale.strings.call;
24856
- };
24857
24852
 
24858
24853
  // Copyright (c) Microsoft Corporation.
24859
24854
  /** @private */
@@ -25414,7 +25409,7 @@ const usePeoplePane = (props) => {
25414
25409
  updateSidePaneRenderer(undefined);
25415
25410
  (_a = peopleButtonRef === null || peopleButtonRef === void 0 ? void 0 : peopleButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
25416
25411
  }, [peopleButtonRef, updateSidePaneRenderer]);
25417
- const localeStrings = localeTrampoline(useLocale());
25412
+ const localeStrings = useLocale().strings.call;
25418
25413
  const onRenderHeader = React.useCallback(() => (React__default['default'].createElement(SidePaneHeader, { onClose: closePane, headingText: localeStrings.peoplePaneTitle, dismissSidePaneButtonAriaLabel: localeStrings.dismissSidePaneButtonLabel, mobileView: mobileView !== null && mobileView !== void 0 ? mobileView : false })), [mobileView, closePane, localeStrings]);
25419
25414
  const onRenderContent = React.useCallback(() => {
25420
25415
  return (React__default['default'].createElement(PeoplePaneContent, { inviteLink: inviteLink, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, setDrawerMenuItems: setDrawerMenuItems, mobileView: mobileView }));
@@ -25436,11 +25431,6 @@ const usePeoplePane = (props) => {
25436
25431
  }, [isOpen, openPane]);
25437
25432
  return { openPeoplePane: openPane, closePeoplePane: closePane, isPeoplePaneOpen: isOpen };
25438
25433
  };
25439
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
25440
- const localeTrampoline = (locale) => {
25441
- /* @conditional-compile-remove(new-call-control-bar) */
25442
- return locale.strings.call;
25443
- };
25444
25434
 
25445
25435
  // Copyright (c) Microsoft Corporation.
25446
25436
  /* @conditional-compile-remove(video-background-effects) */
@@ -26164,7 +26154,6 @@ const CallArrangement = (props) => {
26164
26154
  };
26165
26155
  const isLegacyCallControlEnabled = (options) => {
26166
26156
  var _a;
26167
- /* @conditional-compile-remove(new-call-control-bar) */
26168
26157
  return !!options && options !== true && ((_a = options) === null || _a === void 0 ? void 0 : _a.legacyControlBarExperience) === true;
26169
26158
  };
26170
26159
  const shouldShowPeopleTabHeaderButton = (callControls) => {