@radix-ui/react-popper
Advanced tools
Comparing version 1.2.0-rc.3 to 1.2.0-rc.4
import * as React from 'react'; | ||
import * as ArrowPrimitive from '@radix-ui/react-arrow'; | ||
import * as Radix from '@radix-ui/react-primitive'; | ||
import { Primitive } from '@radix-ui/react-primitive'; | ||
import { Measurable } from '@radix-ui/rect'; | ||
declare type Scope<C = any> = { | ||
type Scope<C = any> = { | ||
[scopeName: string]: React.Context<C>[]; | ||
} | undefined; | ||
declare type ScopeHook = (scope: Scope) => { | ||
type ScopeHook = (scope: Scope) => { | ||
[__scopeProp: string]: Scope; | ||
@@ -20,4 +19,4 @@ }; | ||
declare const ALIGN_OPTIONS: readonly ["start", "center", "end"]; | ||
declare type Side = typeof SIDE_OPTIONS[number]; | ||
declare type Align = typeof ALIGN_OPTIONS[number]; | ||
type Side = (typeof SIDE_OPTIONS)[number]; | ||
type Align = (typeof ALIGN_OPTIONS)[number]; | ||
declare const createPopperScope: CreateScope; | ||
@@ -28,3 +27,3 @@ interface PopperProps { | ||
declare const Popper: React.FC<PopperProps>; | ||
declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>; | ||
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>; | ||
interface PopperAnchorProps extends PrimitiveDivProps { | ||
@@ -34,3 +33,3 @@ virtualRef?: React.RefObject<Measurable>; | ||
declare const PopperAnchor: React.ForwardRefExoticComponent<PopperAnchorProps & React.RefAttributes<HTMLDivElement>>; | ||
declare type Boundary = Element | null; | ||
type Boundary = Element | null; | ||
interface PopperContentProps extends PrimitiveDivProps { | ||
@@ -51,3 +50,3 @@ side?: Side; | ||
declare const PopperContent: React.ForwardRefExoticComponent<PopperContentProps & React.RefAttributes<HTMLDivElement>>; | ||
declare type ArrowProps = Radix.ComponentPropsWithoutRef<typeof ArrowPrimitive.Root>; | ||
type ArrowProps = React.ComponentPropsWithoutRef<typeof ArrowPrimitive.Root>; | ||
interface PopperArrowProps extends ArrowProps { | ||
@@ -54,0 +53,0 @@ } |
{ | ||
"name": "@radix-ui/react-popper", | ||
"version": "1.2.0-rc.3", | ||
"version": "1.2.0-rc.4", | ||
"license": "MIT", | ||
@@ -32,11 +32,11 @@ "exports": { | ||
"@floating-ui/react-dom": "^2.0.0", | ||
"@radix-ui/react-arrow": "1.1.0-rc.3", | ||
"@radix-ui/react-compose-refs": "1.1.0-rc.3", | ||
"@radix-ui/react-context": "1.1.0-rc.3", | ||
"@radix-ui/react-primitive": "1.1.0-rc.3", | ||
"@radix-ui/react-use-callback-ref": "1.1.0-rc.3", | ||
"@radix-ui/react-use-layout-effect": "1.1.0-rc.3", | ||
"@radix-ui/react-use-rect": "1.1.0-rc.3", | ||
"@radix-ui/react-use-size": "1.1.0-rc.3", | ||
"@radix-ui/rect": "1.1.0-rc.3" | ||
"@radix-ui/react-arrow": "1.1.0-rc.4", | ||
"@radix-ui/react-compose-refs": "1.1.0-rc.4", | ||
"@radix-ui/react-context": "1.1.0-rc.4", | ||
"@radix-ui/react-primitive": "2.0.0-rc.1", | ||
"@radix-ui/react-use-callback-ref": "1.1.0-rc.4", | ||
"@radix-ui/react-use-layout-effect": "1.1.0-rc.4", | ||
"@radix-ui/react-use-rect": "1.1.0-rc.4", | ||
"@radix-ui/react-use-size": "1.1.0-rc.4", | ||
"@radix-ui/rect": "1.1.0-rc.4" | ||
}, | ||
@@ -46,4 +46,4 @@ "peerDependencies": { | ||
"@types/react-dom": "*", | ||
"react": "^16.8 || ^17.0 || ^18.0", | ||
"react-dom": "^16.8 || ^17.0 || ^18.0" | ||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0", | ||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0" | ||
}, | ||
@@ -50,0 +50,0 @@ "peerDependenciesMeta": { |
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
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
75342
678
+ Added@radix-ui/react-arrow@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-compose-refs@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-context@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-primitive@2.0.0-rc.1(transitive)
+ Added@radix-ui/react-slot@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-callback-ref@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-layout-effect@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-rect@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-size@1.1.0-rc.4(transitive)
+ Added@radix-ui/rect@1.1.0-rc.4(transitive)
- Removed@radix-ui/react-arrow@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-compose-refs@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-context@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-primitive@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-slot@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-callback-ref@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-layout-effect@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-rect@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-size@1.1.0-rc.3(transitive)
- Removed@radix-ui/rect@1.1.0-rc.3(transitive)
Updated@radix-ui/rect@1.1.0-rc.4