Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/teams-js

Package Overview
Dependencies
Maintainers
3
Versions
499
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/teams-js - npm Package Compare versions

Comparing version 2.29.0-beta.2 to 2.29.0

dist/esm/packages/teams-js/src/internal/emailAddressValidation.js

2

dist/esm/packages/teams-js/src/index.js

@@ -1,1 +0,1 @@

export{logs}from"./private/logs.js";export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";export{conversations}from"./private/conversations.js";export{copilot}from"./private/copilot.js";export{externalAppAuthentication}from"./private/externalAppAuthentication.js";export{externalAppCardActions}from"./private/externalAppCardActions.js";export{externalAppCardActionsForCEA}from"./private/externalAppCardActionsForCEA.js";export{externalAppCommands}from"./private/externalAppCommands.js";export{files}from"./private/files.js";export{meetingRoom}from"./private/meetingRoom.js";export{messageChannels}from"./private/messageChannels.js";export{notifications}from"./private/notifications.js";export{otherAppStateChange}from"./private/otherAppStateChange.js";export{remoteCamera}from"./private/remoteCamera.js";export{appEntity}from"./private/appEntity.js";export{teams}from"./private/teams.js";export{videoEffectsEx}from"./private/videoEffectsEx.js";export{hostEntity}from"./private/hostEntity.js";export{authentication}from"./public/authentication.js";export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{app}from"./public/app.js";export{AppId}from"./public/appId.js";export{appInstallDialog}from"./public/appInstallDialog.js";export{barCode}from"./public/barCode.js";export{chat}from"./public/chat.js";export{clipboard}from"./public/clipboard.js";export{dialog}from"./public/dialog.js";export{nestedAppAuth}from"./public/nestedAppAuth.js";export{geoLocation}from"./public/geoLocation.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{pages}from"./public/pages.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{menus}from"./public/menus.js";export{media}from"./public/media.js";export{secondaryBrowser}from"./public/secondaryBrowser.js";export{location}from"./public/location.js";export{meeting}from"./public/meeting.js";export{monetization}from"./public/monetization.js";export{calendar}from"./public/calendar.js";export{mail}from"./public/mail.js";export{teamsCore}from"./public/teamsAPIs.js";export{people}from"./public/people.js";export{profile}from"./public/profile.js";export{videoEffects}from"./public/videoEffects.js";export{search}from"./public/search.js";export{sharing}from"./public/sharing.js";export{stageView}from"./public/stageView.js";export{version}from"./public/version.js";export{visualMedia}from"./public/visualMedia.js";export{webStorage}from"./public/webStorage.js";export{call}from"./public/call.js";export{appInitialization}from"./public/appInitialization.js";export{thirdPartyCloudStorage}from"./public/thirdPartyCloudStorage.js";export{enablePrintCapability,executeDeepLink,getContext,getMruTabInstances,getTabInstances,initialize,initializeWithFrameContext,print,registerAppButtonClickHandler,registerAppButtonHoverEnterHandler,registerAppButtonHoverLeaveHandler,registerBackButtonHandler,registerBeforeUnloadHandler,registerChangeSettingsHandler,registerFocusEnterHandler,registerFullScreenHandler,registerOnLoadHandler,registerOnThemeChangeHandler,setFrameContext,shareDeepLink}from"./public/publicAPIs.js";export{navigateBack,navigateCrossDomain,navigateToTab,returnFocus}from"./public/navigation.js";export{settings}from"./public/settings.js";export{tasks}from"./public/tasks.js";export{LiveShareHost,liveShare}from"./public/liveShareHost.js";export{marketplace}from"./public/marketplace.js";
export{logs}from"./private/logs.js";export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";export{conversations}from"./private/conversations.js";export{copilot}from"./private/copilot.js";export{externalAppAuthentication}from"./private/externalAppAuthentication.js";export{externalAppAuthenticationForCEA}from"./private/externalAppAuthenticationForCEA.js";export{externalAppCardActions}from"./private/externalAppCardActions.js";export{externalAppCardActionsForCEA}from"./private/externalAppCardActionsForCEA.js";export{externalAppCommands}from"./private/externalAppCommands.js";export{files}from"./private/files.js";export{meetingRoom}from"./private/meetingRoom.js";export{messageChannels}from"./private/messageChannels.js";export{notifications}from"./private/notifications.js";export{otherAppStateChange}from"./private/otherAppStateChange.js";export{remoteCamera}from"./private/remoteCamera.js";export{appEntity}from"./private/appEntity.js";export{teams}from"./private/teams.js";export{videoEffectsEx}from"./private/videoEffectsEx.js";export{hostEntity}from"./private/hostEntity.js";export{authentication}from"./public/authentication.js";export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{app}from"./public/app.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{appInstallDialog}from"./public/appInstallDialog.js";export{barCode}from"./public/barCode.js";export{chat}from"./public/chat.js";export{clipboard}from"./public/clipboard.js";export{dialog}from"./public/dialog.js";export{nestedAppAuth}from"./public/nestedAppAuth.js";export{geoLocation}from"./public/geoLocation.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{pages}from"./public/pages.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{menus}from"./public/menus.js";export{media}from"./public/media.js";export{secondaryBrowser}from"./public/secondaryBrowser.js";export{location}from"./public/location.js";export{meeting}from"./public/meeting.js";export{monetization}from"./public/monetization.js";export{calendar}from"./public/calendar.js";export{mail}from"./public/mail.js";export{teamsCore}from"./public/teamsAPIs.js";export{people}from"./public/people.js";export{profile}from"./public/profile.js";export{videoEffects}from"./public/videoEffects.js";export{search}from"./public/search.js";export{sharing}from"./public/sharing.js";export{stageView}from"./public/stageView.js";export{version}from"./public/version.js";export{visualMedia}from"./public/visualMedia.js";export{webStorage}from"./public/webStorage.js";export{call}from"./public/call.js";export{appInitialization}from"./public/appInitialization.js";export{thirdPartyCloudStorage}from"./public/thirdPartyCloudStorage.js";export{enablePrintCapability,executeDeepLink,getContext,getMruTabInstances,getTabInstances,initialize,initializeWithFrameContext,print,registerAppButtonClickHandler,registerAppButtonHoverEnterHandler,registerAppButtonHoverLeaveHandler,registerBackButtonHandler,registerBeforeUnloadHandler,registerChangeSettingsHandler,registerFocusEnterHandler,registerFullScreenHandler,registerOnLoadHandler,registerOnThemeChangeHandler,setFrameContext,shareDeepLink}from"./public/publicAPIs.js";export{navigateBack,navigateCrossDomain,navigateToTab,returnFocus}from"./public/navigation.js";export{settings}from"./public/settings.js";export{tasks}from"./public/tasks.js";export{LiveShareHost,liveShare}from"./public/liveShareHost.js";export{marketplace}from"./public/marketplace.js";

