@radix-ui/react-popper 1.2.0 → 1.2.1-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,24 +1,14 @@
1
+ import * as _radix_ui_react_context from '@radix-ui/react-context';
1
2
  import * as React from 'react';
2
3
  import * as ArrowPrimitive from '@radix-ui/react-arrow';
3
4
  import { Primitive } from '@radix-ui/react-primitive';
4
5
  import { Measurable } from '@radix-ui/rect';
5
6
 
6
- type Scope<C = any> = {
7
- [scopeName: string]: React.Context<C>[];
8
- } | undefined;
9
- type ScopeHook = (scope: Scope) => {
10
- [__scopeProp: string]: Scope;
11
- };
12
- interface CreateScope {
13
- scopeName: string;
14
- (): ScopeHook;
15
- }
16
-
17
7
  declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
18
8
  declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
19
9
  type Side = (typeof SIDE_OPTIONS)[number];
20
10
  type Align = (typeof ALIGN_OPTIONS)[number];
21
- declare const createPopperScope: CreateScope;
11
+ declare const createPopperScope: _radix_ui_react_context.CreateScope;
22
12
  interface PopperProps {
23
13
  children?: React.ReactNode;
24
14
  }
package/dist/index.d.ts CHANGED
@@ -1,24 +1,14 @@
1
+ import * as _radix_ui_react_context from '@radix-ui/react-context';
1
2
  import * as React from 'react';
2
3
  import * as ArrowPrimitive from '@radix-ui/react-arrow';
3
4
  import { Primitive } from '@radix-ui/react-primitive';
4
5
  import { Measurable } from '@radix-ui/rect';
5
6
 
6
- type Scope<C = any> = {
7
- [scopeName: string]: React.Context<C>[];
8
- } | undefined;
9
- type ScopeHook = (scope: Scope) => {
10
- [__scopeProp: string]: Scope;
11
- };
12
- interface CreateScope {
13
- scopeName: string;
14
- (): ScopeHook;
15
- }
16
-
17
7
  declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
18
8
  declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
19
9
  type Side = (typeof SIDE_OPTIONS)[number];
20
10
  type Align = (typeof ALIGN_OPTIONS)[number];
21
- declare const createPopperScope: CreateScope;
11
+ declare const createPopperScope: _radix_ui_react_context.CreateScope;
22
12
  interface PopperProps {
23
13
  children?: React.ReactNode;
24
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-popper",
3
- "version": "1.2.0",
3
+ "version": "1.2.1-rc.2",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -29,10 +29,10 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@floating-ui/react-dom": "^2.0.0",
32
- "@radix-ui/react-arrow": "1.1.0",
33
- "@radix-ui/react-compose-refs": "1.1.0",
34
- "@radix-ui/react-context": "1.1.0",
35
- "@radix-ui/react-primitive": "2.0.0",
32
+ "@radix-ui/react-arrow": "1.1.1-rc.2",
33
+ "@radix-ui/react-compose-refs": "1.1.1-rc.2",
34
+ "@radix-ui/react-context": "1.1.1",
35
+ "@radix-ui/react-primitive": "2.0.1-rc.2",
36
36
  "@radix-ui/react-use-callback-ref": "1.1.0",
37
37
  "@radix-ui/react-use-layout-effect": "1.1.0",
38
38
  "@radix-ui/react-use-rect": "1.1.0",
@@ -60,5 +60,6 @@
60
60
  },
61
61
  "bugs": {
62
62
  "url": "https://github.com/radix-ui/primitives/issues"
63
- }
63
+ },
64
+ "stableVersion": "1.2.0"
64
65
  }