@microsoft/teams-js 2.0.0-beta.2 → 2.0.0-beta.2-dev.7
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 +5 -5
- package/dist/MicrosoftTeams.d.ts +4638 -4587
- package/dist/MicrosoftTeams.js +51 -117
- 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 +1 -27
package/dist/MicrosoftTeams.js
CHANGED
|
@@ -395,7 +395,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
395
395
|
});
|
|
396
396
|
|
|
397
397
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
|
398
|
-
var version = '2.0.0-beta.2';
|
|
398
|
+
var version = '2.0.0-beta.2-dev.7';
|
|
399
399
|
/**
|
|
400
400
|
* @hidden
|
|
401
401
|
* The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
@@ -803,7 +803,8 @@ function ensureInitialized() {
|
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
if (!found) {
|
|
806
|
-
throw new Error("This call is
|
|
806
|
+
throw new Error("This call is only allowed in following contexts: " + JSON.stringify(expectedFrameContexts) + ". " +
|
|
807
|
+
("Current context: \"" + GlobalVars.frameContext + "\"."));
|
|
807
808
|
}
|
|
808
809
|
}
|
|
809
810
|
}
|
|
@@ -1196,8 +1197,7 @@ var HostClientType;
|
|
|
1196
1197
|
HostClientType["android"] = "android";
|
|
1197
1198
|
HostClientType["ios"] = "ios";
|
|
1198
1199
|
/**
|
|
1199
|
-
* @deprecated
|
|
1200
|
-
* As of 2.0.0-beta.1, please use {@link teamsRoomsWindows} instead.
|
|
1200
|
+
* @deprecated Use teamsRoomsWindows instead.
|
|
1201
1201
|
*/
|
|
1202
1202
|
HostClientType["rigel"] = "rigel";
|
|
1203
1203
|
HostClientType["surfaceHub"] = "surfaceHub";
|
|
@@ -1256,8 +1256,7 @@ var DialogDimension;
|
|
|
1256
1256
|
DialogDimension["Small"] = "small";
|
|
1257
1257
|
})(DialogDimension || (DialogDimension = {}));
|
|
1258
1258
|
/**
|
|
1259
|
-
* @deprecated
|
|
1260
|
-
* As of 2.0.0-beta.1, please use {@link DialogDimension} instead.
|
|
1259
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
1261
1260
|
*/
|
|
1262
1261
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1263
1262
|
var TaskModuleDimension = DialogDimension;
|
|
@@ -1295,8 +1294,7 @@ var authentication;
|
|
|
1295
1294
|
authentication.initialize = initialize;
|
|
1296
1295
|
var authParams;
|
|
1297
1296
|
/**
|
|
1298
|
-
* @deprecated
|
|
1299
|
-
* As of 2.0.0-beta.1.
|
|
1297
|
+
* @deprecated with Teams JS v2 upgrades
|
|
1300
1298
|
*
|
|
1301
1299
|
* Registers the authentication Communication.handlers
|
|
1302
1300
|
*
|
|
@@ -4621,32 +4619,27 @@ var call;
|
|
|
4621
4619
|
;// CONCATENATED MODULE: ./src/public/appInitialization.ts
|
|
4622
4620
|
|
|
4623
4621
|
/**
|
|
4624
|
-
* @deprecated
|
|
4625
|
-
* As of 2.0.0-beta.1, please use {@link app} namespace instead.
|
|
4622
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4626
4623
|
*/
|
|
4627
4624
|
var appInitialization;
|
|
4628
4625
|
(function (appInitialization) {
|
|
4629
4626
|
/**
|
|
4630
|
-
* @deprecated
|
|
4631
|
-
* As of 2.0.0-beta.1, please use {@link app.Messages} instead.
|
|
4627
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4632
4628
|
*/
|
|
4633
4629
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4634
4630
|
appInitialization.Messages = app_app.Messages;
|
|
4635
4631
|
/**
|
|
4636
|
-
* @deprecated
|
|
4637
|
-
* As of 2.0.0-beta.1, please use {@link app.FailedReason} instead.
|
|
4632
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4638
4633
|
*/
|
|
4639
4634
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4640
4635
|
appInitialization.FailedReason = app_app.FailedReason;
|
|
4641
4636
|
/**
|
|
4642
|
-
* @deprecated
|
|
4643
|
-
* As of 2.0.0-beta.1, please use {@link app.ExpectedFailureReason} instead.
|
|
4637
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4644
4638
|
*/
|
|
4645
4639
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4646
4640
|
appInitialization.ExpectedFailureReason = app_app.ExpectedFailureReason;
|
|
4647
4641
|
/**
|
|
4648
|
-
* @deprecated
|
|
4649
|
-
* As of 2.0.0-beta.1, please use {@link app.notifyAppLoaded app.notifyAppLoaded(): void} instead.
|
|
4642
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4650
4643
|
* Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
|
|
4651
4644
|
*/
|
|
4652
4645
|
function notifyAppLoaded() {
|
|
@@ -4654,8 +4647,7 @@ var appInitialization;
|
|
|
4654
4647
|
}
|
|
4655
4648
|
appInitialization.notifyAppLoaded = notifyAppLoaded;
|
|
4656
4649
|
/**
|
|
4657
|
-
* @deprecated
|
|
4658
|
-
* As of 2.0.0-beta.1, please use {@link app.notifySuccess app.notifySuccess(): void} instead.
|
|
4650
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4659
4651
|
* Notifies the frame that app initialization is successful and is ready for user interaction.
|
|
4660
4652
|
*/
|
|
4661
4653
|
function notifySuccess() {
|
|
@@ -4663,8 +4655,7 @@ var appInitialization;
|
|
|
4663
4655
|
}
|
|
4664
4656
|
appInitialization.notifySuccess = notifySuccess;
|
|
4665
4657
|
/**
|
|
4666
|
-
* @deprecated
|
|
4667
|
-
* As of 2.0.0-beta.1, please use {@link app.notifyFailure app.notifyFailure(appInitializationFailedRequest: IFailedRequest): void} instead.
|
|
4658
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4668
4659
|
* Notifies the frame that app initialization has failed and to show an error page in its place.
|
|
4669
4660
|
*/
|
|
4670
4661
|
function notifyFailure(appInitializationFailedRequest) {
|
|
@@ -4672,8 +4663,7 @@ var appInitialization;
|
|
|
4672
4663
|
}
|
|
4673
4664
|
appInitialization.notifyFailure = notifyFailure;
|
|
4674
4665
|
/**
|
|
4675
|
-
* @deprecated
|
|
4676
|
-
* As of 2.0.0-beta.1, please use {@link app.notifyExpectedFailure app.notifyExpectedFailure(expectedFailureRequest: IExpectedFailureRequest): void} instead.
|
|
4666
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4677
4667
|
* Notifies the frame that app initialized with some expected errors.
|
|
4678
4668
|
*/
|
|
4679
4669
|
function notifyExpectedFailure(expectedFailureRequest) {
|
|
@@ -4689,8 +4679,7 @@ var appInitialization;
|
|
|
4689
4679
|
|
|
4690
4680
|
|
|
4691
4681
|
/**
|
|
4692
|
-
* @deprecated
|
|
4693
|
-
* As of 2.0.0-beta.1, please use {@link app.initialize app.initialize(validMessageOrigins?: string[]): Promise\<void\>} instead.
|
|
4682
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
4694
4683
|
*
|
|
4695
4684
|
* Initializes the library. This must be called before any other SDK calls
|
|
4696
4685
|
* but after the frame is loaded successfully.
|
|
@@ -4706,8 +4695,7 @@ function initialize(callback, validMessageOrigins) {
|
|
|
4706
4695
|
});
|
|
4707
4696
|
}
|
|
4708
4697
|
/**
|
|
4709
|
-
* @deprecated
|
|
4710
|
-
* As of 2.0.0-beta.1, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
|
|
4698
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4711
4699
|
*
|
|
4712
4700
|
* @hidden
|
|
4713
4701
|
* Hide from docs.
|
|
@@ -4721,8 +4709,7 @@ function _initialize(hostWindow) {
|
|
|
4721
4709
|
app._initialize(hostWindow);
|
|
4722
4710
|
}
|
|
4723
4711
|
/**
|
|
4724
|
-
* @deprecated
|
|
4725
|
-
* As of 2.0.0-beta.1, please use {@link app._uninitialize app._uninitialize(): void} instead.
|
|
4712
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4726
4713
|
*
|
|
4727
4714
|
* @hidden
|
|
4728
4715
|
* Hide from docs.
|
|
@@ -4735,8 +4722,7 @@ function _uninitialize() {
|
|
|
4735
4722
|
app._uninitialize();
|
|
4736
4723
|
}
|
|
4737
4724
|
/**
|
|
4738
|
-
* @deprecated
|
|
4739
|
-
* As of 2.0.0-beta.1, please use {@link teamsCore.enablePrintCapability teamsCore.enablePrintCapability(): void} instead.
|
|
4725
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4740
4726
|
*
|
|
4741
4727
|
* Enable print capability to support printing page using Ctrl+P and cmd+P
|
|
4742
4728
|
*/
|
|
@@ -4744,8 +4730,7 @@ function enablePrintCapability() {
|
|
|
4744
4730
|
teamsCore.enablePrintCapability();
|
|
4745
4731
|
}
|
|
4746
4732
|
/**
|
|
4747
|
-
* @deprecated
|
|
4748
|
-
* As of 2.0.0-beta.1, please use {@link teamsCore.print teamsCore.print(): void} instead.
|
|
4733
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4749
4734
|
*
|
|
4750
4735
|
* Default print handler
|
|
4751
4736
|
*/
|
|
@@ -4753,8 +4738,7 @@ function print() {
|
|
|
4753
4738
|
teamsCore.print();
|
|
4754
4739
|
}
|
|
4755
4740
|
/**
|
|
4756
|
-
* @deprecated
|
|
4757
|
-
* As of 2.0.0-beta.1, please use {@link app.getContext app.getContext(): Promise\<app.Context\>} instead.
|
|
4741
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4758
4742
|
*
|
|
4759
4743
|
* Retrieves the current context the frame is running in.
|
|
4760
4744
|
*
|
|
@@ -4769,8 +4753,7 @@ function getContext(callback) {
|
|
|
4769
4753
|
});
|
|
4770
4754
|
}
|
|
4771
4755
|
/**
|
|
4772
|
-
* @deprecated
|
|
4773
|
-
* As of 2.0.0-beta.1, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: (theme: string) => void): void} instead.
|
|
4756
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4774
4757
|
*
|
|
4775
4758
|
* Registers a handler for theme changes.
|
|
4776
4759
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
@@ -4781,8 +4764,7 @@ function registerOnThemeChangeHandler(handler) {
|
|
|
4781
4764
|
app_app.registerOnThemeChangeHandler(handler);
|
|
4782
4765
|
}
|
|
4783
4766
|
/**
|
|
4784
|
-
* @deprecated
|
|
4785
|
-
* As of 2.0.0-beta.1, please use {@link pages.registerFullScreenHandler pages.registerFullScreenHandler(handler: (isFullScreen: boolean) => void): void} instead.
|
|
4767
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4786
4768
|
*
|
|
4787
4769
|
* Registers a handler for changes from or to full-screen view for a tab.
|
|
4788
4770
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
@@ -4793,8 +4775,7 @@ function registerFullScreenHandler(handler) {
|
|
|
4793
4775
|
pages.registerFullScreenHandler(handler);
|
|
4794
4776
|
}
|
|
4795
4777
|
/**
|
|
4796
|
-
* @deprecated
|
|
4797
|
-
* As of 2.0.0-beta.1, please use {@link pages.appButton.onClick pages.appButton.onClick(handler: () => void): void} instead.
|
|
4778
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4798
4779
|
*
|
|
4799
4780
|
* Registers a handler for clicking the app button.
|
|
4800
4781
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
@@ -4805,8 +4786,7 @@ function registerAppButtonClickHandler(handler) {
|
|
|
4805
4786
|
pages.appButton.onClick(handler);
|
|
4806
4787
|
}
|
|
4807
4788
|
/**
|
|
4808
|
-
* @deprecated
|
|
4809
|
-
* As of 2.0.0-beta.1, please use {@link pages.appButton.onHoverEnter pages.appButton.onHoverEnter(handler: () => void): void} instead.
|
|
4789
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4810
4790
|
*
|
|
4811
4791
|
* Registers a handler for entering hover of the app button.
|
|
4812
4792
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
@@ -4817,8 +4797,7 @@ function registerAppButtonHoverEnterHandler(handler) {
|
|
|
4817
4797
|
pages.appButton.onHoverEnter(handler);
|
|
4818
4798
|
}
|
|
4819
4799
|
/**
|
|
4820
|
-
* @deprecated
|
|
4821
|
-
* As of 2.0.0-beta.1, please use {@link pages.appButton.onHoverLeave pages.appButton.onHoverLeave(handler: () => void): void} instead.
|
|
4800
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4822
4801
|
*
|
|
4823
4802
|
* Registers a handler for exiting hover of the app button.
|
|
4824
4803
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
@@ -4829,8 +4808,7 @@ function registerAppButtonHoverLeaveHandler(handler) {
|
|
|
4829
4808
|
pages.appButton.onHoverLeave(handler);
|
|
4830
4809
|
}
|
|
4831
4810
|
/**
|
|
4832
|
-
* @deprecated
|
|
4833
|
-
* As of 2.0.0-beta.1, please use {@link pages.backStack.registerBackButtonHandler pages.backStack.registerBackButtonHandler(handler: () => boolean): void} instead.
|
|
4811
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4834
4812
|
*
|
|
4835
4813
|
* Registers a handler for user presses of the Team client's back button. Experiences that maintain an internal
|
|
4836
4814
|
* navigation stack should use this handler to navigate the user back within their frame. If an app finds
|
|
@@ -4843,8 +4821,7 @@ function registerBackButtonHandler(handler) {
|
|
|
4843
4821
|
pages.backStack.registerBackButtonHandler(handler);
|
|
4844
4822
|
}
|
|
4845
4823
|
/**
|
|
4846
|
-
* @deprecated
|
|
4847
|
-
* As of 2.0.0-beta.1, please use {@link teamsCore.registerOnLoadHandler teamsCore.registerOnLoadHandler(handler: (context: LoadContext) => void): void} instead.
|
|
4824
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4848
4825
|
*
|
|
4849
4826
|
* @hidden
|
|
4850
4827
|
* Registers a handler to be called when the page has been requested to load.
|
|
@@ -4855,8 +4832,7 @@ function registerOnLoadHandler(handler) {
|
|
|
4855
4832
|
teamsCore.registerOnLoadHandler(handler);
|
|
4856
4833
|
}
|
|
4857
4834
|
/**
|
|
4858
|
-
* @deprecated
|
|
4859
|
-
* As of 2.0.0-beta.1, please use {@link teamsCore.registerBeforeUnloadHandler teamsCore.registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void} instead.
|
|
4835
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4860
4836
|
*
|
|
4861
4837
|
* @hidden
|
|
4862
4838
|
* Registers a handler to be called before the page is unloaded.
|
|
@@ -4868,8 +4844,7 @@ function registerBeforeUnloadHandler(handler) {
|
|
|
4868
4844
|
teamsCore.registerBeforeUnloadHandler(handler);
|
|
4869
4845
|
}
|
|
4870
4846
|
/**
|
|
4871
|
-
* @deprecated
|
|
4872
|
-
* As of 2.0.0-beta.1, please use {@link teamsCore.registerFocusEnterHandler teamsCore.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
|
|
4847
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4873
4848
|
*
|
|
4874
4849
|
* @hidden
|
|
4875
4850
|
* Registers a handler when focus needs to be passed from teams to the place of choice on app.
|
|
@@ -4880,8 +4855,7 @@ function registerFocusEnterHandler(handler) {
|
|
|
4880
4855
|
teamsCore.registerFocusEnterHandler(handler);
|
|
4881
4856
|
}
|
|
4882
4857
|
/**
|
|
4883
|
-
* @deprecated
|
|
4884
|
-
* As of 2.0.0-beta.1, please use {@link pages.config.registerChangeConfigHandler pages.config.registerChangeConfigHandler(handler: () => void): void} instead.
|
|
4858
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4885
4859
|
*
|
|
4886
4860
|
* Registers a handler for when the user reconfigurated tab.
|
|
4887
4861
|
*
|
|
@@ -4891,8 +4865,7 @@ function registerEnterSettingsHandler(handler) {
|
|
|
4891
4865
|
pages.config.registerChangeConfigHandler(handler);
|
|
4892
4866
|
}
|
|
4893
4867
|
/**
|
|
4894
|
-
* @deprecated
|
|
4895
|
-
* As of 2.0.0-beta.1, please use {@link pages.tabs.getTabInstances pages.tabs.getTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
|
|
4868
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4896
4869
|
*
|
|
4897
4870
|
* Allows an app to retrieve for this user tabs that are owned by this app.
|
|
4898
4871
|
* If no TabInstanceParameters are passed, the app defaults to favorite teams and favorite channels.
|
|
@@ -4907,8 +4880,7 @@ function getTabInstances(callback, tabInstanceParameters) {
|
|
|
4907
4880
|
});
|
|
4908
4881
|
}
|
|
4909
4882
|
/**
|
|
4910
|
-
* @deprecated
|
|
4911
|
-
* As of 2.0.0-beta.1, please use {@link pages.tabs.getMruTabInstances pages.tabs.getMruTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
|
|
4883
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4912
4884
|
*
|
|
4913
4885
|
* Allows an app to retrieve the most recently used tabs for this user.
|
|
4914
4886
|
*
|
|
@@ -4922,8 +4894,7 @@ function getMruTabInstances(callback, tabInstanceParameters) {
|
|
|
4922
4894
|
});
|
|
4923
4895
|
}
|
|
4924
4896
|
/**
|
|
4925
|
-
* @deprecated
|
|
4926
|
-
* As of 2.0.0-beta.1, please use {@link core.shareDeepLink core.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
|
|
4897
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4927
4898
|
*
|
|
4928
4899
|
* Shares a deep link that a user can use to navigate back to a specific state in this page.
|
|
4929
4900
|
*
|
|
@@ -4933,8 +4904,7 @@ function shareDeepLink(deepLinkParameters) {
|
|
|
4933
4904
|
core.shareDeepLink(deepLinkParameters);
|
|
4934
4905
|
}
|
|
4935
4906
|
/**
|
|
4936
|
-
* @deprecated
|
|
4937
|
-
* As of 2.0.0-beta.1, please use {@link core.executeDeepLink core.executeDeepLink(deepLink: string): Promise\<void\>} instead.
|
|
4907
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4938
4908
|
*
|
|
4939
4909
|
* Execute deep link API.
|
|
4940
4910
|
*
|
|
@@ -4955,8 +4925,7 @@ function executeDeepLink(deepLink, onComplete) {
|
|
|
4955
4925
|
});
|
|
4956
4926
|
}
|
|
4957
4927
|
/**
|
|
4958
|
-
* @deprecated
|
|
4959
|
-
* As of 2.0.0-beta.1, please use {@link pages.setCurrentFrame pages.setCurrentFrame(frameInfo: FrameInfo): void} instead.
|
|
4928
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4960
4929
|
*
|
|
4961
4930
|
* Set the current Frame Context
|
|
4962
4931
|
*
|
|
@@ -4966,8 +4935,7 @@ function setFrameContext(frameContext) {
|
|
|
4966
4935
|
pages.setCurrentFrame(frameContext);
|
|
4967
4936
|
}
|
|
4968
4937
|
/**
|
|
4969
|
-
* @deprecated
|
|
4970
|
-
* As of 2.0.0-beta.1, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?: () => void, validMessageOrigins?: string[],): void} instead.
|
|
4938
|
+
* @deprecated with Teams JS v2 upgrades
|
|
4971
4939
|
*
|
|
4972
4940
|
* Initilize with FrameContext
|
|
4973
4941
|
*
|
|
@@ -5062,8 +5030,7 @@ function transformAppContextToLegacyContext(appContext) {
|
|
|
5062
5030
|
* Navigation specific part of the SDK.
|
|
5063
5031
|
*/
|
|
5064
5032
|
/**
|
|
5065
|
-
* @deprecated
|
|
5066
|
-
* As of 2.0.0-beta.1, please use {@link pages.returnFocus pages.returnFocus(navigateForward?: boolean): void} instead.
|
|
5033
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5067
5034
|
*
|
|
5068
5035
|
* Return focus to the main Teams app. Will focus search bar if navigating foward and app bar if navigating back.
|
|
5069
5036
|
*
|
|
@@ -5073,8 +5040,7 @@ function returnFocus(navigateForward) {
|
|
|
5073
5040
|
pages.returnFocus(navigateForward);
|
|
5074
5041
|
}
|
|
5075
5042
|
/**
|
|
5076
|
-
* @deprecated
|
|
5077
|
-
* As of 2.0.0-beta.1, please use {@link pages.tabs.navigateToTab pages.tabs.navigateToTab(tabInstance: TabInstance): Promise\<void\>} instead.
|
|
5043
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5078
5044
|
*
|
|
5079
5045
|
* Navigates the Microsoft Teams app to the specified tab instance.
|
|
5080
5046
|
*
|
|
@@ -5096,8 +5062,7 @@ function navigateToTab(tabInstance, onComplete) {
|
|
|
5096
5062
|
});
|
|
5097
5063
|
}
|
|
5098
5064
|
/**
|
|
5099
|
-
* @deprecated
|
|
5100
|
-
* As of 2.0.0-beta.1, please use {@link pages.navigateCrossDomain pages.navigateCrossDomain(url: string): Promise\<void\>} instead.
|
|
5065
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5101
5066
|
*
|
|
5102
5067
|
* Navigates the frame to a new cross-domain URL. The domain of this URL must match at least one of the
|
|
5103
5068
|
* valid domains specified in the validDomains block of the manifest; otherwise, an exception will be
|
|
@@ -5123,8 +5088,7 @@ function navigateCrossDomain(url, onComplete) {
|
|
|
5123
5088
|
});
|
|
5124
5089
|
}
|
|
5125
5090
|
/**
|
|
5126
|
-
* @deprecated
|
|
5127
|
-
* As of 2.0.0-beta.1, please use {@link pages.backStack.navigateBack pages.backStack.navigateBack(): Promise\<void\>} instead.
|
|
5091
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5128
5092
|
*
|
|
5129
5093
|
* Navigates back in the Teams client.
|
|
5130
5094
|
* See registerBackButtonHandler for more information on when it's appropriate to use this method.
|
|
@@ -5151,8 +5115,7 @@ function navigateBack(onComplete) {
|
|
|
5151
5115
|
|
|
5152
5116
|
|
|
5153
5117
|
/**
|
|
5154
|
-
* @deprecated
|
|
5155
|
-
* As of 2.0.0-beta.1, please use {@link pages.config} namespace instead.
|
|
5118
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5156
5119
|
*
|
|
5157
5120
|
* Namespace to interact with the settings-specific part of the SDK.
|
|
5158
5121
|
* This object is usable only on the settings frame.
|
|
@@ -5160,8 +5123,7 @@ function navigateBack(onComplete) {
|
|
|
5160
5123
|
var settings;
|
|
5161
5124
|
(function (settings) {
|
|
5162
5125
|
/**
|
|
5163
|
-
* @deprecated
|
|
5164
|
-
* As of 2.0.0-beta.1, please use {@link pages.config.setValidityState pages.config.setValidityState(validityState: boolean): void} instead.
|
|
5126
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5165
5127
|
*
|
|
5166
5128
|
* Sets the validity state for the settings.
|
|
5167
5129
|
* The initial value is false, so the user cannot save the settings until this is called with true.
|
|
@@ -5173,8 +5135,7 @@ var settings;
|
|
|
5173
5135
|
}
|
|
5174
5136
|
settings.setValidityState = setValidityState;
|
|
5175
5137
|
/**
|
|
5176
|
-
* @deprecated
|
|
5177
|
-
* As of 2.0.0-beta.1, please use {@link pages.config.getConfig pages.config.getConfig(): Promise\<Config\>} instead.
|
|
5138
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5178
5139
|
*
|
|
5179
5140
|
* Gets the settings for the current instance.
|
|
5180
5141
|
*
|
|
@@ -5188,8 +5149,7 @@ var settings;
|
|
|
5188
5149
|
}
|
|
5189
5150
|
settings.getSettings = getSettings;
|
|
5190
5151
|
/**
|
|
5191
|
-
* @deprecated
|
|
5192
|
-
* As of 2.0.0-beta.1, please use {@link pages.config.setConfig pages.config.setConfig(instanceSettings: Config): Promise\<void\>} instead.
|
|
5152
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5193
5153
|
*
|
|
5194
5154
|
* Sets the settings for the current instance.
|
|
5195
5155
|
* This is an asynchronous operation; calls to getSettings are not guaranteed to reflect the changed state.
|
|
@@ -5212,8 +5172,7 @@ var settings;
|
|
|
5212
5172
|
}
|
|
5213
5173
|
settings.setSettings = setSettings;
|
|
5214
5174
|
/**
|
|
5215
|
-
* @deprecated
|
|
5216
|
-
* As of 2.0.0-beta.1, please use {@link pages.config.registerOnSaveHandler pages.config.registerOnSaveHandler(handler: (evt: SaveEvent) => void): void} instead.
|
|
5175
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5217
5176
|
*
|
|
5218
5177
|
* Registers a handler for when the user attempts to save the settings. This handler should be used
|
|
5219
5178
|
* to create or update the underlying resource powering the content.
|
|
@@ -5227,8 +5186,7 @@ var settings;
|
|
|
5227
5186
|
}
|
|
5228
5187
|
settings.registerOnSaveHandler = registerOnSaveHandler;
|
|
5229
5188
|
/**
|
|
5230
|
-
* @deprecated
|
|
5231
|
-
* As of 2.0.0-beta.1, please use {@link pages.config.registerOnRemoveHandler pages.config.registerOnRemoveHandler(handler: (evt: RemoveEvent) => void): void} instead.
|
|
5189
|
+
* @deprecated with Teams JS v2 upgrades
|
|
5232
5190
|
*
|
|
5233
5191
|
* Registers a handler for user attempts to remove content. This handler should be used
|
|
5234
5192
|
* to remove the underlying resource powering the content.
|
|
@@ -5244,11 +5202,11 @@ var settings;
|
|
|
5244
5202
|
})(settings || (settings = {}));
|
|
5245
5203
|
|
|
5246
5204
|
;// CONCATENATED MODULE: ./src/public/tasks.ts
|
|
5205
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
5247
5206
|
|
|
5248
5207
|
|
|
5249
5208
|
/**
|
|
5250
|
-
* @deprecated
|
|
5251
|
-
* As of 2.0.0-beta.1, please use {@link dialog} namespace instead.
|
|
5209
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
5252
5210
|
*
|
|
5253
5211
|
* Namespace to interact with the task module-specific part of the SDK.
|
|
5254
5212
|
* This object is usable only on the content frame.
|
|
@@ -5257,8 +5215,7 @@ var settings;
|
|
|
5257
5215
|
var tasks;
|
|
5258
5216
|
(function (tasks) {
|
|
5259
5217
|
/**
|
|
5260
|
-
* @deprecated
|
|
5261
|
-
* As of 2.0.0-beta.1, please use {@link dialog.open dialog.open(dialogInfo: DialogInfo, submitHandler?: (err: string, result: string) => void): IAppWindow} instead.
|
|
5218
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
5262
5219
|
*
|
|
5263
5220
|
* Allows an app to open the task module.
|
|
5264
5221
|
*
|
|
@@ -5270,8 +5227,7 @@ var tasks;
|
|
|
5270
5227
|
}
|
|
5271
5228
|
tasks.startTask = startTask;
|
|
5272
5229
|
/**
|
|
5273
|
-
* @deprecated
|
|
5274
|
-
* As of 2.0.0-beta.1, please use {@link dialog.resize dialog.resize(dialogInfo: DialogInfo): void} instead.
|
|
5230
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
5275
5231
|
*
|
|
5276
5232
|
* Update height/width task info properties.
|
|
5277
5233
|
*
|
|
@@ -5282,15 +5238,13 @@ var tasks;
|
|
|
5282
5238
|
}
|
|
5283
5239
|
tasks.updateTask = updateTask;
|
|
5284
5240
|
/**
|
|
5285
|
-
* @deprecated
|
|
5286
|
-
* As of 2.0.0-beta.1, please use {@link dialog.submit dialog.submit(result?: string | object, appIds?: string | string[]): void} instead.
|
|
5241
|
+
* @deprecated with TeamsJS v2 upgrades
|
|
5287
5242
|
*
|
|
5288
5243
|
* Submit the task module.
|
|
5289
5244
|
*
|
|
5290
5245
|
* @param result - Contains the result to be sent to the bot or the app. Typically a JSON object or a serialized version of it
|
|
5291
5246
|
* @param appIds - Helps to validate that the call originates from the same appId as the one that invoked the task module
|
|
5292
5247
|
*/
|
|
5293
|
-
// eslint-disable-next-line
|
|
5294
5248
|
function submitTask(result, appIds) {
|
|
5295
5249
|
dialog.submit(result, appIds);
|
|
5296
5250
|
}
|
|
@@ -5346,30 +5300,10 @@ var tasks;
|
|
|
5346
5300
|
|
|
5347
5301
|
|
|
5348
5302
|
|
|
5349
|
-
/**
|
|
5350
|
-
* @deprecated
|
|
5351
|
-
* As of 2.0.0-beta.1.
|
|
5352
|
-
*/
|
|
5353
5303
|
|
|
5354
|
-
/**
|
|
5355
|
-
* @deprecated
|
|
5356
|
-
* As of 2.0.0-beta.1.
|
|
5357
|
-
*/
|
|
5358
5304
|
|
|
5359
|
-
/**
|
|
5360
|
-
* @deprecated
|
|
5361
|
-
* As of 2.0.0-beta.1.
|
|
5362
|
-
*/
|
|
5363
5305
|
|
|
5364
|
-
/**
|
|
5365
|
-
* @deprecated
|
|
5366
|
-
* As of 2.0.0-beta.1.
|
|
5367
|
-
*/
|
|
5368
5306
|
|
|
5369
|
-
/**
|
|
5370
|
-
* @deprecated
|
|
5371
|
-
* As of 2.0.0-beta.1.
|
|
5372
|
-
*/
|
|
5373
5307
|
|
|
5374
5308
|
|
|
5375
5309
|
;// CONCATENATED MODULE: ./src/private/files.ts
|