jitz-sharepoint-utilities 2.0.21 → 2.0.22

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.
@@ -208,7 +208,8 @@ export class JitzPeoplePicker extends React.Component<
208
208
  );
209
209
  pers.imageUrl = UtilityService.getProfilePictureUrl(
210
210
  this.props.hostSiteUrl || this.props.context.siteUrl,
211
- pers.User.Email || ""
211
+ pers.User.Email || "",
212
+ "1"
212
213
  );
213
214
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
214
215
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${pers.User.Email}`;
@@ -312,7 +313,8 @@ export class JitzPeoplePicker extends React.Component<
312
313
  persons[index].User.Email ||
313
314
  persons[index].User.Key.substr(
314
315
  persons[index].User.Key.lastIndexOf("|") + 1
315
- )
316
+ ),
317
+ "1"
316
318
  );
317
319
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
318
320
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${
@@ -81,7 +81,8 @@ export class JitzPersonInfo extends React.Component<
81
81
  const userDetails = {
82
82
  imageUrl: UtilityService.getProfilePictureUrl(
83
83
  this.props.siteUrl || this.props.context!.siteUrl,
84
- this.props.email || this.state.user.email || ""
84
+ this.props.email || this.state.user.email || "",
85
+ "1"
85
86
  ),
86
87
  // this.props.imageUrl ||
87
88
  // (this.props.siteUrl || this.props.context!.siteUrl) +
@@ -74,7 +74,7 @@ var JitzPeoplePicker = /** @class */ (function (_super) {
74
74
  })
75
75
  .then(function (res) {
76
76
  var pers = new IObjects_1.SharePointUserPersona(res);
77
- pers.imageUrl = UtilityService_1.default.getProfilePictureUrl(_this.props.hostSiteUrl || _this.props.context.siteUrl, pers.User.Email || "");
77
+ pers.imageUrl = UtilityService_1.default.getProfilePictureUrl(_this.props.hostSiteUrl || _this.props.context.siteUrl, pers.User.Email || "", "1");
78
78
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
79
79
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${pers.User.Email}`;
80
80
  var prepopulatedItems = _this.state.selectedItems;
@@ -228,7 +228,7 @@ var JitzPeoplePicker = /** @class */ (function (_super) {
228
228
  var persons = userQueryResults.map(function (p) { return new IObjects_1.SharePointUserPersona(p); });
229
229
  persons.map(function (p, index) {
230
230
  persons[index].imageUrl = UtilityService_1.default.getProfilePictureUrl(_this.props.hostSiteUrl || _this.props.context.siteUrl, persons[index].User.Email ||
231
- persons[index].User.Key.substr(persons[index].User.Key.lastIndexOf("|") + 1));
231
+ persons[index].User.Key.substr(persons[index].User.Key.lastIndexOf("|") + 1), "1");
232
232
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
233
233
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${
234
234
  // persons[index].User.Email ||
@@ -71,7 +71,7 @@ var JitzPersonInfo = /** @class */ (function (_super) {
71
71
  JitzPersonInfo.prototype.render = function () {
72
72
  // const userDetails = this.state.user;
73
73
  var userDetails = {
74
- imageUrl: UtilityService_1.default.getProfilePictureUrl(this.props.siteUrl || this.props.context.siteUrl, this.props.email || this.state.user.email || ""),
74
+ imageUrl: UtilityService_1.default.getProfilePictureUrl(this.props.siteUrl || this.props.context.siteUrl, this.props.email || this.state.user.email || "", "1"),
75
75
  // this.props.imageUrl ||
76
76
  // (this.props.siteUrl || this.props.context!.siteUrl) +
77
77
  // `/_layouts/15/userphoto.aspx?size=${
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jitz-sharepoint-utilities",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "Essential SharePoint utilities for SharePoint Add-in and SPFx development",
5
5
  "author": "Jithendra Mani",
6
6
  "license": "ISC",