{"_id":"@apsc/floating-ui-action","_rev":"5-b2c538cd87b2bc01c6fbd57663c862ea","name":"@apsc/floating-ui-action","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"@apsc/floating-ui-action","version":"0.0.1","type":"module","author":{"name":"Andrey Pavlenko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrey-pavlenko/svelte-components.git"},"bugs":{"url":"https://github.com/andrey-pavlenko/svelte-components/issues"},"keywords":["svelte","action","floating-ui"],"homepage":"https://github.com/andrey-pavlenko/svelte-components#readme","dependencies":{"@floating-ui/dom":"^0.5.1"},"exports":{"./package.json":"./package.json",".":"./index.js"},"types":"./index.d.ts","description":"## Install","_id":"@apsc/floating-ui-action@0.0.1","_integrity":"sha512-U2yBT3jJg/p8xU6YUA8duWQhY/FB3dpLGaSpaRLrUTi8aZwQhukkcliJZHRae41trjr2nmrXPfOMvwZYWSCoPg==","_resolved":"/tmp/a2c086a8e87716ebc93d961b24e6dc2b/apsc-floating-ui-action-0.0.1.tgz","_from":"file:apsc-floating-ui-action-0.0.1.tgz","_nodeVersion":"18.3.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-U2yBT3jJg/p8xU6YUA8duWQhY/FB3dpLGaSpaRLrUTi8aZwQhukkcliJZHRae41trjr2nmrXPfOMvwZYWSCoPg==","shasum":"9465ebfe3374e88fe63285d7436669ede344a4fb","tarball":"https://registry.npmjs.org/@apsc/floating-ui-action/-/floating-ui-action-0.0.1.tgz","fileCount":5,"unpackedSize":10746,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4eeOOpVELUA2vbCmO7/XeKuvCBw02OJ+GpEOuDXxq7QIhAN8Eezp+uE7ZBqervyPrfKL+zFgBRYKtSNIzPKgJIfeD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimOq9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoI6Q//Rv40egpBonswvb5CCD+xEEms/rPoPMquP9SfbilxonU/ShNs\r\nGhMlNU6tbLhs3C/vyV0HItexPnY5LPcpqT8UvVie77Q16h+cqnQDDjnoZXH8\r\nax243ha49BkbWZH0aJtlbBraQ5BTnb4vlsHcdKmTs5HK9UoWMHJ3oITy0Cnx\r\nPTQpKifEhyZOI85SddUZPkjC8SORl9o31z1oGPsZl1yp865viOpn/DjyTu0O\r\nj+R+6pFnxE3451us+xaYLWMGeUgpz5SwZtJYHO/btLSwpeR9g+KG7+tGni5l\r\nT/zZh1BM2S2ujzGM2ua5VnUVS3o+Sy8HlydGox2dNsLPwn8+vWBfN72hHYs5\r\n29/VM7E+tyzpcJwEJY/47qMmyWdG8by69uZ6+MIvKKWzKGhbcYy9KvUQpD6W\r\noppJxSnXyATj6Awa3Lk5IPgy0qOH95S2nECdQLlTLyTUnM1kqTe0Y5M/Ibs2\r\nyWlT7OlMJXBWWO5uNFrHgjv6vGIdCw/aNNSyO0RT5SZgVlXKQbRezBuRbQYg\r\nFkGxkalNjVDuOTuXKAZuw+XIGlclbmNCZX/uwR1qvd6LyKnP29kcR0GRzn/6\r\noxF7H9uvXjgMQyAUihp+Fg/CS7iZOjtfHR3W4ovwyJ0Q6xJKM890Lf94/GpC\r\ns3PQb0q1Eq6BVE77UywyXfo5gQJ2XpnNGIQ=\r\n=S+JU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"},"directories":{},"maintainers":[{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/floating-ui-action_0.0.1_1654188733412_0.20438351751101935"},"_hasShrinkwrap":false},"0.0.2":{"name":"@apsc/floating-ui-action","description":"Floating UI action for `use` Svelte directive","version":"0.0.2","type":"module","author":{"name":"Andrey Pavlenko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrey-pavlenko/svelte-components.git"},"bugs":{"url":"https://github.com/andrey-pavlenko/svelte-components/issues"},"keywords":["svelte","action","floating-ui"],"homepage":"https://github.com/andrey-pavlenko/svelte-components/tree/main/packages/floating-ui-action#readme","dependencies":{"@floating-ui/dom":"^0.5.1"},"exports":{"./package.json":"./package.json",".":"./index.js"},"types":"./index.d.ts","_id":"@apsc/floating-ui-action@0.0.2","_integrity":"sha512-xn+D49r/xZchRUGiNBq9a3akY4ytutFjfm2mgVDhB3eiZgPy/VrCnLMZjoH9I08BIBULf27yJbj5UREenZzb5A==","_resolved":"/tmp/5b64a0d9a7dc7d1ddb7e22fb8fec6f15/apsc-floating-ui-action-0.0.2.tgz","_from":"file:apsc-floating-ui-action-0.0.2.tgz","_nodeVersion":"18.3.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-xn+D49r/xZchRUGiNBq9a3akY4ytutFjfm2mgVDhB3eiZgPy/VrCnLMZjoH9I08BIBULf27yJbj5UREenZzb5A==","shasum":"446fc16d46775075e24fbcae5ad523ee29afc9ac","tarball":"https://registry.npmjs.org/@apsc/floating-ui-action/-/floating-ui-action-0.0.2.tgz","fileCount":5,"unpackedSize":11016,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb8htc4feRI0s3Gbx+YMx4dcvlwA0tWKNNwOJcgQ/hcQIhALrQ2oBnkxS6Y/HVTCl5ly9UrW74AIbDK7a1frdiP6Iw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinJxQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9WA/6A5RvK9EyE7nKhigKCzcIYujGSMNQiMJljRIxQcOK6YHLcd0e\r\nAfevmjzUiehxfLn26Z7/hfxoCWxMRB7UZXALVPmOBvSb3KQnbbIiOxFJDBVS\r\nZDNv3HW6iPzDDPRvo5aerzqF79wJv5jVQdtzH5hIUU1BYJrTPXNgYz6IMWas\r\nNpGopRkYMvGbSVGuUKegb+sKJuMxHJ6qNEE6kfp2p7zdvsWgyOSwoXD6k3Xu\r\nubWp3TQBHpG+AiI4jcrSWHWG6MT2/JylOd6MXqLpJJQe1qDzqt6LV4bvs4ZI\r\nIXjTvne/EPiL4Yvs0VLv2qpeRvkDMZaQV3Wjj4zmjOqLwUUgsCRgfzRjJjBk\r\ntg4vltGpdiFhPsxxDN7IhILFSWuQQECn1Xk1TqCWd+oPne+8WJNpJx5NZi3u\r\ni+a26TUhTtTe8sU3WUpkn4JWDMB0AuUpMhZSK5lCimtHs1bH9aq72dnkLTSn\r\nuaFQ57UonBda5fn+SPR/pDWL4Tv7lHPWce/7Eet5pOFM9iXxNnlNzzm5Jzck\r\nPIvY1ktVflSK3hco9atuOsa1nky0BSkYzZmBupVd7VBMowOlCr0DolK46KoJ\r\nXAS+d3E3Wi3y2MbzIc6bloLKJx3lK9pY3zoQTAzu6L5FAqFjif2yELDXKFAG\r\nDBnCEPp4JWCoEc8FgeAl/BU0xt+wClAf/ww=\r\n=wjCc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"},"directories":{},"maintainers":[{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/floating-ui-action_0.0.2_1654430800019_0.7428630253805637"},"_hasShrinkwrap":false},"0.0.3":{"name":"@apsc/floating-ui-action","description":"Floating UI action for `use` Svelte directive","version":"0.0.3","type":"module","types":"index.d.ts","main":"index.js","svelte":"./index.js","author":{"name":"Andrey Pavlenko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrey-pavlenko/svelte-components.git"},"bugs":{"url":"https://github.com/andrey-pavlenko/svelte-components/issues"},"keywords":["svelte","action","floating-ui"],"homepage":"https://github.com/andrey-pavlenko/svelte-components/tree/main/packages/floating-ui-action#readme","dependencies":{"@floating-ui/dom":"^1.0.2"},"peerDependencies":{"svelte":"^3.50.1"},"exports":{"./package.json":"./package.json",".":"./index.js"},"_id":"@apsc/floating-ui-action@0.0.3","_integrity":"sha512-G1mhQcP5kYkU2l4YDhuULd/KIcgMIaMVk25QNhNILQQGN0ZWaibwcBjgTZS3We1e7fSRHl97QGi6WXZsN6t0tA==","_resolved":"/tmp/b28762cdc9da79be406878fec73da8d3/apsc-floating-ui-action-0.0.3.tgz","_from":"file:apsc-floating-ui-action-0.0.3.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-G1mhQcP5kYkU2l4YDhuULd/KIcgMIaMVk25QNhNILQQGN0ZWaibwcBjgTZS3We1e7fSRHl97QGi6WXZsN6t0tA==","shasum":"81211869cf867a58243ba7123db64ba16116aed3","tarball":"https://registry.npmjs.org/@apsc/floating-ui-action/-/floating-ui-action-0.0.3.tgz","fileCount":6,"unpackedSize":11192,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtV2jkfM41WvYa99Fu+AbWGl9Cjma6S3B45RWThZeuTAIgZ1/hS0GGHM5KwyxO/Q3sIL0PPitXEI/X84MmbGXMpKM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjOdfWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0Wg//ZF+8bsEJTnvuyrQ38abRUHIBLS46HQF736SXz1UXXU4xDJNP\r\nXqvzSFzwINzoW/D0QpW2fHNsgTSC8KJDwyoU70IaxXi9IyWn30eb1qjZl+1Y\r\nPS+lkoWlqmhc8QA3APkUoZNO1+WabJmszsqxVAcC6i66vWxmuTjXmwc9DlBX\r\nSc8nBimYEKYg1SdOH3fKPwE6nepcN5yxKovXkqnm/0ZsAB+1cKElESVtyJBh\r\naGI8tNEvkOPfVNGTDuIAbKyezQra9bdK3WP6razReVtJNBR0KbjeqWklljDj\r\nsMKNvaxFaaPBJHRGQhUo0CkhcahTg3iXC0e0y/QX7o9QWUrHrl8dOrxxTP6G\r\nsgQJ5O8k1GKOa/dDvWcKIzBLJrnmPCDP9kTknYeFQNRo6utZW3yEoYcsNwxW\r\nJomE2xQHi5EcF0ZvNI0aH49tIYHFe42IsciXP/AByK8bhaQSG0alVmimS3H0\r\nbzvYlBcLnbMFGkz8UyFF7AuC2RmN3csGYwB0DmoMy8SdnLGhC4HegDHK0j3Z\r\nJ9aqIAcXNpYUAdied1QPocStsTB+fDpowAngTLHyHzqeumIg5Cm2sDEkbSOp\r\nAoBBeF8YJhQZsOnO4ZHBpyWARXscYNtCckXRlCrIZ4uMvbLAOeQcIC5yuM57\r\nb27C8k+rTzUN45XEqhK7PzUDIjHZqn/9iZ0=\r\n=p7OR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"},"directories":{},"maintainers":[{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/floating-ui-action_0.0.3_1664735190186_0.5478802324772352"},"_hasShrinkwrap":false},"0.0.4":{"name":"@apsc/floating-ui-action","description":"Floating UI action for `use` Svelte directive","version":"0.0.4","type":"module","types":"index.d.ts","main":"index.js","svelte":"./index.js","pathPkg":"../../packages/floating-ui-action","author":{"name":"Andrey Pavlenko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrey-pavlenko/svelte-components.git"},"bugs":{"url":"https://github.com/andrey-pavlenko/svelte-components/issues"},"keywords":["svelte","action","floating-ui"],"homepage":"https://github.com/andrey-pavlenko/svelte-components/tree/main/packages/floating-ui-action#readme","dependencies":{"@floating-ui/dom":"^1.1.1"},"peerDependencies":{"svelte":"^3.30.0"},"devDependencies":{"@sveltejs/adapter-auto":"^1.0.2","@sveltejs/kit":"^1.3.6","@sveltejs/package":"^1.0.2","svelte":"^3.55.1","svelte-check":"^3.0.3","svelte-preprocess":"^5.0.1","tslib":"^2.5.0","typescript":"^4.9.5","vite":"^4.0.4"},"scripts":{"dev":"vite dev --port 3000","build":"svelte-kit sync && svelte-package","check":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","format":"cd $npm_package_pathPkg && prettier --plugin-search-dir . --write .","changelog":"../../node_modules/.bin/conventional-changelog -n ../changelog-config.cjs --commit-path=. > $npm_package_pathPkg/CHANGELOG.md","finish:package":"cd $npm_package_pathPkg && npe --delete devDependencies pathPkg","package":"pnpm run check && svelte-package && pnpm run finish:package && pnpm run format && pnpm changelog"},"_id":"@apsc/floating-ui-action@0.0.4","_integrity":"sha512-A1nlM2951hEN7VmLlRaeQHal7VutPFWfxKMlY3hvo8zAVHVBy/kGXqQwvfBLMNt+S1X8q7n+k+EJHfJQrTdLeQ==","_resolved":"/tmp/dccf05c4b247989aa3022c999afb7a88/apsc-floating-ui-action-0.0.4.tgz","_from":"file:apsc-floating-ui-action-0.0.4.tgz","_nodeVersion":"19.5.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-A1nlM2951hEN7VmLlRaeQHal7VutPFWfxKMlY3hvo8zAVHVBy/kGXqQwvfBLMNt+S1X8q7n+k+EJHfJQrTdLeQ==","shasum":"841532ba07c3e98f2bbd571b8689fe49408bbca6","tarball":"https://registry.npmjs.org/@apsc/floating-ui-action/-/floating-ui-action-0.0.4.tgz","fileCount":26,"unpackedSize":39207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqVaKonykzn08t2PjKuWsdhgLfubdaunAuAnjAoM3j/AiAHcDCcypDkV8K02G7lBQbk6ZXR25BaoBEEChD+UVWwWw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2sTVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlqQ//SkUnw00UIB7p8a2Wbjs+lcgiVy00MuXspQVD/dhmhy9gQiqI\r\ndpilmPqjkAECdVPy6zJOcFjqNCte0mgOvSNhrboF+Q61Vh98QWQfoCedfV+z\r\nQkQDqElW0jcvul5IxQfv2cMvCm2r3x4yKiIYI5E/qypaIh/i38N0AszcWXxz\r\nOkZurTfl0l+SwuDUeLptxDbtLpRHGMlYZkr8Ytkfkh0fIcJKWOox6TSL8jQt\r\nTX4mJMQ7otTA1ENDsKbYMpUuTkANZJqyNFSu7P6CcK7M7Ga5jchyXgi2y4qE\r\n1x/pLc0a232AOjTDZLDcoEoIzIBwiKFsEmNslp7tCd+TPl2lXgmxfMcO5FJc\r\nXH6TBz/a7tIOs5hgbfIvEIFpgdGdw2CcCMM3HYaEOiaJydF5MnnpwUE/rleU\r\nIx7l6+8UxT3KYsooRAJ4Szim7VKQJ8ySXSkOJgwZzKnB/wuHrvZas7yhlnDa\r\nTbpq8w4ST0sI+F9VpCVWjemCZLU0yWBQ84XY0rNkDtZC20oXfDua3w5yzkBS\r\nk4/wssLTp5wWcXPfZDqMyReLsVjEufJ7i+EDajgWMQpANE218PhkLJ8CVABw\r\nC2SNob67a4m2aMCiilN4nIVF84kj++SUowC5WKJl6fBxINQShjS+uAuO2lpE\r\niR4b3QM5kL3wDZPofTcz6t1J8Zd7YXJke1E=\r\n=5But\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"},"directories":{},"maintainers":[{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/floating-ui-action_0.0.4_1675281621125_0.11464448122141335"},"_hasShrinkwrap":false},"0.0.5":{"name":"@apsc/floating-ui-action","description":"Floating UI action for `use` Svelte directive","version":"0.0.5","type":"module","types":"index.d.ts","main":"index.js","svelte":"./index.js","author":{"name":"Andrey Pavlenko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrey-pavlenko/svelte-components.git"},"bugs":{"url":"https://github.com/andrey-pavlenko/svelte-components/issues"},"keywords":["svelte","action","floating-ui"],"homepage":"https://github.com/andrey-pavlenko/svelte-components/tree/main/packages/floating-ui-action#readme","dependencies":{"@floating-ui/dom":"^1.1.1"},"peerDependencies":{"svelte":"^3.30.0"},"exports":{"./package.json":"./package.json",".":"./index.js"},"gitHead":"915c3b0f43eec7b79a0cdb8aaeddf5a84205b791","_id":"@apsc/floating-ui-action@0.0.5","_nodeVersion":"19.5.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-QiR3E2m01ZQothsX+ZEs/4ZMWJvmqJ20yI7Q1uagGR8OxmZSs+0ix12RIplZsnga+5TnB8tfqM2TdkBy1B2PFw==","shasum":"a80d3a2489d1635c06e3868d70c7fcc4348fdf47","tarball":"https://registry.npmjs.org/@apsc/floating-ui-action/-/floating-ui-action-0.0.5.tgz","fileCount":5,"unpackedSize":9825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjoCulv/2y63dYjZwcPo5DlHkV3nJk2Pgs7tQUkouYDwIgcp6bpghfnfDd3bjej0l03IzDHwIt7UY/JB3rnj2xfYg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2sjkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIwg//dfAEJInpL3anv+RR4lJ7BViMvFzU+B8QsbSq9Gz/dN88Nrrq\r\nyzu7oXXzQ2vC6qqDyA8TKWWl+NXO/4BjoLjRI33FGKVCAa17ENVXW/ZTJGYM\r\nAlvrQdauu0F4umO3ay1ohLE+cCE/pYua8PidsY0aV2+lKQSKUzNhq1BgDV7l\r\nJ5kuPWOVZ4NowbKggp1TpA5rUDs5AdHS14xNSP7CkrY4Yr7A7UjE6ruFV1lE\r\n+EQztsE8L6F0dPzOZ89I97I3RVJ31zhgbAd8448yvnYQJs+Grgi0kk9ezQok\r\nsfO4mWV5FC7sm9+Q/M7Eh2LzDrmVYmSmK5ygGIem7HubxqLvE9SvdX4DiM+7\r\nmJjBatzPO/VPFoCZezS5KXSp3uz6+qch1pds+nx/cIpUyTzSciJikMpErOtB\r\nAdeqD/Dp5MKQ4vgGFSOzianrD36A4ec4EFVZl4Bx+qCtJX7KpJ1L0B75OOVe\r\n3WURuzlmpzDsXgcrfYKyMiIact+PZx0xUYxu2yCbLKVZJiKQEUpNyDo+Tb14\r\ngXgZ6pcHGOXZnbvgwHREyMhGlOdG7b4ZyBXRtZKXZdmeD1Bh65CumnoEAuOU\r\ngcdI+SRNyC1eqIAVswLXPBqzd3IyWpD8UOPNzLSAd2GN5Ek5fAiVbFyEWAJW\r\nUyu5kwjOj+JZ+QAU08CNpjTN3GDOyD9SncA=\r\n=bjvb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"},"directories":{},"maintainers":[{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/floating-ui-action_0.0.5_1675282660639_0.36920546552185174"},"_hasShrinkwrap":false},"0.0.6":{"name":"@apsc/floating-ui-action","description":"Floating UI action for `use` Svelte directive","version":"0.0.6","type":"module","types":"index.d.ts","main":"index.js","svelte":"./index.js","author":{"name":"Andrey Pavlenko"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrey-pavlenko/svelte-components.git"},"bugs":{"url":"https://github.com/andrey-pavlenko/svelte-components/issues"},"keywords":["svelte","action","floating-ui"],"homepage":"https://github.com/andrey-pavlenko/svelte-components/tree/main/packages/floating-ui-action#readme","dependencies":{"@floating-ui/dom":"^1.1.1"},"peerDependencies":{"@floating-ui/dom":"^1.1.1","svelte":"^3.30.0"},"exports":{"./package.json":"./package.json",".":"./index.js"},"gitHead":"aebffb7f28f4b571b1de07dba984df9156bc1d4d","_id":"@apsc/floating-ui-action@0.0.6","_nodeVersion":"19.6.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-m3BeZnj787WX3GSwDqHt45v9AaDHcRi7J0HxYHDO+sSIa16RTBMgoKhYZmc0tMYYZkpA7jVwkIq4bo4BLksxWg==","shasum":"e58a2942ad4d4b3913d8247660ecffc1899e1c23","tarball":"https://registry.npmjs.org/@apsc/floating-ui-action/-/floating-ui-action-0.0.6.tgz","fileCount":5,"unpackedSize":9940,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFNqTXmo7xjBzCul4Cfh7qul5xSpc5h4M8fOmsUCagCwIgTj28UH/4iGZjD6X1Qh/0gXNaCqkwnhJ/ilixRzUo9AY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3U1fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruuxAAl7lvFxPhpGmMdZ0Glj/lENVerC7sMQ2S8CATmACis/pNtSGC\r\nStmrM8qqnSZyZ3EZgPgpAN6IgXOM0Ielyz6Y/zLC06BXOFhW8Rk7RZ5aCyMs\r\n9/k/BPTtQN25UTW4vFoG7WNgY8zb8BVPtAhRk/1wd0AvHLPy2W6V8bVJtpbK\r\nKUTAJCZregvPdhWtOD77+dcxTFTKCaxrTQSt8Ldt0liEXuCfn/sasAVa3zEY\r\niqNJbYpbvVyxT5yKLxTylgRQaEmcCyM1/V8TYGX1d7jYTks5U3iuNQX4D/hc\r\nJyS8boINjyc7P1vTe/WX33uWFPP7xP8yGjr/TOkOBNaj2JB7FLKVfN/nluue\r\n+XFTOW/I+mTCegU5T/g9c3cY1RR7dSXCuJhhyvHowYUqshUA8SdUGyDV6DE7\r\nI70mWbIgR6JmUXasNBPr/4mqiuU0hnEBJHWA53yUkXFxh1LRgu5ggBXCOZj6\r\nprWtr8SA48jVqNg2iqa48DpdfyWTefbHe6ZUjsSZAdGBo0ILZpgxH2o1SrSz\r\nYdnw+kKgOKneVV0GLI0OJlKnuxoE653nRtFlJWhyWt5+3N1jQLvv+N8FZOTw\r\n11don0gRdClr0ekGqHJBUIxh2NDctYA6E6QGBAOQNpWPVbOVFf9tkljKwS4w\r\nbdHPx6+gy+ceGpdhfzHWKyC1FUtN2dcQyJA=\r\n=SMs6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"},"directories":{},"maintainers":[{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/floating-ui-action_0.0.6_1675447647066_0.5381346970837044"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-02T16:52:13.334Z","0.0.1":"2022-06-02T16:52:13.648Z","modified":"2023-02-03T18:07:27.341Z","0.0.2":"2022-06-05T12:06:40.231Z","0.0.3":"2022-10-02T18:26:30.394Z","0.0.4":"2023-02-01T20:00:21.394Z","0.0.5":"2023-02-01T20:17:40.822Z","0.0.6":"2023-02-03T18:07:27.226Z"},"maintainers":[{"name":"andrey-pavlenko","email":"andrey.pavlenko@mail.ru"}],"description":"Floating UI action for `use` Svelte directive","homepage":"https://github.com/andrey-pavlenko/svelte-components/tree/main/packages/floating-ui-action#readme","keywords":["svelte","action","floating-ui"],"repository":{"type":"git","url":"git+https://github.com/andrey-pavlenko/svelte-components.git"},"author":{"name":"Andrey Pavlenko"},"bugs":{"url":"https://github.com/andrey-pavlenko/svelte-components/issues"},"license":"MIT","readme":"# [Floating UI](https://floating-ui.com/) action for `use` Svelte directive\n\n- allows you to use both Svelte transitions and CSS transitions\n- dependence [@floating-ui/dom](https://github.com/floating-ui/floating-ui)\n\n### [Docs & Demo](https://andrey-pavlenko.github.io/svelte-components/?c=floating-ui-action)\n\n## Install\n\n### NPM\n\n```sh\nnpm i -D @apsc/floating-ui-action\n```\n\n### PNPM\n\n```sh\npnpm add -D @apsc/floating-ui-action\n```\n\n## API\n\n```ts\nfunction createFloatingUiAction(\n  options: UpdateOptions\n): [Action, Action, (options: UpdateOptions) => void];\n\n// Example\nconst [useReference, useFloat, setAutoupdate] = createAction(true);\n```\n\nCreates actions for use in directive `use`. Returns an array of three functions `useReference`, `useFloating` and `setAutoupdate`.\n\nParameter `options` can take values\n\n- `true` -- `autoUpdate` will be enabled with default options\n- `object` -- `autoUpdate` will be enabled with the specified options\n- `false` -- `autoUpdate` will be disabled\n\nSee [`autoUpdate`](https://floating-ui.com/docs/autoUpdate)\n\nUse actions `useReference` and `useFloat` in directive `use` on target elements.\n\n```svelte\n<button on:click={() => (show = !show)} use:useReference>Click me</button>\n{#if show}\n<div use:useFloat2={{\n  placement: 'bottom',\n  middleware: [offset(8), flip(), shift({ padding: 8 }), arrow({ element: arrow })],\n  callback: positionFloat\n}}\ntransition:scale|local>My tooltip</div>\n{/if}\n```\n\nAction `useFloating` takes options as a function [`computePosition`](https://floating-ui.com/docs/computePosition)\nwith optional `callback` for custom element control, e.g. an arrow.\n\n`setAutoupdate` allows disable, enable or change the [`autoUpdate`](https://floating-ui.com/docs/autoUpdate) settings at any time.\n\n## Usage\n\n```svelte\n<script>\n  import { scale } from 'svelte/transition';\n    import {\n    arrow,\n    flip,\n    offset,\n    type ComputePositionReturn,\n    type Middleware\n  } from '@floating-ui/dom';\n  import createFloating from '@apsc/floating-ui-action';\n\n  let show = false;\n  let _arrow: HTMLElement;\n\n  function adjustArrow(pos: ComputePositionReturn) {\n    const { placement, middlewareData } = pos;\n    if (middlewareData.arrow) {\n      const { x, y } = middlewareData.arrow;\n      const staticSide = {\n        top: 'bottom',\n        right: 'left',\n        bottom: 'top',\n        left: 'right'\n      }[placement.split('-')[0]];\n      if (staticSide) {\n        Object.assign(_arrow.style, {\n          left: x != null ? `${x}px` : '',\n          top: y != null ? `${y}px` : '',\n          right: '',\n          bottom: '',\n          [staticSide]: '-6px'\n        });\n      }\n    }\n  }\n</script>\n\n<button on:click={() => (show = !show)} use:useReference>Click me</button>\n{#if show}\n  <div\n    use:useFloating={{\n      placement: 'top',\n      middleware: [offset(8), flip(), arrow({ element: _arrow })],\n      callback: adjustArrow\n    }}\n    transition:slide|local\n  >\n    <div bind:this={_arrow} />\n    Lorem ipsum dolor sit amet consectetur adipisicing elit\n  </div>\n{/if}\n```\n","readmeFilename":"README.md"}