@microsoft/teams-js 2.26.0-beta.1 → 2.26.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8860,6 +8860,30 @@ export namespace stageView {
8860
8860
  *
8861
8861
  */
8862
8862
  function isSupported(): boolean;
8863
+ /**
8864
+ * Namespace for actions that can be taken by the stage view itself.
8865
+ *
8866
+ * @beta
8867
+ */
8868
+ namespace self {
8869
+ /**
8870
+ * Closes the current stage view. This function will be a no-op if called from outside of a stage view.
8871
+ * @returns Promise that resolves or rejects with an error once the stage view is closed.
8872
+ *
8873
+ * @beta
8874
+ * @throws Error if stageView.self.close is not supported in the current context or if `app.initialize()` has not resolved successfully.
8875
+ */
8876
+ function close(): Promise<void>;
8877
+ /**
8878
+ * Checks if stageView.self capability is supported by the host
8879
+ * @beta
8880
+ * @returns boolean to represent whether the stageView.self capability is supported
8881
+ *
8882
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
8883
+ *
8884
+ */
8885
+ function isSupported(): boolean;
8886
+ }
8863
8887
  }
8864
8888
 
8865
8889
  /**
@@ -3395,7 +3395,7 @@ const _minRuntimeConfigToUninitialize = {
3395
3395
  * @hidden
3396
3396
  * Package version.
3397
3397
  */
3398
- const version = "2.26.0-beta.1";
3398
+ const version = "2.26.0-beta.2";
3399
3399
 
3400
3400
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
3401
3401
 
@@ -13993,6 +13993,44 @@ var stageView;
13993
13993
  return ensureInitialized(runtime) && runtime.supports.stageView ? true : false;
13994
13994
  }
13995
13995
  stageView.isSupported = isSupported;
13996
+ /**
13997
+ * Namespace for actions that can be taken by the stage view itself.
13998
+ *
13999
+ * @beta
14000
+ */
14001
+ let self;
14002
+ (function (self) {
14003
+ /**
14004
+ * Closes the current stage view. This function will be a no-op if called from outside of a stage view.
14005
+ * @returns Promise that resolves or rejects with an error once the stage view is closed.
14006
+ *
14007
+ * @beta
14008
+ * @throws Error if stageView.self.close is not supported in the current context or if `app.initialize()` has not resolved successfully.
14009
+ */
14010
+ function close() {
14011
+ return new Promise((resolve) => {
14012
+ ensureInitialized(runtime, FrameContexts.content);
14013
+ if (!isSupported()) {
14014
+ throw errorNotSupportedOnPlatform;
14015
+ }
14016
+ resolve(sendAndHandleSdkError(getApiVersionTag(stageViewTelemetryVersionNumber, "stageView.self.close" /* ApiName.StageView_Self_Close */), 'stageView.self.close'));
14017
+ });
14018
+ }
14019
+ self.close = close;
14020
+ /**
14021
+ * Checks if stageView.self capability is supported by the host
14022
+ * @beta
14023
+ * @returns boolean to represent whether the stageView.self capability is supported
14024
+ *
14025
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
14026
+ *
14027
+ */
14028
+ function isSupported() {
14029
+ var _a;
14030
+ return ensureInitialized(runtime) && ((_a = runtime.supports.stageView) === null || _a === void 0 ? void 0 : _a.self) !== undefined;
14031
+ }
14032
+ self.isSupported = isSupported;
14033
+ })(self = stageView.self || (stageView.self = {}));
13996
14034
  })(stageView || (stageView = {}));
13997
14035
 
13998
14036
  ;// CONCATENATED MODULE: ./src/public/visualMedia.ts