@react-types/provider 3.6.5-nightly.4149 → 3.6.5-nightly.4153
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 +3 -3
- package/src/index.d.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/provider",
|
|
3
|
-
"version": "3.6.5-nightly.
|
|
3
|
+
"version": "3.6.5-nightly.4153+54d260d73",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/shared": "3.0.0-nightly.2444+54d260d73"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "54d260d736f3e24d02c4277e593f4ab34930f9bd"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ interface ContextProps {
|
|
|
56
56
|
validationState?: ValidationState
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
interface Router {
|
|
60
|
+
navigate: (path: string) => void
|
|
61
|
+
}
|
|
62
|
+
|
|
59
63
|
export interface ProviderProps extends ContextProps, DOMProps, StyleProps {
|
|
60
64
|
/** The content of the Provider. */
|
|
61
65
|
children: ReactNode,
|
|
@@ -88,7 +92,11 @@ export interface ProviderProps extends ContextProps, DOMProps, StyleProps {
|
|
|
88
92
|
* Do not use `base` property.
|
|
89
93
|
* @default {S:380,M:768,L:1024}
|
|
90
94
|
*/
|
|
91
|
-
breakpoints?: Breakpoints
|
|
95
|
+
breakpoints?: Breakpoints,
|
|
96
|
+
/**
|
|
97
|
+
* Provides a client side router to all nested React Spectrum links to enable client side navigation.
|
|
98
|
+
*/
|
|
99
|
+
router?: Router
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
export interface ProviderContext extends ContextProps {
|