@@ -1,1 +0,1 @@

import{sendMessageToParentAsync as e}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as n}from"../internal/telemetry.js";import{validateId as i,validateUrl as o}from"../internal/utils.js";import{FrameContexts as r,errorNotSupportedOnPlatform as a}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";import{AppId as u}from"../public/appId.js";const c="v2";var h;!function(h){const l="Action.Execute";let p;var f;let m;function R(e){if(e.requestType===p.ActionExecuteInvokeRequest){const t=e;if(t.type!==l){throw{errorCode:m.INTERNAL_ERROR,message:`Invalid action type ${t.type}. Action type must be "${l}"`}}}else if(e.requestType===p.QueryMessageExtensionRequest){if(e.commandId.length>64)throw new Error("originalRequestInfo.commandId exceeds the maximum size of 64 characters");if(e.parameters.length>5)throw new Error("originalRequestInfo.parameters exceeds the maximum size of 5");for(const t of e.parameters){if(t.name.length>64)throw new Error("originalRequestInfo.parameters.name exceeds the maximum size of 64 characters");if(t.value.length>512)throw new Error("originalRequestInfo.parameters.value exceeds the maximum size of 512 characters")}}}function d(){return!(!t(s)||!s.supports.externalAppAuthentication)}!function(e){e.ActionExecuteInvokeRequest="ActionExecuteInvokeRequest",e.QueryMessageExtensionRequest="QueryMessageExtensionRequest"}(p=h.OriginalRequestType||(h.OriginalRequestType={})),(f=h.InvokeResponseType||(h.InvokeResponseType={})).ActionExecuteInvokeResponse="ActionExecuteInvokeResponse",f.QueryMessageExtensionResponse="QueryMessageExtensionResponse",function(e){e.INTERNAL_ERROR="INTERNAL_ERROR"}(m=h.InvokeErrorCode||(h.InvokeErrorCode={})),h.authenticateAndResendRequest=function(i,o,h){if(t(s,r.content),!d())throw a;const l=new u(i);return R(h),e(n(c,"externalAppAuthentication.authenticateAndResendRequest"),"externalAppAuthentication.authenticateAndResendRequest",[l.toString(),h,o.url.href,o.width,o.height,o.isExternal]).then((([e,t])=>{if(e&&null!=t.responseType)return t;throw t}))},h.authenticateWithSSO=function(i,o){if(t(s,r.content),!d())throw a;const h=new u(i);return e(n(c,"externalAppAuthentication.authenticateWithSSO"),"externalAppAuthentication.authenticateWithSSO",[h.toString(),o.claims,o.silent]).then((([e,t])=>{if(!e)throw t}))},h.authenticateWithSSOAndResendRequest=function(i,o,h){if(t(s,r.content),!d())throw a;const l=new u(i);return R(h),e(n(c,"externalAppAuthentication.authenticateWithSSOAndResendRequest"),"externalAppAuthentication.authenticateWithSSOAndResendRequest",[l.toString(),h,o.claims,o.silent]).then((([e,t])=>{if(e&&null!=t.responseType)return t;throw t}))},h.authenticateWithOauth2=function(o,u,h){if(t(s,r.content),!d())throw a;return i(o,new Error("titleId is Invalid.")),i(u,new Error("oauthConfigId is Invalid.")),e(n(c,"externalAppAuthentication.authenticateWithOauth2"),"externalAppAuthentication.authenticateWithOauth2",[o,u,h.width,h.height,h.isExternal]).then((([e,t])=>{if(!e)throw t}))},h.authenticateWithPowerPlatformConnectorPlugins=function(u,h,l){if(t(s,r.content),!d())throw a;return i(u,new Error("titleId is Invalid.")),h&&o(h),e(n(c,"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins"),"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins",[u,null==h?void 0:h.toString(),null==l?void 0:l.width,null==l?void 0:l.height,null==l?void 0:l.isExternal]).then((([e,t])=>{if(!e)throw t}))},h.isSupported=d}(h||(h={}));export{h as externalAppAuthentication};
import{sendMessageToParentAsync as e}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as n}from"../internal/telemetry.js";import{validateId as o,validateUrl as i}from"../internal/utils.js";import{FrameContexts as r,errorNotSupportedOnPlatform as s}from"../public/constants.js";import{runtime as a}from"../public/runtime.js";import{AppId as u}from"../public/appId.js";const c="v2";var h;!function(h){let p;var l;let f;function m(e){if(e.requestType===p.ActionExecuteInvokeRequest){const t=e;if(t.type!==h.ActionExecuteInvokeRequestType){throw{errorCode:f.INTERNAL_ERROR,message:`Invalid action type ${t.type}. Action type must be "${h.ActionExecuteInvokeRequestType}"`}}}else if(e.requestType===p.QueryMessageExtensionRequest){if(e.commandId.length>64)throw new Error("originalRequestInfo.commandId exceeds the maximum size of 64 characters");if(e.parameters.length>5)throw new Error("originalRequestInfo.parameters exceeds the maximum size of 5");for(const t of e.parameters){if(t.name.length>64)throw new Error("originalRequestInfo.parameters.name exceeds the maximum size of 64 characters");if(t.value.length>512)throw new Error("originalRequestInfo.parameters.value exceeds the maximum size of 512 characters")}}}function R(){return!(!t(a)||!a.supports.externalAppAuthentication)}h.isActionExecuteResponse=function(e){const t=e;return t.responseType===h.InvokeResponseType.ActionExecuteInvokeResponse&&void 0!==t.value&&void 0!==t.statusCode&&void 0!==t.type},h.ActionExecuteInvokeRequestType="Action.Execute",function(e){e.ActionExecuteInvokeRequest="ActionExecuteInvokeRequest",e.QueryMessageExtensionRequest="QueryMessageExtensionRequest"}(p=h.OriginalRequestType||(h.OriginalRequestType={})),(l=h.InvokeResponseType||(h.InvokeResponseType={})).ActionExecuteInvokeResponse="ActionExecuteInvokeResponse",l.QueryMessageExtensionResponse="QueryMessageExtensionResponse",h.isInvokeError=function(e){if("object"!=typeof e||null===e)return!1;const t=e;return Object.values(h.InvokeErrorCode).includes(t.errorCode)&&(void 0===t.message||"string"==typeof t.message)},function(e){e.INTERNAL_ERROR="INTERNAL_ERROR"}(f=h.InvokeErrorCode||(h.InvokeErrorCode={})),h.authenticateAndResendRequest=function(o,i,h){if(t(a,r.content),!R())throw s;const p=new u(o);return m(h),e(n(c,"externalAppAuthentication.authenticateAndResendRequest"),"externalAppAuthentication.authenticateAndResendRequest",[p.toString(),h,i.url.href,i.width,i.height,i.isExternal]).then((([e,t])=>{if(e&&null!=t.responseType)return t;throw t}))},h.authenticateWithSSO=function(o,i){if(t(a,r.content),!R())throw s;const h=new u(o);return e(n(c,"externalAppAuthentication.authenticateWithSSO"),"externalAppAuthentication.authenticateWithSSO",[h.toString(),i.claims,i.silent]).then((([e,t])=>{if(!e)throw t}))},h.authenticateWithSSOAndResendRequest=function(o,i,h){if(t(a,r.content),!R())throw s;const p=new u(o);return m(h),e(n(c,"externalAppAuthentication.authenticateWithSSOAndResendRequest"),"externalAppAuthentication.authenticateWithSSOAndResendRequest",[p.toString(),h,i.claims,i.silent]).then((([e,t])=>{if(e&&null!=t.responseType)return t;throw t}))},h.authenticateWithOauth2=function(i,u,h){if(t(a,r.content),!R())throw s;return o(i,new Error("titleId is Invalid.")),o(u,new Error("oauthConfigId is Invalid.")),e(n(c,"externalAppAuthentication.authenticateWithOauth2"),"externalAppAuthentication.authenticateWithOauth2",[i,u,h.width,h.height,h.isExternal]).then((([e,t])=>{if(!e)throw t}))},h.authenticateWithPowerPlatformConnectorPlugins=function(u,h,p){if(t(a,r.content),!R())throw s;return o(u,new Error("titleId is Invalid.")),h&&i(h),e(n(c,"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins"),"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins",[u,null==h?void 0:h.toString(),null==p?void 0:p.width,null==p?void 0:p.height,null==p?void 0:p.isExternal]).then((([e,t])=>{if(!e)throw t}))},h.isSupported=R}(h||(h={}));export{h as externalAppAuthentication};

