@microsoft/teams-js 2.12.0-beta.0 → 2.12.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.11.0/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.12.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.11.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-eCh6qbZkXfEZapUgP+aGo0x6qEpGiryOoYXrQr6BLrtZ988BjkbaVyRh1rQef3q9"
48
+ src="https://res.cdn.office.net/teams-js/2.12.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-H8/uiTqHq6b1eqm04U0wlhoD92qH4Ibgxrj4QLh8F5iomB4eqTdvi5dzPZkyKNxz"
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.11.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.12.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -7311,6 +7311,12 @@ export namespace search {
7311
7311
  * @beta
7312
7312
  */
7313
7313
  function isSupported(): boolean;
7314
+ /**
7315
+ * Clear the host M365 application's search box
7316
+ *
7317
+ * @beta
7318
+ */
7319
+ function closeSearch(): Promise<void>;
7314
7320
  }
7315
7321
 
7316
7322
  /**
@@ -2088,7 +2088,7 @@ var _minRuntimeConfigToUninitialize = {
2088
2088
  * @hidden
2089
2089
  * Package version.
2090
2090
  */
2091
- var version = "2.12.0-beta.0";
2091
+ var version = "2.12.0";
2092
2092
 
2093
2093
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
2094
2094
 
@@ -8411,6 +8411,21 @@ var search;
8411
8411
  return ensureInitialized(runtime) && runtime.supports.search ? true : false;
8412
8412
  }
8413
8413
  search.isSupported = isSupported;
8414
+ /**
8415
+ * Clear the host M365 application's search box
8416
+ *
8417
+ * @beta
8418
+ */
8419
+ function closeSearch() {
8420
+ return new Promise(function (resolve) {
8421
+ ensureInitialized(runtime, FrameContexts.content);
8422
+ if (!isSupported()) {
8423
+ throw new Error('Not supported');
8424
+ }
8425
+ resolve(sendAndHandleStatusAndReason('search.closeSearch'));
8426
+ });
8427
+ }
8428
+ search.closeSearch = closeSearch;
8414
8429
  })(search || (search = {}));
8415
8430
 
8416
8431
  ;// CONCATENATED MODULE: ./src/public/sharing.ts