@microsoft/teams-js 2.31.0-beta.0 → 2.31.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +2 -2
- package/dist/esm/packages/teams-js/dts/public/{app.d.ts → app/app.d.ts} +13 -44
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +40 -0
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +26 -28
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +69 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +23 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +29 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +60 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +67 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +27 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +20 -18
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +12 -1
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +134 -136
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +72 -74
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +79 -81
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +314 -316
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +425 -427
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +164 -166
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +48 -50
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +9 -11
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +61 -63
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +76 -86
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +25 -27
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +52 -54
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +74 -76
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +96 -98
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/dialogHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -0
- package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/chat.js +1 -1
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
- package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -1
- package/dist/esm/packages/teams-js/src/public/location.js +1 -1
- package/dist/esm/packages/teams-js/src/public/mail.js +1 -1
- package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -1
- package/dist/esm/packages/teams-js/src/public/media.js +1 -1
- package/dist/esm/packages/teams-js/src/public/menus.js +1 -1
- package/dist/esm/packages/teams-js/src/public/monetization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -1
- package/dist/esm/packages/teams-js/src/public/people.js +1 -1
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/search.js +1 -1
- package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -1
- package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
- package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
- package/dist/umd/MicrosoftTeams.d.ts +2219 -2022
- package/dist/umd/MicrosoftTeams.js +2397 -2244
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/packages/teams-js/dts/public/dialog.d.ts +0 -286
- package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +0 -100
- package/dist/esm/packages/teams-js/src/public/app.js +0 -1
- package/dist/esm/packages/teams-js/src/public/dialog.js +0 -1
- package/dist/esm/packages/teams-js/src/public/geoLocation.js +0 -1
@@ -4,116 +4,114 @@ import { SdkError } from './interfaces';
|
|
4
4
|
* actions like drag and drop to compose
|
5
5
|
* @beta
|
6
6
|
*/
|
7
|
-
|
7
|
+
/**
|
8
|
+
* Interface to assemble file chunks
|
9
|
+
* @beta
|
10
|
+
*/
|
11
|
+
export interface AssembleAttachment {
|
12
|
+
/** A number representing the sequence of the attachment in the file chunks. */
|
13
|
+
sequence: number;
|
14
|
+
/** A Blob object representing the data of the file chunks. */
|
15
|
+
file: Blob;
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* Object used to represent a file
|
19
|
+
* @beta
|
20
|
+
*
|
21
|
+
*/
|
22
|
+
export interface FilesFor3PStorage extends Blob {
|
8
23
|
/**
|
9
|
-
*
|
10
|
-
* @beta
|
24
|
+
* A number that represents the number of milliseconds since the Unix epoch
|
11
25
|
*/
|
12
|
-
|
13
|
-
/** A number representing the sequence of the attachment in the file chunks. */
|
14
|
-
sequence: number;
|
15
|
-
/** A Blob object representing the data of the file chunks. */
|
16
|
-
file: Blob;
|
17
|
-
}
|
26
|
+
lastModified: number;
|
18
27
|
/**
|
19
|
-
*
|
20
|
-
* @beta
|
21
|
-
*
|
28
|
+
* Name of the file
|
22
29
|
*/
|
23
|
-
|
24
|
-
/**
|
25
|
-
* A number that represents the number of milliseconds since the Unix epoch
|
26
|
-
*/
|
27
|
-
lastModified: number;
|
28
|
-
/**
|
29
|
-
* Name of the file
|
30
|
-
*/
|
31
|
-
name: string;
|
32
|
-
/**
|
33
|
-
* file type
|
34
|
-
*/
|
35
|
-
type: string;
|
36
|
-
/**
|
37
|
-
* A string containing the path of the file relative to the ancestor directory the user selected
|
38
|
-
*/
|
39
|
-
webkitRelativePath?: string;
|
40
|
-
}
|
30
|
+
name: string;
|
41
31
|
/**
|
42
|
-
*
|
43
|
-
* @beta
|
32
|
+
* file type
|
44
33
|
*/
|
45
|
-
|
46
|
-
/**
|
47
|
-
* Base 64 data for the requested uri
|
48
|
-
*/
|
49
|
-
chunk: string;
|
50
|
-
/**
|
51
|
-
* chunk sequence number
|
52
|
-
*/
|
53
|
-
chunkSequence: number;
|
54
|
-
/**
|
55
|
-
* Indicates whether this chunk is the final segment of a file
|
56
|
-
*/
|
57
|
-
endOfFile: boolean;
|
58
|
-
}
|
34
|
+
type: string;
|
59
35
|
/**
|
60
|
-
*
|
61
|
-
* @beta
|
36
|
+
* A string containing the path of the file relative to the ancestor directory the user selected
|
62
37
|
*/
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
*/
|
71
|
-
fileChunk: FileChunk;
|
72
|
-
/**
|
73
|
-
* File index of the file for which chunk data is getting recieved
|
74
|
-
*/
|
75
|
-
fileIndex: number;
|
76
|
-
/**
|
77
|
-
* File type/MIME type which is getting recieved
|
78
|
-
*/
|
79
|
-
fileType: string;
|
80
|
-
/**
|
81
|
-
* Indicates whether this file is the last one in a sequence.
|
82
|
-
*/
|
83
|
-
isLastFile: boolean;
|
84
|
-
/**
|
85
|
-
* The name of the file.
|
86
|
-
*/
|
87
|
-
fileName: string;
|
88
|
-
}
|
38
|
+
webkitRelativePath?: string;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* File chunks an output of getDragAndDropFiles API from platform
|
42
|
+
* @beta
|
43
|
+
*/
|
44
|
+
export interface FileChunk {
|
89
45
|
/**
|
90
|
-
*
|
91
|
-
* @beta
|
46
|
+
* Base 64 data for the requested uri
|
92
47
|
*/
|
93
|
-
|
94
|
-
/**
|
95
|
-
* Definition of the callback which is received from third party app when calling {@link thirdPartyCloudStorage.getDragAndDropFiles}
|
96
|
-
* An array of drag and dropped files {@link thirdPartyCloudStorage.FilesFor3PStorage}
|
97
|
-
* Error encountered during the API call {@link SdkError}
|
98
|
-
*/
|
99
|
-
(files: FilesFor3PStorage[], error?: SdkError): void;
|
100
|
-
}
|
48
|
+
chunk: string;
|
101
49
|
/**
|
102
|
-
*
|
103
|
-
*
|
104
|
-
* @param {string} dragAndDropInput - unique id which is a combination of replyToId + threadId of teams chat and channel.
|
105
|
-
* Both replyToId and threadId can be fetched from application context.
|
106
|
-
* @param {DragAndDropFileCallback} dragAndDropFileCallback - callback
|
107
|
-
* A callback function to handle the result of the operation
|
108
|
-
* @beta
|
50
|
+
* chunk sequence number
|
109
51
|
*/
|
110
|
-
|
52
|
+
chunkSequence: number;
|
111
53
|
/**
|
112
|
-
*
|
113
|
-
* @returns boolean to represent whether the thirdPartyCloudStorage capability is supported
|
114
|
-
*
|
115
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
116
|
-
* @beta
|
54
|
+
* Indicates whether this chunk is the final segment of a file
|
117
55
|
*/
|
118
|
-
|
56
|
+
endOfFile: boolean;
|
119
57
|
}
|
58
|
+
/**
|
59
|
+
* Output of getDragAndDropFiles API from platform
|
60
|
+
* @beta
|
61
|
+
*/
|
62
|
+
export interface FileResult {
|
63
|
+
/**
|
64
|
+
* Error encountered in getDragAndDropFiles API
|
65
|
+
*/
|
66
|
+
error?: SdkError;
|
67
|
+
/**
|
68
|
+
* File chunk which will be assemebled and converted into a blob
|
69
|
+
*/
|
70
|
+
fileChunk: FileChunk;
|
71
|
+
/**
|
72
|
+
* File index of the file for which chunk data is getting recieved
|
73
|
+
*/
|
74
|
+
fileIndex: number;
|
75
|
+
/**
|
76
|
+
* File type/MIME type which is getting recieved
|
77
|
+
*/
|
78
|
+
fileType: string;
|
79
|
+
/**
|
80
|
+
* Indicates whether this file is the last one in a sequence.
|
81
|
+
*/
|
82
|
+
isLastFile: boolean;
|
83
|
+
/**
|
84
|
+
* The name of the file.
|
85
|
+
*/
|
86
|
+
fileName: string;
|
87
|
+
}
|
88
|
+
/**
|
89
|
+
* Defines the callback function received from Third Party App
|
90
|
+
* @beta
|
91
|
+
*/
|
92
|
+
export interface DragAndDropFileCallback {
|
93
|
+
/**
|
94
|
+
* Definition of the callback which is received from third party app when calling {@link thirdPartyCloudStorage.getDragAndDropFiles}
|
95
|
+
* An array of drag and dropped files {@link thirdPartyCloudStorage.FilesFor3PStorage}
|
96
|
+
* Error encountered during the API call {@link SdkError}
|
97
|
+
*/
|
98
|
+
(files: FilesFor3PStorage[], error?: SdkError): void;
|
99
|
+
}
|
100
|
+
/**
|
101
|
+
* Get drag-and-drop files using a callback.
|
102
|
+
*
|
103
|
+
* @param {string} dragAndDropInput - unique id which is a combination of replyToId + threadId of teams chat and channel.
|
104
|
+
* Both replyToId and threadId can be fetched from application context.
|
105
|
+
* @param {DragAndDropFileCallback} dragAndDropFileCallback - callback
|
106
|
+
* A callback function to handle the result of the operation
|
107
|
+
* @beta
|
108
|
+
*/
|
109
|
+
export declare function getDragAndDropFiles(dragAndDropInput: string, dragAndDropFileCallback: DragAndDropFileCallback): void;
|
110
|
+
/**
|
111
|
+
* Checks if the thirdPartyCloudStorage capability is supported by the host
|
112
|
+
* @returns boolean to represent whether the thirdPartyCloudStorage capability is supported
|
113
|
+
*
|
114
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
115
|
+
* @beta
|
116
|
+
*/
|
117
|
+
export declare function isSupported(): boolean;
|
@@ -1 +1 @@
|
|
1
|
-
export{logs}from"./private/logs.js";export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";export{conversations}from"./private/conversations.js";export{copilot}from"./private/copilot.js";export{externalAppAuthentication}from"./private/externalAppAuthentication.js";export{externalAppAuthenticationForCEA}from"./private/externalAppAuthenticationForCEA.js";export{externalAppCardActions}from"./private/externalAppCardActions.js";export{externalAppCardActionsForCEA}from"./private/externalAppCardActionsForCEA.js";export{externalAppCommands}from"./private/externalAppCommands.js";export{files}from"./private/files.js";export{meetingRoom}from"./private/meetingRoom.js";export{messageChannels}from"./private/messageChannels.js";export{notifications}from"./private/notifications.js";export{otherAppStateChange}from"./private/otherAppStateChange.js";export{remoteCamera}from"./private/remoteCamera.js";export{appEntity}from"./private/appEntity.js";export{teams}from"./private/teams.js";export{videoEffectsEx}from"./private/videoEffectsEx.js";export{hostEntity}from"./private/hostEntity.js";export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{
|
1
|
+
export{logs}from"./private/logs.js";export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";export{conversations}from"./private/conversations.js";export{copilot}from"./private/copilot.js";export{externalAppAuthentication}from"./private/externalAppAuthentication.js";export{externalAppAuthenticationForCEA}from"./private/externalAppAuthenticationForCEA.js";export{externalAppCardActions}from"./private/externalAppCardActions.js";export{externalAppCardActionsForCEA}from"./private/externalAppCardActionsForCEA.js";export{externalAppCommands}from"./private/externalAppCommands.js";export{files}from"./private/files.js";export{meetingRoom}from"./private/meetingRoom.js";export{messageChannels}from"./private/messageChannels.js";export{notifications}from"./private/notifications.js";export{otherAppStateChange}from"./private/otherAppStateChange.js";export{remoteCamera}from"./private/remoteCamera.js";export{appEntity}from"./private/appEntity.js";export{teams}from"./private/teams.js";export{videoEffectsEx}from"./private/videoEffectsEx.js";export{hostEntity}from"./private/hostEntity.js";export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{pages}from"./public/pages.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{meeting}from"./public/meeting.js";export{profile}from"./public/profile.js";export{videoEffects}from"./public/videoEffects.js";export{sharing}from"./public/sharing.js";export{stageView}from"./public/stageView.js";export{version}from"./public/version.js";export{visualMedia}from"./public/visualMedia.js";export{webStorage}from"./public/webStorage.js";export{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";import*as e from"./public/liveShareHost.js";export{e as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as r from"./public/authentication.js";export{r as authentication};import*as t from"./public/app/app.js";export{t as app};import*as o from"./public/appInstallDialog.js";export{o as appInstallDialog};import*as p from"./public/barCode.js";export{p as barCode};import*as i from"./public/chat.js";export{i as chat};import*as a from"./public/clipboard.js";export{a as clipboard};import*as s from"./public/dialog/dialog.js";export{s as dialog};import*as n from"./public/nestedAppAuth.js";export{n as nestedAppAuth};import*as m from"./public/geoLocation/geoLocation.js";export{m as geoLocation};import*as l from"./public/menus.js";export{l as menus};import*as c from"./public/media.js";export{c as media};import*as f from"./public/secondaryBrowser.js";export{f as secondaryBrowser};import*as x from"./public/location.js";export{x as location};import*as u from"./public/monetization.js";export{u as monetization};import*as j from"./public/calendar.js";export{j as calendar};import*as d from"./public/mail.js";export{d as mail};import*as b from"./public/teamsAPIs.js";export{b as teamsCore};import*as g from"./public/people.js";export{g as people};import*as v from"./public/search.js";export{v as search};import*as A from"./public/call.js";export{A as call};import*as C from"./public/appInitialization.js";export{C as appInitialization};import*as h from"./public/thirdPartyCloudStorage.js";export{h as thirdPartyCloudStorage};import*as E from"./public/settings.js";export{E as settings};import*as H from"./public/tasks.js";export{H as tasks};import*as y from"./public/marketplace.js";export{y as marketplace};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendMessageToParent as i,sendAndHandleStatusAndReason as e,initializeCommunication as t}from"./communication.js";import{defaultSDKVersionForCompatCheck as n}from"./constants.js";import{GlobalVars as o}from"./globalVars.js";import{registerOnThemeChangeHandler as r,initializeHandlers as s}from"./handlers.js";import{ensureInitializeCalled as a,ensureInitialized as l,processAdditionalValidOrigins as
|
1
|
+
import{sendMessageToParent as i,sendAndHandleStatusAndReason as e,initializeCommunication as t}from"./communication.js";import{defaultSDKVersionForCompatCheck as n}from"./constants.js";import{GlobalVars as o}from"./globalVars.js";import{registerOnThemeChangeHandler as r,initializeHandlers as s}from"./handlers.js";import{ensureInitializeCalled as a,ensureInitialized as l,processAdditionalValidOrigins as p}from"./internalAPIs.js";import{getLogger as m}from"./telemetry.js";import{isNullOrUndefined as c}from"./typeCheckUtilities.js";import{inServerSideRenderingEnvironment as u,runWithTimeout as f,compareSDKVersions as d}from"./utils.js";import{Messages as g}from"../public/app/app.js";import{initialize as j}from"../public/authentication.js";import{FrameContexts as S}from"../public/constants.js";import{initialize as z}from"../public/dialog/dialog.js";import{initialize as w}from"../public/menus.js";import{pages as b}from"../public/pages.js";import{runtime as h,applyRuntimeConfig as y,generateVersionBasedTeamsRuntimeConfig as v,mapTeamsVersionToSupportedCapabilities as x,versionAndPlatformAgnosticTeamsRuntimeConfig as C}from"../public/runtime.js";import{version as P}from"../public/version.js";const D=m("app");function V(i,e){if(u()){return D.extend("initialize")("window object undefined at initialization"),Promise.resolve()}return f((()=>function(i,e){return new Promise((r=>{o.initializeCalled||(o.initializeCalled=!0,s(),o.initializePromise=t(e,i).then((({context:i,clientType:e,runtimeConfig:t,clientSupportedSDKVersion:r=n})=>{o.frameContext=i,o.hostClientType=e,o.clientSupportedSDKVersion=r;try{N("Parsing %s",t);const i=JSON.parse(t);if(N("Checking if %o is a valid runtime object",null!=i?i:"null"),!i||!i.apiVersion)throw new Error("Received runtime config is invalid");t&&y(i)}catch(i){if(!(i instanceof SyntaxError))throw i;try{N("Attempting to parse %s as an SDK version",t),isNaN(d(t,n))||(o.clientSupportedSDKVersion=t);const i=JSON.parse(r);if(N("givenRuntimeConfig parsed to %o",null!=i?i:"null"),!i)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");y(i)}catch(i){if(!(i instanceof SyntaxError))throw i;y(v(o.clientSupportedSDKVersion,C,x))}}o.initializeCompleted=!0})),j(),w(),b.config.initialize(),z()),Array.isArray(e)&&p(e),void 0!==o.initializePromise?r(o.initializePromise):N("GlobalVars.initializePromise is unexpectedly undefined")}))}(i,e)),5e3,new Error("SDK initialization timed out."))}function E(e){i(e,g.AppLoaded,[P])}function K(e,t){i(e,g.ExpectedFailure,[t.reason,t.message])}function A(e,t){i(e,g.Failure,[t.reason,t.message])}function k(e){i(e,g.Success,[P])}const N=D.extend("initializeHelper");function R(i,e){!c(e)&&a(),r(i,e)}function F(i,t){return new Promise((n=>{l(h,S.content,S.sidePanel,S.settings,S.task,S.stage,S.meetingStage),n(e(i,"executeDeepLink",t))}))}export{V as appInitializeHelper,E as notifyAppLoadedHelper,K as notifyExpectedFailureHelper,A as notifyFailureHelper,k as notifySuccessHelper,F as openLinkHelper,R as registerOnThemeChangeHandlerHelper};
|
@@ -1 +1 @@
|
|
1
|
-
import{teamsDeepLinkProtocol as n,teamsDeepLinkHost as o}from"./constants.js";import{teamsDeepLinkUsersUrlParameterName as e,
|
1
|
+
import{teamsDeepLinkProtocol as n,teamsDeepLinkHost as o}from"./constants.js";import{teamsDeepLinkUsersUrlParameterName as e,teamsDeepLinkUrlPathForChat as t,teamsDeepLinkUrlPathForCall as $,teamsDeepLinkAttendeesUrlParameterName as i,teamsDeepLinkUrlPathForCalendar as r,teamsDeepLinkUrlPathForAppInstall as d,teamsDeepLinkTopicUrlParameterName as p,teamsDeepLinkMessageUrlParameterName as c,teamsDeepLinkWithVideoUrlParameterName as a,teamsDeepLinkSourceUrlParameterName as m,teamsDeepLinkStartTimeUrlParameterName as s,teamsDeepLinkEndTimeUrlParameterName as C,teamsDeepLinkSubjectUrlParameterName as I,teamsDeepLinkContentUrlParameterName as l}from"./deepLinkConstants.js";function u($,i,r){if(0===$.length)throw new Error("Must have at least one user when creating a chat deep link");const d=`${e}=`+$.map((n=>encodeURIComponent(n))).join(","),a=void 0===i?"":`&${p}=${encodeURIComponent(i)}`,m=void 0===r?"":`&${c}=${encodeURIComponent(r)}`;return`${n}://${o}${t}?${d}${a}${m}`}function R(t,i,r){if(0===t.length)throw new Error("Must have at least one target when creating a call deep link");const d=`${e}=`+t.map((n=>encodeURIComponent(n))).join(","),p=void 0===i?"":`&${a}=${encodeURIComponent(i)}`,c=void 0===r?"":`&${m}=${encodeURIComponent(r)}`;return`${n}://${o}${$}?${d}${p}${c}`}function U(e,t,$,d,p){const c=void 0===e?"":`${i}=`+e.map((n=>encodeURIComponent(n))).join(","),a=void 0===t?"":`&${s}=${encodeURIComponent(t)}`,m=void 0===$?"":`&${C}=${encodeURIComponent($)}`,u=void 0===d?"":`&${I}=${encodeURIComponent(d)}`,R=void 0===p?"":`&${l}=${encodeURIComponent(p)}`;return`${n}://${o}${r}?${c}${a}${m}${u}${R}`}function h(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return`${n}://${o}${d}${encodeURIComponent(e)}`}export{h as createTeamsDeepLinkForAppInstallDialog,U as createTeamsDeepLinkForCalendar,R as createTeamsDeepLinkForCall,u as createTeamsDeepLinkForChat};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ensureInitialized as t}from"./internalAPIs.js";import{FrameContexts as e,errorNotSupportedOnPlatform as r,DialogDimension as o}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";import{sendMessageToParent as i}from"./communication.js";import{GlobalVars as a}from"./globalVars.js";import{registerHandler as n,removeHandler as l}from"./handlers.js";import{getApiVersionTag as m}from"./telemetry.js";import{isSupported as u}from"../public/dialog/update.js";import{isSupported as c,getDialogInfoFromUrlDialogInfo as p,getDialogInfoFromBotUrlDialogInfo as f}from"../public/dialog/url/url.js";import{isSupported as g}from"../public/dialog/url/bot.js";const d="v2";function h(o,a){if(t(s,e.content,e.sidePanel,e.task,e.meetingStage),!u())throw r;i(o,"tasks.updateTask",[a])}function k(o,a,u,f){if(t(s,e.content,e.sidePanel,e.meetingStage),!c())throw r;f&&n(m(d,"dialog.url.registerMessageForParentHandler"),"messageForParent",f);const g=p(a);i(o,"tasks.startTask",[g],((t,e)=>{null==u||u({err:t,result:e}),l("messageForParent")}))}function j(o,a,u,c){if(t(s,e.content,e.sidePanel,e.meetingStage),!g())throw r;c&&n(m(d,"dialog.url.bot.registerMessageForParentHandler"),"messageForParent",c);const p=f(a);i(o,"tasks.startTask",[p],((t,e)=>{null==u||u({err:t,result:e}),l("messageForParent")}))}function P(o,a,n){if(t(s,e.task),!c())throw r;i(o,"tasks.completeTask",[a,n?Array.isArray(n)?n:[n]:[]])}function b(t){return{card:t.card,height:t.size?t.size.height:o.Small,width:t.size?t.size.width:o.Small,title:t.title}}function F(t){const e=b(t);return e.completionBotId=t.completionBotId,e}const S=[];function w(t){a.frameContext&&(a.frameContext===e.task?S.push(t):l("messageForChild"))}export{j as botUrlOpenHelper,d as dialogTelemetryVersionNumber,b as getDialogInfoFromAdaptiveCardDialogInfo,F as getDialogInfoFromBotAdaptiveCardDialogInfo,w as handleDialogMessage,S as storedMessages,h as updateResizeHelper,k as urlOpenHelper,P as urlSubmitHelper};
|
@@ -1 +1 @@
|
|
1
|
-
import{__rest as r}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{
|
1
|
+
import{__rest as r}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{CartStatus as e}from"../public/marketplace.js";import t from"../../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/validate.js";function o(r){try{return r.cartItems=s(r.cartItems),r}catch(r){throw new Error("Error deserializing cart")}}function s(r){return r.map((r=>{if(r.imageURL){const e=new URL(r.imageURL);r.imageURL=e}return r.accessories&&(r.accessories=s(r.accessories)),r}))}const i=e=>{try{return e.map((e=>{const{imageURL:t,accessories:o}=e,s=r(e,["imageURL","accessories"]),n=Object.assign({},s);return t&&(n.imageURL=t.href),o&&(n.accessories=i(o)),n}))}catch(r){throw new Error("Error serializing cart items")}};function n(r){if(!Array.isArray(r)||0===r.length)throw new Error("cartItems must be a non-empty array");for(const e of r)c(e),a(e.accessories)}function a(r){if(null!=r){if(!Array.isArray(r)||0===r.length)throw new Error("CartItem.accessories must be a non-empty array");for(const e of r){if(e.accessories)throw new Error("Item in CartItem.accessories cannot have accessories");c(e)}}}function c(r){if(!r.id)throw new Error("cartItem.id must not be empty");if(!r.name)throw new Error("cartItem.name must not be empty");u(r.price),f(r.quantity)}function m(r){if(null!=r){if(!r)throw new Error("id must not be empty");if(!1===t(r))throw new Error("id must be a valid UUID")}}function u(r){if("number"!=typeof r||r<0)throw new Error(`price ${r} must be a number not less than 0`);if(parseFloat(r.toFixed(3))!==r)throw new Error(`price ${r} must have at most 3 decimal places`)}function f(r){if("number"!=typeof r||r<=0||parseInt(r.toString())!==r)throw new Error(`quantity ${r} must be an integer greater than 0`)}function p(r){if(!Object.values(e).includes(r))throw new Error(`cartStatus ${r} is not valid`)}export{o as deserializeCart,s as deserializeCartItems,i as serializeCartItems,a as validateAccessoryItems,c as validateBasicCartItem,n as validateCartItems,p as validateCartStatus,u as validatePrice,f as validateQuantity,m as validateUuid};
|
@@ -1 +1 @@
|
|
1
|
-
import{
|
1
|
+
import{MediaType as e,FileFormat as n}from"../public/media.js";import{videoAndImageMediaAPISupportVersion as t,nonFullScreenVideoModeAPISupportVersion as r,imageOutputFormatsAPISupportVersion as l}from"./constants.js";import{throwExceptionIfMobileApiIsNotSupported as o}from"./internalAPIs.js";function u(e,n){if(null==e||null==n||e.length<=0)return null;let t=null,r=1;return e.sort(((e,n)=>e.sequence>n.sequence?1:-1)),e.forEach((e=>{e.sequence==r&&(t=t?new Blob([t,e.file],{type:n}):new Blob([e.file],{type:n}),r++)})),t}function i(e,n){if(null==e||null==n)return null;const t=atob(e.chunk),r=new Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);const l=new Uint8Array(r),o=new Blob([l],{type:n});return{sequence:e.chunkSequence,file:o}}function c(e){s(e)?o(t):p(e)?o(r):d(e)&&o(l)}function a(n){return!(n.mediaType!=e.Video||!n.videoProps||!n.videoProps.videoController)}function f(e){return!(null==e||e.maxMediaCount>10)}function d(n){var t;return!((null==n?void 0:n.mediaType)!=e.Image||!(null===(t=null==n?void 0:n.imageProps)||void 0===t?void 0:t.imageOutputFormats))}function s(n){return!(!n||n.mediaType!=e.VideoAndImage&&!n.videoAndImageProps)}function p(n){return!(!n||n.mediaType!=e.Video||!n.videoProps||n.videoProps.isFullScreenMode)}function m(e,t,r){return null!=e&&null!=t&&t==n.ID&&null!=r}function I(e){return!(null==e||e.length<=0||e.length>10)}function v(e){return!e||!(null===e.timeOutIntervalInSec||null!=e.timeOutIntervalInSec&&e.timeOutIntervalInSec<=0||null!=e.timeOutIntervalInSec&&e.timeOutIntervalInSec>60)}function g(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}export{u as createFile,i as decodeAttachment,d as isMediaCallForImageOutputFormats,p as isMediaCallForNonFullScreenVideoMode,s as isMediaCallForVideoAndImageInputs,a as isVideoControllerRegistered,c as throwExceptionIfMediaCallIsNotSupportedOnMobile,m as validateGetMediaInputs,g as validatePeoplePickerInput,v as validateScanBarCodeInput,f as validateSelectMediaInputs,I as validateViewImagesInput};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{appInitializeHelper as e,notifyAppLoadedHelper as i,notifySuccessHelper as t,notifyFailureHelper as n,notifyExpectedFailureHelper as a,registerOnThemeChangeHandlerHelper as o,openLinkHelper as s}from"../../internal/appHelpers.js";import{uninitializeCommunication as r,sendAndUnwrap as l,Communication as m}from"../../internal/communication.js";import{GlobalVars as d}from"../../internal/globalVars.js";import{uninitializeHandlers as p}from"../../internal/handlers.js";import{ensureInitializeCalled as c}from"../../internal/internalAPIs.js";import{getLogger as u,getApiVersionTag as f}from"../../internal/telemetry.js";import{inServerSideRenderingEnvironment as h}from"../../internal/utils.js";import{prefetchOriginsFromCDN as g}from"../../internal/validOrigins.js";import{messageChannels as I}from"../../private/messageChannels.js";import{HostName as y,HostClientType as S}from"../constants.js";import{version as T}from"../version.js";import*as C from"./lifecycle.js";export{C as lifecycle};const P="v2",v=u("app"),j={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"};var w,O;function N(){return d.initializeCompleted}function b(){return d.frameContext}function F(i){return g(),e(f(P,"app.initialize"),i)}function L(e){m.currentWindow=e}function x(){d.initializeCalled&&(p(),d.initializeCalled=!1,d.initializeCompleted=!1,d.initializePromise=void 0,d.additionalValidOrigins=[],d.frameContext=void 0,d.hostClientType=void 0,d.isFramelessWindow=!1,I.telemetry._clearTelemetryPort(),I.dataLayer._clearDataLayerPort(),r())}function A(){return new Promise((e=>{c(),e(l(f(P,"app.getContext"),"getContext"))})).then((e=>function(e){var i;const t={actionInfo:e.actionInfo,app:{locale:e.locale,sessionId:e.appSessionId?e.appSessionId:"",theme:e.theme?e.theme:"default",iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userClickTimeV2:e.userClickTimeV2,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:y.teams,clientType:e.hostClientType?e.hostClientType:S.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:d.frameContext,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,isBackgroundLoad:e.isBackgroundLoad,sourceOrigin:e.sourceOrigin},user:{id:null!==(i=e.userObjectId)&&void 0!==i?i:"",displayName:e.userDisplayName,isCallingAllowed:e.isCallingAllowed,isPSTNCallingAllowed:e.isPSTNCallingAllowed,licenseType:e.userLicenseType,loginHint:e.loginHint,userPrincipalName:e.userPrincipalName,tenant:e.tid?{id:e.tid,teamsSku:e.tenantSKU}:void 0},channel:e.channelId?{id:e.channelId,displayName:e.channelName,relativeUrl:e.channelRelativeUrl,membershipType:e.channelType,defaultOneNoteSectionId:e.defaultOneNoteSectionId,ownerGroupId:e.hostTeamGroupId,ownerTenantId:e.hostTeamTenantId}:void 0,chat:e.chatId?{id:e.chatId}:void 0,meeting:e.meetingId?{id:e.meetingId}:void 0,sharepoint:e.sharepoint,team:e.teamId?{internalId:e.teamId,displayName:e.teamName,type:e.teamType,groupId:e.groupId,templateId:e.teamTemplateId,isArchived:e.isTeamArchived,userRole:e.userTeamRole}:void 0,sharePointSite:e.teamSiteUrl||e.teamSiteDomain||e.teamSitePath||e.mySitePath||e.mySiteDomain?{teamSiteUrl:e.teamSiteUrl,teamSiteDomain:e.teamSiteDomain,teamSitePath:e.teamSitePath,teamSiteId:e.teamSiteId,mySitePath:e.mySitePath,mySiteDomain:e.mySiteDomain}:void 0,dialogParameters:e.dialogParameters||{}};return t}(e)))}function D(){c(),i(f(P,"app.notifyAppLoaded"))}function z(){c(),t(f(P,"app.notifySuccess"))}function k(e){c(),n(f(P,"app.notifyFailure"),e)}function U(e){c(),a(f(P,"app.notifyExpectedFailure"),e)}function E(e){o(f(P,"app.registerOnThemeChangeHandler"),e)}function V(e){return s(f(P,"app.openLink"),e)}!function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(w||(w={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(O||(O={})),v("teamsjs instance is version %s, starting at %s UTC (%s local)",T,(new Date).toISOString(),(new Date).toLocaleString()),function(){if(h())return;const e=document.getElementsByTagName("script"),i=e&&e[e.length-1]&&e[e.length-1].src,t="Today, teamsjs can only be used from a single script or you may see undefined behavior. This log line is used to help detect cases where teamsjs is loaded multiple times -- it is always written. The presence of the log itself does not indicate a multi-load situation, but multiples of these log lines will. If you would like to use teamjs from more than one script at the same time, please open an issue at https://github.com/OfficeDev/microsoft-teams-library-js/issues";i&&0!==i.length?v("teamsjs is being used from %s. %s",i,t):v("teamsjs is being used from a script tag embedded directly in your html. %s",t)}();export{O as ExpectedFailureReason,w as FailedReason,j as Messages,L as _initialize,x as _uninitialize,A as getContext,b as getFrameContext,F as initialize,N as isInitialized,D as notifyAppLoaded,U as notifyExpectedFailure,k as notifyFailure,z as notifySuccess,V as openLink,E as registerOnThemeChangeHandler};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{registerBeforeSuspendOrTerminateHandler as e,registerOnResumeHandler as r}from"../../internal/handlers.js";import{ensureInitialized as n}from"../../internal/internalAPIs.js";import{runtime as t}from"../runtime.js";function i(r){if(!r)throw new Error("[app.lifecycle.registerBeforeSuspendOrTerminateHandler] Handler cannot be null");n(t),e(r)}function a(e){if(!e)throw new Error("[app.lifecycle.registerOnResumeHandler] Handler cannot be null");n(t),r(e)}export{i as registerBeforeSuspendOrTerminateHandler,a as registerOnResumeHandler};
|
@@ -1 +1 @@
|
|
1
|
-
import{notifyAppLoadedHelper as i,notifySuccessHelper as n,notifyFailureHelper as t,notifyExpectedFailureHelper as a}from"../internal/appHelpers.js";import{getApiVersionTag as e}from"../internal/telemetry.js";export{ExpectedFailureReason,FailedReason,Messages}from"./app.js";const o="v1";function p(){i(e(o,"appInitialization.notifyAppLoaded"))}function r(){n(e(o,"appInitialization.notifySuccess"))}function l(i){t(e(o,"appInitialization.notifyFailure"),i)}function s(i){a(e(o,"appInitialization.notifyExpectedFailure"),i)}export{p as notifyAppLoaded,s as notifyExpectedFailure,l as notifyFailure,r as notifySuccess};
|
1
|
+
import{notifyAppLoadedHelper as i,notifySuccessHelper as n,notifyFailureHelper as t,notifyExpectedFailureHelper as a}from"../internal/appHelpers.js";import{getApiVersionTag as e}from"../internal/telemetry.js";export{ExpectedFailureReason,FailedReason,Messages}from"./app/app.js";const o="v1";function p(){i(e(o,"appInitialization.notifyAppLoaded"))}function r(){n(e(o,"appInitialization.notifySuccess"))}function l(i){t(e(o,"appInitialization.notifyFailure"),i)}function s(i){a(e(o,"appInitialization.notifyExpectedFailure"),i)}export{p as notifyAppLoaded,s as notifyExpectedFailure,l as notifyFailure,r as notifySuccess};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendAndHandleStatusAndReason as e}from"../internal/communication.js";import{createTeamsDeepLinkForChat as
|
1
|
+
import{sendAndHandleStatusAndReason as e}from"../internal/communication.js";import{createTeamsDeepLinkForChat as s}from"../internal/deepLinkUtilities.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{FrameContexts as n,errorNotSupportedOnPlatform as o}from"./constants.js";import{runtime as i}from"./runtime.js";function a(e){return m(r("v2","chat.openChat"),e)}function m(r,a){return new Promise((m=>{if(t(i,n.content,n.task),!u())throw o;if(i.isLegacyTeams)m(e(r,"executeDeepLink",s([a.user],void 0,a.message)));else{m(e(r,"chat.openChat",{members:[a.user],message:a.message}))}}))}function c(a){const c=r("v2","chat.openGroupChat");return new Promise((r=>{if(a.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===a.users.length){const e={user:a.users[0],message:a.message};r(m(c,e))}else{if(t(i,n.content,n.task),!u())throw o;if(i.isLegacyTeams)r(e(c,"executeDeepLink",s(a.users,a.topic,a.message)));else{r(e(c,"chat.openChat",{members:a.users,message:a.message,topic:a.topic}))}}}))}function u(){return!(!t(i)||!i.supports.chat)}export{u as isSupported,a as openChat,c as openGroupChat};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{sendMessageToParent as o}from"../../../internal/communication.js";import{getDialogInfoFromAdaptiveCardDialogInfo as t,dialogTelemetryVersionNumber as r}from"../../../internal/dialogHelpers.js";import{ensureInitialized as n}from"../../../internal/internalAPIs.js";import{getApiVersionTag as s}from"../../../internal/telemetry.js";import{isHostAdaptiveCardSchemaVersionUnsupported as i}from"../../../internal/utils.js";import{FrameContexts as e,errorNotSupportedOnPlatform as a}from"../../constants.js";import{runtime as m}from"../../runtime.js";import*as p from"./bot.js";export{p as bot};function l(i,p){if(n(m,e.content,e.sidePanel,e.meetingStage),!f())throw a;const l=t(i);o(s(r,"dialog.adaptiveCard.open"),"tasks.startTask",[l],((o,t)=>{null==p||p({err:o,result:t})}))}function f(){const o=m.hostVersionsInfo&&m.hostVersionsInfo.adaptiveCardSchemaVersion&&!i(m.hostVersionsInfo.adaptiveCardSchemaVersion);return n(m)&&void 0!==(o&&m.supports.dialog&&m.supports.dialog.card)}export{f as isSupported,l as open};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{sendMessageToParent as o}from"../../../internal/communication.js";import{getDialogInfoFromBotAdaptiveCardDialogInfo as t,dialogTelemetryVersionNumber as r}from"../../../internal/dialogHelpers.js";import{ensureInitialized as n}from"../../../internal/internalAPIs.js";import{getApiVersionTag as s}from"../../../internal/telemetry.js";import{isHostAdaptiveCardSchemaVersionUnsupported as i}from"../../../internal/utils.js";import{FrameContexts as e,errorNotSupportedOnPlatform as a}from"../../constants.js";import{runtime as m}from"../../runtime.js";function p(i,p){if(n(m,e.content,e.sidePanel,e.meetingStage),!l())throw a;const d=t(i);o(s(r,"dialog.adaptiveCard.bot.open"),"tasks.startTask",[d],((o,t)=>{null==p||p({err:o,result:t})}))}function l(){const o=m.hostVersionsInfo&&m.hostVersionsInfo.adaptiveCardSchemaVersion&&!i(m.hostVersionsInfo.adaptiveCardSchemaVersion);return n(m)&&void 0!==(o&&m.supports.dialog&&m.supports.dialog.card&&m.supports.dialog.card.bot)}export{l as isSupported,p as open};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{handleDialogMessage as r,dialogTelemetryVersionNumber as o}from"../../internal/dialogHelpers.js";import{registerHandler as t}from"../../internal/handlers.js";import{ensureInitialized as e}from"../../internal/internalAPIs.js";import{getApiVersionTag as i}from"../../internal/telemetry.js";import{runtime as a}from"../runtime.js";import*as s from"./adaptiveCard/adaptiveCard.js";export{s as adaptiveCard};import*as m from"./update.js";export{m as update};import*as n from"./url/url.js";export{n as url};function p(){t(i(o,"dialog.registerMessageForChildHandler"),"messageForChild",r,!1)}function l(){return!(!e(a)||!a.supports.dialog)}export{p as initialize,l as isSupported};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{updateResizeHelper as r,dialogTelemetryVersionNumber as t}from"../../internal/dialogHelpers.js";import{ensureInitialized as o}from"../../internal/internalAPIs.js";import{getApiVersionTag as e}from"../../internal/telemetry.js";import{runtime as i}from"../runtime.js";function n(o){r(e(t,"dialog.update.resize"),o)}function p(){return!(!o(i)||!i.supports.dialog)&&!!i.supports.dialog.update}export{p as isSupported,n as resize};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{botUrlOpenHelper as r,dialogTelemetryVersionNumber as o}from"../../../internal/dialogHelpers.js";import{ensureInitialized as t}from"../../../internal/internalAPIs.js";import{getApiVersionTag as i}from"../../../internal/telemetry.js";import{runtime as n}from"../../runtime.js";function l(t,n,l){r(i(o,"dialog.url.bot.open"),t,n,l)}function e(){return t(n)&&void 0!==(n.supports.dialog&&n.supports.dialog.url&&n.supports.dialog.url.bot)}export{e as isSupported,l as open};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{sendMessageToParent as o}from"../../../internal/communication.js";import{storedMessages as r,dialogTelemetryVersionNumber as n}from"../../../internal/dialogHelpers.js";import{removeHandler as e,registerHandler as i}from"../../../internal/handlers.js";import{ensureInitialized as t}from"../../../internal/internalAPIs.js";import{getApiVersionTag as a}from"../../../internal/telemetry.js";import{FrameContexts as s,errorNotSupportedOnPlatform as m}from"../../constants.js";import{runtime as l}from"../../runtime.js";function d(r){if(t(l,s.task),!p())throw m;o(a(n,"dialog.url.parentCommunication.sendMessageToParentFromDialog"),"messageForParent",[r])}function g(r){if(t(l,s.content,s.sidePanel,s.meetingStage),!p())throw m;o(a(n,"dialog.url.parentCommunication.sendMessageToDialog"),"messageForChild",[r])}function u(o){if(t(l,s.task),!p())throw m;for(e("messageForChild"),i(a(n,"dialog.url.parentCommunication.registerMessageForChildHandler"),"messageForChild",o),r.reverse();r.length>0;){o(r.pop())}}function p(){var o,r;return t(l)&&!!(null===(r=null===(o=l.supports.dialog)||void 0===o?void 0:o.url)||void 0===r?void 0:r.parentCommunication)}export{p as isSupported,u as registerOnMessageFromParent,g as sendMessageToDialog,d as sendMessageToParentFromDialog};
|
@@ -0,0 +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};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{sendAndHandleSdkError as o}from"../../internal/communication.js";import{ensureInitialized as t}from"../../internal/internalAPIs.js";import{getApiVersionTag as n}from"../../internal/telemetry.js";import{FrameContexts as r,errorNotSupportedOnPlatform as i}from"../constants.js";import{DevicePermission as s}from"../interfaces.js";import{runtime as e}from"../runtime.js";import*as a from"./map.js";export{a as map};const m="v2";function c(){if(t(e,r.content,r.task),!u())throw i;return o(n(m,"geoLocation.getCurrentLocation"),"location.getLocation",{allowChooseLocation:!1,showMap:!1})}function p(){if(t(e,r.content,r.task),!u())throw i;const a=s.GeoLocation;return new Promise((t=>{t(o(n(m,"geoLocation.hasPermission"),"permissions.has",a))}))}function f(){if(t(e,r.content,r.task),!u())throw i;const a=s.GeoLocation;return new Promise((t=>{t(o(n(m,"geoLocation.requestPermission"),"permissions.request",a))}))}function u(){return!!(t(e)&&e.supports.geoLocation&&e.supports.permissions)}export{c as getCurrentLocation,p as hasPermission,u as isSupported,f as requestPermission};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{sendAndHandleSdkError as o}from"../../internal/communication.js";import{ensureInitialized as t}from"../../internal/internalAPIs.js";import{getApiVersionTag as n}from"../../internal/telemetry.js";import{FrameContexts as r,errorNotSupportedOnPlatform as i}from"../constants.js";import{ErrorCode as e}from"../interfaces.js";import{runtime as s}from"../runtime.js";function a(){if(t(s,r.content,r.task),!m())throw i;return o(n("v2","geoLocation.map.chooseLocation"),"location.getLocation",{allowChooseLocation:!0,showMap:!0})}function c(a){if(t(s,r.content,r.task),!m())throw i;if(!a)throw{errorCode:e.INVALID_ARGUMENTS};return o(n("v2","geoLocation.showLocation"),"location.showLocation",a)}function m(){return!!(t(s)&&s.supports.geoLocation&&s.supports.geoLocation.map&&s.supports.permissions)}export{a as chooseLocation,m as isSupported,c as showLocation};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendAndHandleSdkError as e}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as n}from"../internal/telemetry.js";import{FrameContexts as i}from"./constants.js";import{runtime as r}from"./runtime.js";const o="v2";var a
|
1
|
+
import{sendAndHandleSdkError as e}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as n}from"../internal/telemetry.js";import{FrameContexts as i}from"./constants.js";import{runtime as r}from"./runtime.js";const o="v2";var a,s;function d(){return!(!t(r,i.meetingStage,i.sidePanel,i.content)||!r.supports.interactive)}!function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(a||(a={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(s||(s={}));class l{getFluidTenantInfo(){return u(),new Promise((t=>{t(e(n(o,"interactive.getFluidTenantInfo"),"interactive.getFluidTenantInfo"))}))}getFluidToken(t){return u(),new Promise((i=>{i(e(n(o,"interactive.getFluidToken"),"interactive.getFluidToken",t))}))}getFluidContainerId(){return u(),new Promise((t=>{t(e(n(o,"interactive.getFluidContainerId"),"interactive.getFluidContainerId"))}))}setFluidContainerId(t){return u(),new Promise((i=>{i(e(n(o,"interactive.setFluidContainerId"),"interactive.setFluidContainerId",t))}))}getNtpTime(){return u(),new Promise((t=>{t(e(n(o,"interactive.getNtpTime"),"interactive.getNtpTime"))}))}registerClientId(t){return u(),new Promise((i=>{i(e(n(o,"interactive.registerClientId"),"interactive.registerClientId",t))}))}getClientRoles(t){return u(),new Promise((i=>{i(e(n(o,"interactive.getClientRoles"),"interactive.getClientRoles",t))}))}getClientInfo(t){return u(),new Promise((i=>{i(e(n(o,"interactive.getClientInfo"),"interactive.getClientInfo",t))}))}static create(){return u(),new l}}function u(){if(!d())throw new Error("LiveShareHost Not supported")}export{s as ContainerState,l as LiveShareHost,a as UserMeetingRole,d as isSupported};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendMessageToParent as o}from"../internal/communication.js";import{locationAPIsRequiredVersion as t}from"../internal/constants.js";import{ensureInitialized as
|
1
|
+
import{sendMessageToParent as o}from"../internal/communication.js";import{locationAPIsRequiredVersion as t}from"../internal/constants.js";import{ensureInitialized as r,isCurrentSDKVersionAtLeast as n}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{FrameContexts as a,errorNotSupportedOnPlatform as e}from"./constants.js";import{ErrorCode as c}from"./interfaces.js";import{runtime as l}from"./runtime.js";function s(s,f){if(!f)throw new Error("[location.getLocation] Callback cannot be null");if(r(l,a.content,a.task),!n(t))throw{errorCode:c.OLD_PLATFORM};if(!s)throw{errorCode:c.INVALID_ARGUMENTS};if(!m())throw e;o(i("v1","location.getLocation"),"location.getLocation",[s],f)}function f(s,f){if(!f)throw new Error("[location.showLocation] Callback cannot be null");if(r(l,a.content,a.task),!n(t))throw{errorCode:c.OLD_PLATFORM};if(!s)throw{errorCode:c.INVALID_ARGUMENTS};if(!m())throw e;o(i("v1","location.showLocation"),"location.showLocation",[s],f)}function m(){return!(!r(l)||!l.supports.location)}export{s as getLocation,m as isSupported,f as showLocation};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendAndHandleStatusAndReason as
|
1
|
+
import{sendAndHandleStatusAndReason as r}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as o}from"../internal/telemetry.js";import{FrameContexts as e}from"./constants.js";import{runtime as n}from"./runtime.js";function i(i){return new Promise((m=>{if(t(n,e.content),!l())throw new Error("Not supported");if(!i.itemId||!i.itemId.trim())throw new Error("Must supply an itemId to openMailItem");m(r(o("v2","mail.openMailItem"),"mail.openMailItem",i))}))}function m(i){return new Promise((m=>{if(t(n,e.content),!l())throw new Error("Not supported");m(r(o("v2","mail.composeMail"),"mail.composeMail",i))}))}function l(){return!(!t(n)||!n.supports.mail)}var p;!function(r){r.New="new",r.Reply="reply",r.ReplyAll="replyAll",r.Forward="forward"}(p||(p={}));export{p as ComposeMailType,m as composeMail,l as isSupported,i as openMailItem};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendAndHandleSdkError as t}from"../internal/communication.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{deserializeCart as e,validateUuid as a,validateCartItems as n,serializeCartItems as s,validateCartStatus as o}from"../internal/marketplaceUtils.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{FrameContexts as m,errorNotSupportedOnPlatform as c}from"./constants.js";import{runtime as d}from"./runtime.js";const
|
1
|
+
import{sendAndHandleSdkError as t}from"../internal/communication.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{deserializeCart as e,validateUuid as a,validateCartItems as n,serializeCartItems as s,validateCartStatus as o}from"../internal/marketplaceUtils.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{FrameContexts as m,errorNotSupportedOnPlatform as c}from"./constants.js";import{runtime as d}from"./runtime.js";const l="v2",u={majorVersion:1,minorVersion:1};var p,f;function I(){if(r(d,m.content,m.task),!h())throw c;return t(i(l,"marketplace.getCart"),"marketplace.getCart",u).then(e)}function v(o){if(r(d,m.content,m.task),!h())throw c;if(!o)throw new Error("addOrUpdateCartItemsParams must be provided");return a(null==o?void 0:o.cartId),n(null==o?void 0:o.cartItems),t(i(l,"marketplace.addOrUpdateCartItems"),"marketplace.addOrUpdateCartItems",Object.assign(Object.assign({},o),{cartItems:s(o.cartItems),cartVersion:u})).then(e)}function C(n){if(r(d,m.content,m.task),!h())throw c;if(!n)throw new Error("removeCartItemsParams must be provided");if(a(null==n?void 0:n.cartId),!Array.isArray(null==n?void 0:n.cartItemIds)||0===(null==n?void 0:n.cartItemIds.length))throw new Error("cartItemIds must be a non-empty array");return t(i(l,"marketplace.removeCartItems"),"marketplace.removeCartItems",Object.assign(Object.assign({},n),{cartVersion:u})).then(e)}function k(n){if(r(d,m.content,m.task),!h())throw c;if(!n)throw new Error("updateCartStatusParams must be provided");return a(null==n?void 0:n.cartId),o(null==n?void 0:n.cartStatus),t(i(l,"marketplace.updateCartStatus"),"marketplace.updateCartStatus",Object.assign(Object.assign({},n),{cartVersion:u})).then(e)}function h(){return!(!r(d)||!d.supports.marketplace)}!function(t){t.TACAdminUser="TACAdminUser",t.TeamsAdminUser="TeamsAdminUser",t.TeamsEndUser="TeamsEndUser"}(p||(p={})),function(t){t.Open="Open",t.Processing="Processing",t.Processed="Processed",t.Closed="Closed",t.Error="Error"}(f||(f={}));export{f as CartStatus,p as Intent,v as addOrUpdateCartItems,u as cartVersion,I as getCart,h as isSupported,C as removeCartItems,k as updateCartStatus};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendMessageToParent as e,sendAndHandleSdkError as t}from"../internal/communication.js";import{captureImageMobileSupportVersion as i,mediaAPISupportVersion as
|
1
|
+
import{sendMessageToParent as e,sendAndHandleSdkError as t}from"../internal/communication.js";import{captureImageMobileSupportVersion as i,mediaAPISupportVersion as n,getMediaCallbackSupportVersion as o,nonFullScreenVideoModeAPISupportVersion as r,scanBarCodeAPIMobileSupportVersion as a}from"../internal/constants.js";import{GlobalVars as s}from"../internal/globalVars.js";import{registerHandler as l,removeHandler as c}from"../internal/handlers.js";import{ensureInitialized as d,isCurrentSDKVersionAtLeast as m,throwExceptionIfMobileApiIsNotSupported as u}from"../internal/internalAPIs.js";import{validateGetMediaInputs as h,throwExceptionIfMediaCallIsNotSupportedOnMobile as f,validateSelectMediaInputs as p,isVideoControllerRegistered as C,validateViewImagesInput as T,validateScanBarCodeInput as g,createFile as M,decodeAttachment as b}from"../internal/mediaUtil.js";import{getLogger as R,getApiVersionTag as k}from"../internal/telemetry.js";import{isNullOrUndefined as w}from"../internal/typeCheckUtilities.js";import{generateGUID as A}from"../internal/utils.js";import{FrameContexts as y,errorNotSupportedOnPlatform as v,HostClientType as I}from"./constants.js";import{ErrorCode as E,DevicePermission as P}from"./interfaces.js";import{runtime as O}from"./runtime.js";const L="v1",D=R("media");var S,N,_,B,V,j,F;!function(e){e.Base64="base64",e.ID="id"}(S||(S={}));class U{}function G(t){if(!t)throw new Error("[captureImage] Callback cannot be null");if(d(O,y.content,y.task),s.isFramelessWindow)if(m(i))e(k(L,"media.captureImage"),"captureImage",t);else{t({errorCode:E.OLD_PLATFORM},[])}else{t({errorCode:E.NOT_SUPPORTED_ON_PLATFORM},[])}}function q(){if(d(O,y.content,y.task),!W())throw v;const e=P.Media;return new Promise((i=>{i(t(k(L,"media.hasPermission"),"permissions.has",e))}))}function H(){if(d(O,y.content,y.task),!W())throw v;const e=P.Media;return new Promise((i=>{i(t(k(L,"media.requestPermission"),"permissions.request",e))}))}function W(){return!(!d(O)||!O.supports.permissions)}class x extends U{constructor(e){super(),e&&(this.content=e.content,this.format=e.format,this.mimeType=e.mimeType,this.name=e.name,this.preview=e.preview,this.size=e.size)}getMedia(e){if(!e)throw new Error("[get Media] Callback cannot be null");if(d(O,y.content,y.task),m(n))if(h(this.mimeType,this.format,this.content))m(o)?this.getMediaViaCallback(e):this.getMediaViaHandler(e);else{e({errorCode:E.INVALID_ARGUMENTS},new Blob)}else{e({errorCode:E.OLD_PLATFORM},new Blob)}}getMediaViaCallback(t){const i={mediaMimeType:this.mimeType,assembleAttachment:[]},n=[this.content];e(k(L,"media.getMedia"),"getMedia",n,(function(e){if(t)if(e&&e.error)t(e.error,new Blob);else if(e&&e.mediaChunk)if(e.mediaChunk.chunkSequence<=0){const n=M(i.assembleAttachment,i.mediaMimeType);t(e.error,null!=n?n:new Blob)}else{const t=b(e.mediaChunk,i.mediaMimeType);t?i.assembleAttachment.push(t):D(`Received a null assemble attachment for when decoding chunk sequence ${e.mediaChunk.chunkSequence}; not including the chunk in the assembled file.`)}else t({errorCode:E.INTERNAL_ERROR,message:"data received is null"},new Blob)}))}getMediaViaHandler(t){const i=A(),n={mediaMimeType:this.mimeType,assembleAttachment:[]},o=[i,this.content];this.content&&!w(t)&&e(k(L,"media.getMedia"),"getMedia",o),l(k(L,"media.registerGetMediaRequestHandler"),"getMedia"+i,(function(e){if(t){const o=JSON.parse(e);if(o.error)t(o.error,new Blob),c("getMedia"+i);else if(o.mediaChunk)if(o.mediaChunk.chunkSequence<=0){const e=M(n.assembleAttachment,n.mediaMimeType);t(o.error,null!=e?e:new Blob),c("getMedia"+i)}else{const e=b(o.mediaChunk,n.mediaMimeType);e&&n.assembleAttachment.push(e)}else t({errorCode:E.INTERNAL_ERROR,message:"data received is null"},new Blob),c("getMedia"+i)}}))}}class z{constructor(e){this.controllerCallback=e}notifyEventToHost(t,i){d(O,y.content,y.task);try{u(r)}catch(e){return void(i&&i(e))}const n={mediaType:this.getMediaType(),mediaControllerEvent:t};e(k(L,"media.controller"),"media.controller",[n],(e=>{i&&i(e)}))}stop(e){this.notifyEventToHost(N.StopRecording,e)}}class J extends z{getMediaType(){return V.Video}notifyEventToApp(e){if(this.controllerCallback)switch(e){case N.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}}}function $(t,i){if(!i)throw new Error("[select Media] Callback cannot be null");if(d(O,y.content,y.task),!m(n)){const e={errorCode:E.OLD_PLATFORM};return void i(e,[])}try{f(t)}catch(e){return void i(e,[])}if(!p(t)){const e={errorCode:E.INVALID_ARGUMENTS};return void i(e,[])}const o=[t];e(k(L,"media.selectMedia"),"selectMedia",o,((e,n,o)=>{var r,a;if(o)return void(C(t)&&(null===(a=null===(r=null==t?void 0:t.videoProps)||void 0===r?void 0:r.videoController)||void 0===a||a.notifyEventToApp(o)));if(!n)return void i(e,[]);const s=[];for(const e of n)s.push(new x(e));i(e,s)}))}function K(t,i){if(!i)throw new Error("[view images] Callback cannot be null");if(d(O,y.content,y.task),!m(n)){return void i({errorCode:E.OLD_PLATFORM})}if(!T(t)){return void i({errorCode:E.INVALID_ARGUMENTS})}const o=[t];e(k(L,"media.viewImages"),"viewImages",o,i)}function Q(t,i){if(!t)throw new Error("[media.scanBarCode] Callback cannot be null");if(d(O,y.content,y.task),s.hostClientType!==I.desktop&&s.hostClientType!==I.web&&s.hostClientType!==I.rigel&&s.hostClientType!==I.teamsRoomsWindows&&s.hostClientType!==I.teamsRoomsAndroid&&s.hostClientType!==I.teamsPhones&&s.hostClientType!==I.teamsDisplays)if(m(a))if(g(i))e(k(L,"media.scanBarCode"),"media.scanBarCode",[i],t);else{t({errorCode:E.INVALID_ARGUMENTS},"")}else{t({errorCode:E.OLD_PLATFORM},"")}else{t({errorCode:E.NOT_SUPPORTED_ON_PLATFORM},"")}}!function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(N||(N={})),function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(_||(_={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(B||(B={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(V||(V={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(j||(j={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(F||(F={}));export{_ as CameraStartMode,U as File,S as FileFormat,F as ImageOutputFormats,j as ImageUriType,x as Media,N as MediaControllerEvent,V as MediaType,B as Source,J as VideoController,G as captureImage,q as hasPermission,H as requestPermission,Q as scanBarCode,$ as selectMedia,K as viewImages};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendMessageToParent as e}from"../internal/communication.js";import{registerHandler as n}from"../internal/handlers.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as
|
1
|
+
import{sendMessageToParent as e}from"../internal/communication.js";import{registerHandler as n}from"../internal/handlers.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{runtime as s}from"./runtime.js";import{errorNotSupportedOnPlatform as o}from"./constants.js";const i="v2";var u,m;!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(u||(u={}));class a{constructor(){this.enabled=!0,this.selected=!1}}let f,l,c;function p(){n(r(i,"menus.registerNavBarMenuItemPressHandler"),"navBarMenuItemPress",h,!1),n(r(i,"menus.registerActionMenuItemPressHandler"),"actionMenuItemPress",I,!1),n(r(i,"menus.registerSetModuleViewHandler"),"setModuleView",w,!1)}function d(n,u){if(t(s),!P())throw o;c=u,e(r(i,"menus.setUpViews"),"setUpViews",[n])}function w(n){c&&c(n)||(t(s),e(r(i,"menus.handleViewConfigItemPress"),"viewConfigItemPress",[n]))}function M(n,u){if(t(s),!P())throw o;f=u,e(r(i,"menus.setNavBarMenu"),"setNavBarMenu",[n])}function h(n){f&&f(n)||(t(s),e(r(i,"menus.handleNavBarMenuItemPress"),"handleNavBarMenuItemPress",[n]))}function v(n,u){if(t(s),!P())throw o;l=u,e(r(i,"menus.showActionMenu"),"showActionMenu",[n])}function I(n){l&&l(n)||(t(s),e(r(i,"menus.handleActionMenuItemPress"),"handleActionMenuItemPress",[n]))}function P(){return!(!t(s)||!s.supports.menus)}!function(e){e.dropDown="dropDown",e.popOver="popOver"}(m||(m={}));export{u as DisplayMode,a as MenuItem,m as MenuListType,p as initialize,P as isSupported,M as setNavBarMenu,d as setUpViews,v as showActionMenu};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendAndHandleSdkError as n}from"../internal/communication.js";import{ensureInitialized as
|
1
|
+
import{sendAndHandleSdkError as n}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{callCallbackWithErrorOrResultOrNullFromPromiseAndReturnPromise as o}from"../internal/utils.js";import{FrameContexts as r,errorNotSupportedOnPlatform as i}from"./constants.js";import{runtime as m}from"./runtime.js";function p(p,a){let c,u,f="";"function"==typeof p?(c=p,u=a,f=e("v1","monetization.openPurchaseExperience")):(u=p,f=e("v2","monetization.openPurchaseExperience"));return t(m,r.content),o((()=>new Promise((t=>{if(!s())throw i;t(n(f,"monetization.openPurchaseExperience",u))}))),c)}function s(){return!(!t(m)||!m.supports.monetization)}export{s as isSupported,p as openPurchaseExperience};
|
@@ -1 +1 @@
|
|
1
|
-
import{ensureInitialized as n}from"../internal/internalAPIs.js";import{runtime as
|
1
|
+
import{ensureInitialized as n}from"../internal/internalAPIs.js";import{runtime as r}from"./runtime.js";function e(){var e;return null!==(e=n(r)&&r.isNAAChannelRecommended)&&void 0!==e&&e}export{e as isNAAChannelRecommended};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendAndHandleSdkError as
|
1
|
+
import{sendAndHandleSdkError as t}from"../internal/communication.js";import{peoplePickerRequiredVersion as e}from"../internal/constants.js";import{ensureInitialized as r,isCurrentSDKVersionAtLeast as o}from"../internal/internalAPIs.js";import{validatePeoplePickerInput as n}from"../internal/mediaUtil.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{callCallbackWithErrorOrResultFromPromiseAndReturnPromise as s}from"../internal/utils.js";import{FrameContexts as m,errorNotSupportedOnPlatform as p}from"./constants.js";import{ErrorCode as l}from"./interfaces.js";import{runtime as f}from"./runtime.js";function a(t,e){let o,n;r(f,m.content,m.task,m.settings);let p="";return"function"==typeof t?([o,n]=[t,e],p=i("v1","people.selectPeople")):(n=t,p=i("v2","people.selectPeople")),s(c,o,p,n)}function c(r,i){return new Promise((s=>{if(!o(e))throw{errorCode:l.OLD_PLATFORM};if(!n(i))throw{errorCode:l.INVALID_ARGUMENTS};if(!u())throw p;s(t(r,"people.selectPeople",i))}))}function u(){return!(!r(f)||!f.supports.people)}export{u as isSupported,a as selectPeople};
|
@@ -1 +1 @@
|
|
1
|
-
import{appInitializeHelper as
|
1
|
+
import{appInitializeHelper as t,registerOnThemeChangeHandlerHelper as e,openLinkHelper as n}from"../internal/appHelpers.js";import{sendMessageToParent as r}from"../internal/communication.js";import{GlobalVars as i}from"../internal/globalVars.js";import{registerHandlerHelper as o}from"../internal/handlers.js";import{ensureInitializeCalled as a,ensureInitialized as s}from"../internal/internalAPIs.js";import{getApiVersionTag as c}from"../internal/telemetry.js";import{getGenericOnCompleteHandler as l}from"../internal/utils.js";import{FrameContexts as u}from"./constants.js";import{pages as f,getTabInstancesHelper as m,getMruTabInstancesHelper as p,shareDeepLinkHelper as g,setCurrentFrameHelper as H}from"./pages.js";import{runtime as d}from"./runtime.js";import{enablePrintCapability as b,print as h,registerOnLoadHandlerHelper as C,registerBeforeUnloadHandlerHelper as j}from"./teamsAPIs.js";const B="v1";function x(e,n){t(c(B,"initialize"),n).then((()=>{e&&e()}))}function k(){b()}function v(){h()}function E(t){a(),r(c(B,"getContext"),"getContext",(e=>{e.frameContext||(e.frameContext=i.frameContext),t(e)}))}function L(t){e(c(B,"registerOnThemeChangeHandlerHelper"),t)}function P(t){o(c(B,"registerFullScreenHandler"),"fullScreenChange",t,[])}function I(t){o(c(B,"registerAppButtonClickHandler"),"appButtonClick",t,[u.content])}function S(t){o(c(B,"registerAppButtonHoverEnterHandler"),"appButtonHoverEnter",t,[u.content])}function y(t){o(c(B,"registerAppButtonHoverLeaveHandler"),"appButtonHoverLeave",t,[u.content])}function A(t){f.backStack.registerBackButtonHandlerHelper(c(B,"registerBackButtonHandler"),t)}function F(t){C(c(B,"registerOnLoadHandler"),t)}function T(t){j(c(B,"registerBeforeUnloadHandler"),t)}function U(t){o(c(B,"registerFocusEnterHandler"),"focusEnter",t,[])}function W(t){o(c(B,"registerChangeSettingsHandler"),"changeSettings",t,[u.content])}function z(t,e){s(d),m(c(B,"getTabInstances"),e).then((e=>{t(e)}))}function D(t,e){s(d),p(c(B,"getMruTabInstances"),e).then((e=>{t(e)}))}function O(t){g(c(B,"shareDeepLink"),{subPageId:t.subEntityId,subPageLabel:t.subEntityLabel,subPageWebUrl:t.subEntityWebUrl})}function M(t,e){s(d,u.content,u.sidePanel,u.settings,u.task,u.stage,u.meetingStage);const r=null!=e?e:l();n(c(B,"executeDeepLink"),t).then((()=>{r(!0)})).catch((t=>{r(!1,t.message)}))}function V(t){H(c(B,"setFrameContext"),t)}function q(e,n,r){t(c(B,"initializeWithFrameContext"),r).then((()=>n&&n())),H(c(B,"setFrameContext"),e)}export{k as enablePrintCapability,M as executeDeepLink,E as getContext,D as getMruTabInstances,z as getTabInstances,x as initialize,q as initializeWithFrameContext,v as print,I as registerAppButtonClickHandler,S as registerAppButtonHoverEnterHandler,y as registerAppButtonHoverLeaveHandler,A as registerBackButtonHandler,T as registerBeforeUnloadHandler,W as registerChangeSettingsHandler,U as registerFocusEnterHandler,P as registerFullScreenHandler,F as registerOnLoadHandler,L as registerOnThemeChangeHandler,V as setFrameContext,O as shareDeepLink};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendMessageToParent as r,sendAndHandleStatusAndReason as e}from"../internal/communication.js";import{registerHandler as n,removeHandler as t}from"../internal/handlers.js";import{ensureInitialized as
|
1
|
+
import{sendMessageToParent as r,sendAndHandleStatusAndReason as e}from"../internal/communication.js";import{registerHandler as n,removeHandler as t}from"../internal/handlers.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as s}from"../internal/telemetry.js";import{FrameContexts as c,errorNotSupportedOnPlatform as a}from"./constants.js";import{runtime as i}from"./runtime.js";const h="v2",m="search.queryChange",u="search.queryClose",l="search.queryExecute";function f(r,e,t){if(o(i,c.content),!d())throw a;n(s(h,"search.registerOnClosedHandler"),u,r),n(s(h,"search.registerOnExecutedHandler"),l,e),t&&n(s(h,"search.registerOnChangeHandler"),m,t)}function p(){if(o(i,c.content),!d())throw a;r(s(h,"search.unregisterHandlers"),"search.unregister"),t(m),t(u),t(l)}function d(){return!(!o(i)||!i.supports.search)}function g(){return new Promise((r=>{if(o(i,c.content),!d())throw new Error("Not supported");r(e(s(h,"search.closeSearch"),"search.closeSearch"))}))}export{g as closeSearch,d as isSupported,f as registerHandlers,p as unregisterHandlers};
|
@@ -1 +1 @@
|
|
1
|
-
import{sendAndHandleSdkError as r}from"../internal/communication.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as t}from"../internal/telemetry.js";import{isValidHttpsURL as n}from"../internal/utils.js";import{FrameContexts as e,errorNotSupportedOnPlatform as i}from"./constants.js";import{ErrorCode as s}from"./interfaces.js";import{runtime as m}from"./runtime.js";
|
1
|
+
import{sendAndHandleSdkError as r}from"../internal/communication.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as t}from"../internal/telemetry.js";import{isValidHttpsURL as n}from"../internal/utils.js";import{FrameContexts as e,errorNotSupportedOnPlatform as i}from"./constants.js";import{ErrorCode as s}from"./interfaces.js";import{runtime as m}from"./runtime.js";function a(a){if(o(m,e.content),!l())throw i;if(!a||!n(a))throw{errorCode:s.INVALID_ARGUMENTS,message:"Invalid Url: Only https URL is allowed"};return r(t("v2","secondaryBrowser.openUrl"),"secondaryBrowser.open",a.toString())}function l(){return!(!o(m)||!m.supports.secondaryBrowser)}export{l as isSupported,a as open};
|