@open-tender/utils 0.1.21 → 0.1.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.
|
@@ -28,7 +28,11 @@ export declare const checkGuestData: (data: GuestData, email: string) => {
|
|
|
28
28
|
export declare const makeRandomNumberString: () => string;
|
|
29
29
|
export declare const getWidth: () => number;
|
|
30
30
|
export declare const getHeight: () => number;
|
|
31
|
-
export declare const makeImageMap: (images: Images) => {
|
|
31
|
+
export declare const makeImageMap: (images: Images) => {
|
|
32
|
+
APP_IMAGE?: string | undefined;
|
|
33
|
+
LARGE_IMAGE?: string | undefined;
|
|
34
|
+
SMALL_IMAGE?: string | undefined;
|
|
35
|
+
};
|
|
32
36
|
export declare const makeImageUrl: (images: ContentImages, isMobile: boolean) => string | null | undefined;
|
|
33
37
|
export declare const makeSlides: (items: Announcements, isMobile: boolean) => Announcements | null;
|
|
34
38
|
export declare const displayPrice: (price: string) => string;
|
|
@@ -140,9 +140,10 @@ const getHeight = () => {
|
|
|
140
140
|
};
|
|
141
141
|
exports.getHeight = getHeight;
|
|
142
142
|
const makeImageMap = (images) => {
|
|
143
|
-
|
|
143
|
+
const imagesMap = images
|
|
144
144
|
.filter(i => i.url)
|
|
145
145
|
.reduce((obj, i) => (Object.assign(Object.assign({}, obj), { [i.type]: i.url })), {});
|
|
146
|
+
return imagesMap;
|
|
146
147
|
};
|
|
147
148
|
exports.makeImageMap = makeImageMap;
|
|
148
149
|
const makeImageUrl = (images, isMobile) => {
|
|
@@ -28,7 +28,11 @@ export declare const checkGuestData: (data: GuestData, email: string) => {
|
|
|
28
28
|
export declare const makeRandomNumberString: () => string;
|
|
29
29
|
export declare const getWidth: () => number;
|
|
30
30
|
export declare const getHeight: () => number;
|
|
31
|
-
export declare const makeImageMap: (images: Images) => {
|
|
31
|
+
export declare const makeImageMap: (images: Images) => {
|
|
32
|
+
APP_IMAGE?: string | undefined;
|
|
33
|
+
LARGE_IMAGE?: string | undefined;
|
|
34
|
+
SMALL_IMAGE?: string | undefined;
|
|
35
|
+
};
|
|
32
36
|
export declare const makeImageUrl: (images: ContentImages, isMobile: boolean) => string | null | undefined;
|
|
33
37
|
export declare const makeSlides: (items: Announcements, isMobile: boolean) => Announcements | null;
|
|
34
38
|
export declare const displayPrice: (price: string) => string;
|
|
@@ -116,9 +116,10 @@ export const getHeight = () => {
|
|
|
116
116
|
return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight, document.body.offsetHeight, document.documentElement.offsetHeight, document.documentElement.clientHeight);
|
|
117
117
|
};
|
|
118
118
|
export const makeImageMap = (images) => {
|
|
119
|
-
|
|
119
|
+
const imagesMap = images
|
|
120
120
|
.filter(i => i.url)
|
|
121
121
|
.reduce((obj, i) => (Object.assign(Object.assign({}, obj), { [i.type]: i.url })), {});
|
|
122
|
+
return imagesMap;
|
|
122
123
|
};
|
|
123
124
|
export const makeImageUrl = (images, isMobile) => {
|
|
124
125
|
var _a;
|
package/package.json
CHANGED