@microsoft/teams-js 2.0.0-beta.5-dev.6 → 2.0.0-beta.5-dev.7

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.
@@ -2086,6 +2086,26 @@ export interface Context {
2086
2086
  */
2087
2087
  mySitePath?: string;
2088
2088
  }
2089
+ export interface ShareDeepLinkParameters {
2090
+ /**
2091
+ * The developer-defined unique ID for the sub-page to which this deep link points in the current page.
2092
+ * This field should be used to restore to a specific state within a page, such as scrolling to or activating a specific piece of content.
2093
+ */
2094
+ subPageId: string;
2095
+ /**
2096
+ * The label for the sub-page that should be displayed when the deep link is rendered in a client.
2097
+ */
2098
+ subPageLabel: string;
2099
+ /**
2100
+ * The fallback URL to which to navigate the user if the client cannot render the page.
2101
+ * This URL should lead directly to the sub-entity.
2102
+ */
2103
+ subPageWebUrl?: string;
2104
+ }
2105
+ /**
2106
+ * @deprecated
2107
+ * As of 2.0.0-beta.5, please use {@link ShareDeepLinkParameters} instead.
2108
+ */
2089
2109
  export interface DeepLinkParameters {
2090
2110
  /**
2091
2111
  * The developer-defined unique ID for the sub-entity to which this deep link points in the current entity.
@@ -2973,7 +2993,7 @@ export namespace pages {
2973
2993
  *
2974
2994
  * @param deepLinkParameters - ID and label for the link and fallback URL.
2975
2995
  */
2976
- function shareDeepLink(deepLinkParameters: DeepLinkParameters): void;
2996
+ function shareDeepLink(deepLinkParameters: ShareDeepLinkParameters): void;
2977
2997
  /**
2978
2998
  * Registers a handler for changes from or to full-screen view for a tab.
2979
2999
  * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
@@ -1121,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
1121
1121
  });
1122
1122
 
1123
1123
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1124
- var version = "2.0.0-beta.5-dev.6";
1124
+ var version = "2.0.0-beta.5-dev.7";
1125
1125
  /**
1126
1126
  * @hidden
1127
1127
  * The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -3144,9 +3144,9 @@ var pages;
3144
3144
  function shareDeepLink(deepLinkParameters) {
3145
3145
  ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
3146
3146
  sendMessageToParent('shareDeepLink', [
3147
- deepLinkParameters.subEntityId,
3148
- deepLinkParameters.subEntityLabel,
3149
- deepLinkParameters.subEntityWebUrl,
3147
+ deepLinkParameters.subPageId,
3148
+ deepLinkParameters.subPageLabel,
3149
+ deepLinkParameters.subPageWebUrl,
3150
3150
  ]);
3151
3151
  }
3152
3152
  pages.shareDeepLink = shareDeepLink;
@@ -6223,7 +6223,11 @@ function getMruTabInstances(callback, tabInstanceParameters) {
6223
6223
  * @param deepLinkParameters - ID and label for the link and fallback URL.
6224
6224
  */
6225
6225
  function shareDeepLink(deepLinkParameters) {
6226
- pages.shareDeepLink(deepLinkParameters);
6226
+ pages.shareDeepLink({
6227
+ subPageId: deepLinkParameters.subEntityId,
6228
+ subPageLabel: deepLinkParameters.subEntityLabel,
6229
+ subPageWebUrl: deepLinkParameters.subEntityWebUrl,
6230
+ });
6227
6231
  }
6228
6232
  /**
6229
6233
  * @deprecated