@microsoft/teams-js 1.12.0-beta.3 → 1.12.0-beta.4
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 +201 -142
- package/dist/MicrosoftTeams.js +64 -24
- 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.12.0-beta.4/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.4";
|
|
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.
|
|
@@ -601,6 +601,53 @@ declare namespace microsoftTeams {
|
|
|
601
601
|
remoteItem?: string;
|
|
602
602
|
listUrl?: string;
|
|
603
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* @private
|
|
606
|
+
* Hide from docs
|
|
607
|
+
*
|
|
608
|
+
* Download status enum
|
|
609
|
+
*/
|
|
610
|
+
export enum FileDownloadStatus {
|
|
611
|
+
Downloaded = "Downloaded",
|
|
612
|
+
Downloading = "Downloading",
|
|
613
|
+
Failed = "Failed"
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* @private
|
|
617
|
+
* Hide from docs
|
|
618
|
+
*
|
|
619
|
+
* Download Files interface
|
|
620
|
+
*/
|
|
621
|
+
export interface IFileItem {
|
|
622
|
+
/**
|
|
623
|
+
* ID of the file metadata
|
|
624
|
+
*/
|
|
625
|
+
objectId?: string;
|
|
626
|
+
/**
|
|
627
|
+
* Path of the file
|
|
628
|
+
*/
|
|
629
|
+
path?: string;
|
|
630
|
+
/**
|
|
631
|
+
* Size of the file in bytes
|
|
632
|
+
*/
|
|
633
|
+
sizeInBytes?: number;
|
|
634
|
+
/**
|
|
635
|
+
* Download status
|
|
636
|
+
*/
|
|
637
|
+
status?: FileDownloadStatus;
|
|
638
|
+
/**
|
|
639
|
+
* Download timestamp
|
|
640
|
+
*/
|
|
641
|
+
timestamp: Date;
|
|
642
|
+
/**
|
|
643
|
+
* File name
|
|
644
|
+
*/
|
|
645
|
+
title: string;
|
|
646
|
+
/**
|
|
647
|
+
* Type of file i.e. the file extension.
|
|
648
|
+
*/
|
|
649
|
+
extension: string;
|
|
650
|
+
}
|
|
604
651
|
/**
|
|
605
652
|
* @private
|
|
606
653
|
* Hide from docs
|
|
@@ -663,6 +710,23 @@ declare namespace microsoftTeams {
|
|
|
663
710
|
* among SharePoint and third party cloud storages.
|
|
664
711
|
*/
|
|
665
712
|
export function copyMoveFiles(selectedFiles: CloudStorageFolderItem[] | ISharePointFile[], providerCode: CloudStorageProvider, destinationFolder: CloudStorageFolderItem | ISharePointFile, destinationProviderCode: CloudStorageProvider, isMove: boolean, callback: (error?: SdkError) => void): void;
|
|
713
|
+
/**
|
|
714
|
+
* @private
|
|
715
|
+
* Hide from docs
|
|
716
|
+
*
|
|
717
|
+
* Gets list of downloads for current user
|
|
718
|
+
* @param callback Callback that will be triggered post downloads load
|
|
719
|
+
*/
|
|
720
|
+
export function getFileDownloads(callback: (error?: SdkError, files?: IFileItem[]) => void): void;
|
|
721
|
+
/**
|
|
722
|
+
* @private
|
|
723
|
+
* Hide from docs
|
|
724
|
+
*
|
|
725
|
+
* Open download preference folder if fileObjectId value is undefined else open folder containing the file with id fileObjectId
|
|
726
|
+
* @param fileObjectId: Id of the file whose containing folder should be opened
|
|
727
|
+
* @param callback Callback that will be triggered post open download folder/path
|
|
728
|
+
*/
|
|
729
|
+
export function openDownloadFolder(fileObjectId: string, callback: (error?: SdkError) => void): void;
|
|
666
730
|
}
|
|
667
731
|
/**
|
|
668
732
|
* @private
|
|
@@ -981,144 +1045,6 @@ declare namespace microsoftTeams {
|
|
|
981
1045
|
*/
|
|
982
1046
|
function registerMeetingRoomStatesUpdateHandler(handler: (states: MeetingRoomState) => void): void;
|
|
983
1047
|
}
|
|
984
|
-
/**
|
|
985
|
-
* Namespace to interact with the menu-specific part of the SDK.
|
|
986
|
-
* This object is used to show View Configuration, Action Menu and Navigation Bar Menu.
|
|
987
|
-
*
|
|
988
|
-
* @private
|
|
989
|
-
* Hide from docs until feature is complete
|
|
990
|
-
*/
|
|
991
|
-
export namespace menus {
|
|
992
|
-
/**
|
|
993
|
-
* Represents information about item in View Configuration.
|
|
994
|
-
*/
|
|
995
|
-
interface ViewConfiguration {
|
|
996
|
-
/**
|
|
997
|
-
* Unique identifier of view.
|
|
998
|
-
*/
|
|
999
|
-
id: string;
|
|
1000
|
-
/**
|
|
1001
|
-
* Display title of the view.
|
|
1002
|
-
*/
|
|
1003
|
-
title: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* Additional information for accessibility.
|
|
1006
|
-
*/
|
|
1007
|
-
contentDescription?: string;
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* Defines how a menu item should appear in the NavBar.
|
|
1011
|
-
*/
|
|
1012
|
-
enum DisplayMode {
|
|
1013
|
-
/**
|
|
1014
|
-
* Only place this item in the NavBar if there's room for it.
|
|
1015
|
-
* If there's no room, item is shown in the overflow menu.
|
|
1016
|
-
*/
|
|
1017
|
-
ifRoom = 0,
|
|
1018
|
-
/**
|
|
1019
|
-
* Never place this item in the NavBar.
|
|
1020
|
-
* The item would always be shown in NavBar's overflow menu.
|
|
1021
|
-
*/
|
|
1022
|
-
overflowOnly = 1
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* Represents information about menu item for Action Menu and Navigation Bar Menu.
|
|
1026
|
-
*/
|
|
1027
|
-
class MenuItem {
|
|
1028
|
-
/**
|
|
1029
|
-
* Unique identifier for the menu item.
|
|
1030
|
-
*/
|
|
1031
|
-
id: string;
|
|
1032
|
-
/**
|
|
1033
|
-
* Display title of the menu item.
|
|
1034
|
-
*/
|
|
1035
|
-
title: string;
|
|
1036
|
-
/**
|
|
1037
|
-
* Display icon of the menu item. The icon value must be a string having SVG icon content.
|
|
1038
|
-
*/
|
|
1039
|
-
icon: string;
|
|
1040
|
-
/**
|
|
1041
|
-
* Selected state display icon of the menu item. The icon value must be a string having SVG icon content.
|
|
1042
|
-
*/
|
|
1043
|
-
iconSelected?: string;
|
|
1044
|
-
/**
|
|
1045
|
-
* Additional information for accessibility.
|
|
1046
|
-
*/
|
|
1047
|
-
contentDescription?: string;
|
|
1048
|
-
/**
|
|
1049
|
-
* State of the menu item
|
|
1050
|
-
*/
|
|
1051
|
-
enabled: boolean;
|
|
1052
|
-
/**
|
|
1053
|
-
* Interface to show list of items on selection of menu item.
|
|
1054
|
-
*/
|
|
1055
|
-
viewData: ViewData;
|
|
1056
|
-
/**
|
|
1057
|
-
* Whether the menu item is selected or not
|
|
1058
|
-
*/
|
|
1059
|
-
selected: boolean;
|
|
1060
|
-
/**
|
|
1061
|
-
* The Display Mode of the menu item.
|
|
1062
|
-
* Default Behaviour would be DisplayMode.ifRoom if null.
|
|
1063
|
-
* Refer {@link DisplayMode}
|
|
1064
|
-
*/
|
|
1065
|
-
displayMode?: DisplayMode;
|
|
1066
|
-
}
|
|
1067
|
-
/**
|
|
1068
|
-
* Represents information about view to show on Navigation Bar Menu item selection
|
|
1069
|
-
*/
|
|
1070
|
-
interface ViewData {
|
|
1071
|
-
/**
|
|
1072
|
-
* Display header title of the item list.
|
|
1073
|
-
*/
|
|
1074
|
-
listTitle?: string;
|
|
1075
|
-
/**
|
|
1076
|
-
* Type of the menu item.
|
|
1077
|
-
*/
|
|
1078
|
-
listType: MenuListType;
|
|
1079
|
-
/**
|
|
1080
|
-
* Array of MenuItem. Icon value will be required for all items in the list.
|
|
1081
|
-
*/
|
|
1082
|
-
listItems: MenuItem[];
|
|
1083
|
-
}
|
|
1084
|
-
/**
|
|
1085
|
-
* Represents information about type of list to display in Navigation Bar Menu.
|
|
1086
|
-
*/
|
|
1087
|
-
enum MenuListType {
|
|
1088
|
-
dropDown = "dropDown",
|
|
1089
|
-
popOver = "popOver"
|
|
1090
|
-
}
|
|
1091
|
-
function initialize(): void;
|
|
1092
|
-
/**
|
|
1093
|
-
* Registers list of view configurations and it's handler.
|
|
1094
|
-
* Handler is responsible for listening selection of View Configuration.
|
|
1095
|
-
* @param viewConfig List of view configurations. Minimum 1 value is required.
|
|
1096
|
-
* @param handler The handler to invoke when the user selects view configuration.
|
|
1097
|
-
*/
|
|
1098
|
-
function setUpViews(viewConfig: ViewConfiguration[], handler: (id: string) => boolean): void;
|
|
1099
|
-
/**
|
|
1100
|
-
* Used to set menu items on the Navigation Bar. If icon is available, icon will be shown, otherwise title will be shown.
|
|
1101
|
-
* @param items List of MenuItems for Navigation Bar Menu.
|
|
1102
|
-
* @param handler The handler to invoke when the user selects menu item.
|
|
1103
|
-
*/
|
|
1104
|
-
function setNavBarMenu(items: MenuItem[], handler: (id: string) => boolean): void;
|
|
1105
|
-
interface ActionMenuParameters {
|
|
1106
|
-
/**
|
|
1107
|
-
* Display title for Action Menu
|
|
1108
|
-
*/
|
|
1109
|
-
title: string;
|
|
1110
|
-
/**
|
|
1111
|
-
* List of MenuItems for Action Menu
|
|
1112
|
-
*/
|
|
1113
|
-
items: MenuItem[];
|
|
1114
|
-
}
|
|
1115
|
-
/**
|
|
1116
|
-
* Used to show Action Menu.
|
|
1117
|
-
* @param params Parameters for Menu Parameters
|
|
1118
|
-
* @param handler The handler to invoke when the user selects menu item.
|
|
1119
|
-
*/
|
|
1120
|
-
function showActionMenu(params: ActionMenuParameters, handler: (id: string) => boolean): void;
|
|
1121
|
-
}
|
|
1122
1048
|
export function initializePrivateApis(): void;
|
|
1123
1049
|
/**
|
|
1124
1050
|
* @private
|
|
@@ -2909,6 +2835,142 @@ declare namespace microsoftTeams {
|
|
|
2909
2835
|
*/
|
|
2910
2836
|
function getAppContentStageSharingState(callback: (error: SdkError | null, appContentStageSharingState: IAppContentStageSharingState | null) => void): void;
|
|
2911
2837
|
}
|
|
2838
|
+
/**
|
|
2839
|
+
* Namespace to interact with the menu-specific part of the SDK.
|
|
2840
|
+
* This object is used to show View Configuration, Action Menu and Navigation Bar Menu.
|
|
2841
|
+
*
|
|
2842
|
+
*/
|
|
2843
|
+
export namespace menus {
|
|
2844
|
+
/**
|
|
2845
|
+
* Represents information about item in View Configuration.
|
|
2846
|
+
*/
|
|
2847
|
+
interface ViewConfiguration {
|
|
2848
|
+
/**
|
|
2849
|
+
* Unique identifier of view.
|
|
2850
|
+
*/
|
|
2851
|
+
id: string;
|
|
2852
|
+
/**
|
|
2853
|
+
* Display title of the view.
|
|
2854
|
+
*/
|
|
2855
|
+
title: string;
|
|
2856
|
+
/**
|
|
2857
|
+
* Additional information for accessibility.
|
|
2858
|
+
*/
|
|
2859
|
+
contentDescription?: string;
|
|
2860
|
+
}
|
|
2861
|
+
/**
|
|
2862
|
+
* Defines how a menu item should appear in the NavBar.
|
|
2863
|
+
*/
|
|
2864
|
+
enum DisplayMode {
|
|
2865
|
+
/**
|
|
2866
|
+
* Only place this item in the NavBar if there's room for it.
|
|
2867
|
+
* If there's no room, item is shown in the overflow menu.
|
|
2868
|
+
*/
|
|
2869
|
+
ifRoom = 0,
|
|
2870
|
+
/**
|
|
2871
|
+
* Never place this item in the NavBar.
|
|
2872
|
+
* The item would always be shown in NavBar's overflow menu.
|
|
2873
|
+
*/
|
|
2874
|
+
overflowOnly = 1
|
|
2875
|
+
}
|
|
2876
|
+
/**
|
|
2877
|
+
* Represents information about menu item for Action Menu and Navigation Bar Menu.
|
|
2878
|
+
*/
|
|
2879
|
+
class MenuItem {
|
|
2880
|
+
/**
|
|
2881
|
+
* Unique identifier for the menu item.
|
|
2882
|
+
*/
|
|
2883
|
+
id: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Display title of the menu item.
|
|
2886
|
+
*/
|
|
2887
|
+
title: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Display icon of the menu item. The icon value must be a string having SVG icon content.
|
|
2890
|
+
*/
|
|
2891
|
+
icon: string;
|
|
2892
|
+
/**
|
|
2893
|
+
* Selected state display icon of the menu item. The icon value must be a string having SVG icon content.
|
|
2894
|
+
*/
|
|
2895
|
+
iconSelected?: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* Additional information for accessibility.
|
|
2898
|
+
*/
|
|
2899
|
+
contentDescription?: string;
|
|
2900
|
+
/**
|
|
2901
|
+
* State of the menu item
|
|
2902
|
+
*/
|
|
2903
|
+
enabled: boolean;
|
|
2904
|
+
/**
|
|
2905
|
+
* Interface to show list of items on selection of menu item.
|
|
2906
|
+
*/
|
|
2907
|
+
viewData: ViewData;
|
|
2908
|
+
/**
|
|
2909
|
+
* Whether the menu item is selected or not
|
|
2910
|
+
*/
|
|
2911
|
+
selected: boolean;
|
|
2912
|
+
/**
|
|
2913
|
+
* The Display Mode of the menu item.
|
|
2914
|
+
* Default Behaviour would be DisplayMode.ifRoom if null.
|
|
2915
|
+
* Refer {@link DisplayMode}
|
|
2916
|
+
*/
|
|
2917
|
+
displayMode?: DisplayMode;
|
|
2918
|
+
}
|
|
2919
|
+
/**
|
|
2920
|
+
* Represents information about view to show on Navigation Bar Menu item selection
|
|
2921
|
+
*/
|
|
2922
|
+
interface ViewData {
|
|
2923
|
+
/**
|
|
2924
|
+
* Display header title of the item list.
|
|
2925
|
+
*/
|
|
2926
|
+
listTitle?: string;
|
|
2927
|
+
/**
|
|
2928
|
+
* Type of the menu item.
|
|
2929
|
+
*/
|
|
2930
|
+
listType: MenuListType;
|
|
2931
|
+
/**
|
|
2932
|
+
* Array of MenuItem. Icon value will be required for all items in the list.
|
|
2933
|
+
*/
|
|
2934
|
+
listItems: MenuItem[];
|
|
2935
|
+
}
|
|
2936
|
+
/**
|
|
2937
|
+
* Represents information about type of list to display in Navigation Bar Menu.
|
|
2938
|
+
*/
|
|
2939
|
+
enum MenuListType {
|
|
2940
|
+
dropDown = "dropDown",
|
|
2941
|
+
popOver = "popOver"
|
|
2942
|
+
}
|
|
2943
|
+
function initialize(): void;
|
|
2944
|
+
/**
|
|
2945
|
+
* Registers list of view configurations and it's handler.
|
|
2946
|
+
* Handler is responsible for listening selection of View Configuration.
|
|
2947
|
+
* @param viewConfig List of view configurations. Minimum 1 value is required.
|
|
2948
|
+
* @param handler The handler to invoke when the user selects view configuration.
|
|
2949
|
+
*/
|
|
2950
|
+
function setUpViews(viewConfig: ViewConfiguration[], handler: (id: string) => boolean): void;
|
|
2951
|
+
/**
|
|
2952
|
+
* Used to set menu items on the Navigation Bar. If icon is available, icon will be shown, otherwise title will be shown.
|
|
2953
|
+
* @param items List of MenuItems for Navigation Bar Menu.
|
|
2954
|
+
* @param handler The handler to invoke when the user selects menu item.
|
|
2955
|
+
*/
|
|
2956
|
+
function setNavBarMenu(items: MenuItem[], handler: (id: string) => boolean): void;
|
|
2957
|
+
interface ActionMenuParameters {
|
|
2958
|
+
/**
|
|
2959
|
+
* Display title for Action Menu
|
|
2960
|
+
*/
|
|
2961
|
+
title: string;
|
|
2962
|
+
/**
|
|
2963
|
+
* List of MenuItems for Action Menu
|
|
2964
|
+
*/
|
|
2965
|
+
items: MenuItem[];
|
|
2966
|
+
}
|
|
2967
|
+
/**
|
|
2968
|
+
* Used to show Action Menu.
|
|
2969
|
+
* @param params Parameters for Menu Parameters
|
|
2970
|
+
* @param handler The handler to invoke when the user selects menu item.
|
|
2971
|
+
*/
|
|
2972
|
+
function showActionMenu(params: ActionMenuParameters, handler: (id: string) => boolean): void;
|
|
2973
|
+
}
|
|
2912
2974
|
export namespace monetization {
|
|
2913
2975
|
/**
|
|
2914
2976
|
* @private
|
|
@@ -3259,9 +3321,6 @@ declare namespace microsoftTeams {
|
|
|
3259
3321
|
preview?: boolean;
|
|
3260
3322
|
}
|
|
3261
3323
|
/**
|
|
3262
|
-
* @private
|
|
3263
|
-
* Feature is under development
|
|
3264
|
-
*
|
|
3265
3324
|
* Opens a share dialog for web content
|
|
3266
3325
|
* @param shareWebContentRequest web content info
|
|
3267
3326
|
* @param callback optional callback
|
package/dist/MicrosoftTeams.js
CHANGED
|
@@ -726,7 +726,7 @@ function handleBeforeUnload() {
|
|
|
726
726
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
727
727
|
exports.userOriginUrlValidationRegExp = exports.validOriginRegExp = exports.validOrigins = exports.scanBarCodeAPIMobileSupportVersion = exports.getMediaCallbackSupportVersion = exports.mediaAPISupportVersion = exports.captureImageMobileSupportVersion = exports.peoplePickerRequiredVersion = exports.locationAPIsRequiredVersion = exports.getUserJoinedTeamsSupportedAndroidClientVersion = exports.imageOutputFormatsAPISupportVersion = exports.nonFullScreenVideoModeAPISupportVersion = exports.videoAndImageMediaAPISupportVersion = exports.defaultSDKVersionForCompatCheck = exports.version = void 0;
|
|
728
728
|
var utils_1 = __webpack_require__(5);
|
|
729
|
-
exports.version = '1.12.0-beta.
|
|
729
|
+
exports.version = '1.12.0-beta.4';
|
|
730
730
|
/**
|
|
731
731
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
732
732
|
* Modified to 2.0.1 which is hightest till now so that if any client doesn't pass version in initialize function, it will be set to highest.
|
|
@@ -1017,7 +1017,7 @@ exports.GlobalVars = GlobalVars;
|
|
|
1017
1017
|
"use strict";
|
|
1018
1018
|
|
|
1019
1019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1020
|
-
exports.stageView = exports.sharing = exports.video = exports.people = exports.monetization = exports.meeting = exports.location = exports.media = exports.ParentAppWindow = exports.ChildAppWindow = exports.tasks = exports.settings = exports.navigateToTab = exports.navigateCrossDomain = exports.navigateBack = exports.returnFocus = exports.shareDeepLink = exports.setFrameContext = exports.registerAppButtonHoverLeaveHandler = exports.registerAppButtonHoverEnterHandler = exports.registerAppButtonClickHandler = exports.registerOnThemeChangeHandler = exports.registerOnLoadHandler = exports.registerFullScreenHandler = exports.registerEnterSettingsHandler = exports.registerFocusEnterHandler = exports.registerBeforeUnloadHandler = exports.registerBackButtonHandler = exports.print = exports.initializeWithFrameContext = exports.initialize = exports.getTabInstances = exports.getMruTabInstances = exports.getContext = exports.executeDeepLink = exports.enablePrintCapability = exports.FileOpenPreference = exports.ErrorCode = exports.ChannelType = exports.UserTeamRole = exports.TeamType = exports.TaskModuleDimension = exports.HostClientType = exports.FrameContexts = exports.authentication = exports.appInitialization = void 0;
|
|
1020
|
+
exports.stageView = exports.sharing = exports.video = exports.people = exports.monetization = exports.meeting = exports.location = exports.media = exports.menus = exports.ParentAppWindow = exports.ChildAppWindow = exports.tasks = exports.settings = exports.navigateToTab = exports.navigateCrossDomain = exports.navigateBack = exports.returnFocus = exports.shareDeepLink = exports.setFrameContext = exports.registerAppButtonHoverLeaveHandler = exports.registerAppButtonHoverEnterHandler = exports.registerAppButtonClickHandler = exports.registerOnThemeChangeHandler = exports.registerOnLoadHandler = exports.registerFullScreenHandler = exports.registerEnterSettingsHandler = exports.registerFocusEnterHandler = exports.registerBeforeUnloadHandler = exports.registerBackButtonHandler = exports.print = exports.initializeWithFrameContext = exports.initialize = exports.getTabInstances = exports.getMruTabInstances = exports.getContext = exports.executeDeepLink = exports.enablePrintCapability = exports.FileOpenPreference = exports.ErrorCode = exports.ChannelType = exports.UserTeamRole = exports.TeamType = exports.TaskModuleDimension = exports.HostClientType = exports.FrameContexts = exports.authentication = exports.appInitialization = void 0;
|
|
1021
1021
|
var appInitialization_1 = __webpack_require__(25);
|
|
1022
1022
|
Object.defineProperty(exports, "appInitialization", { enumerable: true, get: function () { return appInitialization_1.appInitialization; } });
|
|
1023
1023
|
var authentication_1 = __webpack_require__(11);
|
|
@@ -1065,6 +1065,8 @@ Object.defineProperty(exports, "tasks", { enumerable: true, get: function () { r
|
|
|
1065
1065
|
var appWindow_1 = __webpack_require__(16);
|
|
1066
1066
|
Object.defineProperty(exports, "ChildAppWindow", { enumerable: true, get: function () { return appWindow_1.ChildAppWindow; } });
|
|
1067
1067
|
Object.defineProperty(exports, "ParentAppWindow", { enumerable: true, get: function () { return appWindow_1.ParentAppWindow; } });
|
|
1068
|
+
var menus_1 = __webpack_require__(15);
|
|
1069
|
+
Object.defineProperty(exports, "menus", { enumerable: true, get: function () { return menus_1.menus; } });
|
|
1068
1070
|
var media_1 = __webpack_require__(17);
|
|
1069
1071
|
Object.defineProperty(exports, "media", { enumerable: true, get: function () { return media_1.media; } });
|
|
1070
1072
|
var location_1 = __webpack_require__(29);
|
|
@@ -1661,13 +1663,12 @@ var internalAPIs_1 = __webpack_require__(1);
|
|
|
1661
1663
|
var constants_1 = __webpack_require__(2);
|
|
1662
1664
|
var utils_1 = __webpack_require__(5);
|
|
1663
1665
|
var communication_1 = __webpack_require__(0);
|
|
1664
|
-
var menus_1 = __webpack_require__(15);
|
|
1665
1666
|
var handlers_1 = __webpack_require__(3);
|
|
1666
1667
|
var globalVars_1 = __webpack_require__(7);
|
|
1667
1668
|
var interfaces_1 = __webpack_require__(6);
|
|
1668
1669
|
var constants_2 = __webpack_require__(4);
|
|
1669
1670
|
function initializePrivateApis() {
|
|
1670
|
-
|
|
1671
|
+
//Keeping this API for any future usage, wherein privateAPIs need to be initialized
|
|
1671
1672
|
}
|
|
1672
1673
|
exports.initializePrivateApis = initializePrivateApis;
|
|
1673
1674
|
/**
|
|
@@ -1879,8 +1880,6 @@ var handlers_1 = __webpack_require__(3);
|
|
|
1879
1880
|
* Namespace to interact with the menu-specific part of the SDK.
|
|
1880
1881
|
* This object is used to show View Configuration, Action Menu and Navigation Bar Menu.
|
|
1881
1882
|
*
|
|
1882
|
-
* @private
|
|
1883
|
-
* Hide from docs until feature is complete
|
|
1884
1883
|
*/
|
|
1885
1884
|
var menus;
|
|
1886
1885
|
(function (menus) {
|
|
@@ -2700,11 +2699,9 @@ __exportStar(__webpack_require__(8), exports);
|
|
|
2700
2699
|
"use strict";
|
|
2701
2700
|
|
|
2702
2701
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2703
|
-
exports.teams = exports.appEntity = exports.files = exports.remoteCamera = exports.meetingRoom = exports.conversations = exports.registerUserSettingsChangeHandler = exports.uploadCustomApp = exports.registerCustomHandler = exports.sendCustomEvent = exports.showNotification = exports.sendCustomMessage = exports.openFilePreview = exports.getUserJoinedTeams = exports.getConfigSetting = exports.getChatMembers = exports.exitFullscreen = exports.enterFullscreen = exports.UserSettingTypes = exports.ViewerActionTypes = exports.NotificationTypes = exports.logs = exports.
|
|
2702
|
+
exports.teams = exports.appEntity = exports.files = exports.remoteCamera = exports.meetingRoom = exports.conversations = exports.registerUserSettingsChangeHandler = exports.uploadCustomApp = exports.registerCustomHandler = exports.sendCustomEvent = exports.showNotification = exports.sendCustomMessage = exports.openFilePreview = exports.getUserJoinedTeams = exports.getConfigSetting = exports.getChatMembers = exports.exitFullscreen = exports.enterFullscreen = exports.UserSettingTypes = exports.ViewerActionTypes = exports.NotificationTypes = exports.logs = exports.bot = void 0;
|
|
2704
2703
|
var bot_1 = __webpack_require__(21);
|
|
2705
2704
|
Object.defineProperty(exports, "bot", { enumerable: true, get: function () { return bot_1.bot; } });
|
|
2706
|
-
var menus_1 = __webpack_require__(15);
|
|
2707
|
-
Object.defineProperty(exports, "menus", { enumerable: true, get: function () { return menus_1.menus; } });
|
|
2708
2705
|
var logs_1 = __webpack_require__(13);
|
|
2709
2706
|
Object.defineProperty(exports, "logs", { enumerable: true, get: function () { return logs_1.logs; } });
|
|
2710
2707
|
var interfaces_1 = __webpack_require__(36);
|
|
@@ -3077,6 +3074,7 @@ var constants_2 = __webpack_require__(2);
|
|
|
3077
3074
|
var communication_1 = __webpack_require__(0);
|
|
3078
3075
|
var authentication_1 = __webpack_require__(11);
|
|
3079
3076
|
var privateAPIs_1 = __webpack_require__(14);
|
|
3077
|
+
var menus_1 = __webpack_require__(15);
|
|
3080
3078
|
var Handlers = __webpack_require__(3); // Conflict with some names
|
|
3081
3079
|
// ::::::::::::::::::::::: MicrosoftTeams SDK public API ::::::::::::::::::::
|
|
3082
3080
|
/**
|
|
@@ -3104,6 +3102,7 @@ function initialize(callback, validMessageOrigins) {
|
|
|
3104
3102
|
}, validMessageOrigins);
|
|
3105
3103
|
authentication_1.authentication.initialize();
|
|
3106
3104
|
settings_1.settings.initialize();
|
|
3105
|
+
menus_1.menus.initialize();
|
|
3107
3106
|
(0, privateAPIs_1.initializePrivateApis)();
|
|
3108
3107
|
}
|
|
3109
3108
|
// Handle additional valid message origins if specified
|
|
@@ -3939,9 +3938,6 @@ var sharing;
|
|
|
3939
3938
|
shareWebContent: 'sharing.shareWebContent',
|
|
3940
3939
|
};
|
|
3941
3940
|
/**
|
|
3942
|
-
* @private
|
|
3943
|
-
* Feature is under development
|
|
3944
|
-
*
|
|
3945
3941
|
* Opens a share dialog for web content
|
|
3946
3942
|
* @param shareWebContentRequest web content info
|
|
3947
3943
|
* @param callback optional callback
|
|
@@ -4525,7 +4521,7 @@ var public_1 = __webpack_require__(8);
|
|
|
4525
4521
|
* Hide from docs
|
|
4526
4522
|
*/
|
|
4527
4523
|
var files;
|
|
4528
|
-
(function (
|
|
4524
|
+
(function (files_1) {
|
|
4529
4525
|
/**
|
|
4530
4526
|
* @private
|
|
4531
4527
|
* Hide from docs
|
|
@@ -4540,7 +4536,7 @@ var files;
|
|
|
4540
4536
|
CloudStorageProvider["GoogleDrive"] = "GOOGLEDRIVE";
|
|
4541
4537
|
CloudStorageProvider["Egnyte"] = "EGNYTE";
|
|
4542
4538
|
CloudStorageProvider["SharePoint"] = "SharePoint";
|
|
4543
|
-
})(CloudStorageProvider =
|
|
4539
|
+
})(CloudStorageProvider = files_1.CloudStorageProvider || (files_1.CloudStorageProvider = {}));
|
|
4544
4540
|
/**
|
|
4545
4541
|
* @private
|
|
4546
4542
|
* Hide from docs
|
|
@@ -4559,7 +4555,7 @@ var files;
|
|
|
4559
4555
|
CloudStorageProviderType[CloudStorageProviderType["Search"] = 7] = "Search";
|
|
4560
4556
|
CloudStorageProviderType[CloudStorageProviderType["AllFiles"] = 8] = "AllFiles";
|
|
4561
4557
|
CloudStorageProviderType[CloudStorageProviderType["SharedWithMe"] = 9] = "SharedWithMe";
|
|
4562
|
-
})(CloudStorageProviderType =
|
|
4558
|
+
})(CloudStorageProviderType = files_1.CloudStorageProviderType || (files_1.CloudStorageProviderType = {}));
|
|
4563
4559
|
/**
|
|
4564
4560
|
* @private
|
|
4565
4561
|
* Hide from docs
|
|
@@ -4569,7 +4565,7 @@ var files;
|
|
|
4569
4565
|
var SpecialDocumentLibraryType;
|
|
4570
4566
|
(function (SpecialDocumentLibraryType) {
|
|
4571
4567
|
SpecialDocumentLibraryType["ClassMaterials"] = "classMaterials";
|
|
4572
|
-
})(SpecialDocumentLibraryType =
|
|
4568
|
+
})(SpecialDocumentLibraryType = files_1.SpecialDocumentLibraryType || (files_1.SpecialDocumentLibraryType = {}));
|
|
4573
4569
|
/**
|
|
4574
4570
|
* @private
|
|
4575
4571
|
* Hide from docs
|
|
@@ -4579,7 +4575,19 @@ var files;
|
|
|
4579
4575
|
var DocumentLibraryAccessType;
|
|
4580
4576
|
(function (DocumentLibraryAccessType) {
|
|
4581
4577
|
DocumentLibraryAccessType["Readonly"] = "readonly";
|
|
4582
|
-
})(DocumentLibraryAccessType =
|
|
4578
|
+
})(DocumentLibraryAccessType = files_1.DocumentLibraryAccessType || (files_1.DocumentLibraryAccessType = {}));
|
|
4579
|
+
/**
|
|
4580
|
+
* @private
|
|
4581
|
+
* Hide from docs
|
|
4582
|
+
*
|
|
4583
|
+
* Download status enum
|
|
4584
|
+
*/
|
|
4585
|
+
var FileDownloadStatus;
|
|
4586
|
+
(function (FileDownloadStatus) {
|
|
4587
|
+
FileDownloadStatus["Downloaded"] = "Downloaded";
|
|
4588
|
+
FileDownloadStatus["Downloading"] = "Downloading";
|
|
4589
|
+
FileDownloadStatus["Failed"] = "Failed";
|
|
4590
|
+
})(FileDownloadStatus = files_1.FileDownloadStatus || (files_1.FileDownloadStatus = {}));
|
|
4583
4591
|
/**
|
|
4584
4592
|
* @private
|
|
4585
4593
|
* Hide from docs
|
|
@@ -4598,7 +4606,7 @@ var files;
|
|
|
4598
4606
|
}
|
|
4599
4607
|
(0, communication_1.sendMessageToParent)('files.getCloudStorageFolders', [channelId], callback);
|
|
4600
4608
|
}
|
|
4601
|
-
|
|
4609
|
+
files_1.getCloudStorageFolders = getCloudStorageFolders;
|
|
4602
4610
|
/**
|
|
4603
4611
|
* @private
|
|
4604
4612
|
* Hide from docs
|
|
@@ -4617,7 +4625,7 @@ var files;
|
|
|
4617
4625
|
}
|
|
4618
4626
|
(0, communication_1.sendMessageToParent)('files.addCloudStorageFolder', [channelId], callback);
|
|
4619
4627
|
}
|
|
4620
|
-
|
|
4628
|
+
files_1.addCloudStorageFolder = addCloudStorageFolder;
|
|
4621
4629
|
/**
|
|
4622
4630
|
* @private
|
|
4623
4631
|
* Hide from docs
|
|
@@ -4640,7 +4648,7 @@ var files;
|
|
|
4640
4648
|
}
|
|
4641
4649
|
(0, communication_1.sendMessageToParent)('files.deleteCloudStorageFolder', [channelId, folderToDelete], callback);
|
|
4642
4650
|
}
|
|
4643
|
-
|
|
4651
|
+
files_1.deleteCloudStorageFolder = deleteCloudStorageFolder;
|
|
4644
4652
|
/**
|
|
4645
4653
|
* @private
|
|
4646
4654
|
* Hide from docs
|
|
@@ -4663,7 +4671,7 @@ var files;
|
|
|
4663
4671
|
}
|
|
4664
4672
|
(0, communication_1.sendMessageToParent)('files.getCloudStorageFolderContents', [folder, providerCode], callback);
|
|
4665
4673
|
}
|
|
4666
|
-
|
|
4674
|
+
files_1.getCloudStorageFolderContents = getCloudStorageFolderContents;
|
|
4667
4675
|
/**
|
|
4668
4676
|
* @private
|
|
4669
4677
|
* Hide from docs
|
|
@@ -4683,7 +4691,7 @@ var files;
|
|
|
4683
4691
|
}
|
|
4684
4692
|
(0, communication_1.sendMessageToParent)('files.openCloudStorageFile', [file, providerCode, fileOpenPreference]);
|
|
4685
4693
|
}
|
|
4686
|
-
|
|
4694
|
+
files_1.openCloudStorageFile = openCloudStorageFile;
|
|
4687
4695
|
/**
|
|
4688
4696
|
* @private
|
|
4689
4697
|
* Allow 1st party apps to call this function to get the external
|
|
@@ -4699,7 +4707,7 @@ var files;
|
|
|
4699
4707
|
}
|
|
4700
4708
|
(0, communication_1.sendMessageToParent)('files.getExternalProviders', [excludeAddedProviders], callback);
|
|
4701
4709
|
}
|
|
4702
|
-
|
|
4710
|
+
files_1.getExternalProviders = getExternalProviders;
|
|
4703
4711
|
/**
|
|
4704
4712
|
* @private
|
|
4705
4713
|
* Allow 1st party apps to call this function to move files
|
|
@@ -4725,7 +4733,39 @@ var files;
|
|
|
4725
4733
|
}
|
|
4726
4734
|
(0, communication_1.sendMessageToParent)('files.copyMoveFiles', [selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove], callback);
|
|
4727
4735
|
}
|
|
4728
|
-
|
|
4736
|
+
files_1.copyMoveFiles = copyMoveFiles;
|
|
4737
|
+
/**
|
|
4738
|
+
* @private
|
|
4739
|
+
* Hide from docs
|
|
4740
|
+
*
|
|
4741
|
+
* Gets list of downloads for current user
|
|
4742
|
+
* @param callback Callback that will be triggered post downloads load
|
|
4743
|
+
*/
|
|
4744
|
+
function getFileDownloads(callback) {
|
|
4745
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4746
|
+
if (!callback) {
|
|
4747
|
+
throw new Error('[files.getFileDownloads] Callback cannot be null');
|
|
4748
|
+
}
|
|
4749
|
+
(0, communication_1.sendMessageToParent)('files.getFileDownloads', [], callback);
|
|
4750
|
+
}
|
|
4751
|
+
files_1.getFileDownloads = getFileDownloads;
|
|
4752
|
+
/**
|
|
4753
|
+
* @private
|
|
4754
|
+
* Hide from docs
|
|
4755
|
+
*
|
|
4756
|
+
* Open download preference folder if fileObjectId value is undefined else open folder containing the file with id fileObjectId
|
|
4757
|
+
* @param fileObjectId: Id of the file whose containing folder should be opened
|
|
4758
|
+
* @param callback Callback that will be triggered post open download folder/path
|
|
4759
|
+
*/
|
|
4760
|
+
function openDownloadFolder(fileObjectId, callback) {
|
|
4761
|
+
if (fileObjectId === void 0) { fileObjectId = undefined; }
|
|
4762
|
+
(0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
|
|
4763
|
+
if (!callback) {
|
|
4764
|
+
throw new Error('[files.openDownloadFolder] Callback cannot be null');
|
|
4765
|
+
}
|
|
4766
|
+
(0, communication_1.sendMessageToParent)('files.openDownloadFolder', [fileObjectId], callback);
|
|
4767
|
+
}
|
|
4768
|
+
files_1.openDownloadFolder = openDownloadFolder;
|
|
4729
4769
|
})(files = exports.files || (exports.files = {}));
|
|
4730
4770
|
|
|
4731
4771
|
|