everyday-helper 1.3.3 → 1.3.4
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/index.d.ts +1 -10
- package/index.js +0 -19
- package/package.json +2 -6
package/index.d.ts
CHANGED
|
@@ -237,15 +237,6 @@ interface WindowSize {
|
|
|
237
237
|
}
|
|
238
238
|
declare function useWindowSize(): WindowSize;
|
|
239
239
|
|
|
240
|
-
declare const useAppLocation: () => {
|
|
241
|
-
hash: string;
|
|
242
|
-
search: string;
|
|
243
|
-
isActive: (path: string) => boolean;
|
|
244
|
-
includes: (segment: string) => boolean;
|
|
245
|
-
pathname: string;
|
|
246
|
-
startsWith: (prefix: string) => boolean;
|
|
247
|
-
};
|
|
248
|
-
|
|
249
240
|
declare const useDownloadFile: ({ errorMessage, }: {
|
|
250
241
|
errorMessage: string;
|
|
251
242
|
}) => {
|
|
@@ -1251,4 +1242,4 @@ declare const bounceIn: (order?: number, className?: string, style?: CSSProperti
|
|
|
1251
1242
|
style: CSSProperties;
|
|
1252
1243
|
};
|
|
1253
1244
|
|
|
1254
|
-
export { type ClassValue, CookieManager, DateFormats, type DateInput, FormDataBuilder, type PrintStyle, addAsteriskIf, addToDate, animate, areAllValuesComplete, average, bounceIn, capitalize, capitalizeWords, checkArrEquality, chunk, cleanObject, clone, cn, compactArr, compactStr, compareDates, compose, concatIf, constant, convertBase64ToFile, convertFileToBase64, count, countOccurrences, createFormData, createStorage, curry, debounce, deepClone, deepFreeze, deepMerge, delay, difference, endOf, endsWith, entries, eqIgnoreCase, extractBase64FromDataUrl, fadeIn, fileToArrayBuffer, filterObject, first, firstSeveral, flatten, flattenDeep, flip, formatDate, formatDateRange, formatRelativeTime, fromPairs, generateQuery, get, getAge, getDateDifference, getEndpoint, getImageUrl, groupBy, has, hasAzerbaijanCountryCode, identity, includesIgnoreCase, intersection, invert, isBetweenDates, isBrowser, isEmpty, isEqual, isFuture, isLoggedIn, isNotEmpty, isNulOrUndefined, isObject, isPast, isSameDay, isString, isStringSimilar, isToday, isTomorrow, isValidDate, isYesterday, keys, last, lastSeveral, lazyLoad, local, mapKeys, mapValues, max, memoize, merge, min, negate, noop, normalizePhone, normalizeWhitespace, now, omit, once, padEnd, padStart, parseDate, partial, partition, pick, pushIf, rateLimit, reject, repeat, retry, reverse, reverseArr, safeCall, safeWindow, sample, sampleSize, scaleIn, session, set, shuffle, slideInDown, slideInLeft, slideInRight, slideInUp, slugify, sortBy, startOf, startsWith, subtractFromDate, sum, throttle, timeId, tinyId, toCamelCase, toISOString, toKebabCase, toPascalCase, toSnakeCase, toUnixTimestamp, toUpperSnakeCase, trim, trimEnd, trimStart, truncate, tryCatch, tryCatchAsync, unflatten, union, unique, uniqueBy,
|
|
1245
|
+
export { type ClassValue, CookieManager, DateFormats, type DateInput, FormDataBuilder, type PrintStyle, addAsteriskIf, addToDate, animate, areAllValuesComplete, average, bounceIn, capitalize, capitalizeWords, checkArrEquality, chunk, cleanObject, clone, cn, compactArr, compactStr, compareDates, compose, concatIf, constant, convertBase64ToFile, convertFileToBase64, count, countOccurrences, createFormData, createStorage, curry, debounce, deepClone, deepFreeze, deepMerge, delay, difference, endOf, endsWith, entries, eqIgnoreCase, extractBase64FromDataUrl, fadeIn, fileToArrayBuffer, filterObject, first, firstSeveral, flatten, flattenDeep, flip, formatDate, formatDateRange, formatRelativeTime, fromPairs, generateQuery, get, getAge, getDateDifference, getEndpoint, getImageUrl, groupBy, has, hasAzerbaijanCountryCode, identity, includesIgnoreCase, intersection, invert, isBetweenDates, isBrowser, isEmpty, isEqual, isFuture, isLoggedIn, isNotEmpty, isNulOrUndefined, isObject, isPast, isSameDay, isString, isStringSimilar, isToday, isTomorrow, isValidDate, isYesterday, keys, last, lastSeveral, lazyLoad, local, mapKeys, mapValues, max, memoize, merge, min, negate, noop, normalizePhone, normalizeWhitespace, now, omit, once, padEnd, padStart, parseDate, partial, partition, pick, pushIf, rateLimit, reject, repeat, retry, reverse, reverseArr, safeCall, safeWindow, sample, sampleSize, scaleIn, session, set, shuffle, slideInDown, slideInLeft, slideInRight, slideInUp, slugify, sortBy, startOf, startsWith, subtractFromDate, sum, throttle, timeId, tinyId, toCamelCase, toISOString, toKebabCase, toPascalCase, toSnakeCase, toUnixTimestamp, toUpperSnakeCase, trim, trimEnd, trimStart, truncate, tryCatch, tryCatchAsync, unflatten, union, unique, uniqueBy, useDebounce, useDownloadFile, useEscapeKey, useEventListener, useInterval, useKeyPress, useMediaQuery, useMount, useOnlineStatus, useOutsideClick, usePortal, usePrevious, usePrint, useResizeListener, useScrollLock, useToggle, useUnmount, useUpdateEffect, useWindowSize, values, withAzerbaijanCountryCode, without, zip };
|
package/index.js
CHANGED
|
@@ -640,24 +640,6 @@ function useWindowSize() {
|
|
|
640
640
|
return windowSize;
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
-
// src/hooks/useAppLocation.ts
|
|
644
|
-
import { useLocation } from "react-router-dom";
|
|
645
|
-
var useAppLocation = () => {
|
|
646
|
-
const location = useLocation();
|
|
647
|
-
const { pathname, hash, search } = location ?? {};
|
|
648
|
-
const isActive = (path) => pathname === path;
|
|
649
|
-
const includes = (segment) => pathname.includes(segment);
|
|
650
|
-
const startsWith2 = (prefix) => pathname.startsWith(prefix);
|
|
651
|
-
return {
|
|
652
|
-
hash,
|
|
653
|
-
search,
|
|
654
|
-
isActive,
|
|
655
|
-
includes,
|
|
656
|
-
pathname,
|
|
657
|
-
startsWith: startsWith2
|
|
658
|
-
};
|
|
659
|
-
};
|
|
660
|
-
|
|
661
643
|
// src/hooks/useDownloadFile.ts
|
|
662
644
|
var useDownloadFile = ({
|
|
663
645
|
errorMessage = "Endirm\u0259 u\u011Fursuz oldu."
|
|
@@ -1863,7 +1845,6 @@ export {
|
|
|
1863
1845
|
union,
|
|
1864
1846
|
unique,
|
|
1865
1847
|
uniqueBy,
|
|
1866
|
-
useAppLocation,
|
|
1867
1848
|
useDebounce,
|
|
1868
1849
|
useDownloadFile,
|
|
1869
1850
|
useEscapeKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "everyday-helper",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "A lightweight collection of React hooks, utility functions, and helpers for modern React development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,8 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": ">=18",
|
|
63
|
-
"react-dom": ">=18"
|
|
64
|
-
"react-router-dom": ">=6.0.0"
|
|
63
|
+
"react-dom": ">=18"
|
|
65
64
|
},
|
|
66
65
|
"peerDependenciesMeta": {
|
|
67
66
|
"react": {
|
|
@@ -69,9 +68,6 @@
|
|
|
69
68
|
},
|
|
70
69
|
"react-dom": {
|
|
71
70
|
"optional": false
|
|
72
|
-
},
|
|
73
|
-
"react-router-dom": {
|
|
74
|
-
"optional": false
|
|
75
71
|
}
|
|
76
72
|
},
|
|
77
73
|
"devDependencies": {
|