@microsoft/teams-js 2.0.0-beta.6-dev.8 → 2.0.0-beta.6-dev.11

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.8";
1125
+ var version = "2.0.0-beta.6-dev.11";
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.
@@ -2491,6 +2491,29 @@ function generateBackCompatRuntimeConfig(highestSupportedVersion) {
2491
2491
  function applyRuntimeConfig(runtimeConfig) {
2492
2492
  runtime = deepFreeze(runtimeConfig);
2493
2493
  }
2494
+ /**
2495
+ * @hidden
2496
+ * Hide from docs.
2497
+ * ------
2498
+ * Constant used to set minimum runtime configuration
2499
+ * while un-initializing an app in unit test case.
2500
+ *
2501
+ * @internal
2502
+ */
2503
+ var _minRuntimeConfigToUninitialize = {
2504
+ apiVersion: 1,
2505
+ supports: {
2506
+ pages: {
2507
+ appButton: {},
2508
+ tabs: {},
2509
+ config: {},
2510
+ backStack: {},
2511
+ fullTrust: {},
2512
+ },
2513
+ teamsCore: {},
2514
+ logs: {},
2515
+ },
2516
+ };
2494
2517
 
2495
2518
  ;// CONCATENATED MODULE: ./src/public/dialog.ts
2496
2519
  /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
@@ -4327,6 +4350,7 @@ function createMessageEvent(func, args) {
4327
4350
 
4328
4351
 
4329
4352
 
4353
+
4330
4354
  /**
4331
4355
  * @hidden
4332
4356
  * Namespace to interact with the logging part of the SDK.
@@ -4348,6 +4372,9 @@ var logs;
4348
4372
  */
4349
4373
  function registerGetLogHandler(handler) {
4350
4374
  ensureInitialized();
4375
+ if (!isSupported()) {
4376
+ throw errorNotSupportedOnPlatform;
4377
+ }
4351
4378
  if (handler) {
4352
4379
  registerHandler('log.request', function () {
4353
4380
  var log = handler();
@@ -6870,7 +6897,6 @@ var tasks;
6870
6897
  * @param submitHandler - Handler to call when the task module is completed
6871
6898
  */
6872
6899
  function startTask(taskInfo, submitHandler) {
6873
- taskInfo = getDefaultSizeIfNotProvided(taskInfo);
6874
6900
  if (taskInfo.card !== undefined || taskInfo.url === undefined) {
6875
6901
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
6876
6902
  sendMessageToParent('tasks.startTask', [taskInfo], submitHandler);
@@ -6923,8 +6949,8 @@ var tasks;
6923
6949
  var urldialogInfo = {
6924
6950
  url: taskInfo.url,
6925
6951
  size: {
6926
- height: taskInfo.height,
6927
- width: taskInfo.width,
6952
+ height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
6953
+ width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
6928
6954
  },
6929
6955
  title: taskInfo.title,
6930
6956
  fallbackUrl: taskInfo.fallbackUrl,
@@ -6936,8 +6962,8 @@ var tasks;
6936
6962
  var botUrldialogInfo = {
6937
6963
  url: taskInfo.url,
6938
6964
  size: {
6939
- height: taskInfo.height,
6940
- width: taskInfo.width,
6965
+ height: taskInfo.height ? taskInfo.height : TaskModuleDimension.Small,
6966
+ width: taskInfo.width ? taskInfo.width : TaskModuleDimension.Small,
6941
6967
  },
6942
6968
  title: taskInfo.title,
6943
6969
  fallbackUrl: taskInfo.fallbackUrl,