react-js-plugins 1.3.12 → 1.4.1

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/README.md CHANGED
@@ -24,9 +24,8 @@ pnpm add react-js-plugins
24
24
  | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
25
25
  | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
26
26
 
27
- # Utility Functions Documentation
28
27
 
29
- ## 📊 Array Functions
28
+ ## Array Functions
30
29
 
31
30
  ### ✅ **_arrayDiff**
32
31
  Returns the difference between two arrays.
@@ -305,7 +304,7 @@ const updated = _updateObjectInArray(users, 'id', '123', { name: 'New Name' });
305
304
 
306
305
  ---
307
306
 
308
- ## 🗃️ Object Functions
307
+ ## Object Functions
309
308
 
310
309
  ### ✅ **_deepClone**
311
310
  Deep clones an object using `JSON.stringify` and `JSON.parse`.
@@ -429,7 +428,7 @@ _setNestedProperty(obj, 'user.address.city', 'Mumbai');
429
428
 
430
429
  ---
431
430
 
432
- ## 📝 Form & Validation Functions
431
+ ## Form & Validation Functions
433
432
 
434
433
  ### ✅ **_dynamicRequiredValidation**
435
434
  Generates a Yup schema with required validations for given fields.
@@ -677,7 +676,7 @@ const isValid = _isValidUUID('550e8400-e29b-41d4-a716-446655440000');
677
676
 
678
677
  ---
679
678
 
680
- ## 🔐 Security & Encryption Functions
679
+ ## Security & Encryption Functions
681
680
 
682
681
  ### ✅ **_decryptJson**
683
682
  Decrypts AES-encrypted JSON string using a secret key.
@@ -724,7 +723,7 @@ const newPassword = _generatePassword(12);
724
723
 
725
724
  ---
726
725
 
727
- ## 🎫 Event & DOM Functions
726
+ ## Event & DOM Functions
728
727
 
729
728
  ### ✅ **_addEventListenerToElement**
730
729
  Attaches an event listener to a DOM element.
@@ -965,7 +964,7 @@ _showElement('#modal', 'flex');
965
964
 
966
965
  ---
967
966
 
968
- ## 📁 File & Data Functions
967
+ ## File & Data Functions
969
968
 
970
969
  ### ✅ **_base64ToBlob**
971
970
  Converts a base64-encoded string into a Blob object.
@@ -1037,7 +1036,7 @@ const handleChangeFile = async (file) => {
1037
1036
 
1038
1037
  ---
1039
1038
 
1040
- ## 🌐 Browser & Storage Functions
1039
+ ## Browser & Storage Functions
1041
1040
 
1042
1041
  ### ✅ **_clearRouteState**
1043
1042
  Removes the route state from the browser's history without reloading the page, keeping the current path intact.
@@ -1102,7 +1101,7 @@ _setCookie('auth_token', 'abc123', 7);
1102
1101
 
1103
1102
  ---
1104
1103
 
1105
- ## 🎨 String & Text Functions
1104
+ ## String & Text Functions
1106
1105
 
1107
1106
  ### ✅ **_bytesToSize**
1108
1107
  Converts byte size into a human-readable format.
@@ -1166,7 +1165,7 @@ _toCamelCase('hello_world'); // helloWorld
1166
1165
 
1167
1166
  ---
1168
1167
 
1169
- ## 📅 Date & Time Functions
1168
+ ## Date & Time Functions
1170
1169
 
1171
1170
  ### ✅ **_calculateTimeDifference**
1172
1171
  Returns difference between two dates in readable format.
@@ -1244,7 +1243,6 @@ const weekend = _isWeekend(new Date('2025-06-08')); // true (Sunday)
1244
1243
 
1245
1244
  ---
1246
1245
 
1247
- ## 🧮 Math & Calculation Functions
1248
1246
 
1249
1247
  ### ✅ **_calPercentage**
1250
1248
  Calculates the percentage of a value relative to total.
@@ -1272,8 +1270,6 @@ const formatted = _thousandSeparator(1234567.89);
1272
1270
 
1273
1271
  ---
1274
1272
 
1275
- ## 🔧 Utility & Helper Functions
1276
-
1277
1273
  ### ✅ **_alert**
1278
1274
  Shows a customizable alert modal.
1279
1275
  ```ts
@@ -1,3 +1,4 @@
1
+ import { ClassValue } from "../typesdts/types";
1
2
  export declare const _isNotEmpty: <T>(value: T) => boolean;
2
3
  export declare const _generateUUID: () => string;
3
4
  export declare const _countWords: (str: string) => number;
@@ -8,3 +9,4 @@ export declare const _escapeHTML: (str: string) => string;
8
9
  export declare const _handleApi: <T>(apiCall: Promise<T>, onSuccess: (res: T) => void, onError: (err: unknown) => void, onFinally?: () => void) => Promise<void>;
9
10
  export declare const _handleSafe: (action: () => void | Promise<void>, onError?: (error: unknown) => void, onFinally?: () => void) => Promise<void>;
10
11
  export declare function _clearRouteState(path?: string): void;
12
+ export declare const _clsx: (...args: ClassValue[]) => string;
@@ -137,3 +137,34 @@ export function _clearRouteState(path) {
137
137
  var safePath = typeof path === 'string' ? path : window.location.pathname;
138
138
  window.history.replaceState(null, '', safePath);
139
139
  }
140
+ var toVal = function (mix) {
141
+ if (typeof mix === "string" || typeof mix === "number") {
142
+ return String(mix);
143
+ }
144
+ if (Array.isArray(mix)) {
145
+ return mix
146
+ .map(toVal)
147
+ .filter(Boolean)
148
+ .join(" ");
149
+ }
150
+ if (mix && typeof mix === "object") {
151
+ return Object.entries(mix)
152
+ .filter(function (_a) {
153
+ var _ = _a[0], value = _a[1];
154
+ return Boolean(value);
155
+ })
156
+ .map(function (_a) {
157
+ var key = _a[0];
158
+ return key;
159
+ })
160
+ .join(" ");
161
+ }
162
+ return "";
163
+ };
164
+ export var _clsx = function () {
165
+ var args = [];
166
+ for (var _i = 0; _i < arguments.length; _i++) {
167
+ args[_i] = arguments[_i];
168
+ }
169
+ return args.map(toVal).filter(Boolean).join(" ");
170
+ };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'nprogress/nprogress.css';
2
2
  import { LazyLoader } from './chunkautils/chunk23111';
3
- import { _isNotEmpty, _generateUUID, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState } from "./chunkautils/chunk22123";
3
+ import { _isNotEmpty, _generateUUID, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState, _clsx } from "./chunkautils/chunk22123";
4
4
  import { createPrivateInstance, createPublicInstance } from "./chunkautils/chunk83454";
5
5
  import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _exportExcel, _flattenArray, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _getUTCTimestamp, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator } from "./chunkautils/chunk65431";
6
6
  import { _addEventListenerToElement, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _clearNode, _cloneElement, _copyText, _domSelector, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _getChildElements, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getParent, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _hideElement, _insertHTML, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidFormData, _isValidFunction, _isValidHexColor, _isValidHTMLElement, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _pasteText, _reloadAfterLoad, _removeAllChildren, _removeElement, _removeDuplicateByKey, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _showElement, _snipDecimals, _throwError, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad } from "./chunkautils/chunk75342";
7
7
  import { _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _calPercentage, _chunk, _dateFormat, _dateTransformer, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicRequiredValidation, _escapeRegExpMatch, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenObject, _formatDate, _localeDateFormat, _freeze, _generateYupValidation, _getArrayOfObjectsByProperty, _getKeyByValue, _getKeysByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getPriceAfterTax, _getScrollPosition, _getUniqueValues, _getValueByKey, _groupBy, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePermissions, _initializeFormValues, _initializeFormikFields, _isExactMatch, _isFreeze, _isInArray, _isSeal, _isValidForm, _mapAsync, _mergeArrays, _mergeArraysByKey, _objectToArray, _removeDuplicates, _scrollToTop, _seal, _setNestedProperty, _setTouchedFields, _sortByKey, _swapArrayByKey, _swapArrayElements, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef } from './chunkautils/chunk83453';
8
- export { LazyLoader, createPrivateInstance, createPublicInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenArray, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _getUniqueValues, _getValueByKey, _groupBy, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _isLeapYear, _isWeekend, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isNotEmpty, _isEmptyArray, _isEmptyObject, _isEqual, _isExactMatch, _isFreeze, _isInArray, _isMobile, _isSeal, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidForm, _isValidFormData, _isValidFunction, _isValidHTMLElement, _isValidHexColor, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _mapAsync, _mapObject, _mergeArrays, _mergeArraysByKey, _mergeObjects, _objectToArray, _parseJSON, _pasteText, _promise, _reloadAfterLoad, _removeAllChildren, _removeDuplicates, _removeDuplicateByKey, _removeElement, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeFalsy, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _scrollToTop, _sleep, _seal, _setCookie, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _setNestedProperty, _setTouchedFields, _showElement, _snipDecimals, _sortByKey, _stringifyJSON, _swapArrayByKey, _swapArrayElements, _thousandSeparator, _throwError, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
8
+ export { LazyLoader, createPrivateInstance, createPublicInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _clsx, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenArray, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _getUniqueValues, _getValueByKey, _groupBy, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _isLeapYear, _isWeekend, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isNotEmpty, _isEmptyArray, _isEmptyObject, _isEqual, _isExactMatch, _isFreeze, _isInArray, _isMobile, _isSeal, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidForm, _isValidFormData, _isValidFunction, _isValidHTMLElement, _isValidHexColor, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _mapAsync, _mapObject, _mergeArrays, _mergeArraysByKey, _mergeObjects, _objectToArray, _parseJSON, _pasteText, _promise, _reloadAfterLoad, _removeAllChildren, _removeDuplicates, _removeDuplicateByKey, _removeElement, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeFalsy, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _scrollToTop, _sleep, _seal, _setCookie, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _setNestedProperty, _setTouchedFields, _showElement, _snipDecimals, _sortByKey, _stringifyJSON, _swapArrayByKey, _swapArrayElements, _thousandSeparator, _throwError, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'nprogress/nprogress.css';
2
2
  import { LazyLoader } from './chunkautils/chunk23111';
3
- import { _isNotEmpty, _generateUUID, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState } from "./chunkautils/chunk22123";
3
+ import { _isNotEmpty, _generateUUID, _isLeapYear, _isWeekend, _removeFalsy, _escapeHTML, _handleApi, _handleSafe, _clearRouteState, _clsx } from "./chunkautils/chunk22123";
4
4
  import { createPrivateInstance, createPublicInstance } from "./chunkautils/chunk83454";
5
5
  import { _alert, _capitalize, _confirm, _convertToCurrency, _decodeURI, _deepClone, _decryptJson, _decryptString, _dynamicReducer, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _exportExcel, _flattenArray, _generatePassword, _genericReducer, _getBrowserInfo, _getCookie, _getFinancialYear, _getStartStopTime, _getStorage, _getUTCTimestamp, _globalizeDateTime, _formatInternationalDate, _hasElement, _hasItem, _importExcel, _isEmptyArray, _isEmptyObject, _isEqual, _isMobile, _mapObject, _mergeObjects, _parseJSON, _sleep, _promise, _setCookie, _stringifyJSON, _thousandSeparator } from "./chunkautils/chunk65431";
6
6
  import { _addEventListenerToElement, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _clearNode, _cloneElement, _copyText, _domSelector, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _getChildElements, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getParent, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _hideElement, _insertHTML, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidFormData, _isValidFunction, _isValidHexColor, _isValidHTMLElement, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _pasteText, _reloadAfterLoad, _removeAllChildren, _removeElement, _removeDuplicateByKey, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _showElement, _snipDecimals, _throwError, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad } from "./chunkautils/chunk75342";
7
7
  import { _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _calPercentage, _chunk, _dateFormat, _dateTransformer, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicRequiredValidation, _escapeRegExpMatch, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenObject, _formatDate, _localeDateFormat, _freeze, _generateYupValidation, _getArrayOfObjectsByProperty, _getKeyByValue, _getKeysByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getPriceAfterTax, _getScrollPosition, _getUniqueValues, _getValueByKey, _groupBy, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePermissions, _initializeFormValues, _initializeFormikFields, _isExactMatch, _isFreeze, _isInArray, _isSeal, _isValidForm, _mapAsync, _mergeArrays, _mergeArraysByKey, _objectToArray, _removeDuplicates, _scrollToTop, _seal, _setNestedProperty, _setTouchedFields, _sortByKey, _swapArrayByKey, _swapArrayElements, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef } from './chunkautils/chunk83453';
8
- export { LazyLoader, createPrivateInstance, createPublicInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenArray, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _getUniqueValues, _getValueByKey, _groupBy, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _isLeapYear, _isWeekend, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isNotEmpty, _isEmptyArray, _isEmptyObject, _isEqual, _isExactMatch, _isFreeze, _isInArray, _isMobile, _isSeal, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidForm, _isValidFormData, _isValidFunction, _isValidHTMLElement, _isValidHexColor, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _mapAsync, _mapObject, _mergeArrays, _mergeArraysByKey, _mergeObjects, _objectToArray, _parseJSON, _pasteText, _promise, _reloadAfterLoad, _removeAllChildren, _removeDuplicates, _removeDuplicateByKey, _removeElement, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeFalsy, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _scrollToTop, _sleep, _seal, _setCookie, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _setNestedProperty, _setTouchedFields, _showElement, _snipDecimals, _sortByKey, _stringifyJSON, _swapArrayByKey, _swapArrayElements, _thousandSeparator, _throwError, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
8
+ export { LazyLoader, createPrivateInstance, createPublicInstance, _addEventListenerToElement, _alert, _allowAlphaKeys, _allowAlphaNumericKeys, _allowDecimalKeys, _arrayDiff, _arrayIncludesObject, _arrayIntersection, _arrayToObject, _arrayToObjectByKey, _asyncDebounce, _throttle, _asyncMap, _average, _base64ToBlob, _batchProcess, _bytesToSize, _clsx, _clearRouteState, _calPercentage, _capitalize, _chunk, _clearNode, _cloneElement, _confirm, _convertToCurrency, _copyText, _dateFormat, _dateTransformer, _decodeURI, _deepClone, _deepCloneArray, _deepCompareArrays, _deepEqual, _deepMerge, _decryptJson, _decryptString, _domSelector, _downloadBase64File, _downloadBlob, _downloadFile, _dynamicReducer, _dynamicRequiredValidation, _encodeURI, _encryptJson, _encryptPayload, _encryptString, _escapeRegExpMatch, _exportExcel, _escapeHTML, _extractUniqueValues, _extractKeyValues, _extractNestedKeyValues, _fileToBase64, _filterArrayByKeyValue, _filterByMatchedKey, _filterByMatchingKey, _filterDuplicates, _filterObjectByKey, _findObjectById, _flattenArray, _flattenObject, _formatDate, _localeDateFormat, _globalizeDateTime, _formatInternationalDate, _freeze, _generateUUID, _generatePassword, _generateYupValidation, _genericReducer, _getArrayOfObjectsByProperty, _getBrowserInfo, _getChildElements, _getCookie, _getElementAttribute, _getElementsByClass, _getElementsByTag, _getFinancialYear, _getKeysByValue, _getKeyByValue, _getMaxMinValue, _getNestedProperty, _getObjectValues, _getParent, _getPriceAfterTax, _getScrollPosition, _getStartStopTime, _getStorage, _getUTCTimestamp, _getUniqueValues, _getValueByKey, _groupBy, _handleApi, _handleSafe, _handleChildrenMenu, _handleParentNode, _handleParentsMenu, _handlePasteAlphabetKeys, _handlePasteDecimalKeys, _handlePermissions, _hasElement, _hasItem, _hideElement, _importExcel, _initializeFormikFields, _initializeFormValues, _insertHTML, _isLeapYear, _isWeekend, _isDocumentLoaded, _isElementInViewport, _isElementPresent, _isNotEmpty, _isEmptyArray, _isEmptyObject, _isEqual, _isExactMatch, _isFreeze, _isInArray, _isMobile, _isSeal, _isValidBase64, _isValidBlob, _isValidBoolean, _isValidCreditCard, _isValidDate, _isValidDateObject, _isValidDateRange, _isValidDateString, _isValidDateTime, _isValidEmail, _isValidEvent, _isValidFile, _isValidForm, _isValidFormData, _isValidFunction, _isValidHTMLElement, _isValidHexColor, _isValidIP, _isValidJSON, _isValidMacAddress, _isValidNode, _isValidNodeList, _isValidNumber, _isValidPassword, _isValidPhoneNumber, _isValidPromise, _isValidRegExp, _isValidString, _isValidTime, _isValidURL, _isValidURLSearchParams, _isValidUUID, _log, _mapAsync, _mapObject, _mergeArrays, _mergeArraysByKey, _mergeObjects, _objectToArray, _parseJSON, _pasteText, _promise, _reloadAfterLoad, _removeAllChildren, _removeDuplicates, _removeDuplicateByKey, _removeElement, _removeElementAttribute, _removeEventListenerFromElement, _removeNode, _removeFalsy, _removeSafeElement, _replaceContent, _runOnIframeLoad, _sanitizeArray, _scrollToElement, _scrollToTop, _sleep, _seal, _setCookie, _setElementAttribute, _setElementDisabled, _setMultipleStyles, _setNestedProperty, _setTouchedFields, _showElement, _snipDecimals, _sortByKey, _stringifyJSON, _swapArrayByKey, _swapArrayElements, _thousandSeparator, _throwError, _toCamelCase, _transformArray, _transformAsyncData, _updateObjectInArray, _validateFormRef, _getQueryString, _onDOMLoad, _onFullReload, _onWindowLoad };
@@ -24,3 +24,5 @@ export interface UseStorageParams {
24
24
  export type FlattenedObject = {
25
25
  [key: string]: any;
26
26
  };
27
+ export type ClassDictionary = Record<string, boolean | null | undefined>;
28
+ export type ClassValue = string | number | ClassDictionary | ClassValue[] | null | undefined | false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-js-plugins",
3
- "version": "1.3.12",
3
+ "version": "1.4.1",
4
4
  "description": "A powerful and efficient React utility library designed to enhance application performance by streamlining and simplifying the management of complex asynchronous operations.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",