@open-tender/utils 0.1.1 → 0.1.2

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.
@@ -29,29 +29,7 @@ export declare const makeRandomNumberString: () => string;
29
29
  export declare const getWidth: () => number;
30
30
  export declare const getHeight: () => number;
31
31
  export declare const makeImageUrl: (images: ContentImages, isMobile: boolean) => string | null | undefined;
32
- export declare const makeSlides: (items: Announcements, isMobile: boolean) => {
33
- imageUrl: string | null | undefined;
34
- announcement_id: number;
35
- display_order: number;
36
- hide_text: boolean;
37
- hide_text_mobile: boolean;
38
- horizontal: string;
39
- images: ContentImages;
40
- overlay_color: string;
41
- overlay_opacity: number;
42
- show_overlay: boolean;
43
- subtitle: string;
44
- subtitle_color: string;
45
- subtitle_size: string | number | null;
46
- text_color: string;
47
- title: string;
48
- title_color: string;
49
- title_size: string | number | null;
50
- url: string | null;
51
- url_text: string | null;
52
- vertical: string;
53
- imageUri?: string | undefined;
54
- }[] | null;
32
+ export declare const makeSlides: (items: Announcements, isMobile: boolean) => Announcements | null;
55
33
  export declare const displayPrice: (price: string) => string;
56
34
  export declare const addCommas: (x: number, d: number) => string;
57
35
  export declare const formatQuantity: (n: string) => string;
@@ -29,29 +29,7 @@ export declare const makeRandomNumberString: () => string;
29
29
  export declare const getWidth: () => number;
30
30
  export declare const getHeight: () => number;
31
31
  export declare const makeImageUrl: (images: ContentImages, isMobile: boolean) => string | null | undefined;
32
- export declare const makeSlides: (items: Announcements, isMobile: boolean) => {
33
- imageUrl: string | null | undefined;
34
- announcement_id: number;
35
- display_order: number;
36
- hide_text: boolean;
37
- hide_text_mobile: boolean;
38
- horizontal: string;
39
- images: ContentImages;
40
- overlay_color: string;
41
- overlay_opacity: number;
42
- show_overlay: boolean;
43
- subtitle: string;
44
- subtitle_color: string;
45
- subtitle_size: string | number | null;
46
- text_color: string;
47
- title: string;
48
- title_color: string;
49
- title_size: string | number | null;
50
- url: string | null;
51
- url_text: string | null;
52
- vertical: string;
53
- imageUri?: string | undefined;
54
- }[] | null;
32
+ export declare const makeSlides: (items: Announcements, isMobile: boolean) => Announcements | null;
55
33
  export declare const displayPrice: (price: string) => string;
56
34
  export declare const addCommas: (x: number, d: number) => string;
57
35
  export declare const formatQuantity: (n: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",