@microsoft/teams-js 2.0.0-beta.6-dev.9 → 2.0.0-beta.6-dev.12

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.
@@ -1122,7 +1122,7 @@ __webpack_require__.d(__webpack_exports__, {
1122
1122
  });
1123
1123
 
1124
1124
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1125
- var version = "2.0.0-beta.6-dev.9";
1125
+ var version = "2.0.0-beta.6-dev.12";
1126
1126
  /**
1127
1127
  * @hidden
1128
1128
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -4350,6 +4350,7 @@ function createMessageEvent(func, args) {
4350
4350
 
4351
4351
 
4352
4352
 
4353
+
4353
4354
  /**
4354
4355
  * @hidden
4355
4356
  * Namespace to interact with the logging part of the SDK.
@@ -4371,6 +4372,9 @@ var logs;
4371
4372
  */
4372
4373
  function registerGetLogHandler(handler) {
4373
4374
  ensureInitialized();
4375
+ if (!isSupported()) {
4376
+ throw errorNotSupportedOnPlatform;
4377
+ }
4374
4378
  if (handler) {
4375
4379
  registerHandler('log.request', function () {
4376
4380
  var log = handler();
@@ -6023,6 +6027,9 @@ var video;
6023
6027
  */
6024
6028
  function registerForVideoFrame(frameCallback, config) {
6025
6029
  ensureInitialized(FrameContexts.sidePanel);
6030
+ if (!isSupported()) {
6031
+ throw errorNotSupportedOnPlatform;
6032
+ }
6026
6033
  registerHandler('video.newVideoFrame', function (videoFrame) {
6027
6034
  if (videoFrame !== undefined) {
6028
6035
  frameCallback(videoFrame, notifyVideoFrameProcessed, notifyError);
@@ -6041,6 +6048,9 @@ var video;
6041
6048
  */
6042
6049
  function notifySelectedVideoEffectChanged(effectChangeType, effectId) {
6043
6050
  ensureInitialized(FrameContexts.sidePanel);
6051
+ if (!isSupported()) {
6052
+ throw errorNotSupportedOnPlatform;
6053
+ }
6044
6054
  sendMessageToParent('video.videoEffectChanged', [effectChangeType, effectId]);
6045
6055
  }
6046
6056
  video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
@@ -6049,6 +6059,9 @@ var video;
6049
6059
  */
6050
6060
  function registerForVideoEffect(callback) {
6051
6061
  ensureInitialized(FrameContexts.sidePanel);
6062
+ if (!isSupported()) {
6063
+ throw errorNotSupportedOnPlatform;
6064
+ }
6052
6065
  registerHandler('video.effectParameterChange', callback);
6053
6066
  }
6054
6067
  video.registerForVideoEffect = registerForVideoEffect;
@@ -6893,7 +6906,6 @@ var tasks;
6893
6906
  * @param submitHandler - Handler to call when the task module is completed
6894
6907
  */
6895
6908
  function startTask(taskInfo, submitHandler) {
6896
- taskInfo = getDefaultSizeIfNotProvided(taskInfo);
6897
6909
  if (taskInfo.card !== undefined || taskInfo.url === undefined) {
6898
6910
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
6899
6911
  sendMessageToParent('tasks.startTask', [taskInfo], submitHandler);
@@ -6946,8 +6958,8 @@ var tasks;
6946
6958
  var urldialogInfo = {
6947
6959
  url: taskInfo.url,
6948
6960
  size: {
6949
- height: taskInfo.height,
6950
- width: taskInfo.width,
6961
+ height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
6962
+ width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
6951
6963
  },
6952
6964
  title: taskInfo.title,
6953
6965
  fallbackUrl: taskInfo.fallbackUrl,
@@ -6959,8 +6971,8 @@ var tasks;
6959
6971
  var botUrldialogInfo = {
6960
6972
  url: taskInfo.url,
6961
6973
  size: {
6962
- height: taskInfo.height,
6963
- width: taskInfo.width,
6974
+ height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
6975
+ width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
6964
6976
  },
6965
6977
  title: taskInfo.title,
6966
6978
  fallbackUrl: taskInfo.fallbackUrl,