@microsoft/teams-js 2.0.0-beta.3-dev.17 → 2.0.0-beta.3-dev.21

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.
@@ -2769,21 +2769,13 @@ export namespace app {
2769
2769
  * @param handler - The handler to invoke when the user changes their theme.
2770
2770
  */
2771
2771
  function registerOnThemeChangeHandler(handler: (theme: string) => void): void;
2772
- }
2773
- export namespace core {
2774
- /**
2775
- * Shares a deep link that a user can use to navigate back to a specific state in this page.
2776
- *
2777
- * @param deepLinkParameters - ID and label for the link and fallback URL.
2778
- */
2779
- function shareDeepLink(deepLinkParameters: DeepLinkParameters): void;
2780
2772
  /**
2781
- * execute deep link API.
2773
+ * open link API.
2782
2774
  *
2783
2775
  * @param deepLink - deep link.
2784
2776
  * @returns Promise that will be fulfilled when the operation has completed
2785
2777
  */
2786
- function executeDeepLink(deepLink: string): Promise<void>;
2778
+ function openLink(deepLink: string): Promise<void>;
2787
2779
  }
2788
2780
 
2789
2781
  /**
@@ -2863,6 +2855,12 @@ export namespace pages {
2863
2855
  * @returns a promise that will resolve if the navigation was successful
2864
2856
  */
2865
2857
  function navigateToApp(params: NavigateToAppParams): Promise<void>;
2858
+ /**
2859
+ * Shares a deep link that a user can use to navigate back to a specific state in this page.
2860
+ *
2861
+ * @param deepLinkParameters - ID and label for the link and fallback URL.
2862
+ */
2863
+ function shareDeepLink(deepLinkParameters: DeepLinkParameters): void;
2866
2864
  /**
2867
2865
  * Registers a handler for changes from or to full-screen view for a tab.
2868
2866
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -4588,7 +4586,7 @@ export function getTabInstances(callback: (tabInfo: TabInformation) => void, tab
4588
4586
  export function getMruTabInstances(callback: (tabInfo: TabInformation) => void, tabInstanceParameters?: TabInstanceParameters): void;
4589
4587
  /**
4590
4588
  * @deprecated
4591
- * As of 2.0.0-beta.1, please use {@link core.shareDeepLink core.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
4589
+ * As of 2.0.0-beta.3, please use {@link pages.shareDeepLink pages.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
4592
4590
  *
4593
4591
  * Shares a deep link that a user can use to navigate back to a specific state in this page.
4594
4592
  *
@@ -4597,7 +4595,7 @@ export function getMruTabInstances(callback: (tabInfo: TabInformation) => void,
4597
4595
  export function shareDeepLink(deepLinkParameters: DeepLinkParameters): void;
4598
4596
  /**
4599
4597
  * @deprecated
4600
- * As of 2.0.0-beta.1, please use {@link core.executeDeepLink core.executeDeepLink(deepLink: string): Promise\<void\>} instead.
4598
+ * As of 2.0.0-beta.3, please use {@link app.openLink core.openLink(deepLink: string): Promise\<void\>} instead.
4601
4599
  *
4602
4600
  * Execute deep link API.
4603
4601
  *
@@ -341,7 +341,6 @@ __webpack_require__.d(__webpack_exports__, {
341
341
  "calendar": () => (/* reexport */ calendar),
342
342
  "call": () => (/* reexport */ call),
343
343
  "chat": () => (/* reexport */ chat),
344
- "core": () => (/* reexport */ core),
345
344
  "dialog": () => (/* reexport */ dialog),
346
345
  "enablePrintCapability": () => (/* reexport */ enablePrintCapability),
347
346
  "executeDeepLink": () => (/* reexport */ executeDeepLink),
@@ -395,7 +394,7 @@ __webpack_require__.d(__webpack_exports__, {
395
394
  });
396
395
 
