@microsoft/teams-js 2.48.0-beta.2 → 2.48.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.47.2/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.48.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.47.2/js/MicrosoftTeams.min.js"
49
- integrity="sha384-cHYqJ5XgsfEM71MlcRom4ptI0n2cs5QDu4M0wGB6r6xC/iROf3UjrBy7OYPC1r86"
48
+ src="https://res.cdn.office.net/teams-js/2.48.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-/Wkorl2FOOvi9PzFSf8fmiTS8SFTMOlR3mKqmOI4Rc6tra6JqJvmlssRiYqDOMjD"
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.47.2/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.48.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -53,6 +53,7 @@ export declare const enum ApiName {
53
53
  AppInitialization_NotifyFailure = "appInitialization.notifyFailure",
54
54
  AppInitialization_NotifySuccess = "appInitialization.notifySuccess",
55
55
  AppEntity_SelectAppEntity = "appEntity.selectAppEntity",
56
+ AppPerformanceMetrics_RegisterHostMemoryMetricsHandler = "appPerformanceMetrics.memoryUsageHeartbeat",
56
57
  AppInstallDialog_OpenAppInstallDialog = "appInstallDialog.openAppInstallDialog",
57
58
  AppWindow_ChildAppWindow_AddEventListener = "appWindow.childAppWindow.addEventListener",
58
59
  AppWindow_ChildAppWindow_PostMessage = "appWindow.childAppWindow.postMessage",
@@ -0,0 +1,24 @@
1
+ import { HostMemoryMetrics } from './interfaces';
2
+ /**
3
+ * @beta
4
+ * Indicates whether the app performance metrics capability is supported in the current host.
5
+ * @returns boolean to represent whether the shortcutRelay capability is supported
6
+ *
7
+ * @throws Error if {@link app.initialize} has not successfully completed
8
+ *
9
+ */
10
+ export declare function isSupported(): boolean;
11
+ /**
12
+ * This function is passed to registerHostMemoryMetricsHandler. See {@link HostMemoryMetrics} to see which metrics are passed to the handler during a certain interval of time.
13
+ */
14
+ export type HostMemoryMetricsHandler = (metrics: HostMemoryMetrics) => void;
15
+ /**
16
+ * @beta
17
+ * Registers a function to handle memory metrics heartbeat sent from the host periodically.
18
+ *
19
+ * @remarks
20
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
21
+ *
22
+ * @param handler - The handler to invoke each time memory metrics heartbeat is received from the host.
23
+ */
24
+ export declare function registerHostMemoryMetricsHandler(handler: HostMemoryMetricsHandler): void;
@@ -1,8 +1,9 @@
1
1
  export * as authentication from './authentication';
2
2
  export { ChannelType, DialogDimension, FrameContexts, HostClientType, HostName, RenderingSurfaces, TaskModuleDimension, TeamType, UserTeamRole, } from './constants';
3
- export { ActionInfo, ActionObjectType, AdaptiveCardVersion, AdaptiveCardDialogInfo, BaseActionObject, BotAdaptiveCardDialogInfo, BotUrlDialogInfo, Context, DeepLinkParameters, DialogInfo, DialogSize, EduType, ErrorCode, FileOpenPreference, FrameContext, FrameInfo, HostToAppPerformanceMetrics, LoadContext, LocaleInfo, M365ContentAction, ResumeContext, SdkError, SecondaryId, SecondaryM365ContentIdName, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, UrlDialogInfo, } from './interfaces';
3
+ export { ActionInfo, ActionObjectType, AdaptiveCardVersion, AdaptiveCardDialogInfo, BaseActionObject, BotAdaptiveCardDialogInfo, BotUrlDialogInfo, Context, DeepLinkParameters, DialogInfo, DialogSize, EduType, ErrorCode, FileOpenPreference, FrameContext, FrameInfo, HostMemoryMetrics, HostToAppFrameMemoryMetrics, HostToAppPerformanceMetrics, LoadContext, LocaleInfo, M365ContentAction, ResumeContext, SdkError, SecondaryId, SecondaryM365ContentIdName, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, UrlDialogInfo, } from './interfaces';
4
4
  export * as app from './app/app';
5
5
  export { AppId } from './appId';
6
+ export * as appPerformanceMetrics from './appPerformanceMetrics';
6
7
  export { EmailAddress } from './emailAddress';
7
8
  export * as appInstallDialog from './appInstallDialog';
8
9
  export * as barCode from './barCode';
@@ -161,6 +161,11 @@ export interface LocaleInfo {
161
161
  * @example 10:10:42 AM
162
162
  */
163
163
  longTime: string;
164
+ /**
165
+ * A string representing the timezone of the user's locale in IANA format
166
+ * @example 'America/Los_Angeles'
167
+ */
168
+ timezone?: string;
164
169
  }
165
170
  /**
166
171
  * Allowed user file open preferences
@@ -1241,3 +1246,57 @@ export interface HostToAppPerformanceMetrics {
1241
1246
  /** The time when the request was dispatched */
1242
1247
  requestStartedAt: number;
1243
1248
  }
