@microsoft/teams-js 2.3.1-beta.0 → 2.4.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/dist/MicrosoftTeams.d.ts +28 -10
- package/dist/MicrosoftTeams.js +547 -453
- 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 -1
package/dist/MicrosoftTeams.js
CHANGED
@@ -11,6 +11,175 @@
|
|
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
|
+
|
14
183
|
/***/ 22:
|
15
184
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
16
185
|
|
@@ -544,7 +713,7 @@ function setup(env) {
|
|
544
713
|
createDebug.disable = disable;
|
545
714
|
createDebug.enable = enable;
|
546
715
|
createDebug.enabled = enabled;
|
547
|
-
createDebug.humanize = __webpack_require__(
|
716
|
+
createDebug.humanize = __webpack_require__(378);
|
548
717
|
createDebug.destroy = destroy;
|
549
718
|
|
550
719
|
Object.keys(env).forEach(key => {
|
@@ -807,239 +976,70 @@ function setup(env) {
|
|
807
976
|
module.exports = setup;
|
808
977
|
|
809
978
|
|
810
|
-
/***/ })
|
811
|
-
|
812
|
-
/***/ 824:
|
813
|
-
/***/ ((module) => {
|
814
|
-
|
815
|
-
/**
|
816
|
-
* Helpers.
|
817
|
-
*/
|
979
|
+
/***/ })
|
818
980
|
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
var
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
};
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
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__);
|
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
1043
|
|
1044
1044
|
// EXPORTS
|
1045
1045
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -1095,199 +1095,42 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1095
1095
|
"openFilePreview": () => (/* reexport */ openFilePreview),
|
1096
1096
|
"pages": () => (/* reexport */ pages),
|
1097
1097
|
"people": () => (/* reexport */ people),
|
1098
|
-
"print": () => (/* reexport */ print),
|
1099
|
-
"profile": () => (/* reexport */ profile),
|
1100
|
-
"registerAppButtonClickHandler": () => (/* reexport */ registerAppButtonClickHandler),
|
1101
|
-
"registerAppButtonHoverEnterHandler": () => (/* reexport */ registerAppButtonHoverEnterHandler),
|
1102
|
-
"registerAppButtonHoverLeaveHandler": () => (/* reexport */ registerAppButtonHoverLeaveHandler),
|
1103
|
-
"registerBackButtonHandler": () => (/* reexport */ registerBackButtonHandler),
|
1104
|
-
"registerBeforeUnloadHandler": () => (/* reexport */ registerBeforeUnloadHandler),
|
1105
|
-
"registerChangeSettingsHandler": () => (/* reexport */ registerChangeSettingsHandler),
|
1106
|
-
"registerCustomHandler": () => (/* reexport */ registerCustomHandler),
|
1107
|
-
"registerFocusEnterHandler": () => (/* reexport */ registerFocusEnterHandler),
|
1108
|
-
"registerFullScreenHandler": () => (/* reexport */ registerFullScreenHandler),
|
1109
|
-
"registerOnLoadHandler": () => (/* reexport */ registerOnLoadHandler),
|
1110
|
-
"registerOnThemeChangeHandler": () => (/* reexport */ registerOnThemeChangeHandler),
|
1111
|
-
"registerUserSettingsChangeHandler": () => (/* reexport */ registerUserSettingsChangeHandler),
|
1112
|
-
"remoteCamera": () => (/* reexport */ remoteCamera),
|
1113
|
-
"returnFocus": () => (/* reexport */ returnFocus),
|
1114
|
-
"search": () => (/* reexport */ search),
|
1115
|
-
"sendCustomEvent": () => (/* reexport */ sendCustomEvent),
|
1116
|
-
"sendCustomMessage": () => (/* reexport */ sendCustomMessage),
|
1117
|
-
"setFrameContext": () => (/* reexport */ setFrameContext),
|
1118
|
-
"settings": () => (/* reexport */ settings),
|
1119
|
-
"shareDeepLink": () => (/* reexport */ shareDeepLink),
|
1120
|
-
"sharing": () => (/* reexport */ sharing),
|
1121
|
-
"stageView": () => (/* reexport */ stageView),
|
1122
|
-
"tasks": () => (/* reexport */ tasks),
|
1123
|
-
"teams": () => (/* reexport */ teams),
|
1124
|
-
"teamsCore": () => (/* reexport */ teamsCore),
|
1125
|
-
"uploadCustomApp": () => (/* reexport */ uploadCustomApp),
|
1126
|
-
"
|
1127
|
-
"
|
1128
|
-
"
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
* @hidden
|
1135
|
-
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
1136
|
-
* Modified to 2.0.1 which is hightest till now so that if any client doesn't pass version in initialize function, it will be set to highest.
|
1137
|
-
* Mobile clients are passing versions, hence will be applicable to web and desktop clients only.
|
1138
|
-
*
|
1139
|
-
* @internal
|
1140
|
-
* Limited to Microsoft-internal use
|
1141
|
-
*/
|
1142
|
-
var defaultSDKVersionForCompatCheck = '2.0.1';
|
1143
|
-
/**
|
1144
|
-
* @hidden
|
1145
|
-
* This is the client version when selectMedia API - VideoAndImage is supported on mobile.
|
1146
|
-
*
|
1147
|
-
* @internal
|
1148
|
-
* Limited to Microsoft-internal use
|
1149
|
-
*/
|
1150
|
-
var videoAndImageMediaAPISupportVersion = '2.0.2';
|
1151
|
-
/**
|
1152
|
-
* @hidden
|
1153
|
-
* This is the client version when selectMedia API - Video with non-full screen mode is supported on mobile.
|
1154
|
-
*
|
1155
|
-
* @internal
|
1156
|
-
* Limited to Microsoft-internal use
|
1157
|
-
*/
|
1158
|
-
var nonFullScreenVideoModeAPISupportVersion = '2.0.3';
|
1159
|
-
/**
|
1160
|
-
* @hidden
|
1161
|
-
* This is the client version when selectMedia API - ImageOutputFormats is supported on mobile.
|
1162
|
-
*
|
1163
|
-
* @internal
|
1164
|
-
* Limited to Microsoft-internal use
|
1165
|
-
*/
|
1166
|
-
var imageOutputFormatsAPISupportVersion = '2.0.4';
|
1167
|
-
/**
|
1168
|
-
* @hidden
|
1169
|
-
* Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
|
1170
|
-
*
|
1171
|
-
* @internal
|
1172
|
-
* Limited to Microsoft-internal use
|
1173
|
-
*/
|
1174
|
-
var getUserJoinedTeamsSupportedAndroidClientVersion = '2.0.1';
|
1175
|
-
/**
|
1176
|
-
* @hidden
|
1177
|
-
* This is the client version when location APIs (getLocation and showLocation) are supported.
|
1178
|
-
*
|
1179
|
-
* @internal
|
1180
|
-
* Limited to Microsoft-internal use
|
1181
|
-
*/
|
1182
|
-
var locationAPIsRequiredVersion = '1.9.0';
|
1183
|
-
/**
|
1184
|
-
* @hidden
|
1185
|
-
* This is the client version when permisisons are supported
|
1186
|
-
*
|
1187
|
-
* @internal
|
1188
|
-
* Limited to Microsoft-internal use
|
1189
|
-
*/
|
1190
|
-
var permissionsAPIsRequiredVersion = '2.0.1';
|
1191
|
-
/**
|
1192
|
-
* @hidden
|
1193
|
-
* This is the client version when people picker API is supported on mobile.
|
1194
|
-
*
|
1195
|
-
* @internal
|
1196
|
-
* Limited to Microsoft-internal use
|
1197
|
-
*/
|
1198
|
-
var peoplePickerRequiredVersion = '2.0.0';
|
1199
|
-
/**
|
1200
|
-
* @hidden
|
1201
|
-
* This is the client version when captureImage API is supported on mobile.
|
1202
|
-
*
|
1203
|
-
* @internal
|
1204
|
-
* Limited to Microsoft-internal use
|
1205
|
-
*/
|
1206
|
-
var captureImageMobileSupportVersion = '1.7.0';
|
1207
|
-
/**
|
1208
|
-
* @hidden
|
1209
|
-
* This is the client version when media APIs are supported on all three platforms ios, android and web.
|
1210
|
-
*
|
1211
|
-
* @internal
|
1212
|
-
* Limited to Microsoft-internal use
|
1213
|
-
*/
|
1214
|
-
var mediaAPISupportVersion = '1.8.0';
|
1215
|
-
/**
|
1216
|
-
* @hidden
|
1217
|
-
* This is the client version when getMedia API is supported via Callbacks on all three platforms ios, android and web.
|
1218
|
-
*
|
1219
|
-
* @internal
|
1220
|
-
* Limited to Microsoft-internal use
|
1221
|
-
*/
|
1222
|
-
var getMediaCallbackSupportVersion = '2.0.0';
|
1223
|
-
/**
|
1224
|
-
* @hidden
|
1225
|
-
* This is the client version when scanBarCode API is supported on mobile.
|
1226
|
-
*
|
1227
|
-
* @internal
|
1228
|
-
* Limited to Microsoft-internal use
|
1229
|
-
*/
|
1230
|
-
var scanBarCodeAPIMobileSupportVersion = '1.9.0';
|
1231
|
-
/**
|
1232
|
-
* @hidden
|
1233
|
-
* List of supported Host origins
|
1234
|
-
*
|
1235
|
-
* @internal
|
1236
|
-
* Limited to Microsoft-internal use
|
1237
|
-
*/
|
1238
|
-
var validOrigins = [
|
1239
|
-
'teams.microsoft.com',
|
1240
|
-
'teams.microsoft.us',
|
1241
|
-
'gov.teams.microsoft.us',
|
1242
|
-
'dod.teams.microsoft.us',
|
1243
|
-
'int.teams.microsoft.com',
|
1244
|
-
'teams.live.com',
|
1245
|
-
'devspaces.skype.com',
|
1246
|
-
'ssauth.skype.com',
|
1247
|
-
'local.teams.live.com',
|
1248
|
-
'local.teams.live.com:8080',
|
1249
|
-
'local.teams.office.com',
|
1250
|
-
'local.teams.office.com:8080',
|
1251
|
-
'msft.spoppe.com',
|
1252
|
-
'*.sharepoint.com',
|
1253
|
-
'*.sharepoint-df.com',
|
1254
|
-
'*.sharepointonline.com',
|
1255
|
-
'outlook.office.com',
|
1256
|
-
'outlook-sdf.office.com',
|
1257
|
-
'outlook.office365.com',
|
1258
|
-
'outlook-sdf.office365.com',
|
1259
|
-
'*.teams.microsoft.com',
|
1260
|
-
'www.office.com',
|
1261
|
-
'word.office.com',
|
1262
|
-
'excel.office.com',
|
1263
|
-
'powerpoint.office.com',
|
1264
|
-
'www.officeppe.com',
|
1265
|
-
'*.www.office.com',
|
1266
|
-
];
|
1267
|
-
/**
|
1268
|
-
* @hidden
|
1269
|
-
* USer specified message origins should satisfy this test
|
1270
|
-
*
|
1271
|
-
* @internal
|
1272
|
-
* Limited to Microsoft-internal use
|
1273
|
-
*/
|
1274
|
-
var userOriginUrlValidationRegExp = /^https:\/\//;
|
1275
|
-
/**
|
1276
|
-
* @hidden
|
1277
|
-
* The protocol used for deep links into Teams
|
1278
|
-
*
|
1279
|
-
* @internal
|
1280
|
-
* Limited to Microsoft-internal use
|
1281
|
-
*/
|
1282
|
-
var teamsDeepLinkProtocol = 'https';
|
1283
|
-
/**
|
1284
|
-
* @hidden
|
1285
|
-
* The host used for deep links into Teams
|
1286
|
-
*
|
1287
|
-
* @internal
|
1288
|
-
* Limited to Microsoft-internal use
|
1289
|
-
*/
|
1290
|
-
var teamsDeepLinkHost = 'teams.microsoft.com';
|
1098
|
+
"print": () => (/* reexport */ print),
|
1099
|
+
"profile": () => (/* reexport */ profile),
|
1100
|
+
"registerAppButtonClickHandler": () => (/* reexport */ registerAppButtonClickHandler),
|
1101
|
+
"registerAppButtonHoverEnterHandler": () => (/* reexport */ registerAppButtonHoverEnterHandler),
|
1102
|
+
"registerAppButtonHoverLeaveHandler": () => (/* reexport */ registerAppButtonHoverLeaveHandler),
|
1103
|
+
"registerBackButtonHandler": () => (/* reexport */ registerBackButtonHandler),
|
1104
|
+
"registerBeforeUnloadHandler": () => (/* reexport */ registerBeforeUnloadHandler),
|
1105
|
+
"registerChangeSettingsHandler": () => (/* reexport */ registerChangeSettingsHandler),
|
1106
|
+
"registerCustomHandler": () => (/* reexport */ registerCustomHandler),
|
1107
|
+
"registerFocusEnterHandler": () => (/* reexport */ registerFocusEnterHandler),
|
1108
|
+
"registerFullScreenHandler": () => (/* reexport */ registerFullScreenHandler),
|
1109
|
+
"registerOnLoadHandler": () => (/* reexport */ registerOnLoadHandler),
|
1110
|
+
"registerOnThemeChangeHandler": () => (/* reexport */ registerOnThemeChangeHandler),
|
1111
|
+
"registerUserSettingsChangeHandler": () => (/* reexport */ registerUserSettingsChangeHandler),
|
1112
|
+
"remoteCamera": () => (/* reexport */ remoteCamera),
|
1113
|
+
"returnFocus": () => (/* reexport */ returnFocus),
|
1114
|
+
"search": () => (/* reexport */ search),
|
1115
|
+
"sendCustomEvent": () => (/* reexport */ sendCustomEvent),
|
1116
|
+
"sendCustomMessage": () => (/* reexport */ sendCustomMessage),
|
1117
|
+
"setFrameContext": () => (/* reexport */ setFrameContext),
|
1118
|
+
"settings": () => (/* reexport */ settings),
|
1119
|
+
"shareDeepLink": () => (/* reexport */ shareDeepLink),
|
1120
|
+
"sharing": () => (/* reexport */ sharing),
|
1121
|
+
"stageView": () => (/* reexport */ stageView),
|
1122
|
+
"tasks": () => (/* reexport */ tasks),
|
1123
|
+
"teams": () => (/* reexport */ teams),
|
1124
|
+
"teamsCore": () => (/* reexport */ teamsCore),
|
1125
|
+
"uploadCustomApp": () => (/* reexport */ uploadCustomApp),
|
1126
|
+
"version": () => (/* reexport */ version),
|
1127
|
+
"video": () => (/* reexport */ video),
|
1128
|
+
"videoEx": () => (/* reexport */ videoEx),
|
1129
|
+
"webStorage": () => (/* reexport */ webStorage)
|
1130
|
+
});
|
1131
|
+
|
1132
|
+
;// CONCATENATED MODULE: ./src/public/version.ts
|
1133
|
+
var version = "2.4.0-beta.0";
|
1291
1134
|
|
1292
1135
|
;// CONCATENATED MODULE: ./src/internal/globalVars.ts
|
1293
1136
|
var GlobalVars = /** @class */ (function () {
|
@@ -1425,9 +1268,26 @@ var HostClientType;
|
|
1425
1268
|
})(HostClientType || (HostClientType = {}));
|
1426
1269
|
var HostName;
|
1427
1270
|
(function (HostName) {
|
1271
|
+
/**
|
1272
|
+
* Office.com and Office Windows App
|
1273
|
+
*/
|
1428
1274
|
HostName["office"] = "Office";
|
1275
|
+
/**
|
1276
|
+
* For "desktop" specifically, this refers to the new, pre-release version of Outlook for Windows.
|
1277
|
+
* Also used on other platforms that map to a single Outlook client.
|
1278
|
+
*/
|
1429
1279
|
HostName["outlook"] = "Outlook";
|
1280
|
+
/**
|
1281
|
+
* Outlook for Windows: the classic, native, desktop client
|
1282
|
+
*/
|
1283
|
+
HostName["outlookWin32"] = "OutlookWin32";
|
1284
|
+
/**
|
1285
|
+
* Microsoft-internal test Host
|
1286
|
+
*/
|
1430
1287
|
HostName["orange"] = "Orange";
|
1288
|
+
/**
|
1289
|
+
* Teams
|
1290
|
+
*/
|
1431
1291
|
HostName["teams"] = "Teams";
|
1432
1292
|
})(HostName || (HostName = {}));
|
1433
1293
|
// Ensure these declarations stay in sync with the framework.
|
@@ -1490,6 +1350,166 @@ var ChannelType;
|
|
1490
1350
|
})(ChannelType || (ChannelType = {}));
|
1491
1351
|
var errorNotSupportedOnPlatform = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
1492
1352
|
|
1353
|
+
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1354
|
+
/**
|
1355
|
+
* @hidden
|
1356
|
+
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
1357
|
+
* Modified to 2.0.1 which is hightest till now so that if any client doesn't pass version in initialize function, it will be set to highest.
|
1358
|
+
* Mobile clients are passing versions, hence will be applicable to web and desktop clients only.
|
1359
|
+
*
|
1360
|
+
* @internal
|
1361
|
+
* Limited to Microsoft-internal use
|
1362
|
+
*/
|
1363
|
+
var defaultSDKVersionForCompatCheck = '2.0.1';
|
1364
|
+
/**
|
1365
|
+
* @hidden
|
1366
|
+
* This is the client version when selectMedia API - VideoAndImage is supported on mobile.
|
1367
|
+
*
|
1368
|
+
* @internal
|
1369
|
+
* Limited to Microsoft-internal use
|
1370
|
+
*/
|
1371
|
+
var videoAndImageMediaAPISupportVersion = '2.0.2';
|
1372
|
+
/**
|
1373
|
+
* @hidden
|
1374
|
+
* This is the client version when selectMedia API - Video with non-full screen mode is supported on mobile.
|
1375
|
+
*
|
1376
|
+
* @internal
|
1377
|
+
* Limited to Microsoft-internal use
|
1378
|
+
*/
|
1379
|
+
var nonFullScreenVideoModeAPISupportVersion = '2.0.3';
|
1380
|
+
/**
|
1381
|
+
* @hidden
|
1382
|
+
* This is the client version when selectMedia API - ImageOutputFormats is supported on mobile.
|
1383
|
+
*
|
1384
|
+
* @internal
|
1385
|
+
* Limited to Microsoft-internal use
|
1386
|
+
*/
|
1387
|
+
var imageOutputFormatsAPISupportVersion = '2.0.4';
|
1388
|
+
/**
|
1389
|
+
* @hidden
|
1390
|
+
* Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
|
1391
|
+
*
|
1392
|
+
* @internal
|
1393
|
+
* Limited to Microsoft-internal use
|
1394
|
+
*/
|
1395
|
+
var getUserJoinedTeamsSupportedAndroidClientVersion = '2.0.1';
|
1396
|
+
/**
|
1397
|
+
* @hidden
|
1398
|
+
* This is the client version when location APIs (getLocation and showLocation) are supported.
|
1399
|
+
*
|
1400
|
+
* @internal
|
1401
|
+
* Limited to Microsoft-internal use
|
1402
|
+
*/
|
1403
|
+
var locationAPIsRequiredVersion = '1.9.0';
|
1404
|
+
/**
|
1405
|
+
* @hidden
|
1406
|
+
* This is the client version when permisisons are supported
|
1407
|
+
*
|
1408
|
+
* @internal
|
1409
|
+
* Limited to Microsoft-internal use
|
1410
|
+
*/
|
1411
|
+
var permissionsAPIsRequiredVersion = '2.0.1';
|
1412
|
+
/**
|
1413
|
+
* @hidden
|
1414
|
+
* This is the client version when people picker API is supported on mobile.
|
1415
|
+
*
|
1416
|
+
* @internal
|
1417
|
+
* Limited to Microsoft-internal use
|
1418
|
+
*/
|
1419
|
+
var peoplePickerRequiredVersion = '2.0.0';
|
1420
|
+
/**
|
1421
|
+
* @hidden
|
1422
|
+
* This is the client version when captureImage API is supported on mobile.
|
1423
|
+
*
|
1424
|
+
* @internal
|
1425
|
+
* Limited to Microsoft-internal use
|
1426
|
+
*/
|
1427
|
+
var captureImageMobileSupportVersion = '1.7.0';
|
1428
|
+
/**
|
1429
|
+
* @hidden
|
1430
|
+
* This is the client version when media APIs are supported on all three platforms ios, android and web.
|
1431
|
+
*
|
1432
|
+
* @internal
|
1433
|
+
* Limited to Microsoft-internal use
|
1434
|
+
*/
|
1435
|
+
var mediaAPISupportVersion = '1.8.0';
|
1436
|
+
/**
|
1437
|
+
* @hidden
|
1438
|
+
* This is the client version when getMedia API is supported via Callbacks on all three platforms ios, android and web.
|
1439
|
+
*
|
1440
|
+
* @internal
|
1441
|
+
* Limited to Microsoft-internal use
|
1442
|
+
*/
|
1443
|
+
var getMediaCallbackSupportVersion = '2.0.0';
|
1444
|
+
/**
|
1445
|
+
* @hidden
|
1446
|
+
* This is the client version when scanBarCode API is supported on mobile.
|
1447
|
+
*
|
1448
|
+
* @internal
|
1449
|
+
* Limited to Microsoft-internal use
|
1450
|
+
*/
|
1451
|
+
var scanBarCodeAPIMobileSupportVersion = '1.9.0';
|
1452
|
+
/**
|
1453
|
+
* @hidden
|
1454
|
+
* List of supported Host origins
|
1455
|
+
*
|
1456
|
+
* @internal
|
1457
|
+
* Limited to Microsoft-internal use
|
1458
|
+
*/
|
1459
|
+
var validOrigins = [
|
1460
|
+
'teams.microsoft.com',
|
1461
|
+
'teams.microsoft.us',
|
1462
|
+
'gov.teams.microsoft.us',
|
1463
|
+
'dod.teams.microsoft.us',
|
1464
|
+
'int.teams.microsoft.com',
|
1465
|
+
'teams.live.com',
|
1466
|
+
'devspaces.skype.com',
|
1467
|
+
'ssauth.skype.com',
|
1468
|
+
'local.teams.live.com',
|
1469
|
+
'local.teams.live.com:8080',
|
1470
|
+
'local.teams.office.com',
|
1471
|
+
'local.teams.office.com:8080',
|
1472
|
+
'msft.spoppe.com',
|
1473
|
+
'*.sharepoint.com',
|
1474
|
+
'*.sharepoint-df.com',
|
1475
|
+
'*.sharepointonline.com',
|
1476
|
+
'outlook.office.com',
|
1477
|
+
'outlook-sdf.office.com',
|
1478
|
+
'outlook.office365.com',
|
1479
|
+
'outlook-sdf.office365.com',
|
1480
|
+
'*.teams.microsoft.com',
|
1481
|
+
'www.office.com',
|
1482
|
+
'word.office.com',
|
1483
|
+
'excel.office.com',
|
1484
|
+
'powerpoint.office.com',
|
1485
|
+
'www.officeppe.com',
|
1486
|
+
'*.www.office.com',
|
1487
|
+
];
|
1488
|
+
/**
|
1489
|
+
* @hidden
|
1490
|
+
* USer specified message origins should satisfy this test
|
1491
|
+
*
|
1492
|
+
* @internal
|
1493
|
+
* Limited to Microsoft-internal use
|
1494
|
+
*/
|
1495
|
+
var userOriginUrlValidationRegExp = /^https:\/\//;
|
1496
|
+
/**
|
1497
|
+
* @hidden
|
1498
|
+
* The protocol used for deep links into Teams
|
1499
|
+
*
|
1500
|
+
* @internal
|
1501
|
+
* Limited to Microsoft-internal use
|
1502
|
+
*/
|
1503
|
+
var teamsDeepLinkProtocol = 'https';
|
1504
|
+
/**
|
1505
|
+
* @hidden
|
1506
|
+
* The host used for deep links into Teams
|
1507
|
+
*
|
1508
|
+
* @internal
|
1509
|
+
* Limited to Microsoft-internal use
|
1510
|
+
*/
|
1511
|
+
var teamsDeepLinkHost = 'teams.microsoft.com';
|
1512
|
+
|
1493
1513
|
// EXTERNAL MODULE: ../../node_modules/uuid/index.js
|
1494
1514
|
var uuid = __webpack_require__(22);
|
1495
1515
|
;// CONCATENATED MODULE: ./src/internal/utils.ts
|
@@ -1920,6 +1940,21 @@ function processAdditionalValidOrigins(validMessageOrigins) {
|
|
1920
1940
|
GlobalVars.additionalValidOrigins = combinedOriginUrls;
|
1921
1941
|
}
|
1922
1942
|
|
1943
|
+
// EXTERNAL MODULE: ./node_modules/debug/src/browser.js
|
1944
|
+
var browser = __webpack_require__(227);
|
1945
|
+
;// CONCATENATED MODULE: ./src/internal/telemetry.ts
|
1946
|
+
|
1947
|
+
var topLevelLogger = (0,browser.debug)('teamsJs');
|
1948
|
+
/**
|
1949
|
+
* @internal
|
1950
|
+
* Limited to Microsoft-internal use
|
1951
|
+
*
|
1952
|
+
* Returns a logger for a given namespace, within the pre-defined top-level teamsJs namespace
|
1953
|
+
*/
|
1954
|
+
function getLogger(namespace) {
|
1955
|
+
return topLevelLogger.extend(namespace);
|
1956
|
+
}
|
1957
|
+
|
1923
1958
|
;// CONCATENATED MODULE: ./src/public/authentication.ts
|
1924
1959
|
|
1925
1960
|
|
@@ -1935,13 +1970,16 @@ function processAdditionalValidOrigins(validMessageOrigins) {
|
|
1935
1970
|
*/
|
1936
1971
|
var authentication;
|
1937
1972
|
(function (authentication) {
|
1973
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
1938
1974
|
var authHandlers;
|
1975
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
1939
1976
|
var authWindowMonitor;
|
1940
1977
|
function initialize() {
|
1941
1978
|
registerHandler('authentication.authenticate.success', handleSuccess, false);
|
1942
1979
|
registerHandler('authentication.authenticate.failure', handleFailure, false);
|
1943
1980
|
}
|
1944
1981
|
authentication.initialize = initialize;
|
1982
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
1945
1983
|
var authParams;
|
1946
1984
|
/**
|
1947
1985
|
* @deprecated
|
@@ -1956,6 +1994,7 @@ var authentication;
|
|
1956
1994
|
authentication.registerAuthenticationHandlers = registerAuthenticationHandlers;
|
1957
1995
|
function authenticate(authenticateParameters) {
|
1958
1996
|
var isDifferentParamsInCall = authenticateParameters !== undefined;
|
1997
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
1959
1998
|
var authenticateParams = isDifferentParamsInCall ? authenticateParameters : authParams;
|
1960
1999
|
if (!authenticateParams) {
|
1961
2000
|
throw new Error('No parameters are provided for authentication');
|
@@ -2313,6 +2352,8 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
2313
2352
|
|
2314
2353
|
|
2315
2354
|
|
2355
|
+
|
2356
|
+
var runtimeLogger = getLogger('runtime');
|
2316
2357
|
var runtime = {
|
2317
2358
|
apiVersion: 1,
|
2318
2359
|
supports: {
|
@@ -2445,6 +2486,7 @@ var versionConstants = {
|
|
2445
2486
|
},
|
2446
2487
|
],
|
2447
2488
|
};
|
2489
|
+
var generateBackCompatRuntimeConfigLogger = runtimeLogger.extend('generateBackCompatRuntimeConfig');
|
2448
2490
|
/**
|
2449
2491
|
* @internal
|
2450
2492
|
* Limited to Microsoft-internal use
|
@@ -2457,7 +2499,9 @@ var versionConstants = {
|
|
2457
2499
|
* @returns runtime which describes the APIs supported by the legacy host client.
|
2458
2500
|
*/
|
2459
2501
|
function generateBackCompatRuntimeConfig(highestSupportedVersion) {
|
2502
|
+
generateBackCompatRuntimeConfigLogger('generating back compat runtime config for %s', highestSupportedVersion);
|
2460
2503
|
var newSupports = __assign({}, teamsRuntimeConfig.supports);
|
2504
|
+
generateBackCompatRuntimeConfigLogger('Supported capabilities in config before updating based on highestSupportedVersion: %o', newSupports);
|
2461
2505
|
Object.keys(versionConstants).forEach(function (versionNumber) {
|
2462
2506
|
if (compareSDKVersions(highestSupportedVersion, versionNumber) >= 0) {
|
2463
2507
|
versionConstants[versionNumber].forEach(function (capabilityReqs) {
|
@@ -2472,9 +2516,12 @@ function generateBackCompatRuntimeConfig(highestSupportedVersion) {
|
|
2472
2516
|
isLegacyTeams: true,
|
2473
2517
|
supports: newSupports,
|
2474
2518
|
};
|
2519
|
+
generateBackCompatRuntimeConfigLogger('Runtime config after updating based on highestSupportedVersion: %o', backCompatRuntimeConfig);
|
2475
2520
|
return backCompatRuntimeConfig;
|
2476
2521
|
}
|
2522
|
+
var applyRuntimeConfigLogger = runtimeLogger.extend('applyRuntimeConfig');
|
2477
2523
|
function applyRuntimeConfig(runtimeConfig) {
|
2524
|
+
applyRuntimeConfigLogger('Applying runtime %o', runtimeConfig);
|
2478
2525
|
runtime = deepFreeze(runtimeConfig);
|
2479
2526
|
}
|
2480
2527
|
/**
|
@@ -2818,9 +2865,11 @@ var menus;
|
|
2818
2865
|
MenuListType["dropDown"] = "dropDown";
|
2819
2866
|
MenuListType["popOver"] = "popOver";
|
2820
2867
|
})(MenuListType = menus.MenuListType || (menus.MenuListType = {}));
|
2868
|
+
/* eslint-disable strict-null-checks/all */ /* Fix tracked by 5730662 */
|
2821
2869
|
var navBarMenuItemPressHandler;
|
2822
2870
|
var actionMenuItemPressHandler;
|
2823
2871
|
var viewConfigItemPressHandler;
|
2872
|
+
/* eslint-enable strict-null-checks/all */ /* Fix tracked by 5730662 */
|
2824
2873
|
function initialize() {
|
2825
2874
|
registerHandler('navBarMenuItemPress', handleNavBarMenuItemPress, false);
|
2826
2875
|
registerHandler('actionMenuItemPress', handleActionMenuItemPress, false);
|
@@ -3039,6 +3088,8 @@ var teamsCore;
|
|
3039
3088
|
|
3040
3089
|
|
3041
3090
|
|
3091
|
+
|
3092
|
+
|
3042
3093
|
/**
|
3043
3094
|
* Namespace to interact with app initialization and lifecycle.
|
3044
3095
|
*
|
@@ -3046,6 +3097,7 @@ var teamsCore;
|
|
3046
3097
|
*/
|
3047
3098
|
var app_app;
|
3048
3099
|
(function (app) {
|
3100
|
+
var appLogger = getLogger('app');
|
3049
3101
|
// ::::::::::::::::::::::: MicrosoftTeams client SDK public API ::::::::::::::::::::
|
3050
3102
|
app.Messages = {
|
3051
3103
|
AppLoaded: 'appInitialization.appLoaded',
|
@@ -3133,6 +3185,7 @@ var app_app;
|
|
3133
3185
|
return runWithTimeout(function () { return initializeHelper(validMessageOrigins); }, initializationTimeoutInMs, new Error('SDK initialization timed out.'));
|
3134
3186
|
}
|
3135
3187
|
app.initialize = initialize;
|
3188
|
+
var initializeHelperLogger = appLogger.extend('initializeHelper');
|
3136
3189
|
function initializeHelper(validMessageOrigins) {
|
3137
3190
|
return new Promise(function (resolve) {
|
3138
3191
|
// Independent components might not know whether the SDK is initialized so might call it to be safe.
|
@@ -3155,7 +3208,10 @@ var app_app;
|
|
3155
3208
|
// so we assume that if we don't have it, we must be running in Teams.
|
3156
3209
|
// After Teams updates its client code, we can remove this default code.
|
3157
3210
|
try {
|
3211
|
+
initializeHelperLogger('Parsing %s', runtimeConfig);
|
3212
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3158
3213
|
var givenRuntimeConfig = JSON.parse(runtimeConfig);
|
3214
|
+
initializeHelperLogger('Checking if %o is a valid runtime object', givenRuntimeConfig);
|
3159
3215
|
// Check that givenRuntimeConfig is a valid instance of IRuntimeConfig
|
3160
3216
|
if (!givenRuntimeConfig || !givenRuntimeConfig.apiVersion) {
|
3161
3217
|
throw new Error('Received runtime config is invalid');
|
@@ -3165,6 +3221,7 @@ var app_app;
|
|
3165
3221
|
catch (e) {
|
3166
3222
|
if (e instanceof SyntaxError) {
|
3167
3223
|
try {
|
3224
|
+
initializeHelperLogger('Attempting to parse %s as an SDK version', runtimeConfig);
|
3168
3225
|
// if the given runtime config was actually meant to be a SDK version, store it as such.
|
3169
3226
|
// TODO: This is a temporary workaround to allow Teams to store clientSupportedSDKVersion even when
|
3170
3227
|
// it doesn't provide the runtimeConfig. After Teams updates its client code, we should
|
@@ -3172,6 +3229,7 @@ var app_app;
|
|
3172
3229
|
if (!isNaN(compareSDKVersions(runtimeConfig, defaultSDKVersionForCompatCheck))) {
|
3173
3230
|
GlobalVars.clientSupportedSDKVersion = runtimeConfig;
|
3174
3231
|
}
|
3232
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3175
3233
|
var givenRuntimeConfig = JSON.parse(clientSupportedSDKVersion);
|
3176
3234
|
clientSupportedSDKVersion && applyRuntimeConfig(givenRuntimeConfig);
|
3177
3235
|
}
|
@@ -3226,17 +3284,21 @@ var app_app;
|
|
3226
3284
|
return;
|
3227
3285
|
}
|
3228
3286
|
if (GlobalVars.frameContext) {
|
3287
|
+
/* eslint-disable strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3229
3288
|
registerOnThemeChangeHandler(null);
|
3230
3289
|
pages.backStack.registerBackButtonHandler(null);
|
3231
3290
|
pages.registerFullScreenHandler(null);
|
3232
3291
|
teamsCore.registerBeforeUnloadHandler(null);
|
3233
3292
|
teamsCore.registerOnLoadHandler(null);
|
3234
|
-
logs.registerGetLogHandler(null);
|
3293
|
+
logs.registerGetLogHandler(null); /* Fix tracked by 5730662 */
|
3294
|
+
/* eslint-enable strict-null-checks/all */
|
3235
3295
|
}
|
3236
3296
|
if (GlobalVars.frameContext === FrameContexts.settings) {
|
3297
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3237
3298
|
pages.config.registerOnSaveHandler(null);
|
3238
3299
|
}
|
3239
3300
|
if (GlobalVars.frameContext === FrameContexts.remove) {
|
3301
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3240
3302
|
pages.config.registerOnRemoveHandler(null);
|
3241
3303
|
}
|
3242
3304
|
GlobalVars.initializeCalled = false;
|
@@ -3634,6 +3696,7 @@ var pages;
|
|
3634
3696
|
if (!isSupported()) {
|
3635
3697
|
throw errorNotSupportedOnPlatform;
|
3636
3698
|
}
|
3699
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3637
3700
|
resolve(sendAndUnwrap('getTabInstances', tabInstanceParameters));
|
3638
3701
|
});
|
3639
3702
|
}
|
@@ -3649,6 +3712,7 @@ var pages;
|
|
3649
3712
|
if (!isSupported()) {
|
3650
3713
|
throw errorNotSupportedOnPlatform;
|
3651
3714
|
}
|
3715
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3652
3716
|
resolve(sendAndUnwrap('getMruTabInstances', tabInstanceParameters));
|
3653
3717
|
});
|
3654
3718
|
}
|
@@ -3669,7 +3733,9 @@ var pages;
|
|
3669
3733
|
*/
|
3670
3734
|
var config;
|
3671
3735
|
(function (config) {
|
3736
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3672
3737
|
var saveHandler;
|
3738
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3673
3739
|
var removeHandler;
|
3674
3740
|
/**
|
3675
3741
|
* @hidden
|
@@ -3879,6 +3945,7 @@ var pages;
|
|
3879
3945
|
*/
|
3880
3946
|
var backStack;
|
3881
3947
|
(function (backStack) {
|
3948
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
3882
3949
|
var backButtonPressHandler;
|
3883
3950
|
function _initialize() {
|
3884
3951
|
registerHandler('backButtonPress', handleBackButtonPress, false);
|
@@ -4053,21 +4120,6 @@ var pages;
|
|
4053
4120
|
})(appButton = pages.appButton || (pages.appButton = {}));
|
4054
4121
|
})(pages || (pages = {}));
|
4055
4122
|
|
4056
|
-
// EXTERNAL MODULE: ./node_modules/debug/src/browser.js
|
4057
|
-
var browser = __webpack_require__(227);
|
4058
|
-
;// CONCATENATED MODULE: ./src/internal/telemetry.ts
|
4059
|
-
|
4060
|
-
var topLevelLogger = (0,browser.debug)('teamsJs');
|
4061
|
-
/**
|
4062
|
-
* @internal
|
4063
|
-
* Limited to Microsoft-internal use
|
4064
|
-
*
|
4065
|
-
* Returns a logger for a given namespace, within the pre-defined top-level teamsJs namespace
|
4066
|
-
*/
|
4067
|
-
function getLogger(namespace) {
|
4068
|
-
return topLevelLogger.extend(namespace);
|
4069
|
-
}
|
4070
|
-
|
4071
4123
|
;// CONCATENATED MODULE: ./src/internal/handlers.ts
|
4072
4124
|
/* eslint-disable @typescript-eslint/ban-types */
|
4073
4125
|
var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
|
@@ -4401,6 +4453,7 @@ function sendMessageToParentAsync(actionName, args) {
|
|
4401
4453
|
if (args === void 0) { args = undefined; }
|
4402
4454
|
return new Promise(function (resolve) {
|
4403
4455
|
var request = sendMessageToParentHelper(actionName, args);
|
4456
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4404
4457
|
resolve(waitForResponse(request.id));
|
4405
4458
|
});
|
4406
4459
|
}
|
@@ -4425,6 +4478,7 @@ function sendMessageToParent(actionName, argsOrCallback, callback) {
|
|
4425
4478
|
else if (argsOrCallback instanceof Array) {
|
4426
4479
|
args = argsOrCallback;
|
4427
4480
|
}
|
4481
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4428
4482
|
var request = sendMessageToParentHelper(actionName, args);
|
4429
4483
|
if (callback) {
|
4430
4484
|
CommunicationPrivate.callbacks[request.id] = callback;
|
@@ -4439,9 +4493,11 @@ function sendMessageToParentHelper(actionName, args) {
|
|
4439
4493
|
var logger = sendMessageToParentHelperLogger;
|
4440
4494
|
var targetWindow = Communication.parentWindow;
|
4441
4495
|
var request = createMessageRequest(actionName, args);
|
4496
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4442
4497
|
logger('Message %i information: %o', request.id, { actionName: actionName, args: args });
|
4443
4498
|
if (GlobalVars.isFramelessWindow) {
|
4444
4499
|
if (Communication.currentWindow && Communication.currentWindow.nativeInterface) {
|
4500
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4445
4501
|
logger('Sending message %i to parent via framelessPostMessage interface', request.id);
|
4446
4502
|
Communication.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(request));
|
4447
4503
|
}
|
@@ -4451,10 +4507,12 @@ function sendMessageToParentHelper(actionName, args) {
|
|
4451
4507
|
// If the target window isn't closed and we already know its origin, send the message right away; otherwise,
|
4452
4508
|
// queue the message and send it after the origin is established
|
4453
4509
|
if (targetWindow && targetOrigin) {
|
4510
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4454
4511
|
logger('Sending message %i to parent via postMessage', request.id);
|
4455
4512
|
targetWindow.postMessage(request, targetOrigin);
|
4456
4513
|
}
|
4457
4514
|
else {
|
4515
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4458
4516
|
logger('Adding message %i to parent message queue', request.id);
|
4459
4517
|
getTargetMessageQueue(targetWindow).push(request);
|
4460
4518
|
}
|
@@ -4598,6 +4656,7 @@ function handleChildMessage(evt) {
|
|
4598
4656
|
var message_1 = evt.data;
|
4599
4657
|
var _a = callHandler(message_1.func, message_1.args), called = _a[0], result = _a[1];
|
4600
4658
|
if (called && typeof result !== 'undefined') {
|
4659
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4601
4660
|
sendMessageResponseToChild(message_1.id, Array.isArray(result) ? result : [result]);
|
4602
4661
|
}
|
4603
4662
|
else {
|
@@ -4610,6 +4669,7 @@ function handleChildMessage(evt) {
|
|
4610
4669
|
}
|
4611
4670
|
if (Communication.childWindow) {
|
4612
4671
|
var isPartialResponse_1 = args.pop();
|
4672
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4613
4673
|
sendMessageResponseToChild(message_1.id, args, isPartialResponse_1);
|
4614
4674
|
}
|
4615
4675
|
});
|
@@ -4649,6 +4709,7 @@ function flushMessageQueue(targetWindow) {
|
|
4649
4709
|
var target = targetWindow == Communication.parentWindow ? 'parent' : 'child';
|
4650
4710
|
while (targetWindow && targetOrigin && targetMessageQueue.length > 0) {
|
4651
4711
|
var request = targetMessageQueue.shift();
|
4712
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4652
4713
|
flushMessageQueueLogger('Flushing message %i from ' + target + ' message queue via postMessage.', request.id);
|
4653
4714
|
targetWindow.postMessage(request, targetOrigin);
|
4654
4715
|
}
|
@@ -4676,6 +4737,7 @@ function sendMessageResponseToChild(id,
|
|
4676
4737
|
// tslint:disable-next-line:no-any
|
4677
4738
|
args, isPartialResponse) {
|
4678
4739
|
var targetWindow = Communication.childWindow;
|
4740
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4679
4741
|
var response = createMessageResponse(id, args, isPartialResponse);
|
4680
4742
|
var targetOrigin = getTargetOrigin(targetWindow);
|
4681
4743
|
if (targetWindow && targetOrigin) {
|
@@ -4694,6 +4756,7 @@ function sendMessageEventToChild(actionName,
|
|
4694
4756
|
// tslint:disable-next-line: no-any
|
4695
4757
|
args) {
|
4696
4758
|
var targetWindow = Communication.childWindow;
|
4759
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
4697
4760
|
var customEvent = createMessageEvent(actionName, args);
|
4698
4761
|
var targetOrigin = getTargetOrigin(targetWindow);
|
4699
4762
|
// If the target window isn't closed and we already know its origin, send the message right away; otherwise,
|
@@ -5252,11 +5315,13 @@ var media;
|
|
5252
5315
|
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5253
5316
|
if (!GlobalVars.isFramelessWindow) {
|
5254
5317
|
var notSupportedError = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
5318
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5255
5319
|
callback(notSupportedError, undefined);
|
5256
5320
|
return;
|
5257
5321
|
}
|
5258
5322
|
if (!isCurrentSDKVersionAtLeast(captureImageMobileSupportVersion)) {
|
5259
5323
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
5324
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5260
5325
|
callback(oldPlatformError, undefined);
|
5261
5326
|
return;
|
5262
5327
|
}
|
@@ -5293,11 +5358,13 @@ var media;
|
|
5293
5358
|
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5294
5359
|
if (!isCurrentSDKVersionAtLeast(mediaAPISupportVersion)) {
|
5295
5360
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
5361
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5296
5362
|
callback(oldPlatformError, null);
|
5297
5363
|
return;
|
5298
5364
|
}
|
5299
5365
|
if (!validateGetMediaInputs(this.mimeType, this.format, this.content)) {
|
5300
5366
|
var invalidInput = { errorCode: ErrorCode.INVALID_ARGUMENTS };
|
5367
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5301
5368
|
callback(invalidInput, null);
|
5302
5369
|
return;
|
5303
5370
|
}
|
@@ -5318,6 +5385,7 @@ var media;
|
|
5318
5385
|
function handleGetMediaCallbackRequest(mediaResult) {
|
5319
5386
|
if (callback) {
|
5320
5387
|
if (mediaResult && mediaResult.error) {
|
5388
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5321
5389
|
callback(mediaResult.error, null);
|
5322
5390
|
}
|
5323
5391
|
else {
|
@@ -5335,6 +5403,7 @@ var media;
|
|
5335
5403
|
}
|
5336
5404
|
}
|
5337
5405
|
else {
|
5406
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5338
5407
|
callback({ errorCode: ErrorCode.INTERNAL_ERROR, message: 'data received is null' }, null);
|
5339
5408
|
}
|
5340
5409
|
}
|
@@ -5352,8 +5421,10 @@ var media;
|
|
5352
5421
|
this.content && callback && sendMessageToParent('getMedia', params);
|
5353
5422
|
function handleGetMediaRequest(response) {
|
5354
5423
|
if (callback) {
|
5424
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5355
5425
|
var mediaResult = JSON.parse(response);
|
5356
5426
|
if (mediaResult.error) {
|
5427
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5357
5428
|
callback(mediaResult.error, null);
|
5358
5429
|
removeHandler('getMedia' + actionName);
|
5359
5430
|
}
|
@@ -5373,6 +5444,7 @@ var media;
|
|
5373
5444
|
}
|
5374
5445
|
}
|
5375
5446
|
else {
|
5447
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5376
5448
|
callback({ errorCode: ErrorCode.INTERNAL_ERROR, message: 'data received is null' }, null);
|
5377
5449
|
removeHandler('getMedia' + actionName);
|
5378
5450
|
}
|
@@ -5522,6 +5594,7 @@ var media;
|
|
5522
5594
|
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
5523
5595
|
if (!isCurrentSDKVersionAtLeast(mediaAPISupportVersion)) {
|
5524
5596
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
5597
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5525
5598
|
callback(oldPlatformError, null);
|
5526
5599
|
return;
|
5527
5600
|
}
|
@@ -5529,11 +5602,13 @@ var media;
|
|
5529
5602
|
throwExceptionIfMediaCallIsNotSupportedOnMobile(mediaInputs);
|
5530
5603
|
}
|
5531
5604
|
catch (err) {
|
5605
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5532
5606
|
callback(err, null);
|
5533
5607
|
return;
|
5534
5608
|
}
|
5535
5609
|
if (!validateSelectMediaInputs(mediaInputs)) {
|
5536
5610
|
var invalidInput = { errorCode: ErrorCode.INVALID_ARGUMENTS };
|
5611
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5537
5612
|
callback(invalidInput, null);
|
5538
5613
|
return;
|
5539
5614
|
}
|
@@ -5543,12 +5618,14 @@ var media;
|
|
5543
5618
|
// MediaControllerEvent response is used to notify the app about events and is a partial response to selectMedia
|
5544
5619
|
if (mediaEvent) {
|
5545
5620
|
if (isVideoControllerRegistered(mediaInputs)) {
|
5621
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5546
5622
|
mediaInputs.videoProps.videoController.notifyEventToApp(mediaEvent);
|
5547
5623
|
}
|
5548
5624
|
return;
|
5549
5625
|
}
|
5550
5626
|
// Media Attachments are final response to selectMedia
|
5551
5627
|
if (!localAttachments) {
|
5628
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5552
5629
|
callback(err, null);
|
5553
5630
|
return;
|
5554
5631
|
}
|
@@ -5611,16 +5688,20 @@ var media;
|
|
5611
5688
|
GlobalVars.hostClientType === HostClientType.teamsPhones ||
|
5612
5689
|
GlobalVars.hostClientType === HostClientType.teamsDisplays) {
|
5613
5690
|
var notSupportedError = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
5691
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5614
5692
|
callback(notSupportedError, null);
|
5615
5693
|
return;
|
5616
5694
|
}
|
5617
5695
|
if (!isCurrentSDKVersionAtLeast(scanBarCodeAPIMobileSupportVersion)) {
|
5618
5696
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
5697
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5619
5698
|
callback(oldPlatformError, null);
|
5620
5699
|
return;
|
5621
5700
|
}
|
5701
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5622
5702
|
if (!validateScanBarCodeInput(config)) {
|
5623
5703
|
var invalidInput = { errorCode: ErrorCode.INVALID_ARGUMENTS };
|
5704
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5624
5705
|
callback(invalidInput, null);
|
5625
5706
|
return;
|
5626
5707
|
}
|
@@ -5644,6 +5725,7 @@ function createFile(assembleAttachment, mimeType) {
|
|
5644
5725
|
if (assembleAttachment == null || mimeType == null || assembleAttachment.length <= 0) {
|
5645
5726
|
return null;
|
5646
5727
|
}
|
5728
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
5647
5729
|
var file;
|
5648
5730
|
var sequence = 1;
|
5649
5731
|
assembleAttachment.sort(function (a, b) { return (a.sequence > b.sequence ? 1 : -1); });
|
@@ -6612,7 +6694,9 @@ var monetization;
|
|
6612
6694
|
* @returns Promise that will be resolved when the operation has completed or rejected with SdkError value
|
6613
6695
|
*/
|
6614
6696
|
function openPurchaseExperience(param1, param2) {
|
6697
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
6615
6698
|
var callback;
|
6699
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
6616
6700
|
var planInfo;
|
6617
6701
|
if (typeof param1 === 'function') {
|
6618
6702
|
callback = param1;
|
@@ -6747,7 +6831,9 @@ var people;
|
|
6747
6831
|
function selectPeople(param1, param2) {
|
6748
6832
|
var _a;
|
6749
6833
|
ensureInitialized(FrameContexts.content, FrameContexts.task, FrameContexts.settings);
|
6834
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
6750
6835
|
var callback;
|
6836
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
6751
6837
|
var peoplePickerInputs;
|
6752
6838
|
if (typeof param1 === 'function') {
|
6753
6839
|
_a = [param1, param2], callback = _a[0], peoplePickerInputs = _a[1];
|
@@ -6763,12 +6849,14 @@ var people;
|
|
6763
6849
|
if (!isCurrentSDKVersionAtLeast(peoplePickerRequiredVersion)) {
|
6764
6850
|
throw { errorCode: ErrorCode.OLD_PLATFORM };
|
6765
6851
|
}
|
6852
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
6766
6853
|
if (!validatePeoplePickerInput(peoplePickerInputs)) {
|
6767
6854
|
throw { errorCode: ErrorCode.INVALID_ARGUMENTS };
|
6768
6855
|
}
|
6769
6856
|
if (!isSupported()) {
|
6770
6857
|
throw errorNotSupportedOnPlatform;
|
6771
6858
|
}
|
6859
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
6772
6860
|
resolve(sendAndHandleSdkError('people.selectPeople', peoplePickerInputs));
|
6773
6861
|
});
|
6774
6862
|
}
|
@@ -7033,13 +7121,6 @@ var search;
|
|
7033
7121
|
* Your application should *not* re-render inside of these callbacks, there may be a large number
|
7034
7122
|
* of onChangeHandler calls if the user is typing rapidly in the search box.
|
7035
7123
|
*
|
7036
|
-
* @param onChangeHandler - This optional handler will be called when the user first starts using the
|
7037
|
-
* host's search box and as the user types their query. Can be used to put your application into a
|
7038
|
-
* word-wheeling state or to display suggestions as the user is typing.
|
7039
|
-
*
|
7040
|
-
* This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
|
7041
|
-
* with the current contents of the search box.
|
7042
|
-
*
|
7043
7124
|
* @param onClosedHandler - This handler will be called when the user exits or cancels their search.
|
7044
7125
|
* Should be used to return your application to its most recent, non-search state. The value of {@link SearchQuery.searchTerm}
|
7045
7126
|
* will be whatever the last query was before ending search.
|
@@ -7048,18 +7129,24 @@ var search;
|
|
7048
7129
|
* search (by pressing Enter for example). Should be used to display the full list of search results.
|
7049
7130
|
* The value of {@link SearchQuery.searchTerm} is the complete query the user entered in the search box.
|
7050
7131
|
*
|
7132
|
+
* @param onChangeHandler - This optional handler will be called when the user first starts using the
|
7133
|
+
* host's search box and as the user types their query. Can be used to put your application into a
|
7134
|
+
* word-wheeling state or to display suggestions as the user is typing.
|
7135
|
+
*
|
7136
|
+
* This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
|
7137
|
+
* with the current contents of the search box.
|
7051
7138
|
* @example
|
7052
7139
|
* ``` ts
|
7053
7140
|
* search.registerHandlers(
|
7054
|
-
query => {
|
7055
|
-
console.log(`Update your application with the changed search query: ${query.searchTerm}`);
|
7056
|
-
},
|
7057
7141
|
query => {
|
7058
7142
|
console.log('Update your application to handle the search experience being closed. Last query: ${query.searchTerm}');
|
7059
7143
|
},
|
7060
7144
|
query => {
|
7061
7145
|
console.log(`Update your application to handle an executed search result: ${query.searchTerm}`);
|
7062
7146
|
},
|
7147
|
+
query => {
|
7148
|
+
console.log(`Update your application with the changed search query: ${query.searchTerm}`);
|
7149
|
+
},
|
7063
7150
|
);
|
7064
7151
|
* ```
|
7065
7152
|
*
|
@@ -7158,6 +7245,7 @@ var sharing;
|
|
7158
7245
|
}
|
7159
7246
|
}
|
7160
7247
|
function validateTypeConsistency(shareRequest) {
|
7248
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
7161
7249
|
var err;
|
7162
7250
|
if (shareRequest.content.some(function (item) { return !item.type; })) {
|
7163
7251
|
err = {
|
@@ -7175,6 +7263,7 @@ var sharing;
|
|
7175
7263
|
}
|
7176
7264
|
}
|
7177
7265
|
function validateContentForSupportedTypes(shareRequest) {
|
7266
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
7178
7267
|
var err;
|
7179
7268
|
if (shareRequest.content[0].type === 'URL') {
|
7180
7269
|
if (shareRequest.content.some(function (item) { return !item.url; })) {
|
@@ -7995,7 +8084,8 @@ var tasks;
|
|
7995
8084
|
*/
|
7996
8085
|
function startTask(taskInfo, submitHandler) {
|
7997
8086
|
var dialogSubmitHandler = submitHandler
|
7998
|
-
?
|
8087
|
+
? /* eslint-disable-next-line strict-null-checks/all */ /* fix tracked by 5730662 */
|
8088
|
+
function (sdkResponse) { return submitHandler(sdkResponse.err, sdkResponse.result); }
|
7999
8089
|
: undefined;
|
8000
8090
|
if (taskInfo.card !== undefined || taskInfo.url === undefined) {
|
8001
8091
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
@@ -8047,6 +8137,7 @@ var tasks;
|
|
8047
8137
|
* @returns - Converted UrlDialogInfo object
|
8048
8138
|
*/
|
8049
8139
|
function getUrlDialogInfoFromTaskInfo(taskInfo) {
|
8140
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
8050
8141
|
var urldialogInfo = {
|
8051
8142
|
url: taskInfo.url,
|
8052
8143
|
size: {
|
@@ -8064,6 +8155,7 @@ var tasks;
|
|
8064
8155
|
* @returns - converted BotUrlDialogInfo object
|
8065
8156
|
*/
|
8066
8157
|
function getBotUrlDialogInfoFromTaskInfo(taskInfo) {
|
8158
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
8067
8159
|
var botUrldialogInfo = {
|
8068
8160
|
url: taskInfo.url,
|
8069
8161
|
size: {
|
@@ -8121,6 +8213,7 @@ var tasks;
|
|
8121
8213
|
|
8122
8214
|
|
8123
8215
|
|
8216
|
+
|
8124
8217
|
|
8125
8218
|
|
8126
8219
|
|
@@ -9272,6 +9365,7 @@ var teams;
|
|
9272
9365
|
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
9273
9366
|
throw new Error(JSON.stringify(oldPlatformError));
|
9274
9367
|
}
|
9368
|
+
/* eslint-disable-next-line strict-null-checks/all */ /* Fix tracked by 5730662 */
|
9275
9369
|
resolve(sendAndUnwrap('getUserJoinedTeams', teamInstanceParameters));
|
9276
9370
|
});
|
9277
9371
|
}
|