-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency @microsoft/teams-js to v2 #43
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/microsoft-teams-js-2.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
July 22, 2022 18:59
cdde6b4
to
8932a5f
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
August 3, 2022 23:42
8932a5f
to
fc38382
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
August 15, 2022 13:18
fc38382
to
061bcfd
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
September 8, 2022 22:41
061bcfd
to
bd515fa
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
October 6, 2022 03:20
bd515fa
to
4ebb729
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
October 7, 2022 00:01
4ebb729
to
4be0401
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
October 10, 2022 21:52
4be0401
to
5205f39
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
November 20, 2022 09:32
5205f39
to
f07fc97
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
March 18, 2023 10:00
f07fc97
to
21f9d2e
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
April 17, 2023 12:34
21f9d2e
to
b01d030
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
June 1, 2023 03:49
b01d030
to
89a9988
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
June 10, 2023 22:16
89a9988
to
ab6177e
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
July 8, 2023 22:24
ab6177e
to
0c6b603
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
August 5, 2023 19:14
0c6b603
to
1e41c51
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
January 13, 2024 23:09
518899a
to
1cdce55
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
February 11, 2024 04:57
1cdce55
to
fed2aa5
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
March 10, 2024 01:50
fed2aa5
to
8c7bd6b
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
April 14, 2024 17:14
8c7bd6b
to
470570b
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
May 12, 2024 00:18
470570b
to
c785e07
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
June 10, 2024 19:50
c785e07
to
d9ec208
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
July 13, 2024 21:35
d9ec208
to
46949be
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
August 11, 2024 01:38
46949be
to
eb7b254
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
September 1, 2024 02:08
eb7b254
to
27e85b4
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
September 7, 2024 04:46
27e85b4
to
7a0088a
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
October 7, 2024 18:06
7a0088a
to
7eeaa3d
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
October 25, 2024 01:42
7eeaa3d
to
55c09d0
Compare
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
November 17, 2024 03:23
55c09d0
to
79b7139
Compare
Dependency update (patch) :)
renovate
bot
force-pushed
the
renovate/microsoft-teams-js-2.x
branch
from
November 24, 2024 00:48
79b7139
to
273c106
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.11.0
->2.31.1
Release Notes
OfficeDev/microsoft-teams-library-js (@microsoft/teams-js)
v2.31.1
Compare Source
Wed, 20 Nov 2024 19:25:55 GMT
Patches
buffer
polyfill to stil be includedEduType
not being exported, and enum typingsv2.31.0
Compare Source
Wed, 13 Nov 2024 19:22:01 GMT
Minor changes
externalAppAuthenticationForCEA.ts
throwError
objects instead ofSdkErrors
.Buffer
withuint8array-extras
to allow forbuffer
polyfill removal.notifySuccess
function to indicate through a promise when the function finished processing in the host.Patches
Context
to provide the timestamp when the user clicked the app using the performance timer API.type: module
from package.json to fix nextjs bugIActionExecuteInvokeRequest.data
element inExternalAppAuthentication
andExternalAppAuthenticationForCEA
capabilities. The element can be of type primitive or plain object onlyv2.30.0
Compare Source
Mon, 21 Oct 2024 18:11:30 GMT
Minor changes
copilot.eligibility.getEligibilityInfo
to be async and get the eligibility info from the host if it is not already available.Patches
edgeapi.svc.cloud.microsoft
toedgeapi.freya.svc.cloud.microsoft
in valid domains list. Addedwork.bing.com
to valid domains list.validMessageOrigins
parameter onapp.initialize
in documentation.v2.29.0
Compare Source
Thu, 03 Oct 2024 22:51:48 GMT
Minor changes
externalAppAuthenticationForCEA
capabilityexternalAppCardActionsForCEA
capabilityICallDetails
,originalCallerInfo
,dialedEntityInfo
, andcallId
, created a new typeICallParticipantIdentifiers
, and deprecated theoriginalCaller
anddialedEntity
propertiespages.navigateToApp
to now optionally accept a more type-safe input objectPatches
edgeapi.svc.cloud.microsoft
to valid domains listexternalAppCardActions
namespace.externalAppCardActionsForCEA
capability.v2.28.0
Tue, 03 Sep 2024 22:19:52 GMT
Minor changes
IContentResponse
interfacePatches
AppEligibilityInformation
that could causeapp.initialize
to fail.v2.27.0
Wed, 28 Aug 2024 19:31:44 GMT
Minor changes
hostEntity
capability for adding and configuring, removing, renaming, re-configuring and fetching all tabs.messageId
tostageView.open
. PassingmessageId
tostageView.open
allows opening the stageView in a channel meetingregisterFocusEnterHandler
andreturnFocus
APIs that allows developers to send and receive more nuanced information about where focus should go in their app or the host respectivelycopilot
andcopilot.eligibility
capability that will get the eligibility information of the user using M365ChatApp. The capability is still awaiting support in one or most host applications. To track availability of this capability across different hosts see https://aka.ms/capmatrixAppId
class to use as a type where app ids are being storedPatches
*.m365.cloud.microsoft
to dynamic domain listAppId
type to public folderwebStorage
capability to be used on Teams Mobile in compatibility scenariosversionAndPlatformAgnosticTeamsRuntimeConfig
andmapTeamsVersionToSupportedCapabilities
v2.26.0
Compare Source
Wed, 07 Aug 2024 19:24:31 GMT
Minor changes
self
capability that will allow the stage to perform an operation on itself (eg. close). The capability is still awaiting support in one or most host applications. To track availability of this capability across different hosts see https://aka.ms/capmatrix*.cloud.microsoft
domain to be a valid hostVideoFrameConfig
andVideoFrameData
to allow specifying additional capabilities to be applied to a video frame and reading arbitrary attributes on a video frame respectively. The capability is still awaiting support in one or most host applications. To track availability of this capability across different hosts see https://aka.ms/capmatrixchatId
inpages.navigateToApp
api for deep link support in chatPatches
isValidOriginsCacheEmpty
function whose name was backwards of what it was actually doingauthentication.getUser
to properly unwrapSdkError
returned from host into a messagev2.25.0
Compare Source
Wed, 03 Jul 2024 18:11:19 GMT
Patches
dialog.url.submit
api to support onlyFrameContext.content
.clipboard.isSupported
so that it does not depend onnavigator.clipboard
in frameless contexts.clipboard.ts
file to match conventionsv2.24.0
Compare Source
Wed, 05 Jun 2024 20:49:06 GMT
Minor changes
app.lifecycle.registerBeforeSuspendOrTerminateHandler
to be asynchronous, and updatedapp.lifecycle.registerOnResumeHandler
to accept a new Handler type, changingcontentUrl
fromstring
toURL
object.uuid
parameter toMessageRequest
andMessageResponse
interfacesisBackgroundLoad
) for app context. This will be an indicator that the app is being loaded in the background.v2.23.0
Compare Source
Tue, 07 May 2024 20:54:35 GMT
Minor changes
externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins
. It can be used to perform authentication with Power Platform connector plugins.messageChannels.telemetry
and moved existing telemetryPort code into it. Added newmessageChannels.dataLayer
subcapability and added code for interacting with the host data layer.meeting.getMeetingDetailsVerbose
to allow retrieving additional meeting details from supported hosts.content
frame context toliveShare
capability. Live Share SDK works now in Chat/Channel Tab and Collab Stage view contexts with this change.Patches
private
folderpages.navigateToApp
functionauthentication.authenticate
so that it only accepts https URLs.validMessageOrigins
to be passed toparentWindow
.webStorage
capability to query host for capability support, rather than using a hardcoded answer.const enums
v2.22.0
Compare Source
Thu, 11 Apr 2024 05:06:48 GMT
Minor changes
OtherAppStateChange
capability that will allow limited 1P apps to receive events when other apps are installed on the host. The capability is still awaiting support in one or more host applications. To track availability of this capability across different hosts see https://aka.ms/capmatrixfromElement
toprocessActionOpenUrl
inexternalAppCardActions
externalAppAuthentication
,externalAppCardActions
andexternalAppCommands
.externalAppAuthentication.authenticateWithOauth2
. It can be used to signal to the host to perform Oauth2 authentication for the app specified by title id.externalAppCommands
1P internal-only capabilityPatches
const
to reduce package sizeclipboard
issue for desktop client to resolve 'DOMExecption: Document not focused' errorv2.21.0
Compare Source
Wed, 06 Mar 2024 22:44:18 GMT
Minor changes
meeting.joinMeeting
functionchat
capability. To track availability of this capability across different hosts see https://aka.ms/capmatrixPatches
OpenSingleChatRequest
interface and updated all URLs to remove locale-specific portions.base64ToBlob
function to accept special charactersauthentication.getUser
telemetry was being incorrectly recordedv2.20.0
Compare Source
Wed, 07 Feb 2024 18:02:49 GMT
Minor changes
messageChannels
capabilitydialog.url.parentCommunication
for dialog-parent communication related APIs. The isSupported function in this subcapability will returnfalse
if it is invoked from a parentless scenario.Patches
appInitialization
,appInstallDialog
,appWindow
,calendar
, andvideoEffectEx
capabilities.profile
,search
,secondaryBrowser
,settings
,sharing
,stageView
,videoEffects
andvisualMedia
capabilitesthirdPartyCloudStorage.getDragAndDropFiles
failed deterministicallycallbackUrl
parameter fromauthentication.notifySuccess
andauthentication.notifyFailure
(in an API-compatible way)chat
,interactive
,meeting
,menus
,monetization
andpeople
capabilitiesconversations
,files
,logs
,meetingRoom
andnotifications
capabilitiesprivateAPIs
andremoteCamera
,teams
,videoEffectsEx
capabilitiesv2.19.0
Compare Source
Wed, 10 Jan 2024 19:55:18 GMT
Minor changes
cardActionsConfig
property fromexternalAppCardActions.processActionSubmit
APIexternalAppAuthentication
andexternalAppCardActions
1P internal-only capabilitiessize
property to internalFilePreviewParameters
interfacevideoEffectsEx
capabilityshareOptions
tomeeting.shareAppContentToStage
. Apps can choose between collaborative and screen sharing for the protocol used when sharing an app to stage.thirdPartyCloudStorage
capabilitycomposeExtension
property onIQueryMessageExtensionResponse
as optional and added additional input validation onexternalAppAuthentication
andexternalAppCardActions
APIscomposeExtension
a required field onIQueryMessageExtensionResponse
Patches
sharing
capability in default runtime for Teams mobile platformapp
andapp.lifecycle
from runtime.v2.18.0
Compare Source
Thu, 30 Nov 2023 23:24:44 GMT
Minor changes
RequestAppAudioHandlingParams
by addingaudioDeviceSelectionChangedCallback
for speaker selection updatesPatches
meetingStage
andsettings
framecontexts toclipboard
.App
,Dialog
,GeoLocation
,Location
,Navigation
,Pages
, andTasks
capabilitiesMessageRequest
interface with required properties to enhance type-safetybarcode
,calendar
,call
,clipboard
,mail
,marketplace
andmedia
capabilitiesmedia.ts
,mediaUtil.ts
, and other fileschat.openChat
andchat.openGroupChat
when only a single user is specifiedstrictNullChecks
violationsisSupported
check fromapp.lifecycle
subcapability since app resumption cannot be guaranteed even when it is supported.v2.17.0
Compare Source
Wed, 01 Nov 2023 18:15:02 GMT
Minor changes
openMode
to openstageView
in new modes if supported by hostvisualMedia
and subcapabilityvisualMedia.image
for capturing images from device camera and galleryPatches
strictNullChecks
pages.appButton
,pages.tabs
, andstageView
are not supported.caching
fromapp.lifecycle
in runtimev2.16.0
Compare Source
Wed, 11 Oct 2023 16:51:27 GMT
Minor changes
lifecycle
subcapability inapp.ts
to support cachingHostName.places
to the list of application hostsPatches
meeting
namespace and hid theappShareButton
module.video
tovideoEffects
, changed namespacevideoEx
tovideoEffectsEx
v2.15.0
Compare Source
Wed, 06 Sep 2023 20:30:49 GMT
Minor changes
appNotification
capability and collateralclipboard
capability, allowing access to the system clipboard programmaticallyPatches
window
references withssrSafeWindow
surfaceHub
to the list of host client types that send authenticate requests to the host instead of opening an auth windowv2.14.0
Compare Source
Wed, 02 Aug 2023 14:49:19 GMT
Minor changes
appNotification
capability for apps to send notifications to the user through the hostPatches
video
performance datav2.13.0
Compare Source
Wed, 05 Jul 2023 16:42:51 GMT
Minor changes
videoEx
module for internal applications.marketplace
capability that helps app developers interact with the checkout flowliveShare
capability, which helps with building real-time collaborative appsPatches
stageView.open
call.startCall
would return an error when it executed successfully in a legacy environmentv2.12.0
Compare Source
Wed, 07 Jun 2023 19:21:01 GMT
Minor changes
secondaryBrowser
capability and its open API to enable browsing experience for Appsdialog
capability.video.registerForVideoFrame
to support both media stream and shared framecloseSearch
tosearch
capabilityPatches
video
capabilityv2.11.0
Compare Source
Wed, 03 May 2023 18:17:38 GMT
Minor changes
getClientInfo
to LiveShareHostPatches
v2.10.1
Compare Source
Thu, 06 Apr 2023 23:07:12 GMT
Minor changes
video
capabilityPatches
ipados
host client type check for auth flowIFluidTenantInfo
interfacemail
capabilityenum
propertiesmeeting.getAuthenticationTokenForAnonymousUser
can now be called from dialogsUserInfo.licenseType
sharing.isSupported
now returns the correct value on mobile platformsv2.10.0
Compare Source
Wed, 05 Apr 2023 18:01:24 GMT
Minor changes
video.mediaStream
and new APIvideo.mediaStream.registerForVideoFrame
Patches
video.EffectChangeType
to string enumvideo.registerForVideoFrame
to avoid duplication with message sent byvideo.mediaStream.registerForVideoStream
(bug would manifest in "stream id is already registered" error message)ipados
host client type check for auth flowmail
capabilityIFluidTenantInfo
interfacevideo.registerForVideoFrame
tovideo.sharedFrame.registerForVideoFrame
meeting.getAuthenticationTokenForAnonymousUser
can now be called from dialogsenum
propertiesUserInfo.licenseType
sharing.isSupported
now returns the correct value on mobile platformsv2.9.1
Compare Source
Fri, 03 Mar 2023 19:57:31 GMT
Minor changes
registerForVideoEffect
to return a PromiseHostName
enum,TeamsModern
Patches
dialog
andtasks
capabilitiesauthentication
documentationregisterBeforeUnloadHandler
andregisterOnLoadHandler
APIs.v2.9.0
Compare Source
v2.8.0
Compare Source
Wed, 01 Feb 2023 23:22:55 GMT
Minor changes
requestAppAudioHandling
andupdateMicState
meeting APIsgetContext()
was incorrectly dropping properties by performing a lossy conversion viaapp.getContext()
dialog
capabilitydialog.ts
. Moved all functions previously underdialog
anddialog.bot
to be under namespaceurl
. Function calls are nowdialog.url.open
anddialog.url.bot.open
as an example.Patches
registerBeforeUnloadHandler
andregisterOnLoadHandler
APIs.dialog.submit
meeting.ts
_initialize
and_uninitialize
methods only used by unit testscommunication.uninitializeCommunication
,communication.sendAndUnwrap
, andcommunication.sendMessageToParentAsync
and updatedcommunication.uninitializeCommunication
to handlecurrentWindow
correctly.licenseType
property onUserInfo
interfacecommunication.initializeCommunication
dialog
andtasks
documentation to add and fix doc links@hidden
and@internal
tags for the meetingrequestAppAudioHandling
andupdateMicState
APIs, and improved how theteams-test-app
app uses the APIscommunication.processMessage
andcommunication.shouldProcessMessage
.v2.7.1
Compare Source
Fri, 06 Jan 2023 04:15:12 GMT
Patches
v2.7.0
Compare Source
Wed, 04 Jan 2023 19:07:09 GMT
Minor changes
runtime
interface versioningPatches
entityId
andtitle
as required fields fromopenFilePreview
parametersapp.initialize
v2.6.1
Compare Source
Tue, 13 Dec 2022 21:28:59 GMT
Patches
dataResidency
property toUserProfile
interface to expose a limited set of data residency information to 1P app developers.v2.6.0
Compare Source
Wed, 07 Dec 2022 16:39:58 GMT
Minor changes
notifyFatalError
function in videoEx to enable video apps to notify the host of fatal errors.meeting
capabilityPatches
meetingRoom
andsidePanel
frame contexts indialog.submit
API.v2.5.0
Compare Source
Thu, 03 Nov 2022 17:03:30 GMT
Minor changes
Patches
app.IFailedRequest.message
property to clarify that it is unusedPACKAGE_VERSION
to an error value indicating it will be replaced by webpack at build timeprofile.isSupported
and showProfileTriggerType
validOrigins
list.LiveShareClient
to using a global window variable. Fixes an issue where dynamic imports stop working for multiple layers of webpack.v2.4.2
Compare Source
Patches
v2.4.1
Compare Source
Mon, 10 Oct 2022 19:09:20 GMT
Minor changes
version
as a public constant containing the library versionpages.currentApp.navigateTo
that enables navigation within an application without specifying application ID.pages.currentApp.navigateToDefaultPage
that navigates to first static page defined in app manifestOutlookWin32
toHostName
enumPatches
registerHandlerHelper
function to replace several helpers.theme
property onAppInfo
object in docsapp.initialize
to clarify that it must have completed before calling other library methods.File
interface changed the type oflastModified
field fromDate
tonumber
search
API in test fileruntime
andapp
to make it easier to investigate issues surrounding app initialization.undefined
was properly handled but not explicitly in the type declarationliveShare
capabilitysharepoint
property onContext
objectstrictNullChecks
as lint rulepages.config
capability to be proxied to child windowsv2.4.0
Compare Source
v2.3.0
Compare Source
Thu, 08 Sep 2022 17:11:49 GMT
Minor changes
video
API, and the ability to upload personalized video effects to the private folderSearch
capability to use global search box in the current app in Outlooktimestamp
toVideoFrame
, sent thetimestamp
back to Teams client after the video frame has been processed.Patches
register*Handler
functions. Previously if the v2 version of the API's capability was not supported, attempts to call the v1 version would throw an exception, breaking backwards compatibility.Context
interface.@internal
tag to make it clear they are intended for Microsoft use only and removed some@internal
items from dev documentation. RemovedinitializePrivateApis
from the privateAPIs file, an unexported and hidden no-op function.HostClientType
values so correctRuntime
is generated forteams.fullTrust.joinedTeams
andwebStorage
capabilities.filePath
field towebkitRelativePath
. Removed two validation checks fordestinationFolder
fields. Added an optional fieldprovider
in callback ofaddCloudStorageProvider
API.v2.2.0
Compare Source
Wed, 03 Aug 2022 19:21:51 GMT
Minor changes
ISpeakingState
interface to alignregisterSpeakingStateChangeHandler
API with other API error handling.ActionInfo
object to theContext
interface. This is used to pass information about an action that was taken on content from the host to the application.CloudStorageProviderFile
action API into 3 action APIsPatches
dialog.submit
to indicate the dialog is closed whensubmit
is called.Context
interface to work with typedoc system.FrameContexts.task
toopenChat
andopenGroupChat
in chat.ts@beta
tags to new content action-related interfaces.v2.1.0
Compare Source
Fri, 22 Jul 2022 16:36:44 GMT
Minor changes
webStorage
capability with APIs to allows apps to discover if web storage is supported by the host clientisSupported
tostageView
profile.showProfile
API and unit testsmeeting.registerMeetingReactionReceivedHandler
scanBarCode
to barCode.ts from media.ts along with permission APIshasPermission
andrequestPermission
geoLocation
that split the location capability into new set of functions and subcapabilities. Added permission-related APIshasPermission
andrequestPermission
.Patches
submitHandler
exists before calling it indialog.open
,dialog.bot.open
andtasks.startTask
APIs.authentication.notifySuccess
andauthentication.notifyFailure
barCode
capability to accurately reflect level of support offeredmeeting.registerRaiseHandStateChangedHandler
Context
interface. Each deprecatedContext
property now links to respective mapped property inapp.Context
interface.FrameContexts.task
forstartCall
API in call.tscall.StartCallParams
interface./
inappInstallDialog.openAppInstallDialog()
IRaiseHandStateChangedEvent
interface toIRaiseHandStateChangedEventData
and changed the error so it can be assigned undefined rather than nullv2.0.0
Fri, 13 May 2022 22:32:13 GMT
The change log comments for v2.0.0 are a consolidated summary of the comments for each beta release to describe the changes made since v1. Detailed change log comments for each beta release follow after 2.0.0.
Major changes
Promote 2.0.0 beta changes to stable. TeamsJS can be used to write applications with support in multiple Microsoft 365 hosts, including Teams, Outlook, and Office.
The Teams JavaScript client SDK repo has been converted to a monorepo
teams-js
Reverted
registerEnterSettingsHandler
back to its original nameregisterChangeSettingsHandler
Removed deprecated
stageView.open
function that took a callback as a parameterModified
enablePrintCapability
to correctly require the library be initialized before using itRemoved
bot
namespace and APIsAdded
hostName
property toContext
interface which contains the name of the host in which the app is running.The
Context
interface has been updated to group similar properties for better scalability in a multi-host environment.The
FrameContext
interface has been renamedFrameInfo
.Capabilities organization introduced
Each capability has an
isSupported
function that is used to determine if a capability is supported in the host in which the application is running. All APIs call this function and will throw anSdkError
withErrorCode.NOT_SUPPORTED_ON_PLATFORM
if it returns false.Added App capability
publicAPIs
to newapp
namespace:initialize
getContext
registerOnThemeChangeHandler
executeDeepLink
has been renamedopenLink
appInitialization
toapp
namespace:notifyAppLoaded
notifySuccess
notifyFailure
notifyExpectedFailure
app
namespace:isInitialized
getFrameContext
Added a Pages capability and reorganized several APIs under it:
pages
namespace:registerFullScreenHandler
moved frompublicAPIs
initializeWithFrameContext
moved frompublicAPIs
navigateCrossDomain
moved fromnavigation
namespacereturnFocus
moved fromnavigation
namespaceregisterFocusEnterHandler
moved frompublicAPIs
shareDeepLink
moved frompublicAPIs
DeepLinkParameters
has been renamed toShareDeepLinkParameters
setFrameContext
has been moved frompublicAPIs
and renamedpages.setCurrentFrame
settings.getSettings
has been renamedpages.getConfig
pages.navigateToApp
that navigates to the given application ID and page ID, with optional parameters for a WebURL (if the application cannot be navigated to, such as if it is not installed), Channel ID (for applications installed as a channel tab), and sub-page ID (for navigating to specific content within the page).publicAPIs
to a new Pages.AppButton sub-capability in the newpages.appButton
namespace:registerAppButtonClickHandler
has renamed and moved topages.appButton.onClick
registerAppButtonHoverEnterHandler
has renamed and moved topages.appButton.onHoverEnter
regsiterAppButtonHoverLeaveHandler
has renamed and moved topages.appButton.onHoverLeave
pages.backStack
namespace:registerBackButtonHandler
moved frompublicAPIs
navigateBack
moved fromnavigation
namespacepages.config
namespace (formerly thesettings
namespace):registerEnterSettingsHandler
has renamed and moved topages.config.registerChangeConfigHandler
registerOnSaveHandler
registerOnRemoveHandler
setSettings
has been renamedpages.config.setConfig
setValidityState
privateAPIs
to a new Pages.FullTrust sub-capability in the newpages.fullTrust
namespace:enterFullscreen
exitFullscreen
pages.tabs
namespace:getTabInstances
moved frompublicAPIs
getMruTabInstances
moved frompublicAPIs
navigateToTab
moved fromnavigation
namespaceTasks APIs renamed and reorganized under new Dialog capability:
dialog
capability, which has support for HTML-based dialogs, and adialog.bot
sub-capability has been added for bot-based dialogs. At this time,dialog
does not support adaptive card-based dialogs.startTask
has been renameddialog.open
. It takesUrlDialogInfo
parameter instead ofDialogInfo
to enforce only HTML based dialogs,DialogSubmitHandler
callback that takes a single object parameter containing both error and result,PostMessageChannel
parameter which is triggered if dialog sends a message to the appdialog.bot.open
has the same function signature except it takesBotUrlDialogInfo
instead ofUrlDialogInfo
submitTasks
has been renameddialog.submit
TaskInfo
interface has been renamedDialogInfo
TaskModuleDimension
enum has been renamedDialogDimension
sendMessageToDialog
function which can be used to send messages to the dialog.dialog.update
sub-capability and renamedupdateTask
todialog.update.resize
, which now takes aDialogSize
parameter.Added TeamsCore capability
publicAPIs
to newteamsCore
namespace:enablePrintCapability
print
registerOnLoadHandler
registerBeforeUnloadHandler
Added AppInstallDialog capability
openAppInstallDialog
is added to newappInstallDialog
namespaceAdded Calendar capability
calendar
namespace:openCalendarItem
is addedcomposeMeeting
is addedAdded Call capability
startCall
is added to newcall
namespaceAdded Mail capability
mail
namespace:openMailItem
is addedcomposeMail
is addedAdded Chat capability to new
chat
namespace to represent public chat functionalityopenChat
andopenGroupChat
to open Teams chats with one or more usersConverted existing
conversations
namespace into the Conversations capability to represent private chat functionalitygetChatMembers
has been moved fromprivateAPIs
toconversations
namespaceAdded
fullTrust
andfullTrust.joinedTeams
sub-capabilities to existingteams
namespaceprivateAPIs
to a newteams.fullTrust
namespace:getConfigSetting
privateAPIs
to a newteams.fullTrust.joinedTeams
namespace:getUserJoinedTeams
Added Notifications capability
showNotification
has moved fromprivateAPIs
tonotifications
namespaceConverted existing namespaces into the following new capabilites
Added Runtime capability
applyRuntimeConfig
Promises introduced
Promise
.app.initialize
app.getContext
authentication.authenticate
authentication.getAuthToken
authentication.getUser
conversations.getChatMembers
conversations.openConversation
location.getLocation
location.showLocation
meetingRoom.getPairedMeetingRoomInfo
meetingRoom.sendCommandToPairedMeetingRoom
pages.navigateCrossDomain
pages.tabs.navigateToTab
pages.tabs.getTabInstances
pages.tabs.getMruTabInstances
pages.getConfig
pages.config.setConfig
pages.backStack.navigateBack
people.selectPeople
teams.fulltrust.getConfigSetting
teams.fulltrust.getUserJoinedTeams
ChildAppWindow.postMessage
ParentAppWindow.postMessage
appInstallDialog.openAppInstallDialog
Changed TypeScript to output ES6 modules instead of CommonJS
Minor changes
app.initialize
to automatically listen for messages that an application is sending to a dialog. ModifiedregisterOnMessageFromParent
in DialogAPI.tsx for the Teams Test App to account for this new functionality.ParentAppWindow
functionality intodialog
capability. Indialog
,ParentAppWindow.postMessage
was renamed todialog.sendMessageToParent(message: any): void
.ParentAppWindow.addEventListener
was renamed todialog.registerOnMessageFromParent
.runtime.isLegacy
handler for the following deep link capabilities:appInstallDialog
calendar
call
topicName
forexecuteDeepLink
call in chat.tsPatches
Context
in the reference documentation comments@deprecated
tags to reference version 2.0.0pages
capabilityauthentication
capabilitydialog.open
anddialog.bot.open
to sendDialogInfo
type over to the host instead ofUrlDialogInfo
orBotUrlDialogInfo
typesminRuntimeConfig
touninitialize
for various capabilitiestaskInfo
, it will not be set to a default small size. Instead the card content will be set to fit on a Task Module.initializePrivateApis
explaining that this function needs to stay for backwards compatibility purposesChildAppWindow
andParentAppWindow
back to synchronous calls because the promise was never being resolved.teamsRuntimeConfig
(default backwards compatible host client runtime config) to not containlocation
orpeople
capabilities since those are not guaranteed to be supported. Added new function to dynamically generate backwards compatible host client runtime config during initialization.ensureInitialized
call toregisterOnMessageFromParent
function in dialog.ts andaddEventListener
function in appWindow.tsStageLayoutControls
type inmeetingRoom
capabilitynull
runtimeConfig is no longer allowed during initialization. This will now throw a "Received runtime config is invalid" error.@deprecated comments
to include links to replaced APIs.v1.12.1
Compare Source
v1.12.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.