@microsoft/teams-js 2.31.1 → 2.32.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +2 -0
  2. package/dist/esm/packages/teams-js/dts/private/index.d.ts +1 -0
  3. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +14 -0
  4. package/dist/esm/packages/teams-js/dts/private/store.d.ts +123 -0
  5. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +0 -4
  6. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +0 -5
  7. package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -7
  8. package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +0 -5
  9. package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +0 -5
  10. package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +0 -9
  11. package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +0 -6
  12. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +1 -0
  13. package/dist/esm/packages/teams-js/src/index.js +1 -1
  14. package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
  15. package/dist/esm/packages/teams-js/src/private/store.js +1 -0
  16. package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -1
  17. package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
  18. package/dist/esm/packages/teams-js/src/public/version.js +1 -1
  19. package/dist/umd/MicrosoftTeams.js +175 -40
  20. package/dist/umd/MicrosoftTeams.js.map +1 -1
  21. package/dist/umd/MicrosoftTeams.min.js +1 -1
  22. package/dist/umd/MicrosoftTeams.min.js.map +1 -1
  23. package/package.json +1 -50
@@ -209,6 +209,7 @@ export declare const enum ApiName {
209
209
  Notifications_ShowNotification = "notifications.showNotification",
210
210
  OtherAppStateChange_Install = "otherApp.install",
211
211
  OtherAppStateChange_UnregisterInstall = "otherApp.unregisterInstall",
212
+ OtherAppStateChange_NotifyInstallCompleted = "otherApp.notifyInstallCompleted",
212
213
  Pages_AppButton_OnClick = "pages.appButton.onClick",
213
214
  Pages_AppButton_OnHoverEnter = "pages.appButton.onHoverEnter",
214
215
  Pages_AppButton_OnHoverLeave = "pages.appButton.onHoverLeave",
@@ -298,6 +299,7 @@ export declare const enum ApiName {
298
299
  Sharing_ShareWebContent = "sharing.shareWebContent",
299
300
  StageView_Open = "stageView.open",
300
301
  StageView_Self_Close = "stageView.self.close",
302
+ Store_Open = "store.open",
301
303
  Tasks_StartTask = "tasks.startTask",
302
304
  Tasks_SubmitTask = "tasks.submitTask",
303
305
  Tasks_UpdateTask = "tasks.updateTask",
@@ -19,3 +19,4 @@ export * as appEntity from './appEntity';
19
19
  export * as teams from './teams/teams';
20
20
  export * as videoEffectsEx from './videoEffectsEx';
21
21
  export * as hostEntity from './hostEntity/hostEntity';
22
+ export * as store from './store';
@@ -9,6 +9,7 @@
9
9
  * *while* the developer's application is running. For example, if the developer wants to be notified
10
10
  * when another application has been installed.
11
11
  */
12
+ import { AppId } from '../public/appId';
12
13
  /**
13
14
  * @hidden
14
15
  * @beta
@@ -69,6 +70,19 @@ export declare function registerAppInstallationHandler(appInstallHandler: OtherA
69
70
  * does not support the otherAppStateChange capability.
70
71
  */
71
72
  export declare function unregisterAppInstallationHandler(): void;
73
+ /**
74
+ * @hidden
75
+ * @beta
76
+ * @internal
77
+ * Limited to Microsoft-internal use
78
+ *
79
+ * This function should be called by the Store App to notify the host that the
80
+ * app with the given appId has been installed.
81
+ *
82
+ * @throws Error if {@link app.initialize} has not successfully completed or if the platform
83
+ * does not support the otherAppStateChange capability.
84
+ */
85
+ export declare function notifyInstallCompleted(appId: AppId): Promise<void>;
72
86
  /**
73
87
  * Checks if the otherAppStateChange capability is supported by the host
74
88
  * @returns boolean to represent whether the otherAppStateChange capability is supported
@@ -0,0 +1,123 @@
1
+ import { AppId } from '../public/appId';
2
+ /**
3
+ * @beta
4
+ * @hidden
5
+ * Enum of store dialog type
6
+ * @internal
7
+ * Limited to Microsoft-internal use
8
+ */
9
+ export declare enum StoreDialogType {
10
+ /**
11
+ * open a store without navigation
12
+ */
13
+ FullStore = "fullstore",
14
+ /**
15
+ * open a store with navigation to a specific collection
16
+ */
17
+ SpecificStore = "specificstore",
18
+ /**
19
+ * open in-context-store
20
+ */
21
+ InContextStore = "ics",
22
+ /**
23
+ * open detail dialog (DD)
24
+ */
25
+ AppDetail = "appdetail"
26
+ }
27
+ /**
28
+ * @beta
29
+ * @hidden
30
+ * Interface of open full store, copilot store and in-context-store function parameter
31
+ * @internal
32
+ * Limited to Microsoft-internal use
33
+ */
34
+ export interface OpenFullStoreAndICSParams {
35
+ /**
36
+ * the store dialog type, defined by {@link StoreDialogType}
37
+ */
38
+ dialogType: StoreDialogType.FullStore | StoreDialogType.InContextStore;
39
+ }
40
+ /**
41
+ * @beta
42
+ * @hidden
43
+ * Interface of open app detail dialog function parameter, make sure app id is appended
44
+ * @internal
45
+ * Limited to Microsoft-internal use
46
+ */
47
+ export interface OpenAppDetailParams {
48
+ /**
49
+ * need to be app detail type, defined by {@link StoreDialogType}
50
+ */
51
+ dialogType: StoreDialogType.AppDetail;
52
+ /**
53
+ * app id of the dialog to open
54
+ */
55
+ appId: AppId;
56
+ }
57
+ /**
58
+ * @beta
59
+ * @hidden
60
+ * Interface of open store specific to a collection function parameter, make sure collection id is appended
61
+ * @internal
62
+ * Limited to Microsoft-internal use
63
+ */
64
+ export interface OpenSpecificStoreParams {
65
+ /**
66
+ * need to be specific store type, defined by {@link StoreDialogType}
67
+ */
68
+ dialogType: StoreDialogType.SpecificStore;
69
+ /**
70
+ * collection id of the plugin store to open
71
+ */
72
+ collectionId: string;
73
+ }
74
+ /**
75
+ * @beta
76
+ * @hidden
77
+ * Interface of open store function parameters, including OpenFullStoreAndICSParams, OpenAppDetailParams, OpenSpecificStoreParams
78
+ * @internal
79
+ * Limited to Microsoft-internal use
80
+ */
81
+ export type OpenStoreParams = OpenFullStoreAndICSParams | OpenAppDetailParams | OpenSpecificStoreParams;
82
+ /**
83
+ * @beta
84
+ * @hidden
85
+ * error message when getting invalid store dialog type
86
+ * @internal
87
+ * Limited to Microsoft-internal use
88
+ */
89
+ export declare const errorInvalidDialogType = "Invalid store dialog type, but type needed to specify store to open";
90
+ /**
91
+ * @beta
92
+ * @hidden
93
+ * error message when getting wrong app id or missing app id
94
+ * @internal
95
+ * Limited to Microsoft-internal use
96
+ */
97
+ export declare const errorMissingAppId = "No App Id present, but AppId needed to open AppDetail store";
98
+ /**
99
+ * @beta
100
+ * @hidden
101
+ * error message when getting wrong collection id or missing collection id
102
+ * @internal
103
+ * Limited to Microsoft-internal use
104
+ */
105
+ export declare const errorMissingCollectionId = "No Collection Id present, but CollectionId needed to open a store specific to a collection";
106
+ /**
107
+ * @beta
108
+ * @hidden
109
+ * Api to open a store
110
+ *
111
+ * @param openStoreParams - params to call openStoreExperience
112
+ *
113
+ * @internal
114
+ * Limited to Microsoft-internal use
115
+ */
116
+ export declare function openStoreExperience(openStoreParams: OpenStoreParams): Promise<void>;
117
+ /**
118
+ * Checks if the store capability is supported by the host
119
+ * @returns boolean to represent whether the store capability is supported
120
+ *
121
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
122
+ */
123
+ export declare function isSupported(): boolean;
@@ -9,8 +9,6 @@ import * as bot from './bot';
9
9
  *
10
10
  * @param adaptiveCardDialogInfo - An object containing the parameters of the dialog module {@link AdaptiveCardDialogInfo}.
11
11
  * @param submitHandler - Handler that triggers when a dialog fires an [Action.Submit](https://adaptivecards.io/explorer/Action.Submit.html) or when the user closes the dialog.
12
- *
13
- * @beta
14
12
  */
15
13
  export declare function open(adaptiveCardDialogInfo: AdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler): void;
16
14
  /**
@@ -19,8 +17,6 @@ export declare function open(adaptiveCardDialogInfo: AdaptiveCardDialogInfo, sub
19
17
  * @returns boolean to represent whether dialog.adaptiveCard module is supported
20
18
  *
21
19
  * @throws Error if {@linkcode app.initialize} has not successfully completed
22
- *
23
- * @beta
24
20
  */
25
21
  export declare function isSupported(): boolean;
26
22
  export { bot };
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Module for interaction with adaptive card dialogs that need to communicate with the bot framework
3
3
  *
4
- * @beta
5
4
  * @module
6
5
  */
7
6
  import { BotAdaptiveCardDialogInfo } from '../../interfaces';
@@ -11,8 +10,6 @@ import { DialogSubmitHandler } from '../dialog';
11
10
  *
12
11
  * @param botAdaptiveCardDialogInfo - An object containing the parameters of the dialog module including completionBotId.
13
12
  * @param submitHandler - Handler that triggers when the dialog has been submitted or closed.
14
- *
15
- * @beta
16
13
  */
17
14
  export declare function open(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler): void;
18
15
  /**
@@ -21,7 +18,5 @@ export declare function open(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInf
21
18
  * @returns boolean to represent whether dialog.adaptiveCard.bot is supported
22
19
  *
23
20
  * @throws Error if {@linkcode app.initialize} has not successfully completed
24
- *
25
- * @beta
26
21
  */
27
22
  export declare function isSupported(): boolean;
@@ -3,8 +3,6 @@ import * as update from './update';
3
3
  import * as url from './url/url';
4
4
  /**
5
5
  * Data Structure to represent the SDK response when dialog closes
6
- *
7
- * @beta
8
6
  */
9
7
  export interface ISdkResponse {
10
8
  /**
@@ -21,7 +19,6 @@ export interface ISdkResponse {
21
19
  }
22
20
  /**
23
21
  * Handler used to receive and process messages sent between a dialog and the app that launched it
24
- * @beta
25
22
  */
26
23
  export type PostMessageChannel = (message: any) => void;
27
24
  /**
@@ -29,8 +26,6 @@ export type PostMessageChannel = (message: any) => void;
29
26
  * or an error if the dialog was closed by the user.
30
27
  *
31
28
  * @see {@linkcode ISdkResponse}
32
- *
33
- * @beta
34
29
  */
35
30
  export type DialogSubmitHandler = (result: ISdkResponse) => void;
36
31
  /**
@@ -41,8 +36,6 @@ export type DialogSubmitHandler = (result: ISdkResponse) => void;
41
36
  * Function is called during app initialization
42
37
  * @internal
43
38
  * Limited to Microsoft-internal use
44
- *
45
- * @beta
46
39
  */
47
40
  export declare function initialize(): void;
48
41
  /**
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Module to update the dialog
3
3
  *
4
- * @beta
5
4
  * @module
6
5
  */
7
6
  import { DialogSize } from '../interfaces';
@@ -9,8 +8,6 @@ import { DialogSize } from '../interfaces';
9
8
  * Update dimensions - height/width of a dialog.
10
9
  *
11
10
  * @param dimensions - An object containing width and height properties.
12
- *
13
- * @beta
14
11
  */
15
12
  export declare function resize(dimensions: DialogSize): void;
16
13
  /**
@@ -18,7 +15,5 @@ export declare function resize(dimensions: DialogSize): void;
18
15
  * @returns boolean to represent whether dialog.update capabilty is supported
19
16
  *
20
17
  * @throws Error if {@linkcode app.initialize} has not successfully completed
21
- *
22
- * @beta
23
18
  */
24
19
  export declare function isSupported(): boolean;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Module to open a dialog that sends results to the bot framework
3
3
  *
4
- * @beta
5
4
  * @module
6
5
  */
7
6
  import { BotUrlDialogInfo } from '../../interfaces';
@@ -14,8 +13,6 @@ import { DialogSubmitHandler, PostMessageChannel } from '../dialog';
14
13
  * @param messageFromChildHandler - Handler that triggers if dialog sends a message to the app.
15
14
  *
16
15
  * @returns a function that can be used to send messages to the dialog.
17
- *
18
- * @beta
19
16
  */
20
17
  export declare function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
21
18
  /**
@@ -24,7 +21,5 @@ export declare function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?:
24
21
  * @returns boolean to represent whether dialog.url.bot is supported
25
22
  *
26
23
  * @throws Error if {@linkcode app.initialize} has not successfully completed
27
- *
28
- * @beta
29
24
  */
30
25
  export declare function isSupported(): boolean;
@@ -4,7 +4,6 @@
4
4
  * @remarks
5
5
  * Note that dialog can be invoked from parentless scenarios e.g. Search Message Extensions. The subcapability `parentCommunication` is not supported in such scenarios.
6
6
  *
7
- * @beta
8
7
  * @module
9
8
  */
10
9
  import { PostMessageChannel } from '../dialog';
@@ -15,16 +14,12 @@ import { PostMessageChannel } from '../dialog';
15
14
  * This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
16
15
  *
17
16
  * @param message - The message to send to the parent
18
- *
19
- * @beta
20
17
  */
21
18
  export declare function sendMessageToParentFromDialog(message: any): void;
22
19
  /**
23
20
  * Send message to the dialog from the parent
24
21
  *
25
22
  * @param message - The message to send
26
- *
27
- * @beta
28
23
  */
29
24
  export declare function sendMessageToDialog(message: any): void;
30
25
  /**
@@ -34,8 +29,6 @@ export declare function sendMessageToDialog(message: any): void;
34
29
  * This function is only intended to be called from code running within the dialog. Calling it from outside the dialog will have no effect.
35
30
  *
36
31
  * @param listener - The listener that will be triggered.
37
- *
38
- * @beta
39
32
  */
40
33
  export declare function registerOnMessageFromParent(listener: PostMessageChannel): void;
41
34
  /**
@@ -44,7 +37,5 @@ export declare function registerOnMessageFromParent(listener: PostMessageChannel
44
37
  * @returns boolean to represent whether dialog.url.parentCommunication capability is supported
45
38
  *
46
39
  * @throws Error if {@linkcode app.initialize} has not successfully completed
47
- *
48
- * @beta
49
40
  */
50
41
  export declare function isSupported(): boolean;
@@ -11,8 +11,6 @@ import * as parentCommunication from './parentCommunication';
11
11
  * @param urlDialogInfo - An object containing the parameters of the dialog module.
12
12
  * @param submitHandler - Handler that triggers when a dialog calls the {@linkcode submit} function or when the user closes the dialog.
13
13
  * @param messageFromChildHandler - Handler that triggers if dialog sends a message to the app.
14
- *
15
- * @beta
16
14
  */
17
15
  export declare function open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
18
16
  /**
@@ -25,8 +23,6 @@ export declare function open(urlDialogInfo: UrlDialogInfo, submitHandler?: Dialo
25
23
  * If this function is called from a dialog while {@link M365ContentAction} is set in the context object by the host, result will be ignored
26
24
  *
27
25
  * @param appIds - Valid application(s) that can receive the result of the submitted dialogs. Specifying this parameter helps prevent malicious apps from retrieving the dialog result. Multiple app IDs can be specified because a web app from a single underlying domain can power multiple apps across different environments and branding schemes.
28
- *
29
- * @beta
30
26
  */
31
27
  export declare function submit(result?: string | object, appIds?: string | string[]): void;
32
28
  /**
@@ -35,8 +31,6 @@ export declare function submit(result?: string | object, appIds?: string | strin
35
31
  * @returns boolean to represent whether dialog.url module is supported
36
32
  *
37
33
  * @throws Error if {@linkcode app.initialize} has not successfully completed
38
- *
39
- * @beta
40
34
  */
41
35
  export declare function isSupported(): boolean;
42
36
  /**
@@ -87,6 +87,7 @@ interface IRuntimeV4 extends IBaseRuntime {
87
87
  readonly stageView?: {
88
88
  readonly self?: {};
89
89
  };
90
+ readonly store?: {};
90
91
  readonly teams?: {
91
92
  readonly fullTrust?: {
92
93
  readonly joinedTeams?: {};
@@ -1 +1 @@
1
- export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as r from"./private/logs.js";export{r as logs};import*as e from"./private/conversations.js";export{e as conversations};import*as o from"./private/copilot/copilot.js";export{o as copilot};import*as t from"./private/externalAppAuthentication.js";export{t as externalAppAuthentication};import*as p from"./private/externalAppAuthenticationForCEA.js";export{p as externalAppAuthenticationForCEA};import*as i from"./private/externalAppCardActions.js";export{i as externalAppCardActions};import*as s from"./private/externalAppCardActionsForCEA.js";export{s as externalAppCardActionsForCEA};import*as a from"./private/externalAppCommands.js";export{a as externalAppCommands};import*as m from"./private/files.js";export{m as files};import*as n from"./private/meetingRoom.js";export{n as meetingRoom};import*as l from"./private/messageChannels/messageChannels.js";export{l as messageChannels};import*as c from"./private/notifications.js";export{c as notifications};import*as f from"./private/otherAppStateChange.js";export{f as otherAppStateChange};import*as x from"./private/remoteCamera.js";export{x as remoteCamera};import*as u from"./private/appEntity.js";export{u as appEntity};import*as j from"./private/teams/teams.js";export{j as teams};import*as b from"./private/videoEffectsEx.js";export{b as videoEffectsEx};import*as d from"./private/hostEntity/hostEntity.js";export{d as hostEntity};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,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{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.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";import*as g from"./public/liveShareHost.js";export{g as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as v from"./public/authentication.js";export{v as authentication};import*as C from"./public/app/app.js";export{C as app};import*as A from"./public/appInstallDialog.js";export{A as appInstallDialog};import*as h from"./public/barCode.js";export{h as barCode};import*as H from"./public/chat.js";export{H as chat};import*as T from"./public/clipboard.js";export{T as clipboard};import*as y from"./public/dialog/dialog.js";export{y as dialog};import*as E from"./public/nestedAppAuth.js";export{E as nestedAppAuth};import*as S from"./public/geoLocation/geoLocation.js";export{S as geoLocation};import*as F from"./public/pages/pages.js";export{F as pages};import*as I from"./public/menus.js";export{I as menus};import*as w from"./public/media.js";export{w as media};import*as D from"./public/secondaryBrowser.js";export{D as secondaryBrowser};import*as k from"./public/location.js";export{k as location};import*as B from"./public/meeting/meeting.js";export{B as meeting};import*as P from"./public/monetization.js";export{P as monetization};import*as L from"./public/calendar.js";export{L as calendar};import*as M from"./public/mail.js";export{M as mail};import*as z from"./public/teamsAPIs.js";export{z as teamsCore};import*as O from"./public/people.js";export{O as people};import*as U from"./public/profile.js";export{U as profile};import*as V from"./public/videoEffects.js";export{V as videoEffects};import*as W from"./public/search.js";export{W as search};import*as N from"./public/sharing/sharing.js";export{N as sharing};import*as R from"./public/stageView/stageView.js";export{R as stageView};import*as q from"./public/visualMedia/visualMedia.js";export{q as visualMedia};import*as G from"./public/webStorage.js";export{G as webStorage};import*as J from"./public/call.js";export{J as call};import*as K from"./public/appInitialization.js";export{K as appInitialization};import*as Q from"./public/thirdPartyCloudStorage.js";export{Q as thirdPartyCloudStorage};import*as X from"./public/settings.js";export{X as settings};import*as Y from"./public/tasks.js";export{Y as tasks};import*as Z from"./public/marketplace.js";export{Z as marketplace};
1
+ export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as r from"./private/logs.js";export{r as logs};import*as e from"./private/conversations.js";export{e as conversations};import*as o from"./private/copilot/copilot.js";export{o as copilot};import*as t from"./private/externalAppAuthentication.js";export{t as externalAppAuthentication};import*as p from"./private/externalAppAuthenticationForCEA.js";export{p as externalAppAuthenticationForCEA};import*as i from"./private/externalAppCardActions.js";export{i as externalAppCardActions};import*as s from"./private/externalAppCardActionsForCEA.js";export{s as externalAppCardActionsForCEA};import*as a from"./private/externalAppCommands.js";export{a as externalAppCommands};import*as m from"./private/files.js";export{m as files};import*as n from"./private/meetingRoom.js";export{n as meetingRoom};import*as l from"./private/messageChannels/messageChannels.js";export{l as messageChannels};import*as c from"./private/notifications.js";export{c as notifications};import*as f from"./private/otherAppStateChange.js";export{f as otherAppStateChange};import*as x from"./private/remoteCamera.js";export{x as remoteCamera};import*as u from"./private/appEntity.js";export{u as appEntity};import*as j from"./private/teams/teams.js";export{j as teams};import*as b from"./private/videoEffectsEx.js";export{b as videoEffectsEx};import*as d from"./private/hostEntity/hostEntity.js";export{d as hostEntity};import*as g from"./private/store.js";export{g as store};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,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{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.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";import*as v from"./public/liveShareHost.js";export{v as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as C from"./public/authentication.js";export{C as authentication};import*as A from"./public/app/app.js";export{A as app};import*as h from"./public/appInstallDialog.js";export{h as appInstallDialog};import*as H from"./public/barCode.js";export{H as barCode};import*as T from"./public/chat.js";export{T as chat};import*as y from"./public/clipboard.js";export{y as clipboard};import*as E from"./public/dialog/dialog.js";export{E as dialog};import*as S from"./public/nestedAppAuth.js";export{S as nestedAppAuth};import*as F from"./public/geoLocation/geoLocation.js";export{F as geoLocation};import*as I from"./public/pages/pages.js";export{I as pages};import*as w from"./public/menus.js";export{w as menus};import*as D from"./public/media.js";export{D as media};import*as k from"./public/secondaryBrowser.js";export{k as secondaryBrowser};import*as B from"./public/location.js";export{B as location};import*as P from"./public/meeting/meeting.js";export{P as meeting};import*as L from"./public/monetization.js";export{L as monetization};import*as M from"./public/calendar.js";export{M as calendar};import*as z from"./public/mail.js";export{z as mail};import*as O from"./public/teamsAPIs.js";export{O as teamsCore};import*as U from"./public/people.js";export{U as people};import*as V from"./public/profile.js";export{V as profile};import*as W from"./public/videoEffects.js";export{W as videoEffects};import*as N from"./public/search.js";export{N as search};import*as R from"./public/sharing/sharing.js";export{R as sharing};import*as q from"./public/stageView/stageView.js";export{q as stageView};import*as G from"./public/visualMedia/visualMedia.js";export{G as visualMedia};import*as J from"./public/webStorage.js";export{J as webStorage};import*as K from"./public/call.js";export{K as call};import*as Q from"./public/appInitialization.js";export{Q as appInitialization};import*as X from"./public/thirdPartyCloudStorage.js";export{X as thirdPartyCloudStorage};import*as Y from"./public/settings.js";export{Y as settings};import*as Z from"./public/tasks.js";export{Z as tasks};import*as $ from"./public/marketplace.js";export{$ as marketplace};
@@ -1 +1 @@
1
- import{sendMessageToParent as r}from"../internal/communication.js";import{registerHandler as t,removeHandler as n}from"../internal/handlers.js";import{ensureInitialized as i}from"../internal/internalAPIs.js";import{getApiVersionTag as o}from"../internal/telemetry.js";import{isNullOrUndefined as e}from"../internal/typeCheckUtilities.js";import{ErrorCode as p}from"../public/interfaces.js";import{runtime as l}from"../public/runtime.js";function s(r){if(!a())throw new Error(p.NOT_SUPPORTED_ON_PLATFORM.toString());if(e(r))throw new Error(p.INVALID_ARGUMENTS.toString());t(o("v2","otherApp.install"),"otherApp.install",r)}function m(){if(!a())throw new Error(p.NOT_SUPPORTED_ON_PLATFORM.toString());r(o("v2","otherApp.unregisterInstall"),"otherApp.unregisterInstall"),n("otherApp.install")}function a(){return!(!i(l)||!l.supports.otherAppStateChange)}export{a as isSupported,s as registerAppInstallationHandler,m as unregisterAppInstallationHandler};
1
+ import{sendMessageToParent as t,callFunctionInHost as r}from"../internal/communication.js";import{registerHandler as n,removeHandler as o}from"../internal/handlers.js";import{ensureInitialized as i}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{isNullOrUndefined as p}from"../internal/typeCheckUtilities.js";import{ErrorCode as l}from"../public/interfaces.js";import{runtime as s}from"../public/runtime.js";const m="v2";function a(t){if(!A())throw new Error(l.NOT_SUPPORTED_ON_PLATFORM.toString());if(p(t))throw new Error(l.INVALID_ARGUMENTS.toString());n(e(m,"otherApp.install"),"otherApp.install",t)}function f(){if(!A())throw new Error(l.NOT_SUPPORTED_ON_PLATFORM.toString());t(e(m,"otherApp.unregisterInstall"),"otherApp.unregisterInstall"),o("otherApp.install")}function h(t){if(!A())throw new Error(l.NOT_SUPPORTED_ON_PLATFORM.toString());return r("otherApp.notifyInstallCompleted",[t.toString()],e(m,"otherApp.notifyInstallCompleted"))}function A(){return!(!i(s)||!s.supports.otherAppStateChange)}export{A as isSupported,h as notifyInstallCompleted,a as registerAppInstallationHandler,f as unregisterAppInstallationHandler};
@@ -0,0 +1 @@
1
+ import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHost as o}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{AppId as r}from"../public/appId.js";import{FrameContexts as p,errorNotSupportedOnPlatform as n}from"../public/constants.js";import{runtime as l}from"../public/runtime.js";var s;!function(e){e.FullStore="fullstore",e.SpecificStore="specificstore",e.InContextStore="ics",e.AppDetail="appdetail"}(s||(s={}));const c="Invalid store dialog type, but type needed to specify store to open",d="No App Id present, but AppId needed to open AppDetail store",a="No Collection Id present, but CollectionId needed to open a store specific to a collection";function u(u){return e(this,void 0,void 0,(function*(){if(t(l,p.content,p.sidePanel,p.meetingStage),!f())throw n;if(void 0===u||!Object.values(s).includes(u.dialogType))throw new Error(c);if(u.dialogType===s.AppDetail&&!(u.appId instanceof r))throw new Error(d);if(u.dialogType===s.SpecificStore&&!u.collectionId)throw new Error(a);return o("store.open",[u.dialogType,u.appId,u.collectionId],i("v2","store.open"))}))}function f(){return t(l)&&!!l.supports.store}export{s as StoreDialogType,c as errorInvalidDialogType,d as errorMissingAppId,a as errorMissingCollectionId,f as isSupported,u as openStoreExperience};
@@ -1 +1 @@
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
+ import{GlobalVars as t}from"../internal/globalVars.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{HostClientType as o}from"./constants.js";import{runtime as e}from"./runtime.js";function r(){var r;return null!==(r=n(e)&&(e.isNAAChannelRecommended||!(!n(e)||t.hostClientType!==o.android&&t.hostClientType!==o.ios&&t.hostClientType!==o.ipados||!e.isLegacyTeams||!e.supports.nestedAppAuth)))&&void 0!==r&&r}export{r as isNAAChannelRecommended};
@@ -1 +1 @@
1
- import{__rest as o}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{errorRuntimeNotInitialized as e,errorRuntimeNotSupported as s}from"../internal/constants.js";import{GlobalVars as i}from"../internal/globalVars.js";import{getLogger as t}from"../internal/telemetry.js";import{compareSDKVersions as n,deepFreeze as r}from"../internal/utils.js";import{HostClientType as a,teamsMinAdaptiveCardVersion as p}from"./constants.js";const l=t("runtime"),d=4;function u(o){return o.apiVersion===d}function c(o){if(u(o))return!0;throw-1===o.apiVersion?new Error(e):new Error(s)}let g={apiVersion:-1,supports:{}};const m={apiVersion:4,isNAAChannelRecommended:!1,hostVersionsInfo:p,isLegacyTeams:!0,supports:{appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{},parentCommunication:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{config:{},backStack:{},fullTrust:{}},remoteCamera:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},b=[a.desktop,a.web,a.rigel,a.surfaceHub,a.teamsRoomsWindows,a.teamsRoomsAndroid,a.teamsPhones,a.teamsDisplays],y=[a.android,a.ios,a.ipados],f=[...b,...y];function h(o){let e=o;if(e.apiVersion<d&&v.forEach((o=>{e.apiVersion===o.versionToUpgradeFrom&&(e=o.upgradeToNextVersion(e))})),u(e))return e;throw new Error("Received a runtime that could not be upgraded to the latest version")}const v=[{versionToUpgradeFrom:1,upgradeToNextVersion:o=>{var e;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:o.isLegacyTeams,supports:Object.assign(Object.assign({},o.supports),{dialog:o.supports.dialog?{card:void 0,url:o.supports.dialog,update:null===(e=o.supports.dialog)||void 0===e?void 0:e.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:e=>{const s=e.supports,i=o(s,["appNotification"]);return Object.assign(Object.assign({},e),{apiVersion:3,supports:i})}},{versionToUpgradeFrom:3,upgradeToNextVersion:o=>{var e,s,i,t,n;return{apiVersion:4,hostVersionsInfo:o.hostVersionsInfo,isNAAChannelRecommended:o.isNAAChannelRecommended,isLegacyTeams:o.isLegacyTeams,supports:Object.assign(Object.assign({},o.supports),{dialog:o.supports.dialog?{card:null===(e=o.supports.dialog)||void 0===e?void 0:e.card,url:{bot:null===(i=null===(s=o.supports.dialog)||void 0===s?void 0:s.url)||void 0===i?void 0:i.bot,parentCommunication:(null===(t=o.supports.dialog)||void 0===t?void 0:t.url)?{}:void 0},update:null===(n=o.supports.dialog)||void 0===n?void 0:n.update}:void 0})}}}],T={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:b}],"1.9.0":[{capability:{location:{}},hostClientTypes:f}],"2.0.0":[{capability:{people:{}},hostClientTypes:f},{capability:{sharing:{}},hostClientTypes:[a.desktop,a.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[a.android,a.desktop,a.ios,a.teamsRoomsAndroid,a.teamsPhones,a.teamsDisplays,a.web]},{capability:{webStorage:{}},hostClientTypes:[a.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[a.android,a.ios]}],"2.0.8":[{capability:{sharing:{}},hostClientTypes:[a.android,a.ios]}]},V=l.extend("generateBackCompatRuntimeConfig");function C(o,e){const s=Object.assign({},o);for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&("object"!=typeof e[i]||Array.isArray(e[i])?i in o||(s[i]=e[i]):s[i]=C(o[i]||{},e[i]));return s}function j(o,e,s){V("generating back compat runtime config for %s",o);let t=Object.assign({},e.supports);V("Supported capabilities in config before updating based on highestSupportedVersion: %o",t),Object.keys(s).forEach((e=>{n(o,e)>=0&&s[e].forEach((o=>{void 0!==i.hostClientType&&o.hostClientTypes.includes(i.hostClientType)&&(t=C(t,o.capability))}))}));const r={apiVersion:d,hostVersionsInfo:p,isLegacyTeams:!0,supports:t};return V("Runtime config after updating based on highestSupportedVersion: %o",r),r}const w=l.extend("applyRuntimeConfig");function O(o){"string"==typeof o.apiVersion&&(w("Trying to apply runtime with string apiVersion, processing as v1: %o",o),o=Object.assign(Object.assign({},o),{apiVersion:1})),w("Fast-forwarding runtime %o",o);const e=h(o);w("Applying runtime %o",e),g=r(e)}export{O as applyRuntimeConfig,h as fastForwardRuntime,j as generateVersionBasedTeamsRuntimeConfig,c as isRuntimeInitialized,d as latestRuntimeApiVersion,T as mapTeamsVersionToSupportedCapabilities,g as runtime,v as upgradeChain,f as v1HostClientTypes,y as v1MobileHostClientTypes,m as versionAndPlatformAgnosticTeamsRuntimeConfig};
1
+ import{__rest as o}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{errorRuntimeNotInitialized as e,errorRuntimeNotSupported as s}from"../internal/constants.js";import{GlobalVars as i}from"../internal/globalVars.js";import{getLogger as t}from"../internal/telemetry.js";import{compareSDKVersions as n,deepFreeze as a}from"../internal/utils.js";import{HostClientType as r,teamsMinAdaptiveCardVersion as p}from"./constants.js";const l=t("runtime"),d=4;function u(o){return o.apiVersion===d}function c(o){if(u(o))return!0;throw-1===o.apiVersion?new Error(e):new Error(s)}let g={apiVersion:-1,supports:{}};const m={apiVersion:4,isNAAChannelRecommended:!1,hostVersionsInfo:p,isLegacyTeams:!0,supports:{appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{},parentCommunication:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{config:{},backStack:{},fullTrust:{}},remoteCamera:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},b=[r.desktop,r.web,r.rigel,r.surfaceHub,r.teamsRoomsWindows,r.teamsRoomsAndroid,r.teamsPhones,r.teamsDisplays],y=[r.android,r.ios,r.ipados],f=[...b,...y];function h(o){let e=o;if(e.apiVersion<d&&T.forEach((o=>{e.apiVersion===o.versionToUpgradeFrom&&(e=o.upgradeToNextVersion(e))})),u(e))return e;throw new Error("Received a runtime that could not be upgraded to the latest version")}const T=[{versionToUpgradeFrom:1,upgradeToNextVersion:o=>{var e;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:o.isLegacyTeams,supports:Object.assign(Object.assign({},o.supports),{dialog:o.supports.dialog?{card:void 0,url:o.supports.dialog,update:null===(e=o.supports.dialog)||void 0===e?void 0:e.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:e=>{const s=e.supports,i=o(s,["appNotification"]);return Object.assign(Object.assign({},e),{apiVersion:3,supports:i})}},{versionToUpgradeFrom:3,upgradeToNextVersion:o=>{var e,s,i,t,n;return{apiVersion:4,hostVersionsInfo:o.hostVersionsInfo,isNAAChannelRecommended:o.isNAAChannelRecommended,isLegacyTeams:o.isLegacyTeams,supports:Object.assign(Object.assign({},o.supports),{dialog:o.supports.dialog?{card:null===(e=o.supports.dialog)||void 0===e?void 0:e.card,url:{bot:null===(i=null===(s=o.supports.dialog)||void 0===s?void 0:s.url)||void 0===i?void 0:i.bot,parentCommunication:(null===(t=o.supports.dialog)||void 0===t?void 0:t.url)?{}:void 0},update:null===(n=o.supports.dialog)||void 0===n?void 0:n.update}:void 0})}}}],v={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:b}],"1.9.0":[{capability:{location:{}},hostClientTypes:f}],"2.0.0":[{capability:{people:{}},hostClientTypes:f},{capability:{sharing:{}},hostClientTypes:[r.desktop,r.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[r.android,r.desktop,r.ios,r.teamsRoomsAndroid,r.teamsPhones,r.teamsDisplays,r.web]},{capability:{webStorage:{}},hostClientTypes:[r.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[r.android,r.ios]}],"2.0.8":[{capability:{sharing:{}},hostClientTypes:[r.android,r.ios]}],"2.1.1":[{capability:{nestedAppAuth:{}},hostClientTypes:[r.android,r.ios,r.ipados]}]},V=l.extend("generateBackCompatRuntimeConfig");function C(o,e){const s=Object.assign({},o);for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&("object"!=typeof e[i]||Array.isArray(e[i])?i in o||(s[i]=e[i]):s[i]=C(o[i]||{},e[i]));return s}function j(o,e,s){V("generating back compat runtime config for %s",o);let t=Object.assign({},e.supports);V("Supported capabilities in config before updating based on highestSupportedVersion: %o",t),Object.keys(s).forEach((e=>{n(o,e)>=0&&s[e].forEach((o=>{void 0!==i.hostClientType&&o.hostClientTypes.includes(i.hostClientType)&&(t=C(t,o.capability))}))}));const a={apiVersion:d,hostVersionsInfo:p,isLegacyTeams:!0,supports:t};return V("Runtime config after updating based on highestSupportedVersion: %o",a),a}const w=l.extend("applyRuntimeConfig");function A(o){"string"==typeof o.apiVersion&&(w("Trying to apply runtime with string apiVersion, processing as v1: %o",o),o=Object.assign(Object.assign({},o),{apiVersion:1})),w("Fast-forwarding runtime %o",o);const e=h(o);w("Applying runtime %o",e),g=a(e)}export{A as applyRuntimeConfig,h as fastForwardRuntime,j as generateVersionBasedTeamsRuntimeConfig,c as isRuntimeInitialized,d as latestRuntimeApiVersion,v as mapTeamsVersionToSupportedCapabilities,g as runtime,T as upgradeChain,f as v1HostClientTypes,y as v1MobileHostClientTypes,m as versionAndPlatformAgnosticTeamsRuntimeConfig};
@@ -1 +1 @@
1
- const o="2.31.1";export{o as version};
1
+ const t="2.32.0-beta.0";export{t as version};