@nextui-org/react-rsc-utils
Advanced tools
Comparing version 0.0.0-dev-v2-20230814010238 to 0.0.0-dev-v2-20230821123519
@@ -17,2 +17,6 @@ import { DOMProps, AriaLabelingProps } from '@react-types/shared'; | ||
/** | ||
* A Set of other property names that should be removed from the filter. | ||
*/ | ||
omitPropNames?: Set<string>; | ||
/** | ||
* A Set of event names that should be excluded from the filter. | ||
@@ -19,0 +23,0 @@ */ |
@@ -215,3 +215,3 @@ "use strict"; | ||
}) { | ||
let { labelable, propNames, omitEventNames } = opts; | ||
let { labelable, propNames, omitPropNames, omitEventNames } = opts; | ||
let filteredProps = {}; | ||
@@ -222,2 +222,5 @@ if (!opts.enabled) { | ||
for (const prop in props) { | ||
if (omitPropNames == null ? void 0 : omitPropNames.has(prop)) { | ||
continue; | ||
} | ||
if ((omitEventNames == null ? void 0 : omitEventNames.has(prop)) && funcRe.test(prop)) { | ||
@@ -224,0 +227,0 @@ continue; |
{ | ||
"name": "@nextui-org/react-rsc-utils", | ||
"version": "0.0.0-dev-v2-20230814010238", | ||
"version": "0.0.0-dev-v2-20230821123519", | ||
"description": "A set of utilities for react compatible with RSC", | ||
@@ -31,5 +31,2 @@ "keywords": [ | ||
}, | ||
"devDependencies": { | ||
"clean-package": "2.2.0" | ||
}, | ||
"clean-package": "../../../clean-package.config.json", | ||
@@ -36,0 +33,0 @@ "tsup": { |
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
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
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
278339
0
7508