UNPKG

@oddbird/css-anchor-positioning

Version:

Polyfill for the proposed CSS anchor positioning spec

126 lines (125 loc) 3.95 kB
{ "name": "@oddbird/css-anchor-positioning", "version": "0.6.1", "description": "Polyfill for the proposed CSS anchor positioning spec", "license": "BSD-3-Clause", "publishConfig": { "access": "public" }, "author": "OddBird <birds@oddbird.net> (oddbird.net)", "repository": { "type": "git", "url": "https://github.com/oddbird/css-anchor-positioning.git" }, "bugs": "https://github.com/oddbird/css-anchor-positioning/issues", "homepage": "https://anchor-positioning.oddbird.net", "keywords": [ "css", "polyfill", "anchor-positioning" ], "type": "module", "main": "./dist/css-anchor-positioning.umd.cjs", "module": "./dist/css-anchor-positioning.js", "unpkg": "./dist/css-anchor-positioning.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/css-anchor-positioning.js", "require": "./dist/css-anchor-positioning.umd.cjs" }, "./fn": { "types": "./dist/index-fn.d.ts", "import": "./dist/css-anchor-positioning-fn.js", "require": "./dist/css-anchor-positioning-fn.umd.cjs" } }, "typesVersions": { "*": { "fn": [ "./dist/index-fn.d.ts" ] } }, "files": [ "README.md", "src/**/*.ts", "dist/**/*.{ts,js,cjs,map}", "package.json" ], "scripts": { "build": "run-s build:demo build:dist build:fn", "build:dist": "vite build", "build:fn": "cross-env BUILD_FN=1 vite build", "build:wpt": "cross-env BUILD_WPT=1 vite build", "build:demo": "cross-env BUILD_DEMO=1 vite build", "preview": "vite preview", "serve": "vite dev", "tsc": "tsc --noEmit", "tsc:tests": "tsc --project tests/tsconfig.json", "types": "tsc --emitDeclarationOnly", "prettier:check": "prettier --check .", "prettier:fix": "prettier --write .", "eslint:check": "eslint .", "eslint:fix": "npm run eslint:check -- --fix", "format:css": "npm run lint:css -- --fix", "format:js": "run-s prettier:fix eslint:fix tsc tsc:tests", "lint": "run-s format:css format:js", "lint:css": "stylelint \"**/*.css\"", "lint:js": "run-s prettier:check eslint:check tsc tsc:tests", "lint:ci": "run-p lint:css lint:js", "prepack": "run-s build types", "test:unit": "vitest", "test:watch": "npm run test:unit -- --watch", "test:e2e": "playwright test tests/e2e/", "test:e2e:ci": "npm run test:e2e -- --browser=all", "test": "run-p test:unit test:e2e", "test:ci": "run-p test:unit test:e2e:ci", "test:wpt": "node --loader ts-node/esm ./tests/wpt.ts" }, "dependencies": { "@floating-ui/dom": "^1.7.1", "@types/css-tree": "^2.3.10", "css-tree": "^3.1.0", "nanoid": "^5.1.5" }, "devDependencies": { "@eslint/js": "^9.28.0", "@playwright/test": "1.43.1", "@rollup/plugin-replace": "^6.0.2", "@types/async": "^3.2.24", "@types/node": "*", "@types/selenium-webdriver": "^4.1.28", "@vitest/coverage-istanbul": "^3.2.0", "@vitest/eslint-plugin": "^1.2.1", "async": "^3.2.6", "browserslist": "^4.25.0", "browserstack-local": "^1.5.6", "cross-env": "^7.0.3", "eslint": "^9.28.0", "eslint-config-prettier": "^10.1.5", "eslint-import-resolver-typescript": "^4.4.2", "eslint-plugin-import": "^2.31.0", "eslint-plugin-simple-import-sort": "^12.1.1", "fetch-mock": "^12.5.2", "jsdom": "^26.1.0", "liquidjs": "^10.21.1", "npm-run-all": "^4.1.5", "prettier": "^3.5.3", "rollup-plugin-bundle-stats": "^4.20.2", "selenium-webdriver": "^4.33.0", "stylelint": "^16.20.0", "stylelint-config-standard": "^38.0.0", "ts-node": "^10.9.2", "typescript": "^5.8.3", "typescript-eslint": "^8.33.1", "vite": "^6.3.5", "vitest": "^3.2.0" }, "sideEffects": [ "./src/index.ts", "./dist/css-anchor-positioning.js", "./dist/css-anchor-positioning.umd.cjs" ] }