@react-types/provider 3.7.3-nightly.4523 → 3.7.3-nightly.4533

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/provider",
3
- "version": "3.7.3-nightly.4523+784737eff",
3
+ "version": "3.7.3-nightly.4533+23182926f",
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.2811+784737eff"
12
+ "@react-types/shared": "3.0.0-nightly.2821+23182926f"
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": "784737effd44b9d5e2b1316e690da44555eafd7e"
20
+ "gitHead": "23182926f918b70199e01d735a09d73438c944be"
21
21
  }
package/src/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {DOMProps, StyleProps, ValidationState} from '@react-types/shared';
13
+ import {DOMProps, Href, RouterOptions, StyleProps, ValidationState} from '@react-types/shared';
14
14
  import {ReactNode} from 'react';
15
15
 
16
16
  export type ColorScheme = 'light' | 'dark';
@@ -57,7 +57,8 @@ interface ContextProps {
57
57
  }
58
58
 
59
59
  interface Router {
60
- navigate: (path: string) => void
60
+ navigate: (path: string, routerOptions: RouterOptions | undefined) => void,
61
+ useHref?: (href: Href) => string
61
62
  }
62
63
 
63
64
  export interface ProviderProps extends ContextProps, DOMProps, StyleProps {