@radix-ui/react-avatar
Advanced tools
Comparing version 1.1.0-rc.3 to 1.1.0-rc.4
import * as React from 'react'; | ||
import * as Radix from '@radix-ui/react-primitive'; | ||
import { Primitive } from '@radix-ui/react-primitive'; | ||
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; | ||
@@ -17,8 +16,8 @@ }; | ||
declare const createAvatarScope: CreateScope; | ||
declare type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error'; | ||
declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>; | ||
type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error'; | ||
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>; | ||
interface AvatarProps extends PrimitiveSpanProps { | ||
} | ||
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>; | ||
declare type PrimitiveImageProps = Radix.ComponentPropsWithoutRef<typeof Primitive.img>; | ||
type PrimitiveImageProps = React.ComponentPropsWithoutRef<typeof Primitive.img>; | ||
interface AvatarImageProps extends PrimitiveImageProps { | ||
@@ -25,0 +24,0 @@ onLoadingStatusChange?: (status: ImageLoadingStatus) => void; |
{ | ||
"name": "@radix-ui/react-avatar", | ||
"version": "1.1.0-rc.3", | ||
"version": "1.1.0-rc.4", | ||
"license": "MIT", | ||
@@ -31,6 +31,6 @@ "exports": { | ||
"dependencies": { | ||
"@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-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" | ||
}, | ||
@@ -40,4 +40,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" | ||
}, | ||
@@ -44,0 +44,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
29632
260
+ 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)
- 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)