397
396
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
398
- var version = '2.0.0-beta.3-dev.17';
397
+ var version = '2.0.0-beta.3-dev.21';
399
398
  /**
400
399
  * @hidden
401
400
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -2025,37 +2024,20 @@ var app_app;
2025
2024
  handlers_registerOnThemeChangeHandler(handler);
2026
2025
  }
2027
2026
  app.registerOnThemeChangeHandler = registerOnThemeChangeHandler;
2028
- })(app_app || (app_app = {}));
2029
- var core;
2030
- (function (core) {
2031
- /**
2032
- * Shares a deep link that a user can use to navigate back to a specific state in this page.
2033
- *
2034
- * @param deepLinkParameters - ID and label for the link and fallback URL.
2035
- */
2036
- function shareDeepLink(deepLinkParameters) {
2037
- ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
2038
- sendMessageToParent('shareDeepLink', [
2039
- deepLinkParameters.subEntityId,
2040
- deepLinkParameters.subEntityLabel,
2041
- deepLinkParameters.subEntityWebUrl,
2042
- ]);
2043
- }
2044
- core.shareDeepLink = shareDeepLink;
2045
2027
  /**
2046
- * execute deep link API.
2028
+ * open link API.
2047
2029
  *
2048
2030
  * @param deepLink - deep link.
2049
2031
  * @returns Promise that will be fulfilled when the operation has completed
2050
2032
  */
2051
- function executeDeepLink(deepLink) {
2033
+ function openLink(deepLink) {
2052
2034
  return new Promise(function (resolve) {
2053
2035
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
2054
2036
  resolve(sendAndHandleStatusAndReason('executeDeepLink', deepLink));
2055
2037
  });
2056
2038
  }
2057
- core.executeDeepLink = executeDeepLink;
2058
- })(core || (core = {}));
2039
+ app.openLink = openLink;
2040
+ })(app_app || (app_app = {}));
2059
2041
  /**
2060
2042
  * @hidden
2061
2043
  * Transforms the Legacy Context object received from Messages to the structured app.Context object
@@ -2222,6 +2204,20 @@ var pages;
2222
2204
  });
2223
2205
  }
2224
2206
  pages.navigateToApp = navigateToApp;
2207
+ /**
2208
+ * Shares a deep link that a user can use to navigate back to a specific state in this page.
2209
+ *
2210
+ * @param deepLinkParameters - ID and label for the link and fallback URL.
2211
+ */
2212
+ function shareDeepLink(deepLinkParameters) {
2213
+ ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
2214
+ sendMessageToParent('shareDeepLink', [
2215
+ deepLinkParameters.subEntityId,
2216
+ deepLinkParameters.subEntityLabel,
2217
+ deepLinkParameters.subEntityWebUrl,
2218
+ ]);
2219
+ }
2220
+ pages.shareDeepLink = shareDeepLink;
2225
2221
  /**
2226
2222
  * Registers a handler for changes from or to full-screen view for a tab.
2227
2223
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -4995,18 +4991,18 @@ function getMruTabInstances(callback, tabInstanceParameters) {
4995
4991
  }
4996
4992
  /**
4997
4993
  * @deprecated
4998
- * As of 2.0.0-beta.1, please use {@link core.shareDeepLink core.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
4994
+ * As of 2.0.0-beta.3, please use {@link pages.shareDeepLink pages.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
4999
4995
  *
5000
4996
  * Shares a deep link that a user can use to navigate back to a specific state in this page.
5001
4997
  *
5002
4998
  * @param deepLinkParameters - ID and label for the link and fallback URL.
5003
4999
  */
5004
5000
  function shareDeepLink(deepLinkParameters) {
5005
- core.shareDeepLink(deepLinkParameters);
5001
+ pages.shareDeepLink(deepLinkParameters);
5006
5002
  }
5007
5003
  /**
5008
5004
  * @deprecated
5009
- * As of 2.0.0-beta.1, please use {@link core.executeDeepLink core.executeDeepLink(deepLink: string): Promise\<void\>} instead.
5005
+ * As of 2.0.0-beta.3, please use {@link app.openLink core.openLink(deepLink: string): Promise\<void\>} instead.
5010
5006
  *
5011
5007
  * Execute deep link API.
5012
5008
  *
@@ -5015,7 +5011,7 @@ function shareDeepLink(deepLinkParameters) {
5015
5011
  function executeDeepLink(deepLink, onComplete) {
5016
5012
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
5017
5013
  onComplete = onComplete ? onComplete : getGenericOnCompleteHandler();
5018
- core.executeDeepLink(deepLink)
5014
+ app_app.openLink(deepLink)
5019
5015
  .then(function () {
5020
5016
  onComplete(true);
5021
5017
  })