{"_id":"@astrocreep/capacitor-textinteraction","_rev":"1-11d5d11c4539f15acb870ecffcbff05f","name":"@astrocreep/capacitor-textinteraction","dist-tags":{"latest":"1.2.0"},"versions":{"1.1.0":{"name":"@astrocreep/capacitor-textinteraction","version":"1.1.0","keywords":["capacitor","plugin","native"],"author":{"name":"Florian Hofmann"},"license":"MIT","_id":"@astrocreep/capacitor-textinteraction@1.1.0","maintainers":[{"name":"astrocreep","email":"florian@astrocreep.de"}],"homepage":"https://github.com/astrocreep/capacitor-plugins#readme","bugs":{"url":"https://github.com/astrocreep/capacitor-plugins/issues"},"dist":{"shasum":"ed1ac8643ac8b826e937d92dee2589206d10ed19","tarball":"https://registry.npmjs.org/@astrocreep/capacitor-textinteraction/-/capacitor-textinteraction-1.1.0.tgz","fileCount":19,"integrity":"sha512-eos5VkiIA4iQ/1G9pU186IKshQ9S4ehfv5BPWBZrfpuNybVkCkuA77/h2uhGEvsTE7qx+ZHH1nEYIgRx4zdA1w==","signatures":[{"sig":"MEYCIQDTqJPjHRkViudXZVJZf3OtPWLK3hOxiUQMXz3DpNv61gIhAITOlAJ4AFsdQPNaXN9wUH9wq13Ux7IpzDa5xWWR9LJr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14374},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"f29888d7fe1809712cd3364570ba0e63c8b264d9","scripts":{"build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","docgen":"docgen --api TextInteractionPlugin --output-readme README.md --output-json dist/docs.json","verify":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","prepublishOnly":"npm run build"},"_npmUser":{"name":"astrocreep","email":"florian@astrocreep.de"},"capacitor":{"ios":{"src":"ios"}},"repository":{"url":"git+https://github.com/astrocreep/capacitor-plugins.git","type":"git"},"_npmVersion":"10.2.4","description":"Toggle text interaction in Capacitor based iOS apps.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","rollup":"^2.79.1","typescript":"^5.5.4","@types/node":"^20.16.3","@capacitor/ios":"^6.1.2","@capacitor/core":"^6.1.2","@capacitor/docgen":"^0.2.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-textinteraction_1.1.0_1725362335089_0.19424386425861417","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@astrocreep/capacitor-textinteraction","version":"1.2.0","description":"Toggle text interaction in Capacitor based iOS apps.","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Florian Hofmann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/astrocreep/capacitor-plugins.git"},"bugs":{"url":"https://github.com/astrocreep/capacitor-plugins/issues"},"keywords":["capacitor","plugin","native"],"scripts":{"verify":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","docgen":"docgen --api TextInteractionPlugin --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","prepublishOnly":"npm run build"},"devDependencies":{"@capacitor/core":"^6.1.2","@capacitor/docgen":"^0.2.2","@capacitor/ios":"^6.1.2","@types/node":"^20.16.3","rimraf":"^6.0.1","rollup":"^2.79.1","typescript":"^5.5.4"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"capacitor":{"ios":{"src":"ios"}},"_id":"@astrocreep/capacitor-textinteraction@1.2.0","gitHead":"ecd48cd9505daf6d54ae1b4eaa16e28d93b75177","homepage":"https://github.com/astrocreep/capacitor-plugins#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-CXNhi1wYexpe2iv0LPzDrzaElc/98zi1hzp3JbqcAZa3eDywr9W08TUbw4B12JaRmQWvyDAYC/tEIt1TVudS3Q==","shasum":"1aaa411a1c886a31c296cd28d0d71ed7ff936c32","tarball":"https://registry.npmjs.org/@astrocreep/capacitor-textinteraction/-/capacitor-textinteraction-1.2.0.tgz","fileCount":19,"unpackedSize":14394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkwLVUhz7iWQLDIHPQBnEmloCLFS/Jd5hRIBFrcwci4AiEAj4MAB3zPUsFoAPkjaQZU8uS6ndY19XedrHs6yt7jQu4="}]},"_npmUser":{"name":"astrocreep","email":"florian@astrocreep.de"},"directories":{},"maintainers":[{"name":"astrocreep","email":"florian@astrocreep.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-textinteraction_1.2.0_1725438679274_0.4395556220238006"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-03T11:18:54.982Z","modified":"2024-09-04T08:31:19.621Z","1.1.0":"2024-09-03T11:18:55.233Z","1.2.0":"2024-09-04T08:31:19.456Z"},"bugs":{"url":"https://github.com/astrocreep/capacitor-plugins/issues"},"author":{"name":"Florian Hofmann"},"license":"MIT","homepage":"https://github.com/astrocreep/capacitor-plugins#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/astrocreep/capacitor-plugins.git"},"description":"Toggle text interaction in Capacitor based iOS apps.","maintainers":[{"name":"astrocreep","email":"florian@astrocreep.de"}],"readme":"# @astrocreep/capacitor-textinteraction\n\nToggle text interaction in Capacitor based iOS apps.\n\nBackground: Apple reintroduced the magnifier lens with iOS 15. There are two\ndifferent ways how this function is triggered. Either by longpressing on a text\nelement or by double tap and hold. You can disable the longpress version in CSS\nvia `-webkit-user-select: none;`, but this won't work for the double tap and hold.\nAs I'm using Capacitor for games, the lens is the last thing I want to pop up\nwhile playing the game 😇\n\n## Install\n\n```bash\nnpm install @astrocreep/capacitor-textinteraction\nnpx cap sync\n```\n\n## API\n\n<docgen-index>\n\n* [`toggle(...)`](#toggle)\n* [Interfaces](#interfaces)\n\n</docgen-index>\n\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### toggle(...)\n\n```typescript\ntoggle(options: TextInteractionOptions) => Promise<TextInteractionResult>\n```\n\nToggle text interaction (selection) on the Capacitor WebView.\n\n⚠️ As long as you disable text interaction, you won't be able\nto use any input fields in the WebView. Either disable while text input is active or\nuse native text input overlays.\n\n| Param         | Type                                                                      |\n| ------------- | ------------------------------------------------------------------------- |\n| **`options`** | <code><a href=\"#textinteractionoptions\">TextInteractionOptions</a></code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#textinteractionresult\">TextInteractionResult</a>&gt;</code>\n\n**Since:** 1.0.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### TextInteractionResult\n\n| Prop          | Type                 | Description                                      | Since |\n| ------------- | -------------------- | ------------------------------------------------ | ----- |\n| **`success`** | <code>boolean</code> | true if supported (&gt;= iOS 14.5), false if not | 1.0.0 |\n\n\n#### TextInteractionOptions\n\n| Prop          | Type                 | Description                                                                                                                                   | Since |\n| ------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----- |\n| **`enabled`** | <code>boolean</code> | Whether text interaction should be enabled or disabled. Disabling suppresses the magnifier lens that Apple reintroduced with iOS 15. iOS only | 1.0.0 |\n\n</docgen-api>\n","readmeFilename":"README.md"}