@microsoft/teams-js 1.11.0 → 1.12.0-beta.1

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.
@@ -699,7 +699,7 @@ function handleBeforeUnload() {
699
699
  Object.defineProperty(exports, "__esModule", { value: true });
700
700
  exports.userOriginUrlValidationRegExp = exports.validOriginRegExp = exports.validOrigins = exports.scanBarCodeAPIMobileSupportVersion = exports.getMediaCallbackSupportVersion = exports.mediaAPISupportVersion = exports.captureImageMobileSupportVersion = exports.peoplePickerRequiredVersion = exports.locationAPIsRequiredVersion = exports.getUserJoinedTeamsSupportedAndroidClientVersion = exports.videoAndImageMediaAPISupportVersion = exports.defaultSDKVersionForCompatCheck = exports.version = void 0;
701
701
  var utils_1 = __webpack_require__(5);
702
- exports.version = '1.11.0';
702
+ exports.version = '1.12.0-beta.1';
703
703
  /**
704
704
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
705
705
  * Modified to 2.0.1 which is hightest till now so that if any client doesn't pass version in initialize function, it will be set to highest.
@@ -3273,7 +3273,7 @@ var tasks;
3273
3273
  * @param taskInfo An object containing width and height properties
3274
3274
  */
3275
3275
  function updateTask(taskInfo) {
3276
- (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.task);
3276
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.meetingStage);
3277
3277
  var width = taskInfo.width, height = taskInfo.height, extra = __rest(taskInfo, ["width", "height"]);
3278
3278
  if (!Object.keys(extra).length) {
3279
3279
  (0, communication_1.sendMessageToParent)('tasks.updateTask', [taskInfo]);
@@ -3289,7 +3289,7 @@ var tasks;
3289
3289
  * @param appIds Helps to validate that the call originates from the same appId as the one that invoked the task module
3290
3290
  */
3291
3291
  function submitTask(result, appIds) {
3292
- (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.task);
3292
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.meetingStage);
3293
3293
  // Send tasks.completeTask instead of tasks.submitTask message for backward compatibility with Mobile clients
3294
3294
  (0, communication_1.sendMessageToParent)('tasks.completeTask', [result, Array.isArray(appIds) ? appIds : [appIds]]);
3295
3295
  }
@@ -4456,8 +4456,8 @@ var appEntity;
4456
4456
  * @param subEntityId An object that will be made available to the application being configured
4457
4457
  * through the Teams Context's subEntityId field.
4458
4458
  * @param callback Callback that will be triggered once the app entity information is available.
4459
- * The callback takes two arguments: the app entity configuration, if available and
4460
- * an optional SdkError in case something happened (i.e. the window was closed)
4459
+ * The callback takes two arguments: an SdkError in case something happened (i.e.
4460
+ * no permissions to execute the API) and the app entity configuration, if available
4461
4461
  */
4462
4462
  function selectAppEntity(threadId, categories, subEntityId, callback) {
4463
4463
  (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);