@microsoft/teams-js 2.58.0 → 2.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +3 -3
- package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +27 -4
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +37 -19
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +29 -1
- package/dist/esm/packages/teams-js/dts/public/localNetworkAccess.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +6 -4
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +4 -1
- package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -1
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- package/dist/esm/packages/teams-js/src/public/interfaces.js +1 -1
- package/dist/esm/packages/teams-js/src/public/localNetworkAccess.js +1 -0
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/umd/MicrosoftTeams.js +164 -28
- 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/README.md
CHANGED
|
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
|
|
|
24
24
|
|
|
25
25
|
### Production
|
|
26
26
|
|
|
27
|
-
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.
|
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.59.0/js/MicrosoftTeams.min.js) or point your package manager at them.
|
|
28
28
|
|
|
29
29
|
## Usage
|
|
30
30
|
|
|
@@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
|
|
|
45
45
|
```html
|
|
46
46
|
<!-- Microsoft Teams JavaScript API (via CDN) -->
|
|
47
47
|
<script
|
|
48
|
-
src="https://res.cdn.office.net/teams-js/2.
|
|
49
|
-
integrity="sha384-
|
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.59.0/js/MicrosoftTeams.min.js"
|
|
49
|
+
integrity="sha384-uF/e/QuPrfS8PQH8Tn/GHTrmwnGuEB7wAGqVCVj8Y39Fgwsz86rr5w4sZ1EN1ewZ"
|
|
50
50
|
crossorigin="anonymous"
|
|
51
51
|
></script>
|
|
52
52
|
|
|
53
53
|
<!-- Microsoft Teams JavaScript API (via npm) -->
|
|
54
|
-
<script src="node_modules/@microsoft/teams-js@2.
|
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.59.0/dist/MicrosoftTeams.min.js"></script>
|
|
55
55
|
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '../public/app/app';
|
|
1
|
+
import { BrandColorPalettes, Context, themeHandler } from '../public/app/app';
|
|
2
2
|
import { FrameContexts } from '../public/constants';
|
|
3
3
|
import { HostToAppPerformanceMetrics, LoadContext, ResumeContext } from '../public/interfaces';
|
|
4
4
|
/**
|
|
@@ -49,7 +49,7 @@ export declare function registerHandlerHelper(apiVersionTag: string, name: strin
|
|
|
49
49
|
* @internal
|
|
50
50
|
* Limited to Microsoft-internal use
|
|
51
51
|
*/
|
|
52
|
-
export declare function registerOnThemeChangeHandler(apiVersionTag: string, handler:
|
|
52
|
+
export declare function registerOnThemeChangeHandler(apiVersionTag: string, handler: themeHandler): void;
|
|
53
53
|
/**
|
|
54
54
|
* @internal
|
|
55
55
|
* Limited to Microsoft-internal use
|
|
@@ -59,7 +59,7 @@ export declare function registerOnContextChangeHandler(apiVersionTag: string, ha
|
|
|
59
59
|
* @internal
|
|
60
60
|
* Limited to Microsoft-internal use
|
|
61
61
|
*/
|
|
62
|
-
export declare function handleThemeChange(theme: string): void;
|
|
62
|
+
export declare function handleThemeChange(theme: string, brandColorPalettes?: BrandColorPalettes): void;
|
|
63
63
|
/**
|
|
64
64
|
* @internal
|
|
65
65
|
* Limited to Microsoft-internal use
|
|
@@ -78,7 +78,9 @@ export declare const enum ApiName {
|
|
|
78
78
|
Call_StartCall = "call.startCall",
|
|
79
79
|
Chat_OpenChat = "chat.openChat",
|
|
80
80
|
Chat_OpenGroupChat = "chat.openGroupChat",
|
|
81
|
+
Clipboard_HasPermission = "clipboard.hasPermission",
|
|
81
82
|
Clipboard_Read = "clipboard.read",
|
|
83
|
+
Clipboard_RequestPermission = "clipboard.requestPermission",
|
|
82
84
|
Clipboard_Write = "clipboard.write",
|
|
83
85
|
ContextualSearch_CloseContextualSearch = "contextualSearch.closeContextualSearch",
|
|
84
86
|
ContextualSearch_OpenContextualSearch = "contextualSearch.openContextualSearch",
|
|
@@ -163,6 +165,8 @@ export declare const enum ApiName {
|
|
|
163
165
|
Interactive_GetNtpTime = "interactive.getNtpTime",
|
|
164
166
|
Interactive_RegisterClientId = "interactive.registerClientId",
|
|
165
167
|
Interactive_SetFluidContainerId = "interactive.setFluidContainerId",
|
|
168
|
+
LocalNetworkAccess_HasPermission = "localNetworkAccess.hasPermission",
|
|
169
|
+
LocalNetworkAccess_RequestPermission = "localNetworkAccess.requestPermission",
|
|
166
170
|
Location_GetLocation = "location.getLocation",
|
|
167
171
|
Location_ShowLocation = "location.showLocation",
|
|
168
172
|
Logs_Receive = "log.receive",
|
|
@@ -92,6 +92,18 @@ export interface IExpectedFailureRequest {
|
|
|
92
92
|
*/
|
|
93
93
|
message?: string;
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* A brand color ramp supplied by the host.
|
|
97
|
+
*/
|
|
98
|
+
export interface BrandColorRamp {
|
|
99
|
+
readonly [shade: string]: string | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Brand color palettes supplied by the host.
|
|
103
|
+
*/
|
|
104
|
+
export interface BrandColorPalettes {
|
|
105
|
+
readonly [format: string]: BrandColorRamp | undefined;
|
|
106
|
+
}
|
|
95
107
|
/**
|
|
96
108
|
* Represents application information.
|
|
97
109
|
*/
|
|
@@ -105,6 +117,14 @@ export interface AppInfo {
|
|
|
105
117
|
* The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".
|
|
106
118
|
*/
|
|
107
119
|
theme: string;
|
|
120
|
+
/**
|
|
121
|
+
* Brand color palettes supplied by the host.
|
|
122
|
+
*
|
|
123
|
+
* Each key identifies a palette format (for example, `"fluentui/v9"`), which defines its required shades and color
|
|
124
|
+
* syntax. Each update replaces the whole map rather than merging with it. `undefined` means no palettes are available,
|
|
125
|
+
* such as after the host clears them.
|
|
126
|
+
*/
|
|
127
|
+
brandColorPalettes?: BrandColorPalettes;
|
|
108
128
|
/**
|
|
109
129
|
* Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.
|
|
110
130
|
*/
|
|
@@ -500,9 +520,11 @@ export interface Context {
|
|
|
500
520
|
dialogParameters: Record<string, string>;
|
|
501
521
|
}
|
|
502
522
|
/**
|
|
503
|
-
*
|
|
523
|
+
* Called when the host sends a theme or brand color palette update.
|
|
524
|
+
*
|
|
525
|
+
* The theme, palettes, or both may change with each update.
|
|
504
526
|
*/
|
|
505
|
-
export type themeHandler = (theme: string) => void;
|
|
527
|
+
export type themeHandler = (theme: string, brandColorPalettes?: BrandColorPalettes) => void;
|
|
506
528
|
/**
|
|
507
529
|
* @hidden
|
|
508
530
|
* This function is passed to registerOnContextChangeHandler. It is called every time the user changes their context.
|
|
@@ -602,12 +624,13 @@ export declare function notifyFailure(appInitializationFailedRequest: IFailedReq
|
|
|
602
624
|
*/
|
|
603
625
|
export declare function notifyExpectedFailure(expectedFailureRequest: IExpectedFailureRequest): void;
|
|
604
626
|
/**
|
|
605
|
-
* Registers a handler for theme
|
|
627
|
+
* Registers a handler for host theme or brand color palette updates.
|
|
606
628
|
*
|
|
607
629
|
* @remarks
|
|
608
630
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
631
|
+
* The theme, palettes, or both may change with each update.
|
|
609
632
|
*
|
|
610
|
-
* @param handler - The handler to
|
|
633
|
+
* @param handler - The handler to call when the host sends an update.
|
|
611
634
|
*/
|
|
612
635
|
export declare function registerOnThemeChangeHandler(handler: themeHandler): void;
|
|
613
636
|
/**
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Interact with the system clipboard
|
|
2
|
+
* Interact with the system clipboard.
|
|
3
3
|
*
|
|
4
|
-
* @
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
|
|
11
|
-
* supported; it depends on native device permission handling that is still being enabled as a
|
|
12
|
-
* separate effort.
|
|
4
|
+
* @remarks
|
|
5
|
+
* The host-brokered {@link read}, {@link write}, and {@link isSupported} APIs are deprecated.
|
|
6
|
+
* For browser-native clipboard reads, use {@link hasPermission} and {@link requestPermission}
|
|
7
|
+
* before calling `navigator.clipboard.read()` from a user gesture.
|
|
8
|
+
* The host must advertise `permissions.clipboardRead` in its runtime configuration to support
|
|
9
|
+
* these permission APIs. The deprecated {@link isSupported} API checks only host-brokered clipboard support.
|
|
13
10
|
*
|
|
14
11
|
* @beta
|
|
15
12
|
* @module
|
|
@@ -23,9 +20,8 @@
|
|
|
23
20
|
* entirely and independently of a TeamsJS major release, so continued functionality is not
|
|
24
21
|
* guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
|
|
25
22
|
* browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* separate effort.
|
|
23
|
+
* For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
|
|
24
|
+
* `navigator.clipboard.read()` from a user gesture.
|
|
29
25
|
*
|
|
30
26
|
* @remarks
|
|
31
27
|
* Note: clipboard.write only supports Text, HTML, PNG, and JPEG data format.
|
|
@@ -46,15 +42,38 @@ export declare function write(blob: Blob): Promise<void>;
|
|
|
46
42
|
* entirely and independently of a TeamsJS major release, so continued functionality is not
|
|
47
43
|
* guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
|
|
48
44
|
* browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* separate effort.
|
|
45
|
+
* For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
|
|
46
|
+
* `navigator.clipboard.read()` from a user gesture.
|
|
52
47
|
*
|
|
53
48
|
* @returns A promise blob which resolves to the data read from the clipboard or
|
|
54
49
|
* rejects stating the reason for failure.
|
|
55
50
|
* Note: Returned blob type will contain one of the MIME type `image/png`, `text/plain` or `text/html`.
|
|
56
51
|
*/
|
|
57
52
|
export declare function read(): Promise<Blob>;
|
|
53
|
+
/**
|
|
54
|
+
* Checks whether the app has permission to read from the system clipboard.
|
|
55
|
+
*
|
|
56
|
+
* @returns A promise that resolves to `true` if clipboard-read permission has been granted,
|
|
57
|
+
* or `false` if permission has not been granted.
|
|
58
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
|
|
59
|
+
*
|
|
60
|
+
* @beta
|
|
61
|
+
*/
|
|
62
|
+
export declare function hasPermission(): Promise<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Requests permission to read from the system clipboard.
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* The host may need to reload the app frame after the permission is first granted before
|
|
68
|
+
* `navigator.clipboard.read()` is available to the existing frame.
|
|
69
|
+
*
|
|
70
|
+
* @returns A promise that resolves to `true` if clipboard-read permission was granted,
|
|
71
|
+
* or `false` if permission was not granted.
|
|
72
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
|
|
73
|
+
*
|
|
74
|
+
* @beta
|
|
75
|
+
*/
|
|
76
|
+
export declare function requestPermission(): Promise<boolean>;
|
|
58
77
|
/**
|
|
59
78
|
* Checks if clipboard capability is supported by the host
|
|
60
79
|
* @returns boolean to represent whether the clipboard capability is supported
|
|
@@ -67,9 +86,8 @@ export declare function read(): Promise<Blob>;
|
|
|
67
86
|
* entirely and independently of a TeamsJS major release, so continued functionality is not
|
|
68
87
|
* guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
|
|
69
88
|
* browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* separate effort.
|
|
89
|
+
* For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
|
|
90
|
+
* `navigator.clipboard.read()` from a user gesture.
|
|
73
91
|
*
|
|
74
92
|
* @beta
|
|
75
93
|
*/
|
|
@@ -21,6 +21,7 @@ export * as menus from './menus';
|
|
|
21
21
|
export * as media from './media';
|
|
22
22
|
export * as secondaryBrowser from './secondaryBrowser';
|
|
23
23
|
export * as location from './location';
|
|
24
|
+
export * as localNetworkAccess from './localNetworkAccess';
|
|
24
25
|
export * as meeting from './meeting/meeting';
|
|
25
26
|
export * as monetization from './monetization';
|
|
26
27
|
export * as calendar from './calendar';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HostFeatures } from './app/app';
|
|
1
|
+
import type { BrandColorPalettes, HostFeatures } from './app/app';
|
|
2
2
|
import { ChannelType, DialogDimension, HostClientType, HostName, RenderingSurfaces, TeamType, UserTeamRole } from './constants';
|
|
3
3
|
import { FrameContexts } from './constants';
|
|
4
4
|
/**
|
|
@@ -379,6 +379,18 @@ export interface Context {
|
|
|
379
379
|
* The current UI theme.
|
|
380
380
|
*/
|
|
381
381
|
theme?: string;
|
|
382
|
+
/**
|
|
383
|
+
* @deprecated
|
|
384
|
+
* As of TeamsJS v2.0.0, please use
|
|
385
|
+
* {@link app.AppInfo.brandColorPalettes | app.Context.app.brandColorPalettes} instead
|
|
386
|
+
*
|
|
387
|
+
* Brand color palettes supplied by the host.
|
|
388
|
+
*
|
|
389
|
+
* Each key identifies a palette format (for example, `"fluentui/v9"`), which defines its required shades and color
|
|
390
|
+
* syntax. Each update replaces the whole map rather than merging with it. `undefined` means no palettes are available,
|
|
391
|
+
* such as after the host clears them.
|
|
392
|
+
*/
|
|
393
|
+
brandColorPalettes?: BrandColorPalettes;
|
|
382
394
|
/**
|
|
383
395
|
* @deprecated
|
|
384
396
|
* As of TeamsJS v2.0.0, please use {@link app.PageInfo.isFullScreen | app.Context.page.isFullScreen} instead
|
|
@@ -1016,7 +1028,23 @@ export declare enum ErrorCode {
|
|
|
1016
1028
|
}
|
|
1017
1029
|
/** @hidden */
|
|
1018
1030
|
export declare enum DevicePermission {
|
|
1031
|
+
/**
|
|
1032
|
+
* Permission to read the contents of the system clipboard.
|
|
1033
|
+
*
|
|
1034
|
+
* @remarks
|
|
1035
|
+
* This is the app manifest and TeamsJS wire value. The browser Permissions-Policy
|
|
1036
|
+
* directive uses the separate `clipboard-read` spelling.
|
|
1037
|
+
*/
|
|
1038
|
+
ClipboardRead = "clipboardRead",
|
|
1019
1039
|
GeoLocation = "geolocation",
|
|
1040
|
+
/**
|
|
1041
|
+
* Permission to access devices on the user's local network.
|
|
1042
|
+
*
|
|
1043
|
+
* @remarks
|
|
1044
|
+
* This is the TeamsJS wire value. The browser Permissions-Policy directive uses the separate
|
|
1045
|
+
* `local-network-access` spelling.
|
|
1046
|
+
*/
|
|
1047
|
+
LocalNetworkAccess = "localNetworkAccess",
|
|
1020
1048
|
Media = "media"
|
|
1021
1049
|
}
|
|
1022
1050
|
/** @hidden */
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* APIs for requesting permission to access devices on the user's local network.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* The TeamsJS permission value is `localNetworkAccess`. The browser Permissions-Policy directive
|
|
6
|
+
* uses the separate `local-network-access` spelling.
|
|
7
|
+
*
|
|
8
|
+
* @beta
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Checks whether the app has permission to access devices on the user's local network.
|
|
13
|
+
*
|
|
14
|
+
* @returns A promise that resolves to `true` if local network access permission has been granted,
|
|
15
|
+
* or `false` otherwise.
|
|
16
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
|
|
17
|
+
*
|
|
18
|
+
* @beta
|
|
19
|
+
*/
|
|
20
|
+
export declare function hasPermission(): Promise<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* Requests permission to access devices on the user's local network.
|
|
23
|
+
*
|
|
24
|
+
* @returns A promise that resolves to `true` if local network access permission was granted,
|
|
25
|
+
* or `false` otherwise.
|
|
26
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
|
|
27
|
+
*
|
|
28
|
+
* @beta
|
|
29
|
+
*/
|
|
30
|
+
export declare function requestPermission(): Promise<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Checks whether the host supports local network access permission.
|
|
33
|
+
*
|
|
34
|
+
* @returns `true` if the host advertises local network access permission support, or `false` otherwise.
|
|
35
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed.
|
|
36
|
+
*
|
|
37
|
+
* @beta
|
|
38
|
+
*/
|
|
39
|
+
export declare function isSupported(): boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BrandColorPalettes } from './app/app';
|
|
1
2
|
import { Context, DeepLinkParameters, FrameContext, LoadContext, TabInformation, TabInstanceParameters } from './interfaces';
|
|
2
3
|
/** Type of callback used to indicate when {@link executeDeepLink} completes */
|
|
3
4
|
export type executeDeepLinkOnCompleteFunctionType = (status: boolean, reason?: string) => void;
|
|
@@ -11,8 +12,8 @@ export type getTabInstancesCallbackFunctionType = (tabInfo: TabInformation) => v
|
|
|
11
12
|
export type registerBackButtonHandlerFunctionType = () => boolean;
|
|
12
13
|
/** Register full screen handler function type */
|
|
13
14
|
export type registerFullScreenHandlerFunctionType = (isFullScreen: boolean) => void;
|
|
14
|
-
/**
|
|
15
|
-
export type registerOnThemeChangeHandlerFunctionType = (theme: string) => void;
|
|
15
|
+
/** Called when the host sends a theme or brand color palette update. */
|
|
16
|
+
export type registerOnThemeChangeHandlerFunctionType = (theme: string, brandColorPalettes?: BrandColorPalettes) => void;
|
|
16
17
|
/**
|
|
17
18
|
* @deprecated
|
|
18
19
|
* As of TeamsJS v2.0.0, please use {@link app.initialize app.initialize(validMessageOrigins?: string[]): Promise\<void\>} instead.
|
|
@@ -53,10 +54,11 @@ export declare function getContext(callback: getContextCallbackFunctionType): vo
|
|
|
53
54
|
* @deprecated
|
|
54
55
|
* As of TeamsJS v2.0.0, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: registerOnThemeChangeHandlerFunctionType): void} instead.
|
|
55
56
|
*
|
|
56
|
-
* Registers a handler for theme
|
|
57
|
+
* Registers a handler for host theme or brand color palette updates.
|
|
57
58
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
59
|
+
* The theme, palettes, or both may change with each update.
|
|
58
60
|
*
|
|
59
|
-
* @param handler - The handler to
|
|
61
|
+
* @param handler - The handler to call when the host sends an update.
|
|
60
62
|
*/
|
|
61
63
|
export declare function registerOnThemeChangeHandler(handler: registerOnThemeChangeHandlerFunctionType): void;
|
|
62
64
|
/**
|
|
@@ -89,7 +89,10 @@ interface IRuntimeV4 extends IBaseRuntime {
|
|
|
89
89
|
};
|
|
90
90
|
readonly people?: {};
|
|
91
91
|
readonly plugins?: {};
|
|
92
|
-
readonly permissions?: {
|
|
92
|
+
readonly permissions?: {
|
|
93
|
+
readonly clipboardRead?: {};
|
|
94
|
+
readonly localNetworkAccess?: {};
|
|
95
|
+
};
|
|
93
96
|
readonly profile?: {};
|
|
94
97
|
readonly remoteCamera?: {};
|
|
95
98
|
readonly search?: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var o=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate.office.com","copilot-connectors.core.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"],c={validOrigins:o};export{c as default,o as validOrigins};
|
|
1
|
+
var o=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate.office.com","copilot-connectors.core.microsoft","copilotstudio.microsoft.com","copilotstudio.preview.microsoft.com","copilotstudio.preprod.microsoft.com","copilotstudio.test.microsoft.com","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"],c={validOrigins:o};export{c as default,o as validOrigins};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as e from"./private/externalAppAuthentication.js";export{e as externalAppAuthentication};export{UserAuthenticationState}from"./private/externalAppAuthentication.js";import*as r from"./private/logs.js";export{r as logs};import*as t from"./private/contextualSearch.js";export{t as contextualSearch};import*as o from"./private/conversations.js";export{o as conversations};import*as p from"./private/copilot/copilot.js";export{p as copilot};import*as i from"./private/copilot/sidePanelInterfaces.js";export{i as sidePanelInterfaces};import*as a from"./private/externalAppAuthenticationForCEA.js";export{a as externalAppAuthenticationForCEA};import*as s from"./private/externalAppCardActions.js";export{s as externalAppCardActions};import*as m from"./private/externalAppCardActionsForCEA.js";export{m as externalAppCardActionsForCEA};import*as n from"./private/externalAppCardActionsForDA.js";export{n as externalAppCardActionsForDA};import*as l from"./private/externalAppCommands.js";export{l as externalAppCommands};import*as c from"./private/files.js";export{c as files};import*as f from"./private/meetingRoom.js";export{f as meetingRoom};import*as u from"./private/messageChannels/messageChannels.js";export{u as messageChannels};import*as x from"./private/nestedAppAuth/nestedAppAuthBridge.js";export{x as nestedAppAuthBridge};import*as j from"./private/notifications.js";export{j as notifications};import*as d from"./private/otherAppStateChange.js";export{d as otherAppStateChange};import*as g from"./private/plugins.js";export{g as plugins};import*as b from"./private/remoteCamera.js";export{b as remoteCamera};import*as v from"./private/appEntity.js";export{v as appEntity};import*as A from"./private/teams/teams.js";export{A as teams};import*as C from"./private/videoEffectsEx.js";export{C as videoEffectsEx};import*as h from"./private/hostEntity/hostEntity.js";export{h as hostEntity};import*as S from"./private/store.js";export{S as store};import*as H from"./private/widgetHosting/widgetHosting.js";export{H as widgetHosting};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,RenderingSurfaces,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,EduType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{activateChildProxyingCommunication,getCurrentFeatureFlagsState,overwriteFeatureFlagsState,setFeatureFlagsState}from"./public/featureFlags.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{ValidatedSafeString}from"./public/validatedSafeString.js";export{version}from"./public/version.js";export{enablePrintCapability,executeDeepLink,getContext,getMruTabInstances,getTabInstances,initialize,initializeWithFrameContext,print,registerAppButtonClickHandler,registerAppButtonHoverEnterHandler,registerAppButtonHoverLeaveHandler,registerBackButtonHandler,registerBeforeUnloadHandler,registerChangeSettingsHandler,registerFocusEnterHandler,registerFullScreenHandler,registerOnLoadHandler,registerOnThemeChangeHandler,setFrameContext,shareDeepLink}from"./public/publicAPIs.js";export{navigateBack,navigateCrossDomain,navigateToTab,returnFocus}from"./public/navigation.js";export{UUID}from"./public/uuidObject.js";import*as y from"./public/liveShareHost.js";export{y as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as F from"./public/authentication.js";export{F as authentication};import*as T from"./public/app/app.js";export{T as app};import*as E from"./public/appPerformanceMetrics.js";export{E as appPerformanceMetrics};import*as w from"./public/appInstallDialog.js";export{w as appInstallDialog};import*as I from"./public/barCode.js";export{I as barCode};import*as D from"./public/chat.js";export{D as chat};import*as P from"./public/clipboard.js";export{P as clipboard};import*as
|
|
1
|
+
export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as e from"./private/externalAppAuthentication.js";export{e as externalAppAuthentication};export{UserAuthenticationState}from"./private/externalAppAuthentication.js";import*as r from"./private/logs.js";export{r as logs};import*as t from"./private/contextualSearch.js";export{t as contextualSearch};import*as o from"./private/conversations.js";export{o as conversations};import*as p from"./private/copilot/copilot.js";export{p as copilot};import*as i from"./private/copilot/sidePanelInterfaces.js";export{i as sidePanelInterfaces};import*as a from"./private/externalAppAuthenticationForCEA.js";export{a as externalAppAuthenticationForCEA};import*as s from"./private/externalAppCardActions.js";export{s as externalAppCardActions};import*as m from"./private/externalAppCardActionsForCEA.js";export{m as externalAppCardActionsForCEA};import*as n from"./private/externalAppCardActionsForDA.js";export{n as externalAppCardActionsForDA};import*as l from"./private/externalAppCommands.js";export{l as externalAppCommands};import*as c from"./private/files.js";export{c as files};import*as f from"./private/meetingRoom.js";export{f as meetingRoom};import*as u from"./private/messageChannels/messageChannels.js";export{u as messageChannels};import*as x from"./private/nestedAppAuth/nestedAppAuthBridge.js";export{x as nestedAppAuthBridge};import*as j from"./private/notifications.js";export{j as notifications};import*as d from"./private/otherAppStateChange.js";export{d as otherAppStateChange};import*as g from"./private/plugins.js";export{g as plugins};import*as b from"./private/remoteCamera.js";export{b as remoteCamera};import*as v from"./private/appEntity.js";export{v as appEntity};import*as A from"./private/teams/teams.js";export{A as teams};import*as C from"./private/videoEffectsEx.js";export{C as videoEffectsEx};import*as h from"./private/hostEntity/hostEntity.js";export{h as hostEntity};import*as S from"./private/store.js";export{S as store};import*as H from"./private/widgetHosting/widgetHosting.js";export{H as widgetHosting};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,RenderingSurfaces,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,EduType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{activateChildProxyingCommunication,getCurrentFeatureFlagsState,overwriteFeatureFlagsState,setFeatureFlagsState}from"./public/featureFlags.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{ValidatedSafeString}from"./public/validatedSafeString.js";export{version}from"./public/version.js";export{enablePrintCapability,executeDeepLink,getContext,getMruTabInstances,getTabInstances,initialize,initializeWithFrameContext,print,registerAppButtonClickHandler,registerAppButtonHoverEnterHandler,registerAppButtonHoverLeaveHandler,registerBackButtonHandler,registerBeforeUnloadHandler,registerChangeSettingsHandler,registerFocusEnterHandler,registerFullScreenHandler,registerOnLoadHandler,registerOnThemeChangeHandler,setFrameContext,shareDeepLink}from"./public/publicAPIs.js";export{navigateBack,navigateCrossDomain,navigateToTab,returnFocus}from"./public/navigation.js";export{UUID}from"./public/uuidObject.js";import*as y from"./public/liveShareHost.js";export{y as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as F from"./public/authentication.js";export{F as authentication};import*as T from"./public/app/app.js";export{T as app};import*as E from"./public/appPerformanceMetrics.js";export{E as appPerformanceMetrics};import*as w from"./public/appInstallDialog.js";export{w as appInstallDialog};import*as I from"./public/barCode.js";export{I as barCode};import*as D from"./public/chat.js";export{D as chat};import*as P from"./public/clipboard.js";export{P as clipboard};import*as k from"./public/dialog/dialog.js";export{k as dialog};import*as B from"./public/nestedAppAuth.js";export{B as nestedAppAuth};import*as L from"./public/geoLocation/geoLocation.js";export{L as geoLocation};import*as M from"./public/pages/pages.js";export{M as pages};import*as U from"./public/menus.js";export{U as menus};import*as O from"./public/media.js";export{O as media};import*as R from"./public/secondaryBrowser.js";export{R as secondaryBrowser};import*as V from"./public/location.js";export{V as location};import*as z from"./public/localNetworkAccess.js";export{z as localNetworkAccess};import*as N from"./public/meeting/meeting.js";export{N as meeting};import*as W from"./public/monetization.js";export{W as monetization};import*as q from"./public/calendar.js";export{q as calendar};import*as G from"./public/mail/mail.js";export{G as mail};import*as J from"./public/teamsAPIs.js";export{J as teamsCore};import*as K from"./public/people.js";export{K as people};import*as Q from"./public/profile.js";export{Q as profile};import*as X from"./public/videoEffects.js";export{X as videoEffects};import*as Y from"./public/search.js";export{Y as search};import*as Z from"./public/sharing/sharing.js";export{Z as sharing};import*as $ from"./public/stageView/stageView.js";export{$ as stageView};import*as _ from"./public/visualMedia/visualMedia.js";export{_ as visualMedia};import*as ee from"./public/webStorage.js";export{ee as webStorage};import*as re from"./public/call.js";export{re as call};import*as te from"./public/appInitialization.js";export{te as appInitialization};import*as oe from"./public/thirdPartyCloudStorage.js";export{oe as thirdPartyCloudStorage};import*as pe from"./public/settings.js";export{pe as settings};import*as ie from"./public/tasks.js";export{ie as tasks};import*as ae from"./public/marketplace.js";export{ae as marketplace};import*as se from"./public/mouseRelay.js";export{se as mouseRelay};import*as me from"./public/shortcutRelay.js";export{me as shortcutRelay};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{getApiVersionTag as n,getLogger as r}from"./telemetry.js";import{runtime as l}from"../public/runtime.js";import{shouldEventBeRelayedToChild as
|
|
1
|
+
import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{getApiVersionTag as n,getLogger as r}from"./telemetry.js";import{runtime as l}from"../public/runtime.js";import{shouldEventBeRelayedToChild as t,sendMessageEventToChild as a}from"./childCommunication.js";import{sendMessageToParent as o}from"./communication.js";import{ensureInitialized as d}from"./internalAPIs.js";import{initializeBackStackHelper as i}from"./pagesHelpers.js";import{isNullOrUndefined as s}from"./typeCheckUtilities.js";const u=r("handlers");class c{static initializeHandlers(){c.handlers.themeChange=v,c.handlers.contextChange=x,c.handlers.load=S,c.handlers.beforeUnload=A,i()}static uninitializeHandlers(){c.handlers={},c.themeChangeHandler=null,c.beforeUnloadHandler=null,c.beforeSuspendOrTerminateHandler=null,c.resumeHandler=null,c.contextChangeHandler=null}}function f(){c.initializeHandlers()}function m(){c.uninitializeHandlers()}c.handlers={},c.themeChangeHandler=null,c.loadHandler=null,c.beforeUnloadHandler=null,c.beforeSuspendOrTerminateHandler=null,c.resumeHandler=null,c.hostToAppPerformanceMetricsHandler=null,c.contextChangeHandler=null;const H=u.extend("callHandler");function h(e,n){const r=c.handlers[e];if(r){H("Invoking the registered handler for message %s with arguments %o",e,n);return[!0,r.apply(this,n)]}return t()?(a(e,n),[!1,void 0]):(H("Handler for action message %s not found.",e),[!1,void 0])}function p(e,n,r,l=!0,t=[]){r?(c.handlers[n]=r,l&&o(e,"registerHandler",[n,...t])):delete c.handlers[n]}function g(e){delete c.handlers[e]}function b(e){return null!=c.handlers[e]}function C(e,n,r,t,a){r&&d(l,...t),a&&a(),p(e,n,r)}function U(e,n){c.themeChangeHandler=n,!s(n)&&o(e,"registerHandler",["themeChange"])}function T(e,n){c.contextChangeHandler=n,!s(n)&&o(e,"registerHandler",["contextChange"])}function v(e,n){const r=!s(n);c.themeChangeHandler&&c.themeChangeHandler(e,r?n:void 0),t()&&a("themeChange",r?[e,n]:[e])}function x(e){c.contextChangeHandler&&c.contextChangeHandler(e),t()&&a("contextChange",[e])}function y(e){c.hostToAppPerformanceMetricsHandler=e}function j(e){c.hostToAppPerformanceMetricsHandler&&c.hostToAppPerformanceMetricsHandler(e)}function O(e,n){c.loadHandler=n,!s(n)&&o(e,"registerHandler",["load"])}function S(e){const n={entityId:(r=e).entityId,contentUrl:new URL(r.contentUrl)};var r;c.resumeHandler?(c.resumeHandler(n),t()&&a("load",[n])):c.loadHandler&&(c.loadHandler(e),t()&&a("load",[e]))}function _(e,n){c.beforeUnloadHandler=n,!s(n)&&o(e,"registerHandler",["beforeUnload"])}function A(){return e(this,void 0,void 0,function*(){const e=()=>{o(n("v2","handleBeforeUnload"),"readyToUnload",[])};c.beforeSuspendOrTerminateHandler?(yield c.beforeSuspendOrTerminateHandler(),t()?a("beforeUnload"):e()):c.beforeUnloadHandler&&c.beforeUnloadHandler(e)||(t()?a("beforeUnload"):e())})}function P(e){c.beforeSuspendOrTerminateHandler=e,!s(e)&&o(n("v2","registerBeforeSuspendOrTerminateHandler"),"registerHandler",["beforeUnload"])}function z(e){c.resumeHandler=e,!s(e)&&o(n("v2","registerOnResumeHandler"),"registerHandler",["load"])}export{h as callHandler,b as doesHandlerExist,x as handleContextChange,j as handleHostToAppPerformanceMetrics,v as handleThemeChange,f as initializeHandlers,P as registerBeforeSuspendOrTerminateHandler,_ as registerBeforeUnloadHandler,p as registerHandler,C as registerHandlerHelper,y as registerHostToAppPerformanceMetricsHandler,T as registerOnContextChangeHandler,O as registerOnLoadHandler,z as registerOnResumeHandler,U as registerOnThemeChangeHandler,g as removeHandler,m as uninitializeHandlers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{appInitializeHelper as e,notifyAppLoadedHelper as i,notifySuccessHelper as t,notifyFailureHelper as n,notifyExpectedFailureHelper as a,registerOnThemeChangeHandlerHelper as o,registerOnContextChangeHandlerHelper as r,openLinkHelper as s}from"../../internal/appHelpers.js";import{uninitializeCommunication as l,sendAndUnwrap as m,Communication as d}from"../../internal/communication.js";import{GlobalVars as p}from"../../internal/globalVars.js";import{uninitializeHandlers as u,registerHostToAppPerformanceMetricsHandler as c}from"../../internal/handlers.js";import{ensureInitializeCalled as f}from"../../internal/internalAPIs.js";import{getLogger as h,getApiVersionTag as g}from"../../internal/telemetry.js";import{inServerSideRenderingEnvironment as I}from"../../internal/utils.js";import{AppId as y}from"../appId.js";import{HostClientType as S,HostName as T}from"../constants.js";import{version as
|
|
1
|
+
import{appInitializeHelper as e,notifyAppLoadedHelper as i,notifySuccessHelper as t,notifyFailureHelper as n,notifyExpectedFailureHelper as a,registerOnThemeChangeHandlerHelper as o,registerOnContextChangeHandlerHelper as r,openLinkHelper as s}from"../../internal/appHelpers.js";import{uninitializeCommunication as l,sendAndUnwrap as m,Communication as d}from"../../internal/communication.js";import{GlobalVars as p}from"../../internal/globalVars.js";import{uninitializeHandlers as u,registerHostToAppPerformanceMetricsHandler as c}from"../../internal/handlers.js";import{ensureInitializeCalled as f}from"../../internal/internalAPIs.js";import{getLogger as h,getApiVersionTag as g}from"../../internal/telemetry.js";import{inServerSideRenderingEnvironment as I}from"../../internal/utils.js";import{AppId as y}from"../appId.js";import{HostClientType as S,HostName as T}from"../constants.js";import{version as C}from"../version.js";import*as v from"./lifecycle.js";export{v as lifecycle};import{_clearTelemetryPort as P}from"../../private/messageChannels/telemetry.js";import{_clearDataLayerPort as w}from"../../private/messageChannels/dataLayer.js";const j="v2",O=h("app"),N={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"};var b,F;function x(){return p.initializeCompleted}function L(){return p.frameContext}function A(i){return e(g(j,"app.initialize"),i)}function z(){var e,i;if(I())return null;const t=null!==(e=d.currentWindow)&&void 0!==e?e:window;if(t.parent===t)return null;const n=t.location.ancestorOrigins,a=null==n?void 0:n.item(0);if(a)return a;const o=null===(i=t.document)||void 0===i?void 0:i.referrer;if(!o)return null;try{const e=new URL(o).origin;return e===t.location.origin?null:e}catch(e){return null}}function D(e){d.currentWindow=e}function k(){p.initializeCalled&&(u(),p.initializeCalled=!1,p.initializeCompleted=!1,p.initializePromise=void 0,p.additionalValidOrigins=[],p.frameContext=void 0,p.hostClientType=void 0,p.isFramelessWindow=!1,P(),w(),l())}function U(){return new Promise(e=>{f(),e(m(g(j,"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",brandColorPalettes:e.brandColorPalettes,iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,messageId:e.messageId,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userClickTimeV2:e.userClickTimeV2,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:T.teams,clientType:e.hostClientType?e.hostClientType:S.web,features:e.hostFeatures,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId,ancestors:e.hostAncestors},appLaunchId:e.appLaunchId,appId:e.appId?new y(e.appId):void 0,manifestVersion:e.manifestVersion},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:p.frameContext,renderingSurface:e.renderingSurface?e.renderingSurface:void 0,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 H(){f(),i(g(j,"app.notifyAppLoaded"))}function V(){return t(g(j,"app.notifySuccess"))}function E(e){f(),n(g(j,"app.notifyFailure"),e)}function M(e){f(),a(g(j,"app.notifyExpectedFailure"),e)}function W(e){o(g(j,"app.registerOnThemeChangeHandler"),e)}function R(e){r(g(j,"app.registerOnContextChangeHandler"),e)}function B(e){c(e)}function G(e){return s(g(j,"app.openLink"),e)}!function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(b||(b={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(F||(F={})),O("teamsjs instance is version %s, starting at %s UTC (%s local)",C,(new Date).toISOString(),(new Date).toLocaleString()),function(){if(I())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?O("teamsjs is being used from %s. %s",i,t):O("teamsjs is being used from a script tag embedded directly in your html. %s",t)}();export{F as ExpectedFailureReason,b as FailedReason,N as Messages,D as _initialize,k as _uninitialize,U as getContext,L as getFrameContext,z as getImmediateParentOrigin,A as initialize,x as isInitialized,H as notifyAppLoaded,M as notifyExpectedFailure,E as notifyFailure,V as notifySuccess,G as openLink,B as registerHostToAppPerformanceMetricsHandler,R as registerOnContextChangeHandler,W as registerOnThemeChangeHandler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndHandleSdkError as r}from"../internal/communication.js";import{GlobalVars as
|
|
1
|
+
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndHandleSdkError as r}from"../internal/communication.js";import{GlobalVars as o}from"../internal/globalVars.js";import{ensureInitialized as i}from"../internal/internalAPIs.js";import{getApiVersionTag as e}from"../internal/telemetry.js";import{getBase64StringFromBlob as n,base64ToBlob as s}from"../internal/utils.js";import{FrameContexts as p,errorNotSupportedOnPlatform as a}from"./constants.js";import{ClipboardSupportedMimeType as l,DevicePermission as c}from"./interfaces.js";import{runtime as m}from"./runtime.js";const d="v2";function u(o){return t(this,void 0,void 0,function*(){if(i(m,p.content,p.meetingStage,p.task,p.settings,p.stage,p.sidePanel),!g())throw a;if(!o.type||!Object.values(l).includes(o.type))throw new Error(`Blob type ${o.type} is not supported. Supported blob types are ${Object.values(l)}`);const t=yield n(o),s={mimeType:o.type,content:t};return r(e(d,"clipboard.write"),"clipboard.writeToClipboard",s)})}function f(){return t(this,void 0,void 0,function*(){i(m,p.content,p.meetingStage,p.task,p.settings,p.stage,p.sidePanel);const t=e(d,"clipboard.read");if(!g())throw a;const o=yield r(t,"clipboard.readFromClipboard");if("string"==typeof o){const t=JSON.parse(o);return s(t.mimeType,t.content)}return o})}function b(){if(i(m,p.content,p.task),!v())throw a;const t=c.ClipboardRead;return r(e(d,"clipboard.hasPermission"),"permissions.has",t)}function y(){if(i(m,p.content,p.task),!v())throw a;const t=c.ClipboardRead;return r(e(d,"clipboard.requestPermission"),"permissions.request",t)}function g(){return o.isFramelessWindow?!(!i(m)||!m.supports.clipboard):!!(i(m)&&navigator&&navigator.clipboard&&m.supports.clipboard)}function v(){var t;return i(m)&&!!(null===(t=m.supports.permissions)||void 0===t?void 0:t.clipboardRead)}export{b as hasPermission,g as isSupported,f as read,y as requestPermission,u as write};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,n,
|
|
1
|
+
var t,e,n,E,o,R,O,T,N,i;function _(t){return void 0!==(null==t?void 0:t.errorCode)}!function(t){t.Inline="inline",t.Desktop="desktop",t.Web="web"}(t||(t={})),function(t){t.M365Content="m365content"}(e||(e={})),function(t){t.DriveId="driveId",t.GroupId="groupId",t.SiteId="siteId",t.UserId="userId"}(n||(n={})),function(t){t[t.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",t[t.INTERNAL_ERROR=500]="INTERNAL_ERROR",t[t.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",t[t.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",t[t.NETWORK_ERROR=2e3]="NETWORK_ERROR",t[t.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",t[t.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",t[t.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",t[t.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",t[t.THROTTLE=7e3]="THROTTLE",t[t.USER_ABORT=8e3]="USER_ABORT",t[t.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",t[t.OLD_PLATFORM=9e3]="OLD_PLATFORM",t[t.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",t[t.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(E||(E={})),function(t){t.ClipboardRead="clipboardRead",t.GeoLocation="geolocation",t.LocalNetworkAccess="localNetworkAccess",t.Media="media"}(o||(o={})),function(t){t.BCAIS="bcais",t.BCWAF="bcwaf",t.BCWBF="bcwbf"}(R||(R={})),function(t){t.Faculty="faculty",t.Student="student",t.Other="other"}(O||(O={})),function(t){t.Adult="adult",t.MinorNoParentalConsentRequired="minorNoParentalConsentRequired",t.MinorWithoutParentalConsent="minorWithoutParentalConsent",t.MinorWithParentalConsent="minorWithParentalConsent",t.NotAdult="notAdult",t.NonAdult="notAdult"}(T||(T={})),function(t){t.HigherEducation="higherEducation",t.K12="k12",t.Other="other"}(N||(N={})),function(t){t.TextPlain="text/plain",t.TextHtml="text/html",t.ImagePNG="image/png",t.ImageJPEG="image/jpeg"}(i||(i={}));export{e as ActionObjectType,i as ClipboardSupportedMimeType,R as Cohort,o as DevicePermission,N as EduType,E as ErrorCode,t as FileOpenPreference,T as LegalAgeGroupClassification,O as Persona,n as SecondaryM365ContentIdName,_ as isSdkError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sendAndHandleSdkError as r}from"../internal/communication.js";import{ensureInitialized as o}from"../internal/internalAPIs.js";import{getApiVersionTag as s}from"../internal/telemetry.js";import{FrameContexts as t,errorNotSupportedOnPlatform as e}from"./constants.js";import{DevicePermission as n}from"./interfaces.js";import{runtime as i}from"./runtime.js";function c(){if(o(i,t.content,t.task),!a())throw e;return r(s("v2","localNetworkAccess.hasPermission"),"permissions.has",n.LocalNetworkAccess)}function m(){if(o(i,t.content,t.task),!a())throw e;return r(s("v2","localNetworkAccess.requestPermission"),"permissions.request",n.LocalNetworkAccess)}function a(){var r;return o(i)&&!!(null===(r=i.supports.permissions)||void 0===r?void 0:r.localNetworkAccess)}export{c as hasPermission,a as isSupported,m as requestPermission};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.
|
|
1
|
+
const o="2.59.0";export{o as version};
|