@microsoft/teams-js 2.26.0-beta.1 → 2.26.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.25.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.26.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.25.0/js/MicrosoftTeams.min.js"
49
- integrity="sha384-6royw0i5cEmf/8pzbTX9dVy1pjjJA8PQOaQbGvoL/m39OdjrlcWluhQZxqy5KbJA"
48
+ src="https://res.cdn.office.net/teams-js/2.26.0/js/MicrosoftTeams.min.js"
49
+ integrity="sha384-gqPg5qCjdUgTGRZ/stLskrnJllL5h5+f4kTqvxVqtl2FdT7PVRa9Q7zq4gFlZ7bO"
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.25.0/dist/MicrosoftTeams.min.js"></script>
54
+ <script src="node_modules/@microsoft/teams-js@2.26.0/dist/MicrosoftTeams.min.js"></script>
55
55
 
56
56
  <!-- Microsoft Teams JavaScript API (via local) -->
57
57
  <script src="MicrosoftTeams.min.js"></script>
@@ -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";
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