@radix-ui/react-navigation-menu
Advanced tools
Comparing version 1.2.1 to 1.2.2-rc.1
@@ -0,1 +1,3 @@ | ||
import * as _radix_ui_react_context from '@radix-ui/react-context'; | ||
import { Scope } from '@radix-ui/react-context'; | ||
import * as React from 'react'; | ||
@@ -5,18 +7,6 @@ import { Primitive } from '@radix-ui/react-primitive'; | ||
import * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden'; | ||
import { Scope as Scope$1 } from '@radix-ui/react-context'; | ||
type Scope<C = any> = { | ||
[scopeName: string]: React.Context<C>[]; | ||
} | undefined; | ||
type ScopeHook = (scope: Scope) => { | ||
[__scopeProp: string]: Scope; | ||
}; | ||
interface CreateScope { | ||
scopeName: string; | ||
(): ScopeHook; | ||
} | ||
type Orientation = 'vertical' | 'horizontal'; | ||
type Direction = 'ltr' | 'rtl'; | ||
declare const createNavigationMenuScope: CreateScope; | ||
declare const createNavigationMenuScope: _radix_ui_react_context.CreateScope; | ||
type NavigationMenuElement = React.ElementRef<typeof Primitive.nav>; | ||
@@ -52,3 +42,3 @@ type PrimitiveNavProps = React.ComponentPropsWithoutRef<typeof Primitive.nav>; | ||
isRootMenu: boolean; | ||
scope: Scope$1; | ||
scope: Scope; | ||
children: React.ReactNode; | ||
@@ -110,4 +100,4 @@ orientation: Orientation; | ||
value: string; | ||
triggerRef: React.RefObject<NavigationMenuTriggerElement>; | ||
focusProxyRef: React.RefObject<FocusProxyElement>; | ||
triggerRef: React.RefObject<NavigationMenuTriggerElement | null>; | ||
focusProxyRef: React.RefObject<FocusProxyElement | null>; | ||
wasEscapeCloseRef: React.MutableRefObject<boolean>; | ||
@@ -114,0 +104,0 @@ onContentFocusOutside(): void; |
{ | ||
"name": "@radix-ui/react-navigation-menu", | ||
"version": "1.2.1", | ||
"version": "1.2.2-rc.1", | ||
"license": "MIT", | ||
@@ -31,11 +31,11 @@ "exports": { | ||
"dependencies": { | ||
"@radix-ui/primitive": "1.1.0", | ||
"@radix-ui/react-collection": "1.1.0", | ||
"@radix-ui/react-compose-refs": "1.1.0", | ||
"@radix-ui/primitive": "1.1.1-rc.1", | ||
"@radix-ui/react-collection": "1.1.1-rc.1", | ||
"@radix-ui/react-compose-refs": "1.1.1-rc.1", | ||
"@radix-ui/react-context": "1.1.1", | ||
"@radix-ui/react-direction": "1.1.0", | ||
"@radix-ui/react-dismissable-layer": "1.1.1", | ||
"@radix-ui/react-dismissable-layer": "1.1.2-rc.1", | ||
"@radix-ui/react-id": "1.1.0", | ||
"@radix-ui/react-presence": "1.1.1", | ||
"@radix-ui/react-primitive": "2.0.0", | ||
"@radix-ui/react-presence": "1.1.2-rc.1", | ||
"@radix-ui/react-primitive": "2.0.1-rc.1", | ||
"@radix-ui/react-use-callback-ref": "1.1.0", | ||
@@ -45,3 +45,3 @@ "@radix-ui/react-use-controllable-state": "1.1.0", | ||
"@radix-ui/react-use-previous": "1.1.0", | ||
"@radix-ui/react-visually-hidden": "1.1.0" | ||
"@radix-ui/react-visually-hidden": "1.1.1-rc.1" | ||
}, | ||
@@ -69,3 +69,4 @@ "peerDependencies": { | ||
"url": "https://github.com/radix-ui/primitives/issues" | ||
} | ||
}, | ||
"stableVersion": "1.2.1" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
224880
1767
1
+ Added@radix-ui/primitive@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-collection@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-compose-refs@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-dismissable-layer@1.1.2-rc.1(transitive)
+ Added@radix-ui/react-presence@1.1.2-rc.1(transitive)
+ Added@radix-ui/react-primitive@2.0.1-rc.1(transitive)
+ Added@radix-ui/react-slot@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-visually-hidden@1.1.1-rc.1(transitive)
- Removed@radix-ui/primitive@1.1.0(transitive)
- Removed@radix-ui/react-collection@1.1.0(transitive)
- Removed@radix-ui/react-compose-refs@1.1.0(transitive)
- Removed@radix-ui/react-context@1.1.0(transitive)
- Removed@radix-ui/react-dismissable-layer@1.1.1(transitive)
- Removed@radix-ui/react-presence@1.1.1(transitive)
- Removed@radix-ui/react-primitive@2.0.0(transitive)
- Removed@radix-ui/react-slot@1.1.0(transitive)
- Removed@radix-ui/react-visually-hidden@1.1.0(transitive)