f0e3e5b4a6
* use `act` from `react` instead of `@testing-library/react` * bump dependencies * bump `@testing-library/react` * bump `@react-aria/interactions` * bump "@tanstack/react-virtual" * add `ResizeObserver` polyfill, and enable it by default for tests * mock `getBoundingClientRect` Otherwise the virtualization tests don't work as expected because they rely on the client rect which is not supported (or not correctly measured) in JSDOM.
63 lines
1.7 KiB
JSON
63 lines
1.7 KiB
JSON
{
|
|
"name": "@headlessui/react",
|
|
"version": "2.0.0-alpha.4",
|
|
"description": "A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.",
|
|
"main": "dist/index.cjs",
|
|
"typings": "dist/index.d.ts",
|
|
"module": "dist/headlessui.esm.js",
|
|
"license": "MIT",
|
|
"files": [
|
|
"README.md",
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
"types": {
|
|
"import": "./dist/index.d.ts",
|
|
"require": "./dist/index.d.cts"
|
|
},
|
|
"import": "./dist/headlessui.esm.js",
|
|
"require": "./dist/index.cjs"
|
|
},
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"engines": {
|
|
"node": ">=10"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/tailwindlabs/headlessui.git",
|
|
"directory": "packages/@headlessui-react"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"prepublishOnly": "npm run build",
|
|
"build": "../../scripts/build.sh --external:react --external:react-dom",
|
|
"watch": "../../scripts/watch.sh --external:react --external:react-dom",
|
|
"test": "../../scripts/test.sh",
|
|
"lint": "../../scripts/lint.sh",
|
|
"lint-types": "npm run attw -P --workspaces --if-present",
|
|
"playground": "npm run dev --workspace=playground-react",
|
|
"clean": "rimraf ./dist"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18",
|
|
"react-dom": "^18"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^15.0.5",
|
|
"@types/react": "^18.3.1",
|
|
"@types/react-dom": "^18.3.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"snapshot-diff": "^0.10.0"
|
|
},
|
|
"dependencies": {
|
|
"@floating-ui/react": "^0.26.13",
|
|
"@tanstack/react-virtual": "3.5.0",
|
|
"@react-aria/focus": "^3.16.2",
|
|
"@react-aria/interactions": "^3.21.1"
|
|
}
|
|
}
|