@microsoft/teams-js 2.59.0-beta.0 → 2.59.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.58.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.59.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.58.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-sMo/EOqQPa1OCup2/VBRum7oFeOS22kvs8WGDc45xK53tUVZzFR5WwFYDUYN1LO4"
48
+ src="https://res.cdn.office.net/teams-js/2.59.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-uF/e/QuPrfS8PQH8Tn/GHTrmwnGuEB7wAGqVCVj8Y39Fgwsz86rr5w4sZ1EN1ewZ"
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.58.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.59.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -78,7 +78,9 @@ export declare const enum ApiName {
78
78
  Call_StartCall = "call.startCall",
79
79
  Chat_OpenChat = "chat.openChat",
80
80
  Chat_OpenGroupChat = "chat.openGroupChat",
81
+ Clipboard_HasPermission = "clipboard.hasPermission",
81
82
  Clipboard_Read = "clipboard.read",
83
+ Clipboard_RequestPermission = "clipboard.requestPermission",
82
84
  Clipboard_Write = "clipboard.write",
83
85
  ContextualSearch_CloseContextualSearch = "contextualSearch.closeContextualSearch",
84
86
  ContextualSearch_OpenContextualSearch = "contextualSearch.openContextualSearch",
@@ -163,6 +165,8 @@ export declare const enum ApiName {
163
165
  Interactive_GetNtpTime = "interactive.getNtpTime",
164
166
  Interactive_RegisterClientId = "interactive.registerClientId",
165
167
  Interactive_SetFluidContainerId = "interactive.setFluidContainerId",
168
+ LocalNetworkAccess_HasPermission = "localNetworkAccess.hasPermission",
169
+ LocalNetworkAccess_RequestPermission = "localNetworkAccess.requestPermission",
166
170
  Location_GetLocation = "location.getLocation",
167
171
  Location_ShowLocation = "location.showLocation",
168
172
  Logs_Receive = "log.receive",
@@ -1,15 +1,12 @@
1
1
  /**
2
- * Interact with the system clipboard
2
+ * Interact with the system clipboard.
3
3
  *
4
- * @deprecated
5
- * As of TeamsJS v2.54.0, the clipboard capability is deprecated. These APIs may stop working at
6
- * any time without notice: support for this capability in Teams and other host apps may be removed
7
- * entirely and independently of a TeamsJS major release, so continued functionality is not
8
- * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
9
- * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
10
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
11
- * supported; it depends on native device permission handling that is still being enabled as a
12
- * separate effort.
4
+ * @remarks
5
+ * The host-brokered {@link read}, {@link write}, and {@link isSupported} APIs are deprecated.
6
+ * For browser-native clipboard reads, use {@link hasPermission} and {@link requestPermission}
7
+ * before calling `navigator.clipboard.read()` from a user gesture.
8
+ * The host must advertise `permissions.clipboardRead` in its runtime configuration to support
9
+ * these permission APIs. The deprecated {@link isSupported} API checks only host-brokered clipboard support.
13
10
  *
14
11
  * @beta
15
12
  * @module
@@ -23,9 +20,8 @@
23
20
  * entirely and independently of a TeamsJS major release, so continued functionality is not
24
21
  * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
25
22
  * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
26
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
27
- * supported; it depends on native device permission handling that is still being enabled as a
28
- * separate effort.
23
+ * For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
24
+ * `navigator.clipboard.read()` from a user gesture.
29
25
  *
30
26
  * @remarks
31
27
  * Note: clipboard.write only supports Text, HTML, PNG, and JPEG data format.
@@ -46,15 +42,38 @@ export declare function write(blob: Blob): Promise<void>;
46
42
  * entirely and independently of a TeamsJS major release, so continued functionality is not
47
43
  * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
48
44
  * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
49
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
50
- * supported; it depends on native device permission handling that is still being enabled as a
51
- * separate effort.
45
+ * For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
46
+ * `navigator.clipboard.read()` from a user gesture.
52
47
  *
53
48
  * @returns A promise blob which resolves to the data read from the clipboard or
54
49
  * rejects stating the reason for failure.
55
50
  * Note: Returned blob type will contain one of the MIME type `image/png`, `text/plain` or `text/html`.
56
51
  */
57
52
  export declare function read(): Promise<Blob>;
53
+ /**
54
+ * Checks whether the app has permission to read from the system clipboard.
55
+ *
56
+ * @returns A promise that resolves to `true` if clipboard-read permission has been granted,
57
+ * or `false` if permission has not been granted.
58
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
59
+ *
60
+ * @beta
61
+ */
62
+ export declare function hasPermission(): Promise<boolean>;
63
+ /**
64
+ * Requests permission to read from the system clipboard.
65
+ *
66
+ * @remarks
67
+ * The host may need to reload the app frame after the permission is first granted before
68
+ * `navigator.clipboard.read()` is available to the existing frame.
69
+ *
70
+ * @returns A promise that resolves to `true` if clipboard-read permission was granted,
71
+ * or `false` if permission was not granted.
72
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
73
+ *
74
+ * @beta
75
+ */
76
+ export declare function requestPermission(): Promise<boolean>;
58
77
  /**
59
78
  * Checks if clipboard capability is supported by the host
60
79
  * @returns boolean to represent whether the clipboard capability is supported
@@ -67,9 +86,8 @@ export declare function read(): Promise<Blob>;
67
86
  * entirely and independently of a TeamsJS major release, so continued functionality is not
68
87
  * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
69
88
  * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
70
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
71
- * supported; it depends on native device permission handling that is still being enabled as a
72
- * separate effort.
89
+ * For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
90
+ * `navigator.clipboard.read()` from a user gesture.
73
91
  *
74
92
  * @beta
75
93
  */
@@ -21,6 +21,7 @@ export * as menus from './menus';
21
21
  export * as media from './media';
22
22
  export * as secondaryBrowser from './secondaryBrowser';
23
23
  export * as location from './location';
24
+ export * as localNetworkAccess from './localNetworkAccess';
24
25
  export * as meeting from './meeting/meeting';
25
26
  export * as monetization from './monetization';
26
27
  export * as calendar from './calendar';
@@ -1028,7 +1028,23 @@ export declare enum ErrorCode {
1028
1028
  }
1029
1029
  /** @hidden */
1030
1030
  export declare enum DevicePermission {
1031
+ /**
1032
+ * Permission to read the contents of the system clipboard.
1033
+ *
1034
+ * @remarks
1035
+ * This is the app manifest and TeamsJS wire value. The browser Permissions-Policy
1036
+ * directive uses the separate `clipboard-read` spelling.
1037
+ */
1038
+ ClipboardRead = "clipboardRead",
1031
1039
  GeoLocation = "geolocation",
1040
+ /**
1041
+ * Permission to access devices on the user's local network.
1042
+ *
1043
+ * @remarks
1044
+ * This is the TeamsJS wire value. The browser Permissions-Policy directive uses the separate
1045
+ * `local-network-access` spelling.
1046
+ */
1047
+ LocalNetworkAccess = "localNetworkAccess",
1032
1048
  Media = "media"
1033
1049
  }
1034
1050
  /** @hidden */
@@ -0,0 +1,39 @@
1
+ /**
2
+ * APIs for requesting permission to access devices on the user's local network.
3
+ *
4
+ * @remarks
5
+ * The TeamsJS permission value is `localNetworkAccess`. The browser Permissions-Policy directive
6
+ * uses the separate `local-network-access` spelling.
7
+ *
8
+ * @beta
9
+ * @module
10
+ */
11
+ /**
12
+ * Checks whether the app has permission to access devices on the user's local network.
13
+ *
14
+ * @returns A promise that resolves to `true` if local network access permission has been granted,
15
+ * or `false` otherwise.
16
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
17
+ *
18
+ * @beta
19
+ */
20
+ export declare function hasPermission(): Promise<boolean>;
21
+ /**
22
+ * Requests permission to access devices on the user's local network.
23
+ *
24
+ * @returns A promise that resolves to `true` if local network access permission was granted,
25
+ * or `false` otherwise.
26
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
27
+ *
28
+ * @beta
29
+ */
30
+ export declare function requestPermission(): Promise<boolean>;
31
+ /**
32
+ * Checks whether the host supports local network access permission.
33
+ *
34
+ * @returns `true` if the host advertises local network access permission support, or `false` otherwise.
35
+ * @throws Error if {@linkcode app.initialize} has not successfully completed.
36
+ *
37
+ * @beta
38
+ */
39
+ export declare function isSupported(): boolean;
@@ -89,7 +89,10 @@ interface IRuntimeV4 extends IBaseRuntime {
89
89
  };
90
90
  readonly people?: {};
91
91
  readonly plugins?: {};
92
- readonly permissions?: {};
92
+ readonly permissions?: {
93
+ readonly clipboardRead?: {};
94
+ readonly localNetworkAccess?: {};
95
+ };
93
96
  readonly profile?: {};
94
97
  readonly remoteCamera?: {};
95
98
  readonly search?: {};
@@ -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.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate.office.com","copilot-connectors.core.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","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"],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.office.com","copilot-connectors.core.microsoft","copilotstudio.microsoft.com","copilotstudio.preview.microsoft.com","copilotstudio.preprod.microsoft.com","copilotstudio.test.microsoft.com","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","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"],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/contextualSearch.js";export{t as contextualSearch};import*as o from"./private/conversations.js";export{o as conversations};import*as p from"./private/copilot/copilot.js";export{p as copilot};import*as i from"./private/copilot/sidePanelInterfaces.js";export{i as sidePanelInterfaces};import*as a from"./private/externalAppAuthenticationForCEA.js";export{a as externalAppAuthenticationForCEA};import*as s from"./private/externalAppCardActions.js";export{s as externalAppCardActions};import*as m from"./private/externalAppCardActionsForCEA.js";export{m as externalAppCardActionsForCEA};import*as n from"./private/externalAppCardActionsForDA.js";export{n as externalAppCardActionsForDA};import*as l from"./private/externalAppCommands.js";export{l as externalAppCommands};import*as c from"./private/files.js";export{c as files};import*as f from"./private/meetingRoom.js";export{f as meetingRoom};import*as u from"./private/messageChannels/messageChannels.js";export{u as messageChannels};import*as x from"./private/nestedAppAuth/nestedAppAuthBridge.js";export{x as nestedAppAuthBridge};import*as j from"./private/notifications.js";export{j as notifications};import*as d from"./private/otherAppStateChange.js";export{d as otherAppStateChange};import*as g from"./private/plugins.js";export{g as plugins};import*as b from"./private/remoteCamera.js";export{b as remoteCamera};import*as v from"./private/appEntity.js";export{v as appEntity};import*as A from"./private/teams/teams.js";export{A as teams};import*as C from"./private/videoEffectsEx.js";export{C as videoEffectsEx};import*as h from"./private/hostEntity/hostEntity.js";export{h as hostEntity};import*as S from"./private/store.js";export{S 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 y from"./public/liveShareHost.js";export{y as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as F from"./public/authentication.js";export{F as authentication};import*as T from"./public/app/app.js";export{T as app};import*as E from"./public/appPerformanceMetrics.js";export{E as appPerformanceMetrics};import*as w from"./public/appInstallDialog.js";export{w as appInstallDialog};import*as I from"./public/barCode.js";export{I as barCode};import*as D from"./public/chat.js";export{D as chat};import*as P from"./public/clipboard.js";export{P as clipboard};import*as B from"./public/dialog/dialog.js";export{B as dialog};import*as k from"./public/nestedAppAuth.js";export{k as nestedAppAuth};import*as L from"./public/geoLocation/geoLocation.js";export{L as geoLocation};import*as M from"./public/pages/pages.js";export{M as pages};import*as U from"./public/menus.js";export{U as menus};import*as O from"./public/media.js";export{O as media};import*as R from"./public/secondaryBrowser.js";export{R as secondaryBrowser};import*as V from"./public/location.js";export{V as location};import*as z from"./public/meeting/meeting.js";export{z as meeting};import*as W from"./public/monetization.js";export{W as monetization};import*as N from"./public/calendar.js";export{N as calendar};import*as q from"./public/mail/mail.js";export{q as mail};import*as G from"./public/teamsAPIs.js";export{G as teamsCore};import*as J from"./public/people.js";export{J as people};import*as K from"./public/profile.js";export{K as profile};import*as Q from"./public/videoEffects.js";export{Q as videoEffects};import*as X from"./public/search.js";export{X as search};import*as Y from"./public/sharing/sharing.js";export{Y as sharing};import*as Z from"./public/stageView/stageView.js";export{Z as stageView};import*as $ from"./public/visualMedia/visualMedia.js";export{$ as visualMedia};import*as _ from"./public/webStorage.js";export{_ as webStorage};import*as ee from"./public/call.js";export{ee as call};import*as re from"./public/appInitialization.js";export{re as appInitialization};import*as te from"./public/thirdPartyCloudStorage.js";export{te as thirdPartyCloudStorage};import*as oe from"./public/settings.js";export{oe as settings};import*as pe from"./public/tasks.js";export{pe as tasks};import*as ie from"./public/marketplace.js";export{ie as marketplace};import*as ae from"./public/mouseRelay.js";export{ae as mouseRelay};import*as se from"./public/shortcutRelay.js";export{se 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/contextualSearch.js";export{t as contextualSearch};import*as o from"./private/conversations.js";export{o as conversations};import*as p from"./private/copilot/copilot.js";export{p as copilot};import*as i from"./private/copilot/sidePanelInterfaces.js";export{i as sidePanelInterfaces};import*as a from"./private/externalAppAuthenticationForCEA.js";export{a as externalAppAuthenticationForCEA};import*as s from"./private/externalAppCardActions.js";export{s as externalAppCardActions};import*as m from"./private/externalAppCardActionsForCEA.js";export{m as externalAppCardActionsForCEA};import*as n from"./private/externalAppCardActionsForDA.js";export{n as externalAppCardActionsForDA};import*as l from"./private/externalAppCommands.js";export{l as externalAppCommands};import*as c from"./private/files.js";export{c as files};import*as f from"./private/meetingRoom.js";export{f as meetingRoom};import*as u from"./private/messageChannels/messageChannels.js";export{u as messageChannels};import*as x from"./private/nestedAppAuth/nestedAppAuthBridge.js";export{x as nestedAppAuthBridge};import*as j from"./private/notifications.js";export{j as notifications};import*as d from"./private/otherAppStateChange.js";export{d as otherAppStateChange};import*as g from"./private/plugins.js";export{g as plugins};import*as b from"./private/remoteCamera.js";export{b as remoteCamera};import*as v from"./private/appEntity.js";export{v as appEntity};import*as A from"./private/teams/teams.js";export{A as teams};import*as C from"./private/videoEffectsEx.js";export{C as videoEffectsEx};import*as h from"./private/hostEntity/hostEntity.js";export{h as hostEntity};import*as S from"./private/store.js";export{S 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 y from"./public/liveShareHost.js";export{y as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as F from"./public/authentication.js";export{F as authentication};import*as T from"./public/app/app.js";export{T as app};import*as E from"./public/appPerformanceMetrics.js";export{E as appPerformanceMetrics};import*as w from"./public/appInstallDialog.js";export{w as appInstallDialog};import*as I from"./public/barCode.js";export{I as barCode};import*as D from"./public/chat.js";export{D as chat};import*as P from"./public/clipboard.js";export{P as clipboard};import*as k from"./public/dialog/dialog.js";export{k as dialog};import*as B from"./public/nestedAppAuth.js";export{B as nestedAppAuth};import*as L from"./public/geoLocation/geoLocation.js";export{L as geoLocation};import*as M from"./public/pages/pages.js";export{M as pages};import*as U from"./public/menus.js";export{U as menus};import*as O from"./public/media.js";export{O as media};import*as R from"./public/secondaryBrowser.js";export{R as secondaryBrowser};import*as V from"./public/location.js";export{V as location};import*as z from"./public/localNetworkAccess.js";export{z as localNetworkAccess};import*as N from"./public/meeting/meeting.js";export{N as meeting};import*as W from"./public/monetization.js";export{W as monetization};import*as q from"./public/calendar.js";export{q as calendar};import*as G from"./public/mail/mail.js";export{G as mail};import*as J from"./public/teamsAPIs.js";export{J as teamsCore};import*as K from"./public/people.js";export{K as people};import*as Q from"./public/profile.js";export{Q as profile};import*as X from"./public/videoEffects.js";export{X as videoEffects};import*as Y from"./public/search.js";export{Y as search};import*as Z from"./public/sharing/sharing.js";export{Z as sharing};import*as $ from"./public/stageView/stageView.js";export{$ as stageView};import*as _ from"./public/visualMedia/visualMedia.js";export{_ as visualMedia};import*as ee from"./public/webStorage.js";export{ee as webStorage};import*as re from"./public/call.js";export{re as call};import*as te from"./public/appInitialization.js";export{te as appInitialization};import*as oe from"./public/thirdPartyCloudStorage.js";export{oe as thirdPartyCloudStorage};import*as pe from"./public/settings.js";export{pe as settings};import*as ie from"./public/tasks.js";export{ie as tasks};import*as ae from"./public/marketplace.js";export{ae as marketplace};import*as se from"./public/mouseRelay.js";export{se as mouseRelay};import*as me from"./public/shortcutRelay.js";export{me as shortcutRelay};
@@ -1 +1 @@
1
- import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndHandleSdkError as r}from"../internal/communication.js";import{GlobalVars as e}from"../internal/globalVars.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{getBase64StringFromBlob as n,base64ToBlob as s}from"../internal/utils.js";import{FrameContexts as p,errorNotSupportedOnPlatform as a}from"./constants.js";import{ClipboardSupportedMimeType as l}from"./interfaces.js";import{runtime as m}from"./runtime.js";function c(e){return t(this,void 0,void 0,function*(){if(o(m,p.content,p.meetingStage,p.task,p.settings,p.stage,p.sidePanel),!u())throw a;if(!e.type||!Object.values(l).includes(e.type))throw new Error(`Blob type ${e.type} is not supported. Supported blob types are ${Object.values(l)}`);const t=yield n(e),s={mimeType:e.type,content:t};return r(i("v2","clipboard.write"),"clipboard.writeToClipboard",s)})}function d(){return t(this,void 0,void 0,function*(){o(m,p.content,p.meetingStage,p.task,p.settings,p.stage,p.sidePanel);const t=i("v2","clipboard.read");if(!u())throw a;const e=yield r(t,"clipboard.readFromClipboard");if("string"==typeof e){const t=JSON.parse(e);return s(t.mimeType,t.content)}return e})}function u(){return e.isFramelessWindow?!(!o(m)||!m.supports.clipboard):!!(o(m)&&navigator&&navigator.clipboard&&m.supports.clipboard)}export{u as isSupported,d as read,c as write};
1
+ import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndHandleSdkError as r}from"../internal/communication.js";import{GlobalVars as o}from"../internal/globalVars.js";import{ensureInitialized as i}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{getBase64StringFromBlob as n,base64ToBlob as s}from"../internal/utils.js";import{FrameContexts as p,errorNotSupportedOnPlatform as a}from"./constants.js";import{ClipboardSupportedMimeType as l,DevicePermission as c}from"./interfaces.js";import{runtime as m}from"./runtime.js";const d="v2";function u(o){return t(this,void 0,void 0,function*(){if(i(m,p.content,p.meetingStage,p.task,p.settings,p.stage,p.sidePanel),!g())throw a;if(!o.type||!Object.values(l).includes(o.type))throw new Error(`Blob type ${o.type} is not supported. Supported blob types are ${Object.values(l)}`);const t=yield n(o),s={mimeType:o.type,content:t};return r(e(d,"clipboard.write"),"clipboard.writeToClipboard",s)})}function f(){return t(this,void 0,void 0,function*(){i(m,p.content,p.meetingStage,p.task,p.settings,p.stage,p.sidePanel);const t=e(d,"clipboard.read");if(!g())throw a;const o=yield r(t,"clipboard.readFromClipboard");if("string"==typeof o){const t=JSON.parse(o);return s(t.mimeType,t.content)}return o})}function b(){if(i(m,p.content,p.task),!v())throw a;const t=c.ClipboardRead;return r(e(d,"clipboard.hasPermission"),"permissions.has",t)}function y(){if(i(m,p.content,p.task),!v())throw a;const t=c.ClipboardRead;return r(e(d,"clipboard.requestPermission"),"permissions.request",t)}function g(){return o.isFramelessWindow?!(!i(m)||!m.supports.clipboard):!!(i(m)&&navigator&&navigator.clipboard&&m.supports.clipboard)}function v(){var t;return i(m)&&!!(null===(t=m.supports.permissions)||void 0===t?void 0:t.clipboardRead)}export{b as hasPermission,g as isSupported,f as read,y as requestPermission,u as write};
@@ -1 +1 @@
1
- var t,n,e,E,O,R,o,T,N,_;function i(t){return void 0!==(null==t?void 0:t.errorCode)}!function(t){t.Inline="inline",t.Desktop="desktop",t.Web="web"}(t||(t={})),function(t){t.M365Content="m365content"}(n||(n={})),function(t){t.DriveId="driveId",t.GroupId="groupId",t.SiteId="siteId",t.UserId="userId"}(e||(e={})),function(t){t[t.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",t[t.INTERNAL_ERROR=500]="INTERNAL_ERROR",t[t.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",t[t.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",t[t.NETWORK_ERROR=2e3]="NETWORK_ERROR",t[t.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",t[t.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",t[t.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",t[t.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",t[t.THROTTLE=7e3]="THROTTLE",t[t.USER_ABORT=8e3]="USER_ABORT",t[t.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",t[t.OLD_PLATFORM=9e3]="OLD_PLATFORM",t[t.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",t[t.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(E||(E={})),function(t){t.GeoLocation="geolocation",t.Media="media"}(O||(O={})),function(t){t.BCAIS="bcais",t.BCWAF="bcwaf",t.BCWBF="bcwbf"}(R||(R={})),function(t){t.Faculty="faculty",t.Student="student",t.Other="other"}(o||(o={})),function(t){t.Adult="adult",t.MinorNoParentalConsentRequired="minorNoParentalConsentRequired",t.MinorWithoutParentalConsent="minorWithoutParentalConsent",t.MinorWithParentalConsent="minorWithParentalConsent",t.NotAdult="notAdult",t.NonAdult="notAdult"}(T||(T={})),function(t){t.HigherEducation="higherEducation",t.K12="k12",t.Other="other"}(N||(N={})),function(t){t.TextPlain="text/plain",t.TextHtml="text/html",t.ImagePNG="image/png",t.ImageJPEG="image/jpeg"}(_||(_={}));export{n as ActionObjectType,_ as ClipboardSupportedMimeType,R as Cohort,O as DevicePermission,N as EduType,E as ErrorCode,t as FileOpenPreference,T as LegalAgeGroupClassification,o as Persona,e as SecondaryM365ContentIdName,i as isSdkError};
1
+ var t,e,n,E,o,R,O,T,N,i;function _(t){return void 0!==(null==t?void 0:t.errorCode)}!function(t){t.Inline="inline",t.Desktop="desktop",t.Web="web"}(t||(t={})),function(t){t.M365Content="m365content"}(e||(e={})),function(t){t.DriveId="driveId",t.GroupId="groupId",t.SiteId="siteId",t.UserId="userId"}(n||(n={})),function(t){t[t.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",t[t.INTERNAL_ERROR=500]="INTERNAL_ERROR",t[t.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",t[t.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",t[t.NETWORK_ERROR=2e3]="NETWORK_ERROR",t[t.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",t[t.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",t[t.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",t[t.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",t[t.THROTTLE=7e3]="THROTTLE",t[t.USER_ABORT=8e3]="USER_ABORT",t[t.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",t[t.OLD_PLATFORM=9e3]="OLD_PLATFORM",t[t.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",t[t.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(E||(E={})),function(t){t.ClipboardRead="clipboardRead",t.GeoLocation="geolocation",t.LocalNetworkAccess="localNetworkAccess",t.Media="media"}(o||(o={})),function(t){t.BCAIS="bcais",t.BCWAF="bcwaf",t.BCWBF="bcwbf"}(R||(R={})),function(t){t.Faculty="faculty",t.Student="student",t.Other="other"}(O||(O={})),function(t){t.Adult="adult",t.MinorNoParentalConsentRequired="minorNoParentalConsentRequired",t.MinorWithoutParentalConsent="minorWithoutParentalConsent",t.MinorWithParentalConsent="minorWithParentalConsent",t.NotAdult="notAdult",t.NonAdult="notAdult"}(T||(T={})),function(t){t.HigherEducation="higherEducation",t.K12="k12",t.Other="other"}(N||(N={})),function(t){t.TextPlain="text/plain",t.TextHtml="text/html",t.ImagePNG="image/png",t.ImageJPEG="image/jpeg"}(i||(i={}));export{e as ActionObjectType,i as ClipboardSupportedMimeType,R as Cohort,o as DevicePermission,N as EduType,E as ErrorCode,t as FileOpenPreference,T as LegalAgeGroupClassification,O as Persona,n as SecondaryM365ContentIdName,_ as isSdkError};
@@ -0,0 +1 @@
1
+ import{sendAndHandleSdkError as r}from"../internal/communication.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as s}from"../internal/telemetry.js";import{FrameContexts as t,errorNotSupportedOnPlatform as e}from"./constants.js";import{DevicePermission as n}from"./interfaces.js";import{runtime as i}from"./runtime.js";function c(){if(o(i,t.content,t.task),!a())throw e;return r(s("v2","localNetworkAccess.hasPermission"),"permissions.has",n.LocalNetworkAccess)}function m(){if(o(i,t.content,t.task),!a())throw e;return r(s("v2","localNetworkAccess.requestPermission"),"permissions.request",n.LocalNetworkAccess)}function a(){var r;return o(i)&&!!(null===(r=i.supports.permissions)||void 0===r?void 0:r.localNetworkAccess)}export{c as hasPermission,a as isSupported,m as requestPermission};
@@ -1 +1 @@
1
- const t="2.59.0-beta.0";export{t as version};
1
+ const o="2.59.0";export{o as version};
@@ -1050,6 +1050,7 @@ __webpack_require__.d(__webpack_exports__, {
1050
1050
  initialize: () => (/* reexport */ publicAPIs_initialize),
1051
1051
  initializeWithFrameContext: () => (/* reexport */ publicAPIs_initializeWithFrameContext),
1052
1052
  liveShare: () => (/* reexport */ liveShareHost_namespaceObject),
1053
+ localNetworkAccess: () => (/* reexport */ localNetworkAccess_namespaceObject),
1053
1054
  location: () => (/* reexport */ location_namespaceObject),
1054
1055
  logs: () => (/* reexport */ logs_namespaceObject),
1055
1056
  mail: () => (/* reexport */ mail_namespaceObject),
@@ -1789,8 +1790,10 @@ __webpack_require__.d(chat_namespaceObject, {
1789
1790
  var clipboard_namespaceObject = {};
1790
1791
  __webpack_require__.r(clipboard_namespaceObject);
1791
1792
  __webpack_require__.d(clipboard_namespaceObject, {
1793
+ hasPermission: () => (clipboard_hasPermission),
1792
1794
  isSupported: () => (clipboard_isSupported),
1793
1795
  read: () => (read),
1796
+ requestPermission: () => (clipboard_requestPermission),
1794
1797
  write: () => (write)
1795
1798
  });
1796
1799
 
@@ -1843,6 +1846,15 @@ __webpack_require__.d(location_namespaceObject, {
1843
1846
  showLocation: () => (location_showLocation)
1844
1847
  });
1845
1848
 
1849
+ // NAMESPACE OBJECT: ./src/public/localNetworkAccess.ts
1850
+ var localNetworkAccess_namespaceObject = {};
1851
+ __webpack_require__.r(localNetworkAccess_namespaceObject);
1852
+ __webpack_require__.d(localNetworkAccess_namespaceObject, {
1853
+ hasPermission: () => (localNetworkAccess_hasPermission),
1854
+ isSupported: () => (localNetworkAccess_isSupported),
1855
+ requestPermission: () => (localNetworkAccess_requestPermission)
1856
+ });
1857
+
1846
1858
  // NAMESPACE OBJECT: ./src/public/meeting/appShareButton.ts
1847
1859
  var appShareButton_namespaceObject = {};
1848
1860
  __webpack_require__.r(appShareButton_namespaceObject);
@@ -2226,7 +2238,23 @@ var ErrorCode;
2226
2238
  /** @hidden */
2227
2239
  var DevicePermission;
2228
2240
  (function (DevicePermission) {
2241
+ /**
2242
+ * Permission to read the contents of the system clipboard.
2243
+ *
2244
+ * @remarks
2245
+ * This is the app manifest and TeamsJS wire value. The browser Permissions-Policy
2246
+ * directive uses the separate `clipboard-read` spelling.
2247
+ */
2248
+ DevicePermission["ClipboardRead"] = "clipboardRead";
2229
2249
  DevicePermission["GeoLocation"] = "geolocation";
2250
+ /**
2251
+ * Permission to access devices on the user's local network.
2252
+ *
2253
+ * @remarks
2254
+ * This is the TeamsJS wire value. The browser Permissions-Policy directive uses the separate
2255
+ * `local-network-access` spelling.
2256
+ */
2257
+ DevicePermission["LocalNetworkAccess"] = "localNetworkAccess";
2230
2258
  DevicePermission["Media"] = "media";
2231
2259
  })(DevicePermission || (DevicePermission = {}));
2232
2260
  /**
@@ -2339,7 +2367,7 @@ var ClipboardSupportedMimeType;
2339
2367
  })(ClipboardSupportedMimeType || (ClipboardSupportedMimeType = {}));
2340
2368
 
2341
2369
  ;// ./src/artifactsForCDN/validDomains.json
2342
- 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.office.com","copilot-connectors.core.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","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"]}');
2370
+ 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.office.com","copilot-connectors.core.microsoft","copilotstudio.microsoft.com","copilotstudio.preview.microsoft.com","copilotstudio.preprod.microsoft.com","copilotstudio.test.microsoft.com","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","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"]}');
2343
2371
  var artifactsForCDN_validDomains_namespaceObject = /*#__PURE__*/__webpack_require__.t(validDomains_namespaceObject, 2);
2344
2372
  ;// ./src/internal/constants.ts
2345
2373
 
@@ -4708,7 +4736,7 @@ function isSerializable(arg) {
4708
4736
  * @hidden
4709
4737
  * Package version.
4710
4738
  */
4711
- const version = "2.59.0-beta.0";
4739
+ const version = "2.59.0";
4712
4740
 
4713
4741
  ;// ./src/public/featureFlags.ts
4714
4742
  // 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.
@@ -16371,17 +16399,14 @@ function chat_isSupported() {
16371
16399
 
16372
16400
  ;// ./src/public/clipboard.ts
16373
16401
  /**
16374
- * Interact with the system clipboard
16402
+ * Interact with the system clipboard.
16375
16403
  *
16376
- * @deprecated
16377
- * As of TeamsJS v2.54.0, the clipboard capability is deprecated. These APIs may stop working at
16378
- * any time without notice: support for this capability in Teams and other host apps may be removed
16379
- * entirely and independently of a TeamsJS major release, so continued functionality is not
16380
- * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
16381
- * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
16382
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
16383
- * supported; it depends on native device permission handling that is still being enabled as a
16384
- * separate effort.
16404
+ * @remarks
16405
+ * The host-brokered {@link read}, {@link write}, and {@link isSupported} APIs are deprecated.
16406
+ * For browser-native clipboard reads, use {@link hasPermission} and {@link requestPermission}
16407
+ * before calling `navigator.clipboard.read()` from a user gesture.
16408
+ * The host must advertise `permissions.clipboardRead` in its runtime configuration to support
16409
+ * these permission APIs. The deprecated {@link isSupported} API checks only host-brokered clipboard support.
16385
16410
  *
16386
16411
  * @beta
16387
16412
  * @module
@@ -16416,9 +16441,8 @@ const clipboardTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 */;
16416
16441
  * entirely and independently of a TeamsJS major release, so continued functionality is not
16417
16442
  * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
16418
16443
  * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
16419
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
16420
- * supported; it depends on native device permission handling that is still being enabled as a
16421
- * separate effort.
16444
+ * For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
16445
+ * `navigator.clipboard.read()` from a user gesture.
16422
16446
  *
16423
16447
  * @remarks
16424
16448
  * Note: clipboard.write only supports Text, HTML, PNG, and JPEG data format.
@@ -16455,9 +16479,8 @@ function write(blob) {
16455
16479
  * entirely and independently of a TeamsJS major release, so continued functionality is not
16456
16480
  * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
16457
16481
  * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
16458
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
16459
- * supported; it depends on native device permission handling that is still being enabled as a
16460
- * separate effort.
16482
+ * For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
16483
+ * `navigator.clipboard.read()` from a user gesture.
16461
16484
  *
16462
16485
  * @returns A promise blob which resolves to the data read from the clipboard or
16463
16486
  * rejects stating the reason for failure.
@@ -16480,6 +16503,44 @@ function read() {
16480
16503
  }
16481
16504
  });
16482
16505
  }
16506
+ /**
16507
+ * Checks whether the app has permission to read from the system clipboard.
16508
+ *
16509
+ * @returns A promise that resolves to `true` if clipboard-read permission has been granted,
16510
+ * or `false` if permission has not been granted.
16511
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
16512
+ *
16513
+ * @beta
16514
+ */
16515
+ function clipboard_hasPermission() {
16516
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
16517
+ if (!clipboard_isPermissionSupported()) {
16518
+ throw errorNotSupportedOnPlatform;
16519
+ }
16520
+ const permission = DevicePermission.ClipboardRead;
16521
+ return sendAndHandleSdkError(getApiVersionTag(clipboardTelemetryVersionNumber, "clipboard.hasPermission" /* ApiName.Clipboard_HasPermission */), 'permissions.has', permission);
16522
+ }
16523
+ /**
16524
+ * Requests permission to read from the system clipboard.
16525
+ *
16526
+ * @remarks
16527
+ * The host may need to reload the app frame after the permission is first granted before
16528
+ * `navigator.clipboard.read()` is available to the existing frame.
16529
+ *
16530
+ * @returns A promise that resolves to `true` if clipboard-read permission was granted,
16531
+ * or `false` if permission was not granted.
16532
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
16533
+ *
16534
+ * @beta
16535
+ */
16536
+ function clipboard_requestPermission() {
16537
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
16538
+ if (!clipboard_isPermissionSupported()) {
16539
+ throw errorNotSupportedOnPlatform;
16540
+ }
16541
+ const permission = DevicePermission.ClipboardRead;
16542
+ return sendAndHandleSdkError(getApiVersionTag(clipboardTelemetryVersionNumber, "clipboard.requestPermission" /* ApiName.Clipboard_RequestPermission */), 'permissions.request', permission);
16543
+ }
16483
16544
  /**
16484
16545
  * Checks if clipboard capability is supported by the host
16485
16546
  * @returns boolean to represent whether the clipboard capability is supported
@@ -16492,9 +16553,8 @@ function read() {
16492
16553
  * entirely and independently of a TeamsJS major release, so continued functionality is not
16493
16554
  * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
16494
16555
  * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
16495
- * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
16496
- * supported; it depends on native device permission handling that is still being enabled as a
16497
- * separate effort.
16556
+ * For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
16557
+ * `navigator.clipboard.read()` from a user gesture.
16498
16558
  *
16499
16559
  * @beta
16500
16560
  */
@@ -16506,6 +16566,10 @@ function clipboard_isSupported() {
16506
16566
  return ensureInitialized(runtime) && navigator && navigator.clipboard && runtime.supports.clipboard ? true : false;
16507
16567
  }
16508
16568
  }
16569
+ function clipboard_isPermissionSupported() {
16570
+ var _a;
16571
+ return ensureInitialized(runtime) && !!((_a = runtime.supports.permissions) === null || _a === void 0 ? void 0 : _a.clipboardRead);
16572
+ }
16509
16573
 
16510
16574
  ;// ./src/public/nestedAppAuth.ts
16511
16575
  var nestedAppAuth_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -17103,6 +17167,72 @@ function location_isSupported() {
17103
17167
  return ensureInitialized(runtime) && runtime.supports.location ? true : false;
17104
17168
  }
17105
17169
 
17170
+ ;// ./src/public/localNetworkAccess.ts
17171
+ /**
17172
+ * APIs for requesting permission to access devices on the user's local network.
17173
+ *
17174
+ * @remarks
17175
+ * The TeamsJS permission value is `localNetworkAccess`. The browser Permissions-Policy directive
17176
+ * uses the separate `local-network-access` spelling.
17177
+ *
17178
+ * @beta
17179
+ * @module
17180
+ */
17181
+
17182
+
17183
+
17184
+
17185
+
17186
+
17187
+ /**
17188
+ * v2 APIs telemetry file: All APIs in this capability file should send API version v2 only.
17189
+ */
17190
+ const localNetworkAccessTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 */;
17191
+ /**
17192
+ * Checks whether the app has permission to access devices on the user's local network.
17193
+ *
17194
+ * @returns A promise that resolves to `true` if local network access permission has been granted,
17195
+ * or `false` otherwise.
17196
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
17197
+ *
17198
+ * @beta
17199
+ */
17200
+ function localNetworkAccess_hasPermission() {
17201
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
17202
+ if (!localNetworkAccess_isSupported()) {
17203
+ throw errorNotSupportedOnPlatform;
17204
+ }
17205
+ return sendAndHandleSdkError(getApiVersionTag(localNetworkAccessTelemetryVersionNumber, "localNetworkAccess.hasPermission" /* ApiName.LocalNetworkAccess_HasPermission */), 'permissions.has', DevicePermission.LocalNetworkAccess);
17206
+ }
17207
+ /**
17208
+ * Requests permission to access devices on the user's local network.
17209
+ *
17210
+ * @returns A promise that resolves to `true` if local network access permission was granted,
17211
+ * or `false` otherwise.
17212
+ * @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
17213
+ *
17214
+ * @beta
17215
+ */
17216
+ function localNetworkAccess_requestPermission() {
17217
+ ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
17218
+ if (!localNetworkAccess_isSupported()) {
17219
+ throw errorNotSupportedOnPlatform;
17220
+ }
17221
+ return sendAndHandleSdkError(getApiVersionTag(localNetworkAccessTelemetryVersionNumber, "localNetworkAccess.requestPermission" /* ApiName.LocalNetworkAccess_RequestPermission */), 'permissions.request', DevicePermission.LocalNetworkAccess);
17222
+ }
17223
+ /**
17224
+ * Checks whether the host supports local network access permission.
17225
+ *
17226
+ * @returns `true` if the host advertises local network access permission support, or `false` otherwise.
17227
+ * @throws Error if {@linkcode app.initialize} has not successfully completed.
17228
+ *
17229
+ * @beta
17230
+ */
17231
+ function localNetworkAccess_isSupported() {
17232
+ var _a;
17233
+ return ensureInitialized(runtime) && !!((_a = runtime.supports.permissions) === null || _a === void 0 ? void 0 : _a.localNetworkAccess);
17234
+ }
17235
+
17106
17236
  ;// ./src/public/meeting/appShareButton.ts
17107
17237
  /**
17108
17238
  * Module for functions to control behavior of the app share button
@@ -21132,6 +21262,8 @@ const DISABLE_SHORTCUT_FORWARDING_ATTRIBUTE = 'data-disable-shortcuts-forwarding
21132
21262
 
21133
21263
 
21134
21264
 
21265
+
21266
+
21135
21267
 
21136
21268
 
21137
21269