@microsoft/teams-js 2.0.0-beta.3-dev.57 → 2.0.0-beta.3-dev.58
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/dist/MicrosoftTeams.d.ts
CHANGED
|
@@ -2172,6 +2172,16 @@ export interface Context {
|
|
|
2172
2172
|
* Teamsite ID, aka sharepoint site id.
|
|
2173
2173
|
*/
|
|
2174
2174
|
teamSiteId?: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* @hidden
|
|
2177
|
+
* The SharePoint my site domain associated with the user.
|
|
2178
|
+
*/
|
|
2179
|
+
mySiteDomain?: string;
|
|
2180
|
+
/**
|
|
2181
|
+
* @hidden
|
|
2182
|
+
* The SharePoint relative path to the current users mysite
|
|
2183
|
+
*/
|
|
2184
|
+
mySitePath?: string;
|
|
2175
2185
|
}
|
|
2176
2186
|
export interface DeepLinkParameters {
|
|
2177
2187
|
/**
|
|
@@ -2667,19 +2677,27 @@ export namespace app {
|
|
|
2667
2677
|
/**
|
|
2668
2678
|
* The root SharePoint site associated with the team.
|
|
2669
2679
|
*/
|
|
2670
|
-
|
|
2680
|
+
teamSiteUrl?: string;
|
|
2671
2681
|
/**
|
|
2672
2682
|
* The domain of the root SharePoint site associated with the team.
|
|
2673
2683
|
*/
|
|
2674
|
-
|
|
2684
|
+
teamSiteDomain?: string;
|
|
2675
2685
|
/**
|
|
2676
2686
|
* The relative path to the SharePoint site associated with the team.
|
|
2677
2687
|
*/
|
|
2678
|
-
|
|
2688
|
+
teamSitePath?: string;
|
|
2679
2689
|
/**
|
|
2680
2690
|
* Teamsite ID, aka sharepoint site id.
|
|
2681
2691
|
*/
|
|
2682
|
-
|
|
2692
|
+
teamSiteId?: string;
|
|
2693
|
+
/**
|
|
2694
|
+
* The SharePoint my site domain associated with the user.
|
|
2695
|
+
*/
|
|
2696
|
+
mySiteDomain?: string;
|
|
2697
|
+
/**
|
|
2698
|
+
* The SharePoint relative path to the current users mysite
|
|
2699
|
+
*/
|
|
2700
|
+
mySitePath?: string;
|
|
2683
2701
|
}
|
|
2684
2702
|
/**
|
|
2685
2703
|
* Represents structure of the context message received
|
package/dist/MicrosoftTeams.js
CHANGED
|
@@ -1120,7 +1120,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
|
|
1122
1122
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
|
1123
|
-
var version = "2.0.0-beta.3-dev.
|
|
1123
|
+
var version = "2.0.0-beta.3-dev.58";
|
|
1124
1124
|
/**
|
|
1125
1125
|
* @hidden
|
|
1126
1126
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
@@ -2974,12 +2974,18 @@ function transformLegacyContextToAppContext(legacyContext) {
|
|
|
2974
2974
|
userRole: legacyContext.userTeamRole,
|
|
2975
2975
|
}
|
|
2976
2976
|
: undefined,
|
|
2977
|
-
sharePointSite: legacyContext.teamSiteUrl ||
|
|
2977
|
+
sharePointSite: legacyContext.teamSiteUrl ||
|
|
2978
|
+
legacyContext.teamSiteDomain ||
|
|
2979
|
+
legacyContext.teamSitePath ||
|
|
2980
|
+
legacyContext.mySitePath ||
|
|
2981
|
+
legacyContext.mySiteDomain
|
|
2978
2982
|
? {
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
+
teamSiteUrl: legacyContext.teamSiteUrl,
|
|
2984
|
+
teamSiteDomain: legacyContext.teamSiteDomain,
|
|
2985
|
+
teamSitePath: legacyContext.teamSitePath,
|
|
2986
|
+
teamSiteId: legacyContext.teamSiteId,
|
|
2987
|
+
mySitePath: legacyContext.mySitePath,
|
|
2988
|
+
mySiteDomain: legacyContext.mySiteDomain,
|
|
2983
2989
|
}
|
|
2984
2990
|
: undefined,
|
|
2985
2991
|
};
|
|
@@ -6102,10 +6108,12 @@ function transformAppContextToLegacyContext(appContext) {
|
|
|
6102
6108
|
isTeamArchived: appContext.team !== undefined ? appContext.team.isArchived : undefined,
|
|
6103
6109
|
userTeamRole: appContext.team !== undefined ? appContext.team.userRole : undefined,
|
|
6104
6110
|
// sharepointSite
|
|
6105
|
-
teamSiteUrl: appContext.sharePointSite !== undefined ? appContext.sharePointSite.
|
|
6106
|
-
teamSiteDomain: appContext.sharePointSite !== undefined ? appContext.sharePointSite.
|
|
6107
|
-
teamSitePath: appContext.sharePointSite !== undefined ? appContext.sharePointSite.
|
|
6108
|
-
teamSiteId: appContext.sharePointSite !== undefined ? appContext.sharePointSite.
|
|
6111
|
+
teamSiteUrl: appContext.sharePointSite !== undefined ? appContext.sharePointSite.teamSiteUrl : undefined,
|
|
6112
|
+
teamSiteDomain: appContext.sharePointSite !== undefined ? appContext.sharePointSite.teamSiteDomain : undefined,
|
|
6113
|
+
teamSitePath: appContext.sharePointSite !== undefined ? appContext.sharePointSite.teamSitePath : undefined,
|
|
6114
|
+
teamSiteId: appContext.sharePointSite !== undefined ? appContext.sharePointSite.teamSiteId : undefined,
|
|
6115
|
+
mySitePath: appContext.sharePointSite !== undefined ? appContext.sharePointSite.mySitePath : undefined,
|
|
6116
|
+
mySiteDomain: appContext.sharePointSite !== undefined ? appContext.sharePointSite.mySiteDomain : undefined,
|
|
6109
6117
|
};
|
|
6110
6118
|
return context;
|
|
6111
6119
|
}
|