@microsoft/teams-js 2.1.0-beta.5 → 2.1.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://docs.microsoft.com/javascript/api/overvi
24
24
 
25
25
  ### Production
26
26
 
27
- You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.0.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.1.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 SDK 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.0.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-QtTBFeFlfRDZBfwHJHYQp7MdLJ2C3sfAEB1Qpy+YblvjavBye+q87TELpTnvlXw4"
48
+ src="https://res.cdn.office.net/teams-js/2.1.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-OEWKU/EjpwI1kJsgIcTi+paZNbXiqihK8zg6Dg2cbyjoEaC674oCQMy00ie4caKi"
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.0.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.1.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -3070,11 +3070,15 @@ export namespace appInstallDialog {
3070
3070
 
3071
3071
  /**
3072
3072
  * Namespace to interact with the barcode scanning-specific part of the SDK.
3073
+ *
3074
+ * @beta
3073
3075
  */
3074
3076
  export namespace barCode {
3075
3077
  /**
3076
3078
  * Data structure to customize the barcode scanning experience in scanBarCode API.
3077
3079
  * All properties in BarCodeConfig are optional and have default values in the platform
3080
+ *
3081
+ * @beta
3078
3082
  */
3079
3083
  interface BarCodeConfig {
3080
3084
  /**
@@ -3089,24 +3093,32 @@ export namespace barCode {
3089
3093
  * @param barCodeConfig - input configuration to customize the barcode scanning experience
3090
3094
  *
3091
3095
  * @returns a scanned code
3096
+ *
3097
+ * @beta
3092
3098
  */
3093
3099
  function scanBarCode(barCodeConfig: BarCodeConfig): Promise<string>;
3094
3100
  /**
3095
3101
  * Checks whether or not media has user permission
3096
3102
  *
3097
3103
  * @returns true if the user has granted the app permission to media information, false otherwise
3104
+ *
3105
+ * @beta
3098
3106
  */
3099
3107
  function hasPermission(): Promise<boolean>;
3100
3108
  /**
3101
3109
  * Requests user permission for media
3102
3110
  *
3103
3111
  * @returns true if the user has granted the app permission to the media, false otherwise
3112
+ *
3113
+ * @beta
3104
3114
  */
3105
3115
  function requestPermission(): Promise<boolean>;
3106
3116
  /**
3107
3117
  * Checks if barCode capability is supported by the host
3108
3118
  *
3109
3119
  * @returns boolean to represent whether barCode is supported
3120
+ *
3121
+ * @beta
3110
3122
  */
3111
3123
  function isSupported(): boolean;
3112
3124
  }
@@ -1125,7 +1125,7 @@ __webpack_require__.d(__webpack_exports__, {
1125
1125
  });
1126
1126
 
1127
1127
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1128
- var version = "2.1.0-beta.5";
1128
+ var version = "2.1.0";
1129
1129
  /**
1130
1130
  * @hidden
1131
1131
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -5512,6 +5512,8 @@ function validatePeoplePickerInput(peoplePickerInputs) {
5512
5512
 
5513
5513
  /**
5514
5514
  * Namespace to interact with the barcode scanning-specific part of the SDK.
5515
+ *
5516
+ * @beta
5515
5517
  */
5516
5518
  var barCode;
5517
5519
  (function (barCode) {
@@ -5521,6 +5523,8 @@ var barCode;
5521
5523
  * @param barCodeConfig - input configuration to customize the barcode scanning experience
5522
5524
  *
5523
5525
  * @returns a scanned code
5526
+ *
5527
+ * @beta
5524
5528
  */
5525
5529
  function scanBarCode(barCodeConfig) {
5526
5530
  return new Promise(function (resolve) {
@@ -5539,6 +5543,8 @@ var barCode;
5539
5543
  * Checks whether or not media has user permission
5540
5544
  *
5541
5545
  * @returns true if the user has granted the app permission to media information, false otherwise
5546
+ *
5547
+ * @beta
5542
5548
  */
5543
5549
  function hasPermission() {
5544
5550
  ensureInitialized(FrameContexts.content, FrameContexts.task);
@@ -5555,6 +5561,8 @@ var barCode;
5555
5561
  * Requests user permission for media
5556
5562
  *
5557
5563
  * @returns true if the user has granted the app permission to the media, false otherwise
5564
+ *
5565
+ * @beta
5558
5566
  */
5559
5567
  function requestPermission() {
5560
5568
  ensureInitialized(FrameContexts.content, FrameContexts.task);
@@ -5571,6 +5579,8 @@ var barCode;
5571
5579
  * Checks if barCode capability is supported by the host
5572
5580
  *
5573
5581
  * @returns boolean to represent whether barCode is supported
5582
+ *
5583
+ * @beta
5574
5584
  */
5575
5585
  function isSupported() {
5576
5586
  return runtime.supports.barCode && runtime.supports.permissions ? true : false;