UNPKG

composed-offset-position

Version:

This provides a set of ponyfills to achieve the same behavior of `offsetParent`, `offsetLeft` and `offsetTop` before the `offsetParent` spec was changed.

88 lines (87 loc) 2.5 kB
{ "name": "composed-offset-position", "version": "0.0.6", "description": "This provides a set of ponyfills to achieve the same behavior of `offsetParent`, `offsetLeft` and `offsetTop` before the `offsetParent` spec was changed.", "type": "module", "main": "./dist/composed-offset-position.umd.js", "module": "./dist/composed-offset-position.esm.js", "unpkg": "./dist/composed-offset-position.umd.min.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": { "browser": { "development": "./dist/composed-offset-position.browser.mjs", "default": "./dist/composed-offset-position.browser.min.mjs" }, "default": "./dist/composed-offset-position.mjs" }, "module": "./dist/composed-offset-position.esm.js", "default": "./dist/composed-offset-position.umd.js" }, "./package.json": "./package.json" }, "files": [ "dist/" ], "directories": { "test": "test" }, "scripts": { "clean": "rimraf dist", "build": "npm run clean && rollup -c", "lint": "xo --fix", "prepare": "husky install", "release": "release-it", "watch": "rollup -c -w", "test": "jest", "test:watch": "jest --watchAll", "dev": "concurrently npm:watch npm:test:watch" }, "repository": { "type": "git", "url": "git+https://github.com/jcfranco/composed-offset-position.git" }, "keywords": [ "composed", "offsetLeft", "offsetParent", "offsetTop", "ponyfill", "shadow DOM", "utils" ], "author": "jcfranco", "license": "MIT", "bugs": { "url": "https://github.com/jcfranco/composed-offset-position/issues" }, "homepage": "https://github.com/jcfranco/composed-offset-position#readme", "devDependencies": { "@rollup/plugin-terser": "~0.4.0", "@rollup/plugin-typescript": "~11.0.0", "@types/jest": "^29.5.12", "concurrently": "^8.2.2", "husky": "~8.0.3", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-puppeteer": "^10.0.1", "lint-staged": "~13.1.2", "markdownlint-cli": "~0.33.0", "prettier": "~2.8.4", "puppeteer": "^22.13.0", "release-it": "~15.6.0", "rimraf": "^6.0.1", "rollup": "~3.17.2", "ts-jest": "^29.2.2", "ts-node": "^10.9.2", "tslib": "~2.5.0", "type-fest": "^4.22.1", "typescript": "~4.9.5", "xo": "~0.53.1" }, "peerDependencies": { "@floating-ui/utils": "^0.2.5" } }