@radix-ui/react-toast 1.2.2 → 1.2.3-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 +2 -12
- package/dist/index.d.ts +2 -12
- package/package.json +11 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import * as DismissableLayer from '@radix-ui/react-dismissable-layer';
|
|
3
4
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
4
5
|
|
|
5
|
-
type Scope<C = any> = {
|
|
6
|
-
[scopeName: string]: React.Context<C>[];
|
|
7
|
-
} | undefined;
|
|
8
|
-
type ScopeHook = (scope: Scope) => {
|
|
9
|
-
[__scopeProp: string]: Scope;
|
|
10
|
-
};
|
|
11
|
-
interface CreateScope {
|
|
12
|
-
scopeName: string;
|
|
13
|
-
(): ScopeHook;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
6
|
type SwipeDirection = 'up' | 'down' | 'left' | 'right';
|
|
17
|
-
declare const createToastScope: CreateScope;
|
|
7
|
+
declare const createToastScope: _radix_ui_react_context.CreateScope;
|
|
18
8
|
interface ToastProviderProps {
|
|
19
9
|
children?: React.ReactNode;
|
|
20
10
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import * as DismissableLayer from '@radix-ui/react-dismissable-layer';
|
|
3
4
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
4
5
|
|
|
5
|
-
type Scope<C = any> = {
|
|
6
|
-
[scopeName: string]: React.Context<C>[];
|
|
7
|
-
} | undefined;
|
|
8
|
-
type ScopeHook = (scope: Scope) => {
|
|
9
|
-
[__scopeProp: string]: Scope;
|
|
10
|
-
};
|
|
11
|
-
interface CreateScope {
|
|
12
|
-
scopeName: string;
|
|
13
|
-
(): ScopeHook;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
6
|
type SwipeDirection = 'up' | 'down' | 'left' | 'right';
|
|
17
|
-
declare const createToastScope: CreateScope;
|
|
7
|
+
declare const createToastScope: _radix_ui_react_context.CreateScope;
|
|
18
8
|
interface ToastProviderProps {
|
|
19
9
|
children?: React.ReactNode;
|
|
20
10
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radix-ui/react-toast",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"version": "yarn version"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@radix-ui/primitive": "1.1.
|
|
32
|
-
"@radix-ui/react-collection": "1.1.
|
|
33
|
-
"@radix-ui/react-compose-refs": "1.1.
|
|
31
|
+
"@radix-ui/primitive": "1.1.1-rc.1",
|
|
32
|
+
"@radix-ui/react-collection": "1.1.1-rc.1",
|
|
33
|
+
"@radix-ui/react-compose-refs": "1.1.1-rc.1",
|
|
34
34
|
"@radix-ui/react-context": "1.1.1",
|
|
35
|
-
"@radix-ui/react-dismissable-layer": "1.1.1",
|
|
36
|
-
"@radix-ui/react-portal": "1.1.
|
|
37
|
-
"@radix-ui/react-presence": "1.1.1",
|
|
38
|
-
"@radix-ui/react-primitive": "2.0.
|
|
35
|
+
"@radix-ui/react-dismissable-layer": "1.1.2-rc.1",
|
|
36
|
+
"@radix-ui/react-portal": "1.1.3-rc.1",
|
|
37
|
+
"@radix-ui/react-presence": "1.1.2-rc.1",
|
|
38
|
+
"@radix-ui/react-primitive": "2.0.1-rc.1",
|
|
39
39
|
"@radix-ui/react-use-callback-ref": "1.1.0",
|
|
40
40
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
41
41
|
"@radix-ui/react-use-layout-effect": "1.1.0",
|
|
42
|
-
"@radix-ui/react-visually-hidden": "1.1.
|
|
42
|
+
"@radix-ui/react-visually-hidden": "1.1.1-rc.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@types/react": "*",
|
|
@@ -62,5 +62,6 @@
|
|
|
62
62
|
},
|
|
63
63
|
"bugs": {
|
|
64
64
|
"url": "https://github.com/radix-ui/primitives/issues"
|
|
65
|
-
}
|
|
65
|
+
},
|
|
66
|
+
"stableVersion": "1.2.2"
|
|
66
67
|
}
|