@microsoft/teams-js 2.1.0-beta.3 → 2.1.0-beta.4

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.
@@ -1118,11 +1118,12 @@ __webpack_require__.d(__webpack_exports__, {
1118
1118
  "teams": () => (/* reexport */ teams),
1119
1119
  "teamsCore": () => (/* reexport */ teamsCore),
1120
1120
  "uploadCustomApp": () => (/* reexport */ uploadCustomApp),
1121
- "video": () => (/* reexport */ video)
1121
+ "video": () => (/* reexport */ video),
1122
+ "webStorage": () => (/* reexport */ webStorage)
1122
1123
  });
1123
1124
 
1124
1125
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1125
- var version = "2.1.0-beta.3";
1126
+ var version = "2.1.0-beta.4";
1126
1127
  /**
1127
1128
  * @hidden
1128
1129
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -2358,6 +2359,7 @@ var runtime = {
2358
2359
  calendar: undefined,
2359
2360
  call: undefined,
2360
2361
  chat: undefined,
2362
+ webStorage: undefined,
2361
2363
  conversations: undefined,
2362
2364
  dialog: {
2363
2365
  bot: undefined,
@@ -2460,6 +2462,12 @@ var versionConstants = {
2460
2462
  ],
2461
2463
  },
2462
2464
  ],
2465
+ '2.0.5': [
2466
+ {
2467
+ capability: { webStorage: {} },
2468
+ hostClientTypes: [HostClientType.android, HostClientType.ios],
2469
+ },
2470
+ ],
2463
2471
  };
2464
2472
  /**
2465
2473
  * @internal
@@ -6273,18 +6281,21 @@ var profile;
6273
6281
 
6274
6282
  /**
6275
6283
  * Namespace to video extensibility of the SDK
6284
+ * @beta
6276
6285
  */
6277
6286
  var video;
6278
6287
  (function (video) {
6279
6288
  /**
6280
6289
  * Video frame format enum, currently only support NV12
6290
+ * @beta
6281
6291
  */
6282
6292
  var VideoFrameFormat;
6283
6293
  (function (VideoFrameFormat) {
6284
6294
  VideoFrameFormat[VideoFrameFormat["NV12"] = 0] = "NV12";
6285
6295
  })(VideoFrameFormat = video.VideoFrameFormat || (video.VideoFrameFormat = {}));
6286
6296
  /**
6287
- * Video effect change type enum
6297
+ * Video effect change type enum
6298
+ * @beta
6288
6299
  */
6289
6300
  var EffectChangeType;
6290
6301
  (function (EffectChangeType) {
@@ -6299,6 +6310,7 @@ var video;
6299
6310
  })(EffectChangeType = video.EffectChangeType || (video.EffectChangeType = {}));
6300
6311
  /**
6301
6312
  * Register to read the video frames in Permissions section
6313
+ * @beta
6302
6314
  * @param frameCallback - The callback to invoke when registerForVideoFrame has completed
6303
6315
  * @param config - VideoFrameConfig to customize generated video frame parameters
6304
6316
  */
@@ -6316,10 +6328,10 @@ var video;
6316
6328
  }
6317
6329
  video.registerForVideoFrame = registerForVideoFrame;
6318
6330
  /**
6319
- * video extension should call this to notify host client that the current selected effect parameter changed.
6331
+ * Video extension should call this to notify host client that the current selected effect parameter changed.
6320
6332
  * If it's pre-meeting, host client will call videoEffectCallback immediately then use the videoEffect.
6321
6333
  * If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
6322
- *
6334
+ * @beta
6323
6335
  * @param effectChangeType - the effect change type.
6324
6336
  * @param effectId - Newly selected effect id.
6325
6337
  */
@@ -6333,6 +6345,7 @@ var video;
6333
6345
  video.notifySelectedVideoEffectChanged = notifySelectedVideoEffectChanged;
6334
6346
  /**
6335
6347
  * Register the video effect callback, host client uses this to notify the video extension the new video effect will by applied
6348
+ * @beta
6336
6349
  * @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
6337
6350
  */
6338
6351
  function registerForVideoEffect(callback) {
@@ -6346,12 +6359,14 @@ var video;
6346
6359
  /**
6347
6360
  * Sending notification to host client finished the video frame processing, now host client can render this video frame
6348
6361
  * or pass the video frame to next one in video pipeline
6362
+ * @beta
6349
6363
  */
6350
6364
  function notifyVideoFrameProcessed() {
6351
6365
  sendMessageToParent('video.videoFrameProcessed');
6352
6366
  }
6353
6367
  /**
6354
6368
  * Sending error notification to host client
6369
+ * @beta
6355
6370
  * @param errorMessage - The error message that will be sent to the host
6356
6371
  */
6357
6372
  function notifyError(errorMessage) {
@@ -6359,6 +6374,7 @@ var video;
6359
6374
  }
6360
6375
  /**
6361
6376
  * Checks if video capability is supported by the host
6377
+ * @beta
6362
6378
  * @returns true if the video capability is enabled in runtime.supports.video and
6363
6379
  * false if it is disabled
6364
6380
  */
@@ -6487,6 +6503,47 @@ var stageView;
6487
6503
  stageView.open = open;
6488
6504
  })(stageView || (stageView = {}));
6489
6505
 
6506
+ ;// CONCATENATED MODULE: ./src/public/webStorage.ts
6507
+
6508
+
6509
+
6510
+
6511
+ /**
6512
+ * Contains functionality to allow web apps to store data in webview cache
6513
+ *
6514
+ * @beta
6515
+ */
6516
+ var webStorage;
6517
+ (function (webStorage) {
6518
+ /**
6519
+ * Checks if web storage gets cleared when a user logs out from host client
6520
+ *
6521
+ * @returns true is web storage gets cleared on logout and false if it does not
6522
+ *
6523
+ * @beta
6524
+ */
6525
+ function isWebStorageClearedOnUserLogOut() {
6526
+ ensureInitialized();
6527
+ // return true as web storage is always cleared on desktop.
6528
+ if (GlobalVars.hostClientType === HostClientType.desktop) {
6529
+ return true;
6530
+ }
6531
+ return isSupported();
6532
+ }
6533
+ webStorage.isWebStorageClearedOnUserLogOut = isWebStorageClearedOnUserLogOut;
6534
+ /**
6535
+ * Checks if webStorage capability is supported by the host
6536
+ * @returns true if the webStorage capability is enabled in runtime.supports.webStorage and
6537
+ * false if it is disabled
6538
+ *
6539
+ * @beta
6540
+ */
6541
+ function isSupported() {
6542
+ return runtime.supports.webStorage ? true : false;
6543
+ }
6544
+ webStorage.isSupported = isSupported;
6545
+ })(webStorage || (webStorage = {}));
6546
+
6490
6547
  ;// CONCATENATED MODULE: ./src/public/call.ts
6491
6548
 
6492
6549
 
@@ -7325,6 +7382,7 @@ var tasks;
7325
7382
 
7326
7383
 
7327
7384
 
7385
+
7328
7386
 
7329
7387
 
7330
7388