@microsoft/teams-js 2.7.1 → 2.7.2-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.
@@ -6527,6 +6527,10 @@ export namespace search {
6527
6527
  function isSupported(): boolean;
6528
6528
  }
6529
6529
 
6530
+ /**
6531
+ * Namespace to open a share dialog for web content.
6532
+ * For more info, see {@link https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/share-to-teams-from-personal-app-or-tab Share to Teams from personal app or tab}
6533
+ */
6530
6534
  export namespace sharing {
6531
6535
  export const SharingAPIMessages: {
6532
6536
  shareWebContent: string;
@@ -6783,28 +6787,6 @@ export namespace appInitialization {
6783
6787
  * https: protocol otherwise they will be ignored. Example: https://www.example.com
6784
6788
  */
6785
6789
  export function initialize(callback?: () => void, validMessageOrigins?: string[]): void;
6786
- /**
6787
- * @deprecated
6788
- * As of 2.0.0, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
6789
- *
6790
- * @hidden
6791
- * Undocumented function used to set a mock window for unit tests
6792
- *
6793
- * @internal
6794
- * Limited to Microsoft-internal use
6795
- */
6796
- export function _initialize(hostWindow: any): void;
6797
- /**
6798
- * @deprecated
6799
- * As of 2.0.0, please use {@link app._uninitialize app._uninitialize(): void} instead.
6800
- *
6801
- * @hidden
6802
- * Undocumented function used to clear state between unit tests
6803
- *
6804
- * @internal
6805
- * Limited to Microsoft-internal use
6806
- */
6807
- export function _uninitialize(): void;
6808
6790
  /**
6809
6791
  * @deprecated
6810
6792
  * As of 2.0.0, please use {@link teamsCore.enablePrintCapability teamsCore.enablePrintCapability(): void} instead.
@@ -1063,7 +1063,7 @@ __webpack_require__.d(__webpack_exports__, {
1063
1063
  "UserSettingTypes": () => (/* reexport */ UserSettingTypes),
1064
1064
  "UserTeamRole": () => (/* reexport */ UserTeamRole),
1065
1065
  "ViewerActionTypes": () => (/* reexport */ ViewerActionTypes),
1066
- "app": () => (/* reexport */ app_app),
1066
+ "app": () => (/* reexport */ app),
1067
1067
  "appEntity": () => (/* reexport */ appEntity),
1068
1068
  "appInitialization": () => (/* reexport */ appInitialization),
1069
1069
  "appInstallDialog": () => (/* reexport */ appInstallDialog),
@@ -2116,7 +2116,7 @@ var _minRuntimeConfigToUninitialize = {
2116
2116
  };
2117
2117
 
2118
2118
  ;// CONCATENATED MODULE: ./src/public/version.ts
2119
- var version = "2.7.1";
2119
+ var version = "2.7.2-beta.0";
2120
2120
 
2121
2121
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
2122
2122
 
@@ -3259,7 +3259,7 @@ var teamsCore;
3259
3259
  /**
3260
3260
  * Namespace to interact with app initialization and lifecycle.
3261
3261
  */
3262
- var app_app;
3262
+ var app;
3263
3263
  (function (app) {
3264
3264
  var appLogger = getLogger('app');
3265
3265
  // ::::::::::::::::::::::: MicrosoftTeams client SDK public API ::::::::::::::::::::
@@ -3566,7 +3566,7 @@ var app_app;
3566
3566
  });
3567
3567
  }
3568
3568
  app.openLink = openLink;
3569
- })(app_app || (app_app = {}));
3569
+ })(app || (app = {}));
3570
3570
  /**
3571
3571
  * @hidden
3572
3572
  * Transforms the Legacy Context object received from Messages to the structured app.Context object
@@ -3743,7 +3743,7 @@ var pages;
3743
3743
  * https: protocol otherwise they will be ignored. Example: https:www.example.com
3744
3744
  */
3745
3745
  function initializeWithFrameContext(frameInfo, callback, validMessageOrigins) {
3746
- app_app.initialize(validMessageOrigins).then(function () { return callback && callback(); });
3746
+ app.initialize(validMessageOrigins).then(function () { return callback && callback(); });
3747
3747
  setCurrentFrame(frameInfo);
3748
3748
  }
3749
3749
  pages.initializeWithFrameContext = initializeWithFrameContext;
@@ -7583,6 +7583,10 @@ var search;
7583
7583
 
7584
7584
 
7585
7585
 
7586
+ /**
7587
+ * Namespace to open a share dialog for web content.
7588
+ * For more info, see {@link https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/share-to-teams-from-personal-app-or-tab Share to Teams from personal app or tab}
7589
+ */
7586
7590
  var sharing;
