@microsoft/teams-js 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
24
24
 
25
25
  ### Production
26
26
 
27
- You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.6.1/js/MicrosoftTeams.min.js) or point your package manager at them.
27
+ You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.7.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.6.1/js/MicrosoftTeams.min.js"
49
- integrity="sha384-udTrn6S/rny1uAfOzuOBq5nmDhkcty80OMEEKN9h0RhFF2N3o5SvkDrZWdY0xT31"
48
+ src="https://res.cdn.office.net/teams-js/2.7.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-2hWfarkaaXsGKQnINK4rXIQF6vVAm5m8YU/qzs0jFHo6pn6ZpzlM9hg7uwnZDpf0"
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.1/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.7.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -131,7 +131,7 @@ export interface FilePreviewParameters {
131
131
  * @internal
132
132
  * Limited to Microsoft-internal use
133
133
  */
134
- entityId: string;
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: string;
142
+ title?: string;
143
143
  /**
144
144
  * @hidden
145
145
  * An optional description of the file.
@@ -3932,7 +3932,7 @@ export namespace app {
3932
3932
  * Initialize must have completed successfully (as determined by the resolved Promise) before any other library calls are made
3933
3933
  *
3934
3934
  * @param validMessageOrigins - Optionally specify a list of cross frame message origins. They must have
3935
- * https: protocol otherwise they will be ignored. Example: https:www.example.com
3935
+ * https: protocol otherwise they will be ignored. Example: https://www.example.com
3936
3936
  * @returns Promise that will be fulfilled when initialization has completed, or rejected if the initialization fails or times out
3937
3937
  */
3938
3938
  function initialize(validMessageOrigins?: string[]): Promise<void>;
@@ -4872,7 +4872,7 @@ export namespace pages {
4872
4872
  * Checks if pages.currentApp capability is supported by the host
4873
4873
  * @returns boolean to represent whether the pages.currentApp capability is supported
4874
4874
  *
4875
- * @throws Error if {@linkcode app.initialize} has not successfully complete
4875
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
4876
4876
  *
4877
4877
  * @beta
4878
4878
  */