@microsoft/teams-js 2.31.0-beta.1 → 2.31.0
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 +4 -4
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +11 -1
- package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +10 -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/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 +70 -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/app.d.ts +21 -2
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
- 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 +4 -0
- 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 +0 -4
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -13
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +9 -9
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +4 -3
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +0 -3
- 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 +1 -0
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +8 -0
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +1 -0
- 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/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 +9 -0
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +1 -0
- 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 +0 -8
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +2 -1
- 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/appIdValidation.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
- 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/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 -1
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.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/navigation.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/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/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/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 +5755 -5161
- package/dist/umd/MicrosoftTeams.js +6258 -6439
- 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 +50 -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/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/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,127 +1,105 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Module for profile related APIs.
|
|
3
3
|
*
|
|
4
4
|
* @beta
|
|
5
|
+
* @module
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Opens a profile card at a specified position to show profile information about a persona.
|
|
9
|
+
* @param showProfileRequest The parameters to position the card and identify the target user.
|
|
10
|
+
* @returns Promise that will be fulfilled when the operation has completed
|
|
11
|
+
*
|
|
12
|
+
* @beta
|
|
13
|
+
*/
|
|
14
|
+
export declare function showProfile(showProfileRequest: ShowProfileRequest): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* The type of modalities that are supported when showing a profile.
|
|
17
|
+
* Can be provided as an optional hint with the request and will be
|
|
18
|
+
* respected if the hosting M365 application supports it.
|
|
19
|
+
*
|
|
20
|
+
* @beta
|
|
21
|
+
*/
|
|
22
|
+
export type Modality = 'Card' | 'Expanded';
|
|
23
|
+
/**
|
|
24
|
+
* The type of the profile trigger.
|
|
25
|
+
* - MouseHover: The user hovered a target.
|
|
26
|
+
* - Press: The target was pressed with either a mouse click or keyboard key press.
|
|
27
|
+
* - AppRequest: The show profile request is happening programmatically, without direct user interaction.
|
|
28
|
+
*
|
|
29
|
+
* @beta
|
|
30
|
+
*/
|
|
31
|
+
export type TriggerType = 'MouseHover' | 'Press' | 'AppRequest';
|
|
32
|
+
/**
|
|
33
|
+
* The set of identifiers that are supported for resolving the persona.
|
|
34
|
+
*
|
|
35
|
+
* At least one is required, and if multiple are provided then only the highest
|
|
36
|
+
* priority one will be used (AadObjectId > Upn > Smtp). AAD is now known as "Microsoft Entra ID"
|
|
37
|
+
*
|
|
38
|
+
* @beta
|
|
39
|
+
*/
|
|
40
|
+
export type PersonaIdentifiers = {
|
|
7
41
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param showProfileRequest The parameters to position the card and identify the target user.
|
|
10
|
-
* @returns Promise that will be fulfilled when the operation has completed
|
|
42
|
+
* The object id in Microsoft Entra.
|
|
11
43
|
*
|
|
12
|
-
*
|
|
44
|
+
* This id is guaranteed to be unique for an object within a tenant,
|
|
45
|
+
* and so if provided will lead to a more performant lookup. It can
|
|
46
|
+
* be resolved via MS Graph (see https://learn.microsoft.com/graph/api/resources/users
|
|
47
|
+
* for examples).
|
|
13
48
|
*/
|
|
14
|
-
|
|
49
|
+
readonly AadObjectId?: string;
|
|
15
50
|
/**
|
|
16
|
-
* The
|
|
17
|
-
* Can be provided as an optional hint with the request and will be
|
|
18
|
-
* respected if the hosting M365 application supports it.
|
|
19
|
-
*
|
|
20
|
-
* @beta
|
|
51
|
+
* The primary SMTP address.
|
|
21
52
|
*/
|
|
22
|
-
|
|
53
|
+
readonly Smtp?: string;
|
|
23
54
|
/**
|
|
24
|
-
* The
|
|
25
|
-
* - MouseHover: The user hovered a target.
|
|
26
|
-
* - Press: The target was pressed with either a mouse click or keyboard key press.
|
|
27
|
-
* - AppRequest: The show profile request is happening programmatically, without direct user interaction.
|
|
28
|
-
*
|
|
29
|
-
* @beta
|
|
55
|
+
* The user principle name.
|
|
30
56
|
*/
|
|
31
|
-
|
|
57
|
+
readonly Upn?: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* The persona to show the profile for.
|
|
61
|
+
*
|
|
62
|
+
* @beta
|
|
63
|
+
*/
|
|
64
|
+
export interface Persona {
|
|
32
65
|
/**
|
|
33
66
|
* The set of identifiers that are supported for resolving the persona.
|
|
34
|
-
*
|
|
35
|
-
* At least one is required, and if multiple are provided then only the highest
|
|
36
|
-
* priority one will be used (AadObjectId > Upn > Smtp). AAD is now known as "Microsoft Entra ID"
|
|
37
|
-
*
|
|
38
|
-
* @beta
|
|
39
67
|
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The object id in Microsoft Entra.
|
|
43
|
-
*
|
|
44
|
-
* This id is guaranteed to be unique for an object within a tenant,
|
|
45
|
-
* and so if provided will lead to a more performant lookup. It can
|
|
46
|
-
* be resolved via MS Graph (see https://learn.microsoft.com/graph/api/resources/users
|
|
47
|
-
* for examples).
|
|
48
|
-
*/
|
|
49
|
-
readonly AadObjectId?: string;
|
|
50
|
-
/**
|
|
51
|
-
* The primary SMTP address.
|
|
52
|
-
*/
|
|
53
|
-
readonly Smtp?: string;
|
|
54
|
-
/**
|
|
55
|
-
* The user principle name.
|
|
56
|
-
*/
|
|
57
|
-
readonly Upn?: string;
|
|
58
|
-
};
|
|
68
|
+
identifiers: PersonaIdentifiers;
|
|
59
69
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* @beta
|
|
70
|
+
* Optional display name override. If not specified the user's display name will be resolved normally.
|
|
63
71
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
displayName?: string;
|
|
73
|
-
}
|
|
72
|
+
displayName?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Input parameters provided to the showProfile API.
|
|
76
|
+
*
|
|
77
|
+
* @beta
|
|
78
|
+
*/
|
|
79
|
+
export interface ShowProfileRequest {
|
|
74
80
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* @beta
|
|
81
|
+
* An optional hint to the hosting M365 application about which modality of the profile you want to show.
|
|
78
82
|
*/
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* An optional hint to the hosting M365 application about which modality of the profile you want to show.
|
|
82
|
-
*/
|
|
83
|
-
modality?: Modality;
|
|
84
|
-
/**
|
|
85
|
-
* The information about the persona to show the profile for.
|
|
86
|
-
*/
|
|
87
|
-
persona: Persona;
|
|
88
|
-
/**
|
|
89
|
-
* The bounding rectangle of the target.
|
|
90
|
-
*/
|
|
91
|
-
targetElementBoundingRect: DOMRect;
|
|
92
|
-
/**
|
|
93
|
-
* Specifies which user interaction was used to trigger the API call.
|
|
94
|
-
*/
|
|
95
|
-
triggerType: TriggerType;
|
|
96
|
-
}
|
|
83
|
+
modality?: Modality;
|
|
97
84
|
/**
|
|
98
|
-
*
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
*
|
|
103
|
-
* @beta
|
|
85
|
+
* The information about the persona to show the profile for.
|
|
86
|
+
*/
|
|
87
|
+
persona: Persona;
|
|
88
|
+
/**
|
|
89
|
+
* The bounding rectangle of the target.
|
|
104
90
|
*/
|
|
105
|
-
|
|
91
|
+
targetElementBoundingRect: DOMRect;
|
|
92
|
+
/**
|
|
93
|
+
* Specifies which user interaction was used to trigger the API call.
|
|
94
|
+
*/
|
|
95
|
+
triggerType: TriggerType;
|
|
106
96
|
}
|
|
107
97
|
/**
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
width: number;
|
|
114
|
-
height: number;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
98
|
+
* Checks if the profile capability is supported by the host
|
|
99
|
+
* @returns boolean to represent whether the profile capability is supported
|
|
100
|
+
*
|
|
101
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
102
|
+
*
|
|
117
103
|
* @beta
|
|
118
|
-
* @hidden
|
|
119
|
-
* An internal representation of the showProfile parameters suitable for sending via postMessage.
|
|
120
|
-
* The hub expects to receive an object of this type.
|
|
121
104
|
*/
|
|
122
|
-
export
|
|
123
|
-
modality?: profile.Modality;
|
|
124
|
-
persona: profile.Persona;
|
|
125
|
-
targetRectangle: Rectangle;
|
|
126
|
-
triggerType: profile.TriggerType;
|
|
127
|
-
}
|
|
105
|
+
export declare function isSupported(): boolean;
|
|
@@ -17,6 +17,9 @@ interface IRuntimeV4 extends IBaseRuntime {
|
|
|
17
17
|
readonly isNAAChannelRecommended?: boolean;
|
|
18
18
|
readonly isLegacyTeams?: boolean;
|
|
19
19
|
readonly supports: {
|
|
20
|
+
readonly app?: {
|
|
21
|
+
readonly notifySuccessResponse?: {};
|
|
22
|
+
};
|
|
20
23
|
readonly appEntity?: {};
|
|
21
24
|
readonly appInstallDialog?: {};
|
|
22
25
|
readonly barCode?: {};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allows your application to interact with the host M365 application's search box.
|
|
3
|
+
* By integrating your application with the host's search box, users can search
|
|
4
|
+
* your app using the same search box they use elsewhere in Teams, Outlook, or Office.
|
|
5
|
+
*
|
|
6
|
+
* This functionality is in Beta.
|
|
7
|
+
* @beta
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
1
10
|
/**
|
|
2
11
|
* This interface contains information pertaining to the contents of the host M365 application's search box
|
|
3
12
|
*
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { pages } from './pages';
|
|
2
1
|
/**
|
|
3
2
|
* @deprecated
|
|
4
|
-
* As of TeamsJS v2.0.0, please use {@link pages.config}
|
|
3
|
+
* As of TeamsJS v2.0.0, please use {@link pages.config} module instead.
|
|
5
4
|
*
|
|
6
|
-
*
|
|
5
|
+
* Module to interact with the settings-specific part of the SDK.
|
|
7
6
|
* This object is usable only on the settings frame.
|
|
7
|
+
* @module
|
|
8
8
|
*/
|
|
9
|
+
import * as pages from './pages/pages';
|
|
9
10
|
/** Register on remove handler function type */
|
|
10
11
|
export type registerOnRemoveHandlerFunctionType = (evt: RemoveEvent) => void;
|
|
11
12
|
/** Register on save handler function type */
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to get the list of content shared in a Teams meeting
|
|
3
|
+
*
|
|
4
|
+
* @beta
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Represents the data returned when calling {@link sharing.history.getContent}
|
|
9
|
+
*
|
|
10
|
+
* @beta
|
|
11
|
+
*/
|
|
12
|
+
export interface IContentResponse {
|
|
13
|
+
/** Id of the app where the content was shared from */
|
|
14
|
+
appId: string;
|
|
15
|
+
/** Title of the shared content */
|
|
16
|
+
title: string;
|
|
17
|
+
/** Reference of the shared content */
|
|
18
|
+
contentReference: string;
|
|
19
|
+
/** Id of the thread where the content was shared. */
|
|
20
|
+
threadId: string;
|
|
21
|
+
/** Id of the user who shared the content. */
|
|
22
|
+
author: string;
|
|
23
|
+
/** Type of the shared content.
|
|
24
|
+
* For sharing to Teams stage scenarios, this value would be `ShareToStage`
|
|
25
|
+
* Other `contentType` values will be added and documented here over time
|
|
26
|
+
*/
|
|
27
|
+
contentType: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get the list of content shared in a Teams meeting
|
|
31
|
+
*
|
|
32
|
+
* @throws Error if call capability is not supported
|
|
33
|
+
* @throws Error if returned content details are invalid
|
|
34
|
+
* @returns Promise that will resolve with the {@link IContentResponse} objects array
|
|
35
|
+
*
|
|
36
|
+
* @beta
|
|
37
|
+
*/
|
|
38
|
+
export declare function getContent(): Promise<IContentResponse[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Checks if sharing.history capability is supported by the host
|
|
41
|
+
* @returns boolean to represent whether the sharing.history capability is supported
|
|
42
|
+
*
|
|
43
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
44
|
+
*
|
|
45
|
+
* @beta
|
|
46
|
+
*/
|
|
47
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to open a share dialog for web content.
|
|
3
|
+
* For more info, see [Share to Teams from personal app or tab](https://learn.microsoft.com/microsoftteams/platform/concepts/build-and-test/share-to-teams-from-personal-app-or-tab)
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { SdkError } from '../interfaces';
|
|
7
|
+
import * as history from './history';
|
|
8
|
+
/** shareWebContent callback function type */
|
|
9
|
+
export type shareWebContentCallbackFunctionType = (err?: SdkError) => void;
|
|
10
|
+
/** Type of message that can be sent or received by the sharing APIs */
|
|
11
|
+
export declare const SharingAPIMessages: {
|
|
12
|
+
/**
|
|
13
|
+
* Share web content message.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
shareWebContent: string;
|
|
17
|
+
};
|
|
18
|
+
type ContentType = 'URL';
|
|
19
|
+
/** Represents parameters for base shared content. */
|
|
20
|
+
interface IBaseSharedContent {
|
|
21
|
+
/** Shared content type */
|
|
22
|
+
type: ContentType;
|
|
23
|
+
}
|
|
24
|
+
/** IShareRequestContentType defines share request type. */
|
|
25
|
+
export type IShareRequestContentType = IURLContent;
|
|
26
|
+
/** Represents IShareRequest parameters interface.
|
|
27
|
+
* @typeparam T - The identity type
|
|
28
|
+
*/
|
|
29
|
+
export interface IShareRequest<T> {
|
|
30
|
+
/** Content of the share request. */
|
|
31
|
+
content: T[];
|
|
32
|
+
}
|
|
33
|
+
/** Represents IURLContent parameters. */
|
|
34
|
+
export interface IURLContent extends IBaseSharedContent {
|
|
35
|
+
/** Type */
|
|
36
|
+
type: 'URL';
|
|
37
|
+
/**
|
|
38
|
+
* Required URL
|
|
39
|
+
*/
|
|
40
|
+
url: string;
|
|
41
|
+
/**
|
|
42
|
+
* Default initial message text
|
|
43
|
+
*/
|
|
44
|
+
message?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Show URL preview, defaults to true
|
|
47
|
+
*/
|
|
48
|
+
preview?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Feature is under development
|
|
52
|
+
* Opens a share dialog for web content
|
|
53
|
+
*
|
|
54
|
+
* @param shareWebContentRequest - web content info
|
|
55
|
+
* @returns Promise that will be fulfilled when the operation has completed
|
|
56
|
+
*/
|
|
57
|
+
export declare function shareWebContent(shareWebContentRequest: IShareRequest<IShareRequestContentType>): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated
|
|
60
|
+
* As of TeamsJS v2.0.0, please use {@link sharing.shareWebContent sharing.shareWebContent(shareWebContentRequest: IShareRequest\<IShareRequestContentType\>): Promise\<void\>} instead.
|
|
61
|
+
*
|
|
62
|
+
* Feature is under development
|
|
63
|
+
* Opens a share dialog for web content
|
|
64
|
+
*
|
|
65
|
+
* @param shareWebContentRequest - web content info
|
|
66
|
+
* @param callback - optional callback
|
|
67
|
+
*/
|
|
68
|
+
export declare function shareWebContent(shareWebContentRequest: IShareRequest<IShareRequestContentType>, callback: shareWebContentCallbackFunctionType): void;
|
|
69
|
+
/**
|
|
70
|
+
* Checks if the sharing capability is supported by the host
|
|
71
|
+
* @returns boolean to represent whether the sharing capability is supported
|
|
72
|
+
*
|
|
73
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
74
|
+
*/
|
|
75
|
+
export declare function isSupported(): boolean;
|
|
76
|
+
export { history };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module for actions that can be taken by the stage view itself.
|
|
3
|
+
*
|
|
4
|
+
* @beta
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Closes the current stage view. This function will be a no-op if called from outside of a stage view.
|
|
9
|
+
* @returns Promise that resolves or rejects with an error once the stage view is closed.
|
|
10
|
+
*
|
|
11
|
+
* @beta
|
|
12
|
+
* @throws Error if stageView.self.close is not supported in the current context or if `app.initialize()` has not resolved successfully.
|
|
13
|
+
*/
|
|
14
|
+
export declare function close(): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if stageView.self capability is supported by the host
|
|
17
|
+
* @beta
|
|
18
|
+
* @returns boolean to represent whether the stageView.self capability is supported
|
|
19
|
+
*
|
|
20
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to interact with the stage view specific part of the SDK.
|
|
3
|
+
*
|
|
4
|
+
* @beta
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import * as self from './self';
|
|
8
|
+
/**
|
|
9
|
+
* Parameters to open a stage view.
|
|
10
|
+
*/
|
|
11
|
+
export interface StageViewParams {
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the Teams application to be opened.
|
|
14
|
+
*/
|
|
15
|
+
appId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The URL of the content to display.
|
|
18
|
+
*/
|
|
19
|
+
contentUrl: string;
|
|
20
|
+
/**
|
|
21
|
+
* The chat or channel ID.
|
|
22
|
+
*/
|
|
23
|
+
threadId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The messageId identifies a particular channel meeting within the channel as specified by the threadId above. This should be used only when trying to open the stage view for a channel meeting. It will be a no-op for other scenarios
|
|
26
|
+
*/
|
|
27
|
+
messageId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The title to give the stage view.
|
|
30
|
+
*/
|
|
31
|
+
title?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The Teams application website URL.
|
|
34
|
+
*/
|
|
35
|
+
websiteUrl?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The entity ID of the Teams application content being opened.
|
|
38
|
+
*/
|
|
39
|
+
entityId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The open mode for stage content.
|
|
42
|
+
* Optional param: if not passed, hosts can choose their default openMode.
|
|
43
|
+
* If a host does not support any specific openMode, It will fallback to StageViewOpenMode.modal.
|
|
44
|
+
*/
|
|
45
|
+
openMode?: StageViewOpenMode;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The open mode for stage content.
|
|
49
|
+
*/
|
|
50
|
+
export declare enum StageViewOpenMode {
|
|
51
|
+
/**
|
|
52
|
+
* Open the content in a modal.
|
|
53
|
+
*/
|
|
54
|
+
modal = "modal",
|
|
55
|
+
/**
|
|
56
|
+
* Open the content in a popped-out window.
|
|
57
|
+
*/
|
|
58
|
+
popout = "popout",
|
|
59
|
+
/**
|
|
60
|
+
* Open the content in a popped-out window with chat collaboration.
|
|
61
|
+
*/
|
|
62
|
+
popoutWithChat = "popoutWithChat"
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* Opens a stage view to display a Teams application
|
|
67
|
+
* @beta
|
|
68
|
+
* @param stageViewParams - The parameters to pass into the stage view.
|
|
69
|
+
* @returns Promise that resolves or rejects with an error once the stage view is closed.
|
|
70
|
+
*/
|
|
71
|
+
export declare function open(stageViewParams: StageViewParams): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Checks if stageView capability is supported by the host
|
|
74
|
+
* @beta
|
|
75
|
+
* @returns boolean to represent whether the stageView capability is supported
|
|
76
|
+
*
|
|
77
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare function isSupported(): boolean;
|
|
81
|
+
export { self };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { IAppWindow } from './appWindow';
|
|
2
2
|
import { TaskInfo } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
* As of TeamsJS v2.0.0, please use {@link dialog} namespace instead.
|
|
6
|
-
*
|
|
7
|
-
* Module to interact with the task module-specific part of the SDK.
|
|
8
|
-
* This object is usable only on the content frame.
|
|
9
|
-
* The tasks module will be deprecated. Please use dialog for future developments.
|
|
10
|
-
*/
|
|
11
3
|
/**
|
|
12
4
|
* Function type that is used to receive the result when a task module is submitted by
|
|
13
5
|
* calling {@link tasks.submitTask tasks.submitTask(result?: string | object, appIds?: string | string[]): void}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { SdkError } from './interfaces';
|
|
2
1
|
/**
|
|
3
2
|
* Extended files API 3P storage providers, features like sending Blob from Teams to 3P app on user
|
|
4
3
|
* actions like drag and drop to compose
|
|
5
4
|
* @beta
|
|
5
|
+
* @module
|
|
6
6
|
*/
|
|
7
|
+
import { SdkError } from './interfaces';
|
|
7
8
|
/**
|
|
8
9
|
* Interface to assemble file chunks
|
|
9
10
|
* @beta
|