@@ -1,1 +0,1 @@

import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.22.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParent as n,sendAndHandleSdkError as t}from"../internal/communication.js";import{registerHandler as i,doesHandlerExist as a,removeHandler as o}from"../internal/handlers.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{getApiVersionTag as l}from"../internal/telemetry.js";import{FrameContexts as g}from"./constants.js";import{ErrorCode as s}from"./interfaces.js";import{runtime as d}from"./runtime.js";const c="v1";var u;!function(u){let p;var m,S;let h,C,A;function b(e,t){r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.setMicStateWithReason"),"meeting.updateMicState",[e,t])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(p||(p={})),(m=u.MeetingReactionType||(u.MeetingReactionType={})).like="like",m.heart="heart",m.laugh="laugh",m.surprised="surprised",m.applause="applause",(S=u.MeetingType||(u.MeetingType={})).Unknown="Unknown",S.Adhoc="Adhoc",S.Scheduled="Scheduled",S.Recurring="Recurring",S.Broadcast="Broadcast",S.MeetNow="MeetNow",function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(h=u.CallType||(u.CallType={})),function(e){e.Collaborative="Collaborative",e.ScreenShare="ScreenShare"}(C=u.SharingProtocol||(u.SharingProtocol={})),u.getIncomingClientAudioState=function(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getIncomingClientAudioState"),"getIncomingClientAudioState",e)},u.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.toggleIncomingClientAudio"),"toggleIncomingClientAudio",e)},u.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");r(d,g.sidePanel,g.meetingStage,g.settings,g.content),n(l(c,"meeting.getMeetingDetails"),"meeting.getMeetingDetails",e)},u.getMeetingDetailsVerbose=function(){var n,i,a;return e(this,void 0,void 0,(function*(){let e;r(d,g.sidePanel,g.meetingStage,g.settings,g.content);try{const n=!0;e=yield t(l("v2","meeting.getMeetingDetailsVerbose"),"meeting.getMeetingDetails",n)}catch(e){throw new Error(null===(n=null==e?void 0:e.errorCode)||void 0===n?void 0:n.toString())}if(((null===(i=e.details)||void 0===i?void 0:i.type)==h.GroupCall||(null===(a=e.details)||void 0===a?void 0:a.type)==h.OneOnOneCall)&&!e.details.originalCaller)throw new Error(s.NOT_SUPPORTED_ON_PLATFORM.toString());return e}))},u.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");r(d,g.sidePanel,g.meetingStage,g.task),n(l(c,"meeting.getAuthenticationTokenForAnonymousUser"),"meeting.getAuthenticationTokenForAnonymousUser",e)},u.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.getLiveStreamState"),"meeting.getLiveStreamState",e)},u.requestStartLiveStreaming=function(e,t,i){if(!e)throw new Error("[request start live streaming] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.requestStartLiveStreaming"),"meeting.requestStartLiveStreaming",[t,i],e)},u.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.requestStopLiveStreaming"),"meeting.requestStopLiveStreaming",e)},u.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");r(d,g.sidePanel),i(l(c,"meeting.registerLiveStreamChangedHandler"),"meeting.liveStreamChanged",e)},u.shareAppContentToStage=function(e,t,i={sharingProtocol:C.Collaborative}){if(!e)throw new Error("[share app content to stage] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.shareAppContentToStage"),"meeting.shareAppContentToStage",[t,i],e)},u.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getAppContentStageSharingCapabilities"),"meeting.getAppContentStageSharingCapabilities",e)},u.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.stopSharingAppContentToStage"),"meeting.stopSharingAppContentToStage",e)},u.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getAppContentStageSharingState"),"meeting.getAppContentStageSharingState",e)},u.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerSpeakingStateChangeHandler"),"meeting.speakingStateChanged",e)},u.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerRaiseHandStateChangedHandler"),"meeting.raiseHandStateChanged",e)},u.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerMeetingReactionReceivedHandler"),"meeting.meetingReactionReceived",e)},u.joinMeeting=function(e){if(void 0===(null==e?void 0:e.joinWebUrl)||null===(null==e?void 0:e.joinWebUrl))return Promise.reject(new Error("Invalid joinMeetingParams"));r(d);const n={joinWebUrl:e.joinWebUrl.href,source:e.source||A.Other};return t(l("v2","meeting.joinMeeting"),"meeting.joinMeeting",n)},function(e){e.M365CalendarGridContextMenu="m365_calendar_grid_context_menu",e.M365CalendarGridPeek="m365_calendar_grid_peek",e.M365CalendarGridEventCardJoinButton="m365_calendar_grid_event_card_join_button",e.M365CalendarFormRibbonJoinButton="m365_calendar_form_ribbon_join_button",e.M365CalendarFormJoinTeamsMeetingButton="m365_calendar_form_join_teams_meeting_button",e.Other="other"}(A=u.EventActionSource||(u.EventActionSource={})),(u.appShareButton||(u.appShareButton={})).setOptions=function(e){r(d,g.sidePanel),e.contentUrl&&new URL(e.contentUrl),n(l(c,"meeting.appShareButton.setOptions"),"meeting.appShareButton.setOptions",[e])},u.requestAppAudioHandling=function(t,s){if(!s)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!t.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");r(d,g.sidePanel,g.meetingStage),t.isAppHandlingAudio?function(t,a){const o=(n,o)=>{if(n&&null!=o)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(n)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${n.errorCode} ${n.message}`);if("boolean"!=typeof o)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");const r=n=>e(this,void 0,void 0,(function*(){try{const e=yield t.micMuteStateChangedCallback(n);b(e,e.isMicMuted===n.isMicMuted?p.HostInitiated:p.AppDeclinedToChange)}catch(e){b(n,p.AppFailedToChange)}}));i(l(c,"meeting.registerMicStateChangeHandler"),"meeting.micStateChanged",r);const g=e=>{var n;null===(n=t.audioDeviceSelectionChangedCallback)||void 0===n||n.call(t,e)};i(l(c,"meeting.registerAudioDeviceSelectionChangedHandler"),"meeting.audioDeviceSelectionChanged",g),a(o)};n(l(c,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[t.isAppHandlingAudio],o)}(t,s):function(e,t){const i=(e,n)=>{if(e&&null!=n)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${e.errorCode} ${e.message}`);if("boolean"!=typeof n)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");a("meeting.micStateChanged")&&o("meeting.micStateChanged"),a("meeting.audioDeviceSelectionChanged")&&o("meeting.audioDeviceSelectionChanged"),t(n)};n(l(c,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[e.isAppHandlingAudio],i)}(t,s)},u.updateMicState=function(e){b(e,p.AppInitiated)}}(u||(u={}));export{u as meeting};
import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.22.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParent as n,sendAndHandleSdkError as t}from"../internal/communication.js";import{registerHandler as i,doesHandlerExist as a,removeHandler as o}from"../internal/handlers.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{getApiVersionTag as l}from"../internal/telemetry.js";import{FrameContexts as g}from"./constants.js";import{ErrorCode as s}from"./interfaces.js";import{runtime as d}from"./runtime.js";const c="v1";var u;!function(u){let p;var m,S;let h,C,A;function b(e,t){r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.setMicStateWithReason"),"meeting.updateMicState",[e,t])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(p||(p={})),(m=u.MeetingReactionType||(u.MeetingReactionType={})).like="like",m.heart="heart",m.laugh="laugh",m.surprised="surprised",m.applause="applause",(S=u.MeetingType||(u.MeetingType={})).Unknown="Unknown",S.Adhoc="Adhoc",S.Scheduled="Scheduled",S.Recurring="Recurring",S.Broadcast="Broadcast",S.MeetNow="MeetNow",function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(h=u.CallType||(u.CallType={})),function(e){e.Collaborative="Collaborative",e.ScreenShare="ScreenShare"}(C=u.SharingProtocol||(u.SharingProtocol={})),u.getIncomingClientAudioState=function(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getIncomingClientAudioState"),"getIncomingClientAudioState",e)},u.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.toggleIncomingClientAudio"),"toggleIncomingClientAudio",e)},u.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");r(d,g.sidePanel,g.meetingStage,g.settings,g.content),n(l(c,"meeting.getMeetingDetails"),"meeting.getMeetingDetails",e)},u.getMeetingDetailsVerbose=function(){var n,i,a;return e(this,void 0,void 0,(function*(){let e;r(d,g.sidePanel,g.meetingStage,g.settings,g.content);try{const n=!0;e=yield t(l("v2","meeting.getMeetingDetailsVerbose"),"meeting.getMeetingDetails",n)}catch(e){throw new Error(null===(n=null==e?void 0:e.errorCode)||void 0===n?void 0:n.toString())}if(((null===(i=e.details)||void 0===i?void 0:i.type)==h.GroupCall||(null===(a=e.details)||void 0===a?void 0:a.type)==h.OneOnOneCall)&&!e.details.originalCallerInfo)throw new Error(s.NOT_SUPPORTED_ON_PLATFORM.toString());return e}))},u.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");r(d,g.sidePanel,g.meetingStage,g.task),n(l(c,"meeting.getAuthenticationTokenForAnonymousUser"),"meeting.getAuthenticationTokenForAnonymousUser",e)},u.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.getLiveStreamState"),"meeting.getLiveStreamState",e)},u.requestStartLiveStreaming=function(e,t,i){if(!e)throw new Error("[request start live streaming] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.requestStartLiveStreaming"),"meeting.requestStartLiveStreaming",[t,i],e)},u.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.requestStopLiveStreaming"),"meeting.requestStopLiveStreaming",e)},u.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");r(d,g.sidePanel),i(l(c,"meeting.registerLiveStreamChangedHandler"),"meeting.liveStreamChanged",e)},u.shareAppContentToStage=function(e,t,i={sharingProtocol:C.Collaborative}){if(!e)throw new Error("[share app content to stage] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.shareAppContentToStage"),"meeting.shareAppContentToStage",[t,i],e)},u.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getAppContentStageSharingCapabilities"),"meeting.getAppContentStageSharingCapabilities",e)},u.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.stopSharingAppContentToStage"),"meeting.stopSharingAppContentToStage",e)},u.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getAppContentStageSharingState"),"meeting.getAppContentStageSharingState",e)},u.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerSpeakingStateChangeHandler"),"meeting.speakingStateChanged",e)},u.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerRaiseHandStateChangedHandler"),"meeting.raiseHandStateChanged",e)},u.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerMeetingReactionReceivedHandler"),"meeting.meetingReactionReceived",e)},u.joinMeeting=function(e){if(void 0===(null==e?void 0:e.joinWebUrl)||null===(null==e?void 0:e.joinWebUrl))return Promise.reject(new Error("Invalid joinMeetingParams"));r(d);const n={joinWebUrl:e.joinWebUrl.href,source:e.source||A.Other};return t(l("v2","meeting.joinMeeting"),"meeting.joinMeeting",n)},function(e){e.M365CalendarGridContextMenu="m365_calendar_grid_context_menu",e.M365CalendarGridPeek="m365_calendar_grid_peek",e.M365CalendarGridEventCardJoinButton="m365_calendar_grid_event_card_join_button",e.M365CalendarFormRibbonJoinButton="m365_calendar_form_ribbon_join_button",e.M365CalendarFormJoinTeamsMeetingButton="m365_calendar_form_join_teams_meeting_button",e.Other="other"}(A=u.EventActionSource||(u.EventActionSource={})),(u.appShareButton||(u.appShareButton={})).setOptions=function(e){r(d,g.sidePanel),e.contentUrl&&new URL(e.contentUrl),n(l(c,"meeting.appShareButton.setOptions"),"meeting.appShareButton.setOptions",[e])},u.requestAppAudioHandling=function(t,s){if(!s)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!t.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");r(d,g.sidePanel,g.meetingStage),t.isAppHandlingAudio?function(t,a){const o=(n,o)=>{if(n&&null!=o)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(n)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${n.errorCode} ${n.message}`);if("boolean"!=typeof o)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");const r=n=>e(this,void 0,void 0,(function*(){try{const e=yield t.micMuteStateChangedCallback(n);b(e,e.isMicMuted===n.isMicMuted?p.HostInitiated:p.AppDeclinedToChange)}catch(e){b(n,p.AppFailedToChange)}}));i(l(c,"meeting.registerMicStateChangeHandler"),"meeting.micStateChanged",r);const g=e=>{var n;null===(n=t.audioDeviceSelectionChangedCallback)||void 0===n||n.call(t,e)};i(l(c,"meeting.registerAudioDeviceSelectionChangedHandler"),"meeting.audioDeviceSelectionChanged",g),a(o)};n(l(c,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[t.isAppHandlingAudio],o)}(t,s):function(e,t){const i=(e,n)=>{if(e&&null!=n)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${e.errorCode} ${e.message}`);if("boolean"!=typeof n)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");a("meeting.micStateChanged")&&o("meeting.micStateChanged"),a("meeting.audioDeviceSelectionChanged")&&o("meeting.audioDeviceSelectionChanged"),t(n)};n(l(c,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[e.isAppHandlingAudio],i)}(t,s)},u.updateMicState=function(e){b(e,p.AppInitiated)}}(u||(u={}));export{u as meeting};

@@ -1,1 +0,1 @@

const t="2.29.0-beta.2";export{t as version};
const o="2.29.0";export{o as version};

@@ -1,1 +0,51 @@

{"name":"@microsoft/teams-js","author":"Microsoft Teams","version":"2.29.0-beta.2","description":"Microsoft Client SDK for building app for Microsoft hosts","repository":{"directory":"packages/teams-js","type":"git","url":"https://github.com/OfficeDev/microsoft-teams-library-js"},"main":"./dist/umd/MicrosoftTeams.min.js","typings":"./dist/umd/MicrosoftTeams.d.ts","module":"./dist/esm/packages/teams-js/src/index.js","type":"module","scripts":{"build":"pnpm clean && pnpm lint && pnpm build-rollup && pnpm build-webpack && pnpm docs:validate","build-rollup":"pnpm clean && rollup -c","build-webpack":"webpack","clean":"rimraf ./dist","docs":"pnpm typedoc","docs:validate":"pnpm typedoc --emit none","lint":"pnpm eslint ./src ./test --max-warnings 0 --fix --ext .ts","prettier":"prettier --write '**/*.{ts,js,css,html}'","test":"jest","test:verbose":"pnpm test -- --verbose false --silent false"},"dependencies":{"base64-js":"^1.3.1","debug":"^4.3.3"},"devDependencies":{"@types/debug":"^4.1.7"},"sideEffects":["src/internal/communication.ts","src/internal/nestedAppAuthUtils.ts","src/internal/utils.ts","src/internal/videoEffectsUtils.ts","src/private/constants.ts","src/private/interfaces.ts","src/public/constants.ts","src/public/handlers.ts","src/public/interfaces.ts"],"license":"MIT","files":["dist/**","LICENSE","README.md"]}
{
"name": "@microsoft/teams-js",
"author": "Microsoft Teams",
"version": "2.29.0",
"description": "Microsoft Client SDK for building app for Microsoft hosts",
"repository": {
"directory": "packages/teams-js",
"type": "git",
"url": "https://github.com/OfficeDev/microsoft-teams-library-js"
},
"main": "./dist/umd/MicrosoftTeams.min.js",
"typings": "./dist/umd/MicrosoftTeams.d.ts",
"module": "./dist/esm/packages/teams-js/src/index.js",
"type": "module",
"scripts": {
"build": "pnpm clean && pnpm lint && pnpm build-rollup && pnpm build-webpack && pnpm docs:validate",
"build-rollup": "pnpm clean && rollup -c",
"build-webpack": "webpack",
"clean": "rimraf ./dist",
"docs": "pnpm typedoc",
"docs:validate": "pnpm typedoc --emit none",
"lint": "pnpm eslint ./src ./test --max-warnings 0 --fix --ext .ts",
"prettier": "prettier --write '**/*.{ts,js,css,html}'",
"test": "jest",
"test:verbose": "pnpm test -- --verbose false --silent false"
},
"dependencies": {
"base64-js": "^1.3.1",
"debug": "^4.3.3"
},
"devDependencies": {
"@types/debug": "^4.1.7"
},
"sideEffects": [
"src/internal/communication.ts",
"src/internal/nestedAppAuthUtils.ts",
"src/internal/utils.ts",
"src/internal/videoEffectsUtils.ts",
"src/private/constants.ts",
"src/private/interfaces.ts",
"src/public/constants.ts",
"src/public/handlers.ts",
"src/public/interfaces.ts"
],
"license": "MIT",
"files": [
"dist/**",
"LICENSE",
"README.md"
]
}

@@ -27,3 +27,3 @@ # Microsoft Teams JavaScript client library

You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.28.0/js/MicrosoftTeams.min.js) or point your package manager at them.
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.29.0/js/MicrosoftTeams.min.js) or point your package manager at them.

@@ -49,4 +49,4 @@ ## Usage

<script
src="https://res.cdn.office.net/teams-js/2.28.0/js/MicrosoftTeams.min.js"
integrity="sha384-gT2igbByugSUPXBgDA+rtfKk4JMSCfG+3DKSivyLqF2Riv4vTLqaC/tFpySw0eIM"
src="https://res.cdn.office.net/teams-js/2.29.0/js/MicrosoftTeams.min.js"
integrity="sha384-HCj4C0CvWvv0xKWpolDpLs3Q2f8+k4AUwYACBrszhvquzHsIUz1ZB6z1KLIQTnSW"
crossorigin="anonymous"

@@ -56,3 +56,3 @@ ></script>

<!-- Microsoft Teams JavaScript API (via npm) -->
<script src="node_modules/@microsoft/teams-js@2.28.0/dist/MicrosoftTeams.min.js"></script>
<script src="node_modules/@microsoft/teams-js@2.29.0/dist/MicrosoftTeams.min.js"></script>

@@ -59,0 +59,0 @@ <!-- Microsoft Teams JavaScript API (via local) -->

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc