@nextui-org/shared-utils
Advanced tools
Comparing version 2.0.9-beta.3 to 2.0.9-beta.4
@@ -218,3 +218,24 @@ type Args<T extends Function> = T extends (...args: infer R) => any ? R : never; | ||
declare const intersectionBy: <T>(...args: [...arrays: T[][], iteratee: Iteratee<T>]) => T[]; | ||
/** | ||
* Checks if the current React version is 19.x.x | ||
* | ||
* @returns {boolean} - Returns `true` if the React major version is 19, otherwise returns `false`. | ||
*/ | ||
declare const isReact19: () => boolean; | ||
/** | ||
* Returns an appropriate value for the `inert` attribute based on the React version. | ||
* | ||
* In React 19, the attribute `inert` is a boolean. In versions prior to 19, the attribute | ||
* behaves differently: setting `inert=""` will make it `true`, and `inert=undefined` will make it `false`. | ||
* | ||
* @param {boolean} v - The desired boolean state for the `inert` attribute. | ||
* @returns {boolean | string | undefined} - Depending on the React version: | ||
* - Returns `boolean` if React version is 19 (the input value `v` directly). | ||
* - Returns `string` (empty string) if `v` is `true` in older React versions. | ||
* - Returns `undefined` if `v` is `false` in older React versions. | ||
* | ||
* @see {@link https://github.com/facebook/react/issues/17157} for more details on the behavior in older React versions. | ||
*/ | ||
declare const getInertValue: (v: boolean) => boolean | string | undefined; | ||
export { callAll, callAllHandlers, capitalize, debounce, extractProperty, get, getUniqueID, intersectionBy, kebabCase, mapKeys, objectToDeps, omit, removeEvents, uniqBy }; | ||
export { callAll, callAllHandlers, capitalize, debounce, extractProperty, get, getInertValue, getUniqueID, intersectionBy, isReact19, kebabCase, mapKeys, objectToDeps, omit, removeEvents, uniqBy }; |
@@ -6,3 +6,3 @@ export { Dict, __DEV__, __TEST__, dataAttr, isArray, isEmpty, isEmptyArray, isEmptyObject, isFunction, isNumeric, isObject } from './assertion.js'; | ||
export { getMargin } from './dimensions.js'; | ||
export { callAll, callAllHandlers, capitalize, debounce, extractProperty, get, getUniqueID, intersectionBy, kebabCase, mapKeys, objectToDeps, omit, removeEvents, uniqBy } from './functions.js'; | ||
export { callAll, callAllHandlers, capitalize, debounce, extractProperty, get, getInertValue, getUniqueID, intersectionBy, isReact19, kebabCase, mapKeys, objectToDeps, omit, removeEvents, uniqBy } from './functions.js'; | ||
export { clamp, clampPercentage, range } from './numbers.js'; | ||
@@ -9,0 +9,0 @@ export { warn } from './console.js'; |
{ | ||
"name": "@nextui-org/shared-utils", | ||
"version": "2.0.9-beta.3", | ||
"version": "2.0.9-beta.4", | ||
"description": "A set of NextUI utilities", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
316588
47
8587
2
1