@microsoft/teams-js 2.0.0-beta.5-dev.6 → 2.0.0-beta.5-dev.9
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
CHANGED
@@ -2086,6 +2086,26 @@ export interface Context {
|
|
2086
2086
|
*/
|
2087
2087
|
mySitePath?: string;
|
2088
2088
|
}
|
2089
|
+
export interface ShareDeepLinkParameters {
|
2090
|
+
/**
|
2091
|
+
* The developer-defined unique ID for the sub-page to which this deep link points in the current page.
|
2092
|
+
* This field should be used to restore to a specific state within a page, such as scrolling to or activating a specific piece of content.
|
2093
|
+
*/
|
2094
|
+
subPageId: string;
|
2095
|
+
/**
|
2096
|
+
* The label for the sub-page that should be displayed when the deep link is rendered in a client.
|
2097
|
+
*/
|
2098
|
+
subPageLabel: string;
|
2099
|
+
/**
|
2100
|
+
* The fallback URL to which to navigate the user if the client cannot render the page.
|
2101
|
+
* This URL should lead directly to the sub-entity.
|
2102
|
+
*/
|
2103
|
+
subPageWebUrl?: string;
|
2104
|
+
}
|
2105
|
+
/**
|
2106
|
+
* @deprecated
|
2107
|
+
* As of 2.0.0-beta.5, please use {@link ShareDeepLinkParameters} instead.
|
2108
|
+
*/
|
2089
2109
|
export interface DeepLinkParameters {
|
2090
2110
|
/**
|
2091
2111
|
* The developer-defined unique ID for the sub-entity to which this deep link points in the current entity.
|
@@ -2973,7 +2993,7 @@ export namespace pages {
|
|
2973
2993
|
*
|
2974
2994
|
* @param deepLinkParameters - ID and label for the link and fallback URL.
|
2975
2995
|
*/
|
2976
|
-
function shareDeepLink(deepLinkParameters:
|
2996
|
+
function shareDeepLink(deepLinkParameters: ShareDeepLinkParameters): void;
|
2977
2997
|
/**
|
2978
2998
|
* Registers a handler for changes from or to full-screen view for a tab.
|
2979
2999
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1121,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1121
1121
|
});
|
1122
1122
|
|
1123
1123
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1124
|
-
var version = "2.0.0-beta.5-dev.
|
1124
|
+
var version = "2.0.0-beta.5-dev.9";
|
1125
1125
|
/**
|
1126
1126
|
* @hidden
|
1127
1127
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -3144,9 +3144,9 @@ var pages;
|
|
3144
3144
|
function shareDeepLink(deepLinkParameters) {
|
3145
3145
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
3146
3146
|
sendMessageToParent('shareDeepLink', [
|
3147
|
-
deepLinkParameters.
|
3148
|
-
deepLinkParameters.
|
3149
|
-
deepLinkParameters.
|
3147
|
+
deepLinkParameters.subPageId,
|
3148
|
+
deepLinkParameters.subPageLabel,
|
3149
|
+
deepLinkParameters.subPageWebUrl,
|
3150
3150
|
]);
|
3151
3151
|
}
|
3152
3152
|
pages.shareDeepLink = shareDeepLink;
|
@@ -4425,7 +4425,7 @@ var dialog;
|
|
4425
4425
|
function submit(result, appIds) {
|
4426
4426
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
|
4427
4427
|
// Send tasks.completeTask instead of tasks.submitTask message for backward compatibility with Mobile clients
|
4428
|
-
sendMessageToParent('tasks.completeTask', [result, Array.isArray(appIds) ? appIds : [appIds]]);
|
4428
|
+
sendMessageToParent('tasks.completeTask', [result, appIds ? (Array.isArray(appIds) ? appIds : [appIds]) : []]);
|
4429
4429
|
}
|
4430
4430
|
dialog.submit = submit;
|
4431
4431
|
/**
|
@@ -6223,7 +6223,11 @@ function getMruTabInstances(callback, tabInstanceParameters) {
|
|
6223
6223
|
* @param deepLinkParameters - ID and label for the link and fallback URL.
|
6224
6224
|
*/
|
6225
6225
|
function shareDeepLink(deepLinkParameters) {
|
6226
|
-
pages.shareDeepLink(
|
6226
|
+
pages.shareDeepLink({
|
6227
|
+
subPageId: deepLinkParameters.subEntityId,
|
6228
|
+
subPageLabel: deepLinkParameters.subEntityLabel,
|
6229
|
+
subPageWebUrl: deepLinkParameters.subEntityWebUrl,
|
6230
|
+
});
|
6227
6231
|
}
|
6228
6232
|
/**
|
6229
6233
|
* @deprecated
|
@@ -6683,6 +6687,7 @@ var tasks;
|
|
6683
6687
|
|
6684
6688
|
|
6685
6689
|
|
6690
|
+
|
6686
6691
|
/**
|
6687
6692
|
* @hidden
|
6688
6693
|
* Hide from docs
|
@@ -6770,6 +6775,9 @@ var files;
|
|
6770
6775
|
function getCloudStorageFolders(channelId) {
|
6771
6776
|
return new Promise(function (resolve) {
|
6772
6777
|
ensureInitialized(FrameContexts.content);
|
6778
|
+
if (!isSupported()) {
|
6779
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6780
|
+
}
|
6773
6781
|
if (!channelId || channelId.length === 0) {
|
6774
6782
|
throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
|
6775
6783
|
}
|
@@ -6787,6 +6795,9 @@ var files;
|
|
6787
6795
|
function addCloudStorageFolder(channelId) {
|
6788
6796
|
return new Promise(function (resolve) {
|
6789
6797
|
ensureInitialized(FrameContexts.content);
|
6798
|
+
if (!isSupported()) {
|
6799
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6800
|
+
}
|
6790
6801
|
if (!channelId || channelId.length === 0) {
|
6791
6802
|
throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
|
6792
6803
|
}
|
@@ -6813,6 +6824,9 @@ var files;
|
|
6813
6824
|
function deleteCloudStorageFolder(channelId, folderToDelete) {
|
6814
6825
|
return new Promise(function (resolve) {
|
6815
6826
|
ensureInitialized(FrameContexts.content);
|
6827
|
+
if (!isSupported()) {
|
6828
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6829
|
+
}
|
6816
6830
|
if (!channelId) {
|
6817
6831
|
throw new Error('[files.deleteCloudStorageFolder] channelId name cannot be null or empty');
|
6818
6832
|
}
|
@@ -6835,6 +6849,9 @@ var files;
|
|
6835
6849
|
function getCloudStorageFolderContents(folder, providerCode) {
|
6836
6850
|
return new Promise(function (resolve) {
|
6837
6851
|
ensureInitialized(FrameContexts.content);
|
6852
|
+
if (!isSupported()) {
|
6853
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6854
|
+
}
|
6838
6855
|
if (!folder || !providerCode) {
|
6839
6856
|
throw new Error('[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty');
|
6840
6857
|
}
|
@@ -6857,6 +6874,9 @@ var files;
|
|
6857
6874
|
*/
|
6858
6875
|
function openCloudStorageFile(file, providerCode, fileOpenPreference) {
|
6859
6876
|
ensureInitialized(FrameContexts.content);
|
6877
|
+
if (!isSupported()) {
|
6878
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6879
|
+
}
|
6860
6880
|
if (!file || !providerCode) {
|
6861
6881
|
throw new Error('[files.openCloudStorageFile] file/providerCode cannot be null or empty');
|
6862
6882
|
}
|
@@ -6876,6 +6896,9 @@ var files;
|
|
6876
6896
|
*/
|
6877
6897
|
function openFilePreview(filePreviewParameters) {
|
6878
6898
|
ensureInitialized(FrameContexts.content);
|
6899
|
+
if (!isSupported()) {
|
6900
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6901
|
+
}
|
6879
6902
|
var params = [
|
6880
6903
|
filePreviewParameters.entityId,
|
6881
6904
|
filePreviewParameters.title,
|
@@ -6906,6 +6929,9 @@ var files;
|
|
6906
6929
|
if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
|
6907
6930
|
return new Promise(function (resolve) {
|
6908
6931
|
ensureInitialized(FrameContexts.content);
|
6932
|
+
if (!isSupported()) {
|
6933
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6934
|
+
}
|
6909
6935
|
resolve(sendAndHandleSdkError('files.getExternalProviders', excludeAddedProviders));
|
6910
6936
|
});
|
6911
6937
|
}
|
@@ -6919,6 +6945,9 @@ var files;
|
|
6919
6945
|
if (isMove === void 0) { isMove = false; }
|
6920
6946
|
return new Promise(function (resolve) {
|
6921
6947
|
ensureInitialized(FrameContexts.content);
|
6948
|
+
if (!isSupported()) {
|
6949
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6950
|
+
}
|
6922
6951
|
if (!selectedFiles || selectedFiles.length === 0) {
|
6923
6952
|
throw new Error('[files.copyMoveFiles] selectedFiles cannot be null or empty');
|
6924
6953
|
}
|
@@ -6941,6 +6970,9 @@ var files;
|
|
6941
6970
|
files_1.isSupported = isSupported;
|
6942
6971
|
function getFileDownloads(callback) {
|
6943
6972
|
ensureInitialized(FrameContexts.content);
|
6973
|
+
if (!isSupported()) {
|
6974
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6975
|
+
}
|
6944
6976
|
var wrappedFunction = function () {
|
6945
6977
|
return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('files.getFileDownloads', [])); });
|
6946
6978
|
};
|
@@ -6958,6 +6990,9 @@ var files;
|
|
6958
6990
|
function openDownloadFolder(fileObjectId, callback) {
|
6959
6991
|
if (fileObjectId === void 0) { fileObjectId = undefined; }
|
6960
6992
|
ensureInitialized(FrameContexts.content);
|
6993
|
+
if (!isSupported()) {
|
6994
|
+
throw new Error(errorNotSupportedOnPlatform);
|
6995
|
+
}
|
6961
6996
|
if (!callback) {
|
6962
6997
|
throw new Error('[files.openDownloadFolder] Callback cannot be null');
|
6963
6998
|
}
|