@microsoft/teams-js 2.6.0 → 2.7.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/MicrosoftTeams.d.ts +33 -4
- package/dist/MicrosoftTeams.js +1064 -921
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -34
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.6.
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.6.1/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.6.
|
49
|
-
integrity="sha384-
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.6.1/js/MicrosoftTeams.min.js"
|
49
|
+
integrity="sha384-udTrn6S/rny1uAfOzuOBq5nmDhkcty80OMEEKN9h0RhFF2N3o5SvkDrZWdY0xT31"
|
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.6.
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.6.1/dist/MicrosoftTeams.min.js"></script>
|
55
55
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -131,7 +131,7 @@ export interface FilePreviewParameters {
|
|
131
131
|
* @internal
|
132
132
|
* Limited to Microsoft-internal use
|
133
133
|
*/
|
134
|
-
entityId
|
134
|
+
entityId?: string;
|
135
135
|
/**
|
136
136
|
* @hidden
|
137
137
|
* The display name of the file.
|
@@ -139,7 +139,7 @@ export interface FilePreviewParameters {
|
|
139
139
|
* @internal
|
140
140
|
* Limited to Microsoft-internal use
|
141
141
|
*/
|
142
|
-
title
|
142
|
+
title?: string;
|
143
143
|
/**
|
144
144
|
* @hidden
|
145
145
|
* An optional description of the file.
|
@@ -2505,6 +2505,35 @@ export namespace authentication {
|
|
2505
2505
|
* Limited to Microsoft-internal use
|
2506
2506
|
*/
|
2507
2507
|
ver: string;
|
2508
|
+
/**
|
2509
|
+
* @hidden
|
2510
|
+
* Stores the data residency of the user.
|
2511
|
+
*
|
2512
|
+
* @internal
|
2513
|
+
* Limited to Microsoft-internal use
|
2514
|
+
*/
|
2515
|
+
dataResidency?: DataResidency;
|
2516
|
+
}
|
2517
|
+
/**
|
2518
|
+
* @hidden
|
2519
|
+
* Limited set of data residencies information exposed to 1P application developers
|
2520
|
+
*
|
2521
|
+
* @internal
|
2522
|
+
* Limited to Microsoft-internal use
|
2523
|
+
*/
|
2524
|
+
enum DataResidency {
|
2525
|
+
/**
|
2526
|
+
* Public
|
2527
|
+
*/
|
2528
|
+
Public = "public",
|
2529
|
+
/**
|
2530
|
+
* European Union Data Boundary
|
2531
|
+
*/
|
2532
|
+
EUDB = "eudb",
|
2533
|
+
/**
|
2534
|
+
* Other, stored to cover fields that will not be exposed
|
2535
|
+
*/
|
2536
|
+
Other = "other"
|
2508
2537
|
}
|
2509
2538
|
/**
|
2510
2539
|
* @deprecated
|
@@ -3903,7 +3932,7 @@ export namespace app {
|
|
3903
3932
|
* Initialize must have completed successfully (as determined by the resolved Promise) before any other library calls are made
|
3904
3933
|
*
|
3905
3934
|
* @param validMessageOrigins - Optionally specify a list of cross frame message origins. They must have
|
3906
|
-
* https: protocol otherwise they will be ignored. Example: https
|
3935
|
+
* https: protocol otherwise they will be ignored. Example: https://www.example.com
|
3907
3936
|
* @returns Promise that will be fulfilled when initialization has completed, or rejected if the initialization fails or times out
|
3908
3937
|
*/
|
3909
3938
|
function initialize(validMessageOrigins?: string[]): Promise<void>;
|
@@ -4843,7 +4872,7 @@ export namespace pages {
|
|
4843
4872
|
* Checks if pages.currentApp capability is supported by the host
|
4844
4873
|
* @returns boolean to represent whether the pages.currentApp capability is supported
|
4845
4874
|
*
|
4846
|
-
* @throws Error if {@linkcode app.initialize} has not successfully
|
4875
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4847
4876
|
*
|
4848
4877
|
* @beta
|
4849
4878
|
*/
|