@azure/communication-react 1.11.1-alpha-202401130013 → 1.11.1-alpha-202401140014
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 +12 -4
- package/dist/dist-cjs/communication-react/index.js +18 -8
- 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-composites/src/composites/CallComposite/CallComposite.d.ts +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +4 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +4 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js +9 -1
- package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js.map +1 -1
- package/package.json +2 -2
@@ -1570,10 +1570,14 @@ export declare type CallCompositeOptions = {
|
|
1570
1570
|
*/
|
1571
1571
|
surveyOptions?: {
|
1572
1572
|
/**
|
1573
|
-
*
|
1573
|
+
* Disable call survey at the end of a call.
|
1574
1574
|
* @defaultValue false
|
1575
1575
|
*/
|
1576
|
-
|
1576
|
+
disableSurvey?: boolean;
|
1577
|
+
/**
|
1578
|
+
* Optional callback to add extra logic when survey is dismissed. For self-host only
|
1579
|
+
*/
|
1580
|
+
onSurveyDismissed?: () => void;
|
1577
1581
|
/**
|
1578
1582
|
* Optional callback to handle survey data including free form text response
|
1579
1583
|
* Note that free form text response survey option is only going to be enabled when this callback is provided
|
@@ -3430,10 +3434,14 @@ export declare type CallWithChatCompositeOptions = {
|
|
3430
3434
|
*/
|
3431
3435
|
surveyOptions?: {
|
3432
3436
|
/**
|
3433
|
-
*
|
3437
|
+
* Disable call survey at the end of a call.
|
3434
3438
|
* @defaultValue false
|
3435
3439
|
*/
|
3436
|
-
|
3440
|
+
disableSurvey?: boolean;
|
3441
|
+
/**
|
3442
|
+
* Optional callback to add extra logic when survey is dismissed. For self-host only
|
3443
|
+
*/
|
3444
|
+
onSurveyDismissed?: () => void;
|
3437
3445
|
/**
|
3438
3446
|
* Optional callback to handle survey data including free form text response
|
3439
3447
|
* Note that free form text response survey option is only going to be enabled when this callback is provided
|
@@ -170,7 +170,7 @@ function getDefaultExportFromCjs (x) {
|
|
170
170
|
// Copyright (c) Microsoft Corporation.
|
171
171
|
// Licensed under the MIT License.
|
172
172
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
173
|
-
var telemetryVersion = '1.11.1-alpha-
|
173
|
+
var telemetryVersion = '1.11.1-alpha-202401140014';
|
174
174
|
|
175
175
|
|
176
176
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -30725,6 +30725,8 @@ const SurveyPaneContent = (
|
|
30725
30725
|
const SurveyPane = (props) => {
|
30726
30726
|
/* @conditional-compile-remove(end-of-call-survey) */
|
30727
30727
|
const { onSubmitSurvey, onSurveySubmittedCustom } = props;
|
30728
|
+
/* @conditional-compile-remove(end-of-call-survey-self-host) */ /* @conditional-compile-remove(end-of-call-survey) */
|
30729
|
+
const { onSurveyDismissed } = props;
|
30728
30730
|
/* @conditional-compile-remove(end-of-call-survey) */
|
30729
30731
|
const strings = useLocale().strings.call;
|
30730
30732
|
/* @conditional-compile-remove(end-of-call-survey) */
|
@@ -30774,7 +30776,13 @@ const SurveyPane = (props) => {
|
|
30774
30776
|
improvementSuggestions
|
30775
30777
|
]);
|
30776
30778
|
/* @conditional-compile-remove(end-of-call-survey) */
|
30777
|
-
return (React.createElement(react.Panel, { headerText: strings.surveyQuestion, isOpen: isOpen, onDismiss: () =>
|
30779
|
+
return (React.createElement(react.Panel, { headerText: strings.surveyQuestion, isOpen: isOpen, onDismiss: () => {
|
30780
|
+
/* @conditional-compile-remove(end-of-call-survey-self-host) */
|
30781
|
+
if (onSurveyDismissed) {
|
30782
|
+
onSurveyDismissed();
|
30783
|
+
}
|
30784
|
+
setIsOpen(false);
|
30785
|
+
}, closeButtonAriaLabel: strings.surveyCancelButtonAriaLabel, type: react.PanelType.custom, customWidth: "24rem", onRenderFooterContent: onRenderFooterContent, isFooterAtBottom: true },
|
30778
30786
|
React.createElement(SurveyPaneContent, { setShowSubmitFeedbackButton: (showButton) => {
|
30779
30787
|
setShowSubmitFeedbackButton(showButton);
|
30780
30788
|
}, setRatings: (rating) => {
|
@@ -30796,7 +30804,7 @@ const SurveyPane = (props) => {
|
|
30796
30804
|
* @private
|
30797
30805
|
*/
|
30798
30806
|
function NoticePage(props) {
|
30799
|
-
var _a, _b;
|
30807
|
+
var _a, _b, _c;
|
30800
30808
|
const adapter = useAdapter();
|
30801
30809
|
/* @conditional-compile-remove(end-of-call-survey) */
|
30802
30810
|
const handlers = useHandlers();
|
@@ -30807,7 +30815,9 @@ function NoticePage(props) {
|
|
30807
30815
|
React.createElement(react.Text, { className: react.mergeStyles(moreDetailsStyles), "aria-live": "assertive" }, props.moreDetails),
|
30808
30816
|
!props.disableStartCallButton && (React.createElement(react.Stack, { styles: rejoinCallButtonContainerStyles },
|
30809
30817
|
React.createElement(StartCallButton, { onClick: () => adapter.joinCall(), disabled: false, rejoinCall: true, autoFocus: true })))),
|
30810
|
-
/* @conditional-compile-remove(end-of-call-survey) */ !((_a = props.surveyOptions) === null || _a === void 0 ? void 0 : _a.
|
30818
|
+
/* @conditional-compile-remove(end-of-call-survey) */ !((_a = props.surveyOptions) === null || _a === void 0 ? void 0 : _a.disableSurvey) && (React.createElement(SurveyPane, Object.assign({}, handlers, { onSurveySubmittedCustom: (_b = props.surveyOptions) === null || _b === void 0 ? void 0 : _b.onSurveySubmitted,
|
30819
|
+
/* @conditional-compile-remove(end-of-call-survey-self-host) */
|
30820
|
+
onSurveyDismissed: (_c = props.surveyOptions) === null || _c === void 0 ? void 0 : _c.onSurveyDismissed })))));
|
30811
30821
|
}
|
30812
30822
|
|
30813
30823
|
// Copyright (c) Microsoft Corporation.
|
@@ -31584,22 +31594,22 @@ const MainScreen = (props) => {
|
|
31584
31594
|
case 'accessDeniedTeamsMeeting':
|
31585
31595
|
pageElement = (React.createElement(NoticePage, { iconName: "NoticePageAccessDeniedTeamsMeeting", title: locale.strings.call.failedToJoinTeamsMeetingReasonAccessDeniedTitle, moreDetails: locale.strings.call.failedToJoinTeamsMeetingReasonAccessDeniedMoreDetails, dataUiId: 'access-denied-teams-meeting-page',
|
31586
31596
|
/* @conditional-compile-remove(end-of-call-survey) */
|
31587
|
-
surveyOptions: {
|
31597
|
+
surveyOptions: { disableSurvey: true } }));
|
31588
31598
|
break;
|
31589
31599
|
case 'removedFromCall':
|
31590
31600
|
pageElement = (React.createElement(NoticePage, { iconName: "NoticePageRemovedFromCall", title: locale.strings.call.removedFromCallTitle, moreDetails: locale.strings.call.removedFromCallMoreDetails, dataUiId: 'removed-from-call-page',
|
31591
31601
|
/* @conditional-compile-remove(end-of-call-survey) */
|
31592
|
-
surveyOptions: {
|
31602
|
+
surveyOptions: { disableSurvey: true } }));
|
31593
31603
|
break;
|
31594
31604
|
case 'joinCallFailedDueToNoNetwork':
|
31595
31605
|
pageElement = (React.createElement(NoticePage, { iconName: "NoticePageJoinCallFailedDueToNoNetwork", title: locale.strings.call.failedToJoinCallDueToNoNetworkTitle, moreDetails: locale.strings.call.failedToJoinCallDueToNoNetworkMoreDetails, dataUiId: 'join-call-failed-due-to-no-network-page',
|
31596
31606
|
/* @conditional-compile-remove(end-of-call-survey) */
|
31597
|
-
surveyOptions: {
|
31607
|
+
surveyOptions: { disableSurvey: true } }));
|
31598
31608
|
break;
|
31599
31609
|
case 'leaving':
|
31600
31610
|
pageElement = (React.createElement(NoticePage, { title: (_l = locale.strings.call.leavingCallTitle) !== null && _l !== void 0 ? _l : 'Leaving...', dataUiId: 'leaving-page', pageStyle: leavePageStyle, disableStartCallButton: true,
|
31601
31611
|
/* @conditional-compile-remove(end-of-call-survey) */
|
31602
|
-
surveyOptions: {
|
31612
|
+
surveyOptions: { disableSurvey: true } }));
|
31603
31613
|
break;
|
31604
31614
|
case 'leftCall': {
|
31605
31615
|
const { title, moreDetails, disableStartCallButton, iconName } = getEndedCallPageProps(locale, endedCall);
|