@radix-ui/react-context-menu 2.2.2 → 2.2.3-rc.2

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,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 { Primitive } from '@radix-ui/react-primitive';
3
4
  import * as MenuPrimitive from '@radix-ui/react-menu';
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 Direction = 'ltr' | 'rtl';
17
- declare const createContextMenuScope: CreateScope;
7
+ declare const createContextMenuScope: _radix_ui_react_context.CreateScope;
18
8
  interface ContextMenuProps {
19
9
  children?: React.ReactNode;
20
10
  onOpenChange?(open: boolean): void;
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 { Primitive } from '@radix-ui/react-primitive';
3
4
  import * as MenuPrimitive from '@radix-ui/react-menu';
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 Direction = 'ltr' | 'rtl';
17
- declare const createContextMenuScope: CreateScope;
7
+ declare const createContextMenuScope: _radix_ui_react_context.CreateScope;
18
8
  interface ContextMenuProps {
19
9
  children?: React.ReactNode;
20
10
  onOpenChange?(open: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-context-menu",
3
- "version": "2.2.2",
3
+ "version": "2.2.3-rc.2",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -28,10 +28,10 @@
28
28
  "version": "yarn version"
29
29
  },
30
30
  "dependencies": {
31
- "@radix-ui/primitive": "1.1.0",
31
+ "@radix-ui/primitive": "1.1.1-rc.2",
32
32
  "@radix-ui/react-context": "1.1.1",
33
- "@radix-ui/react-menu": "2.1.2",
34
- "@radix-ui/react-primitive": "2.0.0",
33
+ "@radix-ui/react-menu": "2.1.3-rc.2",
34
+ "@radix-ui/react-primitive": "2.0.1-rc.2",
35
35
  "@radix-ui/react-use-callback-ref": "1.1.0",
36
36
  "@radix-ui/react-use-controllable-state": "1.1.0"
37
37
  },
@@ -56,5 +56,6 @@
56
56
  },
57
57
  "bugs": {
58
58
  "url": "https://github.com/radix-ui/primitives/issues"
59
- }
59
+ },
60
+ "stableVersion": "2.2.2"
60
61
  }