@radix-ui/react-context
Advanced tools
Comparing version 1.1.1 to 1.1.2-rc.1
@@ -16,3 +16,3 @@ import * as React from 'react'; | ||
} | ||
declare function createContextScope(scopeName: string, createContextScopeDeps?: CreateScope[]): readonly [<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [React.FC<ContextValueType & { | ||
declare function createContextScope(scopeName: string, createContextScopeDeps?: CreateScope[]): readonly [<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType) => readonly [React.FC<ContextValueType & { | ||
scope: Scope<ContextValueType>; | ||
@@ -19,0 +19,0 @@ children: React.ReactNode; |
@@ -31,10 +31,10 @@ "use strict"; | ||
// packages/react/context/src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
var index_exports = {}; | ||
__export(index_exports, { | ||
createContext: () => createContext2, | ||
createContextScope: () => createContextScope | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
module.exports = __toCommonJS(index_exports); | ||
// packages/react/context/src/createContext.tsx | ||
// packages/react/context/src/create-context.tsx | ||
var React = __toESM(require("react")); | ||
@@ -41,0 +41,0 @@ var import_jsx_runtime = require("react/jsx-runtime"); |
{ | ||
"name": "@radix-ui/react-context", | ||
"version": "1.1.1", | ||
"version": "1.1.2-rc.1", | ||
"license": "MIT", | ||
@@ -27,5 +27,16 @@ "exports": { | ||
"scripts": { | ||
"lint": "eslint --max-warnings 0 src", | ||
"clean": "rm -rf dist", | ||
"version": "yarn version" | ||
}, | ||
"devDependencies": { | ||
"@repo/eslint-config": "0.0.0", | ||
"@repo/typescript-config": "0.0.0", | ||
"@types/react": "^19.0.7", | ||
"@types/react-dom": "^19.0.3", | ||
"eslint": "^9.18.0", | ||
"react": "^19.0.0", | ||
"react-dom": "^19.0.0", | ||
"typescript": "^5.7.3" | ||
}, | ||
"peerDependencies": { | ||
@@ -47,3 +58,4 @@ "@types/react": "*", | ||
"url": "https://github.com/radix-ui/primitives/issues" | ||
} | ||
}, | ||
"stableVersion": "1.1.1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
28213
0
8
1