1249
+ /**
1250
+ * Memory metrics for a specific frame within the app.
1251
+ */
1252
+ export type HostToAppFrameMemoryMetrics = {
1253
+ /**
1254
+ * The amount of RAM consumed by this frame of the app (in KB).
1255
+ */
1256
+ workingSetSizeKB: number;
1257
+ /**
1258
+ * The amount of memory allocated by this frame of the app (in KB).
1259
+ */
1260
+ commitSizeKB: number;
1261
+ /**
1262
+ * Identifies the frame by host and path, e.g. https://example.com/path/.
1263
+ */
1264
+ hostAndPath: string;
1265
+ /**
1266
+ * Identifies the frame by the process hosting its web contents.
1267
+ */
1268
+ processId: number;
1269
+ /**
1270
+ * The nesting level of this frame within the app frame. The top-level frame is 0.
1271
+ */
1272
+ treeLevel: number;
1273
+ };
1274
+ /**
1275
+ * Memory metrics provided by the host for the app.
1276
+ */
1277
+ export type HostMemoryMetrics = {
1278
+ /**
1279
+ * Indicates if the app is in a hidden state to accelerate future launches.
1280
+ */
1281
+ isCached: boolean;
1282
+ /**
1283
+ * Indicates if the app is in a preloaded state to accelerate its first launch in the session.
1284
+ */
1285
+ isPrecached: boolean;
1286
+ /**
1287
+ * Indicates whether the app is sharing its hosting process (and therefore its memory metrics) with another top-level app frame.
1288
+ */
1289
+ isSharingProcess: boolean;
1290
+ /**
1291
+ * The amount of RAM currently consumed by all frames of the app (in KB).
1292
+ */
1293
+ totalFrameWorkingSetSizeKB: number;
1294
+ /**
1295
+ * The amount of memory allocated by all frames of the app (in KB).
1296
+ */
1297
+ totalFrameCommitSizeKB: number;
1298
+ /**
1299
+ * A breakdown of the memory metrics by each frame.
1300
+ */
1301
+ frameMemoryMetrics: HostToAppFrameMemoryMetrics[];
1302
+ };
@@ -24,6 +24,7 @@ interface IRuntimeV4 extends IBaseRuntime {
24
24
  };
25
25
  readonly appEntity?: {};
26
26
  readonly appInstallDialog?: {};
27
+ readonly appPerformanceMetrics?: {};
27
28
  readonly barCode?: {};
28
29
  readonly calendar?: {};
29
30
  readonly call?: {};
