@bridgeline-digital/hawksearch-handlebars-ui 4.0.1 → 4.0.3-beta.0
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/changelog.md +9 -2
- package/dist/helpers/helpers.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
package/changelog.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
# 4.0.
|
|
1
|
+
# 4.0.3
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
1. Modified RecommendationsService to transform response properties into arrays to be consistent with search results and autocomplete.
|
|
4
|
+
2. Modified `attributes` property on `RecommendationsItem` to include only the properties from `customDict` on the API response. The other properties from the response are standard so repeating them under `attributes` does not make sense.
|
|
5
|
+
|
|
6
|
+
# 4.0.2
|
|
7
|
+
|
|
8
|
+
1. Updated `number` and `currency` Handlebars helpers to handle string values from API and made decimals parameter optional
|
|
9
|
+
|
|
10
|
+
# 4.0.1
|
|
4
11
|
|
|
5
12
|
1. Modified SearchService so that `hawksearch:after-search-completed` event fires before SEO elements are set
|
|
6
13
|
|
|
@@ -101,7 +101,7 @@ export declare function html(html: string): Handlebars.SafeString;
|
|
|
101
101
|
* @param defaultValue Default value
|
|
102
102
|
* @returns Formatted currency string
|
|
103
103
|
*/
|
|
104
|
-
export declare function currency(value: number | Array<number> | undefined, decimals: number | undefined, defaultValue?: number): string | undefined;
|
|
104
|
+
export declare function currency(value: number | string | Array<number> | Array<string> | undefined, decimals: number | undefined, defaultValue?: number): string | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* This function returns whether the first provided value is greater than the second provided value.
|
|
107
107
|
*
|
|
@@ -156,7 +156,7 @@ export declare function lte(value1: any, value2: any): boolean;
|
|
|
156
156
|
* @param defaultValue Default value
|
|
157
157
|
* @returns Formatted number string
|
|
158
158
|
*/
|
|
159
|
-
export declare function number(value: number | Array<number> | undefined, decimals: number, defaultValue?: number): string | undefined;
|
|
159
|
+
export declare function number(value: number | string | Array<number> | Array<string> | undefined, decimals: number | undefined, defaultValue?: number): string | undefined;
|
|
160
160
|
/**
|
|
161
161
|
* This function returns whether any provided value resolves to `true`.
|
|
162
162
|
*
|