@microsoft/teams-js 2.29.0-beta.1 → 2.29.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 CHANGED
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
24
24
 
25
25
  ### Production
26
26
 
27
- 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.
27
+ 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.
28
28
 
29
29
  ## Usage
30
30
 
@@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
45
45
  ```html
46
46
  <!-- Microsoft Teams JavaScript API (via CDN) -->
47
47
  <script
48
- src="https://res.cdn.office.net/teams-js/2.28.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-gT2igbByugSUPXBgDA+rtfKk4JMSCfG+3DKSivyLqF2Riv4vTLqaC/tFpySw0eIM"
48
+ src="https://res.cdn.office.net/teams-js/2.29.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-HCj4C0CvWvv0xKWpolDpLs3Q2f8+k4AUwYACBrszhvquzHsIUz1ZB6z1KLIQTnSW"
50
50
  crossorigin="anonymous"
51
51
  ></script>
52
52
 
53
53
  <!-- Microsoft Teams JavaScript API (via npm) -->
54
- <script src="node_modules/@microsoft/teams-js@2.28.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.29.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -1 +1 @@
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";
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{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";
@@ -0,0 +1 @@
1
+ function e(e){const n=!e||e.length<=0,o=null==e?void 0:e.indexOf("@"),t=null==e?void 0:e.indexOf(".",o);if(n||-1===o||-1===t)throw new Error("Input email address does not have the correct format.")}export{e as validateEmailAddress};
@@ -1 +1 @@
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};
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 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};
@@ -0,0 +1 @@
1
+ import{__awaiter as t}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{sendAndUnwrap as e}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{validateId as o}from"../internal/utils.js";import{FrameContexts as r,errorNotSupportedOnPlatform as s}from"../public/constants.js";import{runtime as a}from"../public/runtime.js";import{externalAppAuthentication as u}from"./externalAppAuthentication.js";const c="v2";var h;!function(h){function p(){return!(!n(a)||!a.supports.externalAppAuthenticationForCEA)}function l(t){if(t.type!==u.ActionExecuteInvokeRequestType){throw{errorCode:u.InvokeErrorCode.INTERNAL_ERROR,message:`Invalid action type ${t.type}. Action type must be "${u.ActionExecuteInvokeRequestType}"`}}}h.authenticateWithSSO=function(u,h,l){return t(this,void 0,void 0,(function*(){if(n(a,r.content),!p())throw s;o(h,new Error("conversation id is not valid."));const t=yield e(i(c,"externalAppAuthenticationForCEA.authenticateWithSSO"),"externalAppAuthenticationForCEA.authenticateWithSSO",u.toString(),h,l.claims,l.silent);if(t)throw t}))},h.authenticateWithOauth=function(u,h,l){return t(this,void 0,void 0,(function*(){if(n(a,r.content),!p())throw s;o(h,new Error("conversation id is not valid."));const t=yield e(i(c,"externalAppAuthenticationForCEA.authenticateWithOauth"),"externalAppAuthenticationForCEA.authenticateWithOauth",u.toString(),h,l.url.href,l.width,l.height,l.isExternal);if(t)throw t}))},h.authenticateAndResendRequest=function(h,A,f,m){return t(this,void 0,void 0,(function*(){if(n(a,r.content),!p())throw s;o(A,new Error("conversation id is not valid.")),l(m);const t=yield e(i(c,"externalAppAuthenticationForCEA.authenticateAndResendRequest"),"externalAppAuthenticationForCEA.authenticateAndResendRequest",h.toString(),A,m,f.url.href,f.width,f.height,f.isExternal);if(u.isActionExecuteResponse(t))return t;throw u.isInvokeError(t)?t:d}))},h.authenticateWithSSOAndResendRequest=function(h,A,f,m){return t(this,void 0,void 0,(function*(){if(n(a,r.content),!p())throw s;o(A,new Error("conversation id is not valid.")),l(m);const t=yield e(i(c,"externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest"),"externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest",h.toString(),A,m,f.claims,f.silent);if(u.isActionExecuteResponse(t))return t;throw u.isInvokeError(t)?t:d}))},h.isSupported=p;const d={errorCode:u.InvokeErrorCode.INTERNAL_ERROR,message:"No valid response received"}}(h||(h={}));export{h as externalAppAuthenticationForCEA};
@@ -1 +1 @@
1
- import{sendMessageToParentAsync as n}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{FrameContexts as r,errorNotSupportedOnPlatform as i}from"../public/constants.js";import{runtime as o}from"../public/runtime.js";import{AppId as p}from"../public/appId.js";var c;!function(c){var s;function a(){return!(!t(o)||!o.supports.externalAppCardActions)}(s=c.ActionOpenUrlType||(c.ActionOpenUrlType={})).DeepLinkDialog="DeepLinkDialog",s.DeepLinkOther="DeepLinkOther",s.DeepLinkStageView="DeepLinkStageView",s.GenericUrl="GenericUrl",c.processActionSubmit=function(c,s){if(t(o,r.content),!a())throw i;const l=new p(c);return n(e("v2","externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[l.toString(),s]).then((([n,t])=>{if(!n)throw t}))},c.processActionOpenUrl=function(c,s,l){if(t(o,r.content),!a())throw i;const m=new p(c);return n(e("v2","externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[m.toString(),s.href,l]).then((([n,t])=>{if(n)throw n;return t}))},c.isSupported=a}(c||(c={}));export{c as externalAppCardActions};
1
+ import{sendMessageToParentAsync as r}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{FrameContexts as t,errorNotSupportedOnPlatform as o}from"../public/constants.js";import{runtime as i}from"../public/runtime.js";import{AppId as p}from"../public/appId.js";var c;!function(c){var s,A;function l(){return!(!n(i)||!i.supports.externalAppCardActions)}(s=c.ActionOpenUrlType||(c.ActionOpenUrlType={})).DeepLinkDialog="DeepLinkDialog",s.DeepLinkOther="DeepLinkOther",s.DeepLinkStageView="DeepLinkStageView",s.GenericUrl="GenericUrl",(A=c.ActionOpenUrlErrorCode||(c.ActionOpenUrlErrorCode={})).INTERNAL_ERROR="INTERNAL_ERROR",A.INVALID_LINK="INVALID_LINK",A.NOT_SUPPORTED="NOT_SUPPORTED",c.processActionSubmit=function(c,s){if(n(i,t.content),!l())throw o;const A=new p(c);return r(e("v2","externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[A.toString(),s]).then((([r,n])=>{if(!r)throw n}))},c.processActionOpenUrl=function(c,s,A){if(n(i,t.content),!l())throw o;const a=new p(c);return r(e("v2","externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[a.toString(),s.href,A]).then((([r,n])=>{if(r)throw r;return n}))},c.isSupported=l}(c||(c={}));export{c as externalAppCardActions};
@@ -1 +1 @@
1
- import{__awaiter as o}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{sendMessageToParentAsync as r,sendAndUnwrap as t}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{validateId as e}from"../internal/utils.js";import{FrameContexts as s,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as c}from"../public/runtime.js";var l;!function(l){function u(){return!(!n(c)||!c.supports.externalAppCardActionsForCEA)}l.processActionOpenUrl=function(t,l,m){return o(this,void 0,void 0,(function*(){if(n(c,s.content),!u())throw p;e(l,new Error("conversation id is not valid."));const[o,a]=yield r(i("v2","externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[t,m.href,l]);if(o)throw o;return a}))},l.processActionSubmit=function(r,l,m){return o(this,void 0,void 0,(function*(){if(n(c,s.content),!u())throw p;e(l,new Error("conversation id is not valid."));const o=yield t(i("v2","externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",[r,l,m]);if(o)throw o}))},l.isSupported=u}(l||(l={}));export{l as externalAppCardActionsForCEA};
1
+ import{__awaiter as t}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{sendMessageToParentAsync as o,sendAndUnwrap as r}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{validateId as e}from"../internal/utils.js";import{FrameContexts as s,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as c}from"../public/runtime.js";var l;!function(l){function u(){return!(!n(c)||!c.supports.externalAppCardActionsForCEA)}l.processActionOpenUrl=function(r,l,m){return t(this,void 0,void 0,(function*(){if(n(c,s.content),!u())throw p;e(l,new Error("conversation id is not valid."));const[t,a]=yield o(i("v2","externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[r.toString(),l,m.href]);if(t)throw t;return a}))},l.processActionSubmit=function(o,l,m){return t(this,void 0,void 0,(function*(){if(n(c,s.content),!u())throw p;e(l,new Error("conversation id is not valid."));const t=yield r(i("v2","externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",o.toString(),l,m);if(t)throw t}))},l.isSupported=u}(l||(l={}));export{l as externalAppCardActionsForCEA};
@@ -1 +1 @@
1
- var e,i,n,t,o;!function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(e||(e={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(i||(i={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(n||(n={})),function(e){e.DeepLinkDialog="DeepLinkDialog",e.DeepLinkOther="DeepLinkOther",e.DeepLinkStageView="DeepLinkStageView",e.GenericUrl="GenericUrl"}(t||(t={})),function(e){e.INTERNAL_ERROR="INTERNAL_ERROR",e.INVALID_LINK="INVALID_LINK",e.NOT_SUPPORTED="NOT_SUPPORTED"}(o||(o={}));export{o as ActionOpenUrlErrorCode,t as ActionOpenUrlType,e as NotificationTypes,n as UserSettingTypes,i as ViewerActionTypes};
1
+ var e,t,i;!function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(e||(e={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(t||(t={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(i||(i={}));export{e as NotificationTypes,i as UserSettingTypes,t as ViewerActionTypes};
@@ -0,0 +1 @@
1
+ import{validateEmailAddress as t}from"../internal/emailAddressValidation.js";class r{constructor(r){this.val=r,t(r)}toString(){return this.val}}export{r as EmailAddress};
@@ -1 +1 @@
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};
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.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 @@
1
- const t="2.29.0-beta.1";export{t as version};
1
+ const o="2.29.0";export{o as version};