@radix-ui/react-avatar 1.1.1-rc.9 → 1.1.2-rc.1

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/dist/index.d.mts CHANGED
@@ -1,18 +1,8 @@
1
+ import * as _radix_ui_react_context from '@radix-ui/react-context';
1
2
  import * as React from 'react';
2
3
  import { Primitive } from '@radix-ui/react-primitive';
3
4
 
4
- type Scope<C = any> = {
5
- [scopeName: string]: React.Context<C>[];
6
- } | undefined;
7
- type ScopeHook = (scope: Scope) => {
8
- [__scopeProp: string]: Scope;
9
- };
10
- interface CreateScope {
11
- scopeName: string;
12
- (): ScopeHook;
13
- }
14
-
15
- declare const createAvatarScope: CreateScope;
5
+ declare const createAvatarScope: _radix_ui_react_context.CreateScope;
16
6
  type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
17
7
  type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
18
8
  interface AvatarProps extends PrimitiveSpanProps {
package/dist/index.d.ts CHANGED
@@ -1,18 +1,8 @@
1
+ import * as _radix_ui_react_context from '@radix-ui/react-context';
1
2
  import * as React from 'react';
2
3
  import { Primitive } from '@radix-ui/react-primitive';
3
4
 
4
- type Scope<C = any> = {
5
- [scopeName: string]: React.Context<C>[];
6
- } | undefined;
7
- type ScopeHook = (scope: Scope) => {
8
- [__scopeProp: string]: Scope;
9
- };
10
- interface CreateScope {
11
- scopeName: string;
12
- (): ScopeHook;
13
- }
14
-
15
- declare const createAvatarScope: CreateScope;
5
+ declare const createAvatarScope: _radix_ui_react_context.CreateScope;
16
6
  type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
17
7
  type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
18
8
  interface AvatarProps extends PrimitiveSpanProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-avatar",
3
- "version": "1.1.1-rc.9",
3
+ "version": "1.1.2-rc.1",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -28,8 +28,8 @@
28
28
  "version": "yarn version"
29
29
  },
30
30
  "dependencies": {
31
- "@radix-ui/react-context": "1.1.0",
32
- "@radix-ui/react-primitive": "2.0.0",
31
+ "@radix-ui/react-context": "1.1.1",
32
+ "@radix-ui/react-primitive": "2.0.1-rc.1",
33
33
  "@radix-ui/react-use-callback-ref": "1.1.0",
34
34
  "@radix-ui/react-use-layout-effect": "1.1.0"
35
35
  },
@@ -55,5 +55,5 @@
55
55
  "bugs": {
56
56
  "url": "https://github.com/radix-ui/primitives/issues"
57
57
  },
58
- "stableVersion": "1.1.0"
58
+ "stableVersion": "1.1.1"
59
59
  }