@microsoft/teams-js 2.8.0-beta.1 → 2.8.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.7.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.8.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.7.1/js/MicrosoftTeams.min.js"
49
- integrity="sha384-4Gy2G+qxzDVdrdemcVqKVQvaSK1Ghg3x6xcsaMLPc/pw7KPtiogHGM97LTWF2PWg"
48
+ src="https://res.cdn.office.net/teams-js/2.8.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-/DJ9oJEFZSpGiUQx9Na5Yb5svOPPqSb3khKxJ/YgoZ2GtrkzWgSTBpESy3LvMPVk"
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.7.1/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.8.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -3435,19 +3435,15 @@ export interface DialogSize {
3435
3435
  width: DialogDimension | number;
3436
3436
  }
3437
3437
  /**
3438
- * @hidden
3439
- *
3440
- * @internal
3441
- * Limited to Microsoft-internal use
3438
+ * @beta
3439
+ * Data structure to be used with the {@link teamsCore.registerOnLoadHandler teamsCore.registerOnLoadHandler(handler: (context: LoadContext) => void): void} to pass the context to the app.
3442
3440
  */
3443
3441
  export interface LoadContext {
3444
3442
  /**
3445
- * @hidden
3446
3443
  * The entity that is requested to be loaded
3447
3444
  */
3448
3445
  entityId: string;
3449
3446
  /**
3450
- * @hidden
3451
3447
  * The content URL that is requested to be loaded
3452
3448
  */
3453
3449
  contentUrl: string;
@@ -6362,12 +6358,14 @@ export namespace teamsCore {
6362
6358
  */
6363
6359
  function print(): void;
6364
6360
  /**
6365
- * @hidden
6366
6361
  * Registers a handler to be called when the page has been requested to load.
6367
6362
  *
6363
+ * @remarks Check out [App Caching in Teams](https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/build-tabs-for-meeting?tabs=desktop%2Cmeeting-chat-view-desktop%2Cmeeting-stage-view-desktop%2Cchannel-meeting-desktop#app-caching)
6364
+ * for a more detailed explanation about using this API.
6365
+ *
6368
6366
  * @param handler - The handler to invoke when the page is loaded.
6369
6367
  *
6370
- * @internal
6368
+ * @beta
6371
6369
  */
6372
6370
  function registerOnLoadHandler(handler: (context: LoadContext) => void): void;
6373
6371
  /**
@@ -6382,13 +6380,15 @@ export namespace teamsCore {
6382
6380
  */
6383
6381
  function registerOnLoadHandlerHelper(handler: (context: LoadContext) => void, versionSpecificHelper?: () => void): void;
6384
6382
  /**
6385
- * @hidden
6386
6383
  * Registers a handler to be called before the page is unloaded.
6387
6384
  *
6385
+ * @remarks Check out [App Caching in Teams](https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/build-tabs-for-meeting?tabs=desktop%2Cmeeting-chat-view-desktop%2Cmeeting-stage-view-desktop%2Cchannel-meeting-desktop#app-caching)
6386
+ * for a more detailed explanation about using this API.
6387
+ *
6388
6388
  * @param handler - The handler to invoke before the page is unloaded. If this handler returns true the page should
6389
6389
  * invoke the readyToUnload function provided to it once it's ready to be unloaded.
6390
6390
  *
6391
- * @internal
6391
+ * @beta
6392
6392
  */
6393
6393
  function registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void;
6394
6394
  /**
@@ -2151,7 +2151,7 @@ var _minRuntimeConfigToUninitialize = {
2151
2151
  };
2152
2152
 
2153
2153
  ;// CONCATENATED MODULE: ./src/public/version.ts
2154
- var version = "2.8.0-beta.1";
2154
+ var version = "2.8.0";
2155
2155
 
2156
2156
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
2157
2157
 
@@ -3358,12 +3358,14 @@ var teamsCore;
3358
3358
  }
3359
3359
  teamsCore.print = print;
3360
3360
  /**
3361
- * @hidden
3362
3361
  * Registers a handler to be called when the page has been requested to load.
3363
3362
  *
3363
+ * @remarks Check out [App Caching in Teams](https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/build-tabs-for-meeting?tabs=desktop%2Cmeeting-chat-view-desktop%2Cmeeting-stage-view-desktop%2Cchannel-meeting-desktop#app-caching)
3364
+ * for a more detailed explanation about using this API.
3365
+ *
3364
3366
  * @param handler - The handler to invoke when the page is loaded.
3365
3367
  *
3366
- * @internal
3368
+ * @beta
3367
3369
  */
3368
3370
  function registerOnLoadHandler(handler) {
3369
3371
  registerOnLoadHandlerHelper(handler, function () {
@@ -3393,13 +3395,15 @@ var teamsCore;
3393
3395
  }
3394
3396
  teamsCore.registerOnLoadHandlerHelper = registerOnLoadHandlerHelper;
3395
3397
  /**
3396
- * @hidden
3397
3398
  * Registers a handler to be called before the page is unloaded.
3398
3399
  *
3400
+ * @remarks Check out [App Caching in Teams](https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/build-tabs-for-meeting?tabs=desktop%2Cmeeting-chat-view-desktop%2Cmeeting-stage-view-desktop%2Cchannel-meeting-desktop#app-caching)
3401
+ * for a more detailed explanation about using this API.
3402
+ *
3399
3403
  * @param handler - The handler to invoke before the page is unloaded. If this handler returns true the page should
3400
3404
  * invoke the readyToUnload function provided to it once it's ready to be unloaded.
3401
3405
  *
3402
- * @internal
3406
+ * @beta
3403
3407
  */
3404
3408
  function registerBeforeUnloadHandler(handler) {
3405
3409
  registerBeforeUnloadHandlerHelper(handler, function () {