@rh-support/utils 2.5.32 → 2.5.42
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/lib/esm/apiUtils.d.ts +1 -1
- package/lib/esm/apiUtils.js +1 -1
- package/lib/esm/scrollUtils.js +1 -1
- package/package.json +2 -2
package/lib/esm/apiUtils.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare function haventLoadedProductsMetadata(apiResponse: IApiResponseDe
|
|
|
9
9
|
/**
|
|
10
10
|
* we are trimming text as per limit set and then decode the string. test
|
|
11
11
|
* @param description Description string
|
|
12
|
-
* @param limit Limit to trim the
|
|
12
|
+
* @param limit Limit to trim the strings
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
15
|
export declare const getTrimmedCharacters: (description?: string, limit?: number) => string;
|
package/lib/esm/apiUtils.js
CHANGED
|
@@ -22,7 +22,7 @@ export function haventLoadedProductsMetadata(apiResponse) {
|
|
|
22
22
|
/**
|
|
23
23
|
* we are trimming text as per limit set and then decode the string. test
|
|
24
24
|
* @param description Description string
|
|
25
|
-
* @param limit Limit to trim the
|
|
25
|
+
* @param limit Limit to trim the strings
|
|
26
26
|
* @returns
|
|
27
27
|
*/
|
|
28
28
|
export const getTrimmedCharacters = (description = '', limit = 4000) => {
|
package/lib/esm/scrollUtils.js
CHANGED
|
@@ -22,7 +22,7 @@ export function scrollIntoView(sectionRef, options) {
|
|
|
22
22
|
const hasOffset = !!(options === null || options === void 0 ? void 0 : options.offset);
|
|
23
23
|
if (hasNavbar || hasOffset) {
|
|
24
24
|
const sectionRect = sectionRef.current.getBoundingClientRect();
|
|
25
|
-
let elementTopPosition = sectionRect.top
|
|
25
|
+
let elementTopPosition = sectionRect.top;
|
|
26
26
|
let top = elementTopPosition - ((_b = options === null || options === void 0 ? void 0 : options.offset) !== null && _b !== void 0 ? _b : 0);
|
|
27
27
|
if (hasNavbar) {
|
|
28
28
|
const navRect = options.navBarRef.current.getBoundingClientRect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.42",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"defaults and supports es6-module",
|
|
75
75
|
"maintained node versions"
|
|
76
76
|
],
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "08156d909dacebb039e331be207937c5879306a8"
|
|
78
78
|
}
|