@microsoft/teams-js 2.27.0 → 2.28.0-beta.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.27.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.28.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.27.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-QGb/h0ACuraFEnqrpkMcMBTU+baTLZy1Mh61IGbM206IPGRWiWCIL5dkLzG1RKZH"
48
+ src="https://res.cdn.office.net/teams-js/2.28.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-gT2igbByugSUPXBgDA+rtfKk4JMSCfG+3DKSivyLqF2Riv4vTLqaC/tFpySw0eIM"
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.27.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.28.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -4766,7 +4766,7 @@ export interface AppEligibilityInformation {
4766
4766
  /**
4767
4767
  * Education Eligibility Information for the app user
4768
4768
  */
4769
- userClassification: UserClassification;
4769
+ userClassification: UserClassification | null;
4770
4770
  }
4771
4771
  /**
4772
4772
  * @hidden
@@ -9196,9 +9196,9 @@ export namespace sharing {
9196
9196
  title: string;
9197
9197
  /** Reference of the shared content */
9198
9198
  contentReference: string;
9199
- /** Id of the thread where the content was shared. This is a UUID */
9199
+ /** Id of the thread where the content was shared. */
9200
9200
  threadId: string;
9201
- /** Id of the user who shared the content. This is a UUID */
9201
+ /** Id of the user who shared the content. */
9202
9202
  author: string;
9203
9203
  /** Type of the shared content.
9204
9204
  * For sharing to Teams stage scenarios, this value would be `ShareToStage`
@@ -2752,6 +2752,9 @@ function generateGUID() {
2752
2752
  */
2753
2753
  function utils_deepFreeze(obj) {
2754
2754
  Object.keys(obj).forEach((prop) => {
2755
+ if (obj[prop] === null || obj[prop] === undefined) {
2756
+ return;
2757
+ }
2755
2758
  if (typeof obj[prop] === 'object') {
2756
2759
  utils_deepFreeze(obj[prop]);
2757
2760
  }
@@ -3506,7 +3509,7 @@ const _minRuntimeConfigToUninitialize = {
3506
3509
  * @hidden
3507
3510
  * Package version.
3508
3511
  */
3509
- const version = "2.27.0";
3512
+ const version = "2.28.0-beta.0";
3510
3513
 
3511
3514
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
3512
3515
 
@@ -14187,10 +14190,6 @@ var sharing;
14187
14190
  throw errorNotSupportedOnPlatform;
14188
14191
  }
14189
14192
  const contentDetails = yield sendAndHandleSdkError(getApiVersionTag(sharingTelemetryVersionNumber_v2, "sharing.history.getContent" /* ApiName.Sharing_History_GetContent */), 'sharing.history.getContent');
14190
- contentDetails.map((contentDetails) => {
14191
- validateUuid(contentDetails.author);
14192
- validateUuid(contentDetails.threadId);
14193
- });
14194
14193
  return contentDetails;
14195
14194
  });
14196
14195
  }