@microsoft/teams-js 1.12.0-beta.4 → 1.12.0-beta.5
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 +1 -1
- package/dist/MicrosoftTeams.d.ts +51 -19
- package/dist/MicrosoftTeams.js +29 -9
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ Reference the SDK inside of your `.html` page using:
|
|
|
50
50
|
<script src="https://statics.teams.cdn.office.net/sdk/v1.11.0/js/MicrosoftTeams.min.js" integrity="sha384-SCVF3m7OvDKnfAilUzYn2yozEvBeP8n/Oq0yTH8VUI70J4AzrqR70jzjdQ6DI8s2" crossorigin="anonymous"></script>
|
|
51
51
|
|
|
52
52
|
<!-- Microsoft Teams JavaScript API (via npm) -->
|
|
53
|
-
<script src="node_modules/@microsoft/teams-js@1.
|
|
53
|
+
<script src="node_modules/@microsoft/teams-js@1.11.0/dist/MicrosoftTeams.min.js"></script>
|
|
54
54
|
|
|
55
55
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
|
56
56
|
<script src="MicrosoftTeams.min.js"></script>
|
package/dist/MicrosoftTeams.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare namespace microsoftTeams {
|
|
|
25
25
|
* instead of a response message to a child
|
|
26
26
|
*/
|
|
27
27
|
export function sendMessageEventToChild(actionName: string, args?: any[]): void;
|
|
28
|
-
export const version = "1.12.0-beta.
|
|
28
|
+
export const version = "1.12.0-beta.5";
|
|
29
29
|
/**
|
|
30
30
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
31
31
|
* 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.
|
|
@@ -1624,6 +1624,7 @@ declare namespace microsoftTeams {
|
|
|
1624
1624
|
web = "web",
|
|
1625
1625
|
android = "android",
|
|
1626
1626
|
ios = "ios",
|
|
1627
|
+
ipados = "ipados",
|
|
1627
1628
|
/**
|
|
1628
1629
|
* @deprecated Use teamsRoomsWindows instead.
|
|
1629
1630
|
*/
|
|
@@ -1958,7 +1959,7 @@ declare namespace microsoftTeams {
|
|
|
1958
1959
|
isTeamArchived?: boolean;
|
|
1959
1960
|
/**
|
|
1960
1961
|
* The type of the host client. Possible values are : android, ios, web, desktop, rigel(deprecated, use teamsRoomsWindows instead),
|
|
1961
|
-
* teamsRoomsWindows, teamsRoomsAndroid, teamsPhones, teamsDisplays
|
|
1962
|
+
* surfaceHub, teamsRoomsWindows, teamsRoomsAndroid, teamsPhones, teamsDisplays
|
|
1962
1963
|
*/
|
|
1963
1964
|
hostClientType?: HostClientType;
|
|
1964
1965
|
/**
|
|
@@ -2637,13 +2638,13 @@ declare namespace microsoftTeams {
|
|
|
2637
2638
|
/**
|
|
2638
2639
|
* @private
|
|
2639
2640
|
* Hide from docs
|
|
2640
|
-
* Data structure to represent a meeting details
|
|
2641
|
+
* Data structure to represent a meeting details
|
|
2641
2642
|
*/
|
|
2642
|
-
interface
|
|
2643
|
+
interface IMeetingDetailsResponse {
|
|
2643
2644
|
/**
|
|
2644
2645
|
* details object
|
|
2645
2646
|
*/
|
|
2646
|
-
details:
|
|
2647
|
+
details: IMeetingDetails | ICallDetails;
|
|
2647
2648
|
/**
|
|
2648
2649
|
* conversation object
|
|
2649
2650
|
*/
|
|
@@ -2656,29 +2657,42 @@ declare namespace microsoftTeams {
|
|
|
2656
2657
|
/**
|
|
2657
2658
|
* @private
|
|
2658
2659
|
* Hide from docs
|
|
2659
|
-
*
|
|
2660
|
+
* Base data structure to represent a meeting or call detail
|
|
2660
2661
|
*/
|
|
2661
|
-
interface
|
|
2662
|
+
interface IMeetingOrCallDetailsBase<T> {
|
|
2662
2663
|
/**
|
|
2663
|
-
* Scheduled start time of the meeting
|
|
2664
|
+
* Scheduled start time of the meeting or start time of the call
|
|
2664
2665
|
*/
|
|
2665
2666
|
scheduledStartTime: string;
|
|
2666
2667
|
/**
|
|
2667
|
-
*
|
|
2668
|
+
* url to join the current meeting or call
|
|
2668
2669
|
*/
|
|
2669
|
-
|
|
2670
|
+
joinUrl?: string;
|
|
2670
2671
|
/**
|
|
2671
|
-
*
|
|
2672
|
+
* type of the meeting or call
|
|
2672
2673
|
*/
|
|
2673
|
-
|
|
2674
|
+
type?: T;
|
|
2675
|
+
}
|
|
2676
|
+
/**
|
|
2677
|
+
* @private
|
|
2678
|
+
* Hide from docs
|
|
2679
|
+
* Data structure to represent call details
|
|
2680
|
+
*/
|
|
2681
|
+
type ICallDetails = IMeetingOrCallDetailsBase<CallType>;
|
|
2682
|
+
/**
|
|
2683
|
+
* @private
|
|
2684
|
+
* Hide from docs
|
|
2685
|
+
* Data structure to represent meeting details.
|
|
2686
|
+
*/
|
|
2687
|
+
interface IMeetingDetails extends IMeetingOrCallDetailsBase<MeetingType> {
|
|
2674
2688
|
/**
|
|
2675
|
-
*
|
|
2689
|
+
* Scheduled end time of the meeting
|
|
2676
2690
|
*/
|
|
2677
|
-
|
|
2691
|
+
scheduledEndTime: string;
|
|
2678
2692
|
/**
|
|
2679
|
-
*
|
|
2693
|
+
* meeting title name of the meeting
|
|
2680
2694
|
*/
|
|
2681
|
-
|
|
2695
|
+
title?: string;
|
|
2682
2696
|
}
|
|
2683
2697
|
/**
|
|
2684
2698
|
* @private
|
|
@@ -2733,6 +2747,13 @@ declare namespace microsoftTeams {
|
|
|
2733
2747
|
*/
|
|
2734
2748
|
isAppSharing: boolean;
|
|
2735
2749
|
}
|
|
2750
|
+
interface ISpeakingState {
|
|
2751
|
+
/**
|
|
2752
|
+
* Indicates whether one or more participants in a meeting are speaking, or
|
|
2753
|
+
* if no participants are speaking
|
|
2754
|
+
*/
|
|
2755
|
+
isSpeakingDetected: boolean;
|
|
2756
|
+
}
|
|
2736
2757
|
enum MeetingType {
|
|
2737
2758
|
Unknown = "Unknown",
|
|
2738
2759
|
Adhoc = "Adhoc",
|
|
@@ -2741,6 +2762,10 @@ declare namespace microsoftTeams {
|
|
|
2741
2762
|
Broadcast = "Broadcast",
|
|
2742
2763
|
MeetNow = "MeetNow"
|
|
2743
2764
|
}
|
|
2765
|
+
enum CallType {
|
|
2766
|
+
OneOnOneCall = "oneOnOneCall",
|
|
2767
|
+
GroupCall = "groupCall"
|
|
2768
|
+
}
|
|
2744
2769
|
/**
|
|
2745
2770
|
* Allows an app to get the incoming audio speaker setting for the meeting user
|
|
2746
2771
|
* @param callback Callback contains 2 parameters, error and result.
|
|
@@ -2761,11 +2786,11 @@ declare namespace microsoftTeams {
|
|
|
2761
2786
|
* @private
|
|
2762
2787
|
* Hide from docs
|
|
2763
2788
|
* Allows an app to get the meeting details for the meeting
|
|
2764
|
-
* @param callback Callback contains 2 parameters, error and
|
|
2789
|
+
* @param callback Callback contains 2 parameters, error and meetingDetailsResponse.
|
|
2765
2790
|
* error can either contain an error of type SdkError, incase of an error, or null when get is successful
|
|
2766
|
-
* result can either contain a
|
|
2791
|
+
* result can either contain a IMeetingDetailsResponse value, incase of a successful get or null when the get fails
|
|
2767
2792
|
*/
|
|
2768
|
-
function getMeetingDetails(callback: (error: SdkError | null, meetingDetails:
|
|
2793
|
+
function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetailsResponse | null) => void): void;
|
|
2769
2794
|
/**
|
|
2770
2795
|
* @private
|
|
2771
2796
|
* Allows an app to get the authentication token for the anonymous or guest user in the meeting
|
|
@@ -2834,6 +2859,13 @@ declare namespace microsoftTeams {
|
|
|
2834
2859
|
* (indication of successful retrieval), or null (indication of failed retrieval)
|
|
2835
2860
|
*/
|
|
2836
2861
|
function getAppContentStageSharingState(callback: (error: SdkError | null, appContentStageSharingState: IAppContentStageSharingState | null) => void): void;
|
|
2862
|
+
/**
|
|
2863
|
+
* Registers a handler for changes to paticipant speaking states. If any participant is speaking, isSpeakingDetected
|
|
2864
|
+
* will be true. If no participants are speaking, isSpeakingDetected will be false. Only one handler can be registered
|
|
2865
|
+
* at a time. A subsequent registration replaces an existing registration.
|
|
2866
|
+
* @param handler The handler to invoke when the speaking state of any participant changes (start/stop speaking).
|
|
2867
|
+
*/
|
|
2868
|
+
function registerSpeakingStateChangeHandler(handler: (speakingState: ISpeakingState) => void): void;
|
|
2837
2869
|
}
|
|
2838
2870
|
/**
|
|
2839
2871
|
* Namespace to interact with the menu-specific part of the SDK.
|
package/dist/MicrosoftTeams.js
CHANGED
|
@@ -530,6 +530,7 @@ var HostClientType;
|
|
|
530
530
|
HostClientType["web"] = "web";
|
|
531
531
|
HostClientType["android"] = "android";
|
|
532
532
|
HostClientType["ios"] = "ios";
|
|
533
|
+
HostClientType["ipados"] = "ipados";
|
|
533
534
|
/**
|
|
534
535
|
* @deprecated Use teamsRoomsWindows instead.
|
|
535
536
|
*/
|
|
@@ -726,7 +727,7 @@ function handleBeforeUnload() {
|
|
|
726
727
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
727
728
|
exports.userOriginUrlValidationRegExp = exports.validOriginRegExp = exports.validOrigins = exports.scanBarCodeAPIMobileSupportVersion = exports.getMediaCallbackSupportVersion = exports.mediaAPISupportVersion = exports.captureImageMobileSupportVersion = exports.peoplePickerRequiredVersion = exports.locationAPIsRequiredVersion = exports.getUserJoinedTeamsSupportedAndroidClientVersion = exports.imageOutputFormatsAPISupportVersion = exports.nonFullScreenVideoModeAPISupportVersion = exports.videoAndImageMediaAPISupportVersion = exports.defaultSDKVersionForCompatCheck = exports.version = void 0;
|
|
728
729
|
var utils_1 = __webpack_require__(5);
|
|
729
|
-
exports.version = '1.12.0-beta.
|
|
730
|
+
exports.version = '1.12.0-beta.5';
|
|
730
731
|
/**
|
|
731
732
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
732
733
|
* 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.
|
|
@@ -1722,7 +1723,7 @@ exports.exitFullscreen = exitFullscreen;
|
|
|
1722
1723
|
* @param file The file to preview.
|
|
1723
1724
|
*/
|
|
1724
1725
|
function openFilePreview(filePreviewParameters) {
|
|
1725
|
-
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content);
|
|
1726
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.content, constants_1.FrameContexts.task);
|
|
1726
1727
|
var params = [
|
|
1727
1728
|
filePreviewParameters.entityId,
|
|
1728
1729
|
filePreviewParameters.title,
|
|
@@ -3382,7 +3383,7 @@ var communication_1 = __webpack_require__(0);
|
|
|
3382
3383
|
* @param navigateForward Determines the direction to focus in teams app.
|
|
3383
3384
|
*/
|
|
3384
3385
|
function returnFocus(navigateForward) {
|
|
3385
|
-
(0, internalAPIs_1.ensureInitialized)(
|
|
3386
|
+
(0, internalAPIs_1.ensureInitialized)();
|
|
3386
3387
|
(0, communication_1.sendMessageToParent)('returnFocus', [navigateForward]);
|
|
3387
3388
|
}
|
|
3388
3389
|
exports.returnFocus = returnFocus;
|
|
@@ -3577,6 +3578,11 @@ var meeting;
|
|
|
3577
3578
|
MeetingType["Broadcast"] = "Broadcast";
|
|
3578
3579
|
MeetingType["MeetNow"] = "MeetNow";
|
|
3579
3580
|
})(MeetingType = meeting.MeetingType || (meeting.MeetingType = {}));
|
|
3581
|
+
var CallType;
|
|
3582
|
+
(function (CallType) {
|
|
3583
|
+
CallType["OneOnOneCall"] = "oneOnOneCall";
|
|
3584
|
+
CallType["GroupCall"] = "groupCall";
|
|
3585
|
+
})(CallType = meeting.CallType || (meeting.CallType = {}));
|
|
3580
3586
|
/**
|
|
3581
3587
|
* Allows an app to get the incoming audio speaker setting for the meeting user
|
|
3582
3588
|
* @param callback Callback contains 2 parameters, error and result.
|
|
@@ -3611,9 +3617,9 @@ var meeting;
|
|
|
3611
3617
|
* @private
|
|
3612
3618
|
* Hide from docs
|
|
3613
3619
|
* Allows an app to get the meeting details for the meeting
|
|
3614
|
-
* @param callback Callback contains 2 parameters, error and
|
|
3620
|
+
* @param callback Callback contains 2 parameters, error and meetingDetailsResponse.
|
|
3615
3621
|
* error can either contain an error of type SdkError, incase of an error, or null when get is successful
|
|
3616
|
-
* result can either contain a
|
|
3622
|
+
* result can either contain a IMeetingDetailsResponse value, incase of a successful get or null when the get fails
|
|
3617
3623
|
*/
|
|
3618
3624
|
function getMeetingDetails(callback) {
|
|
3619
3625
|
if (!callback) {
|
|
@@ -3704,7 +3710,7 @@ var meeting;
|
|
|
3704
3710
|
if (!callback) {
|
|
3705
3711
|
throw new Error('[share app content to stage] Callback cannot be null');
|
|
3706
3712
|
}
|
|
3707
|
-
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3713
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3708
3714
|
(0, communication_1.sendMessageToParent)('meeting.shareAppContentToStage', [appContentUrl], callback);
|
|
3709
3715
|
}
|
|
3710
3716
|
meeting.shareAppContentToStage = shareAppContentToStage;
|
|
@@ -3719,7 +3725,7 @@ var meeting;
|
|
|
3719
3725
|
if (!callback) {
|
|
3720
3726
|
throw new Error('[get app content stage sharing capabilities] Callback cannot be null');
|
|
3721
3727
|
}
|
|
3722
|
-
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3728
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3723
3729
|
(0, communication_1.sendMessageToParent)('meeting.getAppContentStageSharingCapabilities', callback);
|
|
3724
3730
|
}
|
|
3725
3731
|
meeting.getAppContentStageSharingCapabilities = getAppContentStageSharingCapabilities;
|
|
@@ -3735,7 +3741,7 @@ var meeting;
|
|
|
3735
3741
|
if (!callback) {
|
|
3736
3742
|
throw new Error('[stop sharing app content to stage] Callback cannot be null');
|
|
3737
3743
|
}
|
|
3738
|
-
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3744
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3739
3745
|
(0, communication_1.sendMessageToParent)('meeting.stopSharingAppContentToStage', callback);
|
|
3740
3746
|
}
|
|
3741
3747
|
meeting.stopSharingAppContentToStage = stopSharingAppContentToStage;
|
|
@@ -3750,10 +3756,24 @@ var meeting;
|
|
|
3750
3756
|
if (!callback) {
|
|
3751
3757
|
throw new Error('[get app content stage sharing state] Callback cannot be null');
|
|
3752
3758
|
}
|
|
3753
|
-
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel);
|
|
3759
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3754
3760
|
(0, communication_1.sendMessageToParent)('meeting.getAppContentStageSharingState', callback);
|
|
3755
3761
|
}
|
|
3756
3762
|
meeting.getAppContentStageSharingState = getAppContentStageSharingState;
|
|
3763
|
+
/**
|
|
3764
|
+
* Registers a handler for changes to paticipant speaking states. If any participant is speaking, isSpeakingDetected
|
|
3765
|
+
* will be true. If no participants are speaking, isSpeakingDetected will be false. Only one handler can be registered
|
|
3766
|
+
* at a time. A subsequent registration replaces an existing registration.
|
|
3767
|
+
* @param handler The handler to invoke when the speaking state of any participant changes (start/stop speaking).
|
|
3768
|
+
*/
|
|
3769
|
+
function registerSpeakingStateChangeHandler(handler) {
|
|
3770
|
+
if (!handler) {
|
|
3771
|
+
throw new Error('[registerSpeakingStateChangeHandler] Handler cannot be null');
|
|
3772
|
+
}
|
|
3773
|
+
(0, internalAPIs_1.ensureInitialized)(constants_1.FrameContexts.sidePanel, constants_1.FrameContexts.meetingStage);
|
|
3774
|
+
(0, handlers_1.registerHandler)('meeting.speakingStateChanged', handler);
|
|
3775
|
+
}
|
|
3776
|
+
meeting.registerSpeakingStateChangeHandler = registerSpeakingStateChangeHandler;
|
|
3757
3777
|
})(meeting = exports.meeting || (exports.meeting = {}));
|
|
3758
3778
|
|
|
3759
3779
|
|