UNPKG

@sanity/ui

Version:

The Sanity UI components.

234 lines (233 loc) 6.84 kB
{ "name": "@sanity/ui", "version": "3.0.5", "keywords": [ "sanity", "ui", "primitives", "react", "components", "design-system" ], "homepage": "https://www.sanity.io/", "bugs": { "url": "https://github.com/sanity-io/ui/issues" }, "repository": { "type": "git", "url": "git+https://github.com/sanity-io/ui.git" }, "license": "MIT", "author": "Sanity.io <hello@sanity.io>", "sideEffects": false, "type": "commonjs", "exports": { ".": { "source": "./exports/index.ts", "import": "./dist/index.mjs", "require": "./dist/index.js", "default": "./dist/index.js" }, "./_visual-editing": { "source": "./exports/_visual-editing.ts", "import": "./dist/_visual-editing.mjs", "require": "./dist/_visual-editing.js", "default": "./dist/_visual-editing.js" }, "./theme": { "source": "./exports/theme.ts", "import": "./dist/theme.mjs", "require": "./dist/theme.js", "default": "./dist/theme.js" }, "./package.json": "./package.json" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "typesVersions": { "*": { "_visual-editing": [ "./dist/_visual-editing.d.ts" ], "theme": [ "./dist/theme.d.ts" ] } }, "files": [ "dist", "exports", "src" ], "scripts": { "build": "run-s clean pkg:build pkg:check figma:pkg:build", "clean": "rimraf .workshop dist", "commit": "cz", "cypress:dev": "run-p dev cypress:open", "cypress:open": "cypress open", "cypress:run": "cypress run", "dev": "run-p storybook:dev workshop:dev", "figma:pkg:build": "cd figma && pnpm build", "format": "prettier --write --cache --ignore-unknown .", "lint": "eslint .", "prepack": "pnpm build", "pkg:build": "pkg build --strict", "pkg:check": "pkg --strict", "prepare": "husky install", "release": "semantic-release", "storybook:build": "storybook build", "storybook:dev": "storybook dev -p 6006", "test": "jest", "test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'", "ts:check": "tsc", "watch": "pkg watch --strict", "workshop:build": "workshop build", "workshop:dev": "workshop dev", "workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "lint-staged": { "*": [ "prettier --write --cache --ignore-unknown" ] }, "prettier": "@sanity/prettier-config", "release": { "branches": [ { "name": "v2", "range": "2.x", "channel": "v2" }, "main", { "name": "static", "channel": "static", "prerelease": true } ], "extends": "@sanity/semantic-release-preset" }, "dependencies": { "@floating-ui/react-dom": "^2.1.5", "@juggle/resize-observer": "^3.4.0", "@sanity/color": "^3.0.6", "@sanity/icons": "^3.7.4", "csstype": "^3.1.3", "framer-motion": "^12.23.12", "react-compiler-runtime": "19.1.0-rc.2", "react-refractor": "^4.0.0", "use-effect-event": "^2.0.3" }, "devDependencies": { "@babel/core": "^7.28.0", "@babel/preset-env": "^7.28.0", "@babel/preset-react": "^7.27.1", "@babel/preset-typescript": "^7.27.1", "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@eslint/js": "^9.32.0", "@sanity/pkg-utils": "^7.9.17", "@sanity/prettier-config": "^2.0.1", "@sanity/semantic-release-preset": "^5.0.0", "@sanity/ui-workshop": "^3.1.2", "@storybook/addon-a11y": "^8.6.14", "@storybook/addon-docs": "^8.6.14", "@storybook/addon-essentials": "^8.6.14", "@storybook/addon-interactions": "^8.6.14", "@storybook/addon-links": "^8.6.14", "@storybook/addon-mdx-gfm": "^8.6.14", "@storybook/addon-storysource": "^8.6.14", "@storybook/addon-themes": "^8.6.14", "@storybook/blocks": "^8.6.14", "@storybook/manager-api": "^8.6.14", "@storybook/react": "^8.6.14", "@storybook/react-vite": "^8.6.14", "@storybook/test": "^8.6.14", "@storybook/theming": "^8.6.14", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.6.4", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/jest-axe": "^3.5.9", "@types/node": "^20.12.7", "@types/react": "^19.1.9", "@types/react-dom": "^19.1.7", "@types/react-is": "^19.0.0", "@vitejs/plugin-react": "^4.7.0", "babel-plugin-react-compiler": "19.1.0-rc.2", "babel-plugin-styled-components": "^2.1.4", "commitizen": "^4.3.1", "cypress": "^13.17.0", "cypress-real-events": "^1.14.0", "cz-conventional-changelog": "^3.3.0", "eslint": "^9.32.0", "eslint-config-prettier": "^10.1.8", "eslint-formatter-compact": "^8.40.0", "eslint-plugin-boundaries": "^5.0.1", "eslint-plugin-import": "^2.32.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "0.0.0-experimental-edac0dde-20250723", "eslint-plugin-react-refresh": "^0.4.20", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-storybook": "^0.12.0", "globals": "^16.3.0", "http-server": "^14.1.1", "husky": "^8.0.3", "jest": "^30.0.5", "jest-axe": "^10.0.0", "jest-environment-jsdom": "^30.0.5", "lint-staged": "^14.0.1", "module-alias": "^2.2.3", "npm-run-all2": "^8.0.4", "prettier": "^3.6.2", "react": "^19.1.1", "react-dom": "^19.1.1", "react-is": "^19.1.1", "refractor": "^5.0.0", "rimraf": "^5.0.5", "semantic-release": "^24.2.7", "start-server-and-test": "^2.0.12", "storybook": "^8.6.14", "styled-components": "^6.1.19", "tsconfig-paths": "^4.2.0", "typescript": "5.8.3", "typescript-eslint": "^8.38.0", "vite": "^7.0.6", "vite-tsconfig-paths": "^5.1.4" }, "peerDependencies": { "react": "^18 || >=19.0.0-0", "react-dom": "^18 || >=19.0.0-0", "react-is": "^18 || >=19.0.0-0", "styled-components": "^5.2 || ^6" }, "packageManager": "pnpm@9.15.9", "engines": { "node": ">=20.19" }, "publishConfig": { "access": "public" }, "pnpm": { "overrides": { "@types/react": "$@types/react", "@types/react-dom": "$@types/react-dom", "@types/react-is": "$@types/react-is", "conventional-changelog-conventionalcommits": ">= 8.0.0", "react": "$react", "react-dom": "$react-dom", "react-is": "$react-is" } }, "esm.sh": { "bundle": false } }