@@ -1 +1 @@
1
- var o=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001"],c={validOrigins:o};export{c as default,o as validOrigins};
1
+ var o=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001"],c={validOrigins:o};export{c as default,o as validOrigins};
@@ -1 +1 @@
1
- export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as e from"./private/externalAppAuthentication.js";export{e as externalAppAuthentication};export{UserAuthenticationState}from"./private/externalAppAuthentication.js";import*as r from"./private/logs.js";export{r as logs};import*as t from"./private/conversations.js";export{t as conversations};import*as o from"./private/copilot/copilot.js";export{o as copilot};import*as p from"./private/copilot/sidePanelInterfaces.js";export{p as sidePanelInterfaces};import*as i from"./private/externalAppAuthenticationForCEA.js";export{i as externalAppAuthenticationForCEA};import*as a from"./private/externalAppCardActions.js";export{a as externalAppCardActions};import*as s from"./private/externalAppCardActionsForCEA.js";export{s as externalAppCardActionsForCEA};import*as m from"./private/externalAppCardActionsForDA.js";export{m as externalAppCardActionsForDA};import*as n from"./private/externalAppCommands.js";export{n as externalAppCommands};import*as l from"./private/files.js";export{l as files};import*as c from"./private/meetingRoom.js";export{c as meetingRoom};import*as f from"./private/messageChannels/messageChannels.js";export{f as messageChannels};import*as u from"./private/nestedAppAuth/nestedAppAuthBridge.js";export{u as nestedAppAuthBridge};import*as x from"./private/notifications.js";export{x as notifications};import*as j from"./private/otherAppStateChange.js";export{j as otherAppStateChange};import*as d from"./private/remoteCamera.js";export{d as remoteCamera};import*as g from"./private/appEntity.js";export{g as appEntity};import*as b from"./private/teams/teams.js";export{b as teams};import*as v from"./private/videoEffectsEx.js";export{v as videoEffectsEx};import*as A from"./private/hostEntity/hostEntity.js";export{A as hostEntity};import*as C from"./private/store.js";export{C as store};import*as h from"./private/widgetHosting/widgetHosting.js";export{h as widgetHosting};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,RenderingSurfaces,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,EduType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{activateChildProxyingCommunication,getCurrentFeatureFlagsState,overwriteFeatureFlagsState,setFeatureFlagsState}from"./public/featureFlags.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{ValidatedSafeString}from"./public/validatedSafeString.js";export{version}from"./public/version.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{UUID}from"./public/uuidObject.js";import*as S from"./public/liveShareHost.js";export{S as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as H from"./public/authentication.js";export{H as authentication};import*as F from"./public/app/app.js";export{F as app};import*as y from"./public/appInstallDialog.js";export{y as appInstallDialog};import*as T from"./public/barCode.js";export{T as barCode};import*as E from"./public/chat.js";export{E as chat};import*as w from"./public/clipboard.js";export{w as clipboard};import*as I from"./public/dialog/dialog.js";export{I as dialog};import*as D from"./public/nestedAppAuth.js";export{D as nestedAppAuth};import*as P from"./public/geoLocation/geoLocation.js";export{P as geoLocation};import*as B from"./public/pages/pages.js";export{B as pages};import*as k from"./public/menus.js";export{k as menus};import*as L from"./public/media.js";export{L as media};import*as U from"./public/secondaryBrowser.js";export{U as secondaryBrowser};import*as M from"./public/location.js";export{M as location};import*as O from"./public/meeting/meeting.js";export{O as meeting};import*as V from"./public/monetization.js";export{V as monetization};import*as z from"./public/calendar.js";export{z as calendar};import*as R from"./public/mail/mail.js";export{R as mail};import*as W from"./public/teamsAPIs.js";export{W as teamsCore};import*as N from"./public/people.js";export{N as people};import*as q from"./public/profile.js";export{q as profile};import*as G from"./public/videoEffects.js";export{G as videoEffects};import*as J from"./public/search.js";export{J as search};import*as K from"./public/sharing/sharing.js";export{K as sharing};import*as Q from"./public/stageView/stageView.js";export{Q as stageView};import*as X from"./public/visualMedia/visualMedia.js";export{X as visualMedia};import*as Y from"./public/webStorage.js";export{Y as webStorage};import*as Z from"./public/call.js";export{Z as call};import*as $ from"./public/appInitialization.js";export{$ as appInitialization};import*as _ from"./public/thirdPartyCloudStorage.js";export{_ as thirdPartyCloudStorage};import*as ee from"./public/settings.js";export{ee as settings};import*as re from"./public/tasks.js";export{re as tasks};import*as te from"./public/marketplace.js";export{te as marketplace};import*as oe from"./public/shortcutRelay.js";export{oe as shortcutRelay};
1
+ export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as e from"./private/externalAppAuthentication.js";export{e as externalAppAuthentication};export{UserAuthenticationState}from"./private/externalAppAuthentication.js";import*as r from"./private/logs.js";export{r as logs};import*as t from"./private/conversations.js";export{t as conversations};import*as o from"./private/copilot/copilot.js";export{o as copilot};import*as p from"./private/copilot/sidePanelInterfaces.js";export{p as sidePanelInterfaces};import*as i from"./private/externalAppAuthenticationForCEA.js";export{i as externalAppAuthenticationForCEA};import*as a from"./private/externalAppCardActions.js";export{a as externalAppCardActions};import*as s from"./private/externalAppCardActionsForCEA.js";export{s as externalAppCardActionsForCEA};import*as m from"./private/externalAppCardActionsForDA.js";export{m as externalAppCardActionsForDA};import*as n from"./private/externalAppCommands.js";export{n as externalAppCommands};import*as l from"./private/files.js";export{l as files};import*as c from"./private/meetingRoom.js";export{c as meetingRoom};import*as f from"./private/messageChannels/messageChannels.js";export{f as messageChannels};import*as u from"./private/nestedAppAuth/nestedAppAuthBridge.js";export{u as nestedAppAuthBridge};import*as x from"./private/notifications.js";export{x as notifications};import*as j from"./private/otherAppStateChange.js";export{j as otherAppStateChange};import*as d from"./private/remoteCamera.js";export{d as remoteCamera};import*as g from"./private/appEntity.js";export{g as appEntity};import*as b from"./private/teams/teams.js";export{b as teams};import*as v from"./private/videoEffectsEx.js";export{v as videoEffectsEx};import*as A from"./private/hostEntity/hostEntity.js";export{A as hostEntity};import*as C from"./private/store.js";export{C as store};import*as h from"./private/widgetHosting/widgetHosting.js";export{h as widgetHosting};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,RenderingSurfaces,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,EduType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{activateChildProxyingCommunication,getCurrentFeatureFlagsState,overwriteFeatureFlagsState,setFeatureFlagsState}from"./public/featureFlags.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{ValidatedSafeString}from"./public/validatedSafeString.js";export{version}from"./public/version.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{UUID}from"./public/uuidObject.js";import*as S from"./public/liveShareHost.js";export{S as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as H from"./public/authentication.js";export{H as authentication};import*as F from"./public/app/app.js";export{F as app};import*as y from"./public/appPerformanceMetrics.js";export{y as appPerformanceMetrics};import*as T from"./public/appInstallDialog.js";export{T as appInstallDialog};import*as E from"./public/barCode.js";export{E as barCode};import*as w from"./public/chat.js";export{w as chat};import*as I from"./public/clipboard.js";export{I as clipboard};import*as D from"./public/dialog/dialog.js";export{D as dialog};import*as P from"./public/nestedAppAuth.js";export{P as nestedAppAuth};import*as B from"./public/geoLocation/geoLocation.js";export{B as geoLocation};import*as k from"./public/pages/pages.js";export{k as pages};import*as L from"./public/menus.js";export{L as menus};import*as M from"./public/media.js";export{M as media};import*as U from"./public/secondaryBrowser.js";export{U as secondaryBrowser};import*as O from"./public/location.js";export{O as location};import*as V from"./public/meeting/meeting.js";export{V as meeting};import*as z from"./public/monetization.js";export{z as monetization};import*as R from"./public/calendar.js";export{R as calendar};import*as W from"./public/mail/mail.js";export{W as mail};import*as N from"./public/teamsAPIs.js";export{N as teamsCore};import*as q from"./public/people.js";export{q as people};import*as G from"./public/profile.js";export{G as profile};import*as J from"./public/videoEffects.js";export{J as videoEffects};import*as K from"./public/search.js";export{K as search};import*as Q from"./public/sharing/sharing.js";export{Q as sharing};import*as X from"./public/stageView/stageView.js";export{X as stageView};import*as Y from"./public/visualMedia/visualMedia.js";export{Y as visualMedia};import*as Z from"./public/webStorage.js";export{Z as webStorage};import*as $ from"./public/call.js";export{$ as call};import*as _ from"./public/appInitialization.js";export{_ as appInitialization};import*as ee from"./public/thirdPartyCloudStorage.js";export{ee as thirdPartyCloudStorage};import*as re from"./public/settings.js";export{re as settings};import*as te from"./public/tasks.js";export{te as tasks};import*as oe from"./public/marketplace.js";export{oe as marketplace};import*as pe from"./public/shortcutRelay.js";export{pe as shortcutRelay};
@@ -0,0 +1 @@
1
+ import{registerHandler as r}from"../internal/handlers.js";import{ensureInitialized as e}from"../internal/internalAPIs.js";import{getApiVersionTag as t}from"../internal/telemetry.js";import{runtime as n}from"./runtime.js";function a(){return e(n)&&!!n.supports.appPerformanceMetrics}function m(a){e(n),r(t("v2","appPerformanceMetrics.memoryUsageHeartbeat"),"appPerformanceMetrics.memoryUsageHeartbeat",a)}export{a as isSupported,m as registerHostMemoryMetricsHandler};
@@ -1 +1 @@
1
- const t="2.48.0-beta.2";export{t as version};
1
+ const o="2.48.0";export{o as version};
@@ -1020,6 +1020,7 @@ __webpack_require__.d(__webpack_exports__, {
1020
1020
  appEntity: () => (/* reexport */ appEntity_namespaceObject),
1021
1021
  appInitialization: () => (/* reexport */ appInitialization_namespaceObject),
1022
1022
  appInstallDialog: () => (/* reexport */ appInstallDialog_namespaceObject),
1023
+ appPerformanceMetrics: () => (/* reexport */ appPerformanceMetrics_namespaceObject),
1023
1024
  authentication: () => (/* reexport */ authentication_namespaceObject),
1024
1025
  barCode: () => (/* reexport */ barCode_namespaceObject),
1025
1026
  calendar: () => (/* reexport */ calendar_namespaceObject),
@@ -1703,6 +1704,14 @@ __webpack_require__.d(authentication_namespaceObject, {
1703
1704
  registerAuthenticationHandlers: () => (registerAuthenticationHandlers)
1704
1705
  });
1705
1706
 
1707
+ // NAMESPACE OBJECT: ./src/public/appPerformanceMetrics.ts
1708
+ var appPerformanceMetrics_namespaceObject = {};
1709
+ __webpack_require__.r(appPerformanceMetrics_namespaceObject);
1710
+ __webpack_require__.d(appPerformanceMetrics_namespaceObject, {
1711
+ isSupported: () => (appPerformanceMetrics_isSupported),
1712
+ registerHostMemoryMetricsHandler: () => (registerHostMemoryMetricsHandler)
1713
+ });
1714
+
1706
1715
  // NAMESPACE OBJECT: ./src/public/appInstallDialog.ts
1707
1716
  var appInstallDialog_namespaceObject = {};
1708
1717
  __webpack_require__.r(appInstallDialog_namespaceObject);
@@ -2286,7 +2295,7 @@ var ClipboardSupportedMimeType;
2286
2295
  })(ClipboardSupportedMimeType || (ClipboardSupportedMimeType = {}));
2287
2296
 
2288
2297
  ;// ./src/artifactsForCDN/validDomains.json
2289
- const validDomains_namespaceObject = /*#__PURE__*/JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001"]}');
2298
+ const validDomains_namespaceObject = /*#__PURE__*/JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001"]}');
2290
2299
  var artifactsForCDN_validDomains_namespaceObject = /*#__PURE__*/__webpack_require__.t(validDomains_namespaceObject, 2);
2291
2300
  ;// ./src/internal/constants.ts
2292
2301
 
@@ -4668,7 +4677,7 @@ function isSerializable(arg) {
4668
4677
  * @hidden
4669
4678
  * Package version.
4670
4679
  */
4671
- const version = "2.48.0-beta.2";
4680
+ const version = "2.48.0";
4672
4681
 
4673
4682
  ;// ./src/public/featureFlags.ts
4674
4683
  // All build feature flags are defined inside this object. Any build feature flag must have its own unique getter and setter function. This pattern allows for client apps to treeshake unused code and avoid including code guarded by this feature flags in the final bundle. If this property isn't desired, use the below runtime feature flags object.
@@ -14779,6 +14788,36 @@ var DataResidency;
14779
14788
  DataResidency["Other"] = "other";
14780
14789
  })(DataResidency || (DataResidency = {}));
14781
14790
 
14791
+ ;// ./src/public/appPerformanceMetrics.ts
14792
+
14793
+
14794
+
14795
+
14796
+ /**
14797
+ * @beta
14798
+ * Indicates whether the app performance metrics capability is supported in the current host.
14799
+ * @returns boolean to represent whether the shortcutRelay capability is supported
14800
+ *
14801
+ * @throws Error if {@link app.initialize} has not successfully completed
14802
+ *
14803
+ */
14804
+ function appPerformanceMetrics_isSupported() {
14805
+ return ensureInitialized(runtime) && !!runtime.supports.appPerformanceMetrics;
14806
+ }
14807
+ /**
14808
+ * @beta
14809
+ * Registers a function to handle memory metrics heartbeat sent from the host periodically.
14810
+ *
14811
+ * @remarks
14812
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
14813
+ *
14814
+ * @param handler - The handler to invoke each time memory metrics heartbeat is received from the host.
14815
+ */
14816
+ function registerHostMemoryMetricsHandler(handler) {
14817
+ ensureInitialized(runtime);
14818
+ registerHandler(getApiVersionTag("v2" /* ApiVersionNumber.V_2 */, "appPerformanceMetrics.memoryUsageHeartbeat" /* ApiName.AppPerformanceMetrics_RegisterHostMemoryMetricsHandler */), "appPerformanceMetrics.memoryUsageHeartbeat" /* ApiName.AppPerformanceMetrics_RegisterHostMemoryMetricsHandler */, handler);
14819
+ }
14820
+
14782
14821
  ;// ./src/internal/emailAddressValidation.ts
14783
14822
  function validateEmailAddress(emailString) {
14784
14823
  const emailIsEmptyOrUndefined = emailString ? emailString.length <= 0 : true;
@@ -20376,6 +20415,8 @@ const DISABLE_SHORTCUT_FORWARDING_ATTRIBUTE = 'data-disable-shortcuts-forwarding
20376
20415
 
20377
20416
 
20378
20417
 
20418
+
20419
+
20379
20420
 
20380
20421
 
20381
20422