@microsoft/teams-js 2.6.0 → 2.7.0-beta.0
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 +4 -4
- package/dist/MicrosoftTeams.d.ts +33 -4
- package/dist/MicrosoftTeams.js +1064 -921
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -34
package/dist/MicrosoftTeams.js
CHANGED
@@ -7,179 +7,10 @@
|
|
7
7
|
exports["microsoftTeams"] = factory();
|
8
8
|
else
|
9
9
|
root["microsoftTeams"] = factory();
|
10
|
-
})(
|
10
|
+
})(this, function() {
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
12
12
|
/******/ var __webpack_modules__ = ({
|
13
13
|
|
14
|
-
/***/ 378:
|
15
|
-
/***/ ((module) => {
|
16
|
-
|
17
|
-
/**
|
18
|
-
* Helpers.
|
19
|
-
*/
|
20
|
-
|
21
|
-
var s = 1000;
|
22
|
-
var m = s * 60;
|
23
|
-
var h = m * 60;
|
24
|
-
var d = h * 24;
|
25
|
-
var w = d * 7;
|
26
|
-
var y = d * 365.25;
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Parse or format the given `val`.
|
30
|
-
*
|
31
|
-
* Options:
|
32
|
-
*
|
33
|
-
* - `long` verbose formatting [false]
|
34
|
-
*
|
35
|
-
* @param {String|Number} val
|
36
|
-
* @param {Object} [options]
|
37
|
-
* @throws {Error} throw an error if val is not a non-empty string or a number
|
38
|
-
* @return {String|Number}
|
39
|
-
* @api public
|
40
|
-
*/
|
41
|
-
|
42
|
-
module.exports = function(val, options) {
|
43
|
-
options = options || {};
|
44
|
-
var type = typeof val;
|
45
|
-
if (type === 'string' && val.length > 0) {
|
46
|
-
return parse(val);
|
47
|
-
} else if (type === 'number' && isFinite(val)) {
|
48
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
49
|
-
}
|
50
|
-
throw new Error(
|
51
|
-
'val is not a non-empty string or a valid number. val=' +
|
52
|
-
JSON.stringify(val)
|
53
|
-
);
|
54
|
-
};
|
55
|
-
|
56
|
-
/**
|
57
|
-
* Parse the given `str` and return milliseconds.
|
58
|
-
*
|
59
|
-
* @param {String} str
|
60
|
-
* @return {Number}
|
61
|
-
* @api private
|
62
|
-
*/
|
63
|
-
|
64
|
-
function parse(str) {
|
65
|
-
str = String(str);
|
66
|
-
if (str.length > 100) {
|
67
|
-
return;
|
68
|
-
}
|
69
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
70
|
-
str
|
71
|
-
);
|
72
|
-
if (!match) {
|
73
|
-
return;
|
74
|
-
}
|
75
|
-
var n = parseFloat(match[1]);
|
76
|
-
var type = (match[2] || 'ms').toLowerCase();
|
77
|
-
switch (type) {
|
78
|
-
case 'years':
|
79
|
-
case 'year':
|
80
|
-
case 'yrs':
|
81
|
-
case 'yr':
|
82
|
-
case 'y':
|
83
|
-
return n * y;
|
84
|
-
case 'weeks':
|
85
|
-
case 'week':
|
86
|
-
case 'w':
|
87
|
-
return n * w;
|
88
|
-
case 'days':
|
89
|
-
case 'day':
|
90
|
-
case 'd':
|
91
|
-
return n * d;
|
92
|
-
case 'hours':
|
93
|
-
case 'hour':
|
94
|
-
case 'hrs':
|
95
|
-
case 'hr':
|
96
|
-
case 'h':
|
97
|
-
return n * h;
|
98
|
-
case 'minutes':
|
99
|
-
case 'minute':
|
100
|
-
case 'mins':
|
101
|
-
case 'min':
|
102
|
-
case 'm':
|
103
|
-
return n * m;
|
104
|
-
case 'seconds':
|
105
|
-
case 'second':
|
106
|
-
case 'secs':
|
107
|
-
case 'sec':
|
108
|
-
case 's':
|
109
|
-
return n * s;
|
110
|
-
case 'milliseconds':
|
111
|
-
case 'millisecond':
|
112
|
-
case 'msecs':
|
113
|
-
case 'msec':
|
114
|
-
case 'ms':
|
115
|
-
return n;
|
116
|
-
default:
|
117
|
-
return undefined;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
/**
|
122
|
-
* Short format for `ms`.
|
123
|
-
*
|
124
|
-
* @param {Number} ms
|
125
|
-
* @return {String}
|
126
|
-
* @api private
|
127
|
-
*/
|
128
|
-
|
129
|
-
function fmtShort(ms) {
|
130
|
-
var msAbs = Math.abs(ms);
|
131
|
-
if (msAbs >= d) {
|
132
|
-
return Math.round(ms / d) + 'd';
|
133
|
-
}
|
134
|
-
if (msAbs >= h) {
|
135
|
-
return Math.round(ms / h) + 'h';
|
136
|
-
}
|
137
|
-
if (msAbs >= m) {
|
138
|
-
return Math.round(ms / m) + 'm';
|
139
|
-
}
|
140
|
-
if (msAbs >= s) {
|
141
|
-
return Math.round(ms / s) + 's';
|
142
|
-
}
|
143
|
-
return ms + 'ms';
|
144
|
-
}
|
145
|
-
|
146
|
-
/**
|
147
|
-
* Long format for `ms`.
|
148
|
-
*
|
149
|
-
* @param {Number} ms
|
150
|
-
* @return {String}
|
151
|
-
* @api private
|
152
|
-
*/
|
153
|
-
|
154
|
-
function fmtLong(ms) {
|
155
|
-
var msAbs = Math.abs(ms);
|
156
|
-
if (msAbs >= d) {
|
157
|
-
return plural(ms, msAbs, d, 'day');
|
158
|
-
}
|
159
|
-
if (msAbs >= h) {
|
160
|
-
return plural(ms, msAbs, h, 'hour');
|
161
|
-
}
|
162
|
-
if (msAbs >= m) {
|
163
|
-
return plural(ms, msAbs, m, 'minute');
|
164
|
-
}
|
165
|
-
if (msAbs >= s) {
|
166
|
-
return plural(ms, msAbs, s, 'second');
|
167
|
-
}
|
168
|
-
return ms + ' ms';
|
169
|
-
}
|
170
|
-
|
171
|
-
/**
|
172
|
-
* Pluralization helper.
|
173
|
-
*/
|
174
|
-
|
175
|
-
function plural(ms, msAbs, n, name) {
|
176
|
-
var isPlural = msAbs >= n * 1.5;
|
177
|
-
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
178
|
-
}
|
179
|
-
|
180
|
-
|
181
|
-
/***/ }),
|
182
|
-
|
183
14
|
/***/ 22:
|
184
15
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
185
16
|
|
@@ -713,7 +544,7 @@ function setup(env) {
|
|
713
544
|
createDebug.disable = disable;
|
714
545
|
createDebug.enable = enable;
|
715
546
|
createDebug.enabled = enabled;
|
716
|
-
createDebug.humanize = __webpack_require__(
|
547
|
+
createDebug.humanize = __webpack_require__(824);
|
717
548
|
createDebug.destroy = destroy;
|
718
549
|
|
719
550
|
Object.keys(env).forEach(key => {
|
@@ -976,94 +807,263 @@ function setup(env) {
|
|
976
807
|
module.exports = setup;
|
977
808
|
|
978
809
|
|
979
|
-
/***/ })
|
810
|
+
/***/ }),
|
980
811
|
|
981
|
-
|
982
|
-
|
983
|
-
/******/ // The module cache
|
984
|
-
/******/ var __webpack_module_cache__ = {};
|
985
|
-
/******/
|
986
|
-
/******/ // The require function
|
987
|
-
/******/ function __webpack_require__(moduleId) {
|
988
|
-
/******/ // Check if module is in cache
|
989
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
990
|
-
/******/ if (cachedModule !== undefined) {
|
991
|
-
/******/ return cachedModule.exports;
|
992
|
-
/******/ }
|
993
|
-
/******/ // Create a new module (and put it into the cache)
|
994
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
995
|
-
/******/ // no module.id needed
|
996
|
-
/******/ // no module.loaded needed
|
997
|
-
/******/ exports: {}
|
998
|
-
/******/ };
|
999
|
-
/******/
|
1000
|
-
/******/ // Execute the module function
|
1001
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
1002
|
-
/******/
|
1003
|
-
/******/ // Return the exports of the module
|
1004
|
-
/******/ return module.exports;
|
1005
|
-
/******/ }
|
1006
|
-
/******/
|
1007
|
-
/************************************************************************/
|
1008
|
-
/******/ /* webpack/runtime/define property getters */
|
1009
|
-
/******/ (() => {
|
1010
|
-
/******/ // define getter functions for harmony exports
|
1011
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
1012
|
-
/******/ for(var key in definition) {
|
1013
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
1014
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
1015
|
-
/******/ }
|
1016
|
-
/******/ }
|
1017
|
-
/******/ };
|
1018
|
-
/******/ })();
|
1019
|
-
/******/
|
1020
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
1021
|
-
/******/ (() => {
|
1022
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
1023
|
-
/******/ })();
|
1024
|
-
/******/
|
1025
|
-
/******/ /* webpack/runtime/make namespace object */
|
1026
|
-
/******/ (() => {
|
1027
|
-
/******/ // define __esModule on exports
|
1028
|
-
/******/ __webpack_require__.r = (exports) => {
|
1029
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
1030
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
1031
|
-
/******/ }
|
1032
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
1033
|
-
/******/ };
|
1034
|
-
/******/ })();
|
1035
|
-
/******/
|
1036
|
-
/************************************************************************/
|
1037
|
-
var __webpack_exports__ = {};
|
1038
|
-
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
1039
|
-
(() => {
|
1040
|
-
"use strict";
|
1041
|
-
// ESM COMPAT FLAG
|
1042
|
-
__webpack_require__.r(__webpack_exports__);
|
812
|
+
/***/ 824:
|
813
|
+
/***/ ((module) => {
|
1043
814
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
815
|
+
/**
|
816
|
+
* Helpers.
|
817
|
+
*/
|
818
|
+
|
819
|
+
var s = 1000;
|
820
|
+
var m = s * 60;
|
821
|
+
var h = m * 60;
|
822
|
+
var d = h * 24;
|
823
|
+
var w = d * 7;
|
824
|
+
var y = d * 365.25;
|
825
|
+
|
826
|
+
/**
|
827
|
+
* Parse or format the given `val`.
|
828
|
+
*
|
829
|
+
* Options:
|
830
|
+
*
|
831
|
+
* - `long` verbose formatting [false]
|
832
|
+
*
|
833
|
+
* @param {String|Number} val
|
834
|
+
* @param {Object} [options]
|
835
|
+
* @throws {Error} throw an error if val is not a non-empty string or a number
|
836
|
+
* @return {String|Number}
|
837
|
+
* @api public
|
838
|
+
*/
|
839
|
+
|
840
|
+
module.exports = function(val, options) {
|
841
|
+
options = options || {};
|
842
|
+
var type = typeof val;
|
843
|
+
if (type === 'string' && val.length > 0) {
|
844
|
+
return parse(val);
|
845
|
+
} else if (type === 'number' && isFinite(val)) {
|
846
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
847
|
+
}
|
848
|
+
throw new Error(
|
849
|
+
'val is not a non-empty string or a valid number. val=' +
|
850
|
+
JSON.stringify(val)
|
851
|
+
);
|
852
|
+
};
|
853
|
+
|
854
|
+
/**
|
855
|
+
* Parse the given `str` and return milliseconds.
|
856
|
+
*
|
857
|
+
* @param {String} str
|
858
|
+
* @return {Number}
|
859
|
+
* @api private
|
860
|
+
*/
|
861
|
+
|
862
|
+
function parse(str) {
|
863
|
+
str = String(str);
|
864
|
+
if (str.length > 100) {
|
865
|
+
return;
|
866
|
+
}
|
867
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
868
|
+
str
|
869
|
+
);
|
870
|
+
if (!match) {
|
871
|
+
return;
|
872
|
+
}
|
873
|
+
var n = parseFloat(match[1]);
|
874
|
+
var type = (match[2] || 'ms').toLowerCase();
|
875
|
+
switch (type) {
|
876
|
+
case 'years':
|
877
|
+
case 'year':
|
878
|
+
case 'yrs':
|
879
|
+
case 'yr':
|
880
|
+
case 'y':
|
881
|
+
return n * y;
|
882
|
+
case 'weeks':
|
883
|
+
case 'week':
|
884
|
+
case 'w':
|
885
|
+
return n * w;
|
886
|
+
case 'days':
|
887
|
+
case 'day':
|
888
|
+
case 'd':
|
889
|
+
return n * d;
|
890
|
+
case 'hours':
|
891
|
+
case 'hour':
|
892
|
+
case 'hrs':
|
893
|
+
case 'hr':
|
894
|
+
case 'h':
|
895
|
+
return n * h;
|
896
|
+
case 'minutes':
|
897
|
+
case 'minute':
|
898
|
+
case 'mins':
|
899
|
+
case 'min':
|
900
|
+
case 'm':
|
901
|
+
return n * m;
|
902
|
+
case 'seconds':
|
903
|
+
case 'second':
|
904
|
+
case 'secs':
|
905
|
+
case 'sec':
|
906
|
+
case 's':
|
907
|
+
return n * s;
|
908
|
+
case 'milliseconds':
|
909
|
+
case 'millisecond':
|
910
|
+
case 'msecs':
|
911
|
+
case 'msec':
|
912
|
+
case 'ms':
|
913
|
+
return n;
|
914
|
+
default:
|
915
|
+
return undefined;
|
916
|
+
}
|
917
|
+
}
|
918
|
+
|
919
|
+
/**
|
920
|
+
* Short format for `ms`.
|
921
|
+
*
|
922
|
+
* @param {Number} ms
|
923
|
+
* @return {String}
|
924
|
+
* @api private
|
925
|
+
*/
|
926
|
+
|
927
|
+
function fmtShort(ms) {
|
928
|
+
var msAbs = Math.abs(ms);
|
929
|
+
if (msAbs >= d) {
|
930
|
+
return Math.round(ms / d) + 'd';
|
931
|
+
}
|
932
|
+
if (msAbs >= h) {
|
933
|
+
return Math.round(ms / h) + 'h';
|
934
|
+
}
|
935
|
+
if (msAbs >= m) {
|
936
|
+
return Math.round(ms / m) + 'm';
|
937
|
+
}
|
938
|
+
if (msAbs >= s) {
|
939
|
+
return Math.round(ms / s) + 's';
|
940
|
+
}
|
941
|
+
return ms + 'ms';
|
942
|
+
}
|
943
|
+
|
944
|
+
/**
|
945
|
+
* Long format for `ms`.
|
946
|
+
*
|
947
|
+
* @param {Number} ms
|
948
|
+
* @return {String}
|
949
|
+
* @api private
|
950
|
+
*/
|
951
|
+
|
952
|
+
function fmtLong(ms) {
|
953
|
+
var msAbs = Math.abs(ms);
|
954
|
+
if (msAbs >= d) {
|
955
|
+
return plural(ms, msAbs, d, 'day');
|
956
|
+
}
|
957
|
+
if (msAbs >= h) {
|
958
|
+
return plural(ms, msAbs, h, 'hour');
|
959
|
+
}
|
960
|
+
if (msAbs >= m) {
|
961
|
+
return plural(ms, msAbs, m, 'minute');
|
962
|
+
}
|
963
|
+
if (msAbs >= s) {
|
964
|
+
return plural(ms, msAbs, s, 'second');
|
965
|
+
}
|
966
|
+
return ms + ' ms';
|
967
|
+
}
|
968
|
+
|
969
|
+
/**
|
970
|
+
* Pluralization helper.
|
971
|
+
*/
|
972
|
+
|
973
|
+
function plural(ms, msAbs, n, name) {
|
974
|
+
var isPlural = msAbs >= n * 1.5;
|
975
|
+
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
976
|
+
}
|
977
|
+
|
978
|
+
|
979
|
+
/***/ })
|
980
|
+
|
981
|
+
/******/ });
|
982
|
+
/************************************************************************/
|
983
|
+
/******/ // The module cache
|
984
|
+
/******/ var __webpack_module_cache__ = {};
|
985
|
+
/******/
|
986
|
+
/******/ // The require function
|
987
|
+
/******/ function __webpack_require__(moduleId) {
|
988
|
+
/******/ // Check if module is in cache
|
989
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
990
|
+
/******/ if (cachedModule !== undefined) {
|
991
|
+
/******/ return cachedModule.exports;
|
992
|
+
/******/ }
|
993
|
+
/******/ // Create a new module (and put it into the cache)
|
994
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
995
|
+
/******/ // no module.id needed
|
996
|
+
/******/ // no module.loaded needed
|
997
|
+
/******/ exports: {}
|
998
|
+
/******/ };
|
999
|
+
/******/
|
1000
|
+
/******/ // Execute the module function
|
1001
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
1002
|
+
/******/
|
1003
|
+
/******/ // Return the exports of the module
|
1004
|
+
/******/ return module.exports;
|
1005
|
+
/******/ }
|
1006
|
+
/******/
|
1007
|
+
/************************************************************************/
|
1008
|
+
/******/ /* webpack/runtime/define property getters */
|
1009
|
+
/******/ (() => {
|
1010
|
+
/******/ // define getter functions for harmony exports
|
1011
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
1012
|
+
/******/ for(var key in definition) {
|
1013
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
1014
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
1015
|
+
/******/ }
|
1016
|
+
/******/ }
|
1017
|
+
/******/ };
|
1018
|
+
/******/ })();
|
1019
|
+
/******/
|
1020
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
1021
|
+
/******/ (() => {
|
1022
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
1023
|
+
/******/ })();
|
1024
|
+
/******/
|
1025
|
+
/******/ /* webpack/runtime/make namespace object */
|
1026
|
+
/******/ (() => {
|
1027
|
+
/******/ // define __esModule on exports
|
1028
|
+
/******/ __webpack_require__.r = (exports) => {
|
1029
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
1030
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
1031
|
+
/******/ }
|
1032
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
1033
|
+
/******/ };
|
1034
|
+
/******/ })();
|
1035
|
+
/******/
|
1036
|
+
/************************************************************************/
|
1037
|
+
var __webpack_exports__ = {};
|
1038
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
1039
|
+
(() => {
|
1040
|
+
"use strict";
|
1041
|
+
// ESM COMPAT FLAG
|
1042
|
+
__webpack_require__.r(__webpack_exports__);
|
1043
|
+
|
1044
|
+
// EXPORTS
|
1045
|
+
__webpack_require__.d(__webpack_exports__, {
|
1046
|
+
"ActionObjectType": () => (/* reexport */ ActionObjectType),
|
1047
|
+
"ChannelType": () => (/* reexport */ ChannelType),
|
1048
|
+
"ChildAppWindow": () => (/* reexport */ ChildAppWindow),
|
1049
|
+
"ContainerState": () => (/* reexport */ ContainerState),
|
1050
|
+
"DialogDimension": () => (/* reexport */ DialogDimension),
|
1051
|
+
"ErrorCode": () => (/* reexport */ ErrorCode),
|
1052
|
+
"FileOpenPreference": () => (/* reexport */ FileOpenPreference),
|
1053
|
+
"FrameContexts": () => (/* reexport */ FrameContexts),
|
1054
|
+
"HostClientType": () => (/* reexport */ HostClientType),
|
1055
|
+
"HostName": () => (/* reexport */ HostName),
|
1056
|
+
"LiveShareHost": () => (/* reexport */ LiveShareHost),
|
1057
|
+
"NotificationTypes": () => (/* reexport */ NotificationTypes),
|
1058
|
+
"ParentAppWindow": () => (/* reexport */ ParentAppWindow),
|
1059
|
+
"SecondaryM365ContentIdName": () => (/* reexport */ SecondaryM365ContentIdName),
|
1060
|
+
"TaskModuleDimension": () => (/* reexport */ TaskModuleDimension),
|
1061
|
+
"TeamType": () => (/* reexport */ TeamType),
|
1062
|
+
"UserMeetingRole": () => (/* reexport */ UserMeetingRole),
|
1063
|
+
"UserSettingTypes": () => (/* reexport */ UserSettingTypes),
|
1064
|
+
"UserTeamRole": () => (/* reexport */ UserTeamRole),
|
1065
|
+
"ViewerActionTypes": () => (/* reexport */ ViewerActionTypes),
|
1066
|
+
"app": () => (/* reexport */ app_app),
|
1067
1067
|
"appEntity": () => (/* reexport */ appEntity),
|
1068
1068
|
"appInitialization": () => (/* reexport */ appInitialization),
|
1069
1069
|
"appInstallDialog": () => (/* reexport */ appInstallDialog),
|
@@ -1132,227 +1132,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1132
1132
|
"webStorage": () => (/* reexport */ webStorage)
|
1133
1133
|
});
|
1134
1134
|
|
1135
|
-
;// CONCATENATED MODULE: ./src/public/version.ts
|
1136
|
-
var version = "2.6.0";
|
1137
|
-
|
1138
|
-
;// CONCATENATED MODULE: ./src/internal/globalVars.ts
|
1139
|
-
var GlobalVars = /** @class */ (function () {
|
1140
|
-
function GlobalVars() {
|
1141
|
-
}
|
1142
|
-
GlobalVars.initializeCalled = false;
|
1143
|
-
GlobalVars.initializeCompleted = false;
|
1144
|
-
GlobalVars.additionalValidOrigins = [];
|
1145
|
-
GlobalVars.isFramelessWindow = false;
|
1146
|
-
GlobalVars.printCapabilityEnabled = false;
|
1147
|
-
return GlobalVars;
|
1148
|
-
}());
|
1149
|
-
|
1150
|
-
|
1151
|
-
;// CONCATENATED MODULE: ./src/public/interfaces.ts
|
1152
|
-
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
1153
|
-
/**
|
1154
|
-
* Allowed user file open preferences
|
1155
|
-
*/
|
1156
|
-
var FileOpenPreference;
|
1157
|
-
(function (FileOpenPreference) {
|
1158
|
-
FileOpenPreference["Inline"] = "inline";
|
1159
|
-
FileOpenPreference["Desktop"] = "desktop";
|
1160
|
-
FileOpenPreference["Web"] = "web";
|
1161
|
-
})(FileOpenPreference || (FileOpenPreference = {}));
|
1162
|
-
/**
|
1163
|
-
* Possible Action Types
|
1164
|
-
*
|
1165
|
-
* @beta
|
1166
|
-
*/
|
1167
|
-
var ActionObjectType;
|
1168
|
-
(function (ActionObjectType) {
|
1169
|
-
ActionObjectType["M365Content"] = "m365content";
|
1170
|
-
})(ActionObjectType || (ActionObjectType = {}));
|
1171
|
-
/**
|
1172
|
-
* These correspond with field names in the MSGraph
|
1173
|
-
*
|
1174
|
-
* @beta
|
1175
|
-
*/
|
1176
|
-
var SecondaryM365ContentIdName;
|
1177
|
-
(function (SecondaryM365ContentIdName) {
|
1178
|
-
SecondaryM365ContentIdName["DriveId"] = "driveId";
|
1179
|
-
SecondaryM365ContentIdName["GroupId"] = "groupId";
|
1180
|
-
SecondaryM365ContentIdName["SiteId"] = "siteId";
|
1181
|
-
SecondaryM365ContentIdName["UserId"] = "userId";
|
1182
|
-
})(SecondaryM365ContentIdName || (SecondaryM365ContentIdName = {}));
|
1183
|
-
var ErrorCode;
|
1184
|
-
(function (ErrorCode) {
|
1185
|
-
/**
|
1186
|
-
* API not supported in the current platform.
|
1187
|
-
*/
|
1188
|
-
ErrorCode[ErrorCode["NOT_SUPPORTED_ON_PLATFORM"] = 100] = "NOT_SUPPORTED_ON_PLATFORM";
|
1189
|
-
/**
|
1190
|
-
* Internal error encountered while performing the required operation.
|
1191
|
-
*/
|
1192
|
-
ErrorCode[ErrorCode["INTERNAL_ERROR"] = 500] = "INTERNAL_ERROR";
|
1193
|
-
/**
|
1194
|
-
* API is not supported in the current context
|
1195
|
-
*/
|
1196
|
-
ErrorCode[ErrorCode["NOT_SUPPORTED_IN_CURRENT_CONTEXT"] = 501] = "NOT_SUPPORTED_IN_CURRENT_CONTEXT";
|
1197
|
-
/**
|
1198
|
-
Permissions denied by user
|
1199
|
-
*/
|
1200
|
-
ErrorCode[ErrorCode["PERMISSION_DENIED"] = 1000] = "PERMISSION_DENIED";
|
1201
|
-
/**
|
1202
|
-
* Network issue
|
1203
|
-
*/
|
1204
|
-
ErrorCode[ErrorCode["NETWORK_ERROR"] = 2000] = "NETWORK_ERROR";
|
1205
|
-
/**
|
1206
|
-
* Underlying hardware doesn't support the capability
|
1207
|
-
*/
|
1208
|
-
ErrorCode[ErrorCode["NO_HW_SUPPORT"] = 3000] = "NO_HW_SUPPORT";
|
1209
|
-
/**
|
1210
|
-
* One or more arguments are invalid
|
1211
|
-
*/
|
1212
|
-
ErrorCode[ErrorCode["INVALID_ARGUMENTS"] = 4000] = "INVALID_ARGUMENTS";
|
1213
|
-
/**
|
1214
|
-
* User is not authorized for this operation
|
1215
|
-
*/
|
1216
|
-
ErrorCode[ErrorCode["UNAUTHORIZED_USER_OPERATION"] = 5000] = "UNAUTHORIZED_USER_OPERATION";
|
1217
|
-
/**
|
1218
|
-
* Could not complete the operation due to insufficient resources
|
1219
|
-
*/
|
1220
|
-
ErrorCode[ErrorCode["INSUFFICIENT_RESOURCES"] = 6000] = "INSUFFICIENT_RESOURCES";
|
1221
|
-
/**
|
1222
|
-
* Platform throttled the request because of API was invoked too frequently
|
1223
|
-
*/
|
1224
|
-
ErrorCode[ErrorCode["THROTTLE"] = 7000] = "THROTTLE";
|
1225
|
-
/**
|
1226
|
-
* User aborted the operation
|
1227
|
-
*/
|
1228
|
-
ErrorCode[ErrorCode["USER_ABORT"] = 8000] = "USER_ABORT";
|
1229
|
-
/**
|
1230
|
-
* Could not complete the operation in the given time interval
|
1231
|
-
*/
|
1232
|
-
ErrorCode[ErrorCode["OPERATION_TIMED_OUT"] = 8001] = "OPERATION_TIMED_OUT";
|
1233
|
-
/**
|
1234
|
-
* Platform code is old and doesn't implement this API
|
1235
|
-
*/
|
1236
|
-
ErrorCode[ErrorCode["OLD_PLATFORM"] = 9000] = "OLD_PLATFORM";
|
1237
|
-
/**
|
1238
|
-
* The file specified was not found on the given location
|
1239
|
-
*/
|
1240
|
-
ErrorCode[ErrorCode["FILE_NOT_FOUND"] = 404] = "FILE_NOT_FOUND";
|
1241
|
-
/**
|
1242
|
-
* The return value is too big and has exceeded our size boundries
|
1243
|
-
*/
|
1244
|
-
ErrorCode[ErrorCode["SIZE_EXCEEDED"] = 10000] = "SIZE_EXCEEDED";
|
1245
|
-
})(ErrorCode || (ErrorCode = {}));
|
1246
|
-
/** @hidden */
|
1247
|
-
var DevicePermission;
|
1248
|
-
(function (DevicePermission) {
|
1249
|
-
DevicePermission["GeoLocation"] = "geolocation";
|
1250
|
-
DevicePermission["Media"] = "media";
|
1251
|
-
})(DevicePermission || (DevicePermission = {}));
|
1252
|
-
|
1253
|
-
;// CONCATENATED MODULE: ./src/public/constants.ts
|
1254
|
-
var HostClientType;
|
1255
|
-
(function (HostClientType) {
|
1256
|
-
HostClientType["desktop"] = "desktop";
|
1257
|
-
HostClientType["web"] = "web";
|
1258
|
-
HostClientType["android"] = "android";
|
1259
|
-
HostClientType["ios"] = "ios";
|
1260
|
-
HostClientType["ipados"] = "ipados";
|
1261
|
-
/**
|
1262
|
-
* @deprecated
|
1263
|
-
* As of 2.0.0, please use {@link teamsRoomsWindows} instead.
|
1264
|
-
*/
|
1265
|
-
HostClientType["rigel"] = "rigel";
|
1266
|
-
HostClientType["surfaceHub"] = "surfaceHub";
|
1267
|
-
HostClientType["teamsRoomsWindows"] = "teamsRoomsWindows";
|
1268
|
-
HostClientType["teamsRoomsAndroid"] = "teamsRoomsAndroid";
|
1269
|
-
HostClientType["teamsPhones"] = "teamsPhones";
|
1270
|
-
HostClientType["teamsDisplays"] = "teamsDisplays";
|
1271
|
-
})(HostClientType || (HostClientType = {}));
|
1272
|
-
var HostName;
|
1273
|
-
(function (HostName) {
|
1274
|
-
/**
|
1275
|
-
* Office.com and Office Windows App
|
1276
|
-
*/
|
1277
|
-
HostName["office"] = "Office";
|
1278
|
-
/**
|
1279
|
-
* For "desktop" specifically, this refers to the new, pre-release version of Outlook for Windows.
|
1280
|
-
* Also used on other platforms that map to a single Outlook client.
|
1281
|
-
*/
|
1282
|
-
HostName["outlook"] = "Outlook";
|
1283
|
-
/**
|
1284
|
-
* Outlook for Windows: the classic, native, desktop client
|
1285
|
-
*/
|
1286
|
-
HostName["outlookWin32"] = "OutlookWin32";
|
1287
|
-
/**
|
1288
|
-
* Microsoft-internal test Host
|
1289
|
-
*/
|
1290
|
-
HostName["orange"] = "Orange";
|
1291
|
-
/**
|
1292
|
-
* Teams
|
1293
|
-
*/
|
1294
|
-
HostName["teams"] = "Teams";
|
1295
|
-
})(HostName || (HostName = {}));
|
1296
|
-
// Ensure these declarations stay in sync with the framework.
|
1297
|
-
var FrameContexts;
|
1298
|
-
(function (FrameContexts) {
|
1299
|
-
FrameContexts["settings"] = "settings";
|
1300
|
-
FrameContexts["content"] = "content";
|
1301
|
-
FrameContexts["authentication"] = "authentication";
|
1302
|
-
FrameContexts["remove"] = "remove";
|
1303
|
-
FrameContexts["task"] = "task";
|
1304
|
-
FrameContexts["sidePanel"] = "sidePanel";
|
1305
|
-
FrameContexts["stage"] = "stage";
|
1306
|
-
FrameContexts["meetingStage"] = "meetingStage";
|
1307
|
-
})(FrameContexts || (FrameContexts = {}));
|
1308
|
-
/**
|
1309
|
-
* Indicates the team type, currently used to distinguish between different team
|
1310
|
-
* types in Office 365 for Education (team types 1, 2, 3, and 4).
|
1311
|
-
*/
|
1312
|
-
var TeamType;
|
1313
|
-
(function (TeamType) {
|
1314
|
-
TeamType[TeamType["Standard"] = 0] = "Standard";
|
1315
|
-
TeamType[TeamType["Edu"] = 1] = "Edu";
|
1316
|
-
TeamType[TeamType["Class"] = 2] = "Class";
|
1317
|
-
TeamType[TeamType["Plc"] = 3] = "Plc";
|
1318
|
-
TeamType[TeamType["Staff"] = 4] = "Staff";
|
1319
|
-
})(TeamType || (TeamType = {}));
|
1320
|
-
/**
|
1321
|
-
* Indicates the various types of roles of a user in a team.
|
1322
|
-
*/
|
1323
|
-
var UserTeamRole;
|
1324
|
-
(function (UserTeamRole) {
|
1325
|
-
UserTeamRole[UserTeamRole["Admin"] = 0] = "Admin";
|
1326
|
-
UserTeamRole[UserTeamRole["User"] = 1] = "User";
|
1327
|
-
UserTeamRole[UserTeamRole["Guest"] = 2] = "Guest";
|
1328
|
-
})(UserTeamRole || (UserTeamRole = {}));
|
1329
|
-
/**
|
1330
|
-
* Dialog module dimension enum
|
1331
|
-
*/
|
1332
|
-
var DialogDimension;
|
1333
|
-
(function (DialogDimension) {
|
1334
|
-
DialogDimension["Large"] = "large";
|
1335
|
-
DialogDimension["Medium"] = "medium";
|
1336
|
-
DialogDimension["Small"] = "small";
|
1337
|
-
})(DialogDimension || (DialogDimension = {}));
|
1338
|
-
|
1339
|
-
/**
|
1340
|
-
* @deprecated
|
1341
|
-
* As of 2.0.0, please use {@link DialogDimension} instead.
|
1342
|
-
*/
|
1343
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
1344
|
-
var TaskModuleDimension = DialogDimension;
|
1345
|
-
/**
|
1346
|
-
* The type of the channel with which the content is associated.
|
1347
|
-
*/
|
1348
|
-
var ChannelType;
|
1349
|
-
(function (ChannelType) {
|
1350
|
-
ChannelType["Regular"] = "Regular";
|
1351
|
-
ChannelType["Private"] = "Private";
|
1352
|
-
ChannelType["Shared"] = "Shared";
|
1353
|
-
})(ChannelType || (ChannelType = {}));
|
1354
|
-
var errorNotSupportedOnPlatform = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
1355
|
-
|
1356
1135
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1357
1136
|
/**
|
1358
1137
|
* @hidden
|
@@ -1518,6 +1297,23 @@ var teamsDeepLinkProtocol = 'https';
|
|
1518
1297
|
var teamsDeepLinkHost = 'teams.microsoft.com';
|
1519
1298
|
/** @hidden */
|
1520
1299
|
var errorLibraryNotInitialized = 'The library has not yet been initialized';
|
1300
|
+
/** @hidden */
|
1301
|
+
var errorRuntimeNotInitialized = 'The runtime has not yet been initialized';
|
1302
|
+
/** @hidden */
|
1303
|
+
var errorRuntimeNotSupported = 'The runtime version is not supported';
|
1304
|
+
|
1305
|
+
;// CONCATENATED MODULE: ./src/internal/globalVars.ts
|
1306
|
+
var GlobalVars = /** @class */ (function () {
|
1307
|
+
function GlobalVars() {
|
1308
|
+
}
|
1309
|
+
GlobalVars.initializeCalled = false;
|
1310
|
+
GlobalVars.initializeCompleted = false;
|
1311
|
+
GlobalVars.additionalValidOrigins = [];
|
1312
|
+
GlobalVars.isFramelessWindow = false;
|
1313
|
+
GlobalVars.printCapabilityEnabled = false;
|
1314
|
+
return GlobalVars;
|
1315
|
+
}());
|
1316
|
+
|
1521
1317
|
|
1522
1318
|
// EXTERNAL MODULE: ./node_modules/debug/src/browser.js
|
1523
1319
|
var browser = __webpack_require__(227);
|
@@ -1669,10 +1465,10 @@ function generateGUID() {
|
|
1669
1465
|
* @internal
|
1670
1466
|
* Limited to Microsoft-internal use
|
1671
1467
|
*/
|
1672
|
-
function
|
1468
|
+
function utils_deepFreeze(obj) {
|
1673
1469
|
Object.keys(obj).forEach(function (prop) {
|
1674
1470
|
if (typeof obj[prop] === 'object') {
|
1675
|
-
|
1471
|
+
utils_deepFreeze(obj[prop]);
|
1676
1472
|
}
|
1677
1473
|
});
|
1678
1474
|
return Object.freeze(obj);
|
@@ -1847,19 +1643,480 @@ function runWithTimeout(action, timeoutInMs, timeoutError) {
|
|
1847
1643
|
* @internal
|
1848
1644
|
* Limited to Microsoft-internal use
|
1849
1645
|
*/
|
1850
|
-
function createTeamsAppLink(params) {
|
1851
|
-
var url = new URL('https://teams.microsoft.com/l/entity/' +
|
1852
|
-
encodeURIComponent(params.appId) +
|
1853
|
-
'/' +
|
1854
|
-
encodeURIComponent(params.pageId));
|
1855
|
-
if (params.webUrl) {
|
1856
|
-
url.searchParams.append('webUrl', params.webUrl);
|
1857
|
-
}
|
1858
|
-
if (params.channelId || params.subPageId) {
|
1859
|
-
url.searchParams.append('context', JSON.stringify({ channelId: params.channelId, subEntityId: params.subPageId }));
|
1860
|
-
}
|
1861
|
-
return url.toString();
|
1862
|
-
}
|
1646
|
+
function createTeamsAppLink(params) {
|
1647
|
+
var url = new URL('https://teams.microsoft.com/l/entity/' +
|
1648
|
+
encodeURIComponent(params.appId) +
|
1649
|
+
'/' +
|
1650
|
+
encodeURIComponent(params.pageId));
|
1651
|
+
if (params.webUrl) {
|
1652
|
+
url.searchParams.append('webUrl', params.webUrl);
|
1653
|
+
}
|
1654
|
+
if (params.channelId || params.subPageId) {
|
1655
|
+
url.searchParams.append('context', JSON.stringify({ channelId: params.channelId, subEntityId: params.subPageId }));
|
1656
|
+
}
|
1657
|
+
return url.toString();
|
1658
|
+
}
|
1659
|
+
|
1660
|
+
;// CONCATENATED MODULE: ./src/public/interfaces.ts
|
1661
|
+
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
1662
|
+
/**
|
1663
|
+
* Allowed user file open preferences
|
1664
|
+
*/
|
1665
|
+
var FileOpenPreference;
|
1666
|
+
(function (FileOpenPreference) {
|
1667
|
+
FileOpenPreference["Inline"] = "inline";
|
1668
|
+
FileOpenPreference["Desktop"] = "desktop";
|
1669
|
+
FileOpenPreference["Web"] = "web";
|
1670
|
+
})(FileOpenPreference || (FileOpenPreference = {}));
|
1671
|
+
/**
|
1672
|
+
* Possible Action Types
|
1673
|
+
*
|
1674
|
+
* @beta
|
1675
|
+
*/
|
1676
|
+
var ActionObjectType;
|
1677
|
+
(function (ActionObjectType) {
|
1678
|
+
ActionObjectType["M365Content"] = "m365content";
|
1679
|
+
})(ActionObjectType || (ActionObjectType = {}));
|
1680
|
+
/**
|
1681
|
+
* These correspond with field names in the MSGraph
|
1682
|
+
*
|
1683
|
+
* @beta
|
1684
|
+
*/
|
1685
|
+
var SecondaryM365ContentIdName;
|
1686
|
+
(function (SecondaryM365ContentIdName) {
|
1687
|
+
SecondaryM365ContentIdName["DriveId"] = "driveId";
|
1688
|
+
SecondaryM365ContentIdName["GroupId"] = "groupId";
|
1689
|
+
SecondaryM365ContentIdName["SiteId"] = "siteId";
|
1690
|
+
SecondaryM365ContentIdName["UserId"] = "userId";
|
1691
|
+
})(SecondaryM365ContentIdName || (SecondaryM365ContentIdName = {}));
|
1692
|
+
var ErrorCode;
|
1693
|
+
(function (ErrorCode) {
|
1694
|
+
/**
|
1695
|
+
* API not supported in the current platform.
|
1696
|
+
*/
|
1697
|
+
ErrorCode[ErrorCode["NOT_SUPPORTED_ON_PLATFORM"] = 100] = "NOT_SUPPORTED_ON_PLATFORM";
|
1698
|
+
/**
|
1699
|
+
* Internal error encountered while performing the required operation.
|
1700
|
+
*/
|
1701
|
+
ErrorCode[ErrorCode["INTERNAL_ERROR"] = 500] = "INTERNAL_ERROR";
|
1702
|
+
/**
|
1703
|
+
* API is not supported in the current context
|
1704
|
+
*/
|
1705
|
+
ErrorCode[ErrorCode["NOT_SUPPORTED_IN_CURRENT_CONTEXT"] = 501] = "NOT_SUPPORTED_IN_CURRENT_CONTEXT";
|
1706
|
+
/**
|
1707
|
+
Permissions denied by user
|
1708
|
+
*/
|
1709
|
+
ErrorCode[ErrorCode["PERMISSION_DENIED"] = 1000] = "PERMISSION_DENIED";
|
1710
|
+
/**
|
1711
|
+
* Network issue
|
1712
|
+
*/
|
1713
|
+
ErrorCode[ErrorCode["NETWORK_ERROR"] = 2000] = "NETWORK_ERROR";
|
1714
|
+
/**
|
1715
|
+
* Underlying hardware doesn't support the capability
|
1716
|
+
*/
|
1717
|
+
ErrorCode[ErrorCode["NO_HW_SUPPORT"] = 3000] = "NO_HW_SUPPORT";
|
1718
|
+
/**
|
1719
|
+
* One or more arguments are invalid
|
1720
|
+
*/
|
1721
|
+
ErrorCode[ErrorCode["INVALID_ARGUMENTS"] = 4000] = "INVALID_ARGUMENTS";
|
1722
|
+
/**
|
1723
|
+
* User is not authorized for this operation
|
1724
|
+
*/
|
1725
|
+
ErrorCode[ErrorCode["UNAUTHORIZED_USER_OPERATION"] = 5000] = "UNAUTHORIZED_USER_OPERATION";
|
1726
|
+
/**
|
1727
|
+
* Could not complete the operation due to insufficient resources
|
1728
|
+
*/
|
1729
|
+
ErrorCode[ErrorCode["INSUFFICIENT_RESOURCES"] = 6000] = "INSUFFICIENT_RESOURCES";
|
1730
|
+
/**
|
1731
|
+
* Platform throttled the request because of API was invoked too frequently
|
1732
|
+
*/
|
1733
|
+
ErrorCode[ErrorCode["THROTTLE"] = 7000] = "THROTTLE";
|
1734
|
+
/**
|
1735
|
+
* User aborted the operation
|
1736
|
+
*/
|
1737
|
+
ErrorCode[ErrorCode["USER_ABORT"] = 8000] = "USER_ABORT";
|
1738
|
+
/**
|
1739
|
+
* Could not complete the operation in the given time interval
|
1740
|
+
*/
|
1741
|
+
ErrorCode[ErrorCode["OPERATION_TIMED_OUT"] = 8001] = "OPERATION_TIMED_OUT";
|
1742
|
+
/**
|
1743
|
+
* Platform code is old and doesn't implement this API
|
1744
|
+
*/
|
1745
|
+
ErrorCode[ErrorCode["OLD_PLATFORM"] = 9000] = "OLD_PLATFORM";
|
1746
|
+
/**
|
1747
|
+
* The file specified was not found on the given location
|
1748
|
+
*/
|
1749
|
+
ErrorCode[ErrorCode["FILE_NOT_FOUND"] = 404] = "FILE_NOT_FOUND";
|
1750
|
+
/**
|
1751
|
+
* The return value is too big and has exceeded our size boundries
|
1752
|
+
*/
|
1753
|
+
ErrorCode[ErrorCode["SIZE_EXCEEDED"] = 10000] = "SIZE_EXCEEDED";
|
1754
|
+
})(ErrorCode || (ErrorCode = {}));
|
1755
|
+
/** @hidden */
|
1756
|
+
var DevicePermission;
|
1757
|
+
(function (DevicePermission) {
|
1758
|
+
DevicePermission["GeoLocation"] = "geolocation";
|
1759
|
+
DevicePermission["Media"] = "media";
|
1760
|
+
})(DevicePermission || (DevicePermission = {}));
|
1761
|
+
|
1762
|
+
;// CONCATENATED MODULE: ./src/public/constants.ts
|
1763
|
+
var HostClientType;
|
1764
|
+
(function (HostClientType) {
|
1765
|
+
HostClientType["desktop"] = "desktop";
|
1766
|
+
HostClientType["web"] = "web";
|
1767
|
+
HostClientType["android"] = "android";
|
1768
|
+
HostClientType["ios"] = "ios";
|
1769
|
+
HostClientType["ipados"] = "ipados";
|
1770
|
+
/**
|
1771
|
+
* @deprecated
|
1772
|
+
* As of 2.0.0, please use {@link teamsRoomsWindows} instead.
|
1773
|
+
*/
|
1774
|
+
HostClientType["rigel"] = "rigel";
|
1775
|
+
HostClientType["surfaceHub"] = "surfaceHub";
|
1776
|
+
HostClientType["teamsRoomsWindows"] = "teamsRoomsWindows";
|
1777
|
+
HostClientType["teamsRoomsAndroid"] = "teamsRoomsAndroid";
|
1778
|
+
HostClientType["teamsPhones"] = "teamsPhones";
|
1779
|
+
HostClientType["teamsDisplays"] = "teamsDisplays";
|
1780
|
+
})(HostClientType || (HostClientType = {}));
|
1781
|
+
var HostName;
|
1782
|
+
(function (HostName) {
|
1783
|
+
/**
|
1784
|
+
* Office.com and Office Windows App
|
1785
|
+
*/
|
1786
|
+
HostName["office"] = "Office";
|
1787
|
+
/**
|
1788
|
+
* For "desktop" specifically, this refers to the new, pre-release version of Outlook for Windows.
|
1789
|
+
* Also used on other platforms that map to a single Outlook client.
|
1790
|
+
*/
|
1791
|
+
HostName["outlook"] = "Outlook";
|
1792
|
+
/**
|
1793
|
+
* Outlook for Windows: the classic, native, desktop client
|
1794
|
+
*/
|
1795
|
+
HostName["outlookWin32"] = "OutlookWin32";
|
1796
|
+
/**
|
1797
|
+
* Microsoft-internal test Host
|
1798
|
+
*/
|
1799
|
+
HostName["orange"] = "Orange";
|
1800
|
+
/**
|
1801
|
+
* Teams
|
1802
|
+
*/
|
1803
|
+
HostName["teams"] = "Teams";
|
1804
|
+
})(HostName || (HostName = {}));
|
1805
|
+
// Ensure these declarations stay in sync with the framework.
|
1806
|
+
var FrameContexts;
|
1807
|
+
(function (FrameContexts) {
|
1808
|
+
FrameContexts["settings"] = "settings";
|
1809
|
+
FrameContexts["content"] = "content";
|
1810
|
+
FrameContexts["authentication"] = "authentication";
|
1811
|
+
FrameContexts["remove"] = "remove";
|
1812
|
+
FrameContexts["task"] = "task";
|
1813
|
+
FrameContexts["sidePanel"] = "sidePanel";
|
1814
|
+
FrameContexts["stage"] = "stage";
|
1815
|
+
FrameContexts["meetingStage"] = "meetingStage";
|
1816
|
+
})(FrameContexts || (FrameContexts = {}));
|
1817
|
+
/**
|
1818
|
+
* Indicates the team type, currently used to distinguish between different team
|
1819
|
+
* types in Office 365 for Education (team types 1, 2, 3, and 4).
|
1820
|
+
*/
|
1821
|
+
var TeamType;
|
1822
|
+
(function (TeamType) {
|
1823
|
+
TeamType[TeamType["Standard"] = 0] = "Standard";
|
1824
|
+
TeamType[TeamType["Edu"] = 1] = "Edu";
|
1825
|
+
TeamType[TeamType["Class"] = 2] = "Class";
|
1826
|
+
TeamType[TeamType["Plc"] = 3] = "Plc";
|
1827
|
+
TeamType[TeamType["Staff"] = 4] = "Staff";
|
1828
|
+
})(TeamType || (TeamType = {}));
|
1829
|
+
/**
|
1830
|
+
* Indicates the various types of roles of a user in a team.
|
1831
|
+
*/
|
1832
|
+
var UserTeamRole;
|
1833
|
+
(function (UserTeamRole) {
|
1834
|
+
UserTeamRole[UserTeamRole["Admin"] = 0] = "Admin";
|
1835
|
+
UserTeamRole[UserTeamRole["User"] = 1] = "User";
|
1836
|
+
UserTeamRole[UserTeamRole["Guest"] = 2] = "Guest";
|
1837
|
+
})(UserTeamRole || (UserTeamRole = {}));
|
1838
|
+
/**
|
1839
|
+
* Dialog module dimension enum
|
1840
|
+
*/
|
1841
|
+
var DialogDimension;
|
1842
|
+
(function (DialogDimension) {
|
1843
|
+
DialogDimension["Large"] = "large";
|
1844
|
+
DialogDimension["Medium"] = "medium";
|
1845
|
+
DialogDimension["Small"] = "small";
|
1846
|
+
})(DialogDimension || (DialogDimension = {}));
|
1847
|
+
|
1848
|
+
/**
|
1849
|
+
* @deprecated
|
1850
|
+
* As of 2.0.0, please use {@link DialogDimension} instead.
|
1851
|
+
*/
|
1852
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
1853
|
+
var TaskModuleDimension = DialogDimension;
|
1854
|
+
/**
|
1855
|
+
* The type of the channel with which the content is associated.
|
1856
|
+
*/
|
1857
|
+
var ChannelType;
|
1858
|
+
(function (ChannelType) {
|
1859
|
+
ChannelType["Regular"] = "Regular";
|
1860
|
+
ChannelType["Private"] = "Private";
|
1861
|
+
ChannelType["Shared"] = "Shared";
|
1862
|
+
})(ChannelType || (ChannelType = {}));
|
1863
|
+
var errorNotSupportedOnPlatform = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
1864
|
+
|
1865
|
+
;// CONCATENATED MODULE: ./src/public/runtime.ts
|
1866
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
1867
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
1868
|
+
__assign = Object.assign || function(t) {
|
1869
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
1870
|
+
s = arguments[i];
|
1871
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
1872
|
+
t[p] = s[p];
|
1873
|
+
}
|
1874
|
+
return t;
|
1875
|
+
};
|
1876
|
+
return __assign.apply(this, arguments);
|
1877
|
+
};
|
1878
|
+
|
1879
|
+
|
1880
|
+
|
1881
|
+
|
1882
|
+
|
1883
|
+
var runtimeLogger = getLogger('runtime');
|
1884
|
+
var latestRuntimeApiVersion = 1;
|
1885
|
+
function isLatestRuntimeVersion(runtime) {
|
1886
|
+
return runtime.apiVersion === latestRuntimeApiVersion;
|
1887
|
+
}
|
1888
|
+
// Constant used to set the runtime configuration
|
1889
|
+
var _uninitializedRuntime = {
|
1890
|
+
apiVersion: -1,
|
1891
|
+
supports: {},
|
1892
|
+
};
|
1893
|
+
/**
|
1894
|
+
* @hidden
|
1895
|
+
* Ensures that the runtime has been initialized
|
1896
|
+
|
1897
|
+
* @returns True if the runtime has been initialized
|
1898
|
+
* @throws Error if the runtime has not been initialized
|
1899
|
+
*
|
1900
|
+
* @internal
|
1901
|
+
* Limited to Microsoft-internal use
|
1902
|
+
*/
|
1903
|
+
function isRuntimeInitialized(runtime) {
|
1904
|
+
if (isLatestRuntimeVersion(runtime)) {
|
1905
|
+
return true;
|
1906
|
+
}
|
1907
|
+
else if (runtime.apiVersion === -1) {
|
1908
|
+
throw new Error(errorRuntimeNotInitialized);
|
1909
|
+
}
|
1910
|
+
else {
|
1911
|
+
throw new Error(errorRuntimeNotSupported);
|
1912
|
+
}
|
1913
|
+
}
|
1914
|
+
var runtime = _uninitializedRuntime;
|
1915
|
+
var teamsRuntimeConfig = {
|
1916
|
+
apiVersion: 1,
|
1917
|
+
isLegacyTeams: true,
|
1918
|
+
supports: {
|
1919
|
+
appInstallDialog: {},
|
1920
|
+
appEntity: {},
|
1921
|
+
call: {},
|
1922
|
+
chat: {},
|
1923
|
+
conversations: {},
|
1924
|
+
dialog: {
|
1925
|
+
bot: {},
|
1926
|
+
update: {},
|
1927
|
+
},
|
1928
|
+
logs: {},
|
1929
|
+
meetingRoom: {},
|
1930
|
+
menus: {},
|
1931
|
+
monetization: {},
|
1932
|
+
notifications: {},
|
1933
|
+
pages: {
|
1934
|
+
appButton: {},
|
1935
|
+
tabs: {},
|
1936
|
+
config: {},
|
1937
|
+
backStack: {},
|
1938
|
+
fullTrust: {},
|
1939
|
+
},
|
1940
|
+
remoteCamera: {},
|
1941
|
+
sharing: {},
|
1942
|
+
stageView: {},
|
1943
|
+
teams: {
|
1944
|
+
fullTrust: {},
|
1945
|
+
},
|
1946
|
+
teamsCore: {},
|
1947
|
+
video: {},
|
1948
|
+
},
|
1949
|
+
};
|
1950
|
+
var v1HostClientTypes = [
|
1951
|
+
HostClientType.desktop,
|
1952
|
+
HostClientType.web,
|
1953
|
+
HostClientType.android,
|
1954
|
+
HostClientType.ios,
|
1955
|
+
HostClientType.rigel,
|
1956
|
+
HostClientType.surfaceHub,
|
1957
|
+
HostClientType.teamsRoomsWindows,
|
1958
|
+
HostClientType.teamsRoomsAndroid,
|
1959
|
+
HostClientType.teamsPhones,
|
1960
|
+
HostClientType.teamsDisplays,
|
1961
|
+
];
|
1962
|
+
/**
|
1963
|
+
* @hidden
|
1964
|
+
* Uses upgradeChain to transform an outdated runtime object to the latest format.
|
1965
|
+
* @param outdatedRuntime - The runtime object to be upgraded
|
1966
|
+
* @returns The upgraded runtime object
|
1967
|
+
* @throws Error if the runtime object could not be upgraded to the latest version
|
1968
|
+
*
|
1969
|
+
* @internal
|
1970
|
+
* Limited to Microsoft-internal use
|
1971
|
+
*/
|
1972
|
+
function fastForwardRuntime(outdatedRuntime) {
|
1973
|
+
var runtime = outdatedRuntime;
|
1974
|
+
if (runtime.apiVersion < latestRuntimeApiVersion) {
|
1975
|
+
upgradeChain.forEach(function (upgrade) {
|
1976
|
+
if (runtime.apiVersion === upgrade.versionToUpgradeFrom) {
|
1977
|
+
runtime = upgrade.upgradeToNextVersion(runtime);
|
1978
|
+
}
|
1979
|
+
});
|
1980
|
+
}
|
1981
|
+
if (isLatestRuntimeVersion(runtime)) {
|
1982
|
+
return runtime;
|
1983
|
+
}
|
1984
|
+
else {
|
1985
|
+
throw new Error('Received a runtime that could not be upgraded to the latest version');
|
1986
|
+
}
|
1987
|
+
}
|
1988
|
+
/**
|
1989
|
+
* @hidden
|
1990
|
+
* List of transformations required to upgrade a runtime object from a previous version to the next higher version.
|
1991
|
+
* This list must be ordered from lowest version to highest version
|
1992
|
+
*
|
1993
|
+
* @internal
|
1994
|
+
* Limited to Microsoft-internal use
|
1995
|
+
*/
|
1996
|
+
var upgradeChain = [
|
1997
|
+
// This upgrade has been included for testing, it may be removed when there is a real upgrade implemented
|
1998
|
+
{
|
1999
|
+
versionToUpgradeFrom: 0,
|
2000
|
+
upgradeToNextVersion: function (previousVersionRuntime) {
|
2001
|
+
return {
|
2002
|
+
apiVersion: 1,
|
2003
|
+
isLegacyTeams: previousVersionRuntime.isLegacyTeams,
|
2004
|
+
supports: __assign(__assign({}, previousVersionRuntime.supports), { calendar: previousVersionRuntime.supports.calendarV0 }),
|
2005
|
+
};
|
2006
|
+
},
|
2007
|
+
},
|
2008
|
+
];
|
2009
|
+
var versionConstants = {
|
2010
|
+
'1.9.0': [
|
2011
|
+
{
|
2012
|
+
capability: { location: {} },
|
2013
|
+
hostClientTypes: v1HostClientTypes,
|
2014
|
+
},
|
2015
|
+
],
|
2016
|
+
'2.0.0': [
|
2017
|
+
{
|
2018
|
+
capability: { people: {} },
|
2019
|
+
hostClientTypes: v1HostClientTypes,
|
2020
|
+
},
|
2021
|
+
],
|
2022
|
+
'2.0.1': [
|
2023
|
+
{
|
2024
|
+
capability: { teams: { fullTrust: { joinedTeams: {} } } },
|
2025
|
+
hostClientTypes: [
|
2026
|
+
HostClientType.android,
|
2027
|
+
HostClientType.desktop,
|
2028
|
+
HostClientType.ios,
|
2029
|
+
HostClientType.teamsRoomsAndroid,
|
2030
|
+
HostClientType.teamsPhones,
|
2031
|
+
HostClientType.teamsDisplays,
|
2032
|
+
HostClientType.web,
|
2033
|
+
],
|
2034
|
+
},
|
2035
|
+
{
|
2036
|
+
capability: { webStorage: {} },
|
2037
|
+
hostClientTypes: [HostClientType.desktop],
|
2038
|
+
},
|
2039
|
+
],
|
2040
|
+
'2.0.5': [
|
2041
|
+
{
|
2042
|
+
capability: { webStorage: {} },
|
2043
|
+
hostClientTypes: [HostClientType.android, HostClientType.desktop, HostClientType.ios],
|
2044
|
+
},
|
2045
|
+
],
|
2046
|
+
};
|
2047
|
+
var generateBackCompatRuntimeConfigLogger = runtimeLogger.extend('generateBackCompatRuntimeConfig');
|
2048
|
+
/**
|
2049
|
+
* @internal
|
2050
|
+
* Limited to Microsoft-internal use
|
2051
|
+
*
|
2052
|
+
* Generates and returns a runtime configuration for host clients which are not on the latest host SDK version
|
2053
|
+
* and do not provide their own runtime config. Their supported capabilities are based on the highest
|
2054
|
+
* client SDK version that they can support.
|
2055
|
+
*
|
2056
|
+
* @param highestSupportedVersion - The highest client SDK version that the host client can support.
|
2057
|
+
* @returns runtime which describes the APIs supported by the legacy host client.
|
2058
|
+
*/
|
2059
|
+
function generateBackCompatRuntimeConfig(highestSupportedVersion) {
|
2060
|
+
generateBackCompatRuntimeConfigLogger('generating back compat runtime config for %s', highestSupportedVersion);
|
2061
|
+
var newSupports = __assign({}, teamsRuntimeConfig.supports);
|
2062
|
+
generateBackCompatRuntimeConfigLogger('Supported capabilities in config before updating based on highestSupportedVersion: %o', newSupports);
|
2063
|
+
Object.keys(versionConstants).forEach(function (versionNumber) {
|
2064
|
+
if (compareSDKVersions(highestSupportedVersion, versionNumber) >= 0) {
|
2065
|
+
versionConstants[versionNumber].forEach(function (capabilityReqs) {
|
2066
|
+
if (capabilityReqs.hostClientTypes.includes(GlobalVars.hostClientType)) {
|
2067
|
+
newSupports = __assign(__assign({}, newSupports), capabilityReqs.capability);
|
2068
|
+
}
|
2069
|
+
});
|
2070
|
+
}
|
2071
|
+
});
|
2072
|
+
var backCompatRuntimeConfig = {
|
2073
|
+
apiVersion: 1,
|
2074
|
+
isLegacyTeams: true,
|
2075
|
+
supports: newSupports,
|
2076
|
+
};
|
2077
|
+
generateBackCompatRuntimeConfigLogger('Runtime config after updating based on highestSupportedVersion: %o', backCompatRuntimeConfig);
|
2078
|
+
return backCompatRuntimeConfig;
|
2079
|
+
}
|
2080
|
+
var applyRuntimeConfigLogger = runtimeLogger.extend('applyRuntimeConfig');
|
2081
|
+
function applyRuntimeConfig(runtimeConfig) {
|
2082
|
+
// Some hosts that have not adopted runtime versioning send a string for apiVersion, so we should handle those as v1 inputs
|
2083
|
+
if (typeof runtimeConfig.apiVersion === 'string') {
|
2084
|
+
applyRuntimeConfigLogger('Trying to apply runtime with string apiVersion, processing as v1: %o', runtimeConfig);
|
2085
|
+
runtimeConfig = __assign(__assign({}, runtimeConfig), { apiVersion: 1 });
|
2086
|
+
}
|
2087
|
+
applyRuntimeConfigLogger('Fast-forwarding runtime %o', runtimeConfig);
|
2088
|
+
var ffRuntimeConfig = fastForwardRuntime(runtimeConfig);
|
2089
|
+
applyRuntimeConfigLogger('Applying runtime %o', ffRuntimeConfig);
|
2090
|
+
runtime = utils_deepFreeze(ffRuntimeConfig);
|
2091
|
+
}
|
2092
|
+
function setUnitializedRuntime() {
|
2093
|
+
runtime = deepFreeze(_uninitializedRuntime);
|
2094
|
+
}
|
2095
|
+
/**
|
2096
|
+
* @hidden
|
2097
|
+
* Constant used to set minimum runtime configuration
|
2098
|
+
* while un-initializing an app in unit test case.
|
2099
|
+
*
|
2100
|
+
* @internal
|
2101
|
+
* Limited to Microsoft-internal use
|
2102
|
+
*/
|
2103
|
+
var _minRuntimeConfigToUninitialize = {
|
2104
|
+
apiVersion: 1,
|
2105
|
+
supports: {
|
2106
|
+
pages: {
|
2107
|
+
appButton: {},
|
2108
|
+
tabs: {},
|
2109
|
+
config: {},
|
2110
|
+
backStack: {},
|
2111
|
+
fullTrust: {},
|
2112
|
+
},
|
2113
|
+
teamsCore: {},
|
2114
|
+
logs: {},
|
2115
|
+
},
|
2116
|
+
};
|
2117
|
+
|
2118
|
+
;// CONCATENATED MODULE: ./src/public/version.ts
|
2119
|
+
var version = "2.7.0-beta.0";
|
1863
2120
|
|
1864
2121
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
1865
2122
|
|
@@ -1868,6 +2125,7 @@ function createTeamsAppLink(params) {
|
|
1868
2125
|
|
1869
2126
|
|
1870
2127
|
|
2128
|
+
|
1871
2129
|
var internalLogger = getLogger('internal');
|
1872
2130
|
var ensureInitializeCalledLogger = internalLogger.extend('ensureInitializeCalled');
|
1873
2131
|
var ensureInitializedLogger = internalLogger.extend('ensureInitialized');
|
@@ -1891,17 +2149,18 @@ function ensureInitializeCalled() {
|
|
1891
2149
|
}
|
1892
2150
|
}
|
1893
2151
|
/**
|
1894
|
-
* Ensures `initialize` was called and response from Host was received and processed.
|
2152
|
+
* Ensures `initialize` was called and response from Host was received and processed and that `runtime` is initialized.
|
1895
2153
|
* If expected FrameContexts are provided, it also validates that the current FrameContext matches one of the expected ones.
|
1896
2154
|
*
|
1897
2155
|
* @internal
|
1898
2156
|
* Limited to Microsoft-internal use
|
1899
2157
|
*/
|
1900
|
-
function ensureInitialized() {
|
2158
|
+
function ensureInitialized(runtime) {
|
1901
2159
|
var expectedFrameContexts = [];
|
1902
|
-
for (var _i =
|
1903
|
-
expectedFrameContexts[_i] = arguments[_i];
|
2160
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
2161
|
+
expectedFrameContexts[_i - 1] = arguments[_i];
|
1904
2162
|
}
|
2163
|
+
// This global var can potentially be removed in the future if we use the initialization status of the runtime object as our source of truth
|
1905
2164
|
if (!GlobalVars.initializeCompleted) {
|
1906
2165
|
ensureInitializedLogger('%s. initializeCalled: %s', errorLibraryNotInitialized, GlobalVars.initializeCalled.toString());
|
1907
2166
|
throw new Error(errorLibraryNotInitialized);
|
@@ -1919,6 +2178,7 @@ function ensureInitialized() {
|
|
1919
2178
|
("Current context: \"" + GlobalVars.frameContext + "\"."));
|
1920
2179
|
}
|
1921
2180
|
}
|
2181
|
+
return isRuntimeInitialized(runtime);
|
1922
2182
|
}
|
1923
2183
|
/**
|
1924
2184
|
* @hidden
|
@@ -1997,6 +2257,7 @@ function processAdditionalValidOrigins(validMessageOrigins) {
|
|
1997
2257
|
|
1998
2258
|
|
1999
2259
|
|
2260
|
+
|
2000
2261
|
/**
|
2001
2262
|
* Namespace to interact with the authentication-specific part of the SDK.
|
2002
2263
|
*
|
@@ -2031,7 +2292,7 @@ var authentication;
|
|
2031
2292
|
if (!authenticateParams) {
|
2032
2293
|
throw new Error('No parameters are provided for authentication');
|
2033
2294
|
}
|
2034
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
2295
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
2035
2296
|
return authenticateHelper(authenticateParams)
|
2036
2297
|
.then(function (value) {
|
2037
2298
|
try {
|
@@ -2278,7 +2539,7 @@ var authentication;
|
|
2278
2539
|
*/
|
2279
2540
|
function notifySuccess(result, callbackUrl) {
|
2280
2541
|
redirectIfWin32Outlook(callbackUrl, 'result', result);
|
2281
|
-
ensureInitialized(FrameContexts.authentication);
|
2542
|
+
ensureInitialized(runtime, FrameContexts.authentication);
|
2282
2543
|
sendMessageToParent('authentication.authenticate.success', [result]);
|
2283
2544
|
// Wait for the message to be sent before closing the window
|
2284
2545
|
waitForMessageQueue(Communication.parentWindow, function () { return setTimeout(function () { return Communication.currentWindow.close(); }, 200); });
|
@@ -2296,7 +2557,7 @@ var authentication;
|
|
2296
2557
|
*/
|
2297
2558
|
function notifyFailure(reason, callbackUrl) {
|
2298
2559
|
redirectIfWin32Outlook(callbackUrl, 'reason', reason);
|
2299
|
-
ensureInitialized(FrameContexts.authentication);
|
2560
|
+
ensureInitialized(runtime, FrameContexts.authentication);
|
2300
2561
|
sendMessageToParent('authentication.authenticate.failure', [reason]);
|
2301
2562
|
// Wait for the message to be sent before closing the window
|
2302
2563
|
waitForMessageQueue(Communication.parentWindow, function () { return setTimeout(function () { return Communication.currentWindow.close(); }, 200); });
|
@@ -2366,185 +2627,30 @@ var authentication;
|
|
2366
2627
|
uri = i === -1 ? uri : uri.substr(0, i);
|
2367
2628
|
return uri + hash;
|
2368
2629
|
}
|
2630
|
+
/**
|
2631
|
+
* @hidden
|
2632
|
+
* Limited set of data residencies information exposed to 1P application developers
|
2633
|
+
*
|
2634
|
+
* @internal
|
2635
|
+
* Limited to Microsoft-internal use
|
2636
|
+
*/
|
2637
|
+
var DataResidency;
|
2638
|
+
(function (DataResidency) {
|
2639
|
+
/**
|
2640
|
+
* Public
|
2641
|
+
*/
|
2642
|
+
DataResidency["Public"] = "public";
|
2643
|
+
/**
|
2644
|
+
* European Union Data Boundary
|
2645
|
+
*/
|
2646
|
+
DataResidency["EUDB"] = "eudb";
|
2647
|
+
/**
|
2648
|
+
* Other, stored to cover fields that will not be exposed
|
2649
|
+
*/
|
2650
|
+
DataResidency["Other"] = "other";
|
2651
|
+
})(DataResidency = authentication.DataResidency || (authentication.DataResidency = {}));
|
2369
2652
|
})(authentication || (authentication = {}));
|
2370
2653
|
|
2371
|
-
;// CONCATENATED MODULE: ./src/public/runtime.ts
|
2372
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
2373
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
2374
|
-
__assign = Object.assign || function(t) {
|
2375
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
2376
|
-
s = arguments[i];
|
2377
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
2378
|
-
t[p] = s[p];
|
2379
|
-
}
|
2380
|
-
return t;
|
2381
|
-
};
|
2382
|
-
return __assign.apply(this, arguments);
|
2383
|
-
};
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
var runtimeLogger = getLogger('runtime');
|
2389
|
-
/**
|
2390
|
-
* @hidden
|
2391
|
-
* Constant used to set the runtime configuration
|
2392
|
-
* to its uninitialized state.
|
2393
|
-
*
|
2394
|
-
* @internal
|
2395
|
-
* Limited to Microsoft-internal use
|
2396
|
-
*/
|
2397
|
-
var _uninitializedRuntime = {
|
2398
|
-
apiVersion: -1,
|
2399
|
-
supports: {},
|
2400
|
-
};
|
2401
|
-
var runtime = _uninitializedRuntime;
|
2402
|
-
var teamsRuntimeConfig = {
|
2403
|
-
apiVersion: 1,
|
2404
|
-
isLegacyTeams: true,
|
2405
|
-
supports: {
|
2406
|
-
appInstallDialog: {},
|
2407
|
-
appEntity: {},
|
2408
|
-
call: {},
|
2409
|
-
chat: {},
|
2410
|
-
conversations: {},
|
2411
|
-
dialog: {
|
2412
|
-
bot: {},
|
2413
|
-
update: {},
|
2414
|
-
},
|
2415
|
-
logs: {},
|
2416
|
-
meetingRoom: {},
|
2417
|
-
menus: {},
|
2418
|
-
monetization: {},
|
2419
|
-
notifications: {},
|
2420
|
-
pages: {
|
2421
|
-
appButton: {},
|
2422
|
-
tabs: {},
|
2423
|
-
config: {},
|
2424
|
-
backStack: {},
|
2425
|
-
fullTrust: {},
|
2426
|
-
},
|
2427
|
-
remoteCamera: {},
|
2428
|
-
sharing: {},
|
2429
|
-
stageView: {},
|
2430
|
-
teams: {
|
2431
|
-
fullTrust: {},
|
2432
|
-
},
|
2433
|
-
teamsCore: {},
|
2434
|
-
video: {},
|
2435
|
-
},
|
2436
|
-
};
|
2437
|
-
var v1HostClientTypes = [
|
2438
|
-
HostClientType.desktop,
|
2439
|
-
HostClientType.web,
|
2440
|
-
HostClientType.android,
|
2441
|
-
HostClientType.ios,
|
2442
|
-
HostClientType.rigel,
|
2443
|
-
HostClientType.surfaceHub,
|
2444
|
-
HostClientType.teamsRoomsWindows,
|
2445
|
-
HostClientType.teamsRoomsAndroid,
|
2446
|
-
HostClientType.teamsPhones,
|
2447
|
-
HostClientType.teamsDisplays,
|
2448
|
-
];
|
2449
|
-
var versionConstants = {
|
2450
|
-
'1.9.0': [
|
2451
|
-
{
|
2452
|
-
capability: { location: {} },
|
2453
|
-
hostClientTypes: v1HostClientTypes,
|
2454
|
-
},
|
2455
|
-
],
|
2456
|
-
'2.0.0': [
|
2457
|
-
{
|
2458
|
-
capability: { people: {} },
|
2459
|
-
hostClientTypes: v1HostClientTypes,
|
2460
|
-
},
|
2461
|
-
],
|
2462
|
-
'2.0.1': [
|
2463
|
-
{
|
2464
|
-
capability: { teams: { fullTrust: { joinedTeams: {} } } },
|
2465
|
-
hostClientTypes: [
|
2466
|
-
HostClientType.android,
|
2467
|
-
HostClientType.desktop,
|
2468
|
-
HostClientType.ios,
|
2469
|
-
HostClientType.teamsRoomsAndroid,
|
2470
|
-
HostClientType.teamsPhones,
|
2471
|
-
HostClientType.teamsDisplays,
|
2472
|
-
HostClientType.web,
|
2473
|
-
],
|
2474
|
-
},
|
2475
|
-
{
|
2476
|
-
capability: { webStorage: {} },
|
2477
|
-
hostClientTypes: [HostClientType.desktop],
|
2478
|
-
},
|
2479
|
-
],
|
2480
|
-
'2.0.5': [
|
2481
|
-
{
|
2482
|
-
capability: { webStorage: {} },
|
2483
|
-
hostClientTypes: [HostClientType.android, HostClientType.desktop, HostClientType.ios],
|
2484
|
-
},
|
2485
|
-
],
|
2486
|
-
};
|
2487
|
-
var generateBackCompatRuntimeConfigLogger = runtimeLogger.extend('generateBackCompatRuntimeConfig');
|
2488
|
-
/**
|
2489
|
-
* @internal
|
2490
|
-
* Limited to Microsoft-internal use
|
2491
|
-
*
|
2492
|
-
* Generates and returns a runtime configuration for host clients which are not on the latest host SDK version
|
2493
|
-
* and do not provide their own runtime config. Their supported capabilities are based on the highest
|
2494
|
-
* client SDK version that they can support.
|
2495
|
-
*
|
2496
|
-
* @param highestSupportedVersion - The highest client SDK version that the host client can support.
|
2497
|
-
* @returns runtime which describes the APIs supported by the legacy host client.
|
2498
|
-
*/
|
2499
|
-
function generateBackCompatRuntimeConfig(highestSupportedVersion) {
|
2500
|
-
generateBackCompatRuntimeConfigLogger('generating back compat runtime config for %s', highestSupportedVersion);
|
2501
|
-
var newSupports = __assign({}, teamsRuntimeConfig.supports);
|
2502
|
-
generateBackCompatRuntimeConfigLogger('Supported capabilities in config before updating based on highestSupportedVersion: %o', newSupports);
|
2503
|
-
Object.keys(versionConstants).forEach(function (versionNumber) {
|
2504
|
-
if (compareSDKVersions(highestSupportedVersion, versionNumber) >= 0) {
|
2505
|
-
versionConstants[versionNumber].forEach(function (capabilityReqs) {
|
2506
|
-
if (capabilityReqs.hostClientTypes.includes(GlobalVars.hostClientType)) {
|
2507
|
-
newSupports = __assign(__assign({}, newSupports), capabilityReqs.capability);
|
2508
|
-
}
|
2509
|
-
});
|
2510
|
-
}
|
2511
|
-
});
|
2512
|
-
var backCompatRuntimeConfig = {
|
2513
|
-
apiVersion: 1,
|
2514
|
-
isLegacyTeams: true,
|
2515
|
-
supports: newSupports,
|
2516
|
-
};
|
2517
|
-
generateBackCompatRuntimeConfigLogger('Runtime config after updating based on highestSupportedVersion: %o', backCompatRuntimeConfig);
|
2518
|
-
return backCompatRuntimeConfig;
|
2519
|
-
}
|
2520
|
-
var applyRuntimeConfigLogger = runtimeLogger.extend('applyRuntimeConfig');
|
2521
|
-
function applyRuntimeConfig(runtimeConfig) {
|
2522
|
-
applyRuntimeConfigLogger('Applying runtime %o', runtimeConfig);
|
2523
|
-
runtime = deepFreeze(runtimeConfig);
|
2524
|
-
}
|
2525
|
-
/**
|
2526
|
-
* @hidden
|
2527
|
-
* Constant used to set minimum runtime configuration
|
2528
|
-
* while un-initializing an app in unit test case.
|
2529
|
-
*
|
2530
|
-
* @internal
|
2531
|
-
* Limited to Microsoft-internal use
|
2532
|
-
*/
|
2533
|
-
var _minRuntimeConfigToUninitialize = {
|
2534
|
-
apiVersion: 1,
|
2535
|
-
supports: {
|
2536
|
-
pages: {
|
2537
|
-
appButton: {},
|
2538
|
-
tabs: {},
|
2539
|
-
config: {},
|
2540
|
-
backStack: {},
|
2541
|
-
fullTrust: {},
|
2542
|
-
},
|
2543
|
-
teamsCore: {},
|
2544
|
-
logs: {},
|
2545
|
-
},
|
2546
|
-
};
|
2547
|
-
|
2548
2654
|
;// CONCATENATED MODULE: ./src/public/dialog.ts
|
2549
2655
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
2550
2656
|
/* eslint-disable @typescript-eslint/ban-types */
|
@@ -2606,7 +2712,7 @@ var dialog;
|
|
2606
2712
|
* @beta
|
2607
2713
|
*/
|
2608
2714
|
function open(urlDialogInfo, submitHandler, messageFromChildHandler) {
|
2609
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2715
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2610
2716
|
if (!isSupported()) {
|
2611
2717
|
throw errorNotSupportedOnPlatform;
|
2612
2718
|
}
|
@@ -2634,7 +2740,7 @@ var dialog;
|
|
2634
2740
|
// FrameContext content should not be here because dialog.submit can be called only from inside of a dialog (FrameContext task)
|
2635
2741
|
// but it's here because Teams mobile incorrectly returns FrameContext.content when calling app.getFrameContext().
|
2636
2742
|
// FrameContexts.content will be removed once the bug is fixed.
|
2637
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
2743
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
2638
2744
|
if (!isSupported()) {
|
2639
2745
|
throw errorNotSupportedOnPlatform;
|
2640
2746
|
}
|
@@ -2655,7 +2761,7 @@ var dialog;
|
|
2655
2761
|
function sendMessageToParentFromDialog(
|
2656
2762
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2657
2763
|
message) {
|
2658
|
-
ensureInitialized(FrameContexts.task);
|
2764
|
+
ensureInitialized(runtime, FrameContexts.task);
|
2659
2765
|
if (!isSupported()) {
|
2660
2766
|
throw errorNotSupportedOnPlatform;
|
2661
2767
|
}
|
@@ -2672,7 +2778,7 @@ var dialog;
|
|
2672
2778
|
function sendMessageToDialog(
|
2673
2779
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2674
2780
|
message) {
|
2675
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2781
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2676
2782
|
if (!isSupported()) {
|
2677
2783
|
throw errorNotSupportedOnPlatform;
|
2678
2784
|
}
|
@@ -2690,7 +2796,7 @@ var dialog;
|
|
2690
2796
|
* @beta
|
2691
2797
|
*/
|
2692
2798
|
function registerOnMessageFromParent(listener) {
|
2693
|
-
ensureInitialized(FrameContexts.task);
|
2799
|
+
ensureInitialized(runtime, FrameContexts.task);
|
2694
2800
|
if (!isSupported()) {
|
2695
2801
|
throw errorNotSupportedOnPlatform;
|
2696
2802
|
}
|
@@ -2715,8 +2821,7 @@ var dialog;
|
|
2715
2821
|
* @beta
|
2716
2822
|
*/
|
2717
2823
|
function isSupported() {
|
2718
|
-
ensureInitialized();
|
2719
|
-
return runtime.supports.dialog ? true : false;
|
2824
|
+
return ensureInitialized(runtime) && runtime.supports.dialog ? true : false;
|
2720
2825
|
}
|
2721
2826
|
dialog.isSupported = isSupported;
|
2722
2827
|
/**
|
@@ -2734,7 +2839,7 @@ var dialog;
|
|
2734
2839
|
* @beta
|
2735
2840
|
*/
|
2736
2841
|
function resize(dimensions) {
|
2737
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
|
2842
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
|
2738
2843
|
if (!isSupported()) {
|
2739
2844
|
throw errorNotSupportedOnPlatform;
|
2740
2845
|
}
|
@@ -2750,8 +2855,11 @@ var dialog;
|
|
2750
2855
|
* @beta
|
2751
2856
|
*/
|
2752
2857
|
function isSupported() {
|
2753
|
-
ensureInitialized()
|
2754
|
-
|
2858
|
+
return ensureInitialized(runtime) && runtime.supports.dialog
|
2859
|
+
? runtime.supports.dialog.update
|
2860
|
+
? true
|
2861
|
+
: false
|
2862
|
+
: false;
|
2755
2863
|
}
|
2756
2864
|
update.isSupported = isSupported;
|
2757
2865
|
})(update = dialog.update || (dialog.update = {}));
|
@@ -2774,7 +2882,7 @@ var dialog;
|
|
2774
2882
|
* @beta
|
2775
2883
|
*/
|
2776
2884
|
function open(botUrlDialogInfo, submitHandler, messageFromChildHandler) {
|
2777
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2885
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
2778
2886
|
if (!isSupported()) {
|
2779
2887
|
throw errorNotSupportedOnPlatform;
|
2780
2888
|
}
|
@@ -2797,8 +2905,11 @@ var dialog;
|
|
2797
2905
|
* @beta
|
2798
2906
|
*/
|
2799
2907
|
function isSupported() {
|
2800
|
-
ensureInitialized()
|
2801
|
-
|
2908
|
+
return ensureInitialized(runtime) && runtime.supports.dialog
|
2909
|
+
? runtime.supports.dialog.bot
|
2910
|
+
? true
|
2911
|
+
: false
|
2912
|
+
: false;
|
2802
2913
|
}
|
2803
2914
|
bot.isSupported = isSupported;
|
2804
2915
|
})(bot = dialog.bot || (dialog.bot = {}));
|
@@ -2922,7 +3033,7 @@ var menus;
|
|
2922
3033
|
* @param handler - The handler to invoke when the user selects view configuration.
|
2923
3034
|
*/
|
2924
3035
|
function setUpViews(viewConfig, handler) {
|
2925
|
-
ensureInitialized();
|
3036
|
+
ensureInitialized(runtime);
|
2926
3037
|
if (!isSupported()) {
|
2927
3038
|
throw errorNotSupportedOnPlatform;
|
2928
3039
|
}
|
@@ -2932,7 +3043,7 @@ var menus;
|
|
2932
3043
|
menus.setUpViews = setUpViews;
|
2933
3044
|
function handleViewConfigItemPress(id) {
|
2934
3045
|
if (!viewConfigItemPressHandler || !viewConfigItemPressHandler(id)) {
|
2935
|
-
ensureInitialized();
|
3046
|
+
ensureInitialized(runtime);
|
2936
3047
|
sendMessageToParent('viewConfigItemPress', [id]);
|
2937
3048
|
}
|
2938
3049
|
}
|
@@ -2944,7 +3055,7 @@ var menus;
|
|
2944
3055
|
* @param handler The handler to invoke when the user selects menu item.
|
2945
3056
|
*/
|
2946
3057
|
function setNavBarMenu(items, handler) {
|
2947
|
-
ensureInitialized();
|
3058
|
+
ensureInitialized(runtime);
|
2948
3059
|
if (!isSupported()) {
|
2949
3060
|
throw errorNotSupportedOnPlatform;
|
2950
3061
|
}
|
@@ -2954,7 +3065,7 @@ var menus;
|
|
2954
3065
|
menus.setNavBarMenu = setNavBarMenu;
|
2955
3066
|
function handleNavBarMenuItemPress(id) {
|
2956
3067
|
if (!navBarMenuItemPressHandler || !navBarMenuItemPressHandler(id)) {
|
2957
|
-
ensureInitialized();
|
3068
|
+
ensureInitialized(runtime);
|
2958
3069
|
sendMessageToParent('handleNavBarMenuItemPress', [id]);
|
2959
3070
|
}
|
2960
3071
|
}
|
@@ -2966,7 +3077,7 @@ var menus;
|
|
2966
3077
|
* @param handler - The handler to invoke when the user selects menu item.
|
2967
3078
|
*/
|
2968
3079
|
function showActionMenu(params, handler) {
|
2969
|
-
ensureInitialized();
|
3080
|
+
ensureInitialized(runtime);
|
2970
3081
|
if (!isSupported()) {
|
2971
3082
|
throw errorNotSupportedOnPlatform;
|
2972
3083
|
}
|
@@ -2976,7 +3087,7 @@ var menus;
|
|
2976
3087
|
menus.showActionMenu = showActionMenu;
|
2977
3088
|
function handleActionMenuItemPress(id) {
|
2978
3089
|
if (!actionMenuItemPressHandler || !actionMenuItemPressHandler(id)) {
|
2979
|
-
ensureInitialized();
|
3090
|
+
ensureInitialized(runtime);
|
2980
3091
|
sendMessageToParent('handleActionMenuItemPress', [id]);
|
2981
3092
|
}
|
2982
3093
|
}
|
@@ -2987,8 +3098,7 @@ var menus;
|
|
2987
3098
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
2988
3099
|
*/
|
2989
3100
|
function isSupported() {
|
2990
|
-
ensureInitialized();
|
2991
|
-
return runtime.supports.menus ? true : false;
|
3101
|
+
return ensureInitialized(runtime) && runtime.supports.menus ? true : false;
|
2992
3102
|
}
|
2993
3103
|
menus.isSupported = isSupported;
|
2994
3104
|
})(menus || (menus = {}));
|
@@ -3009,7 +3119,7 @@ var teamsCore;
|
|
3009
3119
|
*/
|
3010
3120
|
function enablePrintCapability() {
|
3011
3121
|
if (!GlobalVars.printCapabilityEnabled) {
|
3012
|
-
ensureInitialized();
|
3122
|
+
ensureInitialized(runtime);
|
3013
3123
|
if (!isSupported()) {
|
3014
3124
|
throw errorNotSupportedOnPlatform;
|
3015
3125
|
}
|
@@ -3030,7 +3140,14 @@ var teamsCore;
|
|
3030
3140
|
* default print handler
|
3031
3141
|
*/
|
3032
3142
|
function print() {
|
3033
|
-
window
|
3143
|
+
if (typeof window !== 'undefined') {
|
3144
|
+
window.print();
|
3145
|
+
}
|
3146
|
+
else {
|
3147
|
+
// This codepath only exists to enable compilation in a server-side redered environment. In standard usage, the window object should never be undefined so this code path should never run.
|
3148
|
+
// If this error has actually been thrown, something has gone very wrong and it is a bug
|
3149
|
+
throw new Error('window object undefined at print call');
|
3150
|
+
}
|
3034
3151
|
}
|
3035
3152
|
teamsCore.print = print;
|
3036
3153
|
/**
|
@@ -3061,7 +3178,7 @@ var teamsCore;
|
|
3061
3178
|
*/
|
3062
3179
|
function registerOnLoadHandlerHelper(handler, versionSpecificHelper) {
|
3063
3180
|
// allow for registration cleanup even when not finished initializing
|
3064
|
-
handler && ensureInitialized();
|
3181
|
+
handler && ensureInitialized(runtime);
|
3065
3182
|
if (handler && versionSpecificHelper) {
|
3066
3183
|
versionSpecificHelper();
|
3067
3184
|
}
|
@@ -3098,7 +3215,7 @@ var teamsCore;
|
|
3098
3215
|
*/
|
3099
3216
|
function registerBeforeUnloadHandlerHelper(handler, versionSpecificHelper) {
|
3100
3217
|
// allow for registration cleanup even when not finished initializing
|
3101
|
-
handler && ensureInitialized();
|
3218
|
+
handler && ensureInitialized(runtime);
|
3102
3219
|
if (handler && versionSpecificHelper) {
|
3103
3220
|
versionSpecificHelper();
|
3104
3221
|
}
|
@@ -3114,8 +3231,7 @@ var teamsCore;
|
|
3114
3231
|
*
|
3115
3232
|
*/
|
3116
3233
|
function isSupported() {
|
3117
|
-
ensureInitialized();
|
3118
|
-
return runtime.supports.teamsCore ? true : false;
|
3234
|
+
return ensureInitialized(runtime) && runtime.supports.teamsCore ? true : false;
|
3119
3235
|
}
|
3120
3236
|
teamsCore.isSupported = isSupported;
|
3121
3237
|
})(teamsCore || (teamsCore = {}));
|
@@ -3225,11 +3341,20 @@ var app_app;
|
|
3225
3341
|
* Initialize must have completed successfully (as determined by the resolved Promise) before any other library calls are made
|
3226
3342
|
*
|
3227
3343
|
* @param validMessageOrigins - Optionally specify a list of cross frame message origins. They must have
|
3228
|
-
* https: protocol otherwise they will be ignored. Example: https
|
3344
|
+
* https: protocol otherwise they will be ignored. Example: https://www.example.com
|
3229
3345
|
* @returns Promise that will be fulfilled when initialization has completed, or rejected if the initialization fails or times out
|
3230
3346
|
*/
|
3231
3347
|
function initialize(validMessageOrigins) {
|
3232
|
-
|
3348
|
+
if (!inServerSideRenderingEnvironment()) {
|
3349
|
+
return runWithTimeout(function () { return initializeHelper(validMessageOrigins); }, initializationTimeoutInMs, new Error('SDK initialization timed out.'));
|
3350
|
+
}
|
3351
|
+
else {
|
3352
|
+
var initializeLogger = appLogger.extend('initialize');
|
3353
|
+
// This log statement should NEVER actually be written. This code path exists only to enable compilation in server-side rendering environments.
|
3354
|
+
// If you EVER see this statement in ANY log file, something has gone horribly wrong and a bug needs to be filed.
|
3355
|
+
initializeLogger('window object undefined at initialization');
|
3356
|
+
return Promise.resolve();
|
3357
|
+
}
|
3233
3358
|
}
|
3234
3359
|
app.initialize = initialize;
|
3235
3360
|
var initializeHelperLogger = appLogger.extend('initializeHelper');
|
@@ -3258,7 +3383,7 @@ var app_app;
|
|
3258
3383
|
initializeHelperLogger('Parsing %s', runtimeConfig);
|
3259
3384
|
var givenRuntimeConfig = JSON.parse(runtimeConfig);
|
3260
3385
|
initializeHelperLogger('Checking if %o is a valid runtime object', givenRuntimeConfig !== null && givenRuntimeConfig !== void 0 ? givenRuntimeConfig : 'null');
|
3261
|
-
// Check that givenRuntimeConfig is a valid instance of
|
3386
|
+
// Check that givenRuntimeConfig is a valid instance of IBaseRuntime
|
3262
3387
|
if (!givenRuntimeConfig || !givenRuntimeConfig.apiVersion) {
|
3263
3388
|
throw new Error('Received runtime config is invalid');
|
3264
3389
|
}
|
@@ -3436,7 +3561,7 @@ var app_app;
|
|
3436
3561
|
*/
|
3437
3562
|
function openLink(deepLink) {
|
3438
3563
|
return new Promise(function (resolve) {
|
3439
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3564
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3440
3565
|
resolve(sendAndHandleStatusAndReason('executeDeepLink', deepLink));
|
3441
3566
|
});
|
3442
3567
|
}
|
@@ -3542,6 +3667,9 @@ function transformLegacyContextToAppContext(legacyContext) {
|
|
3542
3667
|
};
|
3543
3668
|
return context;
|
3544
3669
|
}
|
3670
|
+
function inServerSideRenderingEnvironment() {
|
3671
|
+
return typeof window === 'undefined';
|
3672
|
+
}
|
3545
3673
|
|
3546
3674
|
;// CONCATENATED MODULE: ./src/public/pages.ts
|
3547
3675
|
|
@@ -3564,7 +3692,7 @@ var pages;
|
|
3564
3692
|
* @param navigateForward - Determines the direction to focus in host.
|
3565
3693
|
*/
|
3566
3694
|
function returnFocus(navigateForward) {
|
3567
|
-
ensureInitialized();
|
3695
|
+
ensureInitialized(runtime);
|
3568
3696
|
if (!isSupported()) {
|
3569
3697
|
throw errorNotSupportedOnPlatform;
|
3570
3698
|
}
|
@@ -3598,7 +3726,7 @@ var pages;
|
|
3598
3726
|
* user clicks 'Go To Website'
|
3599
3727
|
*/
|
3600
3728
|
function setCurrentFrame(frameInfo) {
|
3601
|
-
ensureInitialized(FrameContexts.content);
|
3729
|
+
ensureInitialized(runtime, FrameContexts.content);
|
3602
3730
|
if (!isSupported()) {
|
3603
3731
|
throw errorNotSupportedOnPlatform;
|
3604
3732
|
}
|
@@ -3625,7 +3753,7 @@ var pages;
|
|
3625
3753
|
*/
|
3626
3754
|
function getConfig() {
|
3627
3755
|
return new Promise(function (resolve) {
|
3628
|
-
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.remove, FrameContexts.sidePanel);
|
3756
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.settings, FrameContexts.remove, FrameContexts.sidePanel);
|
3629
3757
|
if (!isSupported()) {
|
3630
3758
|
throw errorNotSupportedOnPlatform;
|
3631
3759
|
}
|
@@ -3644,7 +3772,7 @@ var pages;
|
|
3644
3772
|
*/
|
3645
3773
|
function navigateCrossDomain(url) {
|
3646
3774
|
return new Promise(function (resolve) {
|
3647
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3775
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3648
3776
|
if (!isSupported()) {
|
3649
3777
|
throw errorNotSupportedOnPlatform;
|
3650
3778
|
}
|
@@ -3664,7 +3792,7 @@ var pages;
|
|
3664
3792
|
*/
|
3665
3793
|
function navigateToApp(params) {
|
3666
3794
|
return new Promise(function (resolve) {
|
3667
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3795
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3668
3796
|
if (!isSupported()) {
|
3669
3797
|
throw errorNotSupportedOnPlatform;
|
3670
3798
|
}
|
@@ -3684,7 +3812,7 @@ var pages;
|
|
3684
3812
|
* @param deepLinkParameters - ID and label for the link and fallback URL.
|
3685
3813
|
*/
|
3686
3814
|
function shareDeepLink(deepLinkParameters) {
|
3687
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
3815
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
3688
3816
|
if (!isSupported()) {
|
3689
3817
|
throw errorNotSupportedOnPlatform;
|
3690
3818
|
}
|
@@ -3717,8 +3845,7 @@ var pages;
|
|
3717
3845
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
3718
3846
|
*/
|
3719
3847
|
function isSupported() {
|
3720
|
-
ensureInitialized();
|
3721
|
-
return runtime.supports.pages ? true : false;
|
3848
|
+
return ensureInitialized(runtime) && runtime.supports.pages ? true : false;
|
3722
3849
|
}
|
3723
3850
|
pages.isSupported = isSupported;
|
3724
3851
|
/**
|
@@ -3734,7 +3861,7 @@ var pages;
|
|
3734
3861
|
*/
|
3735
3862
|
function navigateToTab(tabInstance) {
|
3736
3863
|
return new Promise(function (resolve) {
|
3737
|
-
ensureInitialized();
|
3864
|
+
ensureInitialized(runtime);
|
3738
3865
|
if (!isSupported()) {
|
3739
3866
|
throw errorNotSupportedOnPlatform;
|
3740
3867
|
}
|
@@ -3751,7 +3878,7 @@ var pages;
|
|
3751
3878
|
*/
|
3752
3879
|
function getTabInstances(tabInstanceParameters) {
|
3753
3880
|
return new Promise(function (resolve) {
|
3754
|
-
ensureInitialized();
|
3881
|
+
ensureInitialized(runtime);
|
3755
3882
|
if (!isSupported()) {
|
3756
3883
|
throw errorNotSupportedOnPlatform;
|
3757
3884
|
}
|
@@ -3767,7 +3894,7 @@ var pages;
|
|
3767
3894
|
*/
|
3768
3895
|
function getMruTabInstances(tabInstanceParameters) {
|
3769
3896
|
return new Promise(function (resolve) {
|
3770
|
-
ensureInitialized();
|
3897
|
+
ensureInitialized(runtime);
|
3771
3898
|
if (!isSupported()) {
|
3772
3899
|
throw errorNotSupportedOnPlatform;
|
3773
3900
|
}
|
@@ -3783,8 +3910,11 @@ var pages;
|
|
3783
3910
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
3784
3911
|
*/
|
3785
3912
|
function isSupported() {
|
3786
|
-
ensureInitialized()
|
3787
|
-
|
3913
|
+
return ensureInitialized(runtime) && runtime.supports.pages
|
3914
|
+
? runtime.supports.pages.tabs
|
3915
|
+
? true
|
3916
|
+
: false
|
3917
|
+
: false;
|
3788
3918
|
}
|
3789
3919
|
tabs.isSupported = isSupported;
|
3790
3920
|
})(tabs = pages.tabs || (pages.tabs = {}));
|
@@ -3815,7 +3945,7 @@ var pages;
|
|
3815
3945
|
* @param validityState - Indicates whether the save or remove button is enabled for the user.
|
3816
3946
|
*/
|
3817
3947
|
function setValidityState(validityState) {
|
3818
|
-
ensureInitialized(FrameContexts.settings, FrameContexts.remove);
|
3948
|
+
ensureInitialized(runtime, FrameContexts.settings, FrameContexts.remove);
|
3819
3949
|
if (!isSupported()) {
|
3820
3950
|
throw errorNotSupportedOnPlatform;
|
3821
3951
|
}
|
@@ -3830,7 +3960,7 @@ var pages;
|
|
3830
3960
|
*/
|
3831
3961
|
function setConfig(instanceConfig) {
|
3832
3962
|
return new Promise(function (resolve) {
|
3833
|
-
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.sidePanel);
|
3963
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.settings, FrameContexts.sidePanel);
|
3834
3964
|
if (!isSupported()) {
|
3835
3965
|
throw errorNotSupportedOnPlatform;
|
3836
3966
|
}
|
@@ -3865,7 +3995,7 @@ var pages;
|
|
3865
3995
|
*/
|
3866
3996
|
function registerOnSaveHandlerHelper(handler, versionSpecificHelper) {
|
3867
3997
|
// allow for registration cleanup even when not finished initializing
|
3868
|
-
handler && ensureInitialized(FrameContexts.settings);
|
3998
|
+
handler && ensureInitialized(runtime, FrameContexts.settings);
|
3869
3999
|
if (versionSpecificHelper) {
|
3870
4000
|
versionSpecificHelper();
|
3871
4001
|
}
|
@@ -3900,7 +4030,7 @@ var pages;
|
|
3900
4030
|
*/
|
3901
4031
|
function registerOnRemoveHandlerHelper(handler, versionSpecificHelper) {
|
3902
4032
|
// allow for registration cleanup even when not finished initializing
|
3903
|
-
handler && ensureInitialized(FrameContexts.remove, FrameContexts.settings);
|
4033
|
+
handler && ensureInitialized(runtime, FrameContexts.remove, FrameContexts.settings);
|
3904
4034
|
if (versionSpecificHelper) {
|
3905
4035
|
versionSpecificHelper();
|
3906
4036
|
}
|
@@ -4004,8 +4134,11 @@ var pages;
|
|
4004
4134
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4005
4135
|
*/
|
4006
4136
|
function isSupported() {
|
4007
|
-
ensureInitialized()
|
4008
|
-
|
4137
|
+
return ensureInitialized(runtime) && runtime.supports.pages
|
4138
|
+
? runtime.supports.pages.config
|
4139
|
+
? true
|
4140
|
+
: false
|
4141
|
+
: false;
|
4009
4142
|
}
|
4010
4143
|
config.isSupported = isSupported;
|
4011
4144
|
})(config = pages.config || (pages.config = {}));
|
@@ -4025,7 +4158,7 @@ var pages;
|
|
4025
4158
|
*/
|
4026
4159
|
function navigateBack() {
|
4027
4160
|
return new Promise(function (resolve) {
|
4028
|
-
ensureInitialized();
|
4161
|
+
ensureInitialized(runtime);
|
4029
4162
|
if (!isSupported()) {
|
4030
4163
|
throw errorNotSupportedOnPlatform;
|
4031
4164
|
}
|
@@ -4061,7 +4194,7 @@ var pages;
|
|
4061
4194
|
*/
|
4062
4195
|
function registerBackButtonHandlerHelper(handler, versionSpecificHelper) {
|
4063
4196
|
// allow for registration cleanup even when not finished initializing
|
4064
|
-
handler && ensureInitialized();
|
4197
|
+
handler && ensureInitialized(runtime);
|
4065
4198
|
if (versionSpecificHelper) {
|
4066
4199
|
versionSpecificHelper();
|
4067
4200
|
}
|
@@ -4087,8 +4220,11 @@ var pages;
|
|
4087
4220
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4088
4221
|
*/
|
4089
4222
|
function isSupported() {
|
4090
|
-
ensureInitialized()
|
4091
|
-
|
4223
|
+
return ensureInitialized(runtime) && runtime.supports.pages
|
4224
|
+
? runtime.supports.pages.backStack
|
4225
|
+
? true
|
4226
|
+
: false
|
4227
|
+
: false;
|
4092
4228
|
}
|
4093
4229
|
backStack.isSupported = isSupported;
|
4094
4230
|
})(backStack = pages.backStack || (pages.backStack = {}));
|
@@ -4107,7 +4243,7 @@ var pages;
|
|
4107
4243
|
* Place the tab into full-screen mode.
|
4108
4244
|
*/
|
4109
4245
|
function enterFullscreen() {
|
4110
|
-
ensureInitialized(FrameContexts.content);
|
4246
|
+
ensureInitialized(runtime, FrameContexts.content);
|
4111
4247
|
if (!isSupported()) {
|
4112
4248
|
throw errorNotSupportedOnPlatform;
|
4113
4249
|
}
|
@@ -4121,7 +4257,7 @@ var pages;
|
|
4121
4257
|
* Reverts the tab into normal-screen mode.
|
4122
4258
|
*/
|
4123
4259
|
function exitFullscreen() {
|
4124
|
-
ensureInitialized(FrameContexts.content);
|
4260
|
+
ensureInitialized(runtime, FrameContexts.content);
|
4125
4261
|
if (!isSupported()) {
|
4126
4262
|
throw errorNotSupportedOnPlatform;
|
4127
4263
|
}
|
@@ -4137,8 +4273,11 @@ var pages;
|
|
4137
4273
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4138
4274
|
*/
|
4139
4275
|
function isSupported() {
|
4140
|
-
ensureInitialized()
|
4141
|
-
|
4276
|
+
return ensureInitialized(runtime) && runtime.supports.pages
|
4277
|
+
? runtime.supports.pages.fullTrust
|
4278
|
+
? true
|
4279
|
+
: false
|
4280
|
+
: false;
|
4142
4281
|
}
|
4143
4282
|
fullTrust.isSupported = isSupported;
|
4144
4283
|
})(fullTrust = pages.fullTrust || (pages.fullTrust = {}));
|
@@ -4193,8 +4332,11 @@ var pages;
|
|
4193
4332
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4194
4333
|
*/
|
4195
4334
|
function isSupported() {
|
4196
|
-
ensureInitialized()
|
4197
|
-
|
4335
|
+
return ensureInitialized(runtime) && runtime.supports.pages
|
4336
|
+
? runtime.supports.pages.appButton
|
4337
|
+
? true
|
4338
|
+
: false
|
4339
|
+
: false;
|
4198
4340
|
}
|
4199
4341
|
appButton.isSupported = isSupported;
|
4200
4342
|
})(appButton = pages.appButton || (pages.appButton = {}));
|
@@ -4215,7 +4357,7 @@ var pages;
|
|
4215
4357
|
*/
|
4216
4358
|
function navigateTo(params) {
|
4217
4359
|
return new Promise(function (resolve) {
|
4218
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
4360
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
4219
4361
|
if (!isSupported()) {
|
4220
4362
|
throw errorNotSupportedOnPlatform;
|
4221
4363
|
}
|
@@ -4230,7 +4372,7 @@ var pages;
|
|
4230
4372
|
*/
|
4231
4373
|
function navigateToDefaultPage() {
|
4232
4374
|
return new Promise(function (resolve) {
|
4233
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
4375
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
4234
4376
|
if (!isSupported()) {
|
4235
4377
|
throw errorNotSupportedOnPlatform;
|
4236
4378
|
}
|
@@ -4242,12 +4384,16 @@ var pages;
|
|
4242
4384
|
* Checks if pages.currentApp capability is supported by the host
|
4243
4385
|
* @returns boolean to represent whether the pages.currentApp capability is supported
|
4244
4386
|
*
|
4245
|
-
* @throws Error if {@linkcode app.initialize} has not successfully
|
4387
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4246
4388
|
*
|
4247
4389
|
* @beta
|
4248
4390
|
*/
|
4249
4391
|
function isSupported() {
|
4250
|
-
return runtime
|
4392
|
+
return ensureInitialized(runtime) && runtime.supports.pages
|
4393
|
+
? runtime.supports.pages.currentApp
|
4394
|
+
? true
|
4395
|
+
: false
|
4396
|
+
: false;
|
4251
4397
|
}
|
4252
4398
|
currentApp.isSupported = isSupported;
|
4253
4399
|
})(currentApp = pages.currentApp || (pages.currentApp = {}));
|
@@ -4268,6 +4414,7 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
|
|
4268
4414
|
|
4269
4415
|
|
4270
4416
|
|
4417
|
+
|
4271
4418
|
var handlersLogger = getLogger('handlers');
|
4272
4419
|
/**
|
4273
4420
|
* @internal
|
@@ -4354,7 +4501,7 @@ function doesHandlerExist(name) {
|
|
4354
4501
|
*/
|
4355
4502
|
function registerHandlerHelper(name, handler, contexts, registrationHelper) {
|
4356
4503
|
// allow for registration cleanup even when not finished initializing
|
4357
|
-
handler && ensureInitialized.apply(void 0, contexts);
|
4504
|
+
handler && ensureInitialized.apply(void 0, __spreadArray([runtime], contexts, false));
|
4358
4505
|
if (registrationHelper) {
|
4359
4506
|
registrationHelper();
|
4360
4507
|
}
|
@@ -4443,6 +4590,7 @@ var communication_spreadArray = (undefined && undefined.__spreadArray) || functi
|
|
4443
4590
|
|
4444
4591
|
|
4445
4592
|
|
4593
|
+
|
4446
4594
|
var communicationLogger = getLogger('communication');
|
4447
4595
|
/**
|
4448
4596
|
* @internal
|
@@ -4502,7 +4650,10 @@ function initializeCommunication(validMessageOrigins) {
|
|
4502
4650
|
// Send the initialized message to any origin, because at this point we most likely don't know the origin
|
4503
4651
|
// of the parent window, and this message contains no data that could pose a security risk.
|
4504
4652
|
Communication.parentOrigin = '*';
|
4505
|
-
return sendMessageToParentAsync('initialize', [
|
4653
|
+
return sendMessageToParentAsync('initialize', [
|
4654
|
+
version,
|
4655
|
+
latestRuntimeApiVersion,
|
4656
|
+
]).then(function (_a) {
|
4506
4657
|
var context = _a[0], clientType = _a[1], runtimeConfig = _a[2], clientSupportedSDKVersion = _a[3];
|
4507
4658
|
return { context: context, clientType: clientType, runtimeConfig: runtimeConfig, clientSupportedSDKVersion: clientSupportedSDKVersion };
|
4508
4659
|
});
|
@@ -4971,7 +5122,7 @@ var logs;
|
|
4971
5122
|
*/
|
4972
5123
|
function registerGetLogHandler(handler) {
|
4973
5124
|
// allow for registration cleanup even when not finished initializing
|
4974
|
-
handler && ensureInitialized();
|
5125
|
+
handler && ensureInitialized(runtime);
|
4975
5126
|
if (handler && !isSupported()) {
|
4976
5127
|
throw errorNotSupportedOnPlatform;
|
4977
5128
|
}
|
@@ -4998,8 +5149,7 @@ var logs;
|
|
4998
5149
|
* Limited to Microsoft-internal use
|
4999
5150
|
*/
|
5000
5151
|
function isSupported() {
|
5001
|
-
ensureInitialized();
|
5002
|
-
return runtime.supports.logs ? true : false;
|
5152
|
+
return ensureInitialized(runtime) && runtime.supports.logs ? true : false;
|
5003
5153
|
}
|
5004
5154
|
logs.isSupported = isSupported;
|
5005
5155
|
})(logs || (logs = {}));
|
@@ -5060,6 +5210,7 @@ var UserSettingTypes;
|
|
5060
5210
|
|
5061
5211
|
|
5062
5212
|
|
5213
|
+
|
5063
5214
|
/**
|
5064
5215
|
* @hidden
|
5065
5216
|
* Upload a custom App manifest directly to both team and personal scopes.
|
@@ -5069,7 +5220,7 @@ var UserSettingTypes;
|
|
5069
5220
|
* Limited to Microsoft-internal use
|
5070
5221
|
*/
|
5071
5222
|
function uploadCustomApp(manifestBlob, onComplete) {
|
5072
|
-
ensureInitialized();
|
5223
|
+
ensureInitialized(runtime);
|
5073
5224
|
sendMessageToParent('uploadCustomApp', [manifestBlob], onComplete ? onComplete : getGenericOnCompleteHandler());
|
5074
5225
|
}
|
5075
5226
|
/**
|
@@ -5085,7 +5236,7 @@ function uploadCustomApp(manifestBlob, onComplete) {
|
|
5085
5236
|
* Limited to Microsoft-internal use
|
5086
5237
|
*/
|
5087
5238
|
function sendCustomMessage(actionName, args, callback) {
|
5088
|
-
ensureInitialized();
|
5239
|
+
ensureInitialized(runtime);
|
5089
5240
|
sendMessageToParent(actionName, args, callback);
|
5090
5241
|
}
|
5091
5242
|
/**
|
@@ -5101,7 +5252,7 @@ function sendCustomMessage(actionName, args, callback) {
|
|
5101
5252
|
* Limited to Microsoft-internal use
|
5102
5253
|
*/
|
5103
5254
|
function sendCustomEvent(actionName, args) {
|
5104
|
-
ensureInitialized();
|
5255
|
+
ensureInitialized(runtime);
|
5105
5256
|
//validate childWindow
|
5106
5257
|
if (!Communication.childWindow) {
|
5107
5258
|
throw new Error('The child window has not yet been initialized or is not present');
|
@@ -5120,7 +5271,7 @@ function sendCustomEvent(actionName, args) {
|
|
5120
5271
|
*/
|
5121
5272
|
function registerCustomHandler(actionName, customHandler) {
|
5122
5273
|
var _this = this;
|
5123
|
-
ensureInitialized();
|
5274
|
+
ensureInitialized(runtime);
|
5124
5275
|
registerHandler(actionName, function () {
|
5125
5276
|
var args = [];
|
5126
5277
|
for (var _i = 0; _i < arguments.length; _i++) {
|
@@ -5140,7 +5291,7 @@ function registerCustomHandler(actionName, customHandler) {
|
|
5140
5291
|
* Limited to Microsoft-internal use
|
5141
5292
|
*/
|
5142
5293
|
function registerUserSettingsChangeHandler(settingTypes, handler) {
|
5143
|
-
ensureInitialized();
|
5294
|
+
ensureInitialized(runtime);
|
5144
5295
|
registerHandler('userSettingsChange', handler, true, [settingTypes]);
|
5145
5296
|
}
|
5146
5297
|
/**
|
@@ -5153,7 +5304,7 @@ function registerUserSettingsChangeHandler(settingTypes, handler) {
|
|
5153
5304
|
* Limited to Microsoft-internal use
|
5154
5305
|
*/
|
5155
5306
|
function openFilePreview(filePreviewParameters) {
|
5156
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5307
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
5157
5308
|
var params = [
|
5158
5309
|
filePreviewParameters.entityId,
|
5159
5310
|
filePreviewParameters.title,
|
@@ -5201,7 +5352,7 @@ var conversations;
|
|
5201
5352
|
*/
|
5202
5353
|
function openConversation(openConversationRequest) {
|
5203
5354
|
return new Promise(function (resolve) {
|
5204
|
-
ensureInitialized(FrameContexts.content);
|
5355
|
+
ensureInitialized(runtime, FrameContexts.content);
|
5205
5356
|
if (!isSupported()) {
|
5206
5357
|
throw errorNotSupportedOnPlatform;
|
5207
5358
|
}
|
@@ -5245,7 +5396,7 @@ var conversations;
|
|
5245
5396
|
* Limited to Microsoft-internal use
|
5246
5397
|
*/
|
5247
5398
|
function closeConversation() {
|
5248
|
-
ensureInitialized(FrameContexts.content);
|
5399
|
+
ensureInitialized(runtime, FrameContexts.content);
|
5249
5400
|
if (!isSupported()) {
|
5250
5401
|
throw errorNotSupportedOnPlatform;
|
5251
5402
|
}
|
@@ -5269,7 +5420,7 @@ var conversations;
|
|
5269
5420
|
*/
|
5270
5421
|
function getChatMembers() {
|
5271
5422
|
return new Promise(function (resolve) {
|
5272
|
-
ensureInitialized();
|
5423
|
+
ensureInitialized(runtime);
|
5273
5424
|
if (!isSupported()) {
|
5274
5425
|
throw errorNotSupportedOnPlatform;
|
5275
5426
|
}
|
@@ -5287,8 +5438,7 @@ var conversations;
|
|
5287
5438
|
* Limited to Microsoft-internal use
|
5288
5439
|
*/
|
5289
5440
|
function isSupported() {
|
5290
|
-
ensureInitialized();
|
5291
|
-
return runtime.supports.conversations ? true : false;
|
5441
|
+
return ensureInitialized(runtime) && runtime.supports.conversations ? true : false;
|
5292
5442
|
}
|
5293
5443
|
conversations.isSupported = isSupported;
|
5294
5444
|
})(conversations || (conversations = {}));
|
@@ -5371,7 +5521,7 @@ var appInstallDialog;
|
|
5371
5521
|
(function (appInstallDialog) {
|
5372
5522
|
function openAppInstallDialog(openAPPInstallDialogParams) {
|
5373
5523
|
return new Promise(function (resolve) {
|
5374
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
5524
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
5375
5525
|
if (!isSupported()) {
|
5376
5526
|
throw new Error('Not supported');
|
5377
5527
|
}
|
@@ -5392,8 +5542,7 @@ var appInstallDialog;
|
|
5392
5542
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
5393
5543
|
*/
|
5394
5544
|
function isSupported() {
|
5395
|
-
ensureInitialized();
|
5396
|
-
return runtime.supports.appInstallDialog ? true : false;
|
5545
|
+
return ensureInitialized(runtime) && runtime.supports.appInstallDialog ? true : false;
|
5397
5546
|
}
|
5398
5547
|
appInstallDialog.isSupported = isSupported;
|
5399
5548
|
})(appInstallDialog || (appInstallDialog = {}));
|
@@ -5424,6 +5573,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
5424
5573
|
|
5425
5574
|
|
5426
5575
|
|
5576
|
+
|
5427
5577
|
var media;
|
5428
5578
|
(function (media) {
|
5429
5579
|
/**
|
@@ -5457,7 +5607,7 @@ var media;
|
|
5457
5607
|
if (!callback) {
|
5458
5608
|
throw new Error('[captureImage] Callback cannot be null');
|
5459
5609
|
}
|
5460
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5610
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
5461
5611
|
if (!GlobalVars.isFramelessWindow) {
|
5462
5612
|
var notSupportedError = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
5463
5613
|
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
@@ -5500,7 +5650,7 @@ var media;
|
|
5500
5650
|
if (!callback) {
|
5501
5651
|
throw new Error('[get Media] Callback cannot be null');
|
5502
5652
|
}
|
5503
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5653
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
5504
5654
|
if (!isCurrentSDKVersionAtLeast(mediaAPISupportVersion)) {
|
5505
5655
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
5506
5656
|
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
@@ -5620,7 +5770,7 @@ var media;
|
|
5620
5770
|
* Optional; @param callback is used to send app if host client has successfully handled the notification event or not
|
5621
5771
|
*/
|
5622
5772
|
MediaController.prototype.notifyEventToHost = function (mediaEvent, callback) {
|
5623
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5773
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
5624
5774
|
try {
|
5625
5775
|
throwExceptionIfMobileApiIsNotSupported(nonFullScreenVideoModeAPISupportVersion);
|
5626
5776
|
}
|
@@ -5736,7 +5886,7 @@ var media;
|
|
5736
5886
|
if (!callback) {
|
5737
5887
|
throw new Error('[select Media] Callback cannot be null');
|
5738
5888
|
}
|
5739
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5889
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
5740
5890
|
if (!isCurrentSDKVersionAtLeast(mediaAPISupportVersion)) {
|
5741
5891
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
5742
5892
|
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
@@ -5793,7 +5943,7 @@ var media;
|
|
5793
5943
|
if (!callback) {
|
5794
5944
|
throw new Error('[view images] Callback cannot be null');
|
5795
5945
|
}
|
5796
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5946
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
5797
5947
|
if (!isCurrentSDKVersionAtLeast(mediaAPISupportVersion)) {
|
5798
5948
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
5799
5949
|
callback(oldPlatformError);
|
@@ -5824,7 +5974,7 @@ var media;
|
|
5824
5974
|
if (!callback) {
|
5825
5975
|
throw new Error('[media.scanBarCode] Callback cannot be null');
|
5826
5976
|
}
|
5827
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5977
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
5828
5978
|
if (GlobalVars.hostClientType === HostClientType.desktop ||
|
5829
5979
|
GlobalVars.hostClientType === HostClientType.web ||
|
5830
5980
|
GlobalVars.hostClientType === HostClientType.rigel ||
|
@@ -6097,7 +6247,7 @@ var barCode;
|
|
6097
6247
|
*/
|
6098
6248
|
function scanBarCode(barCodeConfig) {
|
6099
6249
|
return new Promise(function (resolve) {
|
6100
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6250
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6101
6251
|
if (!isSupported()) {
|
6102
6252
|
throw errorNotSupportedOnPlatform;
|
6103
6253
|
}
|
@@ -6116,7 +6266,7 @@ var barCode;
|
|
6116
6266
|
* @beta
|
6117
6267
|
*/
|
6118
6268
|
function hasPermission() {
|
6119
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6269
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6120
6270
|
if (!isSupported()) {
|
6121
6271
|
throw errorNotSupportedOnPlatform;
|
6122
6272
|
}
|
@@ -6134,7 +6284,7 @@ var barCode;
|
|
6134
6284
|
* @beta
|
6135
6285
|
*/
|
6136
6286
|
function requestPermission() {
|
6137
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6287
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6138
6288
|
if (!isSupported()) {
|
6139
6289
|
throw errorNotSupportedOnPlatform;
|
6140
6290
|
}
|
@@ -6153,8 +6303,7 @@ var barCode;
|
|
6153
6303
|
* @beta
|
6154
6304
|
*/
|
6155
6305
|
function isSupported() {
|
6156
|
-
ensureInitialized();
|
6157
|
-
return runtime.supports.barCode && runtime.supports.permissions ? true : false;
|
6306
|
+
return ensureInitialized(runtime) && runtime.supports.barCode && runtime.supports.permissions ? true : false;
|
6158
6307
|
}
|
6159
6308
|
barCode.isSupported = isSupported;
|
6160
6309
|
})(barCode || (barCode = {}));
|
@@ -6184,7 +6333,7 @@ var chat;
|
|
6184
6333
|
*/
|
6185
6334
|
function openChat(openChatRequest) {
|
6186
6335
|
return new Promise(function (resolve) {
|
6187
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6336
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6188
6337
|
if (!isSupported()) {
|
6189
6338
|
throw errorNotSupportedOnPlatform;
|
6190
6339
|
}
|
@@ -6225,7 +6374,7 @@ var chat;
|
|
6225
6374
|
openChat(chatRequest);
|
6226
6375
|
}
|
6227
6376
|
else {
|
6228
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6377
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6229
6378
|
if (!isSupported()) {
|
6230
6379
|
throw errorNotSupportedOnPlatform;
|
6231
6380
|
}
|
@@ -6253,8 +6402,7 @@ var chat;
|
|
6253
6402
|
* @beta
|
6254
6403
|
*/
|
6255
6404
|
function isSupported() {
|
6256
|
-
ensureInitialized();
|
6257
|
-
return runtime.supports.chat ? true : false;
|
6405
|
+
return ensureInitialized(runtime) && runtime.supports.chat ? true : false;
|
6258
6406
|
}
|
6259
6407
|
chat.isSupported = isSupported;
|
6260
6408
|
})(chat || (chat = {}));
|
@@ -6279,7 +6427,7 @@ var geoLocation;
|
|
6279
6427
|
* @beta
|
6280
6428
|
*/
|
6281
6429
|
function getCurrentLocation() {
|
6282
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6430
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6283
6431
|
if (!isSupported()) {
|
6284
6432
|
throw errorNotSupportedOnPlatform;
|
6285
6433
|
}
|
@@ -6295,7 +6443,7 @@ var geoLocation;
|
|
6295
6443
|
* @beta
|
6296
6444
|
*/
|
6297
6445
|
function hasPermission() {
|
6298
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6446
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6299
6447
|
if (!isSupported()) {
|
6300
6448
|
throw errorNotSupportedOnPlatform;
|
6301
6449
|
}
|
@@ -6315,7 +6463,7 @@ var geoLocation;
|
|
6315
6463
|
* @beta
|
6316
6464
|
*/
|
6317
6465
|
function requestPermission() {
|
6318
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6466
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6319
6467
|
if (!isSupported()) {
|
6320
6468
|
throw errorNotSupportedOnPlatform;
|
6321
6469
|
}
|
@@ -6334,8 +6482,7 @@ var geoLocation;
|
|
6334
6482
|
* @beta
|
6335
6483
|
*/
|
6336
6484
|
function isSupported() {
|
6337
|
-
ensureInitialized();
|
6338
|
-
return runtime.supports.geoLocation && runtime.supports.permissions ? true : false;
|
6485
|
+
return ensureInitialized(runtime) && runtime.supports.geoLocation && runtime.supports.permissions ? true : false;
|
6339
6486
|
}
|
6340
6487
|
geoLocation.isSupported = isSupported;
|
6341
6488
|
/**
|
@@ -6353,7 +6500,7 @@ var geoLocation;
|
|
6353
6500
|
* @beta
|
6354
6501
|
*/
|
6355
6502
|
function chooseLocation() {
|
6356
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6503
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6357
6504
|
if (!isSupported()) {
|
6358
6505
|
throw errorNotSupportedOnPlatform;
|
6359
6506
|
}
|
@@ -6369,7 +6516,7 @@ var geoLocation;
|
|
6369
6516
|
* @beta
|
6370
6517
|
*/
|
6371
6518
|
function showLocation(location) {
|
6372
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6519
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6373
6520
|
if (!isSupported()) {
|
6374
6521
|
throw errorNotSupportedOnPlatform;
|
6375
6522
|
}
|
@@ -6388,8 +6535,10 @@ var geoLocation;
|
|
6388
6535
|
* @beta
|
6389
6536
|
*/
|
6390
6537
|
function isSupported() {
|
6391
|
-
ensureInitialized()
|
6392
|
-
|
6538
|
+
return ensureInitialized(runtime) &&
|
6539
|
+
runtime.supports.geoLocation &&
|
6540
|
+
runtime.supports.geoLocation.map &&
|
6541
|
+
runtime.supports.permissions
|
6393
6542
|
? true
|
6394
6543
|
: false;
|
6395
6544
|
}
|
@@ -6406,6 +6555,7 @@ var geoLocation;
|
|
6406
6555
|
|
6407
6556
|
|
6408
6557
|
|
6558
|
+
|
6409
6559
|
var ChildAppWindow = /** @class */ (function () {
|
6410
6560
|
function ChildAppWindow() {
|
6411
6561
|
}
|
@@ -6416,7 +6566,7 @@ var ChildAppWindow = /** @class */ (function () {
|
|
6416
6566
|
* @param onComplete - The callback to know if the postMessage has been success/failed.
|
6417
6567
|
*/
|
6418
6568
|
ChildAppWindow.prototype.postMessage = function (message, onComplete) {
|
6419
|
-
ensureInitialized();
|
6569
|
+
ensureInitialized(runtime);
|
6420
6570
|
sendMessageToParent('messageForChild', [message], onComplete ? onComplete : getGenericOnCompleteHandler());
|
6421
6571
|
};
|
6422
6572
|
/**
|
@@ -6426,7 +6576,7 @@ var ChildAppWindow = /** @class */ (function () {
|
|
6426
6576
|
* @param listener - The listener that will be called
|
6427
6577
|
*/
|
6428
6578
|
ChildAppWindow.prototype.addEventListener = function (type, listener) {
|
6429
|
-
ensureInitialized();
|
6579
|
+
ensureInitialized(runtime);
|
6430
6580
|
if (type === 'message') {
|
6431
6581
|
registerHandler('messageForParent', listener);
|
6432
6582
|
}
|
@@ -6452,7 +6602,7 @@ var ParentAppWindow = /** @class */ (function () {
|
|
6452
6602
|
* @param onComplete - The callback to know if the postMessage has been success/failed.
|
6453
6603
|
*/
|
6454
6604
|
ParentAppWindow.prototype.postMessage = function (message, onComplete) {
|
6455
|
-
ensureInitialized(FrameContexts.task);
|
6605
|
+
ensureInitialized(runtime, FrameContexts.task);
|
6456
6606
|
sendMessageToParent('messageForParent', [message], onComplete ? onComplete : getGenericOnCompleteHandler());
|
6457
6607
|
};
|
6458
6608
|
/**
|
@@ -6462,7 +6612,7 @@ var ParentAppWindow = /** @class */ (function () {
|
|
6462
6612
|
* @param listener - The listener that will be called
|
6463
6613
|
*/
|
6464
6614
|
ParentAppWindow.prototype.addEventListener = function (type, listener) {
|
6465
|
-
ensureInitialized(FrameContexts.task);
|
6615
|
+
ensureInitialized(runtime, FrameContexts.task);
|
6466
6616
|
if (type === 'message') {
|
6467
6617
|
registerHandler('messageForChild', listener);
|
6468
6618
|
}
|
@@ -6500,7 +6650,7 @@ var location_location;
|
|
6500
6650
|
if (!callback) {
|
6501
6651
|
throw new Error('[location.getLocation] Callback cannot be null');
|
6502
6652
|
}
|
6503
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6653
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6504
6654
|
if (!isCurrentSDKVersionAtLeast(locationAPIsRequiredVersion)) {
|
6505
6655
|
throw { errorCode: ErrorCode.OLD_PLATFORM };
|
6506
6656
|
}
|
@@ -6526,7 +6676,7 @@ var location_location;
|
|
6526
6676
|
if (!callback) {
|
6527
6677
|
throw new Error('[location.showLocation] Callback cannot be null');
|
6528
6678
|
}
|
6529
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
6679
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
6530
6680
|
if (!isCurrentSDKVersionAtLeast(locationAPIsRequiredVersion)) {
|
6531
6681
|
throw { errorCode: ErrorCode.OLD_PLATFORM };
|
6532
6682
|
}
|
@@ -6550,8 +6700,7 @@ var location_location;
|
|
6550
6700
|
* @returns boolean to represent whether Location is supported
|
6551
6701
|
*/
|
6552
6702
|
function isSupported() {
|
6553
|
-
ensureInitialized();
|
6554
|
-
return runtime.supports.location ? true : false;
|
6703
|
+
return ensureInitialized(runtime) && runtime.supports.location ? true : false;
|
6555
6704
|
}
|
6556
6705
|
location_1.isSupported = isSupported;
|
6557
6706
|
})(location_location || (location_location = {}));
|
@@ -6561,6 +6710,7 @@ var location_location;
|
|
6561
6710
|
|
6562
6711
|
|
6563
6712
|
|
6713
|
+
|
6564
6714
|
var meeting;
|
6565
6715
|
(function (meeting) {
|
6566
6716
|
/**
|
@@ -6603,7 +6753,7 @@ var meeting;
|
|
6603
6753
|
if (!callback) {
|
6604
6754
|
throw new Error('[get incoming client audio state] Callback cannot be null');
|
6605
6755
|
}
|
6606
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6756
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6607
6757
|
sendMessageToParent('getIncomingClientAudioState', callback);
|
6608
6758
|
}
|
6609
6759
|
meeting.getIncomingClientAudioState = getIncomingClientAudioState;
|
@@ -6619,7 +6769,7 @@ var meeting;
|
|
6619
6769
|
if (!callback) {
|
6620
6770
|
throw new Error('[toggle incoming client audio] Callback cannot be null');
|
6621
6771
|
}
|
6622
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6772
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6623
6773
|
sendMessageToParent('toggleIncomingClientAudio', callback);
|
6624
6774
|
}
|
6625
6775
|
meeting.toggleIncomingClientAudio = toggleIncomingClientAudio;
|
@@ -6638,7 +6788,7 @@ var meeting;
|
|
6638
6788
|
if (!callback) {
|
6639
6789
|
throw new Error('[get meeting details] Callback cannot be null');
|
6640
6790
|
}
|
6641
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage, FrameContexts.settings, FrameContexts.content);
|
6791
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage, FrameContexts.settings, FrameContexts.content);
|
6642
6792
|
sendMessageToParent('meeting.getMeetingDetails', callback);
|
6643
6793
|
}
|
6644
6794
|
meeting.getMeetingDetails = getMeetingDetails;
|
@@ -6657,7 +6807,7 @@ var meeting;
|
|
6657
6807
|
if (!callback) {
|
6658
6808
|
throw new Error('[get Authentication Token For AnonymousUser] Callback cannot be null');
|
6659
6809
|
}
|
6660
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6810
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6661
6811
|
sendMessageToParent('meeting.getAuthenticationTokenForAnonymousUser', callback);
|
6662
6812
|
}
|
6663
6813
|
meeting.getAuthenticationTokenForAnonymousUser = getAuthenticationTokenForAnonymousUser;
|
@@ -6672,7 +6822,7 @@ var meeting;
|
|
6672
6822
|
if (!callback) {
|
6673
6823
|
throw new Error('[get live stream state] Callback cannot be null');
|
6674
6824
|
}
|
6675
|
-
ensureInitialized(FrameContexts.sidePanel);
|
6825
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
6676
6826
|
sendMessageToParent('meeting.getLiveStreamState', callback);
|
6677
6827
|
}
|
6678
6828
|
meeting.getLiveStreamState = getLiveStreamState;
|
@@ -6690,7 +6840,7 @@ var meeting;
|
|
6690
6840
|
if (!callback) {
|
6691
6841
|
throw new Error('[request start live streaming] Callback cannot be null');
|
6692
6842
|
}
|
6693
|
-
ensureInitialized(FrameContexts.sidePanel);
|
6843
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
6694
6844
|
sendMessageToParent('meeting.requestStartLiveStreaming', [streamUrl, streamKey], callback);
|
6695
6845
|
}
|
6696
6846
|
meeting.requestStartLiveStreaming = requestStartLiveStreaming;
|
@@ -6706,7 +6856,7 @@ var meeting;
|
|
6706
6856
|
if (!callback) {
|
6707
6857
|
throw new Error('[request stop live streaming] Callback cannot be null');
|
6708
6858
|
}
|
6709
|
-
ensureInitialized(FrameContexts.sidePanel);
|
6859
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
6710
6860
|
sendMessageToParent('meeting.requestStopLiveStreaming', callback);
|
6711
6861
|
}
|
6712
6862
|
meeting.requestStopLiveStreaming = requestStopLiveStreaming;
|
@@ -6722,7 +6872,7 @@ var meeting;
|
|
6722
6872
|
if (!handler) {
|
6723
6873
|
throw new Error('[register live stream changed handler] Handler cannot be null');
|
6724
6874
|
}
|
6725
|
-
ensureInitialized(FrameContexts.sidePanel);
|
6875
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
6726
6876
|
registerHandler('meeting.liveStreamChanged', handler);
|
6727
6877
|
}
|
6728
6878
|
meeting.registerLiveStreamChangedHandler = registerLiveStreamChangedHandler;
|
@@ -6738,7 +6888,7 @@ var meeting;
|
|
6738
6888
|
if (!callback) {
|
6739
6889
|
throw new Error('[share app content to stage] Callback cannot be null');
|
6740
6890
|
}
|
6741
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6891
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6742
6892
|
sendMessageToParent('meeting.shareAppContentToStage', [appContentUrl], callback);
|
6743
6893
|
}
|
6744
6894
|
meeting.shareAppContentToStage = shareAppContentToStage;
|
@@ -6754,7 +6904,7 @@ var meeting;
|
|
6754
6904
|
if (!callback) {
|
6755
6905
|
throw new Error('[get app content stage sharing capabilities] Callback cannot be null');
|
6756
6906
|
}
|
6757
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6907
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6758
6908
|
sendMessageToParent('meeting.getAppContentStageSharingCapabilities', callback);
|
6759
6909
|
}
|
6760
6910
|
meeting.getAppContentStageSharingCapabilities = getAppContentStageSharingCapabilities;
|
@@ -6771,7 +6921,7 @@ var meeting;
|
|
6771
6921
|
if (!callback) {
|
6772
6922
|
throw new Error('[stop sharing app content to stage] Callback cannot be null');
|
6773
6923
|
}
|
6774
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6924
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6775
6925
|
sendMessageToParent('meeting.stopSharingAppContentToStage', callback);
|
6776
6926
|
}
|
6777
6927
|
meeting.stopSharingAppContentToStage = stopSharingAppContentToStage;
|
@@ -6787,7 +6937,7 @@ var meeting;
|
|
6787
6937
|
if (!callback) {
|
6788
6938
|
throw new Error('[get app content stage sharing state] Callback cannot be null');
|
6789
6939
|
}
|
6790
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6940
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6791
6941
|
sendMessageToParent('meeting.getAppContentStageSharingState', callback);
|
6792
6942
|
}
|
6793
6943
|
meeting.getAppContentStageSharingState = getAppContentStageSharingState;
|
@@ -6802,7 +6952,7 @@ var meeting;
|
|
6802
6952
|
if (!handler) {
|
6803
6953
|
throw new Error('[registerSpeakingStateChangeHandler] Handler cannot be null');
|
6804
6954
|
}
|
6805
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6955
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6806
6956
|
registerHandler('meeting.speakingStateChanged', handler);
|
6807
6957
|
}
|
6808
6958
|
meeting.registerSpeakingStateChangeHandler = registerSpeakingStateChangeHandler;
|
@@ -6820,7 +6970,7 @@ var meeting;
|
|
6820
6970
|
if (!handler) {
|
6821
6971
|
throw new Error('[registerRaiseHandStateChangedHandler] Handler cannot be null');
|
6822
6972
|
}
|
6823
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6973
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6824
6974
|
registerHandler('meeting.raiseHandStateChanged', handler);
|
6825
6975
|
}
|
6826
6976
|
meeting.registerRaiseHandStateChangedHandler = registerRaiseHandStateChangedHandler;
|
@@ -6836,7 +6986,7 @@ var meeting;
|
|
6836
6986
|
if (!handler) {
|
6837
6987
|
throw new Error('[registerMeetingReactionReceivedHandler] Handler cannot be null');
|
6838
6988
|
}
|
6839
|
-
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6989
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6840
6990
|
registerHandler('meeting.meetingReactionReceived', handler);
|
6841
6991
|
}
|
6842
6992
|
meeting.registerMeetingReactionReceivedHandler = registerMeetingReactionReceivedHandler;
|
@@ -6858,7 +7008,7 @@ var meeting;
|
|
6858
7008
|
* @beta
|
6859
7009
|
*/
|
6860
7010
|
function setOptions(shareInformation) {
|
6861
|
-
ensureInitialized(FrameContexts.sidePanel);
|
7011
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
6862
7012
|
if (shareInformation.contentUrl) {
|
6863
7013
|
new URL(shareInformation.contentUrl);
|
6864
7014
|
}
|
@@ -6904,7 +7054,7 @@ var monetization;
|
|
6904
7054
|
resolve(sendAndHandleSdkError('monetization.openPurchaseExperience', planInfo));
|
6905
7055
|
});
|
6906
7056
|
};
|
6907
|
-
ensureInitialized(FrameContexts.content);
|
7057
|
+
ensureInitialized(runtime, FrameContexts.content);
|
6908
7058
|
return callCallbackWithErrorOrResultOrNullFromPromiseAndReturnPromise(wrappedFunction, callback);
|
6909
7059
|
}
|
6910
7060
|
monetization.openPurchaseExperience = openPurchaseExperience;
|
@@ -6917,8 +7067,7 @@ var monetization;
|
|
6917
7067
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
6918
7068
|
*/
|
6919
7069
|
function isSupported() {
|
6920
|
-
ensureInitialized();
|
6921
|
-
return runtime.supports.monetization ? true : false;
|
7070
|
+
return ensureInitialized(runtime) && runtime.supports.monetization ? true : false;
|
6922
7071
|
}
|
6923
7072
|
monetization.isSupported = isSupported;
|
6924
7073
|
})(monetization || (monetization = {}));
|
@@ -6933,7 +7082,7 @@ var calendar;
|
|
6933
7082
|
(function (calendar) {
|
6934
7083
|
function openCalendarItem(openCalendarItemParams) {
|
6935
7084
|
return new Promise(function (resolve) {
|
6936
|
-
ensureInitialized(FrameContexts.content);
|
7085
|
+
ensureInitialized(runtime, FrameContexts.content);
|
6937
7086
|
if (!isSupported()) {
|
6938
7087
|
throw new Error('Not supported');
|
6939
7088
|
}
|
@@ -6946,7 +7095,7 @@ var calendar;
|
|
6946
7095
|
calendar.openCalendarItem = openCalendarItem;
|
6947
7096
|
function composeMeeting(composeMeetingParams) {
|
6948
7097
|
return new Promise(function (resolve) {
|
6949
|
-
ensureInitialized(FrameContexts.content);
|
7098
|
+
ensureInitialized(runtime, FrameContexts.content);
|
6950
7099
|
if (!isSupported()) {
|
6951
7100
|
throw new Error('Not supported');
|
6952
7101
|
}
|
@@ -6966,8 +7115,7 @@ var calendar;
|
|
6966
7115
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
6967
7116
|
*/
|
6968
7117
|
function isSupported() {
|
6969
|
-
ensureInitialized();
|
6970
|
-
return runtime.supports.calendar ? true : false;
|
7118
|
+
return ensureInitialized(runtime) && runtime.supports.calendar ? true : false;
|
6971
7119
|
}
|
6972
7120
|
calendar.isSupported = isSupported;
|
6973
7121
|
})(calendar || (calendar = {}));
|
@@ -6981,7 +7129,7 @@ var mail;
|
|
6981
7129
|
(function (mail) {
|
6982
7130
|
function openMailItem(openMailItemParams) {
|
6983
7131
|
return new Promise(function (resolve) {
|
6984
|
-
ensureInitialized(FrameContexts.content);
|
7132
|
+
ensureInitialized(runtime, FrameContexts.content);
|
6985
7133
|
if (!isSupported()) {
|
6986
7134
|
throw new Error('Not supported');
|
6987
7135
|
}
|
@@ -6994,7 +7142,7 @@ var mail;
|
|
6994
7142
|
mail.openMailItem = openMailItem;
|
6995
7143
|
function composeMail(composeMailParams) {
|
6996
7144
|
return new Promise(function (resolve) {
|
6997
|
-
ensureInitialized(FrameContexts.content);
|
7145
|
+
ensureInitialized(runtime, FrameContexts.content);
|
6998
7146
|
if (!isSupported()) {
|
6999
7147
|
throw new Error('Not supported');
|
7000
7148
|
}
|
@@ -7009,8 +7157,7 @@ var mail;
|
|
7009
7157
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
7010
7158
|
*/
|
7011
7159
|
function isSupported() {
|
7012
|
-
ensureInitialized();
|
7013
|
-
return runtime.supports.mail ? true : false;
|
7160
|
+
return ensureInitialized(runtime) && runtime.supports.mail ? true : false;
|
7014
7161
|
}
|
7015
7162
|
mail.isSupported = isSupported;
|
7016
7163
|
var ComposeMailType;
|
@@ -7044,7 +7191,7 @@ var people;
|
|
7044
7191
|
*/
|
7045
7192
|
function selectPeople(param1, param2) {
|
7046
7193
|
var _a;
|
7047
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task, FrameContexts.settings);
|
7194
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task, FrameContexts.settings);
|
7048
7195
|
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
7049
7196
|
var callback;
|
7050
7197
|
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
@@ -7081,8 +7228,7 @@ var people;
|
|
7081
7228
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
7082
7229
|
*/
|
7083
7230
|
function isSupported() {
|
7084
|
-
ensureInitialized();
|
7085
|
-
return runtime.supports.people ? true : false;
|
7231
|
+
return ensureInitialized(runtime) && runtime.supports.people ? true : false;
|
7086
7232
|
}
|
7087
7233
|
people_1.isSupported = isSupported;
|
7088
7234
|
})(people || (people = {}));
|
@@ -7172,7 +7318,7 @@ var profile;
|
|
7172
7318
|
* @beta
|
7173
7319
|
*/
|
7174
7320
|
function showProfile(showProfileRequest) {
|
7175
|
-
ensureInitialized(FrameContexts.content);
|
7321
|
+
ensureInitialized(runtime, FrameContexts.content);
|
7176
7322
|
return new Promise(function (resolve) {
|
7177
7323
|
var _a = validateShowProfileRequest(showProfileRequest), isValid = _a[0], message = _a[1];
|
7178
7324
|
if (!isValid) {
|
@@ -7203,8 +7349,7 @@ var profile;
|
|
7203
7349
|
* @beta
|
7204
7350
|
*/
|
7205
7351
|
function isSupported() {
|
7206
|
-
ensureInitialized();
|
7207
|
-
return runtime.supports.profile ? true : false;
|
7352
|
+
return ensureInitialized(runtime) && runtime.supports.profile ? true : false;
|
7208
7353
|
}
|
7209
7354
|
profile.isSupported = isSupported;
|
7210
7355
|
})(profile || (profile = {}));
|
@@ -7251,7 +7396,7 @@ var video;
|
|
7251
7396
|
* @param config - VideoFrameConfig to customize generated video frame parameters
|
7252
7397
|
*/
|
7253
7398
|
function registerForVideoFrame(frameCallback, config) {
|
7254
|
-
ensureInitialized(FrameContexts.sidePanel);
|
7399
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
7255
7400
|
if (!isSupported()) {
|
7256
7401
|
throw errorNotSupportedOnPlatform;
|
7257
7402
|
}
|
@@ -7275,7 +7420,7 @@ var video;
|
|
7275
7420
|
* @param effectId - Newly selected effect id.
|
7276
7421
|
*/
|
7277
7422
|
function notifySelectedVideoEffectChanged(effectChangeType, effectId) {
|
7278
|
-
ensureInitialized(FrameContexts.sidePanel);
|
7423
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
7279
7424
|
if (!isSupported()) {
|
7280
7425
|
throw errorNotSupportedOnPlatform;
|
7281
7426
|
}
|
@@ -7288,7 +7433,7 @@ var video;
|
|
7288
7433
|
* @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
|
7289
7434
|
*/
|
7290
7435
|
function registerForVideoEffect(callback) {
|
7291
|
-
ensureInitialized(FrameContexts.sidePanel);
|
7436
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
7292
7437
|
if (!isSupported()) {
|
7293
7438
|
throw errorNotSupportedOnPlatform;
|
7294
7439
|
}
|
@@ -7321,8 +7466,7 @@ var video;
|
|
7321
7466
|
*
|
7322
7467
|
*/
|
7323
7468
|
function isSupported() {
|
7324
|
-
ensureInitialized();
|
7325
|
-
return runtime.supports.video ? true : false;
|
7469
|
+
return ensureInitialized(runtime) && runtime.supports.video ? true : false;
|
7326
7470
|
}
|
7327
7471
|
video.isSupported = isSupported;
|
7328
7472
|
})(video || (video = {})); //end of video namespace
|
@@ -7388,7 +7532,7 @@ var search;
|
|
7388
7532
|
* @beta
|
7389
7533
|
*/
|
7390
7534
|
function registerHandlers(onClosedHandler, onExecuteHandler, onChangeHandler) {
|
7391
|
-
ensureInitialized(FrameContexts.content);
|
7535
|
+
ensureInitialized(runtime, FrameContexts.content);
|
7392
7536
|
if (!isSupported()) {
|
7393
7537
|
throw errorNotSupportedOnPlatform;
|
7394
7538
|
}
|
@@ -7406,7 +7550,7 @@ var search;
|
|
7406
7550
|
* @beta
|
7407
7551
|
*/
|
7408
7552
|
function unregisterHandlers() {
|
7409
|
-
ensureInitialized(FrameContexts.content);
|
7553
|
+
ensureInitialized(runtime, FrameContexts.content);
|
7410
7554
|
if (!isSupported()) {
|
7411
7555
|
throw errorNotSupportedOnPlatform;
|
7412
7556
|
}
|
@@ -7427,8 +7571,7 @@ var search;
|
|
7427
7571
|
* @beta
|
7428
7572
|
*/
|
7429
7573
|
function isSupported() {
|
7430
|
-
ensureInitialized();
|
7431
|
-
return runtime.supports.search ? true : false;
|
7574
|
+
return ensureInitialized(runtime) && runtime.supports.search ? true : false;
|
7432
7575
|
}
|
7433
7576
|
search.isSupported = isSupported;
|
7434
7577
|
})(search || (search = {}));
|
@@ -7457,7 +7600,7 @@ var sharing;
|
|
7457
7600
|
var wrappedFunction = function () { return Promise.reject(err); };
|
7458
7601
|
return callCallbackWithSdkErrorFromPromiseAndReturnPromise(wrappedFunction, callback);
|
7459
7602
|
}
|
7460
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
7603
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
7461
7604
|
return callCallbackWithSdkErrorFromPromiseAndReturnPromise(shareWebContentHelper, callback, shareWebContentRequest);
|
7462
7605
|
}
|
7463
7606
|
sharing.shareWebContent = shareWebContent;
|
@@ -7524,8 +7667,7 @@ var sharing;
|
|
7524
7667
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
7525
7668
|
*/
|
7526
7669
|
function isSupported() {
|
7527
|
-
ensureInitialized();
|
7528
|
-
return runtime.supports.sharing ? true : false;
|
7670
|
+
return ensureInitialized(runtime) && runtime.supports.sharing ? true : false;
|
7529
7671
|
}
|
7530
7672
|
sharing.isSupported = isSupported;
|
7531
7673
|
})(sharing || (sharing = {}));
|
@@ -7553,7 +7695,7 @@ var stageView;
|
|
7553
7695
|
*/
|
7554
7696
|
function open(stageViewParams) {
|
7555
7697
|
return new Promise(function (resolve) {
|
7556
|
-
ensureInitialized(FrameContexts.content);
|
7698
|
+
ensureInitialized(runtime, FrameContexts.content);
|
7557
7699
|
if (!isSupported()) {
|
7558
7700
|
throw errorNotSupportedOnPlatform;
|
7559
7701
|
}
|
@@ -7573,8 +7715,7 @@ var stageView;
|
|
7573
7715
|
*
|
7574
7716
|
*/
|
7575
7717
|
function isSupported() {
|
7576
|
-
ensureInitialized();
|
7577
|
-
return runtime.supports.stageView ? true : false;
|
7718
|
+
return ensureInitialized(runtime) && runtime.supports.stageView ? true : false;
|
7578
7719
|
}
|
7579
7720
|
stageView.isSupported = isSupported;
|
7580
7721
|
})(stageView || (stageView = {}));
|
@@ -7597,7 +7738,7 @@ var webStorage;
|
|
7597
7738
|
* @beta
|
7598
7739
|
*/
|
7599
7740
|
function isWebStorageClearedOnUserLogOut() {
|
7600
|
-
ensureInitialized();
|
7741
|
+
ensureInitialized(runtime);
|
7601
7742
|
return isSupported();
|
7602
7743
|
}
|
7603
7744
|
webStorage.isWebStorageClearedOnUserLogOut = isWebStorageClearedOnUserLogOut;
|
@@ -7610,8 +7751,7 @@ var webStorage;
|
|
7610
7751
|
* @beta
|
7611
7752
|
*/
|
7612
7753
|
function isSupported() {
|
7613
|
-
ensureInitialized();
|
7614
|
-
return runtime.supports.webStorage ? true : false;
|
7754
|
+
return ensureInitialized(runtime) && runtime.supports.webStorage ? true : false;
|
7615
7755
|
}
|
7616
7756
|
webStorage.isSupported = isSupported;
|
7617
7757
|
})(webStorage || (webStorage = {}));
|
@@ -7642,7 +7782,7 @@ var call;
|
|
7642
7782
|
function startCall(startCallParams) {
|
7643
7783
|
return new Promise(function (resolve) {
|
7644
7784
|
var _a;
|
7645
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
7785
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
7646
7786
|
if (!isSupported()) {
|
7647
7787
|
throw errorNotSupportedOnPlatform;
|
7648
7788
|
}
|
@@ -7662,8 +7802,7 @@ var call;
|
|
7662
7802
|
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
7663
7803
|
*/
|
7664
7804
|
function isSupported() {
|
7665
|
-
ensureInitialized();
|
7666
|
-
return runtime.supports.call ? true : false;
|
7805
|
+
return ensureInitialized(runtime) && runtime.supports.call ? true : false;
|
7667
7806
|
}
|
7668
7807
|
call.isSupported = isSupported;
|
7669
7808
|
})(call || (call = {}));
|
@@ -7747,6 +7886,7 @@ var appInitialization;
|
|
7747
7886
|
|
7748
7887
|
|
7749
7888
|
|
7889
|
+
|
7750
7890
|
/**
|
7751
7891
|
* @deprecated
|
7752
7892
|
* As of 2.0.0, please use {@link app.initialize app.initialize(validMessageOrigins?: string[]): Promise\<void\>} instead.
|
@@ -7958,7 +8098,7 @@ function registerChangeSettingsHandler(handler) {
|
|
7958
8098
|
* @param tabInstanceParameters - OPTIONAL Flags that specify whether to scope call to favorite teams or channels.
|
7959
8099
|
*/
|
7960
8100
|
function getTabInstances(callback, tabInstanceParameters) {
|
7961
|
-
ensureInitialized();
|
8101
|
+
ensureInitialized(runtime);
|
7962
8102
|
pages.tabs.getTabInstances(tabInstanceParameters).then(function (tabInfo) {
|
7963
8103
|
callback(tabInfo);
|
7964
8104
|
});
|
@@ -7973,7 +8113,7 @@ function getTabInstances(callback, tabInstanceParameters) {
|
|
7973
8113
|
* @param tabInstanceParameters - OPTIONAL Ignored, kept for future use
|
7974
8114
|
*/
|
7975
8115
|
function getMruTabInstances(callback, tabInstanceParameters) {
|
7976
|
-
ensureInitialized();
|
8116
|
+
ensureInitialized(runtime);
|
7977
8117
|
pages.tabs.getMruTabInstances(tabInstanceParameters).then(function (tabInfo) {
|
7978
8118
|
callback(tabInfo);
|
7979
8119
|
});
|
@@ -8002,7 +8142,7 @@ function shareDeepLink(deepLinkParameters) {
|
|
8002
8142
|
* @param deepLink - deep link.
|
8003
8143
|
*/
|
8004
8144
|
function executeDeepLink(deepLink, onComplete) {
|
8005
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
8145
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
8006
8146
|
onComplete = onComplete ? onComplete : getGenericOnCompleteHandler();
|
8007
8147
|
app_app.openLink(deepLink)
|
8008
8148
|
.then(function () {
|
@@ -8123,6 +8263,7 @@ function transformAppContextToLegacyContext(appContext) {
|
|
8123
8263
|
|
8124
8264
|
|
8125
8265
|
|
8266
|
+
|
8126
8267
|
/**
|
8127
8268
|
* Navigation specific part of the SDK.
|
8128
8269
|
*/
|
@@ -8147,7 +8288,7 @@ function returnFocus(navigateForward) {
|
|
8147
8288
|
* @param onComplete - The callback to invoke when the action is complete.
|
8148
8289
|
*/
|
8149
8290
|
function navigateToTab(tabInstance, onComplete) {
|
8150
|
-
ensureInitialized();
|
8291
|
+
ensureInitialized(runtime);
|
8151
8292
|
onComplete = onComplete ? onComplete : getGenericOnCompleteHandler();
|
8152
8293
|
pages.tabs.navigateToTab(tabInstance)
|
8153
8294
|
.then(function () {
|
@@ -8171,7 +8312,7 @@ function navigateToTab(tabInstance, onComplete) {
|
|
8171
8312
|
* @param onComplete - The callback to invoke when the action is complete.
|
8172
8313
|
*/
|
8173
8314
|
function navigateCrossDomain(url, onComplete) {
|
8174
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
8315
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
8175
8316
|
onComplete = onComplete ? onComplete : getGenericOnCompleteHandler();
|
8176
8317
|
pages.navigateCrossDomain(url)
|
8177
8318
|
.then(function () {
|
@@ -8191,7 +8332,7 @@ function navigateCrossDomain(url, onComplete) {
|
|
8191
8332
|
* @param onComplete - The callback to invoke when the action is complete.
|
8192
8333
|
*/
|
8193
8334
|
function navigateBack(onComplete) {
|
8194
|
-
ensureInitialized();
|
8335
|
+
ensureInitialized(runtime);
|
8195
8336
|
onComplete = onComplete ? onComplete : getGenericOnCompleteHandler();
|
8196
8337
|
pages.backStack.navigateBack()
|
8197
8338
|
.then(function () {
|
@@ -8207,6 +8348,7 @@ function navigateBack(onComplete) {
|
|
8207
8348
|
|
8208
8349
|
|
8209
8350
|
|
8351
|
+
|
8210
8352
|
/**
|
8211
8353
|
* @deprecated
|
8212
8354
|
* As of 2.0.0, please use {@link pages.config} namespace instead.
|
@@ -8238,7 +8380,7 @@ var settings;
|
|
8238
8380
|
* @param callback - The callback to invoke when the {@link Settings} object is retrieved.
|
8239
8381
|
*/
|
8240
8382
|
function getSettings(callback) {
|
8241
|
-
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.remove, FrameContexts.sidePanel);
|
8383
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.settings, FrameContexts.remove, FrameContexts.sidePanel);
|
8242
8384
|
pages.getConfig().then(function (config) {
|
8243
8385
|
callback(config);
|
8244
8386
|
});
|
@@ -8254,7 +8396,7 @@ var settings;
|
|
8254
8396
|
* @param - Set the desired settings for this instance.
|
8255
8397
|
*/
|
8256
8398
|
function setSettings(instanceSettings, onComplete) {
|
8257
|
-
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.sidePanel);
|
8399
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.settings, FrameContexts.sidePanel);
|
8258
8400
|
onComplete = onComplete ? onComplete : getGenericOnCompleteHandler();
|
8259
8401
|
pages.config.setConfig(instanceSettings)
|
8260
8402
|
.then(function () {
|
@@ -8315,6 +8457,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
8315
8457
|
|
8316
8458
|
|
8317
8459
|
|
8460
|
+
|
8318
8461
|
/**
|
8319
8462
|
* @deprecated
|
8320
8463
|
* As of 2.0.0, please use {@link dialog} namespace instead.
|
@@ -8342,7 +8485,7 @@ var tasks;
|
|
8342
8485
|
function (sdkResponse) { return submitHandler(sdkResponse.err, sdkResponse.result); }
|
8343
8486
|
: undefined;
|
8344
8487
|
if (taskInfo.card !== undefined || taskInfo.url === undefined) {
|
8345
|
-
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
8488
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
8346
8489
|
sendMessageToParent('tasks.startTask', [taskInfo], submitHandler);
|
8347
8490
|
}
|
8348
8491
|
else if (taskInfo.completionBotId !== undefined) {
|
@@ -8440,6 +8583,7 @@ var tasks;
|
|
8440
8583
|
|
8441
8584
|
|
8442
8585
|
|
8586
|
+
|
8443
8587
|
/**
|
8444
8588
|
* @hidden
|
8445
8589
|
* Allowed roles during a meeting.
|
@@ -8497,7 +8641,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8497
8641
|
*/
|
8498
8642
|
LiveShareHost.prototype.getFluidTenantInfo = function () {
|
8499
8643
|
return new Promise(function (resolve) {
|
8500
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8644
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8501
8645
|
resolve(sendAndHandleSdkError('interactive.getFluidTenantInfo'));
|
8502
8646
|
});
|
8503
8647
|
};
|
@@ -8512,7 +8656,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8512
8656
|
*/
|
8513
8657
|
LiveShareHost.prototype.getFluidToken = function (containerId) {
|
8514
8658
|
return new Promise(function (resolve) {
|
8515
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8659
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8516
8660
|
// eslint-disable-next-line strict-null-checks/all
|
8517
8661
|
resolve(sendAndHandleSdkError('interactive.getFluidToken', containerId));
|
8518
8662
|
});
|
@@ -8525,7 +8669,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8525
8669
|
*/
|
8526
8670
|
LiveShareHost.prototype.getFluidContainerId = function () {
|
8527
8671
|
return new Promise(function (resolve) {
|
8528
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8672
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8529
8673
|
resolve(sendAndHandleSdkError('interactive.getFluidContainerId'));
|
8530
8674
|
});
|
8531
8675
|
};
|
@@ -8543,7 +8687,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8543
8687
|
*/
|
8544
8688
|
LiveShareHost.prototype.setFluidContainerId = function (containerId) {
|
8545
8689
|
return new Promise(function (resolve) {
|
8546
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8690
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8547
8691
|
resolve(sendAndHandleSdkError('interactive.setFluidContainerId', containerId));
|
8548
8692
|
});
|
8549
8693
|
};
|
@@ -8555,7 +8699,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8555
8699
|
*/
|
8556
8700
|
LiveShareHost.prototype.getNtpTime = function () {
|
8557
8701
|
return new Promise(function (resolve) {
|
8558
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8702
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8559
8703
|
resolve(sendAndHandleSdkError('interactive.getNtpTime'));
|
8560
8704
|
});
|
8561
8705
|
};
|
@@ -8570,7 +8714,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8570
8714
|
*/
|
8571
8715
|
LiveShareHost.prototype.registerClientId = function (clientId) {
|
8572
8716
|
return new Promise(function (resolve) {
|
8573
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8717
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8574
8718
|
resolve(sendAndHandleSdkError('interactive.registerClientId', clientId));
|
8575
8719
|
});
|
8576
8720
|
};
|
@@ -8585,7 +8729,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8585
8729
|
*/
|
8586
8730
|
LiveShareHost.prototype.getClientRoles = function (clientId) {
|
8587
8731
|
return new Promise(function (resolve) {
|
8588
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8732
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8589
8733
|
resolve(sendAndHandleSdkError('interactive.getClientRoles', clientId));
|
8590
8734
|
});
|
8591
8735
|
};
|
@@ -8598,7 +8742,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8598
8742
|
* @beta
|
8599
8743
|
*/
|
8600
8744
|
LiveShareHost.create = function () {
|
8601
|
-
ensureInitialized(FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8745
|
+
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8602
8746
|
return new LiveShareHost();
|
8603
8747
|
};
|
8604
8748
|
return LiveShareHost;
|
@@ -8646,6 +8790,7 @@ var LiveShareHost = /** @class */ (function () {
|
|
8646
8790
|
|
8647
8791
|
|
8648
8792
|
|
8793
|
+
|
8649
8794
|
/**
|
8650
8795
|
* @hidden
|
8651
8796
|
*
|
@@ -8759,7 +8904,7 @@ var files;
|
|
8759
8904
|
* Limited to Microsoft-internal use
|
8760
8905
|
*/
|
8761
8906
|
function getCloudStorageFolders(channelId, callback) {
|
8762
|
-
ensureInitialized(FrameContexts.content);
|
8907
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8763
8908
|
if (!channelId || channelId.length === 0) {
|
8764
8909
|
throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
|
8765
8910
|
}
|
@@ -8782,7 +8927,7 @@ var files;
|
|
8782
8927
|
* Limited to Microsoft-internal use
|
8783
8928
|
*/
|
8784
8929
|
function addCloudStorageFolder(channelId, callback) {
|
8785
|
-
ensureInitialized(FrameContexts.content);
|
8930
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8786
8931
|
if (!channelId || channelId.length === 0) {
|
8787
8932
|
throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
|
8788
8933
|
}
|
@@ -8807,7 +8952,7 @@ var files;
|
|
8807
8952
|
* Limited to Microsoft-internal use
|
8808
8953
|
*/
|
8809
8954
|
function deleteCloudStorageFolder(channelId, folderToDelete, callback) {
|
8810
|
-
ensureInitialized(FrameContexts.content);
|
8955
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8811
8956
|
if (!channelId) {
|
8812
8957
|
throw new Error('[files.deleteCloudStorageFolder] channelId name cannot be null or empty');
|
8813
8958
|
}
|
@@ -8835,7 +8980,7 @@ var files;
|
|
8835
8980
|
* Limited to Microsoft-internal use
|
8836
8981
|
*/
|
8837
8982
|
function getCloudStorageFolderContents(folder, providerCode, callback) {
|
8838
|
-
ensureInitialized(FrameContexts.content);
|
8983
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8839
8984
|
if (!folder || !providerCode) {
|
8840
8985
|
throw new Error('[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty');
|
8841
8986
|
}
|
@@ -8863,7 +9008,7 @@ var files;
|
|
8863
9008
|
* Limited to Microsoft-internal use
|
8864
9009
|
*/
|
8865
9010
|
function openCloudStorageFile(file, providerCode, fileOpenPreference) {
|
8866
|
-
ensureInitialized(FrameContexts.content);
|
9011
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8867
9012
|
if (!file || !providerCode) {
|
8868
9013
|
throw new Error('[files.openCloudStorageFile] file/providerCode cannot be null or empty');
|
8869
9014
|
}
|
@@ -8885,7 +9030,7 @@ var files;
|
|
8885
9030
|
*/
|
8886
9031
|
function getExternalProviders(excludeAddedProviders, callback) {
|
8887
9032
|
if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
|
8888
|
-
ensureInitialized(FrameContexts.content);
|
9033
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8889
9034
|
if (!callback) {
|
8890
9035
|
throw new Error('[files.getExternalProviders] Callback cannot be null');
|
8891
9036
|
}
|
@@ -8902,7 +9047,7 @@ var files;
|
|
8902
9047
|
*/
|
8903
9048
|
function copyMoveFiles(selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove, callback) {
|
8904
9049
|
if (isMove === void 0) { isMove = false; }
|
8905
|
-
ensureInitialized(FrameContexts.content);
|
9050
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8906
9051
|
if (!selectedFiles || selectedFiles.length === 0) {
|
8907
9052
|
throw new Error('[files.copyMoveFiles] selectedFiles cannot be null or empty');
|
8908
9053
|
}
|
@@ -8933,7 +9078,7 @@ var files;
|
|
8933
9078
|
* Limited to Microsoft-internal use
|
8934
9079
|
*/
|
8935
9080
|
function getFileDownloads(callback) {
|
8936
|
-
ensureInitialized(FrameContexts.content);
|
9081
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8937
9082
|
if (!callback) {
|
8938
9083
|
throw new Error('[files.getFileDownloads] Callback cannot be null');
|
8939
9084
|
}
|
@@ -8953,7 +9098,7 @@ var files;
|
|
8953
9098
|
*/
|
8954
9099
|
function openDownloadFolder(fileObjectId, callback) {
|
8955
9100
|
if (fileObjectId === void 0) { fileObjectId = undefined; }
|
8956
|
-
ensureInitialized(FrameContexts.content);
|
9101
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8957
9102
|
if (!callback) {
|
8958
9103
|
throw new Error('[files.openDownloadFolder] Callback cannot be null');
|
8959
9104
|
}
|
@@ -8977,7 +9122,7 @@ var files;
|
|
8977
9122
|
* Limited to Microsoft-internal use
|
8978
9123
|
*/
|
8979
9124
|
function addCloudStorageProvider(callback) {
|
8980
|
-
ensureInitialized(FrameContexts.content);
|
9125
|
+
ensureInitialized(runtime, FrameContexts.content);
|
8981
9126
|
if (!callback) {
|
8982
9127
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.addCloudStorageProvider] callback cannot be null');
|
8983
9128
|
}
|
@@ -8999,7 +9144,7 @@ var files;
|
|
8999
9144
|
* Limited to Microsoft-internal use
|
9000
9145
|
*/
|
9001
9146
|
function removeCloudStorageProvider(logoutRequest, callback) {
|
9002
|
-
ensureInitialized(FrameContexts.content);
|
9147
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9003
9148
|
if (!callback) {
|
9004
9149
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.removeCloudStorageProvider] callback cannot be null');
|
9005
9150
|
}
|
@@ -9022,7 +9167,7 @@ var files;
|
|
9022
9167
|
* Limited to Microsoft-internal use
|
9023
9168
|
*/
|
9024
9169
|
function addCloudStorageProviderFile(addNewFileRequest, callback) {
|
9025
|
-
ensureInitialized(FrameContexts.content);
|
9170
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9026
9171
|
if (!callback) {
|
9027
9172
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.addCloudStorageProviderFile] callback cannot be null');
|
9028
9173
|
}
|
@@ -9045,7 +9190,7 @@ var files;
|
|
9045
9190
|
* Limited to Microsoft-internal use
|
9046
9191
|
*/
|
9047
9192
|
function renameCloudStorageProviderFile(renameFileRequest, callback) {
|
9048
|
-
ensureInitialized(FrameContexts.content);
|
9193
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9049
9194
|
if (!callback) {
|
9050
9195
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.renameCloudStorageProviderFile] callback cannot be null');
|
9051
9196
|
}
|
@@ -9069,7 +9214,7 @@ var files;
|
|
9069
9214
|
* Limited to Microsoft-internal use
|
9070
9215
|
*/
|
9071
9216
|
function deleteCloudStorageProviderFile(deleteFileRequest, callback) {
|
9072
|
-
ensureInitialized(FrameContexts.content);
|
9217
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9073
9218
|
if (!callback) {
|
9074
9219
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.deleteCloudStorageProviderFile] callback cannot be null');
|
9075
9220
|
}
|
@@ -9096,7 +9241,7 @@ var files;
|
|
9096
9241
|
* Limited to Microsoft-internal use
|
9097
9242
|
*/
|
9098
9243
|
function downloadCloudStorageProviderFile(downloadFileRequest, callback) {
|
9099
|
-
ensureInitialized(FrameContexts.content);
|
9244
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9100
9245
|
if (!callback) {
|
9101
9246
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.downloadCloudStorageProviderFile] callback cannot be null');
|
9102
9247
|
}
|
@@ -9123,7 +9268,7 @@ var files;
|
|
9123
9268
|
* Limited to Microsoft-internal use
|
9124
9269
|
*/
|
9125
9270
|
function uploadCloudStorageProviderFile(uploadFileRequest, callback) {
|
9126
|
-
ensureInitialized(FrameContexts.content);
|
9271
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9127
9272
|
if (!callback) {
|
9128
9273
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.uploadCloudStorageProviderFile] callback cannot be null');
|
9129
9274
|
}
|
@@ -9151,7 +9296,7 @@ var files;
|
|
9151
9296
|
* @internal Limited to Microsoft-internal use
|
9152
9297
|
*/
|
9153
9298
|
function registerCloudStorageProviderListChangeHandler(handler) {
|
9154
|
-
ensureInitialized();
|
9299
|
+
ensureInitialized(runtime);
|
9155
9300
|
if (!handler) {
|
9156
9301
|
throw new Error('[registerCloudStorageProviderListChangeHandler] Handler cannot be null');
|
9157
9302
|
}
|
@@ -9171,7 +9316,7 @@ var files;
|
|
9171
9316
|
* Limited to Microsoft-internal use
|
9172
9317
|
*/
|
9173
9318
|
function registerCloudStorageProviderContentChangeHandler(handler) {
|
9174
|
-
ensureInitialized();
|
9319
|
+
ensureInitialized(runtime);
|
9175
9320
|
if (!handler) {
|
9176
9321
|
throw new Error('[registerCloudStorageProviderContentChangeHandler] Handler cannot be null');
|
9177
9322
|
}
|
@@ -9212,7 +9357,7 @@ var meetingRoom;
|
|
9212
9357
|
*/
|
9213
9358
|
function getPairedMeetingRoomInfo() {
|
9214
9359
|
return new Promise(function (resolve) {
|
9215
|
-
ensureInitialized();
|
9360
|
+
ensureInitialized(runtime);
|
9216
9361
|
if (!isSupported()) {
|
9217
9362
|
throw errorNotSupportedOnPlatform;
|
9218
9363
|
}
|
@@ -9235,7 +9380,7 @@ var meetingRoom;
|
|
9235
9380
|
if (!commandName || commandName.length == 0) {
|
9236
9381
|
throw new Error('[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty');
|
9237
9382
|
}
|
9238
|
-
ensureInitialized();
|
9383
|
+
ensureInitialized(runtime);
|
9239
9384
|
if (!isSupported()) {
|
9240
9385
|
throw errorNotSupportedOnPlatform;
|
9241
9386
|
}
|
@@ -9257,12 +9402,12 @@ var meetingRoom;
|
|
9257
9402
|
if (!handler) {
|
9258
9403
|
throw new Error('[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null');
|
9259
9404
|
}
|
9260
|
-
ensureInitialized();
|
9405
|
+
ensureInitialized(runtime);
|
9261
9406
|
if (!isSupported()) {
|
9262
9407
|
throw errorNotSupportedOnPlatform;
|
9263
9408
|
}
|
9264
9409
|
registerHandler('meetingRoom.meetingRoomCapabilitiesUpdate', function (capabilities) {
|
9265
|
-
ensureInitialized();
|
9410
|
+
ensureInitialized(runtime);
|
9266
9411
|
handler(capabilities);
|
9267
9412
|
});
|
9268
9413
|
}
|
@@ -9282,12 +9427,12 @@ var meetingRoom;
|
|
9282
9427
|
if (!handler) {
|
9283
9428
|
throw new Error('[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null');
|
9284
9429
|
}
|
9285
|
-
ensureInitialized();
|
9430
|
+
ensureInitialized(runtime);
|
9286
9431
|
if (!isSupported()) {
|
9287
9432
|
throw errorNotSupportedOnPlatform;
|
9288
9433
|
}
|
9289
9434
|
registerHandler('meetingRoom.meetingRoomStatesUpdate', function (states) {
|
9290
|
-
ensureInitialized();
|
9435
|
+
ensureInitialized(runtime);
|
9291
9436
|
handler(states);
|
9292
9437
|
});
|
9293
9438
|
}
|
@@ -9304,8 +9449,7 @@ var meetingRoom;
|
|
9304
9449
|
* Limited to Microsoft-internal use
|
9305
9450
|
*/
|
9306
9451
|
function isSupported() {
|
9307
|
-
ensureInitialized();
|
9308
|
-
return runtime.supports.meetingRoom ? true : false;
|
9452
|
+
return ensureInitialized(runtime) && runtime.supports.meetingRoom ? true : false;
|
9309
9453
|
}
|
9310
9454
|
meetingRoom.isSupported = isSupported;
|
9311
9455
|
})(meetingRoom || (meetingRoom = {}));
|
@@ -9328,7 +9472,7 @@ var notifications;
|
|
9328
9472
|
* Limited to Microsoft-internal use
|
9329
9473
|
*/
|
9330
9474
|
function showNotification(showNotificationParameters) {
|
9331
|
-
ensureInitialized(FrameContexts.content);
|
9475
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9332
9476
|
if (!isSupported()) {
|
9333
9477
|
throw errorNotSupportedOnPlatform;
|
9334
9478
|
}
|
@@ -9347,8 +9491,7 @@ var notifications;
|
|
9347
9491
|
* Limited to Microsoft-internal use
|
9348
9492
|
*/
|
9349
9493
|
function isSupported() {
|
9350
|
-
ensureInitialized();
|
9351
|
-
return runtime.supports.notifications ? true : false;
|
9494
|
+
return ensureInitialized(runtime) && runtime.supports.notifications ? true : false;
|
9352
9495
|
}
|
9353
9496
|
notifications.isSupported = isSupported;
|
9354
9497
|
})(notifications || (notifications = {}));
|
@@ -9439,7 +9582,7 @@ var remoteCamera;
|
|
9439
9582
|
if (!callback) {
|
9440
9583
|
throw new Error('[remoteCamera.getCapableParticipants] Callback cannot be null');
|
9441
9584
|
}
|
9442
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9585
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9443
9586
|
if (!isSupported()) {
|
9444
9587
|
throw errorNotSupportedOnPlatform;
|
9445
9588
|
}
|
@@ -9466,7 +9609,7 @@ var remoteCamera;
|
|
9466
9609
|
if (!callback) {
|
9467
9610
|
throw new Error('[remoteCamera.requestControl] Callback cannot be null');
|
9468
9611
|
}
|
9469
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9612
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9470
9613
|
if (!isSupported()) {
|
9471
9614
|
throw errorNotSupportedOnPlatform;
|
9472
9615
|
}
|
@@ -9490,7 +9633,7 @@ var remoteCamera;
|
|
9490
9633
|
if (!callback) {
|
9491
9634
|
throw new Error('[remoteCamera.sendControlCommand] Callback cannot be null');
|
9492
9635
|
}
|
9493
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9636
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9494
9637
|
if (!isSupported()) {
|
9495
9638
|
throw errorNotSupportedOnPlatform;
|
9496
9639
|
}
|
@@ -9510,7 +9653,7 @@ var remoteCamera;
|
|
9510
9653
|
if (!callback) {
|
9511
9654
|
throw new Error('[remoteCamera.terminateSession] Callback cannot be null');
|
9512
9655
|
}
|
9513
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9656
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9514
9657
|
if (!isSupported()) {
|
9515
9658
|
throw errorNotSupportedOnPlatform;
|
9516
9659
|
}
|
@@ -9531,7 +9674,7 @@ var remoteCamera;
|
|
9531
9674
|
if (!handler) {
|
9532
9675
|
throw new Error('[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null');
|
9533
9676
|
}
|
9534
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9677
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9535
9678
|
if (!isSupported()) {
|
9536
9679
|
throw errorNotSupportedOnPlatform;
|
9537
9680
|
}
|
@@ -9552,7 +9695,7 @@ var remoteCamera;
|
|
9552
9695
|
if (!handler) {
|
9553
9696
|
throw new Error('[remoteCamera.registerOnErrorHandler] Handler cannot be null');
|
9554
9697
|
}
|
9555
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9698
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9556
9699
|
if (!isSupported()) {
|
9557
9700
|
throw errorNotSupportedOnPlatform;
|
9558
9701
|
}
|
@@ -9573,7 +9716,7 @@ var remoteCamera;
|
|
9573
9716
|
if (!handler) {
|
9574
9717
|
throw new Error('[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null');
|
9575
9718
|
}
|
9576
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9719
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9577
9720
|
if (!isSupported()) {
|
9578
9721
|
throw errorNotSupportedOnPlatform;
|
9579
9722
|
}
|
@@ -9594,7 +9737,7 @@ var remoteCamera;
|
|
9594
9737
|
if (!handler) {
|
9595
9738
|
throw new Error('[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null');
|
9596
9739
|
}
|
9597
|
-
ensureInitialized(FrameContexts.sidePanel);
|
9740
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9598
9741
|
if (!isSupported()) {
|
9599
9742
|
throw errorNotSupportedOnPlatform;
|
9600
9743
|
}
|
@@ -9613,8 +9756,7 @@ var remoteCamera;
|
|
9613
9756
|
* Limited to Microsoft-internal use
|
9614
9757
|
*/
|
9615
9758
|
function isSupported() {
|
9616
|
-
ensureInitialized();
|
9617
|
-
return runtime.supports.remoteCamera ? true : false;
|
9759
|
+
return ensureInitialized(runtime) && runtime.supports.remoteCamera ? true : false;
|
9618
9760
|
}
|
9619
9761
|
remoteCamera.isSupported = isSupported;
|
9620
9762
|
})(remoteCamera || (remoteCamera = {}));
|
@@ -9651,7 +9793,7 @@ var appEntity;
|
|
9651
9793
|
* Limited to Microsoft-internal use
|
9652
9794
|
*/
|
9653
9795
|
function selectAppEntity(threadId, categories, subEntityId, callback) {
|
9654
|
-
ensureInitialized(FrameContexts.content);
|
9796
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9655
9797
|
if (!isSupported()) {
|
9656
9798
|
throw errorNotSupportedOnPlatform;
|
9657
9799
|
}
|
@@ -9676,8 +9818,7 @@ var appEntity;
|
|
9676
9818
|
* Limited to Microsoft-internal use
|
9677
9819
|
*/
|
9678
9820
|
function isSupported() {
|
9679
|
-
ensureInitialized();
|
9680
|
-
return runtime.supports.appEntity ? true : false;
|
9821
|
+
return ensureInitialized(runtime) && runtime.supports.appEntity ? true : false;
|
9681
9822
|
}
|
9682
9823
|
appEntity_1.isSupported = isSupported;
|
9683
9824
|
})(appEntity || (appEntity = {}));
|
@@ -9715,7 +9856,7 @@ var teams;
|
|
9715
9856
|
* Limited to Microsoft-internal use
|
9716
9857
|
*/
|
9717
9858
|
function getTeamChannels(groupId, callback) {
|
9718
|
-
ensureInitialized(FrameContexts.content);
|
9859
|
+
ensureInitialized(runtime, FrameContexts.content);
|
9719
9860
|
if (!isSupported()) {
|
9720
9861
|
throw errorNotSupportedOnPlatform;
|
9721
9862
|
}
|
@@ -9740,7 +9881,7 @@ var teams;
|
|
9740
9881
|
* Limited to Microsoft-internal use
|
9741
9882
|
*/
|
9742
9883
|
function refreshSiteUrl(threadId, callback) {
|
9743
|
-
ensureInitialized();
|
9884
|
+
ensureInitialized(runtime);
|
9744
9885
|
if (!isSupported()) {
|
9745
9886
|
throw errorNotSupportedOnPlatform;
|
9746
9887
|
}
|
@@ -9765,8 +9906,7 @@ var teams;
|
|
9765
9906
|
* Limited to Microsoft-internal use
|
9766
9907
|
*/
|
9767
9908
|
function isSupported() {
|
9768
|
-
ensureInitialized();
|
9769
|
-
return runtime.supports.teams ? true : false;
|
9909
|
+
return ensureInitialized(runtime) && runtime.supports.teams ? true : false;
|
9770
9910
|
}
|
9771
9911
|
teams.isSupported = isSupported;
|
9772
9912
|
/**
|
@@ -9795,7 +9935,7 @@ var teams;
|
|
9795
9935
|
*/
|
9796
9936
|
function getUserJoinedTeams(teamInstanceParameters) {
|
9797
9937
|
return new Promise(function (resolve) {
|
9798
|
-
ensureInitialized();
|
9938
|
+
ensureInitialized(runtime);
|
9799
9939
|
if (!isSupported()) {
|
9800
9940
|
throw errorNotSupportedOnPlatform;
|
9801
9941
|
}
|
@@ -9824,8 +9964,7 @@ var teams;
|
|
9824
9964
|
* Limited to Microsoft-internal use
|
9825
9965
|
*/
|
9826
9966
|
function isSupported() {
|
9827
|
-
ensureInitialized()
|
9828
|
-
return runtime.supports.teams
|
9967
|
+
return ensureInitialized(runtime) && runtime.supports.teams
|
9829
9968
|
? runtime.supports.teams.fullTrust
|
9830
9969
|
? runtime.supports.teams.fullTrust.joinedTeams
|
9831
9970
|
? true
|
@@ -9847,7 +9986,7 @@ var teams;
|
|
9847
9986
|
*/
|
9848
9987
|
function getConfigSetting(key) {
|
9849
9988
|
return new Promise(function (resolve) {
|
9850
|
-
ensureInitialized();
|
9989
|
+
ensureInitialized(runtime);
|
9851
9990
|
if (!isSupported()) {
|
9852
9991
|
throw errorNotSupportedOnPlatform;
|
9853
9992
|
}
|
@@ -9867,8 +10006,11 @@ var teams;
|
|
9867
10006
|
* Limited to Microsoft-internal use
|
9868
10007
|
*/
|
9869
10008
|
function isSupported() {
|
9870
|
-
ensureInitialized()
|
9871
|
-
|
10009
|
+
return ensureInitialized(runtime) && runtime.supports.teams
|
10010
|
+
? runtime.supports.teams.fullTrust
|
10011
|
+
? true
|
10012
|
+
: false
|
10013
|
+
: false;
|
9872
10014
|
}
|
9873
10015
|
fullTrust.isSupported = isSupported;
|
9874
10016
|
})(fullTrust = teams.fullTrust || (teams.fullTrust = {}));
|
@@ -9880,6 +10022,7 @@ var teams;
|
|
9880
10022
|
|
9881
10023
|
|
9882
10024
|
|
10025
|
+
|
9883
10026
|
/**
|
9884
10027
|
* @hidden
|
9885
10028
|
* Extended video API
|
@@ -9915,7 +10058,7 @@ var videoEx;
|
|
9915
10058
|
* Limited to Microsoft-internal use
|
9916
10059
|
*/
|
9917
10060
|
function registerForVideoFrame(frameCallback, config) {
|
9918
|
-
ensureInitialized(FrameContexts.sidePanel);
|
10061
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9919
10062
|
if (!isSupported()) {
|
9920
10063
|
throw errorNotSupportedOnPlatform;
|
9921
10064
|
}
|
@@ -9944,7 +10087,7 @@ var videoEx;
|
|
9944
10087
|
* Limited to Microsoft-internal use
|
9945
10088
|
*/
|
9946
10089
|
function notifySelectedVideoEffectChanged(effectChangeType, effectId, effectParam) {
|
9947
|
-
ensureInitialized(FrameContexts.sidePanel);
|
10090
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9948
10091
|
if (!isSupported()) {
|
9949
10092
|
throw errorNotSupportedOnPlatform;
|
9950
10093
|
}
|
@@ -9961,7 +10104,7 @@ var videoEx;
|
|
9961
10104
|
* Limited to Microsoft-internal use
|
9962
10105
|
*/
|
9963
10106
|
function registerForVideoEffect(callback) {
|
9964
|
-
ensureInitialized(FrameContexts.sidePanel);
|
10107
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9965
10108
|
if (!isSupported()) {
|
9966
10109
|
throw errorNotSupportedOnPlatform;
|
9967
10110
|
}
|
@@ -9978,7 +10121,7 @@ var videoEx;
|
|
9978
10121
|
* Limited to Microsoft-internal use
|
9979
10122
|
*/
|
9980
10123
|
function updatePersonalizedEffects(effects) {
|
9981
|
-
ensureInitialized(FrameContexts.sidePanel);
|
10124
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
9982
10125
|
if (!video.isSupported()) {
|
9983
10126
|
throw errorNotSupportedOnPlatform;
|
9984
10127
|
}
|
@@ -9999,7 +10142,7 @@ var videoEx;
|
|
9999
10142
|
* Limited to Microsoft-internal use
|
10000
10143
|
*/
|
10001
10144
|
function isSupported() {
|
10002
|
-
ensureInitialized();
|
10145
|
+
ensureInitialized(runtime);
|
10003
10146
|
return video.isSupported();
|
10004
10147
|
}
|
10005
10148
|
videoEx.isSupported = isSupported;
|
@@ -10040,7 +10183,7 @@ var videoEx;
|
|
10040
10183
|
* Limited to Microsoft-internal use
|
10041
10184
|
*/
|
10042
10185
|
function notifyFatalError(errorMessage) {
|
10043
|
-
ensureInitialized();
|
10186
|
+
ensureInitialized(runtime);
|
10044
10187
|
if (!video.isSupported()) {
|
10045
10188
|
throw errorNotSupportedOnPlatform;
|
10046
10189
|
}
|