@microsoft/teams-js 1.11.0-beta.7 → 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.
@@ -100,7 +100,18 @@ return /******/ (function(modules) { // webpackBootstrap
100
100
 
101
101
  "use strict";
102
102
 
103
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
104
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
105
+ if (ar || !(i in from)) {
106
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
107
+ ar[i] = from[i];
108
+ }
109
+ }
110
+ return to.concat(ar || Array.prototype.slice.call(from));
111
+ };
103
112
  Object.defineProperty(exports, "__esModule", { value: true });
113
+ exports.sendMessageEventToChild = exports.waitForMessageQueue = exports.sendMessageToParent = exports.uninitializeCommunication = exports.initializeCommunication = exports.Communication = void 0;
114
+ /* eslint-disable @typescript-eslint/ban-types */
104
115
  var constants_1 = __webpack_require__(4);
105
116
  var globalVars_1 = __webpack_require__(6);
106
117
  var handlers_1 = __webpack_require__(3);
@@ -136,6 +147,7 @@ function initializeCommunication(callback, validMessageOrigins) {
136
147
  }
137
148
  if (!Communication.parentWindow) {
138
149
  globalVars_1.GlobalVars.isFramelessWindow = true;
150
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
139
151
  // @ts-ignore: window as ExtendedWindow
140
152
  window.onNativeMessage = handleParentMessage;
141
153
  }
