@microsoft/teams-js 2.0.0-beta.4-dev.8 → 2.0.0-beta.4-dev.11
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
@@ -751,6 +751,17 @@ export namespace files {
|
|
751
751
|
* Gets list of downloads for current user
|
752
752
|
* @param callback Callback that will be triggered post downloads load
|
753
753
|
*/
|
754
|
+
export function getFileDownloads(): Promise<IFileItem[]>;
|
755
|
+
/**
|
756
|
+
* @hidden
|
757
|
+
* Hide from docs
|
758
|
+
* ------
|
759
|
+
*
|
760
|
+
* @deprecated
|
761
|
+
* As of 2.0.0-beta.4, please use {@link file.getFileDownloads file.getFileDownloads(): Promise\<IFileItem[]\>} instead.
|
762
|
+
* Gets list of downloads for current user
|
763
|
+
* @param callback Callback that will be triggered post downloads load
|
764
|
+
*/
|
754
765
|
export function getFileDownloads(callback: (error?: SdkError, files?: IFileItem[]) => void): void;
|
755
766
|
/**
|
756
767
|
* @hidden
|
@@ -4563,7 +4574,19 @@ export namespace stageView {
|
|
4563
4574
|
*
|
4564
4575
|
* Opens a stage view to display a Teams app
|
4565
4576
|
* @param stageViewParams The parameters to pass into the stage view.
|
4566
|
-
*
|
4577
|
+
*
|
4578
|
+
*/
|
4579
|
+
function open(stageViewParams: StageViewParams): Promise<void>;
|
4580
|
+
/**
|
4581
|
+
* @hidden
|
4582
|
+
* Feature is under development
|
4583
|
+
*
|
4584
|
+
* @deprecated
|
4585
|
+
* As of 2.0.0-beta.3, please use {@link stageView.open stageView.open(): Promise\<void\>} instead.
|
4586
|
+
*
|
4587
|
+
* Opens a stage view to display a Teams app
|
4588
|
+
* @param stageViewParams The parameters to pass into the stage view.
|
4589
|
+
* Optional; @param callback Callback that will be triggered once the stage view is closed.
|
4567
4590
|
* The callback takes as an argument an SdkError in case something happened (i.e.
|
4568
4591
|
* no permissions to execute the API)
|
4569
4592
|
*/
|
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.4-dev.
|
1124
|
+
var version = "2.0.0-beta.4-dev.11";
|
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.
|
@@ -5625,27 +5625,21 @@ var sharing;
|
|
5625
5625
|
|
5626
5626
|
|
5627
5627
|
|
5628
|
+
|
5628
5629
|
/**
|
5629
5630
|
* Namespace to interact with the stage view specific part of the SDK.
|
5630
5631
|
*/
|
5631
5632
|
var stageView;
|
5632
5633
|
(function (stageView) {
|
5633
|
-
/**
|
5634
|
-
* @hidden
|
5635
|
-
* Feature is under development
|
5636
|
-
*
|
5637
|
-
* Opens a stage view to display a Teams app
|
5638
|
-
* @param stageViewParams The parameters to pass into the stage view.
|
5639
|
-
* @param callback Callback that will be triggered once the stage view is closed.
|
5640
|
-
* The callback takes as an argument an SdkError in case something happened (i.e.
|
5641
|
-
* no permissions to execute the API)
|
5642
|
-
*/
|
5643
5634
|
function open(stageViewParams, callback) {
|
5644
5635
|
ensureInitialized(FrameContexts.content);
|
5645
5636
|
if (!stageViewParams) {
|
5646
5637
|
throw new Error('[stageView.open] Stage view params cannot be null');
|
5647
5638
|
}
|
5648
|
-
|
5639
|
+
var wrappedFunction = function () {
|
5640
|
+
return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('stageView.open', stageViewParams)); });
|
5641
|
+
};
|
5642
|
+
return callCallbackWithErrorOrResultFromPromiseAndReturnPromise(wrappedFunction, callback);
|
5649
5643
|
}
|
5650
5644
|
stageView.open = open;
|
5651
5645
|
})(stageView || (stageView = {}));
|
@@ -6421,6 +6415,7 @@ var tasks;
|
|
6421
6415
|
|
6422
6416
|
|
6423
6417
|
|
6418
|
+
|
6424
6419
|
/**
|
6425
6420
|
* @hidden
|
6426
6421
|
* Hide from docs
|
@@ -6677,19 +6672,12 @@ var files;
|
|
6677
6672
|
return runtime.supports.files ? true : false;
|
6678
6673
|
}
|
6679
6674
|
files_1.isSupported = isSupported;
|
6680
|
-
/**
|
6681
|
-
* @hidden
|
6682
|
-
* Hide from docs
|
6683
|
-
* ------
|
6684
|
-
* Gets list of downloads for current user
|
6685
|
-
* @param callback Callback that will be triggered post downloads load
|
6686
|
-
*/
|
6687
6675
|
function getFileDownloads(callback) {
|
6688
6676
|
ensureInitialized(FrameContexts.content);
|
6689
|
-
|
6690
|
-
|
6691
|
-
}
|
6692
|
-
|
6677
|
+
var wrappedFunction = function () {
|
6678
|
+
return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('files.getFileDownloads', [])); });
|
6679
|
+
};
|
6680
|
+
return callCallbackWithErrorOrResultFromPromiseAndReturnPromise(wrappedFunction, callback);
|
6693
6681
|
}
|
6694
6682
|
files_1.getFileDownloads = getFileDownloads;
|
6695
6683
|
/**
|