@microsoft/teams-js 2.47.0 → 2.47.2

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.47.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.47.2/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.47.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-IkfULjDxwgKWYEYHErhDcuw+ahOQvmrcRFwgI3sm/uu7c0HWVjyYG3qp5z5SncxD"
48
+ src="https://res.cdn.office.net/teams-js/2.47.2/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-cHYqJ5XgsfEM71MlcRom4ptI0n2cs5QDu4M0wGB6r6xC/iROf3UjrBy7OYPC1r86"
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.47.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.47.2/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -1 +1 @@
1
- import{sendAndUnwrap as t}from"../../../internal/communication.js";import{ensureInitialized as r}from"../../../internal/internalAPIs.js";import{getApiVersionTag as o}from"../../../internal/telemetry.js";import{errorNotSupportedOnPlatform as n}from"../../../public/constants.js";import{runtime as i}from"../../../public/runtime.js";import*as e from"./joinedTeams.js";export{e as joinedTeams};function m(e){return new Promise((m=>{if(r(i),!s())throw n;m(t(o("v1","teams.fullTrust.getConfigSetting"),"getConfigSetting",e))}))}function s(){return!(!r(i)||!i.supports.teams)&&!!i.supports.teams.fullTrust}export{m as getConfigSetting,s as isSupported};
1
+ import{__awaiter as t}from"../../../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHostAndHandleResponse as r}from"../../../internal/communication.js";import{ensureInitialized as o}from"../../../internal/internalAPIs.js";import{SimpleTypeResponseHandler as i}from"../../../internal/responseHandler.js";import{getApiVersionTag as n}from"../../../internal/telemetry.js";import{errorNotSupportedOnPlatform as e}from"../../../public/constants.js";import{runtime as s}from"../../../public/runtime.js";import*as m from"./joinedTeams.js";export{m as joinedTeams};function p(m){return t(this,void 0,void 0,(function*(){if(o(s),!l())throw e;return r("getConfigSetting",[m],new i,n("v1","teams.fullTrust.getConfigSetting"))}))}function l(){return!(!o(s)||!s.supports.teams)&&!!s.supports.teams.fullTrust}export{p as getConfigSetting,l as isSupported};
@@ -1 +1 @@
1
- const o="2.47.0";export{o as version};
1
+ const o="2.47.2";export{o as version};
@@ -4650,7 +4650,7 @@ function isSerializable(arg) {
4650
4650
  * @hidden
4651
4651
  * Package version.
4652
4652
  */
4653
- const version = "2.47.0";
4653
+ const version = "2.47.2";
4654
4654
 
4655
4655
  ;// ./src/public/featureFlags.ts
4656
4656
  // All build feature flags are defined inside this object. Any build feature flag must have its own unique getter and setter function. This pattern allows for client apps to treeshake unused code and avoid including code guarded by this feature flags in the final bundle. If this property isn't desired, use the below runtime feature flags object.
@@ -12424,6 +12424,16 @@ function joinedTeams_isSupported() {
12424
12424
  * @internal
12425
12425
  * Limited to Microsoft-internal use
12426
12426
  */
12427
+ var fullTrust_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
12428
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12429
+ return new (P || (P = Promise))(function (resolve, reject) {
12430
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
12431
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12432
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
12433
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
12434
+ });
12435
+ };
12436
+
12427
12437
 
12428
12438
 
12429
12439
 
@@ -12445,12 +12455,12 @@ const fullTrust_teamsTelemetryVersionNumber = "v1" /* ApiVersionNumber.V_1 */;
12445
12455
  * Limited to Microsoft-internal use
12446
12456
  */
12447
12457
  function getConfigSetting(key) {
12448
- return new Promise((resolve) => {
12458
+ return fullTrust_awaiter(this, void 0, void 0, function* () {
12449
12459
  ensureInitialized(runtime);
12450
12460
  if (!fullTrust_fullTrust_isSupported()) {
12451
12461
  throw errorNotSupportedOnPlatform;
12452
12462
  }
12453
- resolve(sendAndUnwrap(getApiVersionTag(fullTrust_teamsTelemetryVersionNumber, "teams.fullTrust.getConfigSetting" /* ApiName.Teams_FullTrust_GetConfigSetting */), 'getConfigSetting', key));
12463
+ return callFunctionInHostAndHandleResponse('getConfigSetting', [key], new SimpleTypeResponseHandler(), getApiVersionTag(fullTrust_teamsTelemetryVersionNumber, "teams.fullTrust.getConfigSetting" /* ApiName.Teams_FullTrust_GetConfigSetting */));
12454
12464
  });
12455
12465
  }
12456
12466
  /**