arky-sdk 0.3.28 → 0.3.29
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.cjs +0 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +0 -12
- package/dist/index.js.map +1 -1
- package/dist/{svg-BhIM4HZW.d.ts → svg-CR0zPGOt.d.ts} +1 -3
- package/dist/{svg-CFjyTGXu.d.cts → svg-DKAX97qt.d.cts} +1 -3
- package/dist/types.d.cts +32 -0
- package/dist/types.d.ts +32 -0
- package/dist/utils.cjs +0 -12
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -11
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1140,16 +1140,6 @@ var getImageUrl = (imageBlock, isBlock = true, storageUrl = "https://storage.ark
|
|
|
1140
1140
|
}
|
|
1141
1141
|
return null;
|
|
1142
1142
|
};
|
|
1143
|
-
function getGalleryThumbnail(gallery) {
|
|
1144
|
-
if (!gallery?.length) return null;
|
|
1145
|
-
const item = gallery.find((g) => g.settings.isThumbnail) || gallery[0];
|
|
1146
|
-
const res = item.media.resolutions.thumbnail || item.media.resolutions.original;
|
|
1147
|
-
return res?.url || null;
|
|
1148
|
-
}
|
|
1149
|
-
function thumbnailUrl(service, storageUrl = "") {
|
|
1150
|
-
const path = getGalleryThumbnail(service.gallery);
|
|
1151
|
-
return path ? `${storageUrl}/${path}` : null;
|
|
1152
|
-
}
|
|
1153
1143
|
|
|
1154
1144
|
// src/utils/currency.ts
|
|
1155
1145
|
function getCurrencySymbol(currency) {
|
|
@@ -1550,8 +1540,6 @@ function createArkySDK(config) {
|
|
|
1550
1540
|
utils: {
|
|
1551
1541
|
// Block utilities
|
|
1552
1542
|
getImageUrl: (imageBlock, isBlock = true) => getImageUrl(imageBlock, isBlock, storageUrl),
|
|
1553
|
-
thumbnailUrl: (service) => thumbnailUrl(service, storageUrl),
|
|
1554
|
-
getGalleryThumbnail,
|
|
1555
1543
|
getBlockValue,
|
|
1556
1544
|
getBlockValues,
|
|
1557
1545
|
getBlockLabel,
|