@microsoft/teams-js 2.30.0-beta.0 → 2.31.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -4
- package/dist/esm/_virtual/__polyfill-node.os.js +1 -0
- package/dist/esm/_virtual/_polyfill-node.os.js +1 -0
- package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js +1 -1
- package/dist/esm/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js +1 -0
- package/dist/esm/packages/teams-js/dts/index.d.ts +2 -0
- package/dist/esm/packages/teams-js/dts/internal/VideoFrameTypes.d.ts +78 -0
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +8 -0
- package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +16 -0
- package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +162 -0
- package/dist/esm/packages/teams-js/dts/internal/constants.d.ts +146 -0
- package/dist/esm/packages/teams-js/dts/internal/deepLinkConstants.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/internal/deepLinkUtilities.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/internal/emailAddressValidation.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +12 -0
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +80 -0
- package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +47 -0
- package/dist/esm/packages/teams-js/dts/internal/internalAPIs.d.ts +61 -0
- package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +95 -0
- package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +73 -0
- package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +105 -0
- package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +344 -0
- package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +200 -0
- package/dist/esm/packages/teams-js/dts/internal/uuidObject.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/internal/videoFrameTick.d.ts +10 -0
- package/dist/esm/packages/teams-js/dts/internal/videoPerformanceMonitor.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/internal/videoPerformanceStatistics.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +89 -0
- package/dist/esm/packages/teams-js/dts/private/constants.d.ts +9 -0
- package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +152 -0
- package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +378 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +112 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/private/files.d.ts +758 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +176 -0
- package/dist/esm/packages/teams-js/dts/private/index.d.ts +20 -0
- package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +250 -0
- package/dist/esm/packages/teams-js/dts/private/logs.d.ts +25 -0
- package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +203 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +107 -0
- package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +81 -0
- package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +60 -0
- package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +298 -0
- package/dist/esm/packages/teams-js/dts/private/teams.d.ts +116 -0
- package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +244 -0
- package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/app.d.ts +592 -0
- package/dist/esm/packages/teams-js/dts/public/appId.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +57 -0
- package/dist/esm/packages/teams-js/dts/public/appInstallDialog.d.ts +18 -0
- package/dist/esm/packages/teams-js/dts/public/appWindow.d.ts +66 -0
- package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +409 -0
- package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +53 -0
- package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +40 -0
- package/dist/esm/packages/teams-js/dts/public/call.d.ts +53 -0
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +66 -0
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +34 -0
- package/dist/esm/packages/teams-js/dts/public/constants.d.ts +179 -0
- package/dist/esm/packages/teams-js/dts/public/dialog.d.ts +286 -0
- package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +100 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1133 -0
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +221 -0
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +86 -0
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +95 -0
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +321 -0
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +440 -0
- package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +906 -0
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +188 -0
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +58 -0
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +45 -0
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +15 -0
- package/dist/esm/packages/teams-js/dts/public/pages.d.ts +574 -0
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/public/profile.d.ts +127 -0
- package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +218 -0
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +207 -0
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +91 -0
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/public/serializable.interface.d.ts +17 -0
- package/dist/esm/packages/teams-js/dts/public/settings.d.ts +101 -0
- package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +124 -0
- package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +104 -0
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +62 -0
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +77 -0
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +119 -0
- package/dist/esm/packages/teams-js/dts/public/version.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +213 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +192 -0
- package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +27 -0
- package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -1
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/responseHandler.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/hostEntity.js +1 -1
- package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appId.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -1
- package/dist/esm/packages/teams-js/src/public/authentication.js +1 -1
- package/dist/esm/packages/teams-js/src/public/barCode.js +1 -1
- package/dist/esm/packages/teams-js/src/public/calendar.js +1 -1
- package/dist/esm/packages/teams-js/src/public/call.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- package/dist/esm/packages/teams-js/src/public/constants.js +1 -1
- package/dist/esm/packages/teams-js/src/public/pages.js +1 -1
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
- package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
- package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
- package/dist/umd/MicrosoftTeams.d.ts +10740 -10768
- package/dist/umd/MicrosoftTeams.js +1572 -1360
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js +0 -1
@@ -0,0 +1,188 @@
|
|
1
|
+
/**
|
2
|
+
* Namespace to interact with the menu-specific part of the SDK.
|
3
|
+
* This object is used to show View Configuration, Action Menu and Navigation Bar Menu.
|
4
|
+
*/
|
5
|
+
export declare namespace menus {
|
6
|
+
/**
|
7
|
+
* @hidden
|
8
|
+
* Represents information about item in View Configuration.
|
9
|
+
*
|
10
|
+
* @internal
|
11
|
+
* Limited to Microsoft-internal use
|
12
|
+
*/
|
13
|
+
interface ViewConfiguration {
|
14
|
+
/**
|
15
|
+
* @hidden
|
16
|
+
* Unique identifier of view.
|
17
|
+
*
|
18
|
+
* @internal
|
19
|
+
* Limited to Microsoft-internal use
|
20
|
+
*/
|
21
|
+
id: string;
|
22
|
+
/**
|
23
|
+
* @hidden
|
24
|
+
* Display title of the view.
|
25
|
+
*
|
26
|
+
* @internal
|
27
|
+
* Limited to Microsoft-internal use
|
28
|
+
*/
|
29
|
+
title: string;
|
30
|
+
/**
|
31
|
+
* @hidden
|
32
|
+
* Additional information for accessibility.
|
33
|
+
*
|
34
|
+
* @internal
|
35
|
+
* Limited to Microsoft-internal use
|
36
|
+
*/
|
37
|
+
contentDescription?: string;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* Defines how a menu item should appear in the NavBar.
|
41
|
+
*/
|
42
|
+
enum DisplayMode {
|
43
|
+
/**
|
44
|
+
* Only place this item in the NavBar if there's room for it.
|
45
|
+
* If there's no room, item is shown in the overflow menu.
|
46
|
+
*/
|
47
|
+
ifRoom = 0,
|
48
|
+
/**
|
49
|
+
* Never place this item in the NavBar.
|
50
|
+
* The item would always be shown in NavBar's overflow menu.
|
51
|
+
*/
|
52
|
+
overflowOnly = 1
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* @hidden
|
56
|
+
* Represents information about menu item for Action Menu and Navigation Bar Menu.
|
57
|
+
*/
|
58
|
+
class MenuItem {
|
59
|
+
/**
|
60
|
+
* @hidden
|
61
|
+
* Unique identifier for the menu item.
|
62
|
+
*/
|
63
|
+
id: string;
|
64
|
+
/**
|
65
|
+
* @hidden
|
66
|
+
* Display title of the menu item.
|
67
|
+
*/
|
68
|
+
title: string;
|
69
|
+
/**
|
70
|
+
* @hidden
|
71
|
+
* Display icon of the menu item. The icon value must be a string having SVG icon content.
|
72
|
+
*/
|
73
|
+
icon: string;
|
74
|
+
/**
|
75
|
+
* @hidden
|
76
|
+
* Selected state display icon of the menu item. The icon value must be a string having SVG icon content.
|
77
|
+
*/
|
78
|
+
iconSelected?: string;
|
79
|
+
/**
|
80
|
+
* @hidden
|
81
|
+
* Additional information for accessibility.
|
82
|
+
*/
|
83
|
+
contentDescription?: string;
|
84
|
+
/**
|
85
|
+
* @hidden
|
86
|
+
* State of the menu item
|
87
|
+
*/
|
88
|
+
enabled: boolean;
|
89
|
+
/**
|
90
|
+
* @hidden
|
91
|
+
* Interface to show list of items on selection of menu item.
|
92
|
+
*/
|
93
|
+
viewData?: ViewData;
|
94
|
+
/**
|
95
|
+
* @hidden
|
96
|
+
* Whether the menu item is selected or not
|
97
|
+
*/
|
98
|
+
selected: boolean;
|
99
|
+
/**
|
100
|
+
* The Display Mode of the menu item.
|
101
|
+
* Default Behaviour would be DisplayMode.ifRoom if null.
|
102
|
+
* Refer {@link DisplayMode}
|
103
|
+
*/
|
104
|
+
displayMode?: DisplayMode;
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* @hidden
|
108
|
+
* Represents information about view to show on Navigation Bar Menu item selection
|
109
|
+
*/
|
110
|
+
interface ViewData {
|
111
|
+
/**
|
112
|
+
* @hidden
|
113
|
+
* Display header title of the item list.
|
114
|
+
*/
|
115
|
+
listTitle?: string;
|
116
|
+
/**
|
117
|
+
* @hidden
|
118
|
+
* Type of the menu item.
|
119
|
+
*/
|
120
|
+
listType: MenuListType;
|
121
|
+
/**
|
122
|
+
* @hidden
|
123
|
+
* Array of MenuItem. Icon value will be required for all items in the list.
|
124
|
+
*/
|
125
|
+
listItems: MenuItem[];
|
126
|
+
}
|
127
|
+
/**
|
128
|
+
* @hidden
|
129
|
+
* Represents information about type of list to display in Navigation Bar Menu.
|
130
|
+
*/
|
131
|
+
enum MenuListType {
|
132
|
+
dropDown = "dropDown",
|
133
|
+
popOver = "popOver"
|
134
|
+
}
|
135
|
+
/**
|
136
|
+
* @hidden
|
137
|
+
* Register navBarMenuItemPress, actionMenuItemPress, setModuleView handlers.
|
138
|
+
*
|
139
|
+
* @internal
|
140
|
+
* Limited to Microsoft-internal use.
|
141
|
+
*/
|
142
|
+
function initialize(): void;
|
143
|
+
/**
|
144
|
+
* @hidden
|
145
|
+
* Registers list of view configurations and it's handler.
|
146
|
+
* Handler is responsible for listening selection of View Configuration.
|
147
|
+
*
|
148
|
+
* @param viewConfig - List of view configurations. Minimum 1 value is required.
|
149
|
+
* @param handler - The handler to invoke when the user selects view configuration.
|
150
|
+
*/
|
151
|
+
function setUpViews(viewConfig: ViewConfiguration[], handler: (id: string) => boolean): void;
|
152
|
+
/**
|
153
|
+
* @hidden
|
154
|
+
* Used to set menu items on the Navigation Bar. If icon is available, icon will be shown, otherwise title will be shown.
|
155
|
+
*
|
156
|
+
* @param items List of MenuItems for Navigation Bar Menu.
|
157
|
+
* @param handler The handler to invoke when the user selects menu item.
|
158
|
+
*/
|
159
|
+
function setNavBarMenu(items: MenuItem[], handler: (id: string) => boolean): void;
|
160
|
+
/** Parameters used to create an action menu within an app */
|
161
|
+
interface ActionMenuParameters {
|
162
|
+
/**
|
163
|
+
* @hidden
|
164
|
+
* Display title for Action Menu
|
165
|
+
*/
|
166
|
+
title: string;
|
167
|
+
/**
|
168
|
+
* @hidden
|
169
|
+
* List of MenuItems for Action Menu
|
170
|
+
*/
|
171
|
+
items: MenuItem[];
|
172
|
+
}
|
173
|
+
/**
|
174
|
+
* @hidden
|
175
|
+
* Used to show Action Menu.
|
176
|
+
*
|
177
|
+
* @param params - Parameters for Menu Parameters
|
178
|
+
* @param handler - The handler to invoke when the user selects menu item.
|
179
|
+
*/
|
180
|
+
function showActionMenu(params: ActionMenuParameters, handler: (id: string) => boolean): void;
|
181
|
+
/**
|
182
|
+
* Checks if the menus capability is supported by the host
|
183
|
+
* @returns boolean to represent whether the menus capability is supported
|
184
|
+
*
|
185
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
186
|
+
*/
|
187
|
+
function isSupported(): boolean;
|
188
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { SdkError } from './interfaces';
|
2
|
+
export declare namespace monetization {
|
3
|
+
/**
|
4
|
+
* @hidden
|
5
|
+
* Data structure to represent a subscription plan.
|
6
|
+
*
|
7
|
+
* @internal
|
8
|
+
* Limited to Microsoft-internal use
|
9
|
+
*/
|
10
|
+
interface PlanInfo {
|
11
|
+
/**
|
12
|
+
* @hidden
|
13
|
+
* plan id
|
14
|
+
*/
|
15
|
+
planId: string;
|
16
|
+
/**
|
17
|
+
* @hidden
|
18
|
+
* term of the plan
|
19
|
+
*/
|
20
|
+
term: string;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* @hidden
|
24
|
+
* Open dialog to start user's purchase experience
|
25
|
+
*
|
26
|
+
* @param planInfo optional parameter. It contains info of the subscription plan pushed to users.
|
27
|
+
* error can either contain an error of type SdkError, incase of an error, or null when get is successful
|
28
|
+
* @returns Promise that will be resolved when the operation has completed or rejected with SdkError value
|
29
|
+
*
|
30
|
+
* @internal
|
31
|
+
* Limited to Microsoft-internal use
|
32
|
+
*/
|
33
|
+
function openPurchaseExperience(planInfo?: PlanInfo): Promise<void>;
|
34
|
+
/**
|
35
|
+
* @deprecated
|
36
|
+
* As of TeamsJS v2.0.0, please use {@link monetization.openPurchaseExperience monetization.openPurchaseExperience(planInfo?: PlanInfo): Promise\<void\>} instead.
|
37
|
+
*
|
38
|
+
* @hidden
|
39
|
+
* Open dialog to start user's purchase experience
|
40
|
+
*
|
41
|
+
* @param callback Callback contains 1 parameters, error.
|
42
|
+
* @param planInfo optional parameter. It contains info of the subscription plan pushed to users.
|
43
|
+
* error can either contain an error of type SdkError, incase of an error, or null when get is successful
|
44
|
+
*
|
45
|
+
* @internal
|
46
|
+
* Limited to Microsoft-internal use
|
47
|
+
*/
|
48
|
+
function openPurchaseExperience(callback: (error: SdkError | null) => void, planInfo?: PlanInfo): void;
|
49
|
+
/**
|
50
|
+
* @hidden
|
51
|
+
*
|
52
|
+
* Checks if the monetization capability is supported by the host
|
53
|
+
* @returns boolean to represent whether the monetization capability is supported
|
54
|
+
*
|
55
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
56
|
+
*/
|
57
|
+
function isSupported(): boolean;
|
58
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { TabInstance } from './interfaces';
|
2
|
+
/**
|
3
|
+
* Navigation specific part of the SDK.
|
4
|
+
*/
|
5
|
+
/** Navigation on complete handler function type */
|
6
|
+
export type onCompleteHandlerFunctionType = (status: boolean, reason?: string) => void;
|
7
|
+
/**
|
8
|
+
* @deprecated
|
9
|
+
* As of TeamsJS v2.0.0, please use {@link pages.returnFocus pages.returnFocus(navigateForward?: boolean): void} instead.
|
10
|
+
*
|
11
|
+
* Return focus to the main Teams app. Will focus search bar if navigating foward and app bar if navigating back.
|
12
|
+
*
|
13
|
+
* @param navigateForward - Determines the direction to focus in teams app.
|
14
|
+
*/
|
15
|
+
export declare function returnFocus(navigateForward?: boolean): void;
|
16
|
+
/**
|
17
|
+
* @deprecated
|
18
|
+
* As of TeamsJS v2.0.0, please use {@link pages.tabs.navigateToTab pages.tabs.navigateToTab(tabInstance: TabInstance): Promise\<void\>} instead.
|
19
|
+
*
|
20
|
+
* Navigates the Microsoft Teams app to the specified tab instance.
|
21
|
+
*
|
22
|
+
* @param tabInstance - The tab instance to navigate to.
|
23
|
+
* @param onComplete - The callback to invoke when the action is complete.
|
24
|
+
*/
|
25
|
+
export declare function navigateToTab(tabInstance: TabInstance, onComplete?: onCompleteHandlerFunctionType): void;
|
26
|
+
/**
|
27
|
+
* @deprecated
|
28
|
+
* As of 2.0.0, this API is deprecated and can be replaced by the standard JavaScript
|
29
|
+
* API, window.location.href, when navigating the app to a new cross-domain URL. Any URL
|
30
|
+
* that is redirected to must be listed in the validDomains block of the manifest. Please
|
31
|
+
* remove any calls to this API.
|
32
|
+
* @param url - The URL to navigate the frame to.
|
33
|
+
* @param onComplete - The callback to invoke when the action is complete.
|
34
|
+
*/
|
35
|
+
export declare function navigateCrossDomain(url: string, onComplete?: onCompleteHandlerFunctionType): void;
|
36
|
+
/**
|
37
|
+
* @deprecated
|
38
|
+
* As of TeamsJS v2.0.0, please use {@link pages.backStack.navigateBack pages.backStack.navigateBack(): Promise\<void\>} instead.
|
39
|
+
*
|
40
|
+
* Navigates back in the Teams client.
|
41
|
+
* See registerBackButtonHandler for more information on when it's appropriate to use this method.
|
42
|
+
*
|
43
|
+
* @param onComplete - The callback to invoke when the action is complete.
|
44
|
+
*/
|
45
|
+
export declare function navigateBack(onComplete?: onCompleteHandlerFunctionType): void;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @beta
|
3
|
+
* Nested app auth capabilities
|
4
|
+
*/
|
5
|
+
export declare namespace nestedAppAuth {
|
6
|
+
/**
|
7
|
+
* Checks if MSAL-NAA channel recommended by the host
|
8
|
+
* @returns true if host is recommending NAA channel and false otherwise
|
9
|
+
*
|
10
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
11
|
+
*
|
12
|
+
* @beta
|
13
|
+
*/
|
14
|
+
function isNAAChannelRecommended(): boolean;
|
15
|
+
}
|