@scalemule/sdk 0.0.35 → 0.0.36
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/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4199,6 +4199,11 @@ declare class PhotoService extends ServiceModule {
|
|
|
4199
4199
|
getOptimalUrl(photoId: string, displayWidth: number, options?: {
|
|
4200
4200
|
dpr?: number;
|
|
4201
4201
|
}): string;
|
|
4202
|
+
/**
|
|
4203
|
+
* Get the 36px avatar micro-thumbnail URL for a photo.
|
|
4204
|
+
* Hits the pre-generated 36x36 bicubic-resized cached variant.
|
|
4205
|
+
*/
|
|
4206
|
+
getAvatarThumbnailUrl(photoId: string): string;
|
|
4202
4207
|
/**
|
|
4203
4208
|
* Generate an HTML srcset string for responsive square photo display.
|
|
4204
4209
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -4199,6 +4199,11 @@ declare class PhotoService extends ServiceModule {
|
|
|
4199
4199
|
getOptimalUrl(photoId: string, displayWidth: number, options?: {
|
|
4200
4200
|
dpr?: number;
|
|
4201
4201
|
}): string;
|
|
4202
|
+
/**
|
|
4203
|
+
* Get the 36px avatar micro-thumbnail URL for a photo.
|
|
4204
|
+
* Hits the pre-generated 36x36 bicubic-resized cached variant.
|
|
4205
|
+
*/
|
|
4206
|
+
getAvatarThumbnailUrl(photoId: string): string;
|
|
4202
4207
|
/**
|
|
4203
4208
|
* Generate an HTML srcset string for responsive square photo display.
|
|
4204
4209
|
*
|
package/dist/index.js
CHANGED
|
@@ -6035,6 +6035,13 @@ var PhotoService = class extends ServiceModule {
|
|
|
6035
6035
|
const size = PHOTO_BREAKPOINTS.find((bp) => bp >= physicalWidth) ?? PHOTO_BREAKPOINTS[PHOTO_BREAKPOINTS.length - 1];
|
|
6036
6036
|
return this.getTransformUrl(photoId, { width: size, height: size, fit: "cover" });
|
|
6037
6037
|
}
|
|
6038
|
+
/**
|
|
6039
|
+
* Get the 36px avatar micro-thumbnail URL for a photo.
|
|
6040
|
+
* Hits the pre-generated 36x36 bicubic-resized cached variant.
|
|
6041
|
+
*/
|
|
6042
|
+
getAvatarThumbnailUrl(photoId) {
|
|
6043
|
+
return this.getOptimalUrl(photoId, 36);
|
|
6044
|
+
}
|
|
6038
6045
|
/**
|
|
6039
6046
|
* Generate an HTML srcset string for responsive square photo display.
|
|
6040
6047
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -5663,6 +5663,13 @@ var PhotoService = class extends ServiceModule {
|
|
|
5663
5663
|
const size = PHOTO_BREAKPOINTS.find((bp) => bp >= physicalWidth) ?? PHOTO_BREAKPOINTS[PHOTO_BREAKPOINTS.length - 1];
|
|
5664
5664
|
return this.getTransformUrl(photoId, { width: size, height: size, fit: "cover" });
|
|
5665
5665
|
}
|
|
5666
|
+
/**
|
|
5667
|
+
* Get the 36px avatar micro-thumbnail URL for a photo.
|
|
5668
|
+
* Hits the pre-generated 36x36 bicubic-resized cached variant.
|
|
5669
|
+
*/
|
|
5670
|
+
getAvatarThumbnailUrl(photoId) {
|
|
5671
|
+
return this.getOptimalUrl(photoId, 36);
|
|
5672
|
+
}
|
|
5666
5673
|
/**
|
|
5667
5674
|
* Generate an HTML srcset string for responsive square photo display.
|
|
5668
5675
|
*
|