@microsoft/teams-js 1.11.0-beta.8 → 1.12.0-beta.2
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.
- package/README.md +3 -3
- package/dist/MicrosoftTeams.d.ts +1 -1
- package/dist/MicrosoftTeams.js +823 -473
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/package.json +8 -7
package/dist/MicrosoftTeams.js
CHANGED
|
@@ -100,9 +100,20 @@ 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
|
-
var globalVars_1 = __webpack_require__(
|
|
116
|
+
var globalVars_1 = __webpack_require__(7);
|
|
106
117
|
var handlers_1 = __webpack_require__(3);
|
|
107
118
|
var Communication = /** @class */ (function () {
|
|
108
119
|
function Communication() {
|
|
@@ -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
|
|
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,8 +422,11 @@ function createMessageEvent(func, args) {
|
|
|
410
422
|
"use strict";
|
|
411
423
|
|
|
412
424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
413
|
-
|
|
414
|
-
var
|
|
425
|
+
exports.processAdditionalValidOrigins = exports.isApiSupportedOnMobile = exports.isHostClientMobile = exports.isAPISupportedByPlatform = exports.ensureInitialized = void 0;
|
|
426
|
+
var constants_1 = __webpack_require__(2);
|
|
427
|
+
var interfaces_1 = __webpack_require__(6);
|
|
428
|
+
var constants_2 = __webpack_require__(4);
|
|
429
|
+
var globalVars_1 = __webpack_require__(7);
|
|
415
430
|
var utils_1 = __webpack_require__(5);
|
|
416
431
|
function ensureInitialized() {
|
|
417
432
|
var expectedFrameContexts = [];
|
|
@@ -441,21 +456,46 @@ exports.ensureInitialized = ensureInitialized;
|
|
|
441
456
|
* @param requiredVersion SDK version required by the API
|
|
442
457
|
*/
|
|
443
458
|
function isAPISupportedByPlatform(requiredVersion) {
|
|
444
|
-
if (requiredVersion === void 0) { requiredVersion =
|
|
445
|
-
var value = utils_1.compareSDKVersions(globalVars_1.GlobalVars.clientSupportedSDKVersion, requiredVersion);
|
|
459
|
+
if (requiredVersion === void 0) { requiredVersion = constants_2.defaultSDKVersionForCompatCheck; }
|
|
460
|
+
var value = (0, utils_1.compareSDKVersions)(globalVars_1.GlobalVars.clientSupportedSDKVersion, requiredVersion);
|
|
446
461
|
if (isNaN(value)) {
|
|
447
462
|
return false;
|
|
448
463
|
}
|
|
449
464
|
return value >= 0;
|
|
450
465
|
}
|
|
451
466
|
exports.isAPISupportedByPlatform = isAPISupportedByPlatform;
|
|
467
|
+
/**
|
|
468
|
+
* Helper function to identify if host client is either android or ios
|
|
469
|
+
*/
|
|
470
|
+
function isHostClientMobile() {
|
|
471
|
+
return globalVars_1.GlobalVars.hostClientType == constants_1.HostClientType.android || globalVars_1.GlobalVars.hostClientType == constants_1.HostClientType.ios;
|
|
472
|
+
}
|
|
473
|
+
exports.isHostClientMobile = isHostClientMobile;
|
|
474
|
+
/**
|
|
475
|
+
* Helper function which indicates if current API is supported on mobile or not.
|
|
476
|
+
* @returns SdkError if host client is not android/ios or if the requiredVersion is not
|
|
477
|
+
* supported by platform or not. Null is returned in case of success.
|
|
478
|
+
*/
|
|
479
|
+
function isApiSupportedOnMobile(requiredVersion) {
|
|
480
|
+
if (requiredVersion === void 0) { requiredVersion = constants_2.defaultSDKVersionForCompatCheck; }
|
|
481
|
+
if (!isHostClientMobile()) {
|
|
482
|
+
var notSupportedError = { errorCode: interfaces_1.ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
|
483
|
+
return notSupportedError;
|
|
484
|
+
}
|
|
485
|
+
else if (!isAPISupportedByPlatform(requiredVersion)) {
|
|
486
|
+
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
487
|
+
return oldPlatformError;
|
|
488
|
+
}
|
|
489
|
+
return null;
|
|
490
|
+
}
|
|
491
|
+
exports.isApiSupportedOnMobile = isApiSupportedOnMobile;
|
|
452
492
|
/**
|
|
453
493
|
* Processes the valid origins specifuied by the user, de-duplicates and converts them into a regexp
|
|
454
494
|
* which is used later for message source/origin validation
|
|
455
495
|
*/
|
|
456
496
|
function processAdditionalValidOrigins(validMessageOrigins) {
|
|
457
497
|
var combinedOriginUrls = globalVars_1.GlobalVars.additionalValidOrigins.concat(validMessageOrigins.filter(function (_origin) {
|
|
458
|
-
return typeof _origin === 'string' &&
|
|
498
|
+
return typeof _origin === 'string' && constants_2.userOriginUrlValidationRegExp.test(_origin);
|
|
459
499
|
}));
|
|
460
500
|
var dedupUrls = {};
|
|
461
501
|
combinedOriginUrls = combinedOriginUrls.filter(function (_originUrl) {
|
|
@@ -467,7 +507,7 @@ function processAdditionalValidOrigins(validMessageOrigins) {
|
|
|
467
507
|
});
|
|
468
508
|
globalVars_1.GlobalVars.additionalValidOrigins = combinedOriginUrls;
|
|
469
509
|
if (globalVars_1.GlobalVars.additionalValidOrigins.length > 0) {
|
|
470
|
-
globalVars_1.GlobalVars.additionalValidOriginsRegexp = utils_1.generateRegExpFromUrls(globalVars_1.GlobalVars.additionalValidOrigins);
|
|
510
|
+
globalVars_1.GlobalVars.additionalValidOriginsRegexp = (0, utils_1.generateRegExpFromUrls)(globalVars_1.GlobalVars.additionalValidOrigins);
|
|
471
511
|
}
|
|
472
512
|
else {
|
|
473
513
|
globalVars_1.GlobalVars.additionalValidOriginsRegexp = null;
|
|
@@ -483,6 +523,7 @@ exports.processAdditionalValidOrigins = processAdditionalValidOrigins;
|
|
|
483
523
|
"use strict";
|
|
484
524
|
|
|
485
525
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
526
|
+
exports.ChannelType = exports.TaskModuleDimension = exports.UserTeamRole = exports.TeamType = exports.FrameContexts = exports.HostClientType = void 0;
|
|
486
527
|
var HostClientType;
|
|
487
528
|
(function (HostClientType) {
|
|
488
529
|
HostClientType["desktop"] = "desktop";
|
|
@@ -558,7 +599,18 @@ var ChannelType;
|
|
|
558
599
|
|
|
559
600
|
"use strict";
|
|
560
601
|
|
|
602
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
603
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
604
|
+
if (ar || !(i in from)) {
|
|
605
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
606
|
+
ar[i] = from[i];
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
610
|
+
};
|
|
561
611
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
612
|
+
exports.registerBeforeUnloadHandler = exports.registerOnLoadHandler = exports.registerFocusEnterHandler = exports.registerBackButtonHandler = exports.handleThemeChange = exports.registerOnThemeChangeHandler = exports.removeHandler = exports.registerHandler = exports.callHandler = exports.initializeHandlers = void 0;
|
|
613
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
562
614
|
var public_1 = __webpack_require__(8);
|
|
563
615
|
var communication_1 = __webpack_require__(0);
|
|
564
616
|
var HandlersPrivate = /** @class */ (function () {
|
|
@@ -592,7 +644,7 @@ function registerHandler(name, handler, sendMessage, args) {
|
|
|
592
644
|
if (args === void 0) { args = []; }
|
|
593
645
|
if (handler) {
|
|
594
646
|
HandlersPrivate.handlers[name] = handler;
|
|
595
|
-
sendMessage && communication_1.sendMessageToParent('registerHandler', [name]
|
|
647
|
+
sendMessage && (0, communication_1.sendMessageToParent)('registerHandler', __spreadArray([name], args, true));
|
|
596
648
|
}
|
|
597
649
|
else {
|
|
598
650
|
delete HandlersPrivate.handlers[name];
|
|
@@ -605,7 +657,7 @@ function removeHandler(name) {
|
|
|
605
657
|
exports.removeHandler = removeHandler;
|
|
606
658
|
function registerOnThemeChangeHandler(handler) {
|
|
607
659
|
HandlersPrivate.themeChangeHandler = handler;
|
|
608
|
-
handler && communication_1.sendMessageToParent('registerHandler', ['themeChange']);
|
|
660
|
+
handler && (0, communication_1.sendMessageToParent)('registerHandler', ['themeChange']);
|
|
609
661
|
}
|
|
610
662
|
exports.registerOnThemeChangeHandler = registerOnThemeChangeHandler;
|
|
611
663
|
function handleThemeChange(theme) {
|
|
@@ -613,23 +665,23 @@ function handleThemeChange(theme) {
|
|
|
613
665
|
HandlersPrivate.themeChangeHandler(theme);
|
|
614
666
|
}
|
|
615
667
|
if (communication_1.Communication.childWindow) {
|
|
616
|
-
communication_1.sendMessageEventToChild('themeChange', [theme]);
|
|
668
|
+
(0, communication_1.sendMessageEventToChild)('themeChange', [theme]);
|
|
617
669
|
}
|
|
618
670
|
}
|
|
619
671
|
exports.handleThemeChange = handleThemeChange;
|
|
620
672
|
function registerBackButtonHandler(handler) {
|
|
621
673
|
HandlersPrivate.backButtonPressHandler = handler;
|
|
622
|
-
handler && communication_1.sendMessageToParent('registerHandler', ['backButton']);
|
|
674
|
+
handler && (0, communication_1.sendMessageToParent)('registerHandler', ['backButton']);
|
|
623
675
|
}
|
|
624
676
|
exports.registerBackButtonHandler = registerBackButtonHandler;
|
|
625
677
|
function handleBackButtonPress() {
|
|
626
678
|
if (!HandlersPrivate.backButtonPressHandler || !HandlersPrivate.backButtonPressHandler()) {
|
|
627
|
-
public_1.navigateBack();
|
|
679
|
+
(0, public_1.navigateBack)();
|
|
628
680
|
}
|
|
629
681
|
}
|
|
630
682
|
function registerFocusEnterHandler(handler) {
|
|
631
683
|
HandlersPrivate.focusEnterHandler = handler;
|
|
632
|
-
handler && communication_1.sendMessageToParent('registerHandler', ['focusEnter']);
|
|
684
|
+
handler && (0, communication_1.sendMessageToParent)('registerHandler', ['focusEnter']);
|
|
633
685
|
}
|
|
634
686
|
exports.registerFocusEnterHandler = registerFocusEnterHandler;
|
|
635
687
|
function handleFocusEnter(navigateForward) {
|
|
@@ -639,7 +691,7 @@ function handleFocusEnter(navigateForward) {
|
|
|
639
691
|
}
|
|
640
692
|
function registerOnLoadHandler(handler) {
|
|
641
693
|
HandlersPrivate.loadHandler = handler;
|
|
642
|
-
handler && communication_1.sendMessageToParent('registerHandler', ['load']);
|
|
694
|
+
handler && (0, communication_1.sendMessageToParent)('registerHandler', ['load']);
|
|
643
695
|
}
|
|
644
696
|
exports.registerOnLoadHandler = registerOnLoadHandler;
|
|
645
697
|
function handleLoad(context) {
|
|
@@ -647,17 +699,17 @@ function handleLoad(context) {
|
|
|
647
699
|
HandlersPrivate.loadHandler(context);
|
|
648
700
|
}
|
|
649
701
|
if (communication_1.Communication.childWindow) {
|
|
650
|
-
communication_1.sendMessageEventToChild('load', [context]);
|
|
702
|
+
(0, communication_1.sendMessageEventToChild)('load', [context]);
|
|
651
703
|
}
|
|
652
704
|
}
|
|
653
705
|
function registerBeforeUnloadHandler(handler) {
|
|
654
706
|
HandlersPrivate.beforeUnloadHandler = handler;
|
|
655
|
-
handler && communication_1.sendMessageToParent('registerHandler', ['beforeUnload']);
|
|
707
|
+
handler && (0, communication_1.sendMessageToParent)('registerHandler', ['beforeUnload']);
|
|
656
708
|
}
|
|
657
709
|
exports.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
|
|
658
710
|
function handleBeforeUnload() {
|
|
659
711
|
var readyToUnload = function () {
|
|
660
|
-
communication_1.sendMessageToParent('readyToUnload', []);
|
|
712
|
+
(0, communication_1.sendMessageToParent)('readyToUnload', []);
|
|
661
713
|
};
|
|
662
714
|
if (!HandlersPrivate.beforeUnloadHandler || !HandlersPrivate.beforeUnloadHandler(readyToUnload)) {
|
|
663
715
|
readyToUnload();
|
|
@@ -672,44 +724,53 @@ function handleBeforeUnload() {
|
|
|
672
724
|
"use strict";
|
|
673
725
|
|
|
674
726
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
727
|
+
exports.userOriginUrlValidationRegExp = exports.validOriginRegExp = exports.validOrigins = exports.scanBarCodeAPIMobileSupportVersion = exports.getMediaCallbackSupportVersion = exports.mediaAPISupportVersion = exports.captureImageMobileSupportVersion = exports.peoplePickerRequiredVersion = exports.locationAPIsRequiredVersion = exports.getUserJoinedTeamsSupportedAndroidClientVersion = exports.imageOutputFormatsAPISupportVersion = exports.nonFullScreenVideoModeAPISupportVersion = exports.videoAndImageMediaAPISupportVersion = exports.defaultSDKVersionForCompatCheck = exports.version = void 0;
|
|
675
728
|
var utils_1 = __webpack_require__(5);
|
|
676
|
-
exports.version = '1.
|
|
729
|
+
exports.version = '1.12.0-beta.2';
|
|
677
730
|
/**
|
|
678
|
-
* The
|
|
731
|
+
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
679
732
|
* 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.
|
|
680
733
|
* Mobile clients are passing versions, hence will be applicable to web and desktop clients only.
|
|
681
734
|
*/
|
|
682
735
|
exports.defaultSDKVersionForCompatCheck = '2.0.1';
|
|
683
736
|
/**
|
|
684
|
-
* This is the
|
|
737
|
+
* This is the client version when selectMedia API - VideoAndImage is supported on mobile.
|
|
685
738
|
*/
|
|
686
739
|
exports.videoAndImageMediaAPISupportVersion = '2.0.2';
|
|
740
|
+
/**
|
|
741
|
+
* This is the client version when selectMedia API - Video with non-full screen mode is supported on mobile.
|
|
742
|
+
*/
|
|
743
|
+
exports.nonFullScreenVideoModeAPISupportVersion = '2.0.3';
|
|
744
|
+
/**
|
|
745
|
+
* This is the client version when selectMedia API - ImageOutputFormats is supported on mobile.
|
|
746
|
+
*/
|
|
747
|
+
exports.imageOutputFormatsAPISupportVersion = '2.0.4';
|
|
687
748
|
/**
|
|
688
749
|
* Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
|
|
689
750
|
*/
|
|
690
751
|
exports.getUserJoinedTeamsSupportedAndroidClientVersion = '2.0.1';
|
|
691
752
|
/**
|
|
692
|
-
* This is the
|
|
753
|
+
* This is the client version when location APIs (getLocation and showLocation) are supported.
|
|
693
754
|
*/
|
|
694
755
|
exports.locationAPIsRequiredVersion = '1.9.0';
|
|
695
756
|
/**
|
|
696
|
-
* This is the
|
|
757
|
+
* This is the client version when people picker API is supported on mobile.
|
|
697
758
|
*/
|
|
698
759
|
exports.peoplePickerRequiredVersion = '2.0.0';
|
|
699
760
|
/**
|
|
700
|
-
* This is the
|
|
761
|
+
* This is the client version when captureImage API is supported on mobile.
|
|
701
762
|
*/
|
|
702
763
|
exports.captureImageMobileSupportVersion = '1.7.0';
|
|
703
764
|
/**
|
|
704
|
-
* This is the
|
|
765
|
+
* This is the client version when media APIs are supported on all three platforms ios, android and web.
|
|
705
766
|
*/
|
|
706
767
|
exports.mediaAPISupportVersion = '1.8.0';
|
|
707
768
|
/**
|
|
708
|
-
* This is the
|
|
769
|
+
* This is the client version when getMedia API is supported via Callbacks on all three platforms ios, android and web.
|
|
709
770
|
*/
|
|
710
771
|
exports.getMediaCallbackSupportVersion = '2.0.0';
|
|
711
772
|
/**
|
|
712
|
-
* This is the
|
|
773
|
+
* This is the client version when scanBarCode API is supported on mobile.
|
|
713
774
|
*/
|
|
714
775
|
exports.scanBarCodeAPIMobileSupportVersion = '1.9.0';
|
|
715
776
|
/**
|
|
@@ -742,7 +803,7 @@ exports.validOrigins = [
|
|
|
742
803
|
'https://www.officeppe.com',
|
|
743
804
|
'https://*.www.office.com',
|
|
744
805
|
];
|
|
745
|
-
exports.validOriginRegExp = utils_1.generateRegExpFromUrls(exports.validOrigins);
|
|
806
|
+
exports.validOriginRegExp = (0, utils_1.generateRegExpFromUrls)(exports.validOrigins);
|
|
746
807
|
/**
|
|
747
808
|
* USer specified message origins should satisfy this test
|
|
748
809
|
*/
|
|
@@ -756,6 +817,7 @@ exports.userOriginUrlValidationRegExp = /^https\:\/\//;
|
|
|
756
817
|
"use strict";
|
|
757
818
|
|
|
758
819
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
820
|
+
exports.generateGUID = exports.compareSDKVersions = exports.getGenericOnCompleteHandler = exports.generateRegExpFromUrls = void 0;
|
|
759
821
|
var uuid = __webpack_require__(22);
|
|
760
822
|
// This will return a reg expression a given url
|
|
761
823
|
function generateRegExpFromUrl(url) {
|
|
@@ -850,28 +912,7 @@ exports.generateGUID = generateGUID;
|
|
|
850
912
|
"use strict";
|
|
851
913
|
|
|
852
914
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
853
|
-
|
|
854
|
-
function GlobalVars() {
|
|
855
|
-
}
|
|
856
|
-
GlobalVars.initializeCalled = false;
|
|
857
|
-
GlobalVars.initializeCompleted = false;
|
|
858
|
-
GlobalVars.additionalValidOrigins = [];
|
|
859
|
-
GlobalVars.additionalValidOriginsRegexp = null;
|
|
860
|
-
GlobalVars.initializeCallbacks = [];
|
|
861
|
-
GlobalVars.isFramelessWindow = false;
|
|
862
|
-
GlobalVars.printCapabilityEnabled = false;
|
|
863
|
-
return GlobalVars;
|
|
864
|
-
}());
|
|
865
|
-
exports.GlobalVars = GlobalVars;
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
/***/ }),
|
|
869
|
-
/* 7 */
|
|
870
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
871
|
-
|
|
872
|
-
"use strict";
|
|
873
|
-
|
|
874
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
915
|
+
exports.ErrorCode = exports.FileOpenPreference = void 0;
|
|
875
916
|
/**
|
|
876
917
|
* Allowed user file open preferences
|
|
877
918
|
*/
|
|
@@ -946,6 +987,29 @@ var ErrorCode;
|
|
|
946
987
|
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
947
988
|
|
|
948
989
|
|
|
990
|
+
/***/ }),
|
|
991
|
+
/* 7 */
|
|
992
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
993
|
+
|
|
994
|
+
"use strict";
|
|
995
|
+
|
|
996
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
997
|
+
exports.GlobalVars = void 0;
|
|
998
|
+
var GlobalVars = /** @class */ (function () {
|
|
999
|
+
function GlobalVars() {
|
|
1000
|
+
}
|
|
1001
|
+
GlobalVars.initializeCalled = false;
|
|
1002
|
+
GlobalVars.initializeCompleted = false;
|
|
1003
|
+
GlobalVars.additionalValidOrigins = [];
|
|
1004
|
+
GlobalVars.additionalValidOriginsRegexp = null;
|
|
1005
|
+
GlobalVars.initializeCallbacks = [];
|
|
1006
|
+
GlobalVars.isFramelessWindow = false;
|
|
1007
|
+
GlobalVars.printCapabilityEnabled = false;
|
|
1008
|
+
return GlobalVars;
|
|
1009
|
+
}());
|
|
1010
|
+
exports.GlobalVars = GlobalVars;
|
|
1011
|
+
|
|
1012
|
+
|
|
949
1013
|
/***/ }),
|
|
950
1014
|
/* 8 */
|
|
951
1015
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -953,67 +1017,68 @@ var ErrorCode;
|
|
|
953
1017
|
"use strict";
|
|
954
1018
|
|
|
955
1019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1020
|
+
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
1021
|
var appInitialization_1 = __webpack_require__(25);
|
|
957
|
-
exports
|
|
1022
|
+
Object.defineProperty(exports, "appInitialization", { enumerable: true, get: function () { return appInitialization_1.appInitialization; } });
|
|
958
1023
|
var authentication_1 = __webpack_require__(11);
|
|
959
|
-
exports
|
|
1024
|
+
Object.defineProperty(exports, "authentication", { enumerable: true, get: function () { return authentication_1.authentication; } });
|
|
960
1025
|
var constants_1 = __webpack_require__(2);
|
|
961
|
-
exports
|
|
962
|
-
exports
|
|
963
|
-
exports
|
|
964
|
-
exports
|
|
965
|
-
exports
|
|
966
|
-
exports
|
|
967
|
-
var interfaces_1 = __webpack_require__(
|
|
968
|
-
exports
|
|
969
|
-
exports
|
|
1026
|
+
Object.defineProperty(exports, "FrameContexts", { enumerable: true, get: function () { return constants_1.FrameContexts; } });
|
|
1027
|
+
Object.defineProperty(exports, "HostClientType", { enumerable: true, get: function () { return constants_1.HostClientType; } });
|
|
1028
|
+
Object.defineProperty(exports, "TaskModuleDimension", { enumerable: true, get: function () { return constants_1.TaskModuleDimension; } });
|
|
1029
|
+
Object.defineProperty(exports, "TeamType", { enumerable: true, get: function () { return constants_1.TeamType; } });
|
|
1030
|
+
Object.defineProperty(exports, "UserTeamRole", { enumerable: true, get: function () { return constants_1.UserTeamRole; } });
|
|
1031
|
+
Object.defineProperty(exports, "ChannelType", { enumerable: true, get: function () { return constants_1.ChannelType; } });
|
|
1032
|
+
var interfaces_1 = __webpack_require__(6);
|
|
1033
|
+
Object.defineProperty(exports, "ErrorCode", { enumerable: true, get: function () { return interfaces_1.ErrorCode; } });
|
|
1034
|
+
Object.defineProperty(exports, "FileOpenPreference", { enumerable: true, get: function () { return interfaces_1.FileOpenPreference; } });
|
|
970
1035
|
var publicAPIs_1 = __webpack_require__(26);
|
|
971
|
-
exports
|
|
972
|
-
exports
|
|
973
|
-
exports
|
|
974
|
-
exports
|
|
975
|
-
exports
|
|
976
|
-
exports
|
|
977
|
-
exports
|
|
978
|
-
exports
|
|
979
|
-
exports
|
|
980
|
-
exports
|
|
981
|
-
exports
|
|
982
|
-
exports
|
|
983
|
-
exports
|
|
984
|
-
exports
|
|
985
|
-
exports
|
|
986
|
-
exports
|
|
987
|
-
exports
|
|
988
|
-
exports
|
|
989
|
-
exports
|
|
990
|
-
exports
|
|
1036
|
+
Object.defineProperty(exports, "enablePrintCapability", { enumerable: true, get: function () { return publicAPIs_1.enablePrintCapability; } });
|
|
1037
|
+
Object.defineProperty(exports, "executeDeepLink", { enumerable: true, get: function () { return publicAPIs_1.executeDeepLink; } });
|
|
1038
|
+
Object.defineProperty(exports, "getContext", { enumerable: true, get: function () { return publicAPIs_1.getContext; } });
|
|
1039
|
+
Object.defineProperty(exports, "getMruTabInstances", { enumerable: true, get: function () { return publicAPIs_1.getMruTabInstances; } });
|
|
1040
|
+
Object.defineProperty(exports, "getTabInstances", { enumerable: true, get: function () { return publicAPIs_1.getTabInstances; } });
|
|
1041
|
+
Object.defineProperty(exports, "initialize", { enumerable: true, get: function () { return publicAPIs_1.initialize; } });
|
|
1042
|
+
Object.defineProperty(exports, "initializeWithFrameContext", { enumerable: true, get: function () { return publicAPIs_1.initializeWithFrameContext; } });
|
|
1043
|
+
Object.defineProperty(exports, "print", { enumerable: true, get: function () { return publicAPIs_1.print; } });
|
|
1044
|
+
Object.defineProperty(exports, "registerBackButtonHandler", { enumerable: true, get: function () { return publicAPIs_1.registerBackButtonHandler; } });
|
|
1045
|
+
Object.defineProperty(exports, "registerBeforeUnloadHandler", { enumerable: true, get: function () { return publicAPIs_1.registerBeforeUnloadHandler; } });
|
|
1046
|
+
Object.defineProperty(exports, "registerFocusEnterHandler", { enumerable: true, get: function () { return publicAPIs_1.registerFocusEnterHandler; } });
|
|
1047
|
+
Object.defineProperty(exports, "registerEnterSettingsHandler", { enumerable: true, get: function () { return publicAPIs_1.registerEnterSettingsHandler; } });
|
|
1048
|
+
Object.defineProperty(exports, "registerFullScreenHandler", { enumerable: true, get: function () { return publicAPIs_1.registerFullScreenHandler; } });
|
|
1049
|
+
Object.defineProperty(exports, "registerOnLoadHandler", { enumerable: true, get: function () { return publicAPIs_1.registerOnLoadHandler; } });
|
|
1050
|
+
Object.defineProperty(exports, "registerOnThemeChangeHandler", { enumerable: true, get: function () { return publicAPIs_1.registerOnThemeChangeHandler; } });
|
|
1051
|
+
Object.defineProperty(exports, "registerAppButtonClickHandler", { enumerable: true, get: function () { return publicAPIs_1.registerAppButtonClickHandler; } });
|
|
1052
|
+
Object.defineProperty(exports, "registerAppButtonHoverEnterHandler", { enumerable: true, get: function () { return publicAPIs_1.registerAppButtonHoverEnterHandler; } });
|
|
1053
|
+
Object.defineProperty(exports, "registerAppButtonHoverLeaveHandler", { enumerable: true, get: function () { return publicAPIs_1.registerAppButtonHoverLeaveHandler; } });
|
|
1054
|
+
Object.defineProperty(exports, "setFrameContext", { enumerable: true, get: function () { return publicAPIs_1.setFrameContext; } });
|
|
1055
|
+
Object.defineProperty(exports, "shareDeepLink", { enumerable: true, get: function () { return publicAPIs_1.shareDeepLink; } });
|
|
991
1056
|
var navigation_1 = __webpack_require__(27);
|
|
992
|
-
exports
|
|
993
|
-
exports
|
|
994
|
-
exports
|
|
995
|
-
exports
|
|
1057
|
+
Object.defineProperty(exports, "returnFocus", { enumerable: true, get: function () { return navigation_1.returnFocus; } });
|
|
1058
|
+
Object.defineProperty(exports, "navigateBack", { enumerable: true, get: function () { return navigation_1.navigateBack; } });
|
|
1059
|
+
Object.defineProperty(exports, "navigateCrossDomain", { enumerable: true, get: function () { return navigation_1.navigateCrossDomain; } });
|
|
1060
|
+
Object.defineProperty(exports, "navigateToTab", { enumerable: true, get: function () { return navigation_1.navigateToTab; } });
|
|
996
1061
|
var settings_1 = __webpack_require__(12);
|
|
997
|
-
exports
|
|
1062
|
+
Object.defineProperty(exports, "settings", { enumerable: true, get: function () { return settings_1.settings; } });
|
|
998
1063
|
var tasks_1 = __webpack_require__(28);
|
|
999
|
-
exports
|
|
1064
|
+
Object.defineProperty(exports, "tasks", { enumerable: true, get: function () { return tasks_1.tasks; } });
|
|
1000
1065
|
var appWindow_1 = __webpack_require__(16);
|
|
1001
|
-
exports
|
|
1002
|
-
exports
|
|
1066
|
+
Object.defineProperty(exports, "ChildAppWindow", { enumerable: true, get: function () { return appWindow_1.ChildAppWindow; } });
|
|
1067
|
+
Object.defineProperty(exports, "ParentAppWindow", { enumerable: true, get: function () { return appWindow_1.ParentAppWindow; } });
|
|
1003
1068
|
var media_1 = __webpack_require__(17);
|
|
1004
|
-
exports
|
|
1069
|
+
Object.defineProperty(exports, "media", { enumerable: true, get: function () { return media_1.media; } });
|
|
1005
1070
|
var location_1 = __webpack_require__(29);
|
|
1006
|
-
exports
|
|
1071
|
+
Object.defineProperty(exports, "location", { enumerable: true, get: function () { return location_1.location; } });
|
|
1007
1072
|
var meeting_1 = __webpack_require__(30);
|
|
1008
|
-
exports
|
|
1073
|
+
Object.defineProperty(exports, "meeting", { enumerable: true, get: function () { return meeting_1.meeting; } });
|
|
1009
1074
|
var monetization_1 = __webpack_require__(31);
|
|
1010
|
-
exports
|
|
1075
|
+
Object.defineProperty(exports, "monetization", { enumerable: true, get: function () { return monetization_1.monetization; } });
|
|
1011
1076
|
var people_1 = __webpack_require__(32);
|
|
1012
|
-
exports
|
|
1077
|
+
Object.defineProperty(exports, "people", { enumerable: true, get: function () { return people_1.people; } });
|
|
1013
1078
|
var video_1 = __webpack_require__(33);
|
|
1014
|
-
exports
|
|
1079
|
+
Object.defineProperty(exports, "video", { enumerable: true, get: function () { return video_1.video; } });
|
|
1015
1080
|
var sharing_1 = __webpack_require__(34);
|
|
1016
|
-
exports
|
|
1081
|
+
Object.defineProperty(exports, "sharing", { enumerable: true, get: function () { return sharing_1.sharing; } });
|
|
1017
1082
|
|
|
1018
1083
|
|
|
1019
1084
|
/***/ }),
|
|
@@ -1073,14 +1138,16 @@ function bytesToUuid(buf, offset) {
|
|
|
1073
1138
|
var i = offset || 0;
|
|
1074
1139
|
var bth = byteToHex;
|
|
1075
1140
|
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
|
1076
|
-
return ([
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1141
|
+
return ([
|
|
1142
|
+
bth[buf[i++]], bth[buf[i++]],
|
|
1143
|
+
bth[buf[i++]], bth[buf[i++]], '-',
|
|
1144
|
+
bth[buf[i++]], bth[buf[i++]], '-',
|
|
1145
|
+
bth[buf[i++]], bth[buf[i++]], '-',
|
|
1146
|
+
bth[buf[i++]], bth[buf[i++]], '-',
|
|
1147
|
+
bth[buf[i++]], bth[buf[i++]],
|
|
1148
|
+
bth[buf[i++]], bth[buf[i++]],
|
|
1149
|
+
bth[buf[i++]], bth[buf[i++]]
|
|
1150
|
+
]).join('');
|
|
1084
1151
|
}
|
|
1085
1152
|
|
|
1086
1153
|
module.exports = bytesToUuid;
|
|
@@ -1093,8 +1160,9 @@ module.exports = bytesToUuid;
|
|
|
1093
1160
|
"use strict";
|
|
1094
1161
|
|
|
1095
1162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1163
|
+
exports.authentication = void 0;
|
|
1096
1164
|
var internalAPIs_1 = __webpack_require__(1);
|
|
1097
|
-
var globalVars_1 = __webpack_require__(
|
|
1165
|
+
var globalVars_1 = __webpack_require__(7);
|
|
1098
1166
|
var constants_1 = __webpack_require__(2);
|
|
1099
1167
|
var communication_1 = __webpack_require__(0);
|
|
1100
1168
|
var handlers_1 = __webpack_require__(3);
|
|
@@ -1107,8 +1175,8 @@ var authentication;
|
|
|
1107
1175
|
var authParams;
|
|
1108
1176
|
var authWindowMonitor;
|
|
1109
1177
|
function initialize() {
|
|
1110
|
-
handlers_1.registerHandler('authentication.authenticate.success', handleSuccess, false);
|
|
1111
|
-
handlers_1.registerHandler('authentication.authenticate.failure', handleFailure, false);
|
|
1178
|
+
(0, handlers_1.registerHandler)('authentication.authenticate.success', handleSuccess, false);
|
|
1179
|
+
(0, handlers_1.registerHandler)('authentication.authenticate.failure', handleFailure, false);
|
|
1112
1180
|
}
|
|
1113
1181
|
authentication.initialize = initialize;
|
|
1114
1182
|
/**
|
|
@@ -1124,7 +1192,7 @@ var authentication;
|
|
|
1124
1192
|
*/
|
|
1125
1193
|
function authenticate(authenticateParameters) {
|
|
1126
1194
|
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);
|
|
1195
|
+
(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
1196
|
if (globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.desktop ||
|
|
1129
1197
|
globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.android ||
|
|
1130
1198
|
globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.ios ||
|
|
@@ -1137,7 +1205,7 @@ var authentication;
|
|
|
1137
1205
|
var link = document.createElement('a');
|
|
1138
1206
|
link.href = authenticateParams.url;
|
|
1139
1207
|
// 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) {
|
|
1208
|
+
(0, communication_1.sendMessageToParent)('authentication.authenticate', [link.href, authenticateParams.width, authenticateParams.height, authenticateParams.isExternal], function (success, response) {
|
|
1141
1209
|
if (success) {
|
|
1142
1210
|
authenticateParams.successCallback(response);
|
|
1143
1211
|
}
|
|
@@ -1158,8 +1226,8 @@ var authentication;
|
|
|
1158
1226
|
* @param authTokenRequest A set of values that configure the token request.
|
|
1159
1227
|
*/
|
|
1160
1228
|
function getAuthToken(authTokenRequest) {
|
|
1161
|
-
internalAPIs_1.ensureInitialized();
|
|
1162
|
-
communication_1.sendMessageToParent('authentication.getAuthToken', [authTokenRequest.resources, authTokenRequest.claims, authTokenRequest.silent], function (success, result) {
|
|
1229
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1230
|
+
(0, communication_1.sendMessageToParent)('authentication.getAuthToken', [authTokenRequest.resources, authTokenRequest.claims, authTokenRequest.silent], function (success, result) {
|
|
1163
1231
|
if (success) {
|
|
1164
1232
|
authTokenRequest.successCallback(result);
|
|
1165
1233
|
}
|
|
@@ -1176,8 +1244,8 @@ var authentication;
|
|
|
1176
1244
|
* Requests the decoded Azure AD user identity on behalf of the app.
|
|
1177
1245
|
*/
|
|
1178
1246
|
function getUser(userRequest) {
|
|
1179
|
-
internalAPIs_1.ensureInitialized();
|
|
1180
|
-
communication_1.sendMessageToParent('authentication.getUser', function (success, result) {
|
|
1247
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1248
|
+
(0, communication_1.sendMessageToParent)('authentication.getUser', function (success, result) {
|
|
1181
1249
|
if (success) {
|
|
1182
1250
|
userRequest.successCallback(result);
|
|
1183
1251
|
}
|
|
@@ -1213,7 +1281,7 @@ var authentication;
|
|
|
1213
1281
|
height = Math.min(height, communication_1.Communication.currentWindow.outerHeight - 200);
|
|
1214
1282
|
// Convert any relative URLs into absolute URLs before sending them over to the parent window
|
|
1215
1283
|
var link = document.createElement('a');
|
|
1216
|
-
link.href = authParams.url;
|
|
1284
|
+
link.href = authParams.url.replace('{oauthRedirectMethod}', 'web');
|
|
1217
1285
|
// We are running in the browser, so we need to center the new window ourselves
|
|
1218
1286
|
var left = typeof communication_1.Communication.currentWindow.screenLeft !== 'undefined'
|
|
1219
1287
|
? communication_1.Communication.currentWindow.screenLeft
|
|
@@ -1246,8 +1314,8 @@ var authentication;
|
|
|
1246
1314
|
clearInterval(authWindowMonitor);
|
|
1247
1315
|
authWindowMonitor = 0;
|
|
1248
1316
|
}
|
|
1249
|
-
handlers_1.removeHandler('initialize');
|
|
1250
|
-
handlers_1.removeHandler('navigateCrossDomain');
|
|
1317
|
+
(0, handlers_1.removeHandler)('initialize');
|
|
1318
|
+
(0, handlers_1.removeHandler)('navigateCrossDomain');
|
|
1251
1319
|
}
|
|
1252
1320
|
function startAuthenticationWindowMonitor() {
|
|
1253
1321
|
// Stop the previous window monitor if one is running
|
|
@@ -1265,7 +1333,7 @@ var authentication;
|
|
|
1265
1333
|
var savedChildOrigin = communication_1.Communication.childOrigin;
|
|
1266
1334
|
try {
|
|
1267
1335
|
communication_1.Communication.childOrigin = '*';
|
|
1268
|
-
communication_1.sendMessageEventToChild('ping');
|
|
1336
|
+
(0, communication_1.sendMessageEventToChild)('ping');
|
|
1269
1337
|
}
|
|
1270
1338
|
finally {
|
|
1271
1339
|
communication_1.Communication.childOrigin = savedChildOrigin;
|
|
@@ -1273,14 +1341,14 @@ var authentication;
|
|
|
1273
1341
|
}
|
|
1274
1342
|
}, 100);
|
|
1275
1343
|
// Set up an initialize-message handler that gives the authentication window its frame context
|
|
1276
|
-
handlers_1.registerHandler('initialize', function () {
|
|
1344
|
+
(0, handlers_1.registerHandler)('initialize', function () {
|
|
1277
1345
|
return [constants_1.FrameContexts.authentication, globalVars_1.GlobalVars.hostClientType];
|
|
1278
1346
|
});
|
|
1279
1347
|
// Set up a navigateCrossDomain message handler that blocks cross-domain re-navigation attempts
|
|
1280
1348
|
// in the authentication window. We could at some point choose to implement this method via a call to
|
|
1281
1349
|
// authenticationWindow.location.href = url; however, we would first need to figure out how to
|
|
1282
1350
|
// validate the URL against the tab's list of valid domains.
|
|
1283
|
-
handlers_1.registerHandler('navigateCrossDomain', function () {
|
|
1351
|
+
(0, handlers_1.registerHandler)('navigateCrossDomain', function () {
|
|
1284
1352
|
return false;
|
|
1285
1353
|
});
|
|
1286
1354
|
}
|
|
@@ -1293,10 +1361,10 @@ var authentication;
|
|
|
1293
1361
|
*/
|
|
1294
1362
|
function notifySuccess(result, callbackUrl) {
|
|
1295
1363
|
redirectIfWin32Outlook(callbackUrl, 'result', result);
|
|
1296
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.authentication);
|
|
1297
|
-
communication_1.sendMessageToParent('authentication.authenticate.success', [result]);
|
|
1364
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.authentication);
|
|
1365
|
+
(0, communication_1.sendMessageToParent)('authentication.authenticate.success', [result]);
|
|
1298
1366
|
// 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); });
|
|
1367
|
+
(0, communication_1.waitForMessageQueue)(communication_1.Communication.parentWindow, function () { return setTimeout(function () { return communication_1.Communication.currentWindow.close(); }, 200); });
|
|
1300
1368
|
}
|
|
1301
1369
|
authentication.notifySuccess = notifySuccess;
|
|
1302
1370
|
/**
|
|
@@ -1308,10 +1376,10 @@ var authentication;
|
|
|
1308
1376
|
*/
|
|
1309
1377
|
function notifyFailure(reason, callbackUrl) {
|
|
1310
1378
|
redirectIfWin32Outlook(callbackUrl, 'reason', reason);
|
|
1311
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.authentication);
|
|
1312
|
-
communication_1.sendMessageToParent('authentication.authenticate.failure', [reason]);
|
|
1379
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.authentication);
|
|
1380
|
+
(0, communication_1.sendMessageToParent)('authentication.authenticate.failure', [reason]);
|
|
1313
1381
|
// 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); });
|
|
1382
|
+
(0, communication_1.waitForMessageQueue)(communication_1.Communication.parentWindow, function () { return setTimeout(function () { return communication_1.Communication.currentWindow.close(); }, 200); });
|
|
1315
1383
|
}
|
|
1316
1384
|
authentication.notifyFailure = notifyFailure;
|
|
1317
1385
|
function handleSuccess(result) {
|
|
@@ -1388,6 +1456,7 @@ var authentication;
|
|
|
1388
1456
|
"use strict";
|
|
1389
1457
|
|
|
1390
1458
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1459
|
+
exports.settings = void 0;
|
|
1391
1460
|
var internalAPIs_1 = __webpack_require__(1);
|
|
1392
1461
|
var constants_1 = __webpack_require__(2);
|
|
1393
1462
|
var utils_1 = __webpack_require__(5);
|
|
@@ -1402,8 +1471,8 @@ var settings;
|
|
|
1402
1471
|
var saveHandler;
|
|
1403
1472
|
var removeHandler;
|
|
1404
1473
|
function initialize() {
|
|
1405
|
-
handlers_1.registerHandler('settings.save', handleSave, false);
|
|
1406
|
-
handlers_1.registerHandler('settings.remove', handleRemove, false);
|
|
1474
|
+
(0, handlers_1.registerHandler)('settings.save', handleSave, false);
|
|
1475
|
+
(0, handlers_1.registerHandler)('settings.remove', handleRemove, false);
|
|
1407
1476
|
}
|
|
1408
1477
|
settings.initialize = initialize;
|
|
1409
1478
|
/**
|
|
@@ -1412,8 +1481,8 @@ var settings;
|
|
|
1412
1481
|
* @param validityState Indicates whether the save or remove button is enabled for the user.
|
|
1413
1482
|
*/
|
|
1414
1483
|
function setValidityState(validityState) {
|
|
1415
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.settings, constants_1.FrameContexts.remove);
|
|
1416
|
-
communication_1.sendMessageToParent('settings.setValidityState', [validityState]);
|
|
1484
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.settings, constants_1.FrameContexts.remove);
|
|
1485
|
+
(0, communication_1.sendMessageToParent)('settings.setValidityState', [validityState]);
|
|
1417
1486
|
}
|
|
1418
1487
|
settings.setValidityState = setValidityState;
|
|
1419
1488
|
/**
|
|
@@ -1421,8 +1490,8 @@ var settings;
|
|
|
1421
1490
|
* @param callback The callback to invoke when the {@link Settings} object is retrieved.
|
|
1422
1491
|
*/
|
|
1423
1492
|
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);
|
|
1493
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.settings, constants_1.FrameContexts.remove, constants_1.FrameContexts.sidePanel);
|
|
1494
|
+
(0, communication_1.sendMessageToParent)('settings.getSettings', callback);
|
|
1426
1495
|
}
|
|
1427
1496
|
settings.getSettings = getSettings;
|
|
1428
1497
|
/**
|
|
@@ -1431,8 +1500,8 @@ var settings;
|
|
|
1431
1500
|
* @param settings The desired settings for this instance.
|
|
1432
1501
|
*/
|
|
1433
1502
|
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());
|
|
1503
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.settings, constants_1.FrameContexts.sidePanel);
|
|
1504
|
+
(0, communication_1.sendMessageToParent)('settings.setSettings', [instanceSettings], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
|
|
1436
1505
|
}
|
|
1437
1506
|
settings.setSettings = setSettings;
|
|
1438
1507
|
/**
|
|
@@ -1443,9 +1512,9 @@ var settings;
|
|
|
1443
1512
|
* @param handler The handler to invoke when the user selects the save button.
|
|
1444
1513
|
*/
|
|
1445
1514
|
function registerOnSaveHandler(handler) {
|
|
1446
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.settings);
|
|
1515
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.settings);
|
|
1447
1516
|
saveHandler = handler;
|
|
1448
|
-
handler && communication_1.sendMessageToParent('registerHandler', ['save']);
|
|
1517
|
+
handler && (0, communication_1.sendMessageToParent)('registerHandler', ['save']);
|
|
1449
1518
|
}
|
|
1450
1519
|
settings.registerOnSaveHandler = registerOnSaveHandler;
|
|
1451
1520
|
/**
|
|
@@ -1456,9 +1525,9 @@ var settings;
|
|
|
1456
1525
|
* @param handler The handler to invoke when the user selects the remove button.
|
|
1457
1526
|
*/
|
|
1458
1527
|
function registerOnRemoveHandler(handler) {
|
|
1459
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.remove, constants_1.FrameContexts.settings);
|
|
1528
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.remove, constants_1.FrameContexts.settings);
|
|
1460
1529
|
removeHandler = handler;
|
|
1461
|
-
handler && communication_1.sendMessageToParent('registerHandler', ['remove']);
|
|
1530
|
+
handler && (0, communication_1.sendMessageToParent)('registerHandler', ['remove']);
|
|
1462
1531
|
}
|
|
1463
1532
|
settings.registerOnRemoveHandler = registerOnRemoveHandler;
|
|
1464
1533
|
function handleSave(result) {
|
|
@@ -1482,12 +1551,12 @@ var settings;
|
|
|
1482
1551
|
}
|
|
1483
1552
|
SaveEventImpl.prototype.notifySuccess = function () {
|
|
1484
1553
|
this.ensureNotNotified();
|
|
1485
|
-
communication_1.sendMessageToParent('settings.save.success');
|
|
1554
|
+
(0, communication_1.sendMessageToParent)('settings.save.success');
|
|
1486
1555
|
this.notified = true;
|
|
1487
1556
|
};
|
|
1488
1557
|
SaveEventImpl.prototype.notifyFailure = function (reason) {
|
|
1489
1558
|
this.ensureNotNotified();
|
|
1490
|
-
communication_1.sendMessageToParent('settings.save.failure', [reason]);
|
|
1559
|
+
(0, communication_1.sendMessageToParent)('settings.save.failure', [reason]);
|
|
1491
1560
|
this.notified = true;
|
|
1492
1561
|
};
|
|
1493
1562
|
SaveEventImpl.prototype.ensureNotNotified = function () {
|
|
@@ -1517,12 +1586,12 @@ var settings;
|
|
|
1517
1586
|
}
|
|
1518
1587
|
RemoveEventImpl.prototype.notifySuccess = function () {
|
|
1519
1588
|
this.ensureNotNotified();
|
|
1520
|
-
communication_1.sendMessageToParent('settings.remove.success');
|
|
1589
|
+
(0, communication_1.sendMessageToParent)('settings.remove.success');
|
|
1521
1590
|
this.notified = true;
|
|
1522
1591
|
};
|
|
1523
1592
|
RemoveEventImpl.prototype.notifyFailure = function (reason) {
|
|
1524
1593
|
this.ensureNotNotified();
|
|
1525
|
-
communication_1.sendMessageToParent('settings.remove.failure', [reason]);
|
|
1594
|
+
(0, communication_1.sendMessageToParent)('settings.remove.failure', [reason]);
|
|
1526
1595
|
this.notified = true;
|
|
1527
1596
|
};
|
|
1528
1597
|
RemoveEventImpl.prototype.ensureNotNotified = function () {
|
|
@@ -1542,6 +1611,7 @@ var settings;
|
|
|
1542
1611
|
"use strict";
|
|
1543
1612
|
|
|
1544
1613
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1614
|
+
exports.logs = void 0;
|
|
1545
1615
|
var internalAPIs_1 = __webpack_require__(1);
|
|
1546
1616
|
var communication_1 = __webpack_require__(0);
|
|
1547
1617
|
var handlers_1 = __webpack_require__(3);
|
|
@@ -1562,15 +1632,15 @@ var logs;
|
|
|
1562
1632
|
* @param handler The handler to invoke to get the app log
|
|
1563
1633
|
*/
|
|
1564
1634
|
function registerGetLogHandler(handler) {
|
|
1565
|
-
internalAPIs_1.ensureInitialized();
|
|
1635
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1566
1636
|
if (handler) {
|
|
1567
|
-
handlers_1.registerHandler('log.request', function () {
|
|
1637
|
+
(0, handlers_1.registerHandler)('log.request', function () {
|
|
1568
1638
|
var log = handler();
|
|
1569
|
-
communication_1.sendMessageToParent('log.receive', [log]);
|
|
1639
|
+
(0, communication_1.sendMessageToParent)('log.receive', [log]);
|
|
1570
1640
|
});
|
|
1571
1641
|
}
|
|
1572
1642
|
else {
|
|
1573
|
-
handlers_1.removeHandler('log.request');
|
|
1643
|
+
(0, handlers_1.removeHandler)('log.request');
|
|
1574
1644
|
}
|
|
1575
1645
|
}
|
|
1576
1646
|
logs.registerGetLogHandler = registerGetLogHandler;
|
|
@@ -1584,14 +1654,15 @@ var logs;
|
|
|
1584
1654
|
"use strict";
|
|
1585
1655
|
|
|
1586
1656
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1657
|
+
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
1658
|
var internalAPIs_1 = __webpack_require__(1);
|
|
1588
1659
|
var constants_1 = __webpack_require__(2);
|
|
1589
1660
|
var utils_1 = __webpack_require__(5);
|
|
1590
1661
|
var communication_1 = __webpack_require__(0);
|
|
1591
1662
|
var menus_1 = __webpack_require__(15);
|
|
1592
1663
|
var handlers_1 = __webpack_require__(3);
|
|
1593
|
-
var globalVars_1 = __webpack_require__(
|
|
1594
|
-
var interfaces_1 = __webpack_require__(
|
|
1664
|
+
var globalVars_1 = __webpack_require__(7);
|
|
1665
|
+
var interfaces_1 = __webpack_require__(6);
|
|
1595
1666
|
var constants_2 = __webpack_require__(4);
|
|
1596
1667
|
function initializePrivateApis() {
|
|
1597
1668
|
menus_1.menus.initialize();
|
|
@@ -1606,16 +1677,16 @@ exports.initializePrivateApis = initializePrivateApis;
|
|
|
1606
1677
|
* @param teamInstanceParameters OPTIONAL Flags that specify whether to scope call to favorite teams
|
|
1607
1678
|
*/
|
|
1608
1679
|
function getUserJoinedTeams(callback, teamInstanceParameters) {
|
|
1609
|
-
internalAPIs_1.ensureInitialized();
|
|
1680
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1610
1681
|
if ((globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.android ||
|
|
1611
1682
|
globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.teamsRoomsAndroid ||
|
|
1612
1683
|
globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.teamsPhones ||
|
|
1613
1684
|
globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.teamsDisplays) &&
|
|
1614
|
-
!internalAPIs_1.isAPISupportedByPlatform(constants_2.getUserJoinedTeamsSupportedAndroidClientVersion)) {
|
|
1685
|
+
!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.getUserJoinedTeamsSupportedAndroidClientVersion)) {
|
|
1615
1686
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
1616
1687
|
throw new Error(JSON.stringify(oldPlatformError));
|
|
1617
1688
|
}
|
|
1618
|
-
communication_1.sendMessageToParent('getUserJoinedTeams', [teamInstanceParameters], callback);
|
|
1689
|
+
(0, communication_1.sendMessageToParent)('getUserJoinedTeams', [teamInstanceParameters], callback);
|
|
1619
1690
|
}
|
|
1620
1691
|
exports.getUserJoinedTeams = getUserJoinedTeams;
|
|
1621
1692
|
/**
|
|
@@ -1625,8 +1696,8 @@ exports.getUserJoinedTeams = getUserJoinedTeams;
|
|
|
1625
1696
|
* Place the tab into full-screen mode.
|
|
1626
1697
|
*/
|
|
1627
1698
|
function enterFullscreen() {
|
|
1628
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
|
|
1629
|
-
communication_1.sendMessageToParent('enterFullscreen', []);
|
|
1699
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
1700
|
+
(0, communication_1.sendMessageToParent)('enterFullscreen', []);
|
|
1630
1701
|
}
|
|
1631
1702
|
exports.enterFullscreen = enterFullscreen;
|
|
1632
1703
|
/**
|
|
@@ -1636,8 +1707,8 @@ exports.enterFullscreen = enterFullscreen;
|
|
|
1636
1707
|
* Reverts the tab into normal-screen mode.
|
|
1637
1708
|
*/
|
|
1638
1709
|
function exitFullscreen() {
|
|
1639
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
|
|
1640
|
-
communication_1.sendMessageToParent('exitFullscreen', []);
|
|
1710
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
1711
|
+
(0, communication_1.sendMessageToParent)('exitFullscreen', []);
|
|
1641
1712
|
}
|
|
1642
1713
|
exports.exitFullscreen = exitFullscreen;
|
|
1643
1714
|
/**
|
|
@@ -1648,7 +1719,7 @@ exports.exitFullscreen = exitFullscreen;
|
|
|
1648
1719
|
* @param file The file to preview.
|
|
1649
1720
|
*/
|
|
1650
1721
|
function openFilePreview(filePreviewParameters) {
|
|
1651
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
|
|
1722
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
1652
1723
|
var params = [
|
|
1653
1724
|
filePreviewParameters.entityId,
|
|
1654
1725
|
filePreviewParameters.title,
|
|
@@ -1663,8 +1734,9 @@ function openFilePreview(filePreviewParameters) {
|
|
|
1663
1734
|
filePreviewParameters.subEntityId,
|
|
1664
1735
|
filePreviewParameters.viewerAction,
|
|
1665
1736
|
filePreviewParameters.fileOpenPreference,
|
|
1737
|
+
filePreviewParameters.conversationId,
|
|
1666
1738
|
];
|
|
1667
|
-
communication_1.sendMessageToParent('openFilePreview', params);
|
|
1739
|
+
(0, communication_1.sendMessageToParent)('openFilePreview', params);
|
|
1668
1740
|
}
|
|
1669
1741
|
exports.openFilePreview = openFilePreview;
|
|
1670
1742
|
/**
|
|
@@ -1676,9 +1748,9 @@ exports.openFilePreview = openFilePreview;
|
|
|
1676
1748
|
* @param notificationType Notification type
|
|
1677
1749
|
*/
|
|
1678
1750
|
function showNotification(showNotificationParameters) {
|
|
1679
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
|
|
1751
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
1680
1752
|
var params = [showNotificationParameters.message, showNotificationParameters.notificationType];
|
|
1681
|
-
communication_1.sendMessageToParent('showNotification', params);
|
|
1753
|
+
(0, communication_1.sendMessageToParent)('showNotification', params);
|
|
1682
1754
|
}
|
|
1683
1755
|
exports.showNotification = showNotification;
|
|
1684
1756
|
/**
|
|
@@ -1689,8 +1761,8 @@ exports.showNotification = showNotification;
|
|
|
1689
1761
|
* This method works just for the first party Apps.
|
|
1690
1762
|
*/
|
|
1691
1763
|
function uploadCustomApp(manifestBlob, onComplete) {
|
|
1692
|
-
internalAPIs_1.ensureInitialized();
|
|
1693
|
-
communication_1.sendMessageToParent('uploadCustomApp', [manifestBlob], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler());
|
|
1764
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1765
|
+
(0, communication_1.sendMessageToParent)('uploadCustomApp', [manifestBlob], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
|
|
1694
1766
|
}
|
|
1695
1767
|
exports.uploadCustomApp = uploadCustomApp;
|
|
1696
1768
|
/**
|
|
@@ -1707,8 +1779,8 @@ function sendCustomMessage(actionName,
|
|
|
1707
1779
|
args,
|
|
1708
1780
|
// tslint:disable-next-line:no-any
|
|
1709
1781
|
callback) {
|
|
1710
|
-
internalAPIs_1.ensureInitialized();
|
|
1711
|
-
communication_1.sendMessageToParent(actionName, args, callback);
|
|
1782
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1783
|
+
(0, communication_1.sendMessageToParent)(actionName, args, callback);
|
|
1712
1784
|
}
|
|
1713
1785
|
exports.sendCustomMessage = sendCustomMessage;
|
|
1714
1786
|
/**
|
|
@@ -1723,12 +1795,12 @@ exports.sendCustomMessage = sendCustomMessage;
|
|
|
1723
1795
|
function sendCustomEvent(actionName,
|
|
1724
1796
|
// tslint:disable-next-line:no-any
|
|
1725
1797
|
args) {
|
|
1726
|
-
internalAPIs_1.ensureInitialized();
|
|
1798
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1727
1799
|
//validate childWindow
|
|
1728
1800
|
if (!communication_1.Communication.childWindow) {
|
|
1729
1801
|
throw new Error('The child window has not yet been initialized or is not present');
|
|
1730
1802
|
}
|
|
1731
|
-
communication_1.sendMessageEventToChild(actionName, args);
|
|
1803
|
+
(0, communication_1.sendMessageEventToChild)(actionName, args);
|
|
1732
1804
|
}
|
|
1733
1805
|
exports.sendCustomEvent = sendCustomEvent;
|
|
1734
1806
|
/**
|
|
@@ -1740,8 +1812,8 @@ exports.sendCustomEvent = sendCustomEvent;
|
|
|
1740
1812
|
*/
|
|
1741
1813
|
function registerCustomHandler(actionName, customHandler) {
|
|
1742
1814
|
var _this = this;
|
|
1743
|
-
internalAPIs_1.ensureInitialized();
|
|
1744
|
-
handlers_1.registerHandler(actionName, function () {
|
|
1815
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1816
|
+
(0, handlers_1.registerHandler)(actionName, function () {
|
|
1745
1817
|
var args = [];
|
|
1746
1818
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1747
1819
|
args[_i] = arguments[_i];
|
|
@@ -1760,8 +1832,8 @@ exports.registerCustomHandler = registerCustomHandler;
|
|
|
1760
1832
|
* @param callback The callback to invoke when the {@link ChatMembersInformation} object is retrieved.
|
|
1761
1833
|
*/
|
|
1762
1834
|
function getChatMembers(callback) {
|
|
1763
|
-
internalAPIs_1.ensureInitialized();
|
|
1764
|
-
communication_1.sendMessageToParent('getChatMembers', callback);
|
|
1835
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1836
|
+
(0, communication_1.sendMessageToParent)('getChatMembers', callback);
|
|
1765
1837
|
}
|
|
1766
1838
|
exports.getChatMembers = getChatMembers;
|
|
1767
1839
|
/**
|
|
@@ -1773,8 +1845,8 @@ exports.getChatMembers = getChatMembers;
|
|
|
1773
1845
|
* @param key The key for the config setting
|
|
1774
1846
|
*/
|
|
1775
1847
|
function getConfigSetting(callback, key) {
|
|
1776
|
-
internalAPIs_1.ensureInitialized();
|
|
1777
|
-
communication_1.sendMessageToParent('getConfigSetting', [key], callback);
|
|
1848
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1849
|
+
(0, communication_1.sendMessageToParent)('getConfigSetting', [key], callback);
|
|
1778
1850
|
}
|
|
1779
1851
|
exports.getConfigSetting = getConfigSetting;
|
|
1780
1852
|
/**
|
|
@@ -1784,8 +1856,8 @@ exports.getConfigSetting = getConfigSetting;
|
|
|
1784
1856
|
* @param handler When a subscribed setting is updated this handler is called
|
|
1785
1857
|
*/
|
|
1786
1858
|
function registerUserSettingsChangeHandler(settingTypes, handler) {
|
|
1787
|
-
internalAPIs_1.ensureInitialized();
|
|
1788
|
-
handlers_1.registerHandler('userSettingsChange', handler, true, [settingTypes]);
|
|
1859
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1860
|
+
(0, handlers_1.registerHandler)('userSettingsChange', handler, true, [settingTypes]);
|
|
1789
1861
|
}
|
|
1790
1862
|
exports.registerUserSettingsChangeHandler = registerUserSettingsChangeHandler;
|
|
1791
1863
|
|
|
@@ -1797,6 +1869,7 @@ exports.registerUserSettingsChangeHandler = registerUserSettingsChangeHandler;
|
|
|
1797
1869
|
"use strict";
|
|
1798
1870
|
|
|
1799
1871
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1872
|
+
exports.menus = void 0;
|
|
1800
1873
|
var internalAPIs_1 = __webpack_require__(1);
|
|
1801
1874
|
var communication_1 = __webpack_require__(0);
|
|
1802
1875
|
var handlers_1 = __webpack_require__(3);
|
|
@@ -1809,6 +1882,22 @@ var handlers_1 = __webpack_require__(3);
|
|
|
1809
1882
|
*/
|
|
1810
1883
|
var menus;
|
|
1811
1884
|
(function (menus) {
|
|
1885
|
+
/**
|
|
1886
|
+
* Defines how a menu item should appear in the NavBar.
|
|
1887
|
+
*/
|
|
1888
|
+
var DisplayMode;
|
|
1889
|
+
(function (DisplayMode) {
|
|
1890
|
+
/**
|
|
1891
|
+
* Only place this item in the NavBar if there's room for it.
|
|
1892
|
+
* If there's no room, item is shown in the overflow menu.
|
|
1893
|
+
*/
|
|
1894
|
+
DisplayMode[DisplayMode["ifRoom"] = 0] = "ifRoom";
|
|
1895
|
+
/**
|
|
1896
|
+
* Never place this item in the NavBar.
|
|
1897
|
+
* The item would always be shown in NavBar's overflow menu.
|
|
1898
|
+
*/
|
|
1899
|
+
DisplayMode[DisplayMode["overflowOnly"] = 1] = "overflowOnly";
|
|
1900
|
+
})(DisplayMode = menus.DisplayMode || (menus.DisplayMode = {}));
|
|
1812
1901
|
/**
|
|
1813
1902
|
* Represents information about menu item for Action Menu and Navigation Bar Menu.
|
|
1814
1903
|
*/
|
|
@@ -1838,9 +1927,9 @@ var menus;
|
|
|
1838
1927
|
var actionMenuItemPressHandler;
|
|
1839
1928
|
var viewConfigItemPressHandler;
|
|
1840
1929
|
function initialize() {
|
|
1841
|
-
handlers_1.registerHandler('navBarMenuItemPress', handleNavBarMenuItemPress, false);
|
|
1842
|
-
handlers_1.registerHandler('actionMenuItemPress', handleActionMenuItemPress, false);
|
|
1843
|
-
handlers_1.registerHandler('setModuleView', handleViewConfigItemPress, false);
|
|
1930
|
+
(0, handlers_1.registerHandler)('navBarMenuItemPress', handleNavBarMenuItemPress, false);
|
|
1931
|
+
(0, handlers_1.registerHandler)('actionMenuItemPress', handleActionMenuItemPress, false);
|
|
1932
|
+
(0, handlers_1.registerHandler)('setModuleView', handleViewConfigItemPress, false);
|
|
1844
1933
|
}
|
|
1845
1934
|
menus.initialize = initialize;
|
|
1846
1935
|
/**
|
|
@@ -1850,15 +1939,15 @@ var menus;
|
|
|
1850
1939
|
* @param handler The handler to invoke when the user selects view configuration.
|
|
1851
1940
|
*/
|
|
1852
1941
|
function setUpViews(viewConfig, handler) {
|
|
1853
|
-
internalAPIs_1.ensureInitialized();
|
|
1942
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1854
1943
|
viewConfigItemPressHandler = handler;
|
|
1855
|
-
communication_1.sendMessageToParent('setUpViews', [viewConfig]);
|
|
1944
|
+
(0, communication_1.sendMessageToParent)('setUpViews', [viewConfig]);
|
|
1856
1945
|
}
|
|
1857
1946
|
menus.setUpViews = setUpViews;
|
|
1858
1947
|
function handleViewConfigItemPress(id) {
|
|
1859
1948
|
if (!viewConfigItemPressHandler || !viewConfigItemPressHandler(id)) {
|
|
1860
|
-
internalAPIs_1.ensureInitialized();
|
|
1861
|
-
communication_1.sendMessageToParent('viewConfigItemPress', [id]);
|
|
1949
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1950
|
+
(0, communication_1.sendMessageToParent)('viewConfigItemPress', [id]);
|
|
1862
1951
|
}
|
|
1863
1952
|
}
|
|
1864
1953
|
/**
|
|
@@ -1867,15 +1956,15 @@ var menus;
|
|
|
1867
1956
|
* @param handler The handler to invoke when the user selects menu item.
|
|
1868
1957
|
*/
|
|
1869
1958
|
function setNavBarMenu(items, handler) {
|
|
1870
|
-
internalAPIs_1.ensureInitialized();
|
|
1959
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1871
1960
|
navBarMenuItemPressHandler = handler;
|
|
1872
|
-
communication_1.sendMessageToParent('setNavBarMenu', [items]);
|
|
1961
|
+
(0, communication_1.sendMessageToParent)('setNavBarMenu', [items]);
|
|
1873
1962
|
}
|
|
1874
1963
|
menus.setNavBarMenu = setNavBarMenu;
|
|
1875
1964
|
function handleNavBarMenuItemPress(id) {
|
|
1876
1965
|
if (!navBarMenuItemPressHandler || !navBarMenuItemPressHandler(id)) {
|
|
1877
|
-
internalAPIs_1.ensureInitialized();
|
|
1878
|
-
communication_1.sendMessageToParent('handleNavBarMenuItemPress', [id]);
|
|
1966
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1967
|
+
(0, communication_1.sendMessageToParent)('handleNavBarMenuItemPress', [id]);
|
|
1879
1968
|
}
|
|
1880
1969
|
}
|
|
1881
1970
|
/**
|
|
@@ -1884,15 +1973,15 @@ var menus;
|
|
|
1884
1973
|
* @param handler The handler to invoke when the user selects menu item.
|
|
1885
1974
|
*/
|
|
1886
1975
|
function showActionMenu(params, handler) {
|
|
1887
|
-
internalAPIs_1.ensureInitialized();
|
|
1976
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1888
1977
|
actionMenuItemPressHandler = handler;
|
|
1889
|
-
communication_1.sendMessageToParent('showActionMenu', [params]);
|
|
1978
|
+
(0, communication_1.sendMessageToParent)('showActionMenu', [params]);
|
|
1890
1979
|
}
|
|
1891
1980
|
menus.showActionMenu = showActionMenu;
|
|
1892
1981
|
function handleActionMenuItemPress(id) {
|
|
1893
1982
|
if (!actionMenuItemPressHandler || !actionMenuItemPressHandler(id)) {
|
|
1894
|
-
internalAPIs_1.ensureInitialized();
|
|
1895
|
-
communication_1.sendMessageToParent('handleActionMenuItemPress', [id]);
|
|
1983
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
1984
|
+
(0, communication_1.sendMessageToParent)('handleActionMenuItemPress', [id]);
|
|
1896
1985
|
}
|
|
1897
1986
|
}
|
|
1898
1987
|
})(menus = exports.menus || (exports.menus = {}));
|
|
@@ -1905,6 +1994,8 @@ var menus;
|
|
|
1905
1994
|
"use strict";
|
|
1906
1995
|
|
|
1907
1996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1997
|
+
exports.ParentAppWindow = exports.ChildAppWindow = void 0;
|
|
1998
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
1908
1999
|
var internalAPIs_1 = __webpack_require__(1);
|
|
1909
2000
|
var constants_1 = __webpack_require__(2);
|
|
1910
2001
|
var utils_1 = __webpack_require__(5);
|
|
@@ -1914,12 +2005,12 @@ var ChildAppWindow = /** @class */ (function () {
|
|
|
1914
2005
|
function ChildAppWindow() {
|
|
1915
2006
|
}
|
|
1916
2007
|
ChildAppWindow.prototype.postMessage = function (message, onComplete) {
|
|
1917
|
-
internalAPIs_1.ensureInitialized();
|
|
1918
|
-
communication_1.sendMessageToParent('messageForChild', [message], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler());
|
|
2008
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
2009
|
+
(0, communication_1.sendMessageToParent)('messageForChild', [message], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
|
|
1919
2010
|
};
|
|
1920
2011
|
ChildAppWindow.prototype.addEventListener = function (type, listener) {
|
|
1921
2012
|
if (type === 'message') {
|
|
1922
|
-
handlers_1.registerHandler('messageForParent', listener);
|
|
2013
|
+
(0, handlers_1.registerHandler)('messageForParent', listener);
|
|
1923
2014
|
}
|
|
1924
2015
|
};
|
|
1925
2016
|
return ChildAppWindow;
|
|
@@ -1933,16 +2024,16 @@ var ParentAppWindow = /** @class */ (function () {
|
|
|
1933
2024
|
// Do you need arguments? Make it a regular method instead.
|
|
1934
2025
|
return this._instance || (this._instance = new this());
|
|
1935
2026
|
},
|
|
1936
|
-
enumerable:
|
|
2027
|
+
enumerable: false,
|
|
1937
2028
|
configurable: true
|
|
1938
2029
|
});
|
|
1939
2030
|
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());
|
|
2031
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.task);
|
|
2032
|
+
(0, communication_1.sendMessageToParent)('messageForParent', [message], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
|
|
1942
2033
|
};
|
|
1943
2034
|
ParentAppWindow.prototype.addEventListener = function (type, listener) {
|
|
1944
2035
|
if (type === 'message') {
|
|
1945
|
-
handlers_1.registerHandler('messageForChild', listener);
|
|
2036
|
+
(0, handlers_1.registerHandler)('messageForChild', listener);
|
|
1946
2037
|
}
|
|
1947
2038
|
};
|
|
1948
2039
|
return ParentAppWindow;
|
|
@@ -1957,18 +2048,24 @@ exports.ParentAppWindow = ParentAppWindow;
|
|
|
1957
2048
|
"use strict";
|
|
1958
2049
|
|
|
1959
2050
|
var __extends = (this && this.__extends) || (function () {
|
|
1960
|
-
var extendStatics =
|
|
1961
|
-
|
|
1962
|
-
|
|
2051
|
+
var extendStatics = function (d, b) {
|
|
2052
|
+
extendStatics = Object.setPrototypeOf ||
|
|
2053
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2054
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2055
|
+
return extendStatics(d, b);
|
|
2056
|
+
};
|
|
1963
2057
|
return function (d, b) {
|
|
2058
|
+
if (typeof b !== "function" && b !== null)
|
|
2059
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1964
2060
|
extendStatics(d, b);
|
|
1965
2061
|
function __() { this.constructor = d; }
|
|
1966
2062
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1967
2063
|
};
|
|
1968
2064
|
})();
|
|
1969
2065
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1970
|
-
|
|
1971
|
-
var
|
|
2066
|
+
exports.media = void 0;
|
|
2067
|
+
var globalVars_1 = __webpack_require__(7);
|
|
2068
|
+
var interfaces_1 = __webpack_require__(6);
|
|
1972
2069
|
var internalAPIs_1 = __webpack_require__(1);
|
|
1973
2070
|
var constants_1 = __webpack_require__(2);
|
|
1974
2071
|
var utils_1 = __webpack_require__(5);
|
|
@@ -2009,18 +2106,18 @@ var media;
|
|
|
2009
2106
|
if (!callback) {
|
|
2010
2107
|
throw new Error('[captureImage] Callback cannot be null');
|
|
2011
2108
|
}
|
|
2012
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2109
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2013
2110
|
if (!globalVars_1.GlobalVars.isFramelessWindow) {
|
|
2014
2111
|
var notSupportedError = { errorCode: interfaces_1.ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
|
2015
2112
|
callback(notSupportedError, undefined);
|
|
2016
2113
|
return;
|
|
2017
2114
|
}
|
|
2018
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.captureImageMobileSupportVersion)) {
|
|
2115
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.captureImageMobileSupportVersion)) {
|
|
2019
2116
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
2020
2117
|
callback(oldPlatformError, undefined);
|
|
2021
2118
|
return;
|
|
2022
2119
|
}
|
|
2023
|
-
communication_1.sendMessageToParent('captureImage', callback);
|
|
2120
|
+
(0, communication_1.sendMessageToParent)('captureImage', callback);
|
|
2024
2121
|
}
|
|
2025
2122
|
media.captureImage = captureImage;
|
|
2026
2123
|
/**
|
|
@@ -2049,19 +2146,19 @@ var media;
|
|
|
2049
2146
|
if (!callback) {
|
|
2050
2147
|
throw new Error('[get Media] Callback cannot be null');
|
|
2051
2148
|
}
|
|
2052
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2053
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.mediaAPISupportVersion)) {
|
|
2149
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2150
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.mediaAPISupportVersion)) {
|
|
2054
2151
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
2055
2152
|
callback(oldPlatformError, null);
|
|
2056
2153
|
return;
|
|
2057
2154
|
}
|
|
2058
|
-
if (!mediaUtil_1.validateGetMediaInputs(this.mimeType, this.format, this.content)) {
|
|
2155
|
+
if (!(0, mediaUtil_1.validateGetMediaInputs)(this.mimeType, this.format, this.content)) {
|
|
2059
2156
|
var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
|
|
2060
2157
|
callback(invalidInput, null);
|
|
2061
2158
|
return;
|
|
2062
2159
|
}
|
|
2063
2160
|
// 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)) {
|
|
2161
|
+
if ((0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.getMediaCallbackSupportVersion)) {
|
|
2065
2162
|
this.getMediaViaCallback(callback);
|
|
2066
2163
|
}
|
|
2067
2164
|
else {
|
|
@@ -2084,65 +2181,146 @@ var media;
|
|
|
2084
2181
|
// If the chunksequence number is less than equal to 0 implies EOF
|
|
2085
2182
|
// create file/blob when all chunks have arrived and we get 0/-1 as chunksequence number
|
|
2086
2183
|
if (mediaResult.mediaChunk.chunkSequence <= 0) {
|
|
2087
|
-
var file = mediaUtil_1.createFile(helper.assembleAttachment, helper.mediaMimeType);
|
|
2184
|
+
var file = (0, mediaUtil_1.createFile)(helper.assembleAttachment, helper.mediaMimeType);
|
|
2088
2185
|
callback(mediaResult.error, file);
|
|
2089
2186
|
}
|
|
2090
2187
|
else {
|
|
2091
2188
|
// Keep pushing chunks into assemble attachment
|
|
2092
|
-
var assemble = mediaUtil_1.decodeAttachment(mediaResult.mediaChunk, helper.mediaMimeType);
|
|
2189
|
+
var assemble = (0, mediaUtil_1.decodeAttachment)(mediaResult.mediaChunk, helper.mediaMimeType);
|
|
2093
2190
|
helper.assembleAttachment.push(assemble);
|
|
2094
2191
|
}
|
|
2095
2192
|
}
|
|
2096
2193
|
else {
|
|
2097
|
-
callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data
|
|
2194
|
+
callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data received is null' }, null);
|
|
2098
2195
|
}
|
|
2099
2196
|
}
|
|
2100
2197
|
}
|
|
2101
2198
|
}
|
|
2102
|
-
communication_1.sendMessageToParent('getMedia', localUriId, handleGetMediaCallbackRequest);
|
|
2199
|
+
(0, communication_1.sendMessageToParent)('getMedia', localUriId, handleGetMediaCallbackRequest);
|
|
2103
2200
|
};
|
|
2104
2201
|
Media.prototype.getMediaViaHandler = function (callback) {
|
|
2105
|
-
var actionName = utils_1.generateGUID();
|
|
2202
|
+
var actionName = (0, utils_1.generateGUID)();
|
|
2106
2203
|
var helper = {
|
|
2107
2204
|
mediaMimeType: this.mimeType,
|
|
2108
2205
|
assembleAttachment: [],
|
|
2109
2206
|
};
|
|
2110
2207
|
var params = [actionName, this.content];
|
|
2111
|
-
this.content && callback && communication_1.sendMessageToParent('getMedia', params);
|
|
2208
|
+
this.content && callback && (0, communication_1.sendMessageToParent)('getMedia', params);
|
|
2112
2209
|
function handleGetMediaRequest(response) {
|
|
2113
2210
|
if (callback) {
|
|
2114
2211
|
var mediaResult = JSON.parse(response);
|
|
2115
2212
|
if (mediaResult.error) {
|
|
2116
2213
|
callback(mediaResult.error, null);
|
|
2117
|
-
handlers_1.removeHandler('getMedia' + actionName);
|
|
2214
|
+
(0, handlers_1.removeHandler)('getMedia' + actionName);
|
|
2118
2215
|
}
|
|
2119
2216
|
else {
|
|
2120
2217
|
if (mediaResult.mediaChunk) {
|
|
2121
2218
|
// If the chunksequence number is less than equal to 0 implies EOF
|
|
2122
2219
|
// create file/blob when all chunks have arrived and we get 0/-1 as chunksequence number
|
|
2123
2220
|
if (mediaResult.mediaChunk.chunkSequence <= 0) {
|
|
2124
|
-
var file = mediaUtil_1.createFile(helper.assembleAttachment, helper.mediaMimeType);
|
|
2221
|
+
var file = (0, mediaUtil_1.createFile)(helper.assembleAttachment, helper.mediaMimeType);
|
|
2125
2222
|
callback(mediaResult.error, file);
|
|
2126
|
-
handlers_1.removeHandler('getMedia' + actionName);
|
|
2223
|
+
(0, handlers_1.removeHandler)('getMedia' + actionName);
|
|
2127
2224
|
}
|
|
2128
2225
|
else {
|
|
2129
2226
|
// Keep pushing chunks into assemble attachment
|
|
2130
|
-
var assemble = mediaUtil_1.decodeAttachment(mediaResult.mediaChunk, helper.mediaMimeType);
|
|
2227
|
+
var assemble = (0, mediaUtil_1.decodeAttachment)(mediaResult.mediaChunk, helper.mediaMimeType);
|
|
2131
2228
|
helper.assembleAttachment.push(assemble);
|
|
2132
2229
|
}
|
|
2133
2230
|
}
|
|
2134
2231
|
else {
|
|
2135
|
-
callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data
|
|
2136
|
-
handlers_1.removeHandler('getMedia' + actionName);
|
|
2232
|
+
callback({ errorCode: interfaces_1.ErrorCode.INTERNAL_ERROR, message: 'data received is null' }, null);
|
|
2233
|
+
(0, handlers_1.removeHandler)('getMedia' + actionName);
|
|
2137
2234
|
}
|
|
2138
2235
|
}
|
|
2139
2236
|
}
|
|
2140
2237
|
}
|
|
2141
|
-
handlers_1.registerHandler('getMedia' + actionName, handleGetMediaRequest);
|
|
2238
|
+
(0, handlers_1.registerHandler)('getMedia' + actionName, handleGetMediaRequest);
|
|
2142
2239
|
};
|
|
2143
2240
|
return Media;
|
|
2144
2241
|
}(File));
|
|
2145
2242
|
media.Media = Media;
|
|
2243
|
+
/**
|
|
2244
|
+
* @private
|
|
2245
|
+
* Hide from docs
|
|
2246
|
+
* --------
|
|
2247
|
+
* Base class which holds the callback and notifies events to the host client
|
|
2248
|
+
*/
|
|
2249
|
+
var MediaController = /** @class */ (function () {
|
|
2250
|
+
function MediaController(controllerCallback) {
|
|
2251
|
+
this.controllerCallback = controllerCallback;
|
|
2252
|
+
}
|
|
2253
|
+
/**
|
|
2254
|
+
* @private
|
|
2255
|
+
* Hide from docs
|
|
2256
|
+
* --------
|
|
2257
|
+
* Function to notify the host client to programatically control the experience
|
|
2258
|
+
* @param mediaEvent indicates what the event that needs to be signaled to the host client
|
|
2259
|
+
* Optional; @param callback is used to send app if host client has successfully handled the notification event or not
|
|
2260
|
+
*/
|
|
2261
|
+
MediaController.prototype.notifyEventToHost = function (mediaEvent, callback) {
|
|
2262
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2263
|
+
var err = (0, internalAPIs_1.isApiSupportedOnMobile)(constants_2.nonFullScreenVideoModeAPISupportVersion);
|
|
2264
|
+
if (err) {
|
|
2265
|
+
if (callback) {
|
|
2266
|
+
callback(err);
|
|
2267
|
+
}
|
|
2268
|
+
return;
|
|
2269
|
+
}
|
|
2270
|
+
var params = { mediaType: this.getMediaType(), mediaControllerEvent: mediaEvent };
|
|
2271
|
+
(0, communication_1.sendMessageToParent)('media.controller', [params], function (err) {
|
|
2272
|
+
if (callback) {
|
|
2273
|
+
callback(err);
|
|
2274
|
+
}
|
|
2275
|
+
});
|
|
2276
|
+
};
|
|
2277
|
+
/**
|
|
2278
|
+
* Function to programatically stop the ongoing media event
|
|
2279
|
+
* Optional; @param callback is used to send app if host client has successfully stopped the event or not
|
|
2280
|
+
*/
|
|
2281
|
+
MediaController.prototype.stop = function (callback) {
|
|
2282
|
+
this.notifyEventToHost(MediaControllerEvent.StopRecording, callback);
|
|
2283
|
+
};
|
|
2284
|
+
return MediaController;
|
|
2285
|
+
}());
|
|
2286
|
+
/**
|
|
2287
|
+
* VideoController class is used to communicate between the app and the host client during the video capture flow
|
|
2288
|
+
*/
|
|
2289
|
+
var VideoController = /** @class */ (function (_super) {
|
|
2290
|
+
__extends(VideoController, _super);
|
|
2291
|
+
function VideoController() {
|
|
2292
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2293
|
+
}
|
|
2294
|
+
VideoController.prototype.getMediaType = function () {
|
|
2295
|
+
return MediaType.Video;
|
|
2296
|
+
};
|
|
2297
|
+
VideoController.prototype.notifyEventToApp = function (mediaEvent) {
|
|
2298
|
+
if (!this.controllerCallback) {
|
|
2299
|
+
// Early return as app has not registered with the callback
|
|
2300
|
+
return;
|
|
2301
|
+
}
|
|
2302
|
+
switch (mediaEvent) {
|
|
2303
|
+
case MediaControllerEvent.StartRecording:
|
|
2304
|
+
if (this.controllerCallback.onRecordingStarted) {
|
|
2305
|
+
this.controllerCallback.onRecordingStarted();
|
|
2306
|
+
break;
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
};
|
|
2310
|
+
return VideoController;
|
|
2311
|
+
}(MediaController));
|
|
2312
|
+
media.VideoController = VideoController;
|
|
2313
|
+
/**
|
|
2314
|
+
* @private
|
|
2315
|
+
* Hide from docs
|
|
2316
|
+
* --------
|
|
2317
|
+
* Events which are used to communicate between the app and the host client during the media recording flow
|
|
2318
|
+
*/
|
|
2319
|
+
var MediaControllerEvent;
|
|
2320
|
+
(function (MediaControllerEvent) {
|
|
2321
|
+
MediaControllerEvent[MediaControllerEvent["StartRecording"] = 1] = "StartRecording";
|
|
2322
|
+
MediaControllerEvent[MediaControllerEvent["StopRecording"] = 2] = "StopRecording";
|
|
2323
|
+
})(MediaControllerEvent || (MediaControllerEvent = {}));
|
|
2146
2324
|
/**
|
|
2147
2325
|
* The modes in which camera can be launched in select Media API
|
|
2148
2326
|
*/
|
|
@@ -2167,7 +2345,7 @@ var media;
|
|
|
2167
2345
|
var MediaType;
|
|
2168
2346
|
(function (MediaType) {
|
|
2169
2347
|
MediaType[MediaType["Image"] = 1] = "Image";
|
|
2170
|
-
|
|
2348
|
+
MediaType[MediaType["Video"] = 2] = "Video";
|
|
2171
2349
|
MediaType[MediaType["VideoAndImage"] = 3] = "VideoAndImage";
|
|
2172
2350
|
MediaType[MediaType["Audio"] = 4] = "Audio";
|
|
2173
2351
|
})(MediaType = media.MediaType || (media.MediaType = {}));
|
|
@@ -2179,6 +2357,14 @@ var media;
|
|
|
2179
2357
|
ImageUriType[ImageUriType["ID"] = 1] = "ID";
|
|
2180
2358
|
ImageUriType[ImageUriType["URL"] = 2] = "URL";
|
|
2181
2359
|
})(ImageUriType = media.ImageUriType || (media.ImageUriType = {}));
|
|
2360
|
+
/**
|
|
2361
|
+
* Specifies the image output formats.
|
|
2362
|
+
*/
|
|
2363
|
+
var ImageOutputFormats;
|
|
2364
|
+
(function (ImageOutputFormats) {
|
|
2365
|
+
ImageOutputFormats[ImageOutputFormats["IMAGE"] = 1] = "IMAGE";
|
|
2366
|
+
ImageOutputFormats[ImageOutputFormats["PDF"] = 2] = "PDF";
|
|
2367
|
+
})(ImageOutputFormats = media.ImageOutputFormats || (media.ImageOutputFormats = {}));
|
|
2182
2368
|
/**
|
|
2183
2369
|
* Select an attachment using camera/gallery
|
|
2184
2370
|
* @param mediaInputs The input params to customize the media to be selected
|
|
@@ -2188,32 +2374,33 @@ var media;
|
|
|
2188
2374
|
if (!callback) {
|
|
2189
2375
|
throw new Error('[select Media] Callback cannot be null');
|
|
2190
2376
|
}
|
|
2191
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2192
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.mediaAPISupportVersion)) {
|
|
2377
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2378
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.mediaAPISupportVersion)) {
|
|
2193
2379
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
2194
2380
|
callback(oldPlatformError, null);
|
|
2195
2381
|
return;
|
|
2196
2382
|
}
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
return;
|
|
2202
|
-
}
|
|
2203
|
-
else if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.videoAndImageMediaAPISupportVersion)) {
|
|
2204
|
-
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
2205
|
-
callback(oldPlatformError, null);
|
|
2206
|
-
return;
|
|
2207
|
-
}
|
|
2383
|
+
var err = (0, mediaUtil_1.isMediaCallSupportedOnMobile)(mediaInputs);
|
|
2384
|
+
if (err) {
|
|
2385
|
+
callback(err, null);
|
|
2386
|
+
return;
|
|
2208
2387
|
}
|
|
2209
|
-
if (!mediaUtil_1.validateSelectMediaInputs(mediaInputs)) {
|
|
2388
|
+
if (!(0, mediaUtil_1.validateSelectMediaInputs)(mediaInputs)) {
|
|
2210
2389
|
var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
|
|
2211
2390
|
callback(invalidInput, null);
|
|
2212
2391
|
return;
|
|
2213
2392
|
}
|
|
2214
2393
|
var params = [mediaInputs];
|
|
2215
|
-
// What comes back from native
|
|
2216
|
-
communication_1.sendMessageToParent('selectMedia', params, function (err, localAttachments) {
|
|
2394
|
+
// What comes back from native as attachments would just be objects and will be missing getMedia method on them
|
|
2395
|
+
(0, communication_1.sendMessageToParent)('selectMedia', params, function (err, localAttachments, mediaEvent) {
|
|
2396
|
+
// MediaControllerEvent response is used to notify the app about events and is a partial response to selectMedia
|
|
2397
|
+
if (mediaEvent) {
|
|
2398
|
+
if ((0, mediaUtil_1.isVideoControllerRegistered)(mediaInputs)) {
|
|
2399
|
+
mediaInputs.videoProps.videoController.notifyEventToApp(mediaEvent);
|
|
2400
|
+
}
|
|
2401
|
+
return;
|
|
2402
|
+
}
|
|
2403
|
+
// Media Attachments are final response to selectMedia
|
|
2217
2404
|
if (!localAttachments) {
|
|
2218
2405
|
callback(err, null);
|
|
2219
2406
|
return;
|
|
@@ -2236,19 +2423,19 @@ var media;
|
|
|
2236
2423
|
if (!callback) {
|
|
2237
2424
|
throw new Error('[view images] Callback cannot be null');
|
|
2238
2425
|
}
|
|
2239
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2240
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.mediaAPISupportVersion)) {
|
|
2426
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2427
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.mediaAPISupportVersion)) {
|
|
2241
2428
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
2242
2429
|
callback(oldPlatformError);
|
|
2243
2430
|
return;
|
|
2244
2431
|
}
|
|
2245
|
-
if (!mediaUtil_1.validateViewImagesInput(uriList)) {
|
|
2432
|
+
if (!(0, mediaUtil_1.validateViewImagesInput)(uriList)) {
|
|
2246
2433
|
var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
|
|
2247
2434
|
callback(invalidInput);
|
|
2248
2435
|
return;
|
|
2249
2436
|
}
|
|
2250
2437
|
var params = [uriList];
|
|
2251
|
-
communication_1.sendMessageToParent('viewImages', params, callback);
|
|
2438
|
+
(0, communication_1.sendMessageToParent)('viewImages', params, callback);
|
|
2252
2439
|
}
|
|
2253
2440
|
media.viewImages = viewImages;
|
|
2254
2441
|
/**
|
|
@@ -2261,7 +2448,7 @@ var media;
|
|
|
2261
2448
|
if (!callback) {
|
|
2262
2449
|
throw new Error('[media.scanBarCode] Callback cannot be null');
|
|
2263
2450
|
}
|
|
2264
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2451
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
2265
2452
|
if (globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.desktop ||
|
|
2266
2453
|
globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.web ||
|
|
2267
2454
|
globalVars_1.GlobalVars.hostClientType === constants_1.HostClientType.rigel ||
|
|
@@ -2273,17 +2460,17 @@ var media;
|
|
|
2273
2460
|
callback(notSupportedError, null);
|
|
2274
2461
|
return;
|
|
2275
2462
|
}
|
|
2276
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.scanBarCodeAPIMobileSupportVersion)) {
|
|
2463
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.scanBarCodeAPIMobileSupportVersion)) {
|
|
2277
2464
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
2278
2465
|
callback(oldPlatformError, null);
|
|
2279
2466
|
return;
|
|
2280
2467
|
}
|
|
2281
|
-
if (!mediaUtil_1.validateScanBarCodeInput(config)) {
|
|
2468
|
+
if (!(0, mediaUtil_1.validateScanBarCodeInput)(config)) {
|
|
2282
2469
|
var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
|
|
2283
2470
|
callback(invalidInput, null);
|
|
2284
2471
|
return;
|
|
2285
2472
|
}
|
|
2286
|
-
communication_1.sendMessageToParent('media.scanBarCode', [config], callback);
|
|
2473
|
+
(0, communication_1.sendMessageToParent)('media.scanBarCode', [config], callback);
|
|
2287
2474
|
}
|
|
2288
2475
|
media.scanBarCode = scanBarCode;
|
|
2289
2476
|
})(media = exports.media || (exports.media = {}));
|
|
@@ -2296,7 +2483,10 @@ var media;
|
|
|
2296
2483
|
"use strict";
|
|
2297
2484
|
|
|
2298
2485
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2486
|
+
exports.validatePeoplePickerInput = exports.validateScanBarCodeInput = exports.validateViewImagesInput = exports.validateGetMediaInputs = exports.isMediaCallForNonFullScreenVideoMode = exports.isMediaCallForVideoAndImageInputs = exports.isMediaCallForImageOutputFormats = exports.validateSelectMediaInputs = exports.isVideoControllerRegistered = exports.isMediaCallSupportedOnMobile = exports.decodeAttachment = exports.createFile = void 0;
|
|
2299
2487
|
var media_1 = __webpack_require__(17);
|
|
2488
|
+
var constants_1 = __webpack_require__(4);
|
|
2489
|
+
var internalAPIs_1 = __webpack_require__(1);
|
|
2300
2490
|
/**
|
|
2301
2491
|
* Helper function to create a blob from media chunks based on their sequence
|
|
2302
2492
|
*/
|
|
@@ -2343,6 +2533,34 @@ function decodeAttachment(attachment, mimeType) {
|
|
|
2343
2533
|
return assemble;
|
|
2344
2534
|
}
|
|
2345
2535
|
exports.decodeAttachment = decodeAttachment;
|
|
2536
|
+
/**
|
|
2537
|
+
* Function returns null if the media call is supported on current mobile version, else SdkError.
|
|
2538
|
+
*/
|
|
2539
|
+
function isMediaCallSupportedOnMobile(mediaInputs) {
|
|
2540
|
+
if (isMediaCallForVideoAndImageInputs(mediaInputs)) {
|
|
2541
|
+
return (0, internalAPIs_1.isApiSupportedOnMobile)(constants_1.videoAndImageMediaAPISupportVersion);
|
|
2542
|
+
}
|
|
2543
|
+
else if (isMediaCallForNonFullScreenVideoMode(mediaInputs)) {
|
|
2544
|
+
return (0, internalAPIs_1.isApiSupportedOnMobile)(constants_1.nonFullScreenVideoModeAPISupportVersion);
|
|
2545
|
+
}
|
|
2546
|
+
else if (isMediaCallForImageOutputFormats(mediaInputs)) {
|
|
2547
|
+
return (0, internalAPIs_1.isApiSupportedOnMobile)(constants_1.imageOutputFormatsAPISupportVersion);
|
|
2548
|
+
}
|
|
2549
|
+
return null;
|
|
2550
|
+
}
|
|
2551
|
+
exports.isMediaCallSupportedOnMobile = isMediaCallSupportedOnMobile;
|
|
2552
|
+
/**
|
|
2553
|
+
* Function returns true if the app has registered to listen to video controller events, else false.
|
|
2554
|
+
*/
|
|
2555
|
+
function isVideoControllerRegistered(mediaInputs) {
|
|
2556
|
+
if (mediaInputs.mediaType == media_1.media.MediaType.Video &&
|
|
2557
|
+
mediaInputs.videoProps &&
|
|
2558
|
+
mediaInputs.videoProps.videoController) {
|
|
2559
|
+
return true;
|
|
2560
|
+
}
|
|
2561
|
+
return false;
|
|
2562
|
+
}
|
|
2563
|
+
exports.isVideoControllerRegistered = isVideoControllerRegistered;
|
|
2346
2564
|
/**
|
|
2347
2565
|
* Returns true if the mediaInput params are valid and false otherwise
|
|
2348
2566
|
*/
|
|
@@ -2353,18 +2571,40 @@ function validateSelectMediaInputs(mediaInputs) {
|
|
|
2353
2571
|
return true;
|
|
2354
2572
|
}
|
|
2355
2573
|
exports.validateSelectMediaInputs = validateSelectMediaInputs;
|
|
2574
|
+
/**
|
|
2575
|
+
* Returns true if the mediaInput params are called for mediatype Image and contains Image outputs formats, false otherwise
|
|
2576
|
+
*/
|
|
2577
|
+
function isMediaCallForImageOutputFormats(mediaInputs) {
|
|
2578
|
+
var _a;
|
|
2579
|
+
if ((mediaInputs === null || mediaInputs === void 0 ? void 0 : mediaInputs.mediaType) == media_1.media.MediaType.Image && ((_a = mediaInputs === null || mediaInputs === void 0 ? void 0 : mediaInputs.imageProps) === null || _a === void 0 ? void 0 : _a.imageOutputFormats)) {
|
|
2580
|
+
return true;
|
|
2581
|
+
}
|
|
2582
|
+
return false;
|
|
2583
|
+
}
|
|
2584
|
+
exports.isMediaCallForImageOutputFormats = isMediaCallForImageOutputFormats;
|
|
2356
2585
|
/**
|
|
2357
2586
|
* Returns true if the mediaInput params are called for mediatype VideoAndImage and false otherwise
|
|
2358
2587
|
*/
|
|
2359
2588
|
function isMediaCallForVideoAndImageInputs(mediaInputs) {
|
|
2360
|
-
if (mediaInputs) {
|
|
2361
|
-
|
|
2362
|
-
return true;
|
|
2363
|
-
}
|
|
2589
|
+
if (mediaInputs && (mediaInputs.mediaType == media_1.media.MediaType.VideoAndImage || mediaInputs.videoAndImageProps)) {
|
|
2590
|
+
return true;
|
|
2364
2591
|
}
|
|
2365
2592
|
return false;
|
|
2366
2593
|
}
|
|
2367
2594
|
exports.isMediaCallForVideoAndImageInputs = isMediaCallForVideoAndImageInputs;
|
|
2595
|
+
/**
|
|
2596
|
+
* Returns true if the mediaInput params are called for non-full screen video mode and false otherwise
|
|
2597
|
+
*/
|
|
2598
|
+
function isMediaCallForNonFullScreenVideoMode(mediaInputs) {
|
|
2599
|
+
if (mediaInputs &&
|
|
2600
|
+
mediaInputs.mediaType == media_1.media.MediaType.Video &&
|
|
2601
|
+
mediaInputs.videoProps &&
|
|
2602
|
+
!mediaInputs.videoProps.isFullScreenMode) {
|
|
2603
|
+
return true;
|
|
2604
|
+
}
|
|
2605
|
+
return false;
|
|
2606
|
+
}
|
|
2607
|
+
exports.isMediaCallForNonFullScreenVideoMode = isMediaCallForNonFullScreenVideoMode;
|
|
2368
2608
|
/**
|
|
2369
2609
|
* Returns true if the get Media params are valid and false otherwise
|
|
2370
2610
|
*/
|
|
@@ -2436,12 +2676,19 @@ exports.validatePeoplePickerInput = validatePeoplePickerInput;
|
|
|
2436
2676
|
|
|
2437
2677
|
"use strict";
|
|
2438
2678
|
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2441
|
-
}
|
|
2679
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2680
|
+
if (k2 === undefined) k2 = k;
|
|
2681
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2682
|
+
}) : (function(o, m, k, k2) {
|
|
2683
|
+
if (k2 === undefined) k2 = k;
|
|
2684
|
+
o[k2] = m[k];
|
|
2685
|
+
}));
|
|
2686
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
2687
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2688
|
+
};
|
|
2442
2689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2443
|
-
|
|
2444
|
-
|
|
2690
|
+
__exportStar(__webpack_require__(20), exports);
|
|
2691
|
+
__exportStar(__webpack_require__(8), exports);
|
|
2445
2692
|
|
|
2446
2693
|
|
|
2447
2694
|
/***/ }),
|
|
@@ -2451,41 +2698,42 @@ __export(__webpack_require__(8));
|
|
|
2451
2698
|
"use strict";
|
|
2452
2699
|
|
|
2453
2700
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2701
|
+
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
2702
|
var bot_1 = __webpack_require__(21);
|
|
2455
|
-
exports
|
|
2703
|
+
Object.defineProperty(exports, "bot", { enumerable: true, get: function () { return bot_1.bot; } });
|
|
2456
2704
|
var menus_1 = __webpack_require__(15);
|
|
2457
|
-
exports
|
|
2705
|
+
Object.defineProperty(exports, "menus", { enumerable: true, get: function () { return menus_1.menus; } });
|
|
2458
2706
|
var logs_1 = __webpack_require__(13);
|
|
2459
|
-
exports
|
|
2707
|
+
Object.defineProperty(exports, "logs", { enumerable: true, get: function () { return logs_1.logs; } });
|
|
2460
2708
|
var interfaces_1 = __webpack_require__(35);
|
|
2461
|
-
exports
|
|
2462
|
-
exports
|
|
2463
|
-
exports
|
|
2709
|
+
Object.defineProperty(exports, "NotificationTypes", { enumerable: true, get: function () { return interfaces_1.NotificationTypes; } });
|
|
2710
|
+
Object.defineProperty(exports, "ViewerActionTypes", { enumerable: true, get: function () { return interfaces_1.ViewerActionTypes; } });
|
|
2711
|
+
Object.defineProperty(exports, "UserSettingTypes", { enumerable: true, get: function () { return interfaces_1.UserSettingTypes; } });
|
|
2464
2712
|
var privateAPIs_1 = __webpack_require__(14);
|
|
2465
|
-
exports
|
|
2466
|
-
exports
|
|
2467
|
-
exports
|
|
2468
|
-
exports
|
|
2469
|
-
exports
|
|
2470
|
-
exports
|
|
2471
|
-
exports
|
|
2472
|
-
exports
|
|
2473
|
-
exports
|
|
2474
|
-
exports
|
|
2475
|
-
exports
|
|
2476
|
-
exports
|
|
2713
|
+
Object.defineProperty(exports, "enterFullscreen", { enumerable: true, get: function () { return privateAPIs_1.enterFullscreen; } });
|
|
2714
|
+
Object.defineProperty(exports, "exitFullscreen", { enumerable: true, get: function () { return privateAPIs_1.exitFullscreen; } });
|
|
2715
|
+
Object.defineProperty(exports, "getChatMembers", { enumerable: true, get: function () { return privateAPIs_1.getChatMembers; } });
|
|
2716
|
+
Object.defineProperty(exports, "getConfigSetting", { enumerable: true, get: function () { return privateAPIs_1.getConfigSetting; } });
|
|
2717
|
+
Object.defineProperty(exports, "getUserJoinedTeams", { enumerable: true, get: function () { return privateAPIs_1.getUserJoinedTeams; } });
|
|
2718
|
+
Object.defineProperty(exports, "openFilePreview", { enumerable: true, get: function () { return privateAPIs_1.openFilePreview; } });
|
|
2719
|
+
Object.defineProperty(exports, "sendCustomMessage", { enumerable: true, get: function () { return privateAPIs_1.sendCustomMessage; } });
|
|
2720
|
+
Object.defineProperty(exports, "showNotification", { enumerable: true, get: function () { return privateAPIs_1.showNotification; } });
|
|
2721
|
+
Object.defineProperty(exports, "sendCustomEvent", { enumerable: true, get: function () { return privateAPIs_1.sendCustomEvent; } });
|
|
2722
|
+
Object.defineProperty(exports, "registerCustomHandler", { enumerable: true, get: function () { return privateAPIs_1.registerCustomHandler; } });
|
|
2723
|
+
Object.defineProperty(exports, "uploadCustomApp", { enumerable: true, get: function () { return privateAPIs_1.uploadCustomApp; } });
|
|
2724
|
+
Object.defineProperty(exports, "registerUserSettingsChangeHandler", { enumerable: true, get: function () { return privateAPIs_1.registerUserSettingsChangeHandler; } });
|
|
2477
2725
|
var conversations_1 = __webpack_require__(36);
|
|
2478
|
-
exports
|
|
2726
|
+
Object.defineProperty(exports, "conversations", { enumerable: true, get: function () { return conversations_1.conversations; } });
|
|
2479
2727
|
var meetingRoom_1 = __webpack_require__(37);
|
|
2480
|
-
exports
|
|
2728
|
+
Object.defineProperty(exports, "meetingRoom", { enumerable: true, get: function () { return meetingRoom_1.meetingRoom; } });
|
|
2481
2729
|
var remoteCamera_1 = __webpack_require__(38);
|
|
2482
|
-
exports
|
|
2730
|
+
Object.defineProperty(exports, "remoteCamera", { enumerable: true, get: function () { return remoteCamera_1.remoteCamera; } });
|
|
2483
2731
|
var files_1 = __webpack_require__(39);
|
|
2484
|
-
exports
|
|
2732
|
+
Object.defineProperty(exports, "files", { enumerable: true, get: function () { return files_1.files; } });
|
|
2485
2733
|
var appEntity_1 = __webpack_require__(40);
|
|
2486
|
-
exports
|
|
2734
|
+
Object.defineProperty(exports, "appEntity", { enumerable: true, get: function () { return appEntity_1.appEntity; } });
|
|
2487
2735
|
var teams_1 = __webpack_require__(41);
|
|
2488
|
-
exports
|
|
2736
|
+
Object.defineProperty(exports, "teams", { enumerable: true, get: function () { return teams_1.teams; } });
|
|
2489
2737
|
|
|
2490
2738
|
|
|
2491
2739
|
/***/ }),
|
|
@@ -2495,6 +2743,7 @@ exports.teams = teams_1.teams;
|
|
|
2495
2743
|
"use strict";
|
|
2496
2744
|
|
|
2497
2745
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2746
|
+
exports.bot = void 0;
|
|
2498
2747
|
var communication_1 = __webpack_require__(0);
|
|
2499
2748
|
var internalAPIs_1 = __webpack_require__(1);
|
|
2500
2749
|
/**
|
|
@@ -2513,8 +2762,8 @@ var bot;
|
|
|
2513
2762
|
* @param onError callback to invoke should an error occur
|
|
2514
2763
|
*/
|
|
2515
2764
|
function sendQuery(botRequest, onSuccess, onError) {
|
|
2516
|
-
internalAPIs_1.ensureInitialized();
|
|
2517
|
-
communication_1.sendMessageToParent('bot.executeQuery', [botRequest], function (success, response) {
|
|
2765
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
2766
|
+
(0, communication_1.sendMessageToParent)('bot.executeQuery', [botRequest], function (success, response) {
|
|
2518
2767
|
if (success) {
|
|
2519
2768
|
onSuccess(response);
|
|
2520
2769
|
}
|
|
@@ -2533,8 +2782,8 @@ var bot;
|
|
|
2533
2782
|
* @param onError callback to invoke should an error occur
|
|
2534
2783
|
*/
|
|
2535
2784
|
function getSupportedCommands(onSuccess, onError) {
|
|
2536
|
-
internalAPIs_1.ensureInitialized();
|
|
2537
|
-
communication_1.sendMessageToParent('bot.getSupportedCommands', function (success, response) {
|
|
2785
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
2786
|
+
(0, communication_1.sendMessageToParent)('bot.getSupportedCommands', function (success, response) {
|
|
2538
2787
|
if (success) {
|
|
2539
2788
|
onSuccess(response);
|
|
2540
2789
|
}
|
|
@@ -2554,8 +2803,8 @@ var bot;
|
|
|
2554
2803
|
* @param onError callback to invoke should an error occur
|
|
2555
2804
|
*/
|
|
2556
2805
|
function authenticate(authRequest, onSuccess, onError) {
|
|
2557
|
-
internalAPIs_1.ensureInitialized();
|
|
2558
|
-
communication_1.sendMessageToParent('bot.authenticate', [authRequest], function (success, response) {
|
|
2806
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
2807
|
+
(0, communication_1.sendMessageToParent)('bot.authenticate', [authRequest], function (success, response) {
|
|
2559
2808
|
if (success) {
|
|
2560
2809
|
onSuccess(response);
|
|
2561
2810
|
}
|
|
@@ -2606,7 +2855,7 @@ var _clockseq;
|
|
|
2606
2855
|
var _lastMSecs = 0;
|
|
2607
2856
|
var _lastNSecs = 0;
|
|
2608
2857
|
|
|
2609
|
-
// See https://github.com/
|
|
2858
|
+
// See https://github.com/uuidjs/uuid for API details
|
|
2610
2859
|
function v1(options, buf, offset) {
|
|
2611
2860
|
var i = buf && offset || 0;
|
|
2612
2861
|
var b = buf || [];
|
|
@@ -2744,6 +2993,7 @@ module.exports = v4;
|
|
|
2744
2993
|
"use strict";
|
|
2745
2994
|
|
|
2746
2995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2996
|
+
exports.appInitialization = void 0;
|
|
2747
2997
|
var internalAPIs_1 = __webpack_require__(1);
|
|
2748
2998
|
var constants_1 = __webpack_require__(4);
|
|
2749
2999
|
var communication_1 = __webpack_require__(0);
|
|
@@ -2773,24 +3023,24 @@ var appInitialization;
|
|
|
2773
3023
|
* Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
|
|
2774
3024
|
*/
|
|
2775
3025
|
function notifyAppLoaded() {
|
|
2776
|
-
internalAPIs_1.ensureInitialized();
|
|
2777
|
-
communication_1.sendMessageToParent(appInitialization.Messages.AppLoaded, [constants_1.version]);
|
|
3026
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3027
|
+
(0, communication_1.sendMessageToParent)(appInitialization.Messages.AppLoaded, [constants_1.version]);
|
|
2778
3028
|
}
|
|
2779
3029
|
appInitialization.notifyAppLoaded = notifyAppLoaded;
|
|
2780
3030
|
/**
|
|
2781
3031
|
* Notifies the frame that app initialization is successful and is ready for user interaction.
|
|
2782
3032
|
*/
|
|
2783
3033
|
function notifySuccess() {
|
|
2784
|
-
internalAPIs_1.ensureInitialized();
|
|
2785
|
-
communication_1.sendMessageToParent(appInitialization.Messages.Success, [constants_1.version]);
|
|
3034
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3035
|
+
(0, communication_1.sendMessageToParent)(appInitialization.Messages.Success, [constants_1.version]);
|
|
2786
3036
|
}
|
|
2787
3037
|
appInitialization.notifySuccess = notifySuccess;
|
|
2788
3038
|
/**
|
|
2789
3039
|
* Notifies the frame that app initialization has failed and to show an error page in its place.
|
|
2790
3040
|
*/
|
|
2791
3041
|
function notifyFailure(appInitializationFailedRequest) {
|
|
2792
|
-
internalAPIs_1.ensureInitialized();
|
|
2793
|
-
communication_1.sendMessageToParent(appInitialization.Messages.Failure, [
|
|
3042
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3043
|
+
(0, communication_1.sendMessageToParent)(appInitialization.Messages.Failure, [
|
|
2794
3044
|
appInitializationFailedRequest.reason,
|
|
2795
3045
|
appInitializationFailedRequest.message,
|
|
2796
3046
|
]);
|
|
@@ -2800,8 +3050,8 @@ var appInitialization;
|
|
|
2800
3050
|
* Notifies the frame that app initialized with some expected errors.
|
|
2801
3051
|
*/
|
|
2802
3052
|
function notifyExpectedFailure(expectedFailureRequest) {
|
|
2803
|
-
internalAPIs_1.ensureInitialized();
|
|
2804
|
-
communication_1.sendMessageToParent(appInitialization.Messages.ExpectedFailure, [expectedFailureRequest.reason, expectedFailureRequest.message]);
|
|
3053
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3054
|
+
(0, communication_1.sendMessageToParent)(appInitialization.Messages.ExpectedFailure, [expectedFailureRequest.reason, expectedFailureRequest.message]);
|
|
2805
3055
|
}
|
|
2806
3056
|
appInitialization.notifyExpectedFailure = notifyExpectedFailure;
|
|
2807
3057
|
})(appInitialization = exports.appInitialization || (exports.appInitialization = {}));
|
|
@@ -2814,8 +3064,9 @@ var appInitialization;
|
|
|
2814
3064
|
"use strict";
|
|
2815
3065
|
|
|
2816
3066
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3067
|
+
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
3068
|
var internalAPIs_1 = __webpack_require__(1);
|
|
2818
|
-
var globalVars_1 = __webpack_require__(
|
|
3069
|
+
var globalVars_1 = __webpack_require__(7);
|
|
2819
3070
|
var constants_1 = __webpack_require__(4);
|
|
2820
3071
|
var settings_1 = __webpack_require__(12);
|
|
2821
3072
|
var utils_1 = __webpack_require__(5);
|
|
@@ -2839,7 +3090,7 @@ function initialize(callback, validMessageOrigins) {
|
|
|
2839
3090
|
if (!globalVars_1.GlobalVars.initializeCalled) {
|
|
2840
3091
|
globalVars_1.GlobalVars.initializeCalled = true;
|
|
2841
3092
|
Handlers.initializeHandlers();
|
|
2842
|
-
communication_1.initializeCommunication(function (context, clientType, clientSupportedSDKVersion) {
|
|
3093
|
+
(0, communication_1.initializeCommunication)(function (context, clientType, clientSupportedSDKVersion) {
|
|
2843
3094
|
if (clientSupportedSDKVersion === void 0) { clientSupportedSDKVersion = constants_1.defaultSDKVersionForCompatCheck; }
|
|
2844
3095
|
globalVars_1.GlobalVars.frameContext = context;
|
|
2845
3096
|
globalVars_1.GlobalVars.hostClientType = clientType;
|
|
@@ -2851,37 +3102,11 @@ function initialize(callback, validMessageOrigins) {
|
|
|
2851
3102
|
}, validMessageOrigins);
|
|
2852
3103
|
authentication_1.authentication.initialize();
|
|
2853
3104
|
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
|
-
};
|
|
3105
|
+
(0, privateAPIs_1.initializePrivateApis)();
|
|
2881
3106
|
}
|
|
2882
3107
|
// Handle additional valid message origins if specified
|
|
2883
3108
|
if (Array.isArray(validMessageOrigins)) {
|
|
2884
|
-
internalAPIs_1.processAdditionalValidOrigins(validMessageOrigins);
|
|
3109
|
+
(0, internalAPIs_1.processAdditionalValidOrigins)(validMessageOrigins);
|
|
2885
3110
|
}
|
|
2886
3111
|
// Handle the callback if specified:
|
|
2887
3112
|
// 1. If initialization has already completed then just call it right away
|
|
@@ -2908,7 +3133,35 @@ exports._initialize = _initialize;
|
|
|
2908
3133
|
* ------
|
|
2909
3134
|
* Undocumented function used to clear state between unit tests
|
|
2910
3135
|
*/
|
|
2911
|
-
function _uninitialize() {
|
|
3136
|
+
function _uninitialize() {
|
|
3137
|
+
//used to clear state between unit tests
|
|
3138
|
+
if (!globalVars_1.GlobalVars.initializeCalled) {
|
|
3139
|
+
return;
|
|
3140
|
+
}
|
|
3141
|
+
if (globalVars_1.GlobalVars.frameContext) {
|
|
3142
|
+
registerOnThemeChangeHandler(null);
|
|
3143
|
+
registerFullScreenHandler(null);
|
|
3144
|
+
registerBackButtonHandler(null);
|
|
3145
|
+
registerBeforeUnloadHandler(null);
|
|
3146
|
+
registerFocusEnterHandler(null);
|
|
3147
|
+
registerOnLoadHandler(null);
|
|
3148
|
+
logs_1.logs.registerGetLogHandler(null);
|
|
3149
|
+
}
|
|
3150
|
+
if (globalVars_1.GlobalVars.frameContext === constants_2.FrameContexts.settings) {
|
|
3151
|
+
settings_1.settings.registerOnSaveHandler(null);
|
|
3152
|
+
}
|
|
3153
|
+
if (globalVars_1.GlobalVars.frameContext === constants_2.FrameContexts.remove) {
|
|
3154
|
+
settings_1.settings.registerOnRemoveHandler(null);
|
|
3155
|
+
}
|
|
3156
|
+
globalVars_1.GlobalVars.initializeCalled = false;
|
|
3157
|
+
globalVars_1.GlobalVars.initializeCompleted = false;
|
|
3158
|
+
globalVars_1.GlobalVars.initializeCallbacks = [];
|
|
3159
|
+
globalVars_1.GlobalVars.additionalValidOrigins = [];
|
|
3160
|
+
globalVars_1.GlobalVars.frameContext = null;
|
|
3161
|
+
globalVars_1.GlobalVars.hostClientType = null;
|
|
3162
|
+
globalVars_1.GlobalVars.isFramelessWindow = false;
|
|
3163
|
+
(0, communication_1.uninitializeCommunication)();
|
|
3164
|
+
}
|
|
2912
3165
|
exports._uninitialize = _uninitialize;
|
|
2913
3166
|
/**
|
|
2914
3167
|
* Enable print capability to support printing page using Ctrl+P and cmd+P
|
|
@@ -2916,7 +3169,7 @@ exports._uninitialize = _uninitialize;
|
|
|
2916
3169
|
function enablePrintCapability() {
|
|
2917
3170
|
if (!globalVars_1.GlobalVars.printCapabilityEnabled) {
|
|
2918
3171
|
globalVars_1.GlobalVars.printCapabilityEnabled = true;
|
|
2919
|
-
internalAPIs_1.ensureInitialized();
|
|
3172
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
2920
3173
|
// adding ctrl+P and cmd+P handler
|
|
2921
3174
|
document.addEventListener('keydown', function (event) {
|
|
2922
3175
|
if ((event.ctrlKey || event.metaKey) && event.keyCode === 80) {
|
|
@@ -2941,8 +3194,8 @@ exports.print = print;
|
|
|
2941
3194
|
* @param callback The callback to invoke when the {@link Context} object is retrieved.
|
|
2942
3195
|
*/
|
|
2943
3196
|
function getContext(callback) {
|
|
2944
|
-
internalAPIs_1.ensureInitialized();
|
|
2945
|
-
communication_1.sendMessageToParent('getContext', function (context) {
|
|
3197
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3198
|
+
(0, communication_1.sendMessageToParent)('getContext', function (context) {
|
|
2946
3199
|
if (!context.frameContext) {
|
|
2947
3200
|
// Fallback logic for frameContext properties
|
|
2948
3201
|
context.frameContext = globalVars_1.GlobalVars.frameContext;
|
|
@@ -2957,7 +3210,7 @@ exports.getContext = getContext;
|
|
|
2957
3210
|
* @param handler The handler to invoke when the user changes their theme.
|
|
2958
3211
|
*/
|
|
2959
3212
|
function registerOnThemeChangeHandler(handler) {
|
|
2960
|
-
internalAPIs_1.ensureInitialized();
|
|
3213
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
2961
3214
|
Handlers.registerOnThemeChangeHandler(handler);
|
|
2962
3215
|
}
|
|
2963
3216
|
exports.registerOnThemeChangeHandler = registerOnThemeChangeHandler;
|
|
@@ -2967,7 +3220,7 @@ exports.registerOnThemeChangeHandler = registerOnThemeChangeHandler;
|
|
|
2967
3220
|
* @param handler The handler to invoke when the user toggles full-screen view for a tab.
|
|
2968
3221
|
*/
|
|
2969
3222
|
function registerFullScreenHandler(handler) {
|
|
2970
|
-
internalAPIs_1.ensureInitialized();
|
|
3223
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
2971
3224
|
Handlers.registerHandler('fullScreenChange', handler);
|
|
2972
3225
|
}
|
|
2973
3226
|
exports.registerFullScreenHandler = registerFullScreenHandler;
|
|
@@ -2977,7 +3230,7 @@ exports.registerFullScreenHandler = registerFullScreenHandler;
|
|
|
2977
3230
|
* @param handler The handler to invoke when the personal app button is clicked in the app bar.
|
|
2978
3231
|
*/
|
|
2979
3232
|
function registerAppButtonClickHandler(handler) {
|
|
2980
|
-
internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
|
|
3233
|
+
(0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
|
|
2981
3234
|
Handlers.registerHandler('appButtonClick', handler);
|
|
2982
3235
|
}
|
|
2983
3236
|
exports.registerAppButtonClickHandler = registerAppButtonClickHandler;
|
|
@@ -2987,7 +3240,7 @@ exports.registerAppButtonClickHandler = registerAppButtonClickHandler;
|
|
|
2987
3240
|
* @param handler The handler to invoke when entering hover of the personal app button in the app bar.
|
|
2988
3241
|
*/
|
|
2989
3242
|
function registerAppButtonHoverEnterHandler(handler) {
|
|
2990
|
-
internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
|
|
3243
|
+
(0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
|
|
2991
3244
|
Handlers.registerHandler('appButtonHoverEnter', handler);
|
|
2992
3245
|
}
|
|
2993
3246
|
exports.registerAppButtonHoverEnterHandler = registerAppButtonHoverEnterHandler;
|
|
@@ -2997,7 +3250,7 @@ exports.registerAppButtonHoverEnterHandler = registerAppButtonHoverEnterHandler;
|
|
|
2997
3250
|
* @param handler The handler to invoke when exiting hover of the personal app button in the app bar.
|
|
2998
3251
|
*/
|
|
2999
3252
|
function registerAppButtonHoverLeaveHandler(handler) {
|
|
3000
|
-
internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
|
|
3253
|
+
(0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
|
|
3001
3254
|
Handlers.registerHandler('appButtonHoverLeave', handler);
|
|
3002
3255
|
}
|
|
3003
3256
|
exports.registerAppButtonHoverLeaveHandler = registerAppButtonHoverLeaveHandler;
|
|
@@ -3009,7 +3262,7 @@ exports.registerAppButtonHoverLeaveHandler = registerAppButtonHoverLeaveHandler;
|
|
|
3009
3262
|
* @param handler The handler to invoke when the user presses their Team client's back button.
|
|
3010
3263
|
*/
|
|
3011
3264
|
function registerBackButtonHandler(handler) {
|
|
3012
|
-
internalAPIs_1.ensureInitialized();
|
|
3265
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3013
3266
|
Handlers.registerBackButtonHandler(handler);
|
|
3014
3267
|
}
|
|
3015
3268
|
exports.registerBackButtonHandler = registerBackButtonHandler;
|
|
@@ -3019,7 +3272,7 @@ exports.registerBackButtonHandler = registerBackButtonHandler;
|
|
|
3019
3272
|
* @param handler The handler to invoke when the page is loaded.
|
|
3020
3273
|
*/
|
|
3021
3274
|
function registerOnLoadHandler(handler) {
|
|
3022
|
-
internalAPIs_1.ensureInitialized();
|
|
3275
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3023
3276
|
Handlers.registerOnLoadHandler(handler);
|
|
3024
3277
|
}
|
|
3025
3278
|
exports.registerOnLoadHandler = registerOnLoadHandler;
|
|
@@ -3030,7 +3283,7 @@ exports.registerOnLoadHandler = registerOnLoadHandler;
|
|
|
3030
3283
|
* invoke the readyToUnload function provided to it once it's ready to be unloaded.
|
|
3031
3284
|
*/
|
|
3032
3285
|
function registerBeforeUnloadHandler(handler) {
|
|
3033
|
-
internalAPIs_1.ensureInitialized();
|
|
3286
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3034
3287
|
Handlers.registerBeforeUnloadHandler(handler);
|
|
3035
3288
|
}
|
|
3036
3289
|
exports.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
|
|
@@ -3040,7 +3293,7 @@ exports.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
|
|
|
3040
3293
|
* @param handler The handler to invoked by the app when they want the focus to be in the place of their choice.
|
|
3041
3294
|
*/
|
|
3042
3295
|
function registerFocusEnterHandler(handler) {
|
|
3043
|
-
internalAPIs_1.ensureInitialized();
|
|
3296
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3044
3297
|
Handlers.registerFocusEnterHandler(handler);
|
|
3045
3298
|
}
|
|
3046
3299
|
exports.registerFocusEnterHandler = registerFocusEnterHandler;
|
|
@@ -3049,7 +3302,7 @@ exports.registerFocusEnterHandler = registerFocusEnterHandler;
|
|
|
3049
3302
|
* @param handler The handler to invoke when the user click on Settings.
|
|
3050
3303
|
*/
|
|
3051
3304
|
function registerEnterSettingsHandler(handler) {
|
|
3052
|
-
internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
|
|
3305
|
+
(0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
|
|
3053
3306
|
Handlers.registerHandler('changeSettings', handler);
|
|
3054
3307
|
}
|
|
3055
3308
|
exports.registerEnterSettingsHandler = registerEnterSettingsHandler;
|
|
@@ -3060,8 +3313,8 @@ exports.registerEnterSettingsHandler = registerEnterSettingsHandler;
|
|
|
3060
3313
|
* @param tabInstanceParameters OPTIONAL Flags that specify whether to scope call to favorite teams or channels.
|
|
3061
3314
|
*/
|
|
3062
3315
|
function getTabInstances(callback, tabInstanceParameters) {
|
|
3063
|
-
internalAPIs_1.ensureInitialized();
|
|
3064
|
-
communication_1.sendMessageToParent('getTabInstances', [tabInstanceParameters], callback);
|
|
3316
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3317
|
+
(0, communication_1.sendMessageToParent)('getTabInstances', [tabInstanceParameters], callback);
|
|
3065
3318
|
}
|
|
3066
3319
|
exports.getTabInstances = getTabInstances;
|
|
3067
3320
|
/**
|
|
@@ -3070,8 +3323,8 @@ exports.getTabInstances = getTabInstances;
|
|
|
3070
3323
|
* @param tabInstanceParameters OPTIONAL Ignored, kept for future use
|
|
3071
3324
|
*/
|
|
3072
3325
|
function getMruTabInstances(callback, tabInstanceParameters) {
|
|
3073
|
-
internalAPIs_1.ensureInitialized();
|
|
3074
|
-
communication_1.sendMessageToParent('getMruTabInstances', [tabInstanceParameters], callback);
|
|
3326
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3327
|
+
(0, communication_1.sendMessageToParent)('getMruTabInstances', [tabInstanceParameters], callback);
|
|
3075
3328
|
}
|
|
3076
3329
|
exports.getMruTabInstances = getMruTabInstances;
|
|
3077
3330
|
/**
|
|
@@ -3079,8 +3332,8 @@ exports.getMruTabInstances = getMruTabInstances;
|
|
|
3079
3332
|
* @param deepLinkParameters ID and label for the link and fallback URL.
|
|
3080
3333
|
*/
|
|
3081
3334
|
function shareDeepLink(deepLinkParameters) {
|
|
3082
|
-
internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content, constants_2.FrameContexts.sidePanel, constants_2.FrameContexts.meetingStage);
|
|
3083
|
-
communication_1.sendMessageToParent('shareDeepLink', [
|
|
3335
|
+
(0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content, constants_2.FrameContexts.sidePanel, constants_2.FrameContexts.meetingStage);
|
|
3336
|
+
(0, communication_1.sendMessageToParent)('shareDeepLink', [
|
|
3084
3337
|
deepLinkParameters.subEntityId,
|
|
3085
3338
|
deepLinkParameters.subEntityLabel,
|
|
3086
3339
|
deepLinkParameters.subEntityWebUrl,
|
|
@@ -3092,13 +3345,13 @@ exports.shareDeepLink = shareDeepLink;
|
|
|
3092
3345
|
* @param deepLink deep link.
|
|
3093
3346
|
*/
|
|
3094
3347
|
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());
|
|
3348
|
+
(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);
|
|
3349
|
+
(0, communication_1.sendMessageToParent)('executeDeepLink', [deepLink], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)());
|
|
3097
3350
|
}
|
|
3098
3351
|
exports.executeDeepLink = executeDeepLink;
|
|
3099
3352
|
function setFrameContext(frameContext) {
|
|
3100
|
-
internalAPIs_1.ensureInitialized(constants_2.FrameContexts.content);
|
|
3101
|
-
communication_1.sendMessageToParent('setFrameContext', [frameContext]);
|
|
3353
|
+
(0, internalAPIs_1.ensureInitialized)(constants_2.FrameContexts.content);
|
|
3354
|
+
(0, communication_1.sendMessageToParent)('setFrameContext', [frameContext]);
|
|
3102
3355
|
}
|
|
3103
3356
|
exports.setFrameContext = setFrameContext;
|
|
3104
3357
|
function initializeWithFrameContext(frameContext, callback, validMessageOrigins) {
|
|
@@ -3115,6 +3368,7 @@ exports.initializeWithFrameContext = initializeWithFrameContext;
|
|
|
3115
3368
|
"use strict";
|
|
3116
3369
|
|
|
3117
3370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3371
|
+
exports.navigateBack = exports.navigateCrossDomain = exports.navigateToTab = exports.returnFocus = void 0;
|
|
3118
3372
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3119
3373
|
var utils_1 = __webpack_require__(5);
|
|
3120
3374
|
var constants_1 = __webpack_require__(2);
|
|
@@ -3123,12 +3377,12 @@ var communication_1 = __webpack_require__(0);
|
|
|
3123
3377
|
* Navigation specific part of the SDK.
|
|
3124
3378
|
*/
|
|
3125
3379
|
/**
|
|
3126
|
-
* Return focus to the main Teams app. Will focus search bar if navigating
|
|
3380
|
+
* Return focus to the main Teams app. Will focus search bar if navigating forward and app bar if navigating back.
|
|
3127
3381
|
* @param navigateForward Determines the direction to focus in teams app.
|
|
3128
3382
|
*/
|
|
3129
3383
|
function returnFocus(navigateForward) {
|
|
3130
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
|
|
3131
|
-
communication_1.sendMessageToParent('returnFocus', [navigateForward]);
|
|
3384
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
3385
|
+
(0, communication_1.sendMessageToParent)('returnFocus', [navigateForward]);
|
|
3132
3386
|
}
|
|
3133
3387
|
exports.returnFocus = returnFocus;
|
|
3134
3388
|
/**
|
|
@@ -3136,9 +3390,9 @@ exports.returnFocus = returnFocus;
|
|
|
3136
3390
|
* @param tabInstance The tab instance to navigate to.
|
|
3137
3391
|
*/
|
|
3138
3392
|
function navigateToTab(tabInstance, onComplete) {
|
|
3139
|
-
internalAPIs_1.ensureInitialized();
|
|
3393
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3140
3394
|
var errorMessage = 'Invalid internalTabInstanceId and/or channelId were/was provided';
|
|
3141
|
-
communication_1.sendMessageToParent('navigateToTab', [tabInstance], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler(errorMessage));
|
|
3395
|
+
(0, communication_1.sendMessageToParent)('navigateToTab', [tabInstance], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)(errorMessage));
|
|
3142
3396
|
}
|
|
3143
3397
|
exports.navigateToTab = navigateToTab;
|
|
3144
3398
|
/**
|
|
@@ -3150,9 +3404,9 @@ exports.navigateToTab = navigateToTab;
|
|
|
3150
3404
|
* @param url The URL to navigate the frame to.
|
|
3151
3405
|
*/
|
|
3152
3406
|
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);
|
|
3407
|
+
(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
3408
|
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));
|
|
3409
|
+
(0, communication_1.sendMessageToParent)('navigateCrossDomain', [url], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)(errorMessage));
|
|
3156
3410
|
}
|
|
3157
3411
|
exports.navigateCrossDomain = navigateCrossDomain;
|
|
3158
3412
|
/**
|
|
@@ -3160,9 +3414,9 @@ exports.navigateCrossDomain = navigateCrossDomain;
|
|
|
3160
3414
|
* it's appropriate to use this method.
|
|
3161
3415
|
*/
|
|
3162
3416
|
function navigateBack(onComplete) {
|
|
3163
|
-
internalAPIs_1.ensureInitialized();
|
|
3417
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3164
3418
|
var errorMessage = 'Back navigation is not supported in the current client or context.';
|
|
3165
|
-
communication_1.sendMessageToParent('navigateBack', [], onComplete ? onComplete : utils_1.getGenericOnCompleteHandler(errorMessage));
|
|
3419
|
+
(0, communication_1.sendMessageToParent)('navigateBack', [], onComplete ? onComplete : (0, utils_1.getGenericOnCompleteHandler)(errorMessage));
|
|
3166
3420
|
}
|
|
3167
3421
|
exports.navigateBack = navigateBack;
|
|
3168
3422
|
|
|
@@ -3178,11 +3432,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
3178
3432
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3179
3433
|
t[p] = s[p];
|
|
3180
3434
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3181
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
3182
|
-
|
|
3435
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3436
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3437
|
+
t[p[i]] = s[p[i]];
|
|
3438
|
+
}
|
|
3183
3439
|
return t;
|
|
3184
3440
|
};
|
|
3185
3441
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3442
|
+
exports.tasks = void 0;
|
|
3186
3443
|
var constants_1 = __webpack_require__(2);
|
|
3187
3444
|
var appWindow_1 = __webpack_require__(16);
|
|
3188
3445
|
var communication_1 = __webpack_require__(0);
|
|
@@ -3199,8 +3456,8 @@ var tasks;
|
|
|
3199
3456
|
* @param submitHandler Handler to call when the task module is completed
|
|
3200
3457
|
*/
|
|
3201
3458
|
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);
|
|
3459
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3460
|
+
(0, communication_1.sendMessageToParent)('tasks.startTask', [taskInfo], submitHandler);
|
|
3204
3461
|
return new appWindow_1.ChildAppWindow();
|
|
3205
3462
|
}
|
|
3206
3463
|
tasks.startTask = startTask;
|
|
@@ -3209,10 +3466,10 @@ var tasks;
|
|
|
3209
3466
|
* @param taskInfo An object containing width and height properties
|
|
3210
3467
|
*/
|
|
3211
3468
|
function updateTask(taskInfo) {
|
|
3212
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.task);
|
|
3469
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.task);
|
|
3213
3470
|
var width = taskInfo.width, height = taskInfo.height, extra = __rest(taskInfo, ["width", "height"]);
|
|
3214
3471
|
if (!Object.keys(extra).length) {
|
|
3215
|
-
communication_1.sendMessageToParent('tasks.updateTask', [taskInfo]);
|
|
3472
|
+
(0, communication_1.sendMessageToParent)('tasks.updateTask', [taskInfo]);
|
|
3216
3473
|
}
|
|
3217
3474
|
else {
|
|
3218
3475
|
throw new Error('updateTask requires a taskInfo argument containing only width and height');
|
|
@@ -3225,9 +3482,9 @@ var tasks;
|
|
|
3225
3482
|
* @param appIds Helps to validate that the call originates from the same appId as the one that invoked the task module
|
|
3226
3483
|
*/
|
|
3227
3484
|
function submitTask(result, appIds) {
|
|
3228
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.task);
|
|
3485
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.task);
|
|
3229
3486
|
// 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]]);
|
|
3487
|
+
(0, communication_1.sendMessageToParent)('tasks.completeTask', [result, Array.isArray(appIds) ? appIds : [appIds]]);
|
|
3231
3488
|
}
|
|
3232
3489
|
tasks.submitTask = submitTask;
|
|
3233
3490
|
})(tasks = exports.tasks || (exports.tasks = {}));
|
|
@@ -3240,7 +3497,8 @@ var tasks;
|
|
|
3240
3497
|
"use strict";
|
|
3241
3498
|
|
|
3242
3499
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3243
|
-
|
|
3500
|
+
exports.location = void 0;
|
|
3501
|
+
var interfaces_1 = __webpack_require__(6);
|
|
3244
3502
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3245
3503
|
var constants_1 = __webpack_require__(2);
|
|
3246
3504
|
var communication_1 = __webpack_require__(0);
|
|
@@ -3255,8 +3513,8 @@ var location;
|
|
|
3255
3513
|
if (!callback) {
|
|
3256
3514
|
throw new Error('[location.getLocation] Callback cannot be null');
|
|
3257
3515
|
}
|
|
3258
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
3259
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.locationAPIsRequiredVersion)) {
|
|
3516
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
3517
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.locationAPIsRequiredVersion)) {
|
|
3260
3518
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
3261
3519
|
callback(oldPlatformError, undefined);
|
|
3262
3520
|
return;
|
|
@@ -3266,7 +3524,7 @@ var location;
|
|
|
3266
3524
|
callback(invalidInput, undefined);
|
|
3267
3525
|
return;
|
|
3268
3526
|
}
|
|
3269
|
-
communication_1.sendMessageToParent('location.getLocation', [props], callback);
|
|
3527
|
+
(0, communication_1.sendMessageToParent)('location.getLocation', [props], callback);
|
|
3270
3528
|
}
|
|
3271
3529
|
location_1.getLocation = getLocation;
|
|
3272
3530
|
/**
|
|
@@ -3278,8 +3536,8 @@ var location;
|
|
|
3278
3536
|
if (!callback) {
|
|
3279
3537
|
throw new Error('[location.showLocation] Callback cannot be null');
|
|
3280
3538
|
}
|
|
3281
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
3282
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.locationAPIsRequiredVersion)) {
|
|
3539
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
3540
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.locationAPIsRequiredVersion)) {
|
|
3283
3541
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
3284
3542
|
callback(oldPlatformError, undefined);
|
|
3285
3543
|
return;
|
|
@@ -3289,7 +3547,7 @@ var location;
|
|
|
3289
3547
|
callback(invalidInput, undefined);
|
|
3290
3548
|
return;
|
|
3291
3549
|
}
|
|
3292
|
-
communication_1.sendMessageToParent('location.showLocation', [location], callback);
|
|
3550
|
+
(0, communication_1.sendMessageToParent)('location.showLocation', [location], callback);
|
|
3293
3551
|
}
|
|
3294
3552
|
location_1.showLocation = showLocation;
|
|
3295
3553
|
})(location = exports.location || (exports.location = {}));
|
|
@@ -3302,6 +3560,7 @@ var location;
|
|
|
3302
3560
|
"use strict";
|
|
3303
3561
|
|
|
3304
3562
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3563
|
+
exports.meeting = void 0;
|
|
3305
3564
|
var communication_1 = __webpack_require__(0);
|
|
3306
3565
|
var handlers_1 = __webpack_require__(3);
|
|
3307
3566
|
var internalAPIs_1 = __webpack_require__(1);
|
|
@@ -3328,8 +3587,8 @@ var meeting;
|
|
|
3328
3587
|
if (!callback) {
|
|
3329
3588
|
throw new Error('[get incoming client audio state] Callback cannot be null');
|
|
3330
3589
|
}
|
|
3331
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3332
|
-
communication_1.sendMessageToParent('getIncomingClientAudioState', callback);
|
|
3590
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3591
|
+
(0, communication_1.sendMessageToParent)('getIncomingClientAudioState', callback);
|
|
3333
3592
|
}
|
|
3334
3593
|
meeting.getIncomingClientAudioState = getIncomingClientAudioState;
|
|
3335
3594
|
/**
|
|
@@ -3343,8 +3602,8 @@ var meeting;
|
|
|
3343
3602
|
if (!callback) {
|
|
3344
3603
|
throw new Error('[toggle incoming client audio] Callback cannot be null');
|
|
3345
3604
|
}
|
|
3346
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3347
|
-
communication_1.sendMessageToParent('toggleIncomingClientAudio', callback);
|
|
3605
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3606
|
+
(0, communication_1.sendMessageToParent)('toggleIncomingClientAudio', callback);
|
|
3348
3607
|
}
|
|
3349
3608
|
meeting.toggleIncomingClientAudio = toggleIncomingClientAudio;
|
|
3350
3609
|
/**
|
|
@@ -3359,8 +3618,8 @@ var meeting;
|
|
|
3359
3618
|
if (!callback) {
|
|
3360
3619
|
throw new Error('[get meeting details] Callback cannot be null');
|
|
3361
3620
|
}
|
|
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);
|
|
3621
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage, constants_1.FrameContexts.settings, constants_1.FrameContexts.content);
|
|
3622
|
+
(0, communication_1.sendMessageToParent)('meeting.getMeetingDetails', callback);
|
|
3364
3623
|
}
|
|
3365
3624
|
meeting.getMeetingDetails = getMeetingDetails;
|
|
3366
3625
|
/**
|
|
@@ -3374,8 +3633,8 @@ var meeting;
|
|
|
3374
3633
|
if (!callback) {
|
|
3375
3634
|
throw new Error('[get Authentication Token For AnonymousUser] Callback cannot be null');
|
|
3376
3635
|
}
|
|
3377
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3378
|
-
communication_1.sendMessageToParent('meeting.getAuthenticationTokenForAnonymousUser', callback);
|
|
3636
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3637
|
+
(0, communication_1.sendMessageToParent)('meeting.getAuthenticationTokenForAnonymousUser', callback);
|
|
3379
3638
|
}
|
|
3380
3639
|
meeting.getAuthenticationTokenForAnonymousUser = getAuthenticationTokenForAnonymousUser;
|
|
3381
3640
|
/**
|
|
@@ -3388,8 +3647,8 @@ var meeting;
|
|
|
3388
3647
|
if (!callback) {
|
|
3389
3648
|
throw new Error('[get live stream state] Callback cannot be null');
|
|
3390
3649
|
}
|
|
3391
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3392
|
-
communication_1.sendMessageToParent('meeting.getLiveStreamState', callback);
|
|
3650
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3651
|
+
(0, communication_1.sendMessageToParent)('meeting.getLiveStreamState', callback);
|
|
3393
3652
|
}
|
|
3394
3653
|
meeting.getLiveStreamState = getLiveStreamState;
|
|
3395
3654
|
/**
|
|
@@ -3403,8 +3662,8 @@ var meeting;
|
|
|
3403
3662
|
if (!callback) {
|
|
3404
3663
|
throw new Error('[request start live streaming] Callback cannot be null');
|
|
3405
3664
|
}
|
|
3406
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3407
|
-
communication_1.sendMessageToParent('meeting.requestStartLiveStreaming', [streamUrl, streamKey], callback);
|
|
3665
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3666
|
+
(0, communication_1.sendMessageToParent)('meeting.requestStartLiveStreaming', [streamUrl, streamKey], callback);
|
|
3408
3667
|
}
|
|
3409
3668
|
meeting.requestStartLiveStreaming = requestStartLiveStreaming;
|
|
3410
3669
|
/**
|
|
@@ -3416,8 +3675,8 @@ var meeting;
|
|
|
3416
3675
|
if (!callback) {
|
|
3417
3676
|
throw new Error('[request stop live streaming] Callback cannot be null');
|
|
3418
3677
|
}
|
|
3419
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3420
|
-
communication_1.sendMessageToParent('meeting.requestStopLiveStreaming', callback);
|
|
3678
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3679
|
+
(0, communication_1.sendMessageToParent)('meeting.requestStopLiveStreaming', callback);
|
|
3421
3680
|
}
|
|
3422
3681
|
meeting.requestStopLiveStreaming = requestStopLiveStreaming;
|
|
3423
3682
|
/**
|
|
@@ -3429,11 +3688,13 @@ var meeting;
|
|
|
3429
3688
|
if (!handler) {
|
|
3430
3689
|
throw new Error('[register live stream changed handler] Handler cannot be null');
|
|
3431
3690
|
}
|
|
3432
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3433
|
-
handlers_1.registerHandler('meeting.liveStreamChanged', handler);
|
|
3691
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3692
|
+
(0, handlers_1.registerHandler)('meeting.liveStreamChanged', handler);
|
|
3434
3693
|
}
|
|
3435
3694
|
meeting.registerLiveStreamChangedHandler = registerLiveStreamChangedHandler;
|
|
3436
3695
|
/**
|
|
3696
|
+
* @private
|
|
3697
|
+
* Hide from docs
|
|
3437
3698
|
* Allows an app to share contents in the meeting
|
|
3438
3699
|
* @param callback Callback contains 2 parameters, error and result.
|
|
3439
3700
|
* error can either contain an error of type SdkError, incase of an error, or null when share is successful
|
|
@@ -3444,11 +3705,13 @@ var meeting;
|
|
|
3444
3705
|
if (!callback) {
|
|
3445
3706
|
throw new Error('[share app content to stage] Callback cannot be null');
|
|
3446
3707
|
}
|
|
3447
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3448
|
-
communication_1.sendMessageToParent('meeting.shareAppContentToStage', [appContentUrl], callback);
|
|
3708
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3709
|
+
(0, communication_1.sendMessageToParent)('meeting.shareAppContentToStage', [appContentUrl], callback);
|
|
3449
3710
|
}
|
|
3450
3711
|
meeting.shareAppContentToStage = shareAppContentToStage;
|
|
3451
3712
|
/**
|
|
3713
|
+
* @private
|
|
3714
|
+
* Hide from docs
|
|
3452
3715
|
* Provides information related app's in-meeting sharing capabilities
|
|
3453
3716
|
* @param callback Callback contains 2 parameters, error and result.
|
|
3454
3717
|
* error can either contain an error of type SdkError (error indication), or null (non-error indication)
|
|
@@ -3459,11 +3722,13 @@ var meeting;
|
|
|
3459
3722
|
if (!callback) {
|
|
3460
3723
|
throw new Error('[get app content stage sharing capabilities] Callback cannot be null');
|
|
3461
3724
|
}
|
|
3462
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3463
|
-
communication_1.sendMessageToParent('meeting.getAppContentStageSharingCapabilities', callback);
|
|
3725
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3726
|
+
(0, communication_1.sendMessageToParent)('meeting.getAppContentStageSharingCapabilities', callback);
|
|
3464
3727
|
}
|
|
3465
3728
|
meeting.getAppContentStageSharingCapabilities = getAppContentStageSharingCapabilities;
|
|
3466
3729
|
/**
|
|
3730
|
+
* @private
|
|
3731
|
+
* Hide from docs
|
|
3467
3732
|
* Terminates current stage sharing session in meeting
|
|
3468
3733
|
* @param callback Callback contains 2 parameters, error and result.
|
|
3469
3734
|
* error can either contain an error of type SdkError (error indication), or null (non-error indication)
|
|
@@ -3473,11 +3738,13 @@ var meeting;
|
|
|
3473
3738
|
if (!callback) {
|
|
3474
3739
|
throw new Error('[stop sharing app content to stage] Callback cannot be null');
|
|
3475
3740
|
}
|
|
3476
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3477
|
-
communication_1.sendMessageToParent('meeting.stopSharingAppContentToStage', callback);
|
|
3741
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3742
|
+
(0, communication_1.sendMessageToParent)('meeting.stopSharingAppContentToStage', callback);
|
|
3478
3743
|
}
|
|
3479
3744
|
meeting.stopSharingAppContentToStage = stopSharingAppContentToStage;
|
|
3480
3745
|
/**
|
|
3746
|
+
* @private
|
|
3747
|
+
* Hide from docs
|
|
3481
3748
|
* Provides information related to current stage sharing state for app
|
|
3482
3749
|
* @param callback Callback contains 2 parameters, error and result.
|
|
3483
3750
|
* error can either contain an error of type SdkError (error indication), or null (non-error indication)
|
|
@@ -3488,8 +3755,8 @@ var meeting;
|
|
|
3488
3755
|
if (!callback) {
|
|
3489
3756
|
throw new Error('[get app content stage sharing state] Callback cannot be null');
|
|
3490
3757
|
}
|
|
3491
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3492
|
-
communication_1.sendMessageToParent('meeting.getAppContentStageSharingState', callback);
|
|
3758
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3759
|
+
(0, communication_1.sendMessageToParent)('meeting.getAppContentStageSharingState', callback);
|
|
3493
3760
|
}
|
|
3494
3761
|
meeting.getAppContentStageSharingState = getAppContentStageSharingState;
|
|
3495
3762
|
})(meeting = exports.meeting || (exports.meeting = {}));
|
|
@@ -3502,6 +3769,7 @@ var meeting;
|
|
|
3502
3769
|
"use strict";
|
|
3503
3770
|
|
|
3504
3771
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3772
|
+
exports.monetization = void 0;
|
|
3505
3773
|
var communication_1 = __webpack_require__(0);
|
|
3506
3774
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3507
3775
|
var constants_1 = __webpack_require__(2);
|
|
@@ -3519,8 +3787,8 @@ var monetization;
|
|
|
3519
3787
|
if (!callback) {
|
|
3520
3788
|
throw new Error('[open purchase experience] Callback cannot be null');
|
|
3521
3789
|
}
|
|
3522
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
|
|
3523
|
-
communication_1.sendMessageToParent('monetization.openPurchaseExperience', [planInfo], callback);
|
|
3790
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
3791
|
+
(0, communication_1.sendMessageToParent)('monetization.openPurchaseExperience', [planInfo], callback);
|
|
3524
3792
|
}
|
|
3525
3793
|
monetization.openPurchaseExperience = openPurchaseExperience;
|
|
3526
3794
|
})(monetization = exports.monetization || (exports.monetization = {}));
|
|
@@ -3533,9 +3801,10 @@ var monetization;
|
|
|
3533
3801
|
"use strict";
|
|
3534
3802
|
|
|
3535
3803
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3804
|
+
exports.people = void 0;
|
|
3536
3805
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3537
3806
|
var constants_1 = __webpack_require__(2);
|
|
3538
|
-
var interfaces_1 = __webpack_require__(
|
|
3807
|
+
var interfaces_1 = __webpack_require__(6);
|
|
3539
3808
|
var mediaUtil_1 = __webpack_require__(18);
|
|
3540
3809
|
var communication_1 = __webpack_require__(0);
|
|
3541
3810
|
var constants_2 = __webpack_require__(4);
|
|
@@ -3551,18 +3820,18 @@ var people;
|
|
|
3551
3820
|
if (!callback) {
|
|
3552
3821
|
throw new Error('[people picker] Callback cannot be null');
|
|
3553
3822
|
}
|
|
3554
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content, constants_1.FrameContexts.task, constants_1.FrameContexts.settings);
|
|
3555
|
-
if (!internalAPIs_1.isAPISupportedByPlatform(constants_2.peoplePickerRequiredVersion)) {
|
|
3823
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task, constants_1.FrameContexts.settings);
|
|
3824
|
+
if (!(0, internalAPIs_1.isAPISupportedByPlatform)(constants_2.peoplePickerRequiredVersion)) {
|
|
3556
3825
|
var oldPlatformError = { errorCode: interfaces_1.ErrorCode.OLD_PLATFORM };
|
|
3557
3826
|
callback(oldPlatformError, undefined);
|
|
3558
3827
|
return;
|
|
3559
3828
|
}
|
|
3560
|
-
if (!mediaUtil_1.validatePeoplePickerInput(peoplePickerInputs)) {
|
|
3829
|
+
if (!(0, mediaUtil_1.validatePeoplePickerInput)(peoplePickerInputs)) {
|
|
3561
3830
|
var invalidInput = { errorCode: interfaces_1.ErrorCode.INVALID_ARGUMENTS };
|
|
3562
3831
|
callback(invalidInput, null);
|
|
3563
3832
|
return;
|
|
3564
3833
|
}
|
|
3565
|
-
communication_1.sendMessageToParent('people.selectPeople', [peoplePickerInputs], callback);
|
|
3834
|
+
(0, communication_1.sendMessageToParent)('people.selectPeople', [peoplePickerInputs], callback);
|
|
3566
3835
|
}
|
|
3567
3836
|
people_1.selectPeople = selectPeople;
|
|
3568
3837
|
})(people = exports.people || (exports.people = {}));
|
|
@@ -3575,6 +3844,7 @@ var people;
|
|
|
3575
3844
|
"use strict";
|
|
3576
3845
|
|
|
3577
3846
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3847
|
+
exports.video = void 0;
|
|
3578
3848
|
var communication_1 = __webpack_require__(0);
|
|
3579
3849
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3580
3850
|
var constants_1 = __webpack_require__(2);
|
|
@@ -3586,7 +3856,7 @@ var handlers_1 = __webpack_require__(3);
|
|
|
3586
3856
|
var video;
|
|
3587
3857
|
(function (video) {
|
|
3588
3858
|
/**
|
|
3589
|
-
* Video frame format enum,
|
|
3859
|
+
* Video frame format enum, currently only support NV12
|
|
3590
3860
|
*/
|
|
3591
3861
|
var VideoFrameFormat;
|
|
3592
3862
|
(function (VideoFrameFormat) {
|
|
@@ -3610,13 +3880,13 @@ var video;
|
|
|
3610
3880
|
* register to read the video frames in Permissions section.
|
|
3611
3881
|
*/
|
|
3612
3882
|
function registerForVideoFrame(frameCallback, config) {
|
|
3613
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3614
|
-
handlers_1.registerHandler('video.newVideoFrame', function (videoFrame) {
|
|
3883
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3884
|
+
(0, handlers_1.registerHandler)('video.newVideoFrame', function (videoFrame) {
|
|
3615
3885
|
if (videoFrame !== undefined) {
|
|
3616
3886
|
frameCallback(videoFrame, notifyVideoFrameProcessed, notifyError);
|
|
3617
3887
|
}
|
|
3618
3888
|
});
|
|
3619
|
-
communication_1.sendMessageToParent('video.registerForVideoFrame', [config]);
|
|
3889
|
+
(0, communication_1.sendMessageToParent)('video.registerForVideoFrame', [config]);
|
|
3620
3890
|
}
|
|
3621
3891
|
video.registerForVideoFrame = registerForVideoFrame;
|
|
3622
3892
|
/**
|
|
@@ -3627,16 +3897,16 @@ var video;
|
|
|
3627
3897
|
* @param effectId Newly selected effect id.
|
|
3628
3898
|
*/
|
|
3629
3899
|
function notifySelectedVideoEffectChanged(effectChangeType, effectId) {
|
|
3630
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3631
|
-
communication_1.sendMessageToParent('video.videoEffectChanged', [effectChangeType, effectId]);
|
|
3900
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3901
|
+
(0, communication_1.sendMessageToParent)('video.videoEffectChanged', [effectChangeType, effectId]);
|
|
3632
3902
|
}
|
|
3633
3903
|
video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
|
|
3634
3904
|
/**
|
|
3635
3905
|
* Register the video effect callback, Teams client uses this to notify the video extension the new video effect will by applied.
|
|
3636
3906
|
*/
|
|
3637
3907
|
function registerForVideoEffect(callback) {
|
|
3638
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
3639
|
-
handlers_1.registerHandler('video.effectParameterChange', callback);
|
|
3908
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3909
|
+
(0, handlers_1.registerHandler)('video.effectParameterChange', callback);
|
|
3640
3910
|
}
|
|
3641
3911
|
video.registerForVideoEffect = registerForVideoEffect;
|
|
3642
3912
|
/**
|
|
@@ -3644,13 +3914,13 @@ var video;
|
|
|
3644
3914
|
* or pass the video frame to next one in video pipeline.
|
|
3645
3915
|
*/
|
|
3646
3916
|
function notifyVideoFrameProcessed() {
|
|
3647
|
-
communication_1.sendMessageToParent('video.videoFrameProcessed');
|
|
3917
|
+
(0, communication_1.sendMessageToParent)('video.videoFrameProcessed');
|
|
3648
3918
|
}
|
|
3649
3919
|
/**
|
|
3650
3920
|
* sending error notification to Teams client.
|
|
3651
3921
|
*/
|
|
3652
3922
|
function notifyError(errorMessage) {
|
|
3653
|
-
communication_1.sendMessageToParent('video.notifyError', [errorMessage]);
|
|
3923
|
+
(0, communication_1.sendMessageToParent)('video.notifyError', [errorMessage]);
|
|
3654
3924
|
}
|
|
3655
3925
|
})(video = exports.video || (exports.video = {})); //end of video namespace
|
|
3656
3926
|
|
|
@@ -3662,9 +3932,10 @@ var video;
|
|
|
3662
3932
|
"use strict";
|
|
3663
3933
|
|
|
3664
3934
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3935
|
+
exports.sharing = void 0;
|
|
3665
3936
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3666
3937
|
var communication_1 = __webpack_require__(0);
|
|
3667
|
-
var interfaces_1 = __webpack_require__(
|
|
3938
|
+
var interfaces_1 = __webpack_require__(6);
|
|
3668
3939
|
var constants_1 = __webpack_require__(2);
|
|
3669
3940
|
var sharing;
|
|
3670
3941
|
(function (sharing) {
|
|
@@ -3689,8 +3960,8 @@ var sharing;
|
|
|
3689
3960
|
if (!validateContentForSupportedTypes(shareWebContentRequest, callback)) {
|
|
3690
3961
|
return;
|
|
3691
3962
|
}
|
|
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);
|
|
3963
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.task, constants_1.FrameContexts.stage, constants_1.FrameContexts.meetingStage);
|
|
3964
|
+
(0, communication_1.sendMessageToParent)(sharing.SharingAPIMessages.shareWebContent, [shareWebContentRequest], callback);
|
|
3694
3965
|
}
|
|
3695
3966
|
sharing.shareWebContent = shareWebContent;
|
|
3696
3967
|
// Error checks
|
|
@@ -3760,6 +4031,7 @@ var sharing;
|
|
|
3760
4031
|
"use strict";
|
|
3761
4032
|
|
|
3762
4033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4034
|
+
exports.UserSettingTypes = exports.ViewerActionTypes = exports.NotificationTypes = void 0;
|
|
3763
4035
|
var NotificationTypes;
|
|
3764
4036
|
(function (NotificationTypes) {
|
|
3765
4037
|
NotificationTypes["fileDownloadStart"] = "fileDownloadStart";
|
|
@@ -3802,6 +4074,7 @@ var UserSettingTypes;
|
|
|
3802
4074
|
"use strict";
|
|
3803
4075
|
|
|
3804
4076
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4077
|
+
exports.conversations = void 0;
|
|
3805
4078
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3806
4079
|
var constants_1 = __webpack_require__(2);
|
|
3807
4080
|
var communication_1 = __webpack_require__(0);
|
|
@@ -3818,8 +4091,8 @@ var conversations;
|
|
|
3818
4091
|
* Allows the user to start or continue a conversation with each subentity inside the tab
|
|
3819
4092
|
*/
|
|
3820
4093
|
function openConversation(openConversationRequest) {
|
|
3821
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.content);
|
|
3822
|
-
communication_1.sendMessageToParent('conversations.openConversation', [
|
|
4094
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
4095
|
+
(0, communication_1.sendMessageToParent)('conversations.openConversation', [
|
|
3823
4096
|
{
|
|
3824
4097
|
title: openConversationRequest.title,
|
|
3825
4098
|
subEntityId: openConversationRequest.subEntityId,
|
|
@@ -3833,7 +4106,7 @@ var conversations;
|
|
|
3833
4106
|
}
|
|
3834
4107
|
});
|
|
3835
4108
|
if (openConversationRequest.onStartConversation) {
|
|
3836
|
-
handlers_1.registerHandler('startConversation', function (subEntityId, conversationId, channelId, entityId) {
|
|
4109
|
+
(0, handlers_1.registerHandler)('startConversation', function (subEntityId, conversationId, channelId, entityId) {
|
|
3837
4110
|
return openConversationRequest.onStartConversation({
|
|
3838
4111
|
subEntityId: subEntityId,
|
|
3839
4112
|
conversationId: conversationId,
|
|
@@ -3843,7 +4116,7 @@ var conversations;
|
|
|
3843
4116
|
});
|
|
3844
4117
|
}
|
|
3845
4118
|
if (openConversationRequest.onCloseConversation) {
|
|
3846
|
-
handlers_1.registerHandler('closeConversation', function (subEntityId, conversationId, channelId, entityId) {
|
|
4119
|
+
(0, handlers_1.registerHandler)('closeConversation', function (subEntityId, conversationId, channelId, entityId) {
|
|
3847
4120
|
return openConversationRequest.onCloseConversation({
|
|
3848
4121
|
subEntityId: subEntityId,
|
|
3849
4122
|
conversationId: conversationId,
|
|
@@ -3861,10 +4134,10 @@ var conversations;
|
|
|
3861
4134
|
* Allows the user to close the conversation in the right pane
|
|
3862
4135
|
*/
|
|
3863
4136
|
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');
|
|
4137
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
4138
|
+
(0, communication_1.sendMessageToParent)('conversations.closeConversation');
|
|
4139
|
+
(0, handlers_1.removeHandler)('startConversation');
|
|
4140
|
+
(0, handlers_1.removeHandler)('closeConversation');
|
|
3868
4141
|
}
|
|
3869
4142
|
conversations.closeConversation = closeConversation;
|
|
3870
4143
|
})(conversations = exports.conversations || (exports.conversations = {}));
|
|
@@ -3877,6 +4150,7 @@ var conversations;
|
|
|
3877
4150
|
"use strict";
|
|
3878
4151
|
|
|
3879
4152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4153
|
+
exports.meetingRoom = void 0;
|
|
3880
4154
|
var internalAPIs_1 = __webpack_require__(1);
|
|
3881
4155
|
var communication_1 = __webpack_require__(0);
|
|
3882
4156
|
var handlers_1 = __webpack_require__(3);
|
|
@@ -3939,8 +4213,8 @@ var meetingRoom;
|
|
|
3939
4213
|
* @param callback Callback to invoke when the meeting room info is fetched.
|
|
3940
4214
|
*/
|
|
3941
4215
|
function getPairedMeetingRoomInfo(callback) {
|
|
3942
|
-
internalAPIs_1.ensureInitialized();
|
|
3943
|
-
communication_1.sendMessageToParent('meetingRoom.getPairedMeetingRoomInfo', callback);
|
|
4216
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
4217
|
+
(0, communication_1.sendMessageToParent)('meetingRoom.getPairedMeetingRoomInfo', callback);
|
|
3944
4218
|
}
|
|
3945
4219
|
meetingRoom.getPairedMeetingRoomInfo = getPairedMeetingRoomInfo;
|
|
3946
4220
|
/**
|
|
@@ -3958,8 +4232,8 @@ var meetingRoom;
|
|
|
3958
4232
|
if (!callback) {
|
|
3959
4233
|
throw new Error('[meetingRoom.sendCommandToPairedMeetingRoom] Callback cannot be null');
|
|
3960
4234
|
}
|
|
3961
|
-
internalAPIs_1.ensureInitialized();
|
|
3962
|
-
communication_1.sendMessageToParent('meetingRoom.sendCommandToPairedMeetingRoom', [commandName], callback);
|
|
4235
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
4236
|
+
(0, communication_1.sendMessageToParent)('meetingRoom.sendCommandToPairedMeetingRoom', [commandName], callback);
|
|
3963
4237
|
}
|
|
3964
4238
|
meetingRoom.sendCommandToPairedMeetingRoom = sendCommandToPairedMeetingRoom;
|
|
3965
4239
|
/**
|
|
@@ -3974,9 +4248,9 @@ var meetingRoom;
|
|
|
3974
4248
|
if (!handler) {
|
|
3975
4249
|
throw new Error('[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null');
|
|
3976
4250
|
}
|
|
3977
|
-
internalAPIs_1.ensureInitialized();
|
|
3978
|
-
handlers_1.registerHandler('meetingRoom.meetingRoomCapabilitiesUpdate', function (capabilities) {
|
|
3979
|
-
internalAPIs_1.ensureInitialized();
|
|
4251
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
4252
|
+
(0, handlers_1.registerHandler)('meetingRoom.meetingRoomCapabilitiesUpdate', function (capabilities) {
|
|
4253
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3980
4254
|
handler(capabilities);
|
|
3981
4255
|
});
|
|
3982
4256
|
// handler && Communication.sendMessageToParent('registerHandler', ['meetingRoom.meetingRoomCapabilitiesUpdate']);
|
|
@@ -3993,9 +4267,9 @@ var meetingRoom;
|
|
|
3993
4267
|
if (!handler) {
|
|
3994
4268
|
throw new Error('[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null');
|
|
3995
4269
|
}
|
|
3996
|
-
internalAPIs_1.ensureInitialized();
|
|
3997
|
-
handlers_1.registerHandler('meetingRoom.meetingRoomStatesUpdate', function (states) {
|
|
3998
|
-
internalAPIs_1.ensureInitialized();
|
|
4270
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
4271
|
+
(0, handlers_1.registerHandler)('meetingRoom.meetingRoomStatesUpdate', function (states) {
|
|
4272
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3999
4273
|
handler(states);
|
|
4000
4274
|
});
|
|
4001
4275
|
// handler && Communication.sendMessageToParent('registerHandler', ['meetingRoom.meetingRoomStatesUpdate']);
|
|
@@ -4011,6 +4285,7 @@ var meetingRoom;
|
|
|
4011
4285
|
"use strict";
|
|
4012
4286
|
|
|
4013
4287
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4288
|
+
exports.remoteCamera = void 0;
|
|
4014
4289
|
var internalAPIs_1 = __webpack_require__(1);
|
|
4015
4290
|
var constants_1 = __webpack_require__(2);
|
|
4016
4291
|
var communication_1 = __webpack_require__(0);
|
|
@@ -4084,8 +4359,8 @@ var remoteCamera;
|
|
|
4084
4359
|
if (!callback) {
|
|
4085
4360
|
throw new Error('[remoteCamera.getCapableParticipants] Callback cannot be null');
|
|
4086
4361
|
}
|
|
4087
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4088
|
-
communication_1.sendMessageToParent('remoteCamera.getCapableParticipants', callback);
|
|
4362
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4363
|
+
(0, communication_1.sendMessageToParent)('remoteCamera.getCapableParticipants', callback);
|
|
4089
4364
|
}
|
|
4090
4365
|
remoteCamera.getCapableParticipants = getCapableParticipants;
|
|
4091
4366
|
/**
|
|
@@ -4106,8 +4381,8 @@ var remoteCamera;
|
|
|
4106
4381
|
if (!callback) {
|
|
4107
4382
|
throw new Error('[remoteCamera.requestControl] Callback cannot be null');
|
|
4108
4383
|
}
|
|
4109
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4110
|
-
communication_1.sendMessageToParent('remoteCamera.requestControl', [participant], callback);
|
|
4384
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4385
|
+
(0, communication_1.sendMessageToParent)('remoteCamera.requestControl', [participant], callback);
|
|
4111
4386
|
}
|
|
4112
4387
|
remoteCamera.requestControl = requestControl;
|
|
4113
4388
|
/**
|
|
@@ -4125,8 +4400,8 @@ var remoteCamera;
|
|
|
4125
4400
|
if (!callback) {
|
|
4126
4401
|
throw new Error('[remoteCamera.sendControlCommand] Callback cannot be null');
|
|
4127
4402
|
}
|
|
4128
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4129
|
-
communication_1.sendMessageToParent('remoteCamera.sendControlCommand', [ControlCommand], callback);
|
|
4403
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4404
|
+
(0, communication_1.sendMessageToParent)('remoteCamera.sendControlCommand', [ControlCommand], callback);
|
|
4130
4405
|
}
|
|
4131
4406
|
remoteCamera.sendControlCommand = sendControlCommand;
|
|
4132
4407
|
/**
|
|
@@ -4140,8 +4415,8 @@ var remoteCamera;
|
|
|
4140
4415
|
if (!callback) {
|
|
4141
4416
|
throw new Error('[remoteCamera.terminateSession] Callback cannot be null');
|
|
4142
4417
|
}
|
|
4143
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4144
|
-
communication_1.sendMessageToParent('remoteCamera.terminateSession', callback);
|
|
4418
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4419
|
+
(0, communication_1.sendMessageToParent)('remoteCamera.terminateSession', callback);
|
|
4145
4420
|
}
|
|
4146
4421
|
remoteCamera.terminateSession = terminateSession;
|
|
4147
4422
|
/**
|
|
@@ -4153,8 +4428,8 @@ var remoteCamera;
|
|
|
4153
4428
|
if (!handler) {
|
|
4154
4429
|
throw new Error('[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null');
|
|
4155
4430
|
}
|
|
4156
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4157
|
-
handlers_1.registerHandler('remoteCamera.capableParticipantsChange', handler);
|
|
4431
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4432
|
+
(0, handlers_1.registerHandler)('remoteCamera.capableParticipantsChange', handler);
|
|
4158
4433
|
}
|
|
4159
4434
|
remoteCamera.registerOnCapableParticipantsChangeHandler = registerOnCapableParticipantsChangeHandler;
|
|
4160
4435
|
/**
|
|
@@ -4166,8 +4441,8 @@ var remoteCamera;
|
|
|
4166
4441
|
if (!handler) {
|
|
4167
4442
|
throw new Error('[remoteCamera.registerOnErrorHandler] Handler cannot be null');
|
|
4168
4443
|
}
|
|
4169
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4170
|
-
handlers_1.registerHandler('remoteCamera.handlerError', handler);
|
|
4444
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4445
|
+
(0, handlers_1.registerHandler)('remoteCamera.handlerError', handler);
|
|
4171
4446
|
}
|
|
4172
4447
|
remoteCamera.registerOnErrorHandler = registerOnErrorHandler;
|
|
4173
4448
|
/**
|
|
@@ -4179,8 +4454,8 @@ var remoteCamera;
|
|
|
4179
4454
|
if (!handler) {
|
|
4180
4455
|
throw new Error('[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null');
|
|
4181
4456
|
}
|
|
4182
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4183
|
-
handlers_1.registerHandler('remoteCamera.deviceStateChange', handler);
|
|
4457
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4458
|
+
(0, handlers_1.registerHandler)('remoteCamera.deviceStateChange', handler);
|
|
4184
4459
|
}
|
|
4185
4460
|
remoteCamera.registerOnDeviceStateChangeHandler = registerOnDeviceStateChangeHandler;
|
|
4186
4461
|
/**
|
|
@@ -4192,8 +4467,8 @@ var remoteCamera;
|
|
|
4192
4467
|
if (!handler) {
|
|
4193
4468
|
throw new Error('[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null');
|
|
4194
4469
|
}
|
|
4195
|
-
internalAPIs_1.ensureInitialized(constants_1.FrameContexts.sidePanel);
|
|
4196
|
-
handlers_1.registerHandler('remoteCamera.sessionStatusChange', handler);
|
|
4470
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
4471
|
+
(0, handlers_1.registerHandler)('remoteCamera.sessionStatusChange', handler);
|
|
4197
4472
|
}
|
|
4198
4473
|
remoteCamera.registerOnSessionStatusChangeHandler = registerOnSessionStatusChangeHandler;
|
|
4199
4474
|
})(remoteCamera = exports.remoteCamera || (exports.remoteCamera = {}));
|
|
@@ -4206,6 +4481,7 @@ var remoteCamera;
|
|
|
4206
4481
|
"use strict";
|
|
4207
4482
|
|
|
4208
4483
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4484
|
+
exports.files = void 0;
|
|
4209
4485
|
var communication_1 = __webpack_require__(0);
|
|
4210
4486
|
var internalAPIs_1 = __webpack_require__(1);
|
|
4211
4487
|
var public_1 = __webpack_require__(8);
|
|
@@ -4230,19 +4506,47 @@ var files;
|
|
|
4230
4506
|
CloudStorageProvider["Sharefile"] = "SHAREFILE";
|
|
4231
4507
|
CloudStorageProvider["GoogleDrive"] = "GOOGLEDRIVE";
|
|
4232
4508
|
CloudStorageProvider["Egnyte"] = "EGNYTE";
|
|
4509
|
+
CloudStorageProvider["SharePoint"] = "SharePoint";
|
|
4233
4510
|
})(CloudStorageProvider = files.CloudStorageProvider || (files.CloudStorageProvider = {}));
|
|
4234
4511
|
/**
|
|
4235
4512
|
* @private
|
|
4236
4513
|
* Hide from docs
|
|
4237
4514
|
*
|
|
4238
|
-
* Cloud storage provider
|
|
4515
|
+
* Cloud storage provider type enums
|
|
4239
4516
|
*/
|
|
4240
4517
|
var CloudStorageProviderType;
|
|
4241
4518
|
(function (CloudStorageProviderType) {
|
|
4242
4519
|
CloudStorageProviderType[CloudStorageProviderType["Sharepoint"] = 0] = "Sharepoint";
|
|
4243
4520
|
CloudStorageProviderType[CloudStorageProviderType["WopiIntegration"] = 1] = "WopiIntegration";
|
|
4244
4521
|
CloudStorageProviderType[CloudStorageProviderType["Google"] = 2] = "Google";
|
|
4522
|
+
CloudStorageProviderType[CloudStorageProviderType["OneDrive"] = 3] = "OneDrive";
|
|
4523
|
+
CloudStorageProviderType[CloudStorageProviderType["Recent"] = 4] = "Recent";
|
|
4524
|
+
CloudStorageProviderType[CloudStorageProviderType["Aggregate"] = 5] = "Aggregate";
|
|
4525
|
+
CloudStorageProviderType[CloudStorageProviderType["FileSystem"] = 6] = "FileSystem";
|
|
4526
|
+
CloudStorageProviderType[CloudStorageProviderType["Search"] = 7] = "Search";
|
|
4527
|
+
CloudStorageProviderType[CloudStorageProviderType["AllFiles"] = 8] = "AllFiles";
|
|
4528
|
+
CloudStorageProviderType[CloudStorageProviderType["SharedWithMe"] = 9] = "SharedWithMe";
|
|
4245
4529
|
})(CloudStorageProviderType = files.CloudStorageProviderType || (files.CloudStorageProviderType = {}));
|
|
4530
|
+
/**
|
|
4531
|
+
* @private
|
|
4532
|
+
* Hide from docs
|
|
4533
|
+
*
|
|
4534
|
+
* Special Document Library enum
|
|
4535
|
+
*/
|
|
4536
|
+
var SpecialDocumentLibraryType;
|
|
4537
|
+
(function (SpecialDocumentLibraryType) {
|
|
4538
|
+
SpecialDocumentLibraryType["ClassMaterials"] = "classMaterials";
|
|
4539
|
+
})(SpecialDocumentLibraryType = files.SpecialDocumentLibraryType || (files.SpecialDocumentLibraryType = {}));
|
|
4540
|
+
/**
|
|
4541
|
+
* @private
|
|
4542
|
+
* Hide from docs
|
|
4543
|
+
*
|
|
4544
|
+
* Document Library Access enum
|
|
4545
|
+
*/
|
|
4546
|
+
var DocumentLibraryAccessType;
|
|
4547
|
+
(function (DocumentLibraryAccessType) {
|
|
4548
|
+
DocumentLibraryAccessType["Readonly"] = "readonly";
|
|
4549
|
+
})(DocumentLibraryAccessType = files.DocumentLibraryAccessType || (files.DocumentLibraryAccessType = {}));
|
|
4246
4550
|
/**
|
|
4247
4551
|
* @private
|
|
4248
4552
|
* Hide from docs
|
|
@@ -4252,14 +4556,14 @@ var files;
|
|
|
4252
4556
|
* @param callback Callback that will be triggered post folders load
|
|
4253
4557
|
*/
|
|
4254
4558
|
function getCloudStorageFolders(channelId, callback) {
|
|
4255
|
-
internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
|
|
4256
|
-
if (!channelId || channelId.length
|
|
4559
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4560
|
+
if (!channelId || channelId.length === 0) {
|
|
4257
4561
|
throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
|
|
4258
4562
|
}
|
|
4259
4563
|
if (!callback) {
|
|
4260
4564
|
throw new Error('[files.getCloudStorageFolders] Callback cannot be null');
|
|
4261
4565
|
}
|
|
4262
|
-
communication_1.sendMessageToParent('files.getCloudStorageFolders', [channelId], callback);
|
|
4566
|
+
(0, communication_1.sendMessageToParent)('files.getCloudStorageFolders', [channelId], callback);
|
|
4263
4567
|
}
|
|
4264
4568
|
files.getCloudStorageFolders = getCloudStorageFolders;
|
|
4265
4569
|
/**
|
|
@@ -4271,14 +4575,14 @@ var files;
|
|
|
4271
4575
|
* @param callback Callback that will be triggered post add folder flow is compelete
|
|
4272
4576
|
*/
|
|
4273
4577
|
function addCloudStorageFolder(channelId, callback) {
|
|
4274
|
-
internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
|
|
4275
|
-
if (!channelId || channelId.length
|
|
4578
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4579
|
+
if (!channelId || channelId.length === 0) {
|
|
4276
4580
|
throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
|
|
4277
4581
|
}
|
|
4278
4582
|
if (!callback) {
|
|
4279
4583
|
throw new Error('[files.addCloudStorageFolder] Callback cannot be null');
|
|
4280
4584
|
}
|
|
4281
|
-
communication_1.sendMessageToParent('files.addCloudStorageFolder', [channelId], callback);
|
|
4585
|
+
(0, communication_1.sendMessageToParent)('files.addCloudStorageFolder', [channelId], callback);
|
|
4282
4586
|
}
|
|
4283
4587
|
files.addCloudStorageFolder = addCloudStorageFolder;
|
|
4284
4588
|
/**
|
|
@@ -4291,7 +4595,7 @@ var files;
|
|
|
4291
4595
|
* @param callback Callback that will be triggered post delete
|
|
4292
4596
|
*/
|
|
4293
4597
|
function deleteCloudStorageFolder(channelId, folderToDelete, callback) {
|
|
4294
|
-
internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
|
|
4598
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4295
4599
|
if (!channelId) {
|
|
4296
4600
|
throw new Error('[files.deleteCloudStorageFolder] channelId name cannot be null or empty');
|
|
4297
4601
|
}
|
|
@@ -4301,7 +4605,7 @@ var files;
|
|
|
4301
4605
|
if (!callback) {
|
|
4302
4606
|
throw new Error('[files.deleteCloudStorageFolder] Callback cannot be null');
|
|
4303
4607
|
}
|
|
4304
|
-
communication_1.sendMessageToParent('files.deleteCloudStorageFolder', [channelId, folderToDelete], callback);
|
|
4608
|
+
(0, communication_1.sendMessageToParent)('files.deleteCloudStorageFolder', [channelId, folderToDelete], callback);
|
|
4305
4609
|
}
|
|
4306
4610
|
files.deleteCloudStorageFolder = deleteCloudStorageFolder;
|
|
4307
4611
|
/**
|
|
@@ -4314,7 +4618,7 @@ var files;
|
|
|
4314
4618
|
* @param callback Callback that will be triggered post contents are loaded
|
|
4315
4619
|
*/
|
|
4316
4620
|
function getCloudStorageFolderContents(folder, providerCode, callback) {
|
|
4317
|
-
internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
|
|
4621
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4318
4622
|
if (!folder || !providerCode) {
|
|
4319
4623
|
throw new Error('[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty');
|
|
4320
4624
|
}
|
|
@@ -4324,7 +4628,7 @@ var files;
|
|
|
4324
4628
|
if ('isSubdirectory' in folder && !folder.isSubdirectory) {
|
|
4325
4629
|
throw new Error('[files.getCloudStorageFolderContents] provided folder is not a subDirectory');
|
|
4326
4630
|
}
|
|
4327
|
-
communication_1.sendMessageToParent('files.getCloudStorageFolderContents', [folder, providerCode], callback);
|
|
4631
|
+
(0, communication_1.sendMessageToParent)('files.getCloudStorageFolderContents', [folder, providerCode], callback);
|
|
4328
4632
|
}
|
|
4329
4633
|
files.getCloudStorageFolderContents = getCloudStorageFolderContents;
|
|
4330
4634
|
/**
|
|
@@ -4337,16 +4641,58 @@ var files;
|
|
|
4337
4641
|
* @param fileOpenPreference Whether file should be opened in web/inline
|
|
4338
4642
|
*/
|
|
4339
4643
|
function openCloudStorageFile(file, providerCode, fileOpenPreference) {
|
|
4340
|
-
internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
|
|
4644
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4341
4645
|
if (!file || !providerCode) {
|
|
4342
4646
|
throw new Error('[files.openCloudStorageFile] file/providerCode cannot be null or empty');
|
|
4343
4647
|
}
|
|
4344
4648
|
if (file.isSubdirectory) {
|
|
4345
4649
|
throw new Error('[files.openCloudStorageFile] provided file is a subDirectory');
|
|
4346
4650
|
}
|
|
4347
|
-
communication_1.sendMessageToParent('files.openCloudStorageFile', [file, providerCode, fileOpenPreference]);
|
|
4651
|
+
(0, communication_1.sendMessageToParent)('files.openCloudStorageFile', [file, providerCode, fileOpenPreference]);
|
|
4348
4652
|
}
|
|
4349
4653
|
files.openCloudStorageFile = openCloudStorageFile;
|
|
4654
|
+
/**
|
|
4655
|
+
* @private
|
|
4656
|
+
* Allow 1st party apps to call this function to get the external
|
|
4657
|
+
* third party cloud storage accounts that the tenant supports
|
|
4658
|
+
* @param excludeAddedProviders: return a list of support third party
|
|
4659
|
+
* cloud storages that hasn't been added yet.
|
|
4660
|
+
*/
|
|
4661
|
+
function getExternalProviders(excludeAddedProviders, callback) {
|
|
4662
|
+
if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
|
|
4663
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4664
|
+
if (!callback) {
|
|
4665
|
+
throw new Error('[files.getExternalProviders] Callback cannot be null');
|
|
4666
|
+
}
|
|
4667
|
+
(0, communication_1.sendMessageToParent)('files.getExternalProviders', [excludeAddedProviders], callback);
|
|
4668
|
+
}
|
|
4669
|
+
files.getExternalProviders = getExternalProviders;
|
|
4670
|
+
/**
|
|
4671
|
+
* @private
|
|
4672
|
+
* Allow 1st party apps to call this function to move files
|
|
4673
|
+
* among SharePoint and third party cloud storages.
|
|
4674
|
+
*/
|
|
4675
|
+
function copyMoveFiles(selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove, callback) {
|
|
4676
|
+
if (isMove === void 0) { isMove = false; }
|
|
4677
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4678
|
+
if (!selectedFiles || selectedFiles.length === 0) {
|
|
4679
|
+
throw new Error('[files.copyMoveFiles] selectedFiles cannot be null or empty');
|
|
4680
|
+
}
|
|
4681
|
+
if (!providerCode) {
|
|
4682
|
+
throw new Error('[files.copyMoveFiles] providerCode cannot be null or empty');
|
|
4683
|
+
}
|
|
4684
|
+
if (!destinationFolder) {
|
|
4685
|
+
throw new Error('[files.copyMoveFiles] destinationFolder cannot be null or empty');
|
|
4686
|
+
}
|
|
4687
|
+
if (!destinationProviderCode) {
|
|
4688
|
+
throw new Error('[files.copyMoveFiles] destinationProviderCode cannot be null or empty');
|
|
4689
|
+
}
|
|
4690
|
+
if (!callback) {
|
|
4691
|
+
throw new Error('[files.copyMoveFiles] callback cannot be null');
|
|
4692
|
+
}
|
|
4693
|
+
(0, communication_1.sendMessageToParent)('files.copyMoveFiles', [selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove], callback);
|
|
4694
|
+
}
|
|
4695
|
+
files.copyMoveFiles = copyMoveFiles;
|
|
4350
4696
|
})(files = exports.files || (exports.files = {}));
|
|
4351
4697
|
|
|
4352
4698
|
|
|
@@ -4357,6 +4703,7 @@ var files;
|
|
|
4357
4703
|
"use strict";
|
|
4358
4704
|
|
|
4359
4705
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4706
|
+
exports.appEntity = void 0;
|
|
4360
4707
|
var communication_1 = __webpack_require__(0);
|
|
4361
4708
|
var internalAPIs_1 = __webpack_require__(1);
|
|
4362
4709
|
var public_1 = __webpack_require__(8);
|
|
@@ -4374,20 +4721,22 @@ var appEntity;
|
|
|
4374
4721
|
*
|
|
4375
4722
|
* Open the Tab Gallery and retrieve the app entity
|
|
4376
4723
|
* @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
|
|
4724
|
+
* @param categories A list of app categories that will be displayed in the opened tab gallery
|
|
4725
|
+
* @param subEntityId An object that will be made available to the application being configured
|
|
4726
|
+
* through the Teams Context's subEntityId field.
|
|
4378
4727
|
* @param callback Callback that will be triggered once the app entity information is available.
|
|
4379
|
-
* The callback takes two arguments:
|
|
4380
|
-
*
|
|
4728
|
+
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
|
4729
|
+
* no permissions to execute the API) and the app entity configuration, if available
|
|
4381
4730
|
*/
|
|
4382
|
-
function selectAppEntity(threadId, categories, callback) {
|
|
4383
|
-
internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
|
|
4731
|
+
function selectAppEntity(threadId, categories, subEntityId, callback) {
|
|
4732
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4384
4733
|
if (!threadId || threadId.length == 0) {
|
|
4385
4734
|
throw new Error('[appEntity.selectAppEntity] threadId name cannot be null or empty');
|
|
4386
4735
|
}
|
|
4387
4736
|
if (!callback) {
|
|
4388
4737
|
throw new Error('[appEntity.selectAppEntity] Callback cannot be null');
|
|
4389
4738
|
}
|
|
4390
|
-
communication_1.sendMessageToParent('appEntity.selectAppEntity', [threadId, categories], callback);
|
|
4739
|
+
(0, communication_1.sendMessageToParent)('appEntity.selectAppEntity', [threadId, categories, subEntityId], callback);
|
|
4391
4740
|
}
|
|
4392
4741
|
appEntity_1.selectAppEntity = selectAppEntity;
|
|
4393
4742
|
})(appEntity = exports.appEntity || (exports.appEntity = {}));
|
|
@@ -4400,6 +4749,7 @@ var appEntity;
|
|
|
4400
4749
|
"use strict";
|
|
4401
4750
|
|
|
4402
4751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4752
|
+
exports.teams = void 0;
|
|
4403
4753
|
var communication_1 = __webpack_require__(0);
|
|
4404
4754
|
var internalAPIs_1 = __webpack_require__(1);
|
|
4405
4755
|
var public_1 = __webpack_require__(8);
|
|
@@ -4425,14 +4775,14 @@ var teams;
|
|
|
4425
4775
|
* @param groupId a team's objectId
|
|
4426
4776
|
*/
|
|
4427
4777
|
function getTeamChannels(groupId, callback) {
|
|
4428
|
-
internalAPIs_1.ensureInitialized(public_1.FrameContexts.content);
|
|
4778
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4429
4779
|
if (!groupId) {
|
|
4430
4780
|
throw new Error('[teams.getTeamChannels] groupId cannot be null or empty');
|
|
4431
4781
|
}
|
|
4432
4782
|
if (!callback) {
|
|
4433
4783
|
throw new Error('[teams.getTeamChannels] Callback cannot be null');
|
|
4434
4784
|
}
|
|
4435
|
-
communication_1.sendMessageToParent('teams.getTeamChannels', [groupId], callback);
|
|
4785
|
+
(0, communication_1.sendMessageToParent)('teams.getTeamChannels', [groupId], callback);
|
|
4436
4786
|
}
|
|
4437
4787
|
teams.getTeamChannels = getTeamChannels;
|
|
4438
4788
|
/**
|
|
@@ -4443,14 +4793,14 @@ var teams;
|
|
|
4443
4793
|
* provided, the threadId from route params will be used.
|
|
4444
4794
|
*/
|
|
4445
4795
|
function refreshSiteUrl(threadId, callback) {
|
|
4446
|
-
internalAPIs_1.ensureInitialized();
|
|
4796
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
4447
4797
|
if (!threadId) {
|
|
4448
4798
|
throw new Error('[teams.refreshSiteUrl] threadId cannot be null or empty');
|
|
4449
4799
|
}
|
|
4450
4800
|
if (!callback) {
|
|
4451
4801
|
throw new Error('[teams.refreshSiteUrl] Callback cannot be null');
|
|
4452
4802
|
}
|
|
4453
|
-
communication_1.sendMessageToParent('teams.refreshSiteUrl', [threadId], callback);
|
|
4803
|
+
(0, communication_1.sendMessageToParent)('teams.refreshSiteUrl', [threadId], callback);
|
|
4454
4804
|
}
|
|
4455
4805
|
teams.refreshSiteUrl = refreshSiteUrl;
|
|
4456
4806
|
})(teams = exports.teams || (exports.teams = {}));
|