@@ -271,7 +283,7 @@ function handleParentMessage(evt) {
271
283
  var message = evt.data;
272
284
  var callback = CommunicationPrivate.callbacks[message.id];
273
285
  if (callback) {
274
- callback.apply(null, message.args.concat([message.isPartialResponse]));
286
+ callback.apply(null, __spreadArray(__spreadArray([], message.args, true), [message.isPartialResponse], false));
275
287
  // Remove the callback to ensure that the callback is called only once and to free up memory if response is a complete response
276
288
  if (!isPartialResponse(evt)) {
277
289
  delete CommunicationPrivate.callbacks[message.id];
@@ -281,7 +293,7 @@ function handleParentMessage(evt) {
281
293
  else if ('func' in evt.data && typeof evt.data.func === 'string') {
282
294
  // Delegate the request to the proper handler
283
295
  var message = evt.data;
284
- handlers_1.callHandler(message.func, message.args);
296
+ (0, handlers_1.callHandler)(message.func, message.args);
285
297
  }
286
298
  }
287
299
  function isPartialResponse(evt) {
@@ -291,7 +303,7 @@ function handleChildMessage(evt) {
291
303
  if ('id' in evt.data && 'func' in evt.data) {
292
304
  // Try to delegate the request to the proper handler, if defined
293
305
  var message_1 = evt.data;
294
- var _a = handlers_1.callHandler(message_1.func, message_1.args), called = _a[0], result = _a[1];
306
+ var _a = (0, handlers_1.callHandler)(message_1.func, message_1.args), called = _a[0], result = _a[1];
295
307
  if (called && typeof result !== 'undefined') {
296
308
  sendMessageResponseToChild(message_1.id, Array.isArray(result) ? result : [result]);
297
309
  }
@@ -410,6 +422,7 @@ function createMessageEvent(func, args) {
410
422
  "use strict";
411
423
 
412
424
  Object.defineProperty(exports, "__esModule", { value: true });
425
+ exports.processAdditionalValidOrigins = exports.isAPISupportedByPlatform = exports.ensureInitialized = void 0;
413
426
  var constants_1 = __webpack_require__(4);
414
427
  var globalVars_1 = __webpack_require__(6);
415
428
  var utils_1 = __webpack_require__(5);
@@ -442,7 +455,7 @@ exports.ensureInitialized = ensureInitialized;
442
455
  */
443
456
  function isAPISupportedByPlatform(requiredVersion) {
444
457
  if (requiredVersion === void 0) { requiredVersion = constants_1.defaultSDKVersionForCompatCheck; }
445
- var value = utils_1.compareSDKVersions(globalVars_1.GlobalVars.clientSupportedSDKVersion, requiredVersion);
458
+ var value = (0, utils_1.compareSDKVersions)(globalVars_1.GlobalVars.clientSupportedSDKVersion, requiredVersion);
446
459
  if (isNaN(value)) {
447
460
  return false;
448
461
  }
@@ -467,7 +480,7 @@ function processAdditionalValidOrigins(validMessageOrigins) {
467
480
  });
468
481
  globalVars_1.GlobalVars.additionalValidOrigins = combinedOriginUrls;
469
482
  if (globalVars_1.GlobalVars.additionalValidOrigins.length > 0) {
470
- globalVars_1.GlobalVars.additionalValidOriginsRegexp = utils_1.generateRegExpFromUrls(globalVars_1.GlobalVars.additionalValidOrigins);
483
+ globalVars_1.GlobalVars.additionalValidOriginsRegexp = (0, utils_1.generateRegExpFromUrls)(globalVars_1.GlobalVars.additionalValidOrigins);
471
484
  }
472
485
  else {
473
486
  globalVars_1.GlobalVars.additionalValidOriginsRegexp = null;
@@ -483,6 +496,7 @@ exports.processAdditionalValidOrigins = processAdditionalValidOrigins;
483
496
  "use strict";
484
497
 
485
498
  Object.defineProperty(exports, "__esModule", { value: true });
499
+ exports.ChannelType = exports.TaskModuleDimension = exports.UserTeamRole = exports.TeamType = exports.FrameContexts = exports.HostClientType = void 0;
486
500
  var HostClientType;
487
501
  (function (HostClientType) {
488
502
  HostClientType["desktop"] = "desktop";
@@ -558,7 +572,18 @@ var ChannelType;
558
572
 
559
573
  "use strict";
560
574
 
575
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
576
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
577
+ if (ar || !(i in from)) {
578
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
579
+ ar[i] = from[i];
580
+ }
581
+ }
582
+ return to.concat(ar || Array.prototype.slice.call(from));
583
+ };
561
584
  Object.defineProperty(exports, "__esModule", { value: true });
585
+ exports.registerBeforeUnloadHandler = exports.registerOnLoadHandler = exports.registerFocusEnterHandler = exports.registerBackButtonHandler = exports.handleThemeChange = exports.registerOnThemeChangeHandler = exports.removeHandler = exports.registerHandler = exports.callHandler = exports.initializeHandlers = void 0;
586
+ /* eslint-disable @typescript-eslint/ban-types */
562
587
  var public_1 = __webpack_require__(8);
563
588
  var communication_1 = __webpack_require__(0);
564
589
  var HandlersPrivate = /** @class */ (function () {
@@ -592,7 +617,7 @@ function registerHandler(name, handler, sendMessage, args) {
592
617
  if (args === void 0) { args = []; }
593
618
  if (handler) {
594
619
  HandlersPrivate.handlers[name] = handler;
595
- sendMessage && communication_1.sendMessageToParent('registerHandler', [name].concat(args));
620
+ sendMessage && (0, communication_1.sendMessageToParent)('registerHandler', __spreadArray([name], args, true));
596
621
  }
597
622
  else {
598
623
  delete HandlersPrivate.handlers[name];
@@ -605,7 +630,7 @@ function removeHandler(name) {
605
630
  exports.removeHandler = removeHandler;
606
631
  function registerOnThemeChangeHandler(handler) {
607
632
  HandlersPrivate.themeChangeHandler = handler;
608
- handler && communication_1.sendMessageToParent('registerHandler', ['themeChange']);
633
+ handler && (0, communication_1.sendMessageToParent)('registerHandler', ['themeChange']);
609
634
  }
610
635
  exports.registerOnThemeChangeHandler = registerOnThemeChangeHandler;
611
636
  function handleThemeChange(theme) {
@@ -613,23 +638,23 @@ function handleThemeChange(theme) {
613
638
  HandlersPrivate.themeChangeHandler(theme);
614
639
  }
615
640
  if (communication_1.Communication.childWindow) {
616
- communication_1.sendMessageEventToChild('themeChange', [theme]);
641
+ (0, communication_1.sendMessageEventToChild)('themeChange', [theme]);
617
642
  }
618
643
  }
619
644
  exports.handleThemeChange = handleThemeChange;
620
645
  function registerBackButtonHandler(handler) {
621
646
  HandlersPrivate.backButtonPressHandler = handler;
622
- handler && communication_1.sendMessageToParent('registerHandler', ['backButton']);
647
+ handler && (0, communication_1.sendMessageToParent)('registerHandler', ['backButton']);
623
648
  }
624
649
  exports.registerBackButtonHandler = registerBackButtonHandler;
625
650
  function handleBackButtonPress() {
626
651
  if (!HandlersPrivate.backButtonPressHandler || !HandlersPrivate.backButtonPressHandler()) {
627
- public_1.navigateBack();
652
+ (0, public_1.navigateBack)();
628
653
  }
629
654
  }
630
655
  function registerFocusEnterHandler(handler) {
631
656
  HandlersPrivate.focusEnterHandler = handler;
632
- handler && communication_1.sendMessageToParent('registerHandler', ['focusEnter']);
657
+ handler && (0, communication_1.sendMessageToParent)('registerHandler', ['focusEnter']);
633
658
  }
634
659
  exports.registerFocusEnterHandler = registerFocusEnterHandler;
635
660
  function handleFocusEnter(navigateForward) {
@@ -639,7 +664,7 @@ function handleFocusEnter(navigateForward) {
639
664
  }
640
665
  function registerOnLoadHandler(handler) {
641
666
  HandlersPrivate.loadHandler = handler;
642
- handler && communication_1.sendMessageToParent('registerHandler', ['load']);
667
+ handler && (0, communication_1.sendMessageToParent)('registerHandler', ['load']);
643
668
  }
644
669
  exports.registerOnLoadHandler = registerOnLoadHandler;
645
670
  function handleLoad(context) {
@@ -647,17 +672,17 @@ function handleLoad(context) {
647
672
  HandlersPrivate.loadHandler(context);
648
673
  }
649
674
  if (communication_1.Communication.childWindow) {
650
- communication_1.sendMessageEventToChild('load', [context]);
675
+ (0, communication_1.sendMessageEventToChild)('load', [context]);
651
676
  }
652
677
  }
653
678
  function registerBeforeUnloadHandler(handler) {
654
679
  HandlersPrivate.beforeUnloadHandler = handler;
655
- handler && communication_1.sendMessageToParent('registerHandler', ['beforeUnload']);
680
+ handler && (0, communication_1.sendMessageToParent)('registerHandler', ['beforeUnload']);
656
681
  }
657
682
  exports.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
658
683
  function handleBeforeUnload() {
659
684
  var readyToUnload = function () {
660
- communication_1.sendMessageToParent('readyToUnload', []);
685
+ (0, communication_1.sendMessageToParent)('readyToUnload', []);
661
686
  };
662
687
  if (!HandlersPrivate.beforeUnloadHandler || !HandlersPrivate.beforeUnloadHandler(readyToUnload)) {
663
688
  readyToUnload();
@@ -672,8 +697,9 @@ function handleBeforeUnload() {
672
697
  "use strict";
673
698
 
674
699
  Object.defineProperty(exports, "__esModule", { value: true });
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;
675
701
  var utils_1 = __webpack_require__(5);
676
- exports.version = '1.11.0-beta.7';
702
+ exports.version = '1.12.0-beta.1';
677
703
  /**
678
704
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
679
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.
@@ -742,7 +768,7 @@ exports.validOrigins = [
742
768
  'https://www.officeppe.com',
743
769
  'https://*.www.office.com',
744
770
  ];
745
- exports.validOriginRegExp = utils_1.generateRegExpFromUrls(exports.validOrigins);
771
+ exports.validOriginRegExp = (0, utils_1.generateRegExpFromUrls)(exports.validOrigins);
746
772
  /**
747
773
  * USer specified message origins should satisfy this test
748
774
  */
@@ -756,6 +782,7 @@ exports.userOriginUrlValidationRegExp = /^https\:\/\//;
756
782
  "use strict";
757
783
 
758
784
  Object.defineProperty(exports, "__esModule", { value: true });
785
+ exports.generateGUID = exports.compareSDKVersions = exports.getGenericOnCompleteHandler = exports.generateRegExpFromUrls = void 0;
759
786
  var uuid = __webpack_require__(22);
760
787
  // This will return a reg expression a given url
761
788
  function generateRegExpFromUrl(url) {
@@ -850,6 +877,7 @@ exports.generateGUID = generateGUID;
850
877
  "use strict";
851
878
 
852
879
  Object.defineProperty(exports, "__esModule", { value: true });
880
+ exports.GlobalVars = void 0;
853
881
  var GlobalVars = /** @class */ (function () {
854
882
  function GlobalVars() {
855
883
  }
@@ -872,6 +900,7 @@ exports.GlobalVars = GlobalVars;
872
900
  "use strict";
873
901
 
874
902
  Object.defineProperty(exports, "__esModule", { value: true });
903
+ exports.ErrorCode = exports.FileOpenPreference = void 0;
875
904
  /**
876
905
  * Allowed user file open preferences
877
906
  */
@@ -953,67 +982,68 @@ var ErrorCode;
953
982
  "use strict";
954
983
 
955
984
  Object.defineProperty(exports, "__esModule", { value: true });
985
+ exports.sharing = exports.video = exports.people = exports.monetization = exports.meeting = exports.location = exports.media = exports.ParentAppWindow = exports.ChildAppWindow = exports.tasks = exports.settings = exports.navigateToTab = exports.navigateCrossDomain = exports.navigateBack = exports.returnFocus = exports.shareDeepLink = exports.setFrameContext = exports.registerAppButtonHoverLeaveHandler = exports.registerAppButtonHoverEnterHandler = exports.registerAppButtonClickHandler = exports.registerOnThemeChangeHandler = exports.registerOnLoadHandler = exports.registerFullScreenHandler = exports.registerEnterSettingsHandler = exports.registerFocusEnterHandler = exports.registerBeforeUnloadHandler = exports.registerBackButtonHandler = exports.print = exports.initializeWithFrameContext = exports.initialize = exports.getTabInstances = exports.getMruTabInstances = exports.getContext = exports.executeDeepLink = exports.enablePrintCapability = exports.FileOpenPreference = exports.ErrorCode = exports.ChannelType = exports.UserTeamRole = exports.TeamType = exports.TaskModuleDimension = exports.HostClientType = exports.FrameContexts = exports.authentication = exports.appInitialization = void 0;
956
986
  var appInitialization_1 = __webpack_require__(25);
957
- exports.appInitialization = appInitialization_1.appInitialization;
987
+ Object.defineProperty(exports, "appInitialization", { enumerable: true, get: function () { return appInitialization_1.appInitialization; } });
958
988
  var authentication_1 = __webpack_require__(11);
959
- exports.authentication = authentication_1.authentication;
989
+ Object.defineProperty(exports, "authentication", { enumerable: true, get: function () { return authentication_1.authentication; } });
960
990
  var constants_1 = __webpack_require__(2);
961
- exports.FrameContexts = constants_1.FrameContexts;
962
- exports.HostClientType = constants_1.HostClientType;
963
- exports.TaskModuleDimension = constants_1.TaskModuleDimension;
964
- exports.TeamType = constants_1.TeamType;
965
- exports.UserTeamRole = constants_1.UserTeamRole;
966
- exports.ChannelType = constants_1.ChannelType;
991
+ Object.defineProperty(exports, "FrameContexts", { enumerable: true, get: function () { return constants_1.FrameContexts; } });
992
+ Object.defineProperty(exports, "HostClientType", { enumerable: true, get: function () { return constants_1.HostClientType; } });
993
+ Object.defineProperty(exports, "TaskModuleDimension", { enumerable: true, get: function () { return constants_1.TaskModuleDimension; } });
994
+ Object.defineProperty(exports, "TeamType", { enumerable: true, get: function () { return constants_1.TeamType; } });
995
+ Object.defineProperty(exports, "UserTeamRole", { enumerable: true, get: function () { return constants_1.UserTeamRole; } });
996
+ Object.defineProperty(exports, "ChannelType", { enumerable: true, get: function () { return constants_1.ChannelType; } });
967
997
  var interfaces_1 = __webpack_require__(7);
968
- exports.ErrorCode = interfaces_1.ErrorCode;
969
- exports.FileOpenPreference = interfaces_1.FileOpenPreference;
998
+ Object.defineProperty(exports, "ErrorCode", { enumerable: true, get: function () { return interfaces_1.ErrorCode; } });
999
+ Object.defineProperty(exports, "FileOpenPreference", { enumerable: true, get: function () { return interfaces_1.FileOpenPreference; } });
970
1000
  var publicAPIs_1 = __webpack_require__(26);
971
- exports.enablePrintCapability = publicAPIs_1.enablePrintCapability;
972
- exports.executeDeepLink = publicAPIs_1.executeDeepLink;
973
- exports.getContext = publicAPIs_1.getContext;
974
- exports.getMruTabInstances = publicAPIs_1.getMruTabInstances;
975
- exports.getTabInstances = publicAPIs_1.getTabInstances;
976
- exports.initialize = publicAPIs_1.initialize;
977
- exports.initializeWithFrameContext = publicAPIs_1.initializeWithFrameContext;
978
- exports.print = publicAPIs_1.print;
979
- exports.registerBackButtonHandler = publicAPIs_1.registerBackButtonHandler;
980
- exports.registerBeforeUnloadHandler = publicAPIs_1.registerBeforeUnloadHandler;
981
- exports.registerFocusEnterHandler = publicAPIs_1.registerFocusEnterHandler;
982
- exports.registerEnterSettingsHandler = publicAPIs_1.registerEnterSettingsHandler;
983
- exports.registerFullScreenHandler = publicAPIs_1.registerFullScreenHandler;
984
- exports.registerOnLoadHandler = publicAPIs_1.registerOnLoadHandler;
985
- exports.registerOnThemeChangeHandler = publicAPIs_1.registerOnThemeChangeHandler;
986
- exports.registerAppButtonClickHandler = publicAPIs_1.registerAppButtonClickHandler;
987
- exports.registerAppButtonHoverEnterHandler = publicAPIs_1.registerAppButtonHoverEnterHandler;
988
- exports.registerAppButtonHoverLeaveHandler = publicAPIs_1.registerAppButtonHoverLeaveHandler;
989
- exports.setFrameContext = publicAPIs_1.setFrameContext;
990
- exports.shareDeepLink = publicAPIs_1.shareDeepLink;
1001
+ Object.defineProperty(exports, "enablePrintCapability", { enumerable: true, get: function () { return publicAPIs_1.enablePrintCapability; } });
1002
+ Object.defineProperty(exports, "executeDeepLink", { enumerable: true, get: function () { return publicAPIs_1.executeDeepLink; } });
1003
+ Object.defineProperty(exports, "getContext", { enumerable: true, get: function () { return publicAPIs_1.getContext; } });
1004
+ Object.defineProperty(exports, "getMruTabInstances", { enumerable: true, get: function () { return publicAPIs_1.getMruTabInstances; } });
1005
+ Object.defineProperty(exports, "getTabInstances", { enumerable: true, get: function () { return publicAPIs_1.getTabInstances; } });
1006
+ Object.defineProperty(exports, "initialize", { enumerable: true, get: function () { return publicAPIs_1.initialize; } });
1007
+ Object.defineProperty(exports, "initializeWithFrameContext", { enumerable: true, get: function () { return publicAPIs_1.initializeWithFrameContext; } });
1008
+ Object.defineProperty(exports, "print", { enumerable: true, get: function () { return publicAPIs_1.print; } });
1009
+ Object.defineProperty(exports, "registerBackButtonHandler", { enumerable: true, get: function () { return publicAPIs_1.registerBackButtonHandler; } });
1010
+ Object.defineProperty(exports, "registerBeforeUnloadHandler", { enumerable: true, get: function () { return publicAPIs_1.registerBeforeUnloadHandler; } });
1011
+ Object.defineProperty(exports, "registerFocusEnterHandler", { enumerable: true, get: function () { return publicAPIs_1.registerFocusEnterHandler; } });
1012
+ Object.defineProperty(exports, "registerEnterSettingsHandler", { enumerable: true, get: function () { return publicAPIs_1.registerEnterSettingsHandler; } });
1013
+ Object.defineProperty(exports, "registerFullScreenHandler", { enumerable: true, get: function () { return publicAPIs_1.registerFullScreenHandler; } });
1014
+ Object.defineProperty(exports, "registerOnLoadHandler", { enumerable: true, get: function () { return publicAPIs_1.registerOnLoadHandler; } });
1015
+ Object.defineProperty(exports, "registerOnThemeChangeHandler", { enumerable: true, get: function () { return publicAPIs_1.registerOnThemeChangeHandler; } });
1016
+ Object.defineProperty(exports, "registerAppButtonClickHandler", { enumerable: true, get: function () { return publicAPIs_1.registerAppButtonClickHandler; } });
1017
+ Object.defineProperty(exports, "registerAppButtonHoverEnterHandler", { enumerable: true, get: function () { return publicAPIs_1.registerAppButtonHoverEnterHandler; } });
1018
+ Object.defineProperty(exports, "registerAppButtonHoverLeaveHandler", { enumerable: true, get: function () { return publicAPIs_1.registerAppButtonHoverLeaveHandler; } });
1019
+ Object.defineProperty(exports, "setFrameContext", { enumerable: true, get: function () { return publicAPIs_1.setFrameContext; } });
1020
+ Object.defineProperty(exports, "shareDeepLink", { enumerable: true, get: function () { return publicAPIs_1.shareDeepLink; } });
991
1021
  var navigation_1 = __webpack_require__(27);
992
- exports.returnFocus = navigation_1.returnFocus;
993
- exports.navigateBack = navigation_1.navigateBack;
994
- exports.navigateCrossDomain = navigation_1.navigateCrossDomain;
995
- exports.navigateToTab = navigation_1.navigateToTab;
1022
+ Object.defineProperty(exports, "returnFocus", { enumerable: true, get: function () { return navigation_1.returnFocus; } });
1023
+ Object.defineProperty(exports, "navigateBack", { enumerable: true, get: function () { return navigation_1.navigateBack; } });
1024
+ Object.defineProperty(exports, "navigateCrossDomain", { enumerable: true, get: function () { return navigation_1.navigateCrossDomain; } });
1025
+ Object.defineProperty(exports, "navigateToTab", { enumerable: true, get: function () { return navigation_1.navigateToTab; } });
996
1026
  var settings_1 = __webpack_require__(12);
997
- exports.settings = settings_1.settings;
1027
+ Object.defineProperty(exports, "settings", { enumerable: true, get: function () { return settings_1.settings; } });
998
1028
  var tasks_1 = __webpack_require__(28);
999
- exports.tasks = tasks_1.tasks;
1029
+ Object.defineProperty(exports, "tasks", { enumerable: true, get: function () { return tasks_1.tasks; } });
1000
1030
  var appWindow_1 = __webpack_require__(16);
1001
- exports.ChildAppWindow = appWindow_1.ChildAppWindow;
1002
- exports.ParentAppWindow = appWindow_1.ParentAppWindow;
1031
+ Object.defineProperty(exports, "ChildAppWindow", { enumerable: true, get: function () { return appWindow_1.ChildAppWindow; } });
1032
+ Object.defineProperty(exports, "ParentAppWindow", { enumerable: true, get: function () { return appWindow_1.ParentAppWindow; } });
1003
1033
  var media_1 = __webpack_require__(17);
1004
- exports.media = media_1.media;
1034
+ Object.defineProperty(exports, "media", { enumerable: true, get: function () { return media_1.media; } });
1005
1035
  var location_1 = __webpack_require__(29);
1006
- exports.location = location_1.location;
1036
+ Object.defineProperty(exports, "location", { enumerable: true, get: function () { return location_1.location; } });
1007
1037
  var meeting_1 = __webpack_require__(30);
1008
- exports.meeting = meeting_1.meeting;
1038
+ Object.defineProperty(exports, "meeting", { enumerable: true, get: function () { return meeting_1.meeting; } });
1009
1039
  var monetization_1 = __webpack_require__(31);
1010
- exports.monetization = monetization_1.monetization;
1040
+ Object.defineProperty(exports, "monetization", { enumerable: true, get: function () { return monetization_1.monetization; } });
1011
1041
  var people_1 = __webpack_require__(32);
1012
- exports.people = people_1.people;
1042
+ Object.defineProperty(exports, "people", { enumerable: true, get: function () { return people_1.people; } });
1013
1043
  var video_1 = __webpack_require__(33);
1014
- exports.video = video_1.video;
1044
+ Object.defineProperty(exports, "video", { enumerable: true, get: function () { return video_1.video; } });
1015
1045
  var sharing_1 = __webpack_require__(34);
1016
- exports.sharing = sharing_1.sharing;
1046
+ Object.defineProperty(exports, "sharing", { enumerable: true, get: function () { return sharing_1.sharing; } });
1017
1047
 
1018
1048
 
1019
1049
  /***/ }),
@@ -1073,14 +1103,16 @@ function bytesToUuid(buf, offset) {
1073
1103
  var i = offset || 0;
1074
1104
  var bth = byteToHex;
1075
1105
  // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
1076
- return ([bth[buf[i++]], bth[buf[i++]],
1077
- bth[buf[i++]], bth[buf[i++]], '-',
1078
- bth[buf[i++]], bth[buf[i++]], '-',
1079
- bth[buf[i++]], bth[buf[i++]], '-',
1080
- bth[buf[i++]], bth[buf[i++]], '-',
1081
- bth[buf[i++]], bth[buf[i++]],
1082
- bth[buf[i++]], bth[buf[i++]],
1083
- bth[buf[i++]], bth[buf[i++]]]).join('');
1106
+ return ([
1107
+ bth[buf[i++]], bth[buf[i++]],
1108
+ bth[buf[i++]], bth[buf[i++]], '-',
1109
+ bth[buf[i++]], bth[buf[i++]], '-',
1110
+ bth[buf[i++]], bth[buf[i++]], '-',
1111
+ bth[buf[i++]], bth[buf[i++]], '-',
1112
+ bth[buf[i++]], bth[buf[i++]],
1113
+ bth[buf[i++]], bth[buf[i++]],
1114
+ bth[buf[i++]], bth[buf[i++]]
1115
+ ]).join('');
1084
1116
  }
1085
1117
 
1086
1118
  module.exports = bytesToUuid;
@@ -1093,6 +1125,7 @@ module.exports = bytesToUuid;
1093
1125
  "use strict";
1094
1126
 
1095
1127
  Object.defineProperty(exports, "__esModule", { value: true });
1128
+ exports.authentication = void 0;
1096
1129
  var internalAPIs_1 = __webpack_require__(1);
1097
1130
  var globalVars_1 = __webpack_require__(6);
1098
1131
  var constants_1 = __webpack_require__(2);
@@ -1107,8 +1140,8 @@ var authentication;
1107
1140
  var authParams;
1108
1141
  var authWindowMonitor;
1109
1142
  function initialize() {
1110
- handlers_1.registerHandler('authentication.authenticate.success', handleSuccess, false);
1111
- handlers_1.registerHandler('authentication.authenticate.failure', handleFailure, false);
1143
+ (0, handlers_1.registerHandler)('authentication.authenticate.success', handleSuccess, false);
1144
+ (0, handlers_1.registerHandler)('authentication.authenticate.failure', handleFailure, false);
1112
1145
  }
1113
1146
  authentication.initialize = initialize;
1114
1147
  /**
@@ -1124,7 +1157,7 @@ var authentication;
1124
1157
  */
1125
1158
  function authenticate(authenticateParameters) {
1126
1159
  var authenticateParams = authenticateParameters !== undefined ? authenticateParameters : authParams;
1127
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.settings, constants_1.FrameContexts.remove, constants_1.FrameContexts.task, constants_1.FrameContexts.stage, constants_1.FrameContexts.meetingStage);
1160
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.settings, constants_1.FrameContexts.remove, constants_1.FrameContexts.task, constants_1.FrameContexts.stage, constants_1.FrameContexts.meetingStage);
1128
1161
  if (globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.desktop ||
1129
1162
  globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.android ||
1130
1163
  globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.ios ||
@@ -1137,7 +1170,7 @@ var authentication;
1137
1170
  var link = document.createElement('a');
1138
1171
  link.href = authenticateParams.url;
1139
1172
  // Ask the parent window to open an authentication window with the parameters provided by the caller.
1140
- communication_1.sendMessageToParent('authentication.authenticate', [link.href, authenticateParams.width, authenticateParams.height], function (success, response) {
1173
+ (0, communication_1.sendMessageToParent)('authentication.authenticate', [link.href, authenticateParams.width, authenticateParams.height], function (success, response) {
1141
1174
  if (success) {
1142
1175
  authenticateParams.successCallback(response);
1143
1176
  }
@@ -1158,8 +1191,8 @@ var authentication;
1158
1191
  * @param authTokenRequest A set of values that configure the token request.
1159
1192
  */
1160
1193
  function getAuthToken(authTokenRequest) {
1161
- internalAPIs_1.ensureInitialized();
1162
- communication_1.sendMessageToParent('authentication.getAuthToken', [authTokenRequest.resources, authTokenRequest.claims, authTokenRequest.silent], function (success, result) {
1194
+ (0, internalAPIs_1.ensureInitialized)();
1195
+ (0, communication_1.sendMessageToParent)('authentication.getAuthToken', [authTokenRequest.resources, authTokenRequest.claims, authTokenRequest.silent], function (success, result) {
1163
1196
  if (success) {
1164
1197
  authTokenRequest.successCallback(result);
1165
1198
  }
@@ -1176,8 +1209,8 @@ var authentication;
1176
1209
  * Requests the decoded Azure AD user identity on behalf of the app.
1177
1210
  */
1178
1211
  function getUser(userRequest) {
1179
- internalAPIs_1.ensureInitialized();
1180
- communication_1.sendMessageToParent('authentication.getUser', function (success, result) {
1212
+ (0, internalAPIs_1.ensureInitialized)();
1213
+ (0, communication_1.sendMessageToParent)('authentication.getUser', function (success, result) {
1181
1214
  if (success) {
1182
1215
  userRequest.successCallback(result);
1183
1216
  }
@@ -1246,8 +1279,8 @@ var authentication;
1246
1279
  clearInterval(authWindowMonitor);
1247
1280
  authWindowMonitor = 0;
1248
1281
  }
1249
- handlers_1.removeHandler('initialize');
1250
- handlers_1.removeHandler('navigateCrossDomain');
1282
+ (0, handlers_1.removeHandler)('initialize');
1283
+ (0, handlers_1.removeHandler)('navigateCrossDomain');
1251
1284
  }
1252
1285
  function startAuthenticationWindowMonitor() {
1253
1286
  // Stop the previous window monitor if one is running
@@ -1265,7 +1298,7 @@ var authentication;
1265
1298
  var savedChildOrigin = communication_1.Communication.childOrigin;
1266
1299
  try {
1267
1300
  communication_1.Communication.childOrigin = '*';
1268
- communication_1.sendMessageEventToChild('ping');
1301
+ (0, communication_1.sendMessageEventToChild)('ping');
1269
1302
  }
1270
1303
  finally {
1271
1304
  communication_1.Communication.childOrigin = savedChildOrigin;
@@ -1273,14 +1306,14 @@ var authentication;
1273
1306
  }
1274
1307
  }, 100);
1275
1308
  // Set up an initialize-message handler that gives the authentication window its frame context
1276
- handlers_1.registerHandler('initialize', function () {
1309
+ (0, handlers_1.registerHandler)('initialize', function () {
1277
1310
  return [constants_1.FrameContexts.authentication, globalVars_1.GlobalVars.hostClientType];
1278
1311
  });
1279
1312
  // Set up a navigateCrossDomain message handler that blocks cross-domain re-navigation attempts
1280
1313
  // in the authentication window. We could at some point choose to implement this method via a call to
1281
1314
  // authenticationWindow.location.href = url; however, we would first need to figure out how to
1282
1315
  // validate the URL against the tab's list of valid domains.
1283
- handlers_1.registerHandler('navigateCrossDomain', function () {
1316
+ (0, handlers_1.registerHandler)('navigateCrossDomain', function () {
1284
1317
  return false;
1285
1318
  });
1286
1319
  }
@@ -1293,10 +1326,10 @@ var authentication;
1293
1326
  */
1294
1327
  function notifySuccess(result, callbackUrl) {
1295
1328
  redirectIfWin32Outlook(callbackUrl, 'result', result);
1296
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.authentication);
1297
- communication_1.sendMessageToParent('authentication.authenticate.success', [result]);
1329
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.authentication);
1330
+ (0, communication_1.sendMessageToParent)('authentication.authenticate.success', [result]);
1298
1331
  // Wait for the message to be sent before closing the window
1299
- communication_1.waitForMessageQueue(communication_1.Communication.parentWindow, function () { return setTimeout(function () { return communication_1.Communication.currentWindow.close(); }, 200); });
1332
+ (0, communication_1.waitForMessageQueue)(communication_1.Communication.parentWindow, function () { return setTimeout(function () { return communication_1.Communication.currentWindow.close(); }, 200); });
1300
1333
  }
1301
1334
  authentication.notifySuccess = notifySuccess;
1302
1335
  /**
@@ -1308,10 +1341,10 @@ var authentication;
1308
1341
  */
1309
1342
  function notifyFailure(reason, callbackUrl) {
1310
1343
  redirectIfWin32Outlook(callbackUrl, 'reason', reason);
1311
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.authentication);
1312
- communication_1.sendMessageToParent('authentication.authenticate.failure', [reason]);
1344
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.authentication);
1345
+ (0, communication_1.sendMessageToParent)('authentication.authenticate.failure', [reason]);
1313
1346
  // Wait for the message to be sent before closing the window
1314
- communication_1.waitForMessageQueue(communication_1.Communication.parentWindow, function () { return setTimeout(function () { return communication_1.Communication.currentWindow.close(); }, 200); });
1347
+ (0, communication_1.waitForMessageQueue)(communication_1.Communication.parentWindow, function () { return setTimeout(function () { return communication_1.Communication.currentWindow.close(); }, 200); });
1315
1348
  }
1316
1349
  authentication.notifyFailure = notifyFailure;
1317
1350
  function handleSuccess(result) {
@@ -1388,6 +1421,7 @@ var authentication;
1388
1421
  "use strict";
1389
1422
 
1390
1423
  Object.defineProperty(exports, "__esModule", { value: true });
1424
+ exports.settings = void 0;
1391
1425
  var internalAPIs_1 = __webpack_require__(1);
1392
1426
  var constants_1 = __webpack_require__(2);
1393
1427
  var utils_1 = __webpack_require__(5);
@@ -1402,8 +1436,8 @@ var settings;
1402
1436
  var saveHandler;
1403
1437
  var removeHandler;
1404
1438
  function initialize() {
1405
- handlers_1.registerHandler('settings.save', handleSave, false);
1406
- handlers_1.registerHandler('settings.remove', handleRemove, false);
1439
+ (0, handlers_1.registerHandler)('settings.save', handleSave, false);
1440
+ (0, handlers_1.registerHandler)('settings.remove', handleRemove, false);
1407
1441
  }
1408
1442
  settings.initialize = initialize;
1409
1443
  /**
@@ -1412,8 +1446,8 @@ var settings;
1412
1446
  * @param validityState Indicates whether the save or remove button is enabled for the user.
1413
1447
  */
1414
1448
  function setValidityState(validityState) {
1415
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.settings, constants_1.FrameContexts.remove);
1416
- communication_1.sendMessageToParent('settings.setValidityState', [validityState]);
1449
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.settings, constants_1.FrameContexts.remove);
1450
+ (0, communication_1.sendMessageToParent)('settings.setValidityState', [validityState]);
1417
1451
  }
1418
1452
  settings.setValidityState = setValidityState;
1419
1453
  /**
@@ -1421,8 +1455,8 @@ var settings;
1421
1455
  * @param callback The callback to invoke when the {@link Settings} object is retrieved.
1422
1456
  */
1423
1457
  function getSettings(callback) {
1424
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.settings, constants_1.FrameContexts.remove, constants_1.FrameContexts.sidePanel);
1425
- communication_1.sendMessageToParent('settings.getSettings', callback);
1458
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.settings, constants_1.FrameContexts.remove, constants_1.FrameContexts.sidePanel);
1459
+ (0, communication_1.sendMessageToParent)('settings.getSettings', callback);
1426
1460
  }
1427
1461
  settings.getSettings = getSettings;
1428
1462
  /**
@@ -1431,8 +1465,8 @@ var settings;
1431
1465
  * @param settings The desired settings for this instance.
1432
1466
  */
1433
1467
  function setSettings(instanceSettings, onComplete) {
1434
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.settings, constants_1.FrameContexts.sidePanel);
1435
- communication_1.sendMessageToParent('settings.setSettings', [instanceSettings], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler());
1468
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.settings, constants_1.FrameContexts.sidePanel);
1469
+ (0, communication_1.sendMessageToParent)('settings.setSettings', [instanceSettings], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
1436
1470
  }
1437
1471
  settings.setSettings = setSettings;
1438
1472
  /**
@@ -1443,9 +1477,9 @@ var settings;
1443
1477
  * @param handler The handler to invoke when the user selects the save button.
1444
1478
  */
1445
1479
  function registerOnSaveHandler(handler) {
1446
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.settings);
1480
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.settings);
1447
1481
  saveHandler = handler;
1448
- handler && communication_1.sendMessageToParent('registerHandler', ['save']);
1482
+ handler && (0, communication_1.sendMessageToParent)('registerHandler', ['save']);
1449
1483
  }
1450
1484
  settings.registerOnSaveHandler = registerOnSaveHandler;
1451
1485
  /**
@@ -1456,9 +1490,9 @@ var settings;
1456
1490
  * @param handler The handler to invoke when the user selects the remove button.
1457
1491
  */
1458
1492
  function registerOnRemoveHandler(handler) {
1459
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.remove, constants_1.FrameContexts.settings);
1493
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.remove, constants_1.FrameContexts.settings);
1460
1494
  removeHandler = handler;
1461
- handler && communication_1.sendMessageToParent('registerHandler', ['remove']);
1495
+ handler && (0, communication_1.sendMessageToParent)('registerHandler', ['remove']);
1462
1496
  }
1463
1497
  settings.registerOnRemoveHandler = registerOnRemoveHandler;
1464
1498
  function handleSave(result) {
@@ -1482,12 +1516,12 @@ var settings;
1482
1516
  }
1483
1517
  SaveEventImpl.prototype.notifySuccess = function () {
1484
1518
  this.ensureNotNotified();
1485
- communication_1.sendMessageToParent('settings.save.success');
1519
+ (0, communication_1.sendMessageToParent)('settings.save.success');
1486
1520
  this.notified = true;
1487
1521
  };
1488
1522
  SaveEventImpl.prototype.notifyFailure = function (reason) {
1489
1523
  this.ensureNotNotified();
1490
- communication_1.sendMessageToParent('settings.save.failure', [reason]);
1524
+ (0, communication_1.sendMessageToParent)('settings.save.failure', [reason]);
1491
1525
  this.notified = true;
1492
1526
  };
1493
1527
  SaveEventImpl.prototype.ensureNotNotified = function () {
@@ -1517,12 +1551,12 @@ var settings;
1517
1551
  }
1518
1552
  RemoveEventImpl.prototype.notifySuccess = function () {
1519
1553
  this.ensureNotNotified();
1520
- communication_1.sendMessageToParent('settings.remove.success');
1554
+ (0, communication_1.sendMessageToParent)('settings.remove.success');
1521
1555
  this.notified = true;
1522
1556
  };
1523
1557
  RemoveEventImpl.prototype.notifyFailure = function (reason) {
1524
1558
  this.ensureNotNotified();
1525
- communication_1.sendMessageToParent('settings.remove.failure', [reason]);
1559
+ (0, communication_1.sendMessageToParent)('settings.remove.failure', [reason]);
1526
1560
  this.notified = true;
1527
1561
  };
1528
1562
  RemoveEventImpl.prototype.ensureNotNotified = function () {
@@ -1542,6 +1576,7 @@ var settings;
1542
1576
  "use strict";
1543
1577
 
1544
1578
  Object.defineProperty(exports, "__esModule", { value: true });
1579
+ exports.logs = void 0;
1545
1580
  var internalAPIs_1 = __webpack_require__(1);
1546
1581
  var communication_1 = __webpack_require__(0);
1547
1582
  var handlers_1 = __webpack_require__(3);
@@ -1562,15 +1597,15 @@ var logs;
1562
1597
  * @param handler The handler to invoke to get the app log
1563
1598
  */
1564
1599
  function registerGetLogHandler(handler) {
1565
- internalAPIs_1.ensureInitialized();
1600
+ (0, internalAPIs_1.ensureInitialized)();
1566
1601
  if (handler) {
1567
- handlers_1.registerHandler('log.request', function () {
1602
+ (0, handlers_1.registerHandler)('log.request', function () {
1568
1603
  var log = handler();
1569
- communication_1.sendMessageToParent('log.receive', [log]);
1604
+ (0, communication_1.sendMessageToParent)('log.receive', [log]);
1570
1605
  });
1571
1606
  }
1572
1607
  else {
1573
- handlers_1.removeHandler('log.request');
1608
+ (0, handlers_1.removeHandler)('log.request');
1574
1609
  }
1575
1610
  }
1576
1611
  logs.registerGetLogHandler = registerGetLogHandler;
@@ -1584,6 +1619,7 @@ var logs;
1584
1619
  "use strict";
1585
1620
 
1586
1621
  Object.defineProperty(exports, "__esModule", { value: true });
1622
+ exports.registerUserSettingsChangeHandler = exports.getConfigSetting = exports.getChatMembers = exports.registerCustomHandler = exports.sendCustomEvent = exports.sendCustomMessage = exports.uploadCustomApp = exports.showNotification = exports.openFilePreview = exports.exitFullscreen = exports.enterFullscreen = exports.getUserJoinedTeams = exports.initializePrivateApis = void 0;
1587
1623
  var internalAPIs_1 = __webpack_require__(1);
1588
1624
  var constants_1 = __webpack_require__(2);
1589
1625
  var utils_1 = __webpack_require__(5);
@@ -1606,16 +1642,16 @@ exports.initializePrivateApis = initializePrivateApis;
1606
1642
  * @param teamInstanceParameters OPTIONAL Flags that specify whether to scope call to favorite teams
1607
1643
  */
1608
1644
  function getUserJoinedTeams(callback, teamInstanceParameters) {
1609
- internalAPIs_1.ensureInitialized();
1645
+ (0, internalAPIs_1.ensureInitialized)();
1610
1646
  if ((globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.android ||
1611
1647
  globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.teamsRoomsAndroid ||
1612
1648
  globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.teamsPhones ||
1613
1649
  globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.teamsDisplays) &&
1614
- !internalAPIs_1.isAPISupportedByPlatform(constants_2.getUserJoinedTeamsSupportedAndroidClientVersion)) {
1650
+ !(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.getUserJoinedTeamsSupportedAndroidClientVersion)) {
1615
1651
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
1616
1652
  throw new Error(JSON.stringify(oldPlatformError));
1617
1653
  }
1618
- communication_1.sendMessageToParent('getUserJoinedTeams', [teamInstanceParameters], callback);
1654
+ (0, communication_1.sendMessageToParent)('getUserJoinedTeams', [teamInstanceParameters], callback);
1619
1655
  }
1620
1656
  exports.getUserJoinedTeams = getUserJoinedTeams;
1621
1657
  /**
@@ -1625,8 +1661,8 @@ exports.getUserJoinedTeams = getUserJoinedTeams;
1625
1661
  * Place the tab into full-screen mode.
1626
1662
  */
1627
1663
  function enterFullscreen() {
1628
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
1629
- communication_1.sendMessageToParent('enterFullscreen', []);
1664
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
1665
+ (0, communication_1.sendMessageToParent)('enterFullscreen', []);
1630
1666
  }
1631
1667
  exports.enterFullscreen = enterFullscreen;
1632
1668
  /**
@@ -1636,8 +1672,8 @@ exports.enterFullscreen = enterFullscreen;
1636
1672
  * Reverts the tab into normal-screen mode.
1637
1673
  */
1638
1674
  function exitFullscreen() {
1639
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
1640
- communication_1.sendMessageToParent('exitFullscreen', []);
1675
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
1676
+ (0, communication_1.sendMessageToParent)('exitFullscreen', []);
1641
1677
  }
1642
1678
  exports.exitFullscreen = exitFullscreen;
1643
1679
  /**
@@ -1648,7 +1684,7 @@ exports.exitFullscreen = exitFullscreen;
1648
1684
  * @param file The file to preview.
1649
1685
  */
1650
1686
  function openFilePreview(filePreviewParameters) {
1651
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
1687
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
1652
1688
  var params = [
1653
1689
  filePreviewParameters.entityId,
1654
1690
  filePreviewParameters.title,
@@ -1663,8 +1699,9 @@ function openFilePreview(filePreviewParameters) {
1663
1699
  filePreviewParameters.subEntityId,
1664
1700
  filePreviewParameters.viewerAction,
1665
1701
  filePreviewParameters.fileOpenPreference,
1702
+ filePreviewParameters.conversationId,
1666
1703
  ];
1667
- communication_1.sendMessageToParent('openFilePreview', params);
1704
+ (0, communication_1.sendMessageToParent)('openFilePreview', params);
1668
1705
  }
1669
1706
  exports.openFilePreview = openFilePreview;
1670
1707
  /**
@@ -1676,9 +1713,9 @@ exports.openFilePreview = openFilePreview;
1676
1713
  * @param notificationType Notification type
1677
1714
  */
1678
1715
  function showNotification(showNotificationParameters) {
1679
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
1716
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
1680
1717
  var params = [showNotificationParameters.message, showNotificationParameters.notificationType];
1681
- communication_1.sendMessageToParent('showNotification', params);
1718
+ (0, communication_1.sendMessageToParent)('showNotification', params);
1682
1719
  }
1683
1720
  exports.showNotification = showNotification;
1684
1721
  /**
@@ -1689,8 +1726,8 @@ exports.showNotification = showNotification;
1689
1726
  * This method works just for the first party Apps.
1690
1727
  */
1691
1728
  function uploadCustomApp(manifestBlob, onComplete) {
1692
- internalAPIs_1.ensureInitialized();
1693
- communication_1.sendMessageToParent('uploadCustomApp', [manifestBlob], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler());
1729
+ (0, internalAPIs_1.ensureInitialized)();
1730
+ (0, communication_1.sendMessageToParent)('uploadCustomApp', [manifestBlob], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
1694
1731
  }
1695
1732
  exports.uploadCustomApp = uploadCustomApp;
1696
1733
  /**
@@ -1707,8 +1744,8 @@ function sendCustomMessage(actionName,
1707
1744
  args,
1708
1745
  // tslint:disable-next-line:no-any
1709
1746
  callback) {
1710
- internalAPIs_1.ensureInitialized();
1711
- communication_1.sendMessageToParent(actionName, args, callback);
1747
+ (0, internalAPIs_1.ensureInitialized)();
1748
+ (0, communication_1.sendMessageToParent)(actionName, args, callback);
1712
1749
  }
1713
1750
  exports.sendCustomMessage = sendCustomMessage;
1714
1751
  /**
@@ -1723,12 +1760,12 @@ exports.sendCustomMessage = sendCustomMessage;
1723
1760
  function sendCustomEvent(actionName,
1724
1761
  // tslint:disable-next-line:no-any
1725
1762
  args) {
1726
- internalAPIs_1.ensureInitialized();
1763
+ (0, internalAPIs_1.ensureInitialized)();
1727
1764
  //validate childWindow
1728
1765
  if (!communication_1.Communication.childWindow) {
1729
1766
  throw new Error('The child window has not yet been initialized or is not present');
1730
1767
  }
1731
- communication_1.sendMessageEventToChild(actionName, args);
1768
+ (0, communication_1.sendMessageEventToChild)(actionName, args);
1732
1769
  }
1733
1770
  exports.sendCustomEvent = sendCustomEvent;
1734
1771
  /**
@@ -1740,8 +1777,8 @@ exports.sendCustomEvent = sendCustomEvent;
1740
1777
  */
1741
1778
  function registerCustomHandler(actionName, customHandler) {
1742
1779
  var _this = this;
1743
- internalAPIs_1.ensureInitialized();
1744
- handlers_1.registerHandler(actionName, function () {
1780
+ (0, internalAPIs_1.ensureInitialized)();
1781
+ (0, handlers_1.registerHandler)(actionName, function () {
1745
1782
  var args = [];
1746
1783
  for (var _i = 0; _i < arguments.length; _i++) {
1747
1784
  args[_i] = arguments[_i];
@@ -1760,8 +1797,8 @@ exports.registerCustomHandler = registerCustomHandler;
1760
1797
  * @param callback The callback to invoke when the {@link ChatMembersInformation} object is retrieved.
1761
1798
  */
1762
1799
  function getChatMembers(callback) {
1763
- internalAPIs_1.ensureInitialized();
1764
- communication_1.sendMessageToParent('getChatMembers', callback);
1800
+ (0, internalAPIs_1.ensureInitialized)();
1801
+ (0, communication_1.sendMessageToParent)('getChatMembers', callback);
1765
1802
  }
1766
1803
  exports.getChatMembers = getChatMembers;
1767
1804
  /**
@@ -1773,8 +1810,8 @@ exports.getChatMembers = getChatMembers;
1773
1810
  * @param key The key for the config setting
1774
1811
  */
1775
1812
  function getConfigSetting(callback, key) {
1776
- internalAPIs_1.ensureInitialized();
1777
- communication_1.sendMessageToParent('getConfigSetting', [key], callback);
1813
+ (0, internalAPIs_1.ensureInitialized)();
1814
+ (0, communication_1.sendMessageToParent)('getConfigSetting', [key], callback);
1778
1815
  }
1779
1816
  exports.getConfigSetting = getConfigSetting;
1780
1817
  /**
@@ -1784,8 +1821,8 @@ exports.getConfigSetting = getConfigSetting;
1784
1821
  * @param handler When a subscribed setting is updated this handler is called
1785
1822
  */
1786
1823
  function registerUserSettingsChangeHandler(settingTypes, handler) {
1787
- internalAPIs_1.ensureInitialized();
1788
- handlers_1.registerHandler('userSettingsChange', handler, true, [settingTypes]);
1824
+ (0, internalAPIs_1.ensureInitialized)();
1825
+ (0, handlers_1.registerHandler)('userSettingsChange', handler, true, [settingTypes]);
1789
1826
  }
1790
1827
  exports.registerUserSettingsChangeHandler = registerUserSettingsChangeHandler;
1791
1828
 
@@ -1797,6 +1834,7 @@ exports.registerUserSettingsChangeHandler = registerUserSettingsChangeHandler;
1797
1834
  "use strict";
1798
1835
 
1799
1836
  Object.defineProperty(exports, "__esModule", { value: true });
1837
+ exports.menus = void 0;
1800
1838
  var internalAPIs_1 = __webpack_require__(1);
1801
1839
  var communication_1 = __webpack_require__(0);
1802
1840
  var handlers_1 = __webpack_require__(3);
@@ -1838,9 +1876,9 @@ var menus;
1838
1876
  var actionMenuItemPressHandler;
1839
1877
  var viewConfigItemPressHandler;
1840
1878
  function initialize() {
1841
- handlers_1.registerHandler('navBarMenuItemPress', handleNavBarMenuItemPress, false);
1842
- handlers_1.registerHandler('actionMenuItemPress', handleActionMenuItemPress, false);
1843
- handlers_1.registerHandler('setModuleView', handleViewConfigItemPress, false);
1879
+ (0, handlers_1.registerHandler)('navBarMenuItemPress', handleNavBarMenuItemPress, false);
1880
+ (0, handlers_1.registerHandler)('actionMenuItemPress', handleActionMenuItemPress, false);
1881
+ (0, handlers_1.registerHandler)('setModuleView', handleViewConfigItemPress, false);
1844
1882
  }
1845
1883
  menus.initialize = initialize;
1846
1884
  /**
@@ -1850,15 +1888,15 @@ var menus;
1850
1888
  * @param handler The handler to invoke when the user selects view configuration.
1851
1889
  */
1852
1890
  function setUpViews(viewConfig, handler) {
1853
- internalAPIs_1.ensureInitialized();
1891
+ (0, internalAPIs_1.ensureInitialized)();
1854
1892
  viewConfigItemPressHandler = handler;
1855
- communication_1.sendMessageToParent('setUpViews', [viewConfig]);
1893
+ (0, communication_1.sendMessageToParent)('setUpViews', [viewConfig]);
1856
1894
  }
1857
1895
  menus.setUpViews = setUpViews;
1858
1896
  function handleViewConfigItemPress(id) {
1859
1897
  if (!viewConfigItemPressHandler || !viewConfigItemPressHandler(id)) {
1860
- internalAPIs_1.ensureInitialized();
1861
- communication_1.sendMessageToParent('viewConfigItemPress', [id]);
1898
+ (0, internalAPIs_1.ensureInitialized)();
1899
+ (0, communication_1.sendMessageToParent)('viewConfigItemPress', [id]);
1862
1900
  }
1863
1901
  }
1864
1902
  /**
@@ -1867,15 +1905,15 @@ var menus;
1867
1905
  * @param handler The handler to invoke when the user selects menu item.
1868
1906
  */
1869
1907
  function setNavBarMenu(items, handler) {
1870
- internalAPIs_1.ensureInitialized();
1908
+ (0, internalAPIs_1.ensureInitialized)();
1871
1909
  navBarMenuItemPressHandler = handler;
1872
- communication_1.sendMessageToParent('setNavBarMenu', [items]);
1910
+ (0, communication_1.sendMessageToParent)('setNavBarMenu', [items]);
1873
1911
  }
1874
1912
  menus.setNavBarMenu = setNavBarMenu;
1875
1913
  function handleNavBarMenuItemPress(id) {
1876
1914
  if (!navBarMenuItemPressHandler || !navBarMenuItemPressHandler(id)) {
1877
- internalAPIs_1.ensureInitialized();
1878
- communication_1.sendMessageToParent('handleNavBarMenuItemPress', [id]);
1915
+ (0, internalAPIs_1.ensureInitialized)();
1916
+ (0, communication_1.sendMessageToParent)('handleNavBarMenuItemPress', [id]);
1879
1917
  }
1880
1918
  }
1881
1919
  /**
@@ -1884,15 +1922,15 @@ var menus;
1884
1922
  * @param handler The handler to invoke when the user selects menu item.
1885
1923
  */
1886
1924
  function showActionMenu(params, handler) {
1887
- internalAPIs_1.ensureInitialized();
1925
+ (0, internalAPIs_1.ensureInitialized)();
1888
1926
  actionMenuItemPressHandler = handler;
1889
- communication_1.sendMessageToParent('showActionMenu', [params]);
1927
+ (0, communication_1.sendMessageToParent)('showActionMenu', [params]);
1890
1928
  }
1891
1929
  menus.showActionMenu = showActionMenu;
1892
1930
  function handleActionMenuItemPress(id) {
1893
1931
  if (!actionMenuItemPressHandler || !actionMenuItemPressHandler(id)) {
1894
- internalAPIs_1.ensureInitialized();
1895
- communication_1.sendMessageToParent('handleActionMenuItemPress', [id]);
1932
+ (0, internalAPIs_1.ensureInitialized)();
1933
+ (0, communication_1.sendMessageToParent)('handleActionMenuItemPress', [id]);
1896
1934
  }
1897
1935
  }
1898
1936
  })(menus = exports.menus || (exports.menus = {}));
@@ -1905,6 +1943,8 @@ var menus;
1905
1943
  "use strict";
1906
1944
 
1907
1945
  Object.defineProperty(exports, "__esModule", { value: true });
1946
+ exports.ParentAppWindow = exports.ChildAppWindow = void 0;
1947
+ /* eslint-disable @typescript-eslint/ban-types */
1908
1948
  var internalAPIs_1 = __webpack_require__(1);
1909
1949
  var constants_1 = __webpack_require__(2);
1910
1950
  var utils_1 = __webpack_require__(5);
@@ -1914,12 +1954,12 @@ var ChildAppWindow = /** @class */ (function () {
1914
1954
  function ChildAppWindow() {
1915
1955
  }
1916
1956
  ChildAppWindow.prototype.postMessage = function (message, onComplete) {
1917
- internalAPIs_1.ensureInitialized();
1918
- communication_1.sendMessageToParent('messageForChild', [message], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler());
1957
+ (0, internalAPIs_1.ensureInitialized)();
1958
+ (0, communication_1.sendMessageToParent)('messageForChild', [message], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
1919
1959
  };
1920
1960
  ChildAppWindow.prototype.addEventListener = function (type, listener) {
1921
1961
  if (type === 'message') {
1922
- handlers_1.registerHandler('messageForParent', listener);
1962
+ (0, handlers_1.registerHandler)('messageForParent', listener);
1923
1963
  }
1924
1964
  };
1925
1965
  return ChildAppWindow;
@@ -1933,16 +1973,16 @@ var ParentAppWindow = /** @class */ (function () {
1933
1973
  // Do you need arguments? Make it a regular method instead.
1934
1974
  return this._instance || (this._instance = new this());
1935
1975
  },
1936
- enumerable: true,
1976
+ enumerable: false,
1937
1977
  configurable: true
1938
1978
  });
1939
1979
  ParentAppWindow.prototype.postMessage = function (message, onComplete) {
1940
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.task);
1941
- communication_1.sendMessageToParent('messageForParent', [message], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler());
1980
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.task);
1981
+ (0, communication_1.sendMessageToParent)('messageForParent', [message], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
1942
1982
  };
1943
1983
  ParentAppWindow.prototype.addEventListener = function (type, listener) {
1944
1984
  if (type === 'message') {
1945
- handlers_1.registerHandler('messageForChild', listener);
1985
+ (0, handlers_1.registerHandler)('messageForChild', listener);
1946
1986
  }
1947
1987
  };
1948
1988
  return ParentAppWindow;
@@ -1957,16 +1997,22 @@ exports.ParentAppWindow = ParentAppWindow;
1957
1997
  "use strict";
1958
1998
 
1959
1999
  var __extends = (this && this.__extends) || (function () {
1960
- var extendStatics = Object.setPrototypeOf ||
1961
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1962
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2000
+ var extendStatics = function (d, b) {
2001
+ extendStatics = Object.setPrototypeOf ||
2002
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2003
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2004
+ return extendStatics(d, b);
2005
+ };
1963
2006
  return function (d, b) {
2007
+ if (typeof b !== "function" && b !== null)
2008
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1964
2009
  extendStatics(d, b);
1965
2010
  function __() { this.constructor = d; }
1966
2011
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1967
2012
  };
1968
2013
  })();
1969
2014
  Object.defineProperty(exports, "__esModule", { value: true });
2015
+ exports.media = void 0;
1970
2016
  var globalVars_1 = __webpack_require__(6);
1971
2017
  var interfaces_1 = __webpack_require__(7);
1972
2018
  var internalAPIs_1 = __webpack_require__(1);
@@ -2009,18 +2055,18 @@ var media;
2009
2055
  if (!callback) {
2010
2056
  throw new Error('[captureImage] Callback cannot be null');
2011
2057
  }
2012
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2058
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2013
2059
  if (!globalVars_1.GlobalVars.isFramelessWindow) {
2014
2060
  var notSupportedError = { errorCode: interfaces_1.ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
2015
2061
  callback(notSupportedError, undefined);
2016
2062
  return;
2017
2063
  }
2018
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.captureImageMobileSupportVersion)) {
2064
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.captureImageMobileSupportVersion)) {
2019
2065
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
2020
2066
  callback(oldPlatformError, undefined);
2021
2067
  return;
2022
2068
  }
2023
- communication_1.sendMessageToParent('captureImage', callback);
2069
+ (0, communication_1.sendMessageToParent)('captureImage', callback);
2024
2070
  }
2025
2071
  media.captureImage = captureImage;
2026
2072
  /**
@@ -2049,19 +2095,19 @@ var media;
2049
2095
  if (!callback) {
2050
2096
  throw new Error('[get Media] Callback cannot be null');
2051
2097
  }
2052
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2053
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.mediaAPISupportVersion)) {
2098
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2099
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.mediaAPISupportVersion)) {
2054
2100
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
2055
2101
  callback(oldPlatformError, null);
2056
2102
  return;
2057
2103
  }
2058
- if (!mediaUtil_1.validateGetMediaInputs(this.mimeType, this.format, this.content)) {
2104
+ if (!(0, mediaUtil_1.validateGetMediaInputs)(this.mimeType, this.format, this.content)) {
2059
2105
  var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
2060
2106
  callback(invalidInput, null);
2061
2107
  return;
2062
2108
  }
2063
2109
  // Call the new get media implementation via callbacks if the client version is greater than or equal to '2.0.0'
2064
- if (internalAPIs_1.isAPISupportedByPlatform(constants_2.getMediaCallbackSupportVersion)) {
2110
+ if ((0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.getMediaCallbackSupportVersion)) {
2065
2111
  this.getMediaViaCallback(callback);
2066
2112
  }
2067
2113
  else {
@@ -2084,61 +2130,61 @@ var media;
2084
2130
  // If the chunksequence number is less than equal to 0 implies EOF
2085
2131
  // create file/blob when all chunks have arrived and we get 0/-1 as chunksequence number
2086
2132
  if (mediaResult.mediaChunk.chunkSequence <= 0) {
2087
- var file = mediaUtil_1.createFile(helper.assembleAttachment, helper.mediaMimeType);
2133
+ var file = (0, mediaUtil_1.createFile)(helper.assembleAttachment, helper.mediaMimeType);
2088
2134
  callback(mediaResult.error, file);
2089
2135
  }
2090
2136
  else {
2091
2137
  // Keep pushing chunks into assemble attachment
2092
- var assemble = mediaUtil_1.decodeAttachment(mediaResult.mediaChunk, helper.mediaMimeType);
2138
+ var assemble = (0, mediaUtil_1.decodeAttachment)(mediaResult.mediaChunk, helper.mediaMimeType);
2093
2139
  helper.assembleAttachment.push(assemble);
2094
2140
  }
2095
2141
  }
2096
2142
  else {
2097
- callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data receieved is null' }, null);
2143
+ callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data received is null' }, null);
2098
2144
  }
2099
2145
  }
2100
2146
  }
2101
2147
  }
2102
- communication_1.sendMessageToParent('getMedia', localUriId, handleGetMediaCallbackRequest);
2148
+ (0, communication_1.sendMessageToParent)('getMedia', localUriId, handleGetMediaCallbackRequest);
2103
2149
  };
2104
2150
  Media.prototype.getMediaViaHandler = function (callback) {
2105
- var actionName = utils_1.generateGUID();
2151
+ var actionName = (0, utils_1.generateGUID)();
2106
2152
  var helper = {
2107
2153
  mediaMimeType: this.mimeType,
2108
2154
  assembleAttachment: [],
2109
2155
  };
2110
2156
  var params = [actionName, this.content];
2111
- this.content && callback && communication_1.sendMessageToParent('getMedia', params);
2157
+ this.content && callback && (0, communication_1.sendMessageToParent)('getMedia', params);
2112
2158
  function handleGetMediaRequest(response) {
2113
2159
  if (callback) {
2114
2160
  var mediaResult = JSON.parse(response);
2115
2161
  if (mediaResult.error) {
2116
2162
  callback(mediaResult.error, null);
2117
- handlers_1.removeHandler('getMedia' + actionName);
2163
+ (0, handlers_1.removeHandler)('getMedia' + actionName);
2118
2164
  }
2119
2165
  else {
2120
2166
  if (mediaResult.mediaChunk) {
2121
2167
  // If the chunksequence number is less than equal to 0 implies EOF
2122
2168
  // create file/blob when all chunks have arrived and we get 0/-1 as chunksequence number
2123
2169
  if (mediaResult.mediaChunk.chunkSequence <= 0) {
2124
- var file = mediaUtil_1.createFile(helper.assembleAttachment, helper.mediaMimeType);
2170
+ var file = (0, mediaUtil_1.createFile)(helper.assembleAttachment, helper.mediaMimeType);
2125
2171
  callback(mediaResult.error, file);
2126
- handlers_1.removeHandler('getMedia' + actionName);
2172
+ (0, handlers_1.removeHandler)('getMedia' + actionName);
2127
2173
  }
2128
2174
  else {
2129
2175
  // Keep pushing chunks into assemble attachment
2130
- var assemble = mediaUtil_1.decodeAttachment(mediaResult.mediaChunk, helper.mediaMimeType);
2176
+ var assemble = (0, mediaUtil_1.decodeAttachment)(mediaResult.mediaChunk, helper.mediaMimeType);
2131
2177
  helper.assembleAttachment.push(assemble);
2132
2178
  }
2133
2179
  }
2134
2180
  else {
2135
- callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data receieved is null' }, null);
2136
- handlers_1.removeHandler('getMedia' + actionName);
2181
+ callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data received is null' }, null);
2182
+ (0, handlers_1.removeHandler)('getMedia' + actionName);
2137
2183
  }
2138
2184
  }
2139
2185
  }
2140
2186
  }
2141
- handlers_1.registerHandler('getMedia' + actionName, handleGetMediaRequest);
2187
+ (0, handlers_1.registerHandler)('getMedia' + actionName, handleGetMediaRequest);
2142
2188
  };
2143
2189
  return Media;
2144
2190
  }(File));
@@ -2188,32 +2234,32 @@ var media;
2188
2234
  if (!callback) {
2189
2235
  throw new Error('[select Media] Callback cannot be null');
2190
2236
  }
2191
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2192
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.mediaAPISupportVersion)) {
2237
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2238
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.mediaAPISupportVersion)) {
2193
2239
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
2194
2240
  callback(oldPlatformError, null);
2195
2241
  return;
2196
2242
  }
2197
- if (mediaUtil_1.isMediaCallForVideoAndImageInputs(mediaInputs)) {
2243
+ if ((0, mediaUtil_1.isMediaCallForVideoAndImageInputs)(mediaInputs)) {
2198
2244
  if (globalVars_1.GlobalVars.hostClientType != constants_1.HostClientType.android && globalVars_1.GlobalVars.hostClientType != constants_1.HostClientType.ios) {
2199
2245
  var notSupportedError = { errorCode: interfaces_1.ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
2200
2246
  callback(notSupportedError, null);
2201
2247
  return;
2202
2248
  }
2203
- else if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.videoAndImageMediaAPISupportVersion)) {
2249
+ else if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.videoAndImageMediaAPISupportVersion)) {
2204
2250
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
2205
2251
  callback(oldPlatformError, null);
2206
2252
  return;
2207
2253
  }
2208
2254
  }
2209
- if (!mediaUtil_1.validateSelectMediaInputs(mediaInputs)) {
2255
+ if (!(0, mediaUtil_1.validateSelectMediaInputs)(mediaInputs)) {
2210
2256
  var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
2211
2257
  callback(invalidInput, null);
2212
2258
  return;
2213
2259
  }
2214
2260
  var params = [mediaInputs];
2215
2261
  // What comes back from native at attachments would just be objects and will be missing getMedia method on them.
2216
- communication_1.sendMessageToParent('selectMedia', params, function (err, localAttachments) {
2262
+ (0, communication_1.sendMessageToParent)('selectMedia', params, function (err, localAttachments) {
2217
2263
  if (!localAttachments) {
2218
2264
  callback(err, null);
2219
2265
  return;
@@ -2236,19 +2282,19 @@ var media;
2236
2282
  if (!callback) {
2237
2283
  throw new Error('[view images] Callback cannot be null');
2238
2284
  }
2239
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2240
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.mediaAPISupportVersion)) {
2285
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2286
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.mediaAPISupportVersion)) {
2241
2287
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
2242
2288
  callback(oldPlatformError);
2243
2289
  return;
2244
2290
  }
2245
- if (!mediaUtil_1.validateViewImagesInput(uriList)) {
2291
+ if (!(0, mediaUtil_1.validateViewImagesInput)(uriList)) {
2246
2292
  var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
2247
2293
  callback(invalidInput);
2248
2294
  return;
2249
2295
  }
2250
2296
  var params = [uriList];
2251
- communication_1.sendMessageToParent('viewImages', params, callback);
2297
+ (0, communication_1.sendMessageToParent)('viewImages', params, callback);
2252
2298
  }
2253
2299
  media.viewImages = viewImages;
2254
2300
  /**
@@ -2261,7 +2307,7 @@ var media;
2261
2307
  if (!callback) {
2262
2308
  throw new Error('[media.scanBarCode] Callback cannot be null');
2263
2309
  }
2264
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2310
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
2265
2311
  if (globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.desktop ||
2266
2312
  globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.web ||
2267
2313
  globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.rigel ||
@@ -2273,17 +2319,17 @@ var media;
2273
2319
  callback(notSupportedError, null);
2274
2320
  return;
2275
2321
  }
2276
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.scanBarCodeAPIMobileSupportVersion)) {
2322
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.scanBarCodeAPIMobileSupportVersion)) {
2277
2323
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
2278
2324
  callback(oldPlatformError, null);
2279
2325
  return;
2280
2326
  }
2281
- if (!mediaUtil_1.validateScanBarCodeInput(config)) {
2327
+ if (!(0, mediaUtil_1.validateScanBarCodeInput)(config)) {
2282
2328
  var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
2283
2329
  callback(invalidInput, null);
2284
2330
  return;
2285
2331
  }
2286
- communication_1.sendMessageToParent('media.scanBarCode', [config], callback);
2332
+ (0, communication_1.sendMessageToParent)('media.scanBarCode', [config], callback);
2287
2333
  }
2288
2334
  media.scanBarCode = scanBarCode;
2289
2335
  })(media = exports.media || (exports.media = {}));
@@ -2296,6 +2342,7 @@ var media;
2296
2342
  "use strict";
2297
2343
 
2298
2344
  Object.defineProperty(exports, "__esModule", { value: true });
2345
+ exports.validatePeoplePickerInput = exports.validateScanBarCodeInput = exports.validateViewImagesInput = exports.validateGetMediaInputs = exports.isMediaCallForVideoAndImageInputs = exports.validateSelectMediaInputs = exports.decodeAttachment = exports.createFile = void 0;
2299
2346
  var media_1 = __webpack_require__(17);
2300
2347
  /**
2301
2348
  * Helper function to create a blob from media chunks based on their sequence
@@ -2436,12 +2483,19 @@ exports.validatePeoplePickerInput = validatePeoplePickerInput;
2436
2483
 
2437
2484
  "use strict";
2438
2485
 
2439
- function __export(m) {
2440
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
2441
- }
2486
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2487
+ if (k2 === undefined) k2 = k;
2488
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2489
+ }) : (function(o, m, k, k2) {
2490
+ if (k2 === undefined) k2 = k;
2491
+ o[k2] = m[k];
2492
+ }));
2493
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
2494
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2495
+ };
2442
2496
  Object.defineProperty(exports, "__esModule", { value: true });
2443
- __export(__webpack_require__(20));
2444
- __export(__webpack_require__(8));
2497
+ __exportStar(__webpack_require__(20), exports);
2498
+ __exportStar(__webpack_require__(8), exports);
2445
2499
 
2446
2500
 
2447
2501
  /***/ }),
@@ -2451,41 +2505,42 @@ __export(__webpack_require__(8));
2451
2505
  "use strict";
2452
2506
 
2453
2507
  Object.defineProperty(exports, "__esModule", { value: true });
2508
+ exports.teams = exports.appEntity = exports.files = exports.remoteCamera = exports.meetingRoom = exports.conversations = exports.registerUserSettingsChangeHandler = exports.uploadCustomApp = exports.registerCustomHandler = exports.sendCustomEvent = exports.showNotification = exports.sendCustomMessage = exports.openFilePreview = exports.getUserJoinedTeams = exports.getConfigSetting = exports.getChatMembers = exports.exitFullscreen = exports.enterFullscreen = exports.UserSettingTypes = exports.ViewerActionTypes = exports.NotificationTypes = exports.logs = exports.menus = exports.bot = void 0;
2454
2509
  var bot_1 = __webpack_require__(21);
2455
- exports.bot = bot_1.bot;
2510
+ Object.defineProperty(exports, "bot", { enumerable: true, get: function () { return bot_1.bot; } });
2456
2511
  var menus_1 = __webpack_require__(15);
2457
- exports.menus = menus_1.menus;
2512
+ Object.defineProperty(exports, "menus", { enumerable: true, get: function () { return menus_1.menus; } });
2458
2513
  var logs_1 = __webpack_require__(13);
2459
- exports.logs = logs_1.logs;
2514
+ Object.defineProperty(exports, "logs", { enumerable: true, get: function () { return logs_1.logs; } });
2460
2515
  var interfaces_1 = __webpack_require__(35);
2461
- exports.NotificationTypes = interfaces_1.NotificationTypes;
2462
- exports.ViewerActionTypes = interfaces_1.ViewerActionTypes;
2463
- exports.UserSettingTypes = interfaces_1.UserSettingTypes;
2516
+ Object.defineProperty(exports, "NotificationTypes", { enumerable: true, get: function () { return interfaces_1.NotificationTypes; } });
2517
+ Object.defineProperty(exports, "ViewerActionTypes", { enumerable: true, get: function () { return interfaces_1.ViewerActionTypes; } });
2518
+ Object.defineProperty(exports, "UserSettingTypes", { enumerable: true, get: function () { return interfaces_1.UserSettingTypes; } });
2464
2519
  var privateAPIs_1 = __webpack_require__(14);
2465
- exports.enterFullscreen = privateAPIs_1.enterFullscreen;
2466
- exports.exitFullscreen = privateAPIs_1.exitFullscreen;
2467
- exports.getChatMembers = privateAPIs_1.getChatMembers;
2468
- exports.getConfigSetting = privateAPIs_1.getConfigSetting;
2469
- exports.getUserJoinedTeams = privateAPIs_1.getUserJoinedTeams;
2470
- exports.openFilePreview = privateAPIs_1.openFilePreview;
2471
- exports.sendCustomMessage = privateAPIs_1.sendCustomMessage;
2472
- exports.showNotification = privateAPIs_1.showNotification;
2473
- exports.sendCustomEvent = privateAPIs_1.sendCustomEvent;
2474
- exports.registerCustomHandler = privateAPIs_1.registerCustomHandler;
2475
- exports.uploadCustomApp = privateAPIs_1.uploadCustomApp;
2476
- exports.registerUserSettingsChangeHandler = privateAPIs_1.registerUserSettingsChangeHandler;
2520
+ Object.defineProperty(exports, "enterFullscreen", { enumerable: true, get: function () { return privateAPIs_1.enterFullscreen; } });
2521
+ Object.defineProperty(exports, "exitFullscreen", { enumerable: true, get: function () { return privateAPIs_1.exitFullscreen; } });
2522
+ Object.defineProperty(exports, "getChatMembers", { enumerable: true, get: function () { return privateAPIs_1.getChatMembers; } });
2523
+ Object.defineProperty(exports, "getConfigSetting", { enumerable: true, get: function () { return privateAPIs_1.getConfigSetting; } });
2524
+ Object.defineProperty(exports, "getUserJoinedTeams", { enumerable: true, get: function () { return privateAPIs_1.getUserJoinedTeams; } });
2525
+ Object.defineProperty(exports, "openFilePreview", { enumerable: true, get: function () { return privateAPIs_1.openFilePreview; } });
2526
+ Object.defineProperty(exports, "sendCustomMessage", { enumerable: true, get: function () { return privateAPIs_1.sendCustomMessage; } });
2527
+ Object.defineProperty(exports, "showNotification", { enumerable: true, get: function () { return privateAPIs_1.showNotification; } });
2528
+ Object.defineProperty(exports, "sendCustomEvent", { enumerable: true, get: function () { return privateAPIs_1.sendCustomEvent; } });
2529
+ Object.defineProperty(exports, "registerCustomHandler", { enumerable: true, get: function () { return privateAPIs_1.registerCustomHandler; } });
2530
+ Object.defineProperty(exports, "uploadCustomApp", { enumerable: true, get: function () { return privateAPIs_1.uploadCustomApp; } });
2531
+ Object.defineProperty(exports, "registerUserSettingsChangeHandler", { enumerable: true, get: function () { return privateAPIs_1.registerUserSettingsChangeHandler; } });
2477
2532
  var conversations_1 = __webpack_require__(36);
2478
- exports.conversations = conversations_1.conversations;
2533
+ Object.defineProperty(exports, "conversations", { enumerable: true, get: function () { return conversations_1.conversations; } });
2479
2534
  var meetingRoom_1 = __webpack_require__(37);
2480
- exports.meetingRoom = meetingRoom_1.meetingRoom;
2535
+ Object.defineProperty(exports, "meetingRoom", { enumerable: true, get: function () { return meetingRoom_1.meetingRoom; } });
2481
2536
  var remoteCamera_1 = __webpack_require__(38);
2482
- exports.remoteCamera = remoteCamera_1.remoteCamera;
2537
+ Object.defineProperty(exports, "remoteCamera", { enumerable: true, get: function () { return remoteCamera_1.remoteCamera; } });
2483
2538
  var files_1 = __webpack_require__(39);
2484
- exports.files = files_1.files;
2539
+ Object.defineProperty(exports, "files", { enumerable: true, get: function () { return files_1.files; } });
2485
2540
  var appEntity_1 = __webpack_require__(40);
2486
- exports.appEntity = appEntity_1.appEntity;
2541
+ Object.defineProperty(exports, "appEntity", { enumerable: true, get: function () { return appEntity_1.appEntity; } });
2487
2542
  var teams_1 = __webpack_require__(41);
2488
- exports.teams = teams_1.teams;
2543
+ Object.defineProperty(exports, "teams", { enumerable: true, get: function () { return teams_1.teams; } });
2489
2544
 
2490
2545
 
2491
2546
  /***/ }),
@@ -2495,6 +2550,7 @@ exports.teams = teams_1.teams;
2495
2550
  "use strict";
2496
2551
 
2497
2552
  Object.defineProperty(exports, "__esModule", { value: true });
2553
+ exports.bot = void 0;
2498
2554
  var communication_1 = __webpack_require__(0);
2499
2555
  var internalAPIs_1 = __webpack_require__(1);
2500
2556
  /**
@@ -2513,8 +2569,8 @@ var bot;
2513
2569
  * @param onError callback to invoke should an error occur
2514
2570
  */
2515
2571
  function sendQuery(botRequest, onSuccess, onError) {
2516
- internalAPIs_1.ensureInitialized();
2517
- communication_1.sendMessageToParent('bot.executeQuery', [botRequest], function (success, response) {
2572
+ (0, internalAPIs_1.ensureInitialized)();
2573
+ (0, communication_1.sendMessageToParent)('bot.executeQuery', [botRequest], function (success, response) {
2518
2574
  if (success) {
2519
2575
  onSuccess(response);
2520
2576
  }
@@ -2533,8 +2589,8 @@ var bot;
2533
2589
  * @param onError callback to invoke should an error occur
2534
2590
  */
2535
2591
  function getSupportedCommands(onSuccess, onError) {
2536
- internalAPIs_1.ensureInitialized();
2537
- communication_1.sendMessageToParent('bot.getSupportedCommands', function (success, response) {
2592
+ (0, internalAPIs_1.ensureInitialized)();
2593
+ (0, communication_1.sendMessageToParent)('bot.getSupportedCommands', function (success, response) {
2538
2594
  if (success) {
2539
2595
  onSuccess(response);
2540
2596
  }
@@ -2554,8 +2610,8 @@ var bot;
2554
2610
  * @param onError callback to invoke should an error occur
2555
2611
  */
2556
2612
  function authenticate(authRequest, onSuccess, onError) {
2557
- internalAPIs_1.ensureInitialized();
2558
- communication_1.sendMessageToParent('bot.authenticate', [authRequest], function (success, response) {
2613
+ (0, internalAPIs_1.ensureInitialized)();
2614
+ (0, communication_1.sendMessageToParent)('bot.authenticate', [authRequest], function (success, response) {
2559
2615
  if (success) {
2560
2616
  onSuccess(response);
2561
2617
  }
@@ -2606,7 +2662,7 @@ var _clockseq;
2606
2662
  var _lastMSecs = 0;
2607
2663
  var _lastNSecs = 0;
2608
2664
 
2609
- // See https://github.com/broofa/node-uuid for API details
2665
+ // See https://github.com/uuidjs/uuid for API details
2610
2666
  function v1(options, buf, offset) {
2611
2667
  var i = buf && offset || 0;
2612
2668
  var b = buf || [];
@@ -2744,6 +2800,7 @@ module.exports = v4;
2744
2800
  "use strict";
2745
2801
 
2746
2802
  Object.defineProperty(exports, "__esModule", { value: true });
2803
+ exports.appInitialization = void 0;
2747
2804
  var internalAPIs_1 = __webpack_require__(1);
2748
2805
  var constants_1 = __webpack_require__(4);
2749
2806
  var communication_1 = __webpack_require__(0);
@@ -2773,24 +2830,24 @@ var appInitialization;
2773
2830
  * Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
2774
2831
  */
2775
2832
  function notifyAppLoaded() {
2776
- internalAPIs_1.ensureInitialized();
2777
- communication_1.sendMessageToParent(appInitialization.Messages.AppLoaded, [constants_1.version]);
2833
+ (0, internalAPIs_1.ensureInitialized)();
2834
+ (0, communication_1.sendMessageToParent)(appInitialization.Messages.AppLoaded, [constants_1.version]);
2778
2835
  }
2779
2836
  appInitialization.notifyAppLoaded = notifyAppLoaded;
2780
2837
  /**
2781
2838
  * Notifies the frame that app initialization is successful and is ready for user interaction.
2782
2839
  */
2783
2840
  function notifySuccess() {
2784
- internalAPIs_1.ensureInitialized();
2785
- communication_1.sendMessageToParent(appInitialization.Messages.Success, [constants_1.version]);
2841
+ (0, internalAPIs_1.ensureInitialized)();
2842
+ (0, communication_1.sendMessageToParent)(appInitialization.Messages.Success, [constants_1.version]);
2786
2843
  }
2787
2844
  appInitialization.notifySuccess = notifySuccess;
2788
2845
  /**
2789
2846
  * Notifies the frame that app initialization has failed and to show an error page in its place.
2790
2847
  */
2791
2848
  function notifyFailure(appInitializationFailedRequest) {
2792
- internalAPIs_1.ensureInitialized();
2793
- communication_1.sendMessageToParent(appInitialization.Messages.Failure, [
2849
+ (0, internalAPIs_1.ensureInitialized)();
2850
+ (0, communication_1.sendMessageToParent)(appInitialization.Messages.Failure, [
2794
2851
  appInitializationFailedRequest.reason,
2795
2852
  appInitializationFailedRequest.message,
2796
2853
  ]);
@@ -2800,8 +2857,8 @@ var appInitialization;
2800
2857
  * Notifies the frame that app initialized with some expected errors.
2801
2858
  */
2802
2859
  function notifyExpectedFailure(expectedFailureRequest) {
2803
- internalAPIs_1.ensureInitialized();
2804
- communication_1.sendMessageToParent(appInitialization.Messages.ExpectedFailure, [expectedFailureRequest.reason, expectedFailureRequest.message]);
2860
+ (0, internalAPIs_1.ensureInitialized)();
2861
+ (0, communication_1.sendMessageToParent)(appInitialization.Messages.ExpectedFailure, [expectedFailureRequest.reason, expectedFailureRequest.message]);
2805
2862
  }
2806
2863
  appInitialization.notifyExpectedFailure = notifyExpectedFailure;
2807
2864
  })(appInitialization = exports.appInitialization || (exports.appInitialization = {}));
@@ -2814,6 +2871,7 @@ var appInitialization;
2814
2871
  "use strict";
2815
2872
 
2816
2873
  Object.defineProperty(exports, "__esModule", { value: true });
2874
+ exports.initializeWithFrameContext = exports.setFrameContext = exports.executeDeepLink = exports.shareDeepLink = exports.getMruTabInstances = exports.getTabInstances = exports.registerEnterSettingsHandler = exports.registerFocusEnterHandler = exports.registerBeforeUnloadHandler = exports.registerOnLoadHandler = exports.registerBackButtonHandler = exports.registerAppButtonHoverLeaveHandler = exports.registerAppButtonHoverEnterHandler = exports.registerAppButtonClickHandler = exports.registerFullScreenHandler = exports.registerOnThemeChangeHandler = exports.getContext = exports.print = exports.enablePrintCapability = exports._uninitialize = exports._initialize = exports.initialize = void 0;
2817
2875
  var internalAPIs_1 = __webpack_require__(1);
2818
2876
  var globalVars_1 = __webpack_require__(6);
2819
2877
  var constants_1 = __webpack_require__(4);
@@ -2839,7 +2897,7 @@ function initialize(callback, validMessageOrigins) {
2839
2897
  if (!globalVars_1.GlobalVars.initializeCalled) {
2840
2898
  globalVars_1.GlobalVars.initializeCalled = true;
2841
2899
  Handlers.initializeHandlers();
2842
- communication_1.initializeCommunication(function (context, clientType, clientSupportedSDKVersion) {
2900
+ (0, communication_1.initializeCommunication)(function (context, clientType, clientSupportedSDKVersion) {
2843
2901
  if (clientSupportedSDKVersion === void 0) { clientSupportedSDKVersion = constants_1.defaultSDKVersionForCompatCheck; }
2844
2902
  globalVars_1.GlobalVars.frameContext = context;
2845
2903
  globalVars_1.GlobalVars.hostClientType = clientType;
@@ -2851,37 +2909,11 @@ function initialize(callback, validMessageOrigins) {
2851
2909
  }, validMessageOrigins);
2852
2910
  authentication_1.authentication.initialize();
2853
2911
  settings_1.settings.initialize();
2854
- privateAPIs_1.initializePrivateApis();
2855
- // Undocumented function used to clear state between unit tests
2856
- this._uninitialize = function () {
2857
- if (globalVars_1.GlobalVars.frameContext) {
2858
- registerOnThemeChangeHandler(null);
2859
- registerFullScreenHandler(null);
2860
- registerBackButtonHandler(null);
2861
- registerBeforeUnloadHandler(null);
2862
- registerFocusEnterHandler(null);
2863
- registerOnLoadHandler(null);
2864
- logs_1.logs.registerGetLogHandler(null);
2865
- }
2866
- if (globalVars_1.GlobalVars.frameContext === constants_2.FrameContexts.settings) {
2867
- settings_1.settings.registerOnSaveHandler(null);
2868
- }
2869
- if (globalVars_1.GlobalVars.frameContext === constants_2.FrameContexts.remove) {
2870
- settings_1.settings.registerOnRemoveHandler(null);
2871
- }
2872
- globalVars_1.GlobalVars.initializeCalled = false;
2873
- globalVars_1.GlobalVars.initializeCompleted = false;
2874
- globalVars_1.GlobalVars.initializeCallbacks = [];
2875
- globalVars_1.GlobalVars.additionalValidOrigins = [];
2876
- globalVars_1.GlobalVars.frameContext = null;
2877
- globalVars_1.GlobalVars.hostClientType = null;
2878
- globalVars_1.GlobalVars.isFramelessWindow = false;
2879
- communication_1.uninitializeCommunication();
2880
- };
2912
+ (0, privateAPIs_1.initializePrivateApis)();
2881
2913
  }
2882
2914
  // Handle additional valid message origins if specified
2883
2915
  if (Array.isArray(validMessageOrigins)) {
2884
- internalAPIs_1.processAdditionalValidOrigins(validMessageOrigins);
2916
+ (0, internalAPIs_1.processAdditionalValidOrigins)(validMessageOrigins);
2885
2917
  }
2886
2918
  // Handle the callback if specified:
2887
2919
  // 1. If initialization has already completed then just call it right away
@@ -2908,7 +2940,35 @@ exports._initialize = _initialize;
2908
2940
  * ------
2909
2941
  * Undocumented function used to clear state between unit tests
2910
2942
  */
2911
- function _uninitialize() { }
2943
+ function _uninitialize() {
2944
+ //used to clear state between unit tests
2945
+ if (!globalVars_1.GlobalVars.initializeCalled) {
2946
+ return;
2947
+ }
2948
+ if (globalVars_1.GlobalVars.frameContext) {
2949
+ registerOnThemeChangeHandler(null);
2950
+ registerFullScreenHandler(null);
2951
+ registerBackButtonHandler(null);
2952
+ registerBeforeUnloadHandler(null);
2953
+ registerFocusEnterHandler(null);
2954
+ registerOnLoadHandler(null);
2955
+ logs_1.logs.registerGetLogHandler(null);
2956
+ }
2957
+ if (globalVars_1.GlobalVars.frameContext === constants_2.FrameContexts.settings) {
2958
+ settings_1.settings.registerOnSaveHandler(null);
2959
+ }
2960
+ if (globalVars_1.GlobalVars.frameContext === constants_2.FrameContexts.remove) {
2961
+ settings_1.settings.registerOnRemoveHandler(null);
2962
+ }
2963
+ globalVars_1.GlobalVars.initializeCalled = false;
2964
+ globalVars_1.GlobalVars.initializeCompleted = false;
2965
+ globalVars_1.GlobalVars.initializeCallbacks = [];
2966
+ globalVars_1.GlobalVars.additionalValidOrigins = [];
2967
+ globalVars_1.GlobalVars.frameContext = null;
2968
+ globalVars_1.GlobalVars.hostClientType = null;
2969
+ globalVars_1.GlobalVars.isFramelessWindow = false;
2970
+ (0, communication_1.uninitializeCommunication)();
2971
+ }
2912
2972
  exports._uninitialize = _uninitialize;
2913
2973
  /**
2914
2974
  * Enable print capability to support printing page using Ctrl+P and cmd+P
@@ -2916,7 +2976,7 @@ exports._uninitialize = _uninitialize;
2916
2976
  function enablePrintCapability() {
2917
2977
  if (!globalVars_1.GlobalVars.printCapabilityEnabled) {
2918
2978
  globalVars_1.GlobalVars.printCapabilityEnabled = true;
2919
- internalAPIs_1.ensureInitialized();
2979
+ (0, internalAPIs_1.ensureInitialized)();
2920
2980
  // adding ctrl+P and cmd+P handler
2921
2981
  document.addEventListener('keydown', function (event) {
2922
2982
  if ((event.ctrlKey || event.metaKey) && event.keyCode === 80) {
@@ -2941,8 +3001,8 @@ exports.print = print;
2941
3001
  * @param callback The callback to invoke when the {@link Context} object is retrieved.
2942
3002
  */
2943
3003
  function getContext(callback) {
2944
- internalAPIs_1.ensureInitialized();
2945
- communication_1.sendMessageToParent('getContext', function (context) {
3004
+ (0, internalAPIs_1.ensureInitialized)();
3005
+ (0, communication_1.sendMessageToParent)('getContext', function (context) {
2946
3006
  if (!context.frameContext) {
2947
3007
  // Fallback logic for frameContext properties
2948
3008
  context.frameContext = globalVars_1.GlobalVars.frameContext;
@@ -2957,7 +3017,7 @@ exports.getContext = getContext;
2957
3017
  * @param handler The handler to invoke when the user changes their theme.
2958
3018
  */
2959
3019
  function registerOnThemeChangeHandler(handler) {
2960
- internalAPIs_1.ensureInitialized();
3020
+ (0, internalAPIs_1.ensureInitialized)();
2961
3021
  Handlers.registerOnThemeChangeHandler(handler);
2962
3022
  }
2963
3023
  exports.registerOnThemeChangeHandler = registerOnThemeChangeHandler;
@@ -2967,7 +3027,7 @@ exports.registerOnThemeChangeHandler = registerOnThemeChangeHandler;
2967
3027
  * @param handler The handler to invoke when the user toggles full-screen view for a tab.
2968
3028
  */
2969
3029
  function registerFullScreenHandler(handler) {
2970
- internalAPIs_1.ensureInitialized();
3030
+ (0, internalAPIs_1.ensureInitialized)();
2971
3031
  Handlers.registerHandler('fullScreenChange', handler);
2972
3032
  }
2973
3033
  exports.registerFullScreenHandler = registerFullScreenHandler;
@@ -2977,7 +3037,7 @@ exports.registerFullScreenHandler = registerFullScreenHandler;
2977
3037
  * @param handler The handler to invoke when the personal app button is clicked in the app bar.
2978
3038
  */
2979
3039
  function registerAppButtonClickHandler(handler) {
2980
- internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
3040
+ (0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
2981
3041
  Handlers.registerHandler('appButtonClick', handler);
2982
3042
  }
2983
3043
  exports.registerAppButtonClickHandler = registerAppButtonClickHandler;
@@ -2987,7 +3047,7 @@ exports.registerAppButtonClickHandler = registerAppButtonClickHandler;
2987
3047
  * @param handler The handler to invoke when entering hover of the personal app button in the app bar.
2988
3048
  */
2989
3049
  function registerAppButtonHoverEnterHandler(handler) {
2990
- internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
3050
+ (0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
2991
3051
  Handlers.registerHandler('appButtonHoverEnter', handler);
2992
3052
  }
2993
3053
  exports.registerAppButtonHoverEnterHandler = registerAppButtonHoverEnterHandler;
@@ -2997,7 +3057,7 @@ exports.registerAppButtonHoverEnterHandler = registerAppButtonHoverEnterHandler;
2997
3057
  * @param handler The handler to invoke when exiting hover of the personal app button in the app bar.
2998
3058
  */
2999
3059
  function registerAppButtonHoverLeaveHandler(handler) {
3000
- internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
3060
+ (0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
3001
3061
  Handlers.registerHandler('appButtonHoverLeave', handler);
3002
3062
  }
3003
3063
  exports.registerAppButtonHoverLeaveHandler = registerAppButtonHoverLeaveHandler;
@@ -3009,7 +3069,7 @@ exports.registerAppButtonHoverLeaveHandler = registerAppButtonHoverLeaveHandler;
3009
3069
  * @param handler The handler to invoke when the user presses their Team client's back button.
3010
3070
  */
3011
3071
  function registerBackButtonHandler(handler) {
3012
- internalAPIs_1.ensureInitialized();
3072
+ (0, internalAPIs_1.ensureInitialized)();
3013
3073
  Handlers.registerBackButtonHandler(handler);
3014
3074
  }
3015
3075
  exports.registerBackButtonHandler = registerBackButtonHandler;
@@ -3019,7 +3079,7 @@ exports.registerBackButtonHandler = registerBackButtonHandler;
3019
3079
  * @param handler The handler to invoke when the page is loaded.
3020
3080
  */
3021
3081
  function registerOnLoadHandler(handler) {
3022
- internalAPIs_1.ensureInitialized();
3082
+ (0, internalAPIs_1.ensureInitialized)();
3023
3083
  Handlers.registerOnLoadHandler(handler);
3024
3084
  }
3025
3085
  exports.registerOnLoadHandler = registerOnLoadHandler;
@@ -3030,7 +3090,7 @@ exports.registerOnLoadHandler = registerOnLoadHandler;
3030
3090
  * invoke the readyToUnload function provided to it once it's ready to be unloaded.
3031
3091
  */
3032
3092
  function registerBeforeUnloadHandler(handler) {
3033
- internalAPIs_1.ensureInitialized();
3093
+ (0, internalAPIs_1.ensureInitialized)();
3034
3094
  Handlers.registerBeforeUnloadHandler(handler);
3035
3095
  }
3036
3096
  exports.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
@@ -3040,7 +3100,7 @@ exports.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
3040
3100
  * @param handler The handler to invoked by the app when they want the focus to be in the place of their choice.
3041
3101
  */
3042
3102
  function registerFocusEnterHandler(handler) {
3043
- internalAPIs_1.ensureInitialized();
3103
+ (0, internalAPIs_1.ensureInitialized)();
3044
3104
  Handlers.registerFocusEnterHandler(handler);
3045
3105
  }
3046
3106
  exports.registerFocusEnterHandler = registerFocusEnterHandler;
@@ -3049,7 +3109,7 @@ exports.registerFocusEnterHandler = registerFocusEnterHandler;
3049
3109
  * @param handler The handler to invoke when the user click on Settings.
3050
3110
  */
3051
3111
  function registerEnterSettingsHandler(handler) {
3052
- internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
3112
+ (0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
3053
3113
  Handlers.registerHandler('changeSettings', handler);
3054
3114
  }
3055
3115
  exports.registerEnterSettingsHandler = registerEnterSettingsHandler;
@@ -3060,8 +3120,8 @@ exports.registerEnterSettingsHandler = registerEnterSettingsHandler;
3060
3120
  * @param tabInstanceParameters OPTIONAL Flags that specify whether to scope call to favorite teams or channels.
3061
3121
  */
3062
3122
  function getTabInstances(callback, tabInstanceParameters) {
3063
- internalAPIs_1.ensureInitialized();
3064
- communication_1.sendMessageToParent('getTabInstances', [tabInstanceParameters], callback);
3123
+ (0, internalAPIs_1.ensureInitialized)();
3124
+ (0, communication_1.sendMessageToParent)('getTabInstances', [tabInstanceParameters], callback);
3065
3125
  }
3066
3126
  exports.getTabInstances = getTabInstances;
3067
3127
  /**
@@ -3070,8 +3130,8 @@ exports.getTabInstances = getTabInstances;
3070
3130
  * @param tabInstanceParameters OPTIONAL Ignored, kept for future use
3071
3131
  */
3072
3132
  function getMruTabInstances(callback, tabInstanceParameters) {
3073
- internalAPIs_1.ensureInitialized();
3074
- communication_1.sendMessageToParent('getMruTabInstances', [tabInstanceParameters], callback);
3133
+ (0, internalAPIs_1.ensureInitialized)();
3134
+ (0, communication_1.sendMessageToParent)('getMruTabInstances', [tabInstanceParameters], callback);
3075
3135
  }
3076
3136
  exports.getMruTabInstances = getMruTabInstances;
3077
3137
  /**
@@ -3079,8 +3139,8 @@ exports.getMruTabInstances = getMruTabInstances;
3079
3139
  * @param deepLinkParameters ID and label for the link and fallback URL.
3080
3140
  */
3081
3141
  function shareDeepLink(deepLinkParameters) {
3082
- internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content, constants_2.FrameContexts.sidePanel, constants_2.FrameContexts.meetingStage);
3083
- communication_1.sendMessageToParent('shareDeepLink', [
3142
+ (0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content, constants_2.FrameContexts.sidePanel, constants_2.FrameContexts.meetingStage);
3143
+ (0, communication_1.sendMessageToParent)('shareDeepLink', [
3084
3144
  deepLinkParameters.subEntityId,
3085
3145
  deepLinkParameters.subEntityLabel,
3086
3146
  deepLinkParameters.subEntityWebUrl,
@@ -3092,13 +3152,13 @@ exports.shareDeepLink = shareDeepLink;
3092
3152
  * @param deepLink deep link.
3093
3153
  */
3094
3154
  function executeDeepLink(deepLink, onComplete) {
3095
- internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content, constants_2.FrameContexts.sidePanel, constants_2.FrameContexts.settings, constants_2.FrameContexts.task, constants_2.FrameContexts.stage, constants_2.FrameContexts.meetingStage);
3096
- communication_1.sendMessageToParent('executeDeepLink', [deepLink], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler());
3155
+ (0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content, constants_2.FrameContexts.sidePanel, constants_2.FrameContexts.settings, constants_2.FrameContexts.task, constants_2.FrameContexts.stage, constants_2.FrameContexts.meetingStage);
3156
+ (0, communication_1.sendMessageToParent)('executeDeepLink', [deepLink], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
3097
3157
  }
3098
3158
  exports.executeDeepLink = executeDeepLink;
3099
3159
  function setFrameContext(frameContext) {
3100
- internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
3101
- communication_1.sendMessageToParent('setFrameContext', [frameContext]);
3160
+ (0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
3161
+ (0, communication_1.sendMessageToParent)('setFrameContext', [frameContext]);
3102
3162
  }
3103
3163
  exports.setFrameContext = setFrameContext;
3104
3164
  function initializeWithFrameContext(frameContext, callback, validMessageOrigins) {
@@ -3115,6 +3175,7 @@ exports.initializeWithFrameContext = initializeWithFrameContext;
3115
3175
  "use strict";
3116
3176
 
3117
3177
  Object.defineProperty(exports, "__esModule", { value: true });
3178
+ exports.navigateBack = exports.navigateCrossDomain = exports.navigateToTab = exports.returnFocus = void 0;
3118
3179
  var internalAPIs_1 = __webpack_require__(1);
3119
3180
  var utils_1 = __webpack_require__(5);
3120
3181
  var constants_1 = __webpack_require__(2);
@@ -3123,12 +3184,12 @@ var communication_1 = __webpack_require__(0);
3123
3184
  * Navigation specific part of the SDK.
3124
3185
  */
3125
3186
  /**
3126
- * Return focus to the main Teams app. Will focus search bar if navigating foward and app bar if navigating back.
3187
+ * Return focus to the main Teams app. Will focus search bar if navigating forward and app bar if navigating back.
3127
3188
  * @param navigateForward Determines the direction to focus in teams app.
3128
3189
  */
3129
3190
  function returnFocus(navigateForward) {
3130
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
3131
- communication_1.sendMessageToParent('returnFocus', [navigateForward]);
3191
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
3192
+ (0, communication_1.sendMessageToParent)('returnFocus', [navigateForward]);
3132
3193
  }
3133
3194
  exports.returnFocus = returnFocus;
3134
3195
  /**
@@ -3136,9 +3197,9 @@ exports.returnFocus = returnFocus;
3136
3197
  * @param tabInstance The tab instance to navigate to.
3137
3198
  */
3138
3199
  function navigateToTab(tabInstance, onComplete) {
3139
- internalAPIs_1.ensureInitialized();
3200
+ (0, internalAPIs_1.ensureInitialized)();
3140
3201
  var errorMessage = 'Invalid internalTabInstanceId and/or channelId were/was provided';
3141
- communication_1.sendMessageToParent('navigateToTab', [tabInstance], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler(errorMessage));
3202
+ (0, communication_1.sendMessageToParent)('navigateToTab', [tabInstance], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)(errorMessage));
3142
3203
  }
3143
3204
  exports.navigateToTab = navigateToTab;
3144
3205
  /**
@@ -3150,9 +3211,9 @@ exports.navigateToTab = navigateToTab;
3150
3211
  * @param url The URL to navigate the frame to.
3151
3212
  */
3152
3213
  function navigateCrossDomain(url, onComplete) {
3153
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.settings, constants_1.FrameContexts.remove, constants_1.FrameContexts.task, constants_1.FrameContexts.stage, constants_1.FrameContexts.meetingStage);
3214
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.settings, constants_1.FrameContexts.remove, constants_1.FrameContexts.task, constants_1.FrameContexts.stage, constants_1.FrameContexts.meetingStage);
3154
3215
  var errorMessage = 'Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.';
3155
- communication_1.sendMessageToParent('navigateCrossDomain', [url], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler(errorMessage));
3216
+ (0, communication_1.sendMessageToParent)('navigateCrossDomain', [url], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)(errorMessage));
3156
3217
  }
3157
3218
  exports.navigateCrossDomain = navigateCrossDomain;
3158
3219
  /**
@@ -3160,9 +3221,9 @@ exports.navigateCrossDomain = navigateCrossDomain;
3160
3221
  * it's appropriate to use this method.
3161
3222
  */
3162
3223
  function navigateBack(onComplete) {
3163
- internalAPIs_1.ensureInitialized();
3224
+ (0, internalAPIs_1.ensureInitialized)();
3164
3225
  var errorMessage = 'Back navigation is not supported in the current client or context.';
3165
- communication_1.sendMessageToParent('navigateBack', [], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler(errorMessage));
3226
+ (0, communication_1.sendMessageToParent)('navigateBack', [], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)(errorMessage));
3166
3227
  }
3167
3228
  exports.navigateBack = navigateBack;
3168
3229
 
@@ -3178,11 +3239,14 @@ var __rest = (this && this.__rest) || function (s, e) {
3178
3239
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3179
3240
  t[p] = s[p];
3180
3241
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
3181
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
3182
- t[p[i]] = s[p[i]];
3242
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3243
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3244
+ t[p[i]] = s[p[i]];
3245
+ }
3183
3246
  return t;
3184
3247
  };
3185
3248
  Object.defineProperty(exports, "__esModule", { value: true });
3249
+ exports.tasks = void 0;
3186
3250
  var constants_1 = __webpack_require__(2);
3187
3251
  var appWindow_1 = __webpack_require__(16);
3188
3252
  var communication_1 = __webpack_require__(0);
@@ -3199,8 +3263,8 @@ var tasks;
3199
3263
  * @param submitHandler Handler to call when the task module is completed
3200
3264
  */
3201
3265
  function startTask(taskInfo, submitHandler) {
3202
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3203
- communication_1.sendMessageToParent('tasks.startTask', [taskInfo], submitHandler);
3266
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3267
+ (0, communication_1.sendMessageToParent)('tasks.startTask', [taskInfo], submitHandler);
3204
3268
  return new appWindow_1.ChildAppWindow();
3205
3269
  }
3206
3270
  tasks.startTask = startTask;
@@ -3209,10 +3273,10 @@ var tasks;
3209
3273
  * @param taskInfo An object containing width and height properties
3210
3274
  */
3211
3275
  function updateTask(taskInfo) {
3212
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.meetingStage);
3276
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.meetingStage);
3213
3277
  var width = taskInfo.width, height = taskInfo.height, extra = __rest(taskInfo, ["width", "height"]);
3214
3278
  if (!Object.keys(extra).length) {
3215
- communication_1.sendMessageToParent('tasks.updateTask', [taskInfo]);
3279
+ (0, communication_1.sendMessageToParent)('tasks.updateTask', [taskInfo]);
3216
3280
  }
3217
3281
  else {
3218
3282
  throw new Error('updateTask requires a taskInfo argument containing only width and height');
@@ -3225,9 +3289,9 @@ var tasks;
3225
3289
  * @param appIds Helps to validate that the call originates from the same appId as the one that invoked the task module
3226
3290
  */
3227
3291
  function submitTask(result, appIds) {
3228
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.meetingStage);
3292
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.meetingStage);
3229
3293
  // Send tasks.completeTask instead of tasks.submitTask message for backward compatibility with Mobile clients
3230
- communication_1.sendMessageToParent('tasks.completeTask', [result, Array.isArray(appIds) ? appIds : [appIds]]);
3294
+ (0, communication_1.sendMessageToParent)('tasks.completeTask', [result, Array.isArray(appIds) ? appIds : [appIds]]);
3231
3295
  }
3232
3296
  tasks.submitTask = submitTask;
3233
3297
  })(tasks = exports.tasks || (exports.tasks = {}));
@@ -3240,6 +3304,7 @@ var tasks;
3240
3304
  "use strict";
3241
3305
 
3242
3306
  Object.defineProperty(exports, "__esModule", { value: true });
3307
+ exports.location = void 0;
3243
3308
  var interfaces_1 = __webpack_require__(7);
3244
3309
  var internalAPIs_1 = __webpack_require__(1);
3245
3310
  var constants_1 = __webpack_require__(2);
@@ -3255,8 +3320,8 @@ var location;
3255
3320
  if (!callback) {
3256
3321
  throw new Error('[location.getLocation] Callback cannot be null');
3257
3322
  }
3258
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
3259
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.locationAPIsRequiredVersion)) {
3323
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
3324
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.locationAPIsRequiredVersion)) {
3260
3325
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
3261
3326
  callback(oldPlatformError, undefined);
3262
3327
  return;
@@ -3266,7 +3331,7 @@ var location;
3266
3331
  callback(invalidInput, undefined);
3267
3332
  return;
3268
3333
  }
3269
- communication_1.sendMessageToParent('location.getLocation', [props], callback);
3334
+ (0, communication_1.sendMessageToParent)('location.getLocation', [props], callback);
3270
3335
  }
3271
3336
  location_1.getLocation = getLocation;
3272
3337
  /**
@@ -3278,8 +3343,8 @@ var location;
3278
3343
  if (!callback) {
3279
3344
  throw new Error('[location.showLocation] Callback cannot be null');
3280
3345
  }
3281
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
3282
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.locationAPIsRequiredVersion)) {
3346
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
3347
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.locationAPIsRequiredVersion)) {
3283
3348
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
3284
3349
  callback(oldPlatformError, undefined);
3285
3350
  return;
@@ -3289,7 +3354,7 @@ var location;
3289
3354
  callback(invalidInput, undefined);
3290
3355
  return;
3291
3356
  }
3292
- communication_1.sendMessageToParent('location.showLocation', [location], callback);
3357
+ (0, communication_1.sendMessageToParent)('location.showLocation', [location], callback);
3293
3358
  }
3294
3359
  location_1.showLocation = showLocation;
3295
3360
  })(location = exports.location || (exports.location = {}));
@@ -3302,6 +3367,7 @@ var location;
3302
3367
  "use strict";
3303
3368
 
3304
3369
  Object.defineProperty(exports, "__esModule", { value: true });
3370
+ exports.meeting = void 0;
3305
3371
  var communication_1 = __webpack_require__(0);
3306
3372
  var handlers_1 = __webpack_require__(3);
3307
3373
  var internalAPIs_1 = __webpack_require__(1);
@@ -3328,8 +3394,8 @@ var meeting;
3328
3394
  if (!callback) {
3329
3395
  throw new Error('[get incoming client audio state] Callback cannot be null');
3330
3396
  }
3331
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3332
- communication_1.sendMessageToParent('getIncomingClientAudioState', callback);
3397
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3398
+ (0, communication_1.sendMessageToParent)('getIncomingClientAudioState', callback);
3333
3399
  }
3334
3400
  meeting.getIncomingClientAudioState = getIncomingClientAudioState;
3335
3401
  /**
@@ -3343,8 +3409,8 @@ var meeting;
3343
3409
  if (!callback) {
3344
3410
  throw new Error('[toggle incoming client audio] Callback cannot be null');
3345
3411
  }
3346
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3347
- communication_1.sendMessageToParent('toggleIncomingClientAudio', callback);
3412
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3413
+ (0, communication_1.sendMessageToParent)('toggleIncomingClientAudio', callback);
3348
3414
  }
3349
3415
  meeting.toggleIncomingClientAudio = toggleIncomingClientAudio;
3350
3416
  /**
@@ -3359,8 +3425,8 @@ var meeting;
3359
3425
  if (!callback) {
3360
3426
  throw new Error('[get meeting details] Callback cannot be null');
3361
3427
  }
3362
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage, constants_1.FrameContexts.settings, constants_1.FrameContexts.content);
3363
- communication_1.sendMessageToParent('meeting.getMeetingDetails', callback);
3428
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage, constants_1.FrameContexts.settings, constants_1.FrameContexts.content);
3429
+ (0, communication_1.sendMessageToParent)('meeting.getMeetingDetails', callback);
3364
3430
  }
3365
3431
  meeting.getMeetingDetails = getMeetingDetails;
3366
3432
  /**
@@ -3374,8 +3440,8 @@ var meeting;
3374
3440
  if (!callback) {
3375
3441
  throw new Error('[get Authentication Token For AnonymousUser] Callback cannot be null');
3376
3442
  }
3377
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3378
- communication_1.sendMessageToParent('meeting.getAuthenticationTokenForAnonymousUser', callback);
3443
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
3444
+ (0, communication_1.sendMessageToParent)('meeting.getAuthenticationTokenForAnonymousUser', callback);
3379
3445
  }
3380
3446
  meeting.getAuthenticationTokenForAnonymousUser = getAuthenticationTokenForAnonymousUser;
3381
3447
  /**
@@ -3388,8 +3454,8 @@ var meeting;
3388
3454
  if (!callback) {
3389
3455
  throw new Error('[get live stream state] Callback cannot be null');
3390
3456
  }
3391
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3392
- communication_1.sendMessageToParent('meeting.getLiveStreamState', callback);
3457
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3458
+ (0, communication_1.sendMessageToParent)('meeting.getLiveStreamState', callback);
3393
3459
  }
3394
3460
  meeting.getLiveStreamState = getLiveStreamState;
3395
3461
  /**
@@ -3403,8 +3469,8 @@ var meeting;
3403
3469
  if (!callback) {
3404
3470
  throw new Error('[request start live streaming] Callback cannot be null');
3405
3471
  }
3406
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3407
- communication_1.sendMessageToParent('meeting.requestStartLiveStreaming', [streamUrl, streamKey], callback);
3472
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3473
+ (0, communication_1.sendMessageToParent)('meeting.requestStartLiveStreaming', [streamUrl, streamKey], callback);
3408
3474
  }
3409
3475
  meeting.requestStartLiveStreaming = requestStartLiveStreaming;
3410
3476
  /**
@@ -3416,8 +3482,8 @@ var meeting;
3416
3482
  if (!callback) {
3417
3483
  throw new Error('[request stop live streaming] Callback cannot be null');
3418
3484
  }
3419
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3420
- communication_1.sendMessageToParent('meeting.requestStopLiveStreaming', callback);
3485
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3486
+ (0, communication_1.sendMessageToParent)('meeting.requestStopLiveStreaming', callback);
3421
3487
  }
3422
3488
  meeting.requestStopLiveStreaming = requestStopLiveStreaming;
3423
3489
  /**
@@ -3429,8 +3495,8 @@ var meeting;
3429
3495
  if (!handler) {
3430
3496
  throw new Error('[register live stream changed handler] Handler cannot be null');
3431
3497
  }
3432
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3433
- handlers_1.registerHandler('meeting.liveStreamChanged', handler);
3498
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3499
+ (0, handlers_1.registerHandler)('meeting.liveStreamChanged', handler);
3434
3500
  }
3435
3501
  meeting.registerLiveStreamChangedHandler = registerLiveStreamChangedHandler;
3436
3502
  /**
@@ -3444,8 +3510,8 @@ var meeting;
3444
3510
  if (!callback) {
3445
3511
  throw new Error('[share app content to stage] Callback cannot be null');
3446
3512
  }
3447
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3448
- communication_1.sendMessageToParent('meeting.shareAppContentToStage', [appContentUrl], callback);
3513
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3514
+ (0, communication_1.sendMessageToParent)('meeting.shareAppContentToStage', [appContentUrl], callback);
3449
3515
  }
3450
3516
  meeting.shareAppContentToStage = shareAppContentToStage;
3451
3517
  /**
@@ -3459,11 +3525,13 @@ var meeting;
3459
3525
  if (!callback) {
3460
3526
  throw new Error('[get app content stage sharing capabilities] Callback cannot be null');
3461
3527
  }
3462
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3463
- communication_1.sendMessageToParent('meeting.getAppContentStageSharingCapabilities', callback);
3528
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3529
+ (0, communication_1.sendMessageToParent)('meeting.getAppContentStageSharingCapabilities', callback);
3464
3530
  }
3465
3531
  meeting.getAppContentStageSharingCapabilities = getAppContentStageSharingCapabilities;
3466
3532
  /**
3533
+ * @private
3534
+ * Hide from docs
3467
3535
  * Terminates current stage sharing session in meeting
3468
3536
  * @param callback Callback contains 2 parameters, error and result.
3469
3537
  * error can either contain an error of type SdkError (error indication), or null (non-error indication)
@@ -3473,8 +3541,8 @@ var meeting;
3473
3541
  if (!callback) {
3474
3542
  throw new Error('[stop sharing app content to stage] Callback cannot be null');
3475
3543
  }
3476
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3477
- communication_1.sendMessageToParent('meeting.stopSharingAppContentToStage', callback);
3544
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3545
+ (0, communication_1.sendMessageToParent)('meeting.stopSharingAppContentToStage', callback);
3478
3546
  }
3479
3547
  meeting.stopSharingAppContentToStage = stopSharingAppContentToStage;
3480
3548
  /**
@@ -3488,8 +3556,8 @@ var meeting;
3488
3556
  if (!callback) {
3489
3557
  throw new Error('[get app content stage sharing state] Callback cannot be null');
3490
3558
  }
3491
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3492
- communication_1.sendMessageToParent('meeting.getAppContentStageSharingState', callback);
3559
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3560
+ (0, communication_1.sendMessageToParent)('meeting.getAppContentStageSharingState', callback);
3493
3561
  }
3494
3562
  meeting.getAppContentStageSharingState = getAppContentStageSharingState;
3495
3563
  })(meeting = exports.meeting || (exports.meeting = {}));
@@ -3502,6 +3570,7 @@ var meeting;
3502
3570
  "use strict";
3503
3571
 
3504
3572
  Object.defineProperty(exports, "__esModule", { value: true });
3573
+ exports.monetization = void 0;
3505
3574
  var communication_1 = __webpack_require__(0);
3506
3575
  var internalAPIs_1 = __webpack_require__(1);
3507
3576
  var constants_1 = __webpack_require__(2);
@@ -3519,8 +3588,8 @@ var monetization;
3519
3588
  if (!callback) {
3520
3589
  throw new Error('[open purchase experience] Callback cannot be null');
3521
3590
  }
3522
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
3523
- communication_1.sendMessageToParent('monetization.openPurchaseExperience', [planInfo], callback);
3591
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
3592
+ (0, communication_1.sendMessageToParent)('monetization.openPurchaseExperience', [planInfo], callback);
3524
3593
  }
3525
3594
  monetization.openPurchaseExperience = openPurchaseExperience;
3526
3595
  })(monetization = exports.monetization || (exports.monetization = {}));
@@ -3533,6 +3602,7 @@ var monetization;
3533
3602
  "use strict";
3534
3603
 
3535
3604
  Object.defineProperty(exports, "__esModule", { value: true });
3605
+ exports.people = void 0;
3536
3606
  var internalAPIs_1 = __webpack_require__(1);
3537
3607
  var constants_1 = __webpack_require__(2);
3538
3608
  var interfaces_1 = __webpack_require__(7);
@@ -3551,18 +3621,18 @@ var people;
3551
3621
  if (!callback) {
3552
3622
  throw new Error('[people picker] Callback cannot be null');
3553
3623
  }
3554
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task, constants_1.FrameContexts.settings);
3555
- if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.peoplePickerRequiredVersion)) {
3624
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task, constants_1.FrameContexts.settings);
3625
+ if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.peoplePickerRequiredVersion)) {
3556
3626
  var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
3557
3627
  callback(oldPlatformError, undefined);
3558
3628
  return;
3559
3629
  }
3560
- if (!mediaUtil_1.validatePeoplePickerInput(peoplePickerInputs)) {
3630
+ if (!(0, mediaUtil_1.validatePeoplePickerInput)(peoplePickerInputs)) {
3561
3631
  var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
3562
3632
  callback(invalidInput, null);
3563
3633
  return;
3564
3634
  }
3565
- communication_1.sendMessageToParent('people.selectPeople', [peoplePickerInputs], callback);
3635
+ (0, communication_1.sendMessageToParent)('people.selectPeople', [peoplePickerInputs], callback);
3566
3636
  }
3567
3637
  people_1.selectPeople = selectPeople;
3568
3638
  })(people = exports.people || (exports.people = {}));
@@ -3575,6 +3645,7 @@ var people;
3575
3645
  "use strict";
3576
3646
 
3577
3647
  Object.defineProperty(exports, "__esModule", { value: true });
3648
+ exports.video = void 0;
3578
3649
  var communication_1 = __webpack_require__(0);
3579
3650
  var internalAPIs_1 = __webpack_require__(1);
3580
3651
  var constants_1 = __webpack_require__(2);
@@ -3586,7 +3657,7 @@ var handlers_1 = __webpack_require__(3);
3586
3657
  var video;
3587
3658
  (function (video) {
3588
3659
  /**
3589
- * Video frame format enum, currentlyl only support NV12
3660
+ * Video frame format enum, currently only support NV12
3590
3661
  */
3591
3662
  var VideoFrameFormat;
3592
3663
  (function (VideoFrameFormat) {
@@ -3610,13 +3681,13 @@ var video;
3610
3681
  * register to read the video frames in Permissions section.
3611
3682
  */
3612
3683
  function registerForVideoFrame(frameCallback, config) {
3613
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3614
- handlers_1.registerHandler('video.newVideoFrame', function (videoFrame) {
3684
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3685
+ (0, handlers_1.registerHandler)('video.newVideoFrame', function (videoFrame) {
3615
3686
  if (videoFrame !== undefined) {
3616
3687
  frameCallback(videoFrame, notifyVideoFrameProcessed, notifyError);
3617
3688
  }
3618
3689
  });
3619
- communication_1.sendMessageToParent('video.registerForVideoFrame', [config]);
3690
+ (0, communication_1.sendMessageToParent)('video.registerForVideoFrame', [config]);
3620
3691
  }
3621
3692
  video.registerForVideoFrame = registerForVideoFrame;
3622
3693
  /**
@@ -3627,16 +3698,16 @@ var video;
3627
3698
  * @param effectId Newly selected effect id.
3628
3699
  */
3629
3700
  function notifySelectedVideoEffectChanged(effectChangeType, effectId) {
3630
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3631
- communication_1.sendMessageToParent('video.videoEffectChanged', [effectChangeType, effectId]);
3701
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3702
+ (0, communication_1.sendMessageToParent)('video.videoEffectChanged', [effectChangeType, effectId]);
3632
3703
  }
3633
3704
  video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
3634
3705
  /**
3635
3706
  * Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied.
3636
3707
  */
3637
3708
  function registerForVideoEffect(callback) {
3638
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
3639
- handlers_1.registerHandler('video.effectParameterChange', callback);
3709
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
3710
+ (0, handlers_1.registerHandler)('video.effectParameterChange', callback);
3640
3711
  }
3641
3712
  video.registerForVideoEffect = registerForVideoEffect;
3642
3713
  /**
@@ -3644,13 +3715,13 @@ var video;
3644
3715
  * or pass the video frame to next one in video pipeline.
3645
3716
  */
3646
3717
  function notifyVideoFrameProcessed() {
3647
- communication_1.sendMessageToParent('video.videoFrameProcessed');
3718
+ (0, communication_1.sendMessageToParent)('video.videoFrameProcessed');
3648
3719
  }
3649
3720
  /**
3650
3721
  * sending error notification to Teams client.
3651
3722
  */
3652
3723
  function notifyError(errorMessage) {
3653
- communication_1.sendMessageToParent('video.notifyError', [errorMessage]);
3724
+ (0, communication_1.sendMessageToParent)('video.notifyError', [errorMessage]);
3654
3725
  }
3655
3726
  })(video = exports.video || (exports.video = {})); //end of video namespace
3656
3727
 
@@ -3662,6 +3733,7 @@ var video;
3662
3733
  "use strict";
3663
3734
 
3664
3735
  Object.defineProperty(exports, "__esModule", { value: true });
3736
+ exports.sharing = void 0;
3665
3737
  var internalAPIs_1 = __webpack_require__(1);
3666
3738
  var communication_1 = __webpack_require__(0);
3667
3739
  var interfaces_1 = __webpack_require__(7);
@@ -3689,8 +3761,8 @@ var sharing;
3689
3761
  if (!validateContentForSupportedTypes(shareWebContentRequest, callback)) {
3690
3762
  return;
3691
3763
  }
3692
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.stage, constants_1.FrameContexts.meetingStage);
3693
- communication_1.sendMessageToParent(sharing.SharingAPIMessages.shareWebContent, [shareWebContentRequest], callback);
3764
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.stage, constants_1.FrameContexts.meetingStage);
3765
+ (0, communication_1.sendMessageToParent)(sharing.SharingAPIMessages.shareWebContent, [shareWebContentRequest], callback);
3694
3766
  }
3695
3767
  sharing.shareWebContent = shareWebContent;
3696
3768
  // Error checks
@@ -3760,6 +3832,7 @@ var sharing;
3760
3832
  "use strict";
3761
3833
 
3762
3834
  Object.defineProperty(exports, "__esModule", { value: true });
3835
+ exports.UserSettingTypes = exports.ViewerActionTypes = exports.NotificationTypes = void 0;
3763
3836
  var NotificationTypes;
3764
3837
  (function (NotificationTypes) {
3765
3838
  NotificationTypes["fileDownloadStart"] = "fileDownloadStart";
@@ -3802,6 +3875,7 @@ var UserSettingTypes;
3802
3875
  "use strict";
3803
3876
 
3804
3877
  Object.defineProperty(exports, "__esModule", { value: true });
3878
+ exports.conversations = void 0;
3805
3879
  var internalAPIs_1 = __webpack_require__(1);
3806
3880
  var constants_1 = __webpack_require__(2);
3807
3881
  var communication_1 = __webpack_require__(0);
@@ -3818,8 +3892,8 @@ var conversations;
3818
3892
  * Allows the user to start or continue a conversation with each subentity inside the tab
3819
3893
  */
3820
3894
  function openConversation(openConversationRequest) {
3821
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
3822
- communication_1.sendMessageToParent('conversations.openConversation', [
3895
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
3896
+ (0, communication_1.sendMessageToParent)('conversations.openConversation', [
3823
3897
  {
3824
3898
  title: openConversationRequest.title,
3825
3899
  subEntityId: openConversationRequest.subEntityId,
@@ -3833,7 +3907,7 @@ var conversations;
3833
3907
  }
3834
3908
  });
3835
3909
  if (openConversationRequest.onStartConversation) {
3836
- handlers_1.registerHandler('startConversation', function (subEntityId, conversationId, channelId, entityId) {
3910
+ (0, handlers_1.registerHandler)('startConversation', function (subEntityId, conversationId, channelId, entityId) {
3837
3911
  return openConversationRequest.onStartConversation({
3838
3912
  subEntityId: subEntityId,
3839
3913
  conversationId: conversationId,
@@ -3843,7 +3917,7 @@ var conversations;
3843
3917
  });
3844
3918
  }
3845
3919
  if (openConversationRequest.onCloseConversation) {
3846
- handlers_1.registerHandler('closeConversation', function (subEntityId, conversationId, channelId, entityId) {
3920
+ (0, handlers_1.registerHandler)('closeConversation', function (subEntityId, conversationId, channelId, entityId) {
3847
3921
  return openConversationRequest.onCloseConversation({
3848
3922
  subEntityId: subEntityId,
3849
3923
  conversationId: conversationId,
@@ -3861,10 +3935,10 @@ var conversations;
3861
3935
  * Allows the user to close the conversation in the right pane
3862
3936
  */
3863
3937
  function closeConversation() {
3864
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
3865
- communication_1.sendMessageToParent('conversations.closeConversation');
3866
- handlers_1.removeHandler('startConversation');
3867
- handlers_1.removeHandler('closeConversation');
3938
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
3939
+ (0, communication_1.sendMessageToParent)('conversations.closeConversation');
3940
+ (0, handlers_1.removeHandler)('startConversation');
3941
+ (0, handlers_1.removeHandler)('closeConversation');
3868
3942
  }
3869
3943
  conversations.closeConversation = closeConversation;
3870
3944
  })(conversations = exports.conversations || (exports.conversations = {}));
@@ -3877,6 +3951,7 @@ var conversations;
3877
3951
  "use strict";
3878
3952
 
3879
3953
  Object.defineProperty(exports, "__esModule", { value: true });
3954
+ exports.meetingRoom = void 0;
3880
3955
  var internalAPIs_1 = __webpack_require__(1);
3881
3956
  var communication_1 = __webpack_require__(0);
3882
3957
  var handlers_1 = __webpack_require__(3);
@@ -3939,8 +4014,8 @@ var meetingRoom;
3939
4014
  * @param callback Callback to invoke when the meeting room info is fetched.
3940
4015
  */
3941
4016
  function getPairedMeetingRoomInfo(callback) {
3942
- internalAPIs_1.ensureInitialized();
3943
- communication_1.sendMessageToParent('meetingRoom.getPairedMeetingRoomInfo', callback);
4017
+ (0, internalAPIs_1.ensureInitialized)();
4018
+ (0, communication_1.sendMessageToParent)('meetingRoom.getPairedMeetingRoomInfo', callback);
3944
4019
  }
3945
4020
  meetingRoom.getPairedMeetingRoomInfo = getPairedMeetingRoomInfo;
3946
4021
  /**
@@ -3958,8 +4033,8 @@ var meetingRoom;
3958
4033
  if (!callback) {
3959
4034
  throw new Error('[meetingRoom.sendCommandToPairedMeetingRoom] Callback cannot be null');
3960
4035
  }
3961
- internalAPIs_1.ensureInitialized();
3962
- communication_1.sendMessageToParent('meetingRoom.sendCommandToPairedMeetingRoom', [commandName], callback);
4036
+ (0, internalAPIs_1.ensureInitialized)();
4037
+ (0, communication_1.sendMessageToParent)('meetingRoom.sendCommandToPairedMeetingRoom', [commandName], callback);
3963
4038
  }
3964
4039
  meetingRoom.sendCommandToPairedMeetingRoom = sendCommandToPairedMeetingRoom;
3965
4040
  /**
@@ -3974,9 +4049,9 @@ var meetingRoom;
3974
4049
  if (!handler) {
3975
4050
  throw new Error('[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null');
3976
4051
  }
3977
- internalAPIs_1.ensureInitialized();
3978
- handlers_1.registerHandler('meetingRoom.meetingRoomCapabilitiesUpdate', function (capabilities) {
3979
- internalAPIs_1.ensureInitialized();
4052
+ (0, internalAPIs_1.ensureInitialized)();
4053
+ (0, handlers_1.registerHandler)('meetingRoom.meetingRoomCapabilitiesUpdate', function (capabilities) {
4054
+ (0, internalAPIs_1.ensureInitialized)();
3980
4055
  handler(capabilities);
3981
4056
  });
3982
4057
  // handler && Communication.sendMessageToParent('registerHandler', ['meetingRoom.meetingRoomCapabilitiesUpdate']);
@@ -3993,9 +4068,9 @@ var meetingRoom;
3993
4068
  if (!handler) {
3994
4069
  throw new Error('[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null');
3995
4070
  }
3996
- internalAPIs_1.ensureInitialized();
3997
- handlers_1.registerHandler('meetingRoom.meetingRoomStatesUpdate', function (states) {
3998
- internalAPIs_1.ensureInitialized();
4071
+ (0, internalAPIs_1.ensureInitialized)();
4072
+ (0, handlers_1.registerHandler)('meetingRoom.meetingRoomStatesUpdate', function (states) {
4073
+ (0, internalAPIs_1.ensureInitialized)();
3999
4074
  handler(states);
4000
4075
  });
4001
4076
  // handler && Communication.sendMessageToParent('registerHandler', ['meetingRoom.meetingRoomStatesUpdate']);
@@ -4011,6 +4086,7 @@ var meetingRoom;
4011
4086
  "use strict";
4012
4087
 
4013
4088
  Object.defineProperty(exports, "__esModule", { value: true });
4089
+ exports.remoteCamera = void 0;
4014
4090
  var internalAPIs_1 = __webpack_require__(1);
4015
4091
  var constants_1 = __webpack_require__(2);
4016
4092
  var communication_1 = __webpack_require__(0);
@@ -4084,8 +4160,8 @@ var remoteCamera;
4084
4160
  if (!callback) {
4085
4161
  throw new Error('[remoteCamera.getCapableParticipants] Callback cannot be null');
4086
4162
  }
4087
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4088
- communication_1.sendMessageToParent('remoteCamera.getCapableParticipants', callback);
4163
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4164
+ (0, communication_1.sendMessageToParent)('remoteCamera.getCapableParticipants', callback);
4089
4165
  }
4090
4166
  remoteCamera.getCapableParticipants = getCapableParticipants;
4091
4167
  /**
@@ -4106,8 +4182,8 @@ var remoteCamera;
4106
4182
  if (!callback) {
4107
4183
  throw new Error('[remoteCamera.requestControl] Callback cannot be null');
4108
4184
  }
4109
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4110
- communication_1.sendMessageToParent('remoteCamera.requestControl', [participant], callback);
4185
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4186
+ (0, communication_1.sendMessageToParent)('remoteCamera.requestControl', [participant], callback);
4111
4187
  }
4112
4188
  remoteCamera.requestControl = requestControl;
4113
4189
  /**
@@ -4125,8 +4201,8 @@ var remoteCamera;
4125
4201
  if (!callback) {
4126
4202
  throw new Error('[remoteCamera.sendControlCommand] Callback cannot be null');
4127
4203
  }
4128
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4129
- communication_1.sendMessageToParent('remoteCamera.sendControlCommand', [ControlCommand], callback);
4204
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4205
+ (0, communication_1.sendMessageToParent)('remoteCamera.sendControlCommand', [ControlCommand], callback);
4130
4206
  }
4131
4207
  remoteCamera.sendControlCommand = sendControlCommand;
4132
4208
  /**
@@ -4140,8 +4216,8 @@ var remoteCamera;
4140
4216
  if (!callback) {
4141
4217
  throw new Error('[remoteCamera.terminateSession] Callback cannot be null');
4142
4218
  }
4143
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4144
- communication_1.sendMessageToParent('remoteCamera.terminateSession', callback);
4219
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4220
+ (0, communication_1.sendMessageToParent)('remoteCamera.terminateSession', callback);
4145
4221
  }
4146
4222
  remoteCamera.terminateSession = terminateSession;
4147
4223
  /**
@@ -4153,8 +4229,8 @@ var remoteCamera;
4153
4229
  if (!handler) {
4154
4230
  throw new Error('[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null');
4155
4231
  }
4156
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4157
- handlers_1.registerHandler('remoteCamera.capableParticipantsChange', handler);
4232
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4233
+ (0, handlers_1.registerHandler)('remoteCamera.capableParticipantsChange', handler);
4158
4234
  }
4159
4235
  remoteCamera.registerOnCapableParticipantsChangeHandler = registerOnCapableParticipantsChangeHandler;
4160
4236
  /**
@@ -4166,8 +4242,8 @@ var remoteCamera;
4166
4242
  if (!handler) {
4167
4243
  throw new Error('[remoteCamera.registerOnErrorHandler] Handler cannot be null');
4168
4244
  }
4169
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4170
- handlers_1.registerHandler('remoteCamera.handlerError', handler);
4245
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4246
+ (0, handlers_1.registerHandler)('remoteCamera.handlerError', handler);
4171
4247
  }
4172
4248
  remoteCamera.registerOnErrorHandler = registerOnErrorHandler;
4173
4249
  /**
@@ -4179,8 +4255,8 @@ var remoteCamera;
4179
4255
  if (!handler) {
4180
4256
  throw new Error('[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null');
4181
4257
  }
4182
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4183
- handlers_1.registerHandler('remoteCamera.deviceStateChange', handler);
4258
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4259
+ (0, handlers_1.registerHandler)('remoteCamera.deviceStateChange', handler);
4184
4260
  }
4185
4261
  remoteCamera.registerOnDeviceStateChangeHandler = registerOnDeviceStateChangeHandler;
4186
4262
  /**
@@ -4192,8 +4268,8 @@ var remoteCamera;
4192
4268
  if (!handler) {
4193
4269
  throw new Error('[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null');
4194
4270
  }
4195
- internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
4196
- handlers_1.registerHandler('remoteCamera.sessionStatusChange', handler);
4271
+ (0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
4272
+ (0, handlers_1.registerHandler)('remoteCamera.sessionStatusChange', handler);
4197
4273
  }
4198
4274
  remoteCamera.registerOnSessionStatusChangeHandler = registerOnSessionStatusChangeHandler;
4199
4275
  })(remoteCamera = exports.remoteCamera || (exports.remoteCamera = {}));
@@ -4206,6 +4282,7 @@ var remoteCamera;
4206
4282
  "use strict";
4207
4283
 
4208
4284
  Object.defineProperty(exports, "__esModule", { value: true });
4285
+ exports.files = void 0;
4209
4286
  var communication_1 = __webpack_require__(0);
4210
4287
  var internalAPIs_1 = __webpack_require__(1);
4211
4288
  var public_1 = __webpack_require__(8);
@@ -4252,14 +4329,14 @@ var files;
4252
4329
  * @param callback Callback that will be triggered post folders load
4253
4330
  */
4254
4331
  function getCloudStorageFolders(channelId, callback) {
4255
- internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
4332
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4256
4333
  if (!channelId || channelId.length == 0) {
4257
4334
  throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
4258
4335
  }
4259
4336
  if (!callback) {
4260
4337
  throw new Error('[files.getCloudStorageFolders] Callback cannot be null');
4261
4338
  }
4262
- communication_1.sendMessageToParent('files.getCloudStorageFolders', [channelId], callback);
4339
+ (0, communication_1.sendMessageToParent)('files.getCloudStorageFolders', [channelId], callback);
4263
4340
  }
4264
4341
  files.getCloudStorageFolders = getCloudStorageFolders;
4265
4342
  /**
@@ -4271,14 +4348,14 @@ var files;
4271
4348
  * @param callback Callback that will be triggered post add folder flow is compelete
4272
4349
  */
4273
4350
  function addCloudStorageFolder(channelId, callback) {
4274
- internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
4351
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4275
4352
  if (!channelId || channelId.length == 0) {
4276
4353
  throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
4277
4354
  }
4278
4355
  if (!callback) {
4279
4356
  throw new Error('[files.addCloudStorageFolder] Callback cannot be null');
4280
4357
  }
4281
- communication_1.sendMessageToParent('files.addCloudStorageFolder', [channelId], callback);
4358
+ (0, communication_1.sendMessageToParent)('files.addCloudStorageFolder', [channelId], callback);
4282
4359
  }
4283
4360
  files.addCloudStorageFolder = addCloudStorageFolder;
4284
4361
  /**
@@ -4291,7 +4368,7 @@ var files;
4291
4368
  * @param callback Callback that will be triggered post delete
4292
4369
  */
4293
4370
  function deleteCloudStorageFolder(channelId, folderToDelete, callback) {
4294
- internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
4371
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4295
4372
  if (!channelId) {
4296
4373
  throw new Error('[files.deleteCloudStorageFolder] channelId name cannot be null or empty');
4297
4374
  }
@@ -4301,7 +4378,7 @@ var files;
4301
4378
  if (!callback) {
4302
4379
  throw new Error('[files.deleteCloudStorageFolder] Callback cannot be null');
4303
4380
  }
4304
- communication_1.sendMessageToParent('files.deleteCloudStorageFolder', [channelId, folderToDelete], callback);
4381
+ (0, communication_1.sendMessageToParent)('files.deleteCloudStorageFolder', [channelId, folderToDelete], callback);
4305
4382
  }
4306
4383
  files.deleteCloudStorageFolder = deleteCloudStorageFolder;
4307
4384
  /**
@@ -4314,7 +4391,7 @@ var files;
4314
4391
  * @param callback Callback that will be triggered post contents are loaded
4315
4392
  */
4316
4393
  function getCloudStorageFolderContents(folder, providerCode, callback) {
4317
- internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
4394
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4318
4395
  if (!folder || !providerCode) {
4319
4396
  throw new Error('[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty');
4320
4397
  }
@@ -4324,7 +4401,7 @@ var files;
4324
4401
  if ('isSubdirectory' in folder && !folder.isSubdirectory) {
4325
4402
  throw new Error('[files.getCloudStorageFolderContents] provided folder is not a subDirectory');
4326
4403
  }
4327
- communication_1.sendMessageToParent('files.getCloudStorageFolderContents', [folder, providerCode], callback);
4404
+ (0, communication_1.sendMessageToParent)('files.getCloudStorageFolderContents', [folder, providerCode], callback);
4328
4405
  }
4329
4406
  files.getCloudStorageFolderContents = getCloudStorageFolderContents;
4330
4407
  /**
@@ -4337,14 +4414,14 @@ var files;
4337
4414
  * @param fileOpenPreference Whether file should be opened in web/inline
4338
4415
  */
4339
4416
  function openCloudStorageFile(file, providerCode, fileOpenPreference) {
4340
- internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
4417
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4341
4418
  if (!file || !providerCode) {
4342
4419
  throw new Error('[files.openCloudStorageFile] file/providerCode cannot be null or empty');
4343
4420
  }
4344
4421
  if (file.isSubdirectory) {
4345
4422
  throw new Error('[files.openCloudStorageFile] provided file is a subDirectory');
4346
4423
  }
4347
- communication_1.sendMessageToParent('files.openCloudStorageFile', [file, providerCode, fileOpenPreference]);
4424
+ (0, communication_1.sendMessageToParent)('files.openCloudStorageFile', [file, providerCode, fileOpenPreference]);
4348
4425
  }
4349
4426
  files.openCloudStorageFile = openCloudStorageFile;
4350
4427
  })(files = exports.files || (exports.files = {}));
@@ -4357,6 +4434,7 @@ var files;
4357
4434
  "use strict";
4358
4435
 
4359
4436
  Object.defineProperty(exports, "__esModule", { value: true });
4437
+ exports.appEntity = void 0;
4360
4438
  var communication_1 = __webpack_require__(0);
4361
4439
  var internalAPIs_1 = __webpack_require__(1);
4362
4440
  var public_1 = __webpack_require__(8);
@@ -4374,20 +4452,22 @@ var appEntity;
4374
4452
  *
4375
4453
  * Open the Tab Gallery and retrieve the app entity
4376
4454
  * @param threadId ID of the thread where the app entity will be created
4377
- * @param categories A list of app categories that will be displayed in the open tab gallery
4455
+ * @param categories A list of app categories that will be displayed in the opened tab gallery
4456
+ * @param subEntityId An object that will be made available to the application being configured
4457
+ * through the Teams Context's subEntityId field.
4378
4458
  * @param callback Callback that will be triggered once the app entity information is available.
4379
- * The callback takes two arguments: the app entity configuration, if available and
4380
- * 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
4381
4461
  */
4382
- function selectAppEntity(threadId, categories, callback) {
4383
- internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
4462
+ function selectAppEntity(threadId, categories, subEntityId, callback) {
4463
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4384
4464
  if (!threadId || threadId.length == 0) {
4385
4465
  throw new Error('[appEntity.selectAppEntity] threadId name cannot be null or empty');
4386
4466
  }
4387
4467
  if (!callback) {
4388
4468
  throw new Error('[appEntity.selectAppEntity] Callback cannot be null');
4389
4469
  }
4390
- communication_1.sendMessageToParent('appEntity.selectAppEntity', [threadId, categories], callback);
4470
+ (0, communication_1.sendMessageToParent)('appEntity.selectAppEntity', [threadId, categories, subEntityId], callback);
4391
4471
  }
4392
4472
  appEntity_1.selectAppEntity = selectAppEntity;
4393
4473
  })(appEntity = exports.appEntity || (exports.appEntity = {}));
@@ -4400,6 +4480,7 @@ var appEntity;
4400
4480
  "use strict";
4401
4481
 
4402
4482
  Object.defineProperty(exports, "__esModule", { value: true });
4483
+ exports.teams = void 0;
4403
4484
  var communication_1 = __webpack_require__(0);
4404
4485
  var internalAPIs_1 = __webpack_require__(1);
4405
4486
  var public_1 = __webpack_require__(8);
@@ -4425,14 +4506,14 @@ var teams;
4425
4506
  * @param groupId a team's objectId
4426
4507
  */
4427
4508
  function getTeamChannels(groupId, callback) {
4428
- internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
4509
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4429
4510
  if (!groupId) {
4430
4511
  throw new Error('[teams.getTeamChannels] groupId cannot be null or empty');
4431
4512
  }
4432
4513
  if (!callback) {
4433
4514
  throw new Error('[teams.getTeamChannels] Callback cannot be null');
4434
4515
  }
4435
- communication_1.sendMessageToParent('teams.getTeamChannels', [groupId], callback);
4516
+ (0, communication_1.sendMessageToParent)('teams.getTeamChannels', [groupId], callback);
4436
4517
  }
4437
4518
  teams.getTeamChannels = getTeamChannels;
4438
4519
  /**
@@ -4442,12 +4523,15 @@ var teams;
4442
4523
  * @param threadId ID of the thread where the app entity will be created; if threadId is not
4443
4524
  * provided, the threadId from route params will be used.
4444
4525
  */
4445
- function refreshSiteUrl(callback, threadId) {
4446
- internalAPIs_1.ensureInitialized();
4526
+ function refreshSiteUrl(threadId, callback) {
4527
+ (0, internalAPIs_1.ensureInitialized)();
4528
+ if (!threadId) {
4529
+ throw new Error('[teams.refreshSiteUrl] threadId cannot be null or empty');
4530
+ }
4447
4531
  if (!callback) {
4448
4532
  throw new Error('[teams.refreshSiteUrl] Callback cannot be null');
4449
4533
  }
4450
- communication_1.sendMessageToParent(threadId);
4534
+ (0, communication_1.sendMessageToParent)('teams.refreshSiteUrl', [threadId], callback);
4451
4535
  }
4452
4536
  teams.refreshSiteUrl = refreshSiteUrl;
4453
4537
  })(teams = exports.teams || (exports.teams = {}));