@microsoft/teams-js 2.59.0-beta.0 → 2.60.0-beta.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';
@@ -837,6 +837,14 @@ export interface DialogSize {
837
837
  * Data structure to describe dialog information needed to open a url-based dialog.
838
838
  */
839
839
  export interface UrlDialogInfo extends BaseDialogInfo {
840
+ /**
841
+ * When true, requests a dialog without a header.
842
+ *
843
+ * @internal
844
+ * Limited to Microsoft-internal use
845
+ * @protected
846
+ */
847
+ useHeaderlessDialog?: boolean;
840
848
  /**
841
849
  * The url to be rendered in the webview/iframe.
842
850
  *
@@ -865,6 +873,14 @@ export interface BotUrlDialogInfo extends UrlDialogInfo {
865
873
  * Data structure to describe dialog information
866
874
  */
867
875
  export interface DialogInfo {
876
+ /**
877
+ * When true, requests a dialog without a header.
878
+ *
879
+ * @internal
880
+ * Limited to Microsoft-internal use
881
+ * @protected
882
+ */
883
+ useHeaderlessDialog?: boolean;
868
884
  /**
869
885
  * The url to be rendered in the webview/iframe.
870
886
  *
@@ -1028,7 +1044,23 @@ export declare enum ErrorCode {
1028
1044
  }
1029
1045
  /** @hidden */
1030
1046
  export declare enum DevicePermission {
1047
+ /**
1048
+ * Permission to read the contents of the system clipboard.
1049
+ *
1050
+ * @remarks
1051
+ * This is the app manifest and TeamsJS wire value. The browser Permissions-Policy
1052
+ * directive uses the separate `clipboard-read` spelling.
1053
+ */
1054
+ ClipboardRead = "clipboardRead",
1031
1055
  GeoLocation = "geolocation",
1056
+ /**
1057
+ * Permission to access devices on the user's local network.
1058
+ *
1059
+ * @remarks
1060
+ * This is the TeamsJS wire value. The browser Permissions-Policy directive uses the separate
1061
+ * `local-network-access` spelling.
1062
+ */
1063
+ LocalNetworkAccess = "localNetworkAccess",
1032
1064
  Media = "media"
1033
1065
  }
1034
1066
  /** @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
- import{urlOpenHelper as t,urlSubmitHelper as o,dialogTelemetryVersionNumber as r}from"../../../internal/dialogHelpers.js";import{ensureInitialized as i}from"../../../internal/internalAPIs.js";import{getApiVersionTag as n}from"../../../internal/telemetry.js";import{DialogDimension as l}from"../../constants.js";import{runtime as e}from"../../runtime.js";import*as m from"./bot.js";export{m as bot};import*as s from"./parentCommunication.js";export{s as parentCommunication};function a(o,i,l){t(n(r,"dialog.url.open"),o,i,l)}function p(t,i){o(n(r,"dialog.url.submit"),t,i)}function u(){return i(e)&&void 0!==(e.supports.dialog&&e.supports.dialog.url)}function f(t){return{url:t.url,height:t.size?t.size.height:l.Small,width:t.size?t.size.width:l.Small,title:t.title,fallbackUrl:t.fallbackUrl}}function c(t){const o=f(t);return o.completionBotId=t.completionBotId,o}export{c as getDialogInfoFromBotUrlDialogInfo,f as getDialogInfoFromUrlDialogInfo,u as isSupported,a as open,p as submit};
1
+ import{urlOpenHelper as t,urlSubmitHelper as o,dialogTelemetryVersionNumber as i}from"../../../internal/dialogHelpers.js";import{ensureInitialized as r}from"../../../internal/internalAPIs.js";import{getApiVersionTag as e}from"../../../internal/telemetry.js";import{DialogDimension as l}from"../../constants.js";import{runtime as s}from"../../runtime.js";import*as n from"./bot.js";export{n as bot};import*as a from"./parentCommunication.js";export{a as parentCommunication};function m(o,r,l){t(e(i,"dialog.url.open"),o,r,l)}function u(t,r){o(e(i,"dialog.url.submit"),t,r)}function p(){return r(s)&&void 0!==(s.supports.dialog&&s.supports.dialog.url)}function d(t){return Object.assign({url:t.url,height:t.size?t.size.height:l.Small,width:t.size?t.size.width:l.Small,title:t.title,fallbackUrl:t.fallbackUrl},void 0!==t.useHeaderlessDialog?{useHeaderlessDialog:t.useHeaderlessDialog}:{})}function f(t){const o=d(t);return o.completionBotId=t.completionBotId,o}export{f as getDialogInfoFromBotUrlDialogInfo,d as getDialogInfoFromUrlDialogInfo,p as isSupported,m as open,u as submit};
@@ -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 t="2.60.0-beta.0";export{t as version};