@react-types/shared 3.27.0 → 3.28.0
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/package.json +2 -2
- package/src/collections.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/shared",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.28.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
|
|
18
18
|
}
|
package/src/collections.d.ts
CHANGED
|
@@ -180,7 +180,10 @@ export interface Collection<T> extends Iterable<T> {
|
|
|
180
180
|
getChildren?(key: Key): Iterable<T>,
|
|
181
181
|
|
|
182
182
|
/** Returns a string representation of the item's contents. */
|
|
183
|
-
getTextValue?(key: Key): string
|
|
183
|
+
getTextValue?(key: Key): string,
|
|
184
|
+
|
|
185
|
+
/** Filters the collection using the given function. */
|
|
186
|
+
UNSTABLE_filter?(filterFn: (nodeValue: string) => boolean): Collection<T>
|
|
184
187
|
}
|
|
185
188
|
|
|
186
189
|
export interface Node<T> {
|