@microsoft/teams-js 2.10.0-beta.2 → 2.10.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 +196 -110
- package/dist/MicrosoftTeams.js +137 -87
- 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 +36 -1
package/dist/MicrosoftTeams.js
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
exports["microsoftTeams"] = factory();
|
8
8
|
else
|
9
9
|
root["microsoftTeams"] = factory();
|
10
|
-
})(self, () => {
|
10
|
+
})(typeof self !== 'undefined' ? self : this, () => {
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
12
12
|
/******/ var __webpack_modules__ = ({
|
13
13
|
|
@@ -1011,10 +1011,6 @@ var validOrigins = [
|
|
1011
1011
|
'local.teams.live.com:8080',
|
1012
1012
|
'local.teams.office.com',
|
1013
1013
|
'local.teams.office.com:8080',
|
1014
|
-
'msft.spoppe.com',
|
1015
|
-
'*.sharepoint.com',
|
1016
|
-
'*.sharepoint-df.com',
|
1017
|
-
'*.sharepointonline.com',
|
1018
1014
|
'outlook.office.com',
|
1019
1015
|
'outlook-sdf.office.com',
|
1020
1016
|
'outlook.office365.com',
|
@@ -1819,7 +1815,9 @@ var teamsRuntimeConfig = {
|
|
1819
1815
|
fullTrust: {},
|
1820
1816
|
},
|
1821
1817
|
teamsCore: {},
|
1822
|
-
video: {
|
1818
|
+
video: {
|
1819
|
+
sharedFrame: {},
|
1820
|
+
},
|
1823
1821
|
},
|
1824
1822
|
};
|
1825
1823
|
var v1HostClientTypes = [
|
@@ -2003,7 +2001,7 @@ var _minRuntimeConfigToUninitialize = {
|
|
2003
2001
|
};
|
2004
2002
|
|
2005
2003
|
;// CONCATENATED MODULE: ./src/public/version.ts
|
2006
|
-
var version = "2.10.0
|
2004
|
+
var version = "2.10.0";
|
2007
2005
|
|
2008
2006
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
2009
2007
|
|
@@ -2087,13 +2085,15 @@ function isCurrentSDKVersionAtLeast(requiredVersion) {
|
|
2087
2085
|
}
|
2088
2086
|
/**
|
2089
2087
|
* @hidden
|
2090
|
-
* Helper function to identify if host client is either android or
|
2088
|
+
* Helper function to identify if host client is either android, ios, or ipados
|
2091
2089
|
*
|
2092
2090
|
* @internal
|
2093
2091
|
* Limited to Microsoft-internal use
|
2094
2092
|
*/
|
2095
2093
|
function isHostClientMobile() {
|
2096
|
-
return GlobalVars.hostClientType == HostClientType.android ||
|
2094
|
+
return (GlobalVars.hostClientType == HostClientType.android ||
|
2095
|
+
GlobalVars.hostClientType == HostClientType.ios ||
|
2096
|
+
GlobalVars.hostClientType == HostClientType.ipados);
|
2097
2097
|
}
|
2098
2098
|
/**
|
2099
2099
|
* @hidden
|
@@ -2222,6 +2222,7 @@ var authentication;
|
|
2222
2222
|
if (GlobalVars.hostClientType === HostClientType.desktop ||
|
2223
2223
|
GlobalVars.hostClientType === HostClientType.android ||
|
2224
2224
|
GlobalVars.hostClientType === HostClientType.ios ||
|
2225
|
+
GlobalVars.hostClientType === HostClientType.ipados ||
|
2225
2226
|
GlobalVars.hostClientType === HostClientType.rigel ||
|
2226
2227
|
GlobalVars.hostClientType === HostClientType.teamsRoomsWindows ||
|
2227
2228
|
GlobalVars.hostClientType === HostClientType.teamsRoomsAndroid ||
|
@@ -6961,7 +6962,7 @@ var meeting;
|
|
6961
6962
|
if (!callback) {
|
6962
6963
|
throw new Error('[get Authentication Token For AnonymousUser] Callback cannot be null');
|
6963
6964
|
}
|
6964
|
-
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
6965
|
+
ensureInitialized(runtime, FrameContexts.sidePanel, FrameContexts.meetingStage, FrameContexts.task);
|
6965
6966
|
sendMessageToParent('meeting.getAuthenticationTokenForAnonymousUser', callback);
|
6966
6967
|
}
|
6967
6968
|
meeting.getAuthenticationTokenForAnonymousUser = getAuthenticationTokenForAnonymousUser;
|
@@ -7713,11 +7714,11 @@ var video;
|
|
7713
7714
|
/**
|
7714
7715
|
* Current video effect changed
|
7715
7716
|
*/
|
7716
|
-
EffectChangeType[
|
7717
|
+
EffectChangeType["EffectChanged"] = "EffectChanged";
|
7717
7718
|
/**
|
7718
7719
|
* Disable the video effect
|
7719
7720
|
*/
|
7720
|
-
EffectChangeType[
|
7721
|
+
EffectChangeType["EffectDisabled"] = "EffectDisabled";
|
7721
7722
|
})(EffectChangeType = video.EffectChangeType || (video.EffectChangeType = {}));
|
7722
7723
|
/**
|
7723
7724
|
* Predefined failure reasons for preparing the selected video effect
|
@@ -7735,32 +7736,6 @@ var video;
|
|
7735
7736
|
*/
|
7736
7737
|
EffectFailureReason["InitializationFailure"] = "InitializationFailure";
|
7737
7738
|
})(EffectFailureReason = video.EffectFailureReason || (video.EffectFailureReason = {}));
|
7738
|
-
/**
|
7739
|
-
* Register to read the video frames in Permissions section
|
7740
|
-
* @beta
|
7741
|
-
* @param frameCallback - The callback to invoke when registerForVideoFrame has completed
|
7742
|
-
* @param config - VideoFrameConfig to customize generated video frame parameters
|
7743
|
-
*/
|
7744
|
-
function registerForVideoFrame(frameCallback, config) {
|
7745
|
-
ensureInitialized(runtime, FrameContexts.sidePanel);
|
7746
|
-
if (!isSupported()) {
|
7747
|
-
throw errorNotSupportedOnPlatform;
|
7748
|
-
}
|
7749
|
-
registerHandler('video.newVideoFrame',
|
7750
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
7751
|
-
function (videoFrame) {
|
7752
|
-
if (videoFrame) {
|
7753
|
-
// The host may pass the VideoFrame with the old definition which has `data` instead of `videoFrameBuffer`
|
7754
|
-
var videoFrameData = video_assign(video_assign({}, videoFrame), { videoFrameBuffer: videoFrame.videoFrameBuffer || videoFrame.data });
|
7755
|
-
var timestamp_1 = videoFrameData.timestamp;
|
7756
|
-
frameCallback(videoFrameData, function () {
|
7757
|
-
notifyVideoFrameProcessed(timestamp_1);
|
7758
|
-
}, notifyError);
|
7759
|
-
}
|
7760
|
-
}, false);
|
7761
|
-
sendMessageToParent('video.registerForVideoFrame', [config]);
|
7762
|
-
}
|
7763
|
-
video.registerForVideoFrame = registerForVideoFrame;
|
7764
7739
|
/**
|
7765
7740
|
* Video extension should call this to notify host that the current selected effect parameter changed.
|
7766
7741
|
* If it's pre-meeting, host will call videoEffectCallback immediately then use the videoEffect.
|
@@ -7801,14 +7776,6 @@ var video;
|
|
7801
7776
|
sendMessageToParent('video.registerForVideoEffect');
|
7802
7777
|
}
|
7803
7778
|
video.registerForVideoEffect = registerForVideoEffect;
|
7804
|
-
/**
|
7805
|
-
* Sending notification to host finished the video frame processing, now host can render this video frame
|
7806
|
-
* or pass the video frame to next one in video pipeline
|
7807
|
-
* @beta
|
7808
|
-
*/
|
7809
|
-
function notifyVideoFrameProcessed(timestamp) {
|
7810
|
-
sendMessageToParent('video.videoFrameProcessed', [timestamp]);
|
7811
|
-
}
|
7812
7779
|
/**
|
7813
7780
|
* Sending error notification to host
|
7814
7781
|
* @beta
|
@@ -7832,7 +7799,7 @@ var video;
|
|
7832
7799
|
/**
|
7833
7800
|
* @beta
|
7834
7801
|
* Namespace to get video frames from a media stream.
|
7835
|
-
* When the host supports this capability, developer should call {@link mediaStream.registerForVideoFrame} to get the video frames
|
7802
|
+
* When the host supports this capability, developer should call {@link mediaStream.registerForVideoFrame} to get the video frames.
|
7836
7803
|
*/
|
7837
7804
|
var mediaStream;
|
7838
7805
|
(function (mediaStream_1) {
|
@@ -7988,6 +7955,61 @@ var video;
|
|
7988
7955
|
return generator;
|
7989
7956
|
}
|
7990
7957
|
})(mediaStream = video.mediaStream || (video.mediaStream = {}));
|
7958
|
+
/**
|
7959
|
+
* @beta
|
7960
|
+
* Namespace to get shared video framed.
|
7961
|
+
* When the host supports this capability, developer should call {@link sharedFrame.registerForVideoFrame} to get the video frames.
|
7962
|
+
*/
|
7963
|
+
var sharedFrame;
|
7964
|
+
(function (sharedFrame) {
|
7965
|
+
/**
|
7966
|
+
* Checks if video.sharedFrame capability is supported by the host
|
7967
|
+
* @beta
|
7968
|
+
* @returns boolean to represent whether the video capability is supported
|
7969
|
+
*
|
7970
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
7971
|
+
*
|
7972
|
+
*/
|
7973
|
+
function isSupported() {
|
7974
|
+
var _a;
|
7975
|
+
return ensureInitialized(runtime) && ((_a = runtime.supports.video) === null || _a === void 0 ? void 0 : _a.sharedFrame) ? true : false;
|
7976
|
+
}
|
7977
|
+
sharedFrame.isSupported = isSupported;
|
7978
|
+
/**
|
7979
|
+
* Sending notification to host finished the video frame processing, now host can render this video frame
|
7980
|
+
* or pass the video frame to next one in video pipeline
|
7981
|
+
* @beta
|
7982
|
+
*/
|
7983
|
+
function notifyVideoFrameProcessed(timestamp) {
|
7984
|
+
sendMessageToParent('video.videoFrameProcessed', [timestamp]);
|
7985
|
+
}
|
7986
|
+
/**
|
7987
|
+
* Register to read the video frames in Permissions section
|
7988
|
+
* @beta
|
7989
|
+
* @param frameCallback - The callback to invoke when registerForVideoFrame has completed
|
7990
|
+
* @param config - VideoFrameConfig to customize generated video frame parameters
|
7991
|
+
*/
|
7992
|
+
function registerForVideoFrame(frameCallback, config) {
|
7993
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
7994
|
+
if (!isSupported()) {
|
7995
|
+
throw errorNotSupportedOnPlatform;
|
7996
|
+
}
|
7997
|
+
registerHandler('video.newVideoFrame',
|
7998
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
7999
|
+
function (videoFrame) {
|
8000
|
+
if (videoFrame) {
|
8001
|
+
// The host may pass the VideoFrame with the old definition which has `data` instead of `videoFrameBuffer`
|
8002
|
+
var videoFrameData = video_assign(video_assign({}, videoFrame), { videoFrameBuffer: videoFrame.videoFrameBuffer || videoFrame.data });
|
8003
|
+
var timestamp_1 = videoFrameData.timestamp;
|
8004
|
+
frameCallback(videoFrameData, function () {
|
8005
|
+
notifyVideoFrameProcessed(timestamp_1);
|
8006
|
+
}, notifyError);
|
8007
|
+
}
|
8008
|
+
}, false);
|
8009
|
+
sendMessageToParent('video.registerForVideoFrame', [config]);
|
8010
|
+
}
|
8011
|
+
sharedFrame.registerForVideoFrame = registerForVideoFrame;
|
8012
|
+
})(sharedFrame = video.sharedFrame || (video.sharedFrame = {}));
|
7991
8013
|
})(video || (video = {})); //end of video namespace
|
7992
8014
|
|
7993
8015
|
;// CONCATENATED MODULE: ./src/public/search.ts
|
@@ -8995,7 +9017,7 @@ var tasks;
|
|
8995
9017
|
}
|
8996
9018
|
/**
|
8997
9019
|
* Sets the height and width of the {@link TaskInfo} object to the original height and width, if initially specified,
|
8998
|
-
* otherwise uses the height and width values corresponding to {@link
|
9020
|
+
* otherwise uses the height and width values corresponding to {@link DialogDimension | TaskModuleDimension.Small}
|
8999
9021
|
* @param taskInfo TaskInfo object from which to extract size info, if specified
|
9000
9022
|
* @returns TaskInfo with height and width specified
|
9001
9023
|
*/
|
@@ -10475,33 +10497,6 @@ var videoEx;
|
|
10475
10497
|
ErrorLevel["Fatal"] = "fatal";
|
10476
10498
|
ErrorLevel["Warn"] = "warn";
|
10477
10499
|
})(ErrorLevel = videoEx.ErrorLevel || (videoEx.ErrorLevel = {}));
|
10478
|
-
/**
|
10479
|
-
* @hidden
|
10480
|
-
* Register to process video frames
|
10481
|
-
* @beta
|
10482
|
-
*
|
10483
|
-
* @param frameCallback - The callback to invoke when registerForVideoFrame has completed
|
10484
|
-
* @param config - VideoFrameConfig to customize generated video frame parameters
|
10485
|
-
*
|
10486
|
-
* @internal
|
10487
|
-
* Limited to Microsoft-internal use
|
10488
|
-
*/
|
10489
|
-
function registerForVideoFrame(frameCallback, config) {
|
10490
|
-
ensureInitialized(runtime, FrameContexts.sidePanel);
|
10491
|
-
if (!isSupported()) {
|
10492
|
-
throw errorNotSupportedOnPlatform;
|
10493
|
-
}
|
10494
|
-
registerHandler('video.newVideoFrame', function (videoFrame) {
|
10495
|
-
if (videoFrame) {
|
10496
|
-
var timestamp_1 = videoFrame.timestamp;
|
10497
|
-
frameCallback(videoFrame, function () {
|
10498
|
-
notifyVideoFrameProcessed(timestamp_1);
|
10499
|
-
}, notifyError);
|
10500
|
-
}
|
10501
|
-
}, false);
|
10502
|
-
sendMessageToParent('video.registerForVideoFrame', [config]);
|
10503
|
-
}
|
10504
|
-
videoEx.registerForVideoFrame = registerForVideoFrame;
|
10505
10500
|
/**
|
10506
10501
|
* @hidden
|
10507
10502
|
* Video extension should call this to notify host that the current selected effect parameter changed.
|
@@ -10575,18 +10570,6 @@ var videoEx;
|
|
10575
10570
|
return video.isSupported();
|
10576
10571
|
}
|
10577
10572
|
videoEx.isSupported = isSupported;
|
10578
|
-
/**
|
10579
|
-
* @hidden
|
10580
|
-
* Sending notification to host finished the video frame processing, now host can render this video frame
|
10581
|
-
* or pass the video frame to next one in video pipeline
|
10582
|
-
* @beta
|
10583
|
-
*
|
10584
|
-
* @internal
|
10585
|
-
* Limited to Microsoft-internal use
|
10586
|
-
*/
|
10587
|
-
function notifyVideoFrameProcessed(timestamp) {
|
10588
|
-
sendMessageToParent('video.videoFrameProcessed', [timestamp]);
|
10589
|
-
}
|
10590
10573
|
/**
|
10591
10574
|
* @hidden
|
10592
10575
|
* Sending error notification to host
|
@@ -10619,6 +10602,73 @@ var videoEx;
|
|
10619
10602
|
notifyError(errorMessage, ErrorLevel.Fatal);
|
10620
10603
|
}
|
10621
10604
|
videoEx.notifyFatalError = notifyFatalError;
|
10605
|
+
/**
|
10606
|
+
* @hidden
|
10607
|
+
* @internal
|
10608
|
+
* @beta
|
10609
|
+
* Namespace to get shared video framed.
|
10610
|
+
* When the host supports this capability, developer should call {@link sharedFrame.registerForVideoFrame} to get the video frames.
|
10611
|
+
*/
|
10612
|
+
var sharedFrame;
|
10613
|
+
(function (sharedFrame) {
|
10614
|
+
/**
|
10615
|
+
* @hidden
|
10616
|
+
*
|
10617
|
+
* Checks if video.sharedFrame capability is supported by the host
|
10618
|
+
* @beta
|
10619
|
+
*
|
10620
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
10621
|
+
*
|
10622
|
+
* @returns boolean to represent whether the video.sharedFrame capability is supported
|
10623
|
+
*
|
10624
|
+
* @internal
|
10625
|
+
* Limited to Microsoft-internal use
|
10626
|
+
*/
|
10627
|
+
function isSupported() {
|
10628
|
+
ensureInitialized(runtime);
|
10629
|
+
return video.sharedFrame.isSupported();
|
10630
|
+
}
|
10631
|
+
sharedFrame.isSupported = isSupported;
|
10632
|
+
/**
|
10633
|
+
* @hidden
|
10634
|
+
* Register to process video frames
|
10635
|
+
* @beta
|
10636
|
+
*
|
10637
|
+
* @param frameCallback - The callback to invoke when registerForVideoFrame has completed
|
10638
|
+
* @param config - VideoFrameConfig to customize generated video frame parameters
|
10639
|
+
*
|
10640
|
+
* @internal
|
10641
|
+
* Limited to Microsoft-internal use
|
10642
|
+
*/
|
10643
|
+
function registerForVideoFrame(frameCallback, config) {
|
10644
|
+
ensureInitialized(runtime, FrameContexts.sidePanel);
|
10645
|
+
if (!isSupported()) {
|
10646
|
+
throw errorNotSupportedOnPlatform;
|
10647
|
+
}
|
10648
|
+
registerHandler('video.newVideoFrame', function (videoFrame) {
|
10649
|
+
if (videoFrame) {
|
10650
|
+
var timestamp_1 = videoFrame.timestamp;
|
10651
|
+
frameCallback(videoFrame, function () {
|
10652
|
+
notifyVideoFrameProcessed(timestamp_1);
|
10653
|
+
}, notifyError);
|
10654
|
+
}
|
10655
|
+
}, false);
|
10656
|
+
sendMessageToParent('video.registerForVideoFrame', [config]);
|
10657
|
+
}
|
10658
|
+
sharedFrame.registerForVideoFrame = registerForVideoFrame;
|
10659
|
+
/**
|
10660
|
+
* @hidden
|
10661
|
+
* Sending notification to host finished the video frame processing, now host can render this video frame
|
10662
|
+
* or pass the video frame to next one in video pipeline
|
10663
|
+
* @beta
|
10664
|
+
*
|
10665
|
+
* @internal
|
10666
|
+
* Limited to Microsoft-internal use
|
10667
|
+
*/
|
10668
|
+
function notifyVideoFrameProcessed(timestamp) {
|
10669
|
+
sendMessageToParent('video.videoFrameProcessed', [timestamp]);
|
10670
|
+
}
|
10671
|
+
})(sharedFrame = videoEx.sharedFrame || (videoEx.sharedFrame = {}));
|
10622
10672
|
})(videoEx || (videoEx = {}));
|
10623
10673
|
|
10624
10674
|
;// CONCATENATED MODULE: ./src/private/index.ts
|