@azure/communication-react 1.4.3-alpha-202301100014.0 → 1.4.3-alpha-202301120014.0

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.
@@ -741,6 +741,11 @@ export declare type CallAdapterClientState = {
741
741
  * {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
742
742
  */
743
743
  roleHint?: Role;
744
+ /**
745
+ * State to track whether the local participant's camera is on. To be used when creating a custom
746
+ * control bar with the CallComposite.
747
+ */
748
+ cameraStatus?: 'On' | 'Off';
744
749
  };
745
750
 
746
751
  /**
@@ -158,7 +158,7 @@ const _toCommunicationIdentifier = (id) => {
158
158
  // Copyright (c) Microsoft Corporation.
159
159
  // Licensed under the MIT license.
160
160
  // GENERATED FILE. DO NOT EDIT MANUALLY.
161
- var telemetryVersion = '1.4.3-alpha-202301100014.0';
161
+ var telemetryVersion = '1.4.3-alpha-202301120014.0';
162
162
 
163
163
  // Copyright (c) Microsoft Corporation.
164
164
  /**
@@ -8156,7 +8156,8 @@ const useVideoTileContextualMenuProps = (props) => {
8156
8156
  },
8157
8157
  onClick: () => {
8158
8158
  view === null || view === void 0 ? void 0 : view.updateScalingMode('Fit');
8159
- }
8159
+ },
8160
+ 'data-ui-id': 'video-tile-fit-to-frame'
8160
8161
  });
8161
8162
  }
8162
8163
  else if (scalingMode === 'Fit' && (strings === null || strings === void 0 ? void 0 : strings.fillRemoteParticipantFrame)) {
@@ -8170,7 +8171,8 @@ const useVideoTileContextualMenuProps = (props) => {
8170
8171
  },
8171
8172
  onClick: () => {
8172
8173
  view === null || view === void 0 ? void 0 : view.updateScalingMode('Crop');
8173
- }
8174
+ },
8175
+ 'data-ui-id': 'video-tile-fill-frame'
8174
8176
  });
8175
8177
  }
8176
8178
  }
@@ -20472,7 +20474,8 @@ class CallContext {
20472
20474
  /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: clientState.alternateCallerId,
20473
20475
  /* @conditional-compile-remove(unsupported-browser) */ environmentInfo: clientState.environmentInfo,
20474
20476
  /* @conditional-compile-remove(unsupported-browser) */ unsupportedBrowserVersionsAllowed: false,
20475
- /* @conditional-compile-remove(rooms) */ roleHint: options === null || options === void 0 ? void 0 : options.roleHint
20477
+ /* @conditional-compile-remove(rooms) */ roleHint: options === null || options === void 0 ? void 0 : options.roleHint,
20478
+ cameraStatus: undefined
20476
20479
  };
20477
20480
  this.emitter.setMaxListeners((_b = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _b !== void 0 ? _b : 50);
20478
20481
  this.bindPublicMethods();
@@ -20528,7 +20531,10 @@ class CallContext {
20528
20531
  call = undefined;
20529
20532
  }
20530
20533
  if (this.state.page) {
20531
- this.setState(Object.assign(Object.assign({}, this.state), { userId: clientState.userId, displayName: (_a = clientState.callAgent) === null || _a === void 0 ? void 0 : _a.displayName, call, page: newPage, endedCall: latestEndedCall, devices: clientState.deviceManager, latestErrors: clientState.latestErrors }));
20534
+ this.setState(Object.assign(Object.assign({}, this.state), { userId: clientState.userId, displayName: (_a = clientState.callAgent) === null || _a === void 0 ? void 0 : _a.displayName, call, page: newPage, endedCall: latestEndedCall, devices: clientState.deviceManager, latestErrors: clientState.latestErrors, cameraStatus: (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((s) => s.mediaStreamType === 'Video')) ||
20535
+ clientState.deviceManager.unparentedViews.find((s) => s.mediaStreamType === 'Video')
20536
+ ? 'On'
20537
+ : 'Off' }));
20532
20538
  }
20533
20539
  }
20534
20540
  /* @conditional-compile-remove(unsupported-browser) */