@microsoft/teams-js 2.31.0-beta.0 → 2.31.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +12 -2
- package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +11 -1
- package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +2 -2
- package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +24 -0
- package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +23 -1
- package/dist/esm/packages/teams-js/dts/internal/uint8array-extras/uint8array-extras.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +20 -1
- package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +2 -2
- package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
- package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +61 -61
- package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +48 -48
- package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +2 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +29 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +355 -349
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +67 -68
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +104 -105
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +41 -42
- package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +113 -114
- package/dist/esm/packages/teams-js/dts/private/files.d.ts +590 -582
- package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +42 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
- package/dist/esm/packages/teams-js/dts/private/index.d.ts +19 -18
- package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -25
- package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +147 -142
- package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +31 -25
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +69 -70
- package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +219 -214
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
- package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +192 -186
- package/dist/esm/packages/teams-js/dts/public/{app.d.ts → app/app.d.ts} +33 -45
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +2 -2
- package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/call.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +30 -28
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +27 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +56 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +24 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +50 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +60 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +68 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +29 -27
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +23 -1
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +135 -136
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +75 -76
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +80 -81
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +315 -316
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +423 -428
- package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +165 -166
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +56 -50
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +10 -11
- package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
- package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
- package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +61 -63
- package/dist/esm/packages/teams-js/dts/public/profile.d.ts +81 -103
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +3 -0
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +81 -82
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +26 -27
- package/dist/esm/packages/teams-js/dts/public/settings.d.ts +4 -3
- package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
- package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +76 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +46 -56
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +78 -76
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +98 -99
- package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +209 -210
- package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
- package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +20 -22
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
- 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/dialogHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/uint8array-extras/uint8array-extras.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/utils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -1
- package/dist/esm/packages/teams-js/src/private/conversations.js +1 -1
- package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/eligibility.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/externalAppCardActions.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -1
- package/dist/esm/packages/teams-js/src/private/files.js +1 -1
- package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
- package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
- package/dist/esm/packages/teams-js/src/private/logs.js +1 -1
- package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -1
- package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/private/notifications.js +1 -1
- package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
- package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -1
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -0
- package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/chat.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
- package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -1
- package/dist/esm/packages/teams-js/src/public/location.js +1 -1
- package/dist/esm/packages/teams-js/src/public/mail.js +1 -1
- package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -1
- package/dist/esm/packages/teams-js/src/public/media.js +1 -1
- package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
- package/dist/esm/packages/teams-js/src/public/menus.js +1 -1
- package/dist/esm/packages/teams-js/src/public/monetization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/navigation.js +1 -1
- package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -1
- package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/people.js +1 -1
- package/dist/esm/packages/teams-js/src/public/profile.js +1 -1
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
- package/dist/esm/packages/teams-js/src/public/search.js +1 -1
- package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -1
- package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
- package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
- package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
- package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
- package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -1
- package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
- package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
- package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
- package/dist/umd/MicrosoftTeams.d.ts +8195 -7407
- package/dist/umd/MicrosoftTeams.js +12298 -12356
- 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/packages/teams-js/dts/private/copilot.d.ts +0 -39
- package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +0 -176
- package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +0 -107
- package/dist/esm/packages/teams-js/dts/private/teams.d.ts +0 -116
- package/dist/esm/packages/teams-js/dts/public/dialog.d.ts +0 -286
- package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +0 -100
- package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +0 -906
- package/dist/esm/packages/teams-js/dts/public/pages.d.ts +0 -574
- package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +0 -124
- package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +0 -104
- package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +0 -192
- package/dist/esm/packages/teams-js/src/private/copilot.js +0 -1
- package/dist/esm/packages/teams-js/src/private/hostEntity.js +0 -1
- package/dist/esm/packages/teams-js/src/private/messageChannels.js +0 -1
- package/dist/esm/packages/teams-js/src/private/teams.js +0 -1
- package/dist/esm/packages/teams-js/src/public/app.js +0 -1
- package/dist/esm/packages/teams-js/src/public/dialog.js +0 -1
- package/dist/esm/packages/teams-js/src/public/geoLocation.js +0 -1
- package/dist/esm/packages/teams-js/src/public/meeting.js +0 -1
- package/dist/esm/packages/teams-js/src/public/pages.js +0 -1
- package/dist/esm/packages/teams-js/src/public/sharing.js +0 -1
- package/dist/esm/packages/teams-js/src/public/stageView.js +0 -1
- package/dist/esm/packages/teams-js/src/public/visualMedia.js +0 -1
- /package/dist/esm/node_modules/.pnpm/{@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5 → @rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5}/node_modules/tslib/tslib.es6.js +0 -0
@@ -1,188 +1,187 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* Module to interact with the menu-specific part of the SDK.
|
3
3
|
* This object is used to show View Configuration, Action Menu and Navigation Bar Menu.
|
4
|
+
* @module
|
4
5
|
*/
|
5
|
-
|
6
|
+
/**
|
7
|
+
* @hidden
|
8
|
+
* Represents information about item in View Configuration.
|
9
|
+
*
|
10
|
+
* @internal
|
11
|
+
* Limited to Microsoft-internal use
|
12
|
+
*/
|
13
|
+
export interface ViewConfiguration {
|
6
14
|
/**
|
7
15
|
* @hidden
|
8
|
-
*
|
16
|
+
* Unique identifier of view.
|
9
17
|
*
|
10
18
|
* @internal
|
11
19
|
* Limited to Microsoft-internal use
|
12
20
|
*/
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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.
|
21
|
+
id: string;
|
22
|
+
/**
|
23
|
+
* @hidden
|
24
|
+
* Display title of the view.
|
138
25
|
*
|
139
26
|
* @internal
|
140
|
-
* Limited to Microsoft-internal use
|
27
|
+
* Limited to Microsoft-internal use
|
141
28
|
*/
|
142
|
-
|
29
|
+
title: string;
|
143
30
|
/**
|
144
31
|
* @hidden
|
145
|
-
*
|
146
|
-
* Handler is responsible for listening selection of View Configuration.
|
32
|
+
* Additional information for accessibility.
|
147
33
|
*
|
148
|
-
* @
|
149
|
-
*
|
34
|
+
* @internal
|
35
|
+
* Limited to Microsoft-internal use
|
150
36
|
*/
|
151
|
-
|
37
|
+
contentDescription?: string;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* Defines how a menu item should appear in the NavBar.
|
41
|
+
*/
|
42
|
+
export declare 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
|
+
export declare class MenuItem {
|
152
59
|
/**
|
153
60
|
* @hidden
|
154
|
-
*
|
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.
|
61
|
+
* Unique identifier for the menu item.
|
179
62
|
*/
|
180
|
-
|
63
|
+
id: string;
|
181
64
|
/**
|
182
|
-
*
|
183
|
-
*
|
184
|
-
|
185
|
-
|
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
|
186
87
|
*/
|
187
|
-
|
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
|
+
export 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
|
+
export declare 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
|
+
export declare 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
|
+
export declare 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
|
+
export declare function setNavBarMenu(items: MenuItem[], handler: (id: string) => boolean): void;
|
160
|
+
/** Parameters used to create an action menu within an app */
|
161
|
+
export 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[];
|
188
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
|
+
export declare 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
|
+
export declare function isSupported(): boolean;
|
@@ -1,58 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* @hidden
|
3
|
+
* Hidden from Docs
|
4
|
+
*
|
5
|
+
* @internal
|
6
|
+
* Limited to Microsoft-internal use
|
7
|
+
* @module
|
8
|
+
*/
|
1
9
|
import { SdkError } from './interfaces';
|
2
|
-
|
10
|
+
/**
|
11
|
+
* @hidden
|
12
|
+
* Data structure to represent a subscription plan.
|
13
|
+
*
|
14
|
+
* @internal
|
15
|
+
* Limited to Microsoft-internal use
|
16
|
+
*/
|
17
|
+
export interface PlanInfo {
|
3
18
|
/**
|
4
19
|
* @hidden
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* @internal
|
8
|
-
* Limited to Microsoft-internal use
|
20
|
+
* plan id
|
9
21
|
*/
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @hidden
|
13
|
-
* plan id
|
14
|
-
*/
|
15
|
-
planId: string;
|
16
|
-
/**
|
17
|
-
* @hidden
|
18
|
-
* term of the plan
|
19
|
-
*/
|
20
|
-
term: string;
|
21
|
-
}
|
22
|
+
planId: string;
|
22
23
|
/**
|
23
24
|
* @hidden
|
24
|
-
*
|
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
|
25
|
+
* term of the plan
|
32
26
|
*/
|
33
|
-
|
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;
|
27
|
+
term: string;
|
58
28
|
}
|
29
|
+
/**
|
30
|
+
* @hidden
|
31
|
+
* Open dialog to start user's purchase experience
|
32
|
+
*
|
33
|
+
* @param planInfo optional parameter. It contains info of the subscription plan pushed to users.
|
34
|
+
* error can either contain an error of type SdkError, incase of an error, or null when get is successful
|
35
|
+
* @returns Promise that will be resolved when the operation has completed or rejected with SdkError value
|
36
|
+
*
|
37
|
+
* @internal
|
38
|
+
* Limited to Microsoft-internal use
|
39
|
+
*/
|
40
|
+
export declare function openPurchaseExperience(planInfo?: PlanInfo): Promise<void>;
|
41
|
+
/**
|
42
|
+
* @deprecated
|
43
|
+
* As of TeamsJS v2.0.0, please use {@link monetization.openPurchaseExperience monetization.openPurchaseExperience(planInfo?: PlanInfo): Promise\<void\>} instead.
|
44
|
+
*
|
45
|
+
* @hidden
|
46
|
+
* Open dialog to start user's purchase experience
|
47
|
+
*
|
48
|
+
* @param callback Callback contains 1 parameters, error.
|
49
|
+
* @param planInfo optional parameter. It contains info of the subscription plan pushed to users.
|
50
|
+
* error can either contain an error of type SdkError, incase of an error, or null when get is successful
|
51
|
+
*
|
52
|
+
* @internal
|
53
|
+
* Limited to Microsoft-internal use
|
54
|
+
*/
|
55
|
+
export declare function openPurchaseExperience(callback: (error: SdkError | null) => void, planInfo?: PlanInfo): void;
|
56
|
+
/**
|
57
|
+
* @hidden
|
58
|
+
*
|
59
|
+
* Checks if the monetization capability is supported by the host
|
60
|
+
* @returns boolean to represent whether the monetization capability is supported
|
61
|
+
*
|
62
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
63
|
+
*/
|
64
|
+
export declare function isSupported(): boolean;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { TabInstance } from './interfaces';
|
2
1
|
/**
|
3
2
|
* Navigation specific part of the SDK.
|
3
|
+
* @module
|
4
4
|
*/
|
5
|
+
import { TabInstance } from './interfaces';
|
5
6
|
/** Navigation on complete handler function type */
|
6
7
|
export type onCompleteHandlerFunctionType = (status: boolean, reason?: string) => void;
|
7
8
|
/**
|
@@ -1,15 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* @beta
|
3
3
|
* Nested app auth capabilities
|
4
|
+
* @module
|
4
5
|
*/
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
function isNAAChannelRecommended(): boolean;
|
15
|
-
}
|
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
|
+
export declare function isNAAChannelRecommended(): boolean;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Provides APIs to interact with the app button part of the SDK.
|
3
|
+
* @module
|
4
|
+
*/
|
5
|
+
import { handlerFunctionType } from './pages';
|
6
|
+
/**
|
7
|
+
* Registers a handler for clicking the app button.
|
8
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
9
|
+
* @param handler - The handler to invoke when the personal app button is clicked in the app bar.
|
10
|
+
*/
|
11
|
+
export declare function onClick(handler: handlerFunctionType): void;
|
12
|
+
/**
|
13
|
+
* Registers a handler for entering hover of the app button.
|
14
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
15
|
+
* @param handler - The handler to invoke when entering hover of the personal app button in the app bar.
|
16
|
+
*/
|
17
|
+
export declare function onHoverEnter(handler: handlerFunctionType): void;
|
18
|
+
/**
|
19
|
+
* Registers a handler for exiting hover of the app button.
|
20
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
21
|
+
* @param handler - The handler to invoke when exiting hover of the personal app button in the app bar.
|
22
|
+
*/
|
23
|
+
export declare function onHoverLeave(handler: handlerFunctionType): void;
|
24
|
+
/**
|
25
|
+
* Checks if pages.appButton capability is supported by the host
|
26
|
+
* @returns boolean to represent whether the pages.appButton capability is supported
|
27
|
+
*
|
28
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
29
|
+
*/
|
30
|
+
export declare function isSupported(): boolean;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/**
|
2
|
+
* Provides APIs for handling the user's navigational history.
|
3
|
+
* @module
|
4
|
+
*/
|
5
|
+
import { backButtonHandlerFunctionType } from './pages';
|
6
|
+
/**
|
7
|
+
* @hidden
|
8
|
+
* Register backButtonPress handler.
|
9
|
+
*
|
10
|
+
* @internal
|
11
|
+
* Limited to Microsoft-internal use.
|
12
|
+
*/
|
13
|
+
export declare function _initialize(): void;
|
14
|
+
/**
|
15
|
+
* Navigates back in the hosted application. See {@link pages.backStack.registerBackButtonHandler} for notes on usage.
|
16
|
+
* @returns Promise that resolves when the navigation has completed.
|
17
|
+
*/
|
18
|
+
export declare function navigateBack(): Promise<void>;
|
19
|
+
/**
|
20
|
+
* Registers a handler for user presses of the host client's back button. Experiences that maintain an internal
|
21
|
+
* navigation stack should use this handler to navigate the user back within their frame. If an application finds
|
22
|
+
* that after running its back button handler it cannot handle the event it should call the navigateBack
|
23
|
+
* method to ask the host client to handle it instead.
|
24
|
+
* @param handler - The handler to invoke when the user presses the host client's back button.
|
25
|
+
*/
|
26
|
+
export declare function registerBackButtonHandler(handler: backButtonHandlerFunctionType): void;
|
27
|
+
/**
|
28
|
+
* @hidden
|
29
|
+
* Undocumented helper function with shared code between deprecated version and current version of the registerBackButtonHandler API.
|
30
|
+
*
|
31
|
+
* @internal
|
32
|
+
* Limited to Microsoft-internal use
|
33
|
+
* @param apiVersionTag - The tag indicating API version number with name
|
34
|
+
* @param handler - The handler to invoke when the user presses the host client's back button.
|
35
|
+
* @param versionSpecificHelper - The helper function containing logic pertaining to a specific version of the API.
|
36
|
+
*/
|
37
|
+
export declare function registerBackButtonHandlerHelper(apiVersionTag: string, handler: () => boolean, versionSpecificHelper?: () => void): void;
|
38
|
+
/**
|
39
|
+
* Checks if the pages.backStack capability is supported by the host
|
40
|
+
* @returns boolean to represent whether the pages.backStack capability is supported
|
41
|
+
*
|
42
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
43
|
+
*/
|
44
|
+
export declare function isSupported(): boolean;
|