@radix-ui/react-context 1.1.0-rc.3 → 1.1.0-rc.4

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,15 +1,16 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
 
3
4
  declare function createContext<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType): readonly [{
4
5
  (props: ContextValueType & {
5
6
  children: React.ReactNode;
6
- }): JSX.Element;
7
+ }): react_jsx_runtime.JSX.Element;
7
8
  displayName: string;
8
9
  }, (consumerName: string) => ContextValueType];
9
- declare type Scope<C = any> = {
10
+ type Scope<C = any> = {
10
11
  [scopeName: string]: React.Context<C>[];
11
12
  } | undefined;
12
- declare type ScopeHook = (scope: Scope) => {
13
+ type ScopeHook = (scope: Scope) => {
13
14
  [__scopeProp: string]: Scope;
14
15
  };
15
16
  interface CreateScope {
@@ -20,7 +21,7 @@ declare function createContextScope(scopeName: string, createContextScopeDeps?:
20
21
  (props: ContextValueType & {
21
22
  scope: Scope<ContextValueType>;
22
23
  children: React.ReactNode;
23
- }): JSX.Element;
24
+ }): react_jsx_runtime.JSX.Element;
24
25
  displayName: string;
25
26
  }, (consumerName: string, scope: Scope<ContextValueType | undefined>) => ContextValueType], CreateScope];
26
27
 
package/dist/index.d.ts CHANGED
@@ -1,15 +1,16 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
 
3
4
  declare function createContext<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType): readonly [{
4
5
  (props: ContextValueType & {
5
6
  children: React.ReactNode;
6
- }): JSX.Element;
7
+ }): react_jsx_runtime.JSX.Element;
7
8
  displayName: string;
8
9
  }, (consumerName: string) => ContextValueType];
9
- declare type Scope<C = any> = {
10
+ type Scope<C = any> = {
10
11
  [scopeName: string]: React.Context<C>[];
11
12
  } | undefined;
12
- declare type ScopeHook = (scope: Scope) => {
13
+ type ScopeHook = (scope: Scope) => {
13
14
  [__scopeProp: string]: Scope;
14
15
  };
15
16
  interface CreateScope {
@@ -20,7 +21,7 @@ declare function createContextScope(scopeName: string, createContextScopeDeps?:
20
21
  (props: ContextValueType & {
21
22
  scope: Scope<ContextValueType>;
22
23
  children: React.ReactNode;
23
- }): JSX.Element;
24
+ }): react_jsx_runtime.JSX.Element;
24
25
  displayName: string;
25
26
  }, (consumerName: string, scope: Scope<ContextValueType | undefined>) => ContextValueType], CreateScope];
26
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-context",
3
- "version": "1.1.0-rc.3",
3
+ "version": "1.1.0-rc.4",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@types/react": "*",
32
- "react": "^16.8 || ^17.0 || ^18.0"
32
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@types/react": {