7587
7591
  (function (sharing) {
7588
7592
  sharing.SharingAPIMessages = {
@@ -7820,19 +7824,19 @@ var appInitialization;
7820
7824
  * As of 2.0.0, please use {@link app.Messages} instead.
7821
7825
  */
7822
7826
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
7823
- appInitialization.Messages = app_app.Messages;
7827
+ appInitialization.Messages = app.Messages;
7824
7828
  /**
7825
7829
  * @deprecated
7826
7830
  * As of 2.0.0, please use {@link app.FailedReason} instead.
7827
7831
  */
7828
7832
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
7829
- appInitialization.FailedReason = app_app.FailedReason;
7833
+ appInitialization.FailedReason = app.FailedReason;
7830
7834
  /**
7831
7835
  * @deprecated
7832
7836
  * As of 2.0.0, please use {@link app.ExpectedFailureReason} instead.
7833
7837
  */
7834
7838
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
7835
- appInitialization.ExpectedFailureReason = app_app.ExpectedFailureReason;
7839
+ appInitialization.ExpectedFailureReason = app.ExpectedFailureReason;
7836
7840
  /**
7837
7841
  * @deprecated
7838
7842
  * As of 2.0.0, please use {@link app.notifyAppLoaded app.notifyAppLoaded(): void} instead.
@@ -7840,7 +7844,7 @@ var appInitialization;
7840
7844
  * Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
7841
7845
  */
7842
7846
  function notifyAppLoaded() {
7843
- app_app.notifyAppLoaded();
7847
+ app.notifyAppLoaded();
7844
7848
  }
7845
7849
  appInitialization.notifyAppLoaded = notifyAppLoaded;
7846
7850
  /**
@@ -7850,7 +7854,7 @@ var appInitialization;
7850
7854
  * Notifies the frame that app initialization is successful and is ready for user interaction.
7851
7855
  */
7852
7856
  function notifySuccess() {
7853
- app_app.notifySuccess();
7857
+ app.notifySuccess();
7854
7858
  }
7855
7859
  appInitialization.notifySuccess = notifySuccess;
7856
7860
  /**
@@ -7862,7 +7866,7 @@ var appInitialization;
7862
7866
  * during initialization as well as an optional message.
7863
7867
  */
7864
7868
  function notifyFailure(appInitializationFailedRequest) {
7865
- app_app.notifyFailure(appInitializationFailedRequest);
7869
+ app.notifyFailure(appInitializationFailedRequest);
7866
7870
  }
7867
7871
  appInitialization.notifyFailure = notifyFailure;
7868
7872
  /**
@@ -7873,7 +7877,7 @@ var appInitialization;
7873
7877
  * @param expectedFailureRequest - The expected failure request containing the reason and an optional message
7874
7878
  */
7875
7879
  function notifyExpectedFailure(expectedFailureRequest) {
7876
- app_app.notifyExpectedFailure(expectedFailureRequest);
7880
+ app.notifyExpectedFailure(expectedFailureRequest);
7877
7881
  }
7878
7882
  appInitialization.notifyExpectedFailure = notifyExpectedFailure;
7879
7883
  })(appInitialization || (appInitialization = {}));
@@ -7898,39 +7902,12 @@ var appInitialization;
7898
7902
  * https: protocol otherwise they will be ignored. Example: https://www.example.com
7899
7903
  */
7900
7904
  function initialize(callback, validMessageOrigins) {
7901
- app_app.initialize(validMessageOrigins).then(function () {
7905
+ app.initialize(validMessageOrigins).then(function () {
7902
7906
  if (callback) {
7903
7907
  callback();
7904
7908
  }
7905
7909
  });
7906
7910
  }
7907
- /**
7908
- * @deprecated
7909
- * As of 2.0.0, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
7910
- *
7911
- * @hidden
7912
- * Undocumented function used to set a mock window for unit tests
7913
- *
7914
- * @internal
7915
- * Limited to Microsoft-internal use
7916
- */
7917
- // eslint-disable-next-line
7918
- function _initialize(hostWindow) {
7919
- app._initialize(hostWindow);
7920
- }
7921
- /**
7922
- * @deprecated
7923
- * As of 2.0.0, please use {@link app._uninitialize app._uninitialize(): void} instead.
7924
- *
7925
- * @hidden
7926
- * Undocumented function used to clear state between unit tests
7927
- *
7928
- * @internal
7929
- * Limited to Microsoft-internal use
7930
- */
7931
- function _uninitialize() {
7932
- app._uninitialize();
7933
- }
7934
7911
  /**
7935
7912
  * @deprecated
7936
7913
  * As of 2.0.0, please use {@link teamsCore.enablePrintCapability teamsCore.enablePrintCapability(): void} instead.
@@ -7959,7 +7936,7 @@ function print() {
7959
7936
  */
7960
7937
  function getContext(callback) {
7961
7938
  ensureInitializeCalled();
7962
- app_app.getContext().then(function (context) {
7939
+ app.getContext().then(function (context) {
7963
7940
  if (callback) {
7964
7941
  callback(transformAppContextToLegacyContext(context));
7965
7942
  }
@@ -7975,7 +7952,7 @@ function getContext(callback) {
7975
7952
  * @param handler - The handler to invoke when the user changes their theme.
7976
7953
  */
7977
7954
  function registerOnThemeChangeHandler(handler) {
7978
- app_app.registerOnThemeChangeHandler(handler);
7955
+ app.registerOnThemeChangeHandler(handler);
7979
7956
  }
7980
7957
  /**
7981
7958
  * @deprecated
@@ -8144,7 +8121,7 @@ function shareDeepLink(deepLinkParameters) {
8144
8121
  function executeDeepLink(deepLink, onComplete) {
8145
8122
  ensureInitialized(runtime, FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
8146
8123
  onComplete = onComplete ? onComplete : getGenericOnCompleteHandler();
8147
- app_app.openLink(deepLink)
8124
+ app.openLink(deepLink)
8148
8125
  .then(function () {
8149
8126
  onComplete(true);
8150
8127
  })