{"_id":"@capawesome/capacitor-dialog","_rev":"5-2fad9f03eac07404a525d2f6c882b9c9","name":"@capawesome/capacitor-dialog","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"@capawesome/capacitor-dialog","version":"0.0.1","keywords":["capacitor","plugin","native","dialog","alert","confirm","prompt"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-dialog@0.0.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/dialog/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"d308ec22d820d465a899fcde50674ce82d205ef9","tarball":"https://registry.npmjs.org/@capawesome/capacitor-dialog/-/capacitor-dialog-0.0.1.tgz","fileCount":45,"integrity":"sha512-pIXZ+lA+qmDOk44mAImeHN7au2XdtBa7xxyIWL0a/r5Sd82BlGiNCL16gvnVIK8maYVdiMn/ZDYVZdwAKFjIQA==","signatures":[{"sig":"MEUCIQC1+/R4uGiFzQH/zol0vOtXwP78eBpXMPPQ7xKkX6IiawIgHm7ICX01usRLHXf+yNQ0VggYuMGHcELVpvPR7Sw1Np4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71764},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"e18228f8362b044cd453aba542fe8e0a02fd996f","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api DialogPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.13.0","description":"Capacitor plugin for native alert, confirm, and prompt dialogs.","directories":{},"_nodeVersion":"24.16.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-dialog_0.0.1_1783426821403_0.9115545838633827","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@capawesome/capacitor-dialog","version":"0.1.0","keywords":["capacitor","plugin","native","dialog","alert","confirm","prompt","capacitor-plugin","alert dialog","confirm dialog","prompt dialog","native dialog","modal","popup"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-dialog@0.1.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/dialog/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"21757541615a3b1b9a9781862688795adbdada35","tarball":"https://registry.npmjs.org/@capawesome/capacitor-dialog/-/capacitor-dialog-0.1.0.tgz","fileCount":45,"integrity":"sha512-tGnY6798IN2Fxv8m+H9+LiCJvXQTaseZFHGDLCpi6ztFRuXllue4IAW7J/ZIP/HOaUCAiR6yHTTo85kpyQyGzg==","signatures":[{"sig":"MEUCIDFcjbqhaFEA/r7UPsMSE9OPT7YVZ6PQiszXQdsX0zT/AiEAqAFGr9KbAtcJ4+4KH2ahqRW2QzEKvbXngut5cbtoHXU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-dialog@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76053},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"1ce17b1fd14c43b2f1d5d3c2da82221e1d1dca37","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api DialogPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1fd3e339-8d52-40e5-8bb0-3fa1f100d764"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.16.0","description":"Capacitor plugin for native alert, confirm, and prompt dialogs on Android, iOS, and Web.","directories":{},"_nodeVersion":"24.18.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-dialog_0.1.0_1784015518845_0.029635523347549375","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@capawesome/capacitor-dialog","version":"0.1.1","keywords":["capacitor","plugin","native","dialog","alert","confirm","prompt","capacitor-plugin","alert dialog","confirm dialog","prompt dialog","native dialog","modal","popup"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-dialog@0.1.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/dialog/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"596e81f17d8d981468fd653780416ff6cd73cb96","tarball":"https://registry.npmjs.org/@capawesome/capacitor-dialog/-/capacitor-dialog-0.1.1.tgz","fileCount":45,"integrity":"sha512-dbhJNw8574i2sm5pouPz29lzxNFz/kWtg9mIY+ZzvtrIGVUBV2qpmXW4q9pTy5mhswbf5LNL28ASrzexMv74uw==","signatures":[{"sig":"MEQCIB1wN6b6cSe/vkXO6qknAyjv8xe2DwgsugDGADIOGeZtAiBPzda7rmypAsyZkptDG59ilVrykDzxc1jgHfP5/qVuEA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-dialog@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76062},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"3e61f4b412f9f3f512c21169bb135bbb23a67e6d","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api DialogPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1fd3e339-8d52-40e5-8bb0-3fa1f100d764"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.16.0","description":"Capacitor plugin for native alert, confirm, and prompt dialogs on Android, iOS, and Web.","directories":{},"_nodeVersion":"24.18.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-dialog_0.1.1_1784102971401_0.8875203040262558","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@capawesome/capacitor-dialog","version":"0.1.2","keywords":["capacitor","plugin","native","dialog","alert","confirm","prompt","capacitor-plugin","alert dialog","confirm dialog","prompt dialog","native dialog","modal","popup"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-dialog@0.1.2","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/dialog/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"630ed44ac50a7ba186bc863ff4e4f3bee50da21e","tarball":"https://registry.npmjs.org/@capawesome/capacitor-dialog/-/capacitor-dialog-0.1.2.tgz","fileCount":45,"integrity":"sha512-sQFYCAdEIw6fbSfvcVqB56xc7ToFb+LjNIdmtf9ycavdmasFKpEJ+EVMZNasUAaChAuTKlIA/gD8EQXnzYsQvw==","signatures":[{"sig":"MEYCIQD7lV5h1eAHAvnt+E4dGzIoaZzK3Vd0LKH1RNkpg0Ad+QIhAI0sB3j5VGFb/UjvHp6cQWzTGtQ1BYC5GC0/Mttdnp4x","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-dialog@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76188},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"7c1937ed10b7de86ca2c1cdc3539a2735fd69a00","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api DialogPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1fd3e339-8d52-40e5-8bb0-3fa1f100d764"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.17.0","description":"Capacitor plugin for native alert, confirm, and prompt dialogs on Android, iOS, and Web.","directories":{},"_nodeVersion":"24.19.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.4.2","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.9.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-dialog_0.1.2_1788337330366_0.5324679398136056","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@capawesome/capacitor-dialog","version":"0.2.0","description":"Capacitor plugin for native alert, confirm, and prompt dialogs on Android, iOS, and Web.","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/capawesome-team/capacitor-plugins.git"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"funding":[{"type":"github","url":"https://github.com/sponsors/capawesome-team/"},{"type":"opencollective","url":"https://opencollective.com/capawesome"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/dialog/","keywords":["capacitor","plugin","native","dialog","alert","confirm","prompt","capacitor-plugin","alert dialog","confirm dialog","prompt dialog","native dialog","modal","popup"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:android":"cd android && ./gradlew clean build test && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","eslint":"eslint . --ext ts","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api DialogPlugin --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd ..","prepublishOnly":"npm run build"},"devDependencies":{"@capacitor/android":"8.0.0","@capacitor/cli":"8.4.2","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/ios":"8.0.0","@ionic/eslint-config":"0.4.0","eslint":"8.57.0","prettier-plugin-java":"2.9.7","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"publishConfig":{"access":"public"},"gitHead":"3ee8c4f992341026051d438d5b412567c1826c92","_id":"@capawesome/capacitor-dialog@0.2.0","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-k5R5SYC+uBU/54nh7wAl6GMuhsV+xXXjFo9GyMKHczvfdCMtqLYOwM6wkD/6JQpv5WLvmTxUbalzvRsH2EPEPQ==","shasum":"020023f30f566d1d08f8c7ad8df1bf78664fd429","tarball":"https://registry.npmjs.org/@capawesome/capacitor-dialog/-/capacitor-dialog-0.2.0.tgz","fileCount":45,"unpackedSize":80439,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-dialog@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCOZ20gg3TtR0macBa45kTY1l06TQPkmDF8Xk+WENbsxwIhAMot6dRo6sle+9ic6IyHNa3Gi/yVwdUQyy9XZkRWeGZT"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1fd3e339-8d52-40e5-8bb0-3fa1f100d764"}},"directories":{},"maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-dialog_0.2.0_1788587139260_0.9055809145080853"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-07T12:20:21.211Z","modified":"2026-09-05T05:45:39.692Z","0.0.1":"2026-07-07T12:20:21.530Z","0.1.0":"2026-07-14T07:51:58.975Z","0.1.1":"2026-07-15T08:09:31.543Z","0.1.2":"2026-09-02T08:22:10.496Z","0.2.0":"2026-09-05T05:45:39.381Z"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","homepage":"https://capawesome.io/docs/sdks/capacitor/dialog/","keywords":["capacitor","plugin","native","dialog","alert","confirm","prompt","capacitor-plugin","alert dialog","confirm dialog","prompt dialog","native dialog","modal","popup"],"repository":{"type":"git","url":"git+https://github.com/capawesome-team/capacitor-plugins.git"},"description":"Capacitor plugin for native alert, confirm, and prompt dialogs on Android, iOS, and Web.","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"readme":"# Capacitor Dialog Plugin\n\nCapacitor plugin for native alert, confirm, and prompt dialogs.\n\n<div class=\"capawesome-z29o10a\">\n  <a href=\"https://cloud.capawesome.io/\" target=\"_blank\">\n    <img alt=\"Deliver Live Updates to your Capacitor app with Capawesome Cloud\" src=\"https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1\" />\n  </a>\n</div>\n\n## Features\n\n- 💬 **Alert**: Display a native alert dialog with a single button.\n- ❓ **Confirm**: Ask the user to confirm or cancel an action.\n- ⌨️ **Prompt**: Request text input from the user.\n- 🌐 **Cross-platform**: Works on Android, iOS, and the web.\n- 🔒 **App Store safe**: Uses only official platform APIs.\n- 🤝 **Compatibility**: Works alongside the [Action Sheet](https://capawesome.io/docs/sdks/capacitor/action-sheet/), [Datetime Picker](https://capawesome.io/docs/sdks/capacitor/datetime-picker/) and [Toast](https://capawesome.io/docs/sdks/capacitor/toast/) plugins.\n- 📦 **CocoaPods & SPM**: Supports CocoaPods and Swift Package Manager for iOS.\n- 🔁 **Up-to-date**: Always supports the latest Capacitor version.\n\nMissing a feature? Just [open an issue](https://github.com/capawesome-team/capacitor-plugins/issues) and we'll take a look!\n\n## Use Cases\n\nThe Dialog plugin is typically used whenever an app needs a quick native interaction with the user, for example:\n\n- **Confirmations**: Ask the user to confirm a destructive action, such as deleting an item, before executing it.\n- **Notices**: Inform the user about the result of an action, such as saved changes or an error, with a simple alert.\n- **Quick text input**: Ask the user for a short text value, such as a name, without building a custom form.\n- **Native look and feel**: Replace the browser's `window.alert`, `window.confirm`, and `window.prompt` with native dialogs on Android and iOS.\n\n## Compatibility\n\n| Plugin Version | Capacitor Version | Status         |\n| -------------- | ----------------- | -------------- |\n| 0.x.x          | >=8.x.x           | Active support |\n\n## Installation\n\nYou can use our **AI-Assisted Setup** to install the plugin.\nAdd the [Capawesome Skills](https://github.com/capawesome-team/skills) to your AI tool using the following command:\n\n```bash\nnpx skills add capawesome-team/skills --skill capacitor-plugins\n```\n\nThen use the following prompt:\n\n```\n Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-dialog` plugin in my project.\n```\n\nIf you prefer **Manual Setup**, install the plugin by running the following commands and follow the platform-specific instructions below:\n\n```bash\nnpm install @capawesome/capacitor-dialog\nnpx cap sync\n```\n\n### Android\n\nNo additional configuration is required for this plugin.\n\n### iOS\n\nNo additional configuration is required for this plugin.\n\n## Configuration\n\nNo configuration required for this plugin.\n\n## Usage\n\nThe following examples show how to display an alert dialog, ask the user for confirmation, and request text input from the user.\n\n### Display an alert dialog\n\nShow a message with a single button, for example to inform the user about the result of an action:\n\n```typescript\nimport { Dialog } from '@capawesome/capacitor-dialog';\n\nconst alert = async () => {\n  await Dialog.alert({\n    title: 'Success',\n    message: 'Your changes have been saved.',\n  });\n};\n```\n\n### Ask the user for confirmation\n\nShow a confirmation dialog with two buttons. The result tells you whether the user confirmed the dialog:\n\n```typescript\nimport { Dialog } from '@capawesome/capacitor-dialog';\n\nconst confirm = async () => {\n  const { value } = await Dialog.confirm({\n    title: 'Confirm',\n    message: 'Do you want to delete this item?',\n  });\n  console.log('Confirmed:', value);\n};\n```\n\n### Request text input from the user\n\nShow a prompt dialog with a text input, a confirm and a cancel button. The result contains the entered value. If the user cancels the dialog, the promise is rejected with the `CANCELED` error code:\n\n```typescript\nimport { Dialog, ErrorCode } from '@capawesome/capacitor-dialog';\n\nconst prompt = async () => {\n  try {\n    const { value } = await Dialog.prompt({\n      title: 'Name',\n      message: 'What is your name?',\n      inputPlaceholder: 'Enter your name',\n    });\n    console.log('Value:', value);\n  } catch (error) {\n    if (error.code === ErrorCode.Canceled) {\n      console.log('The user canceled the dialog.');\n    }\n  }\n};\n```\n\n## API\n\n<docgen-index>\n\n* [`alert(...)`](#alert)\n* [`confirm(...)`](#confirm)\n* [`prompt(...)`](#prompt)\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### alert(...)\n\n```typescript\nalert(options: AlertOptions) => Promise<void>\n```\n\nDisplay an alert dialog with a single button.\n\n| Param         | Type                                                  |\n| ------------- | ----------------------------------------------------- |\n| **`options`** | <code><a href=\"#alertoptions\">AlertOptions</a></code> |\n\n**Since:** 0.1.0\n\n--------------------\n\n\n### confirm(...)\n\n```typescript\nconfirm(options: ConfirmOptions) => Promise<ConfirmResult>\n```\n\nDisplay a confirmation dialog with two buttons.\n\n| Param         | Type                                                      |\n| ------------- | --------------------------------------------------------- |\n| **`options`** | <code><a href=\"#confirmoptions\">ConfirmOptions</a></code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#confirmresult\">ConfirmResult</a>&gt;</code>\n\n**Since:** 0.1.0\n\n--------------------\n\n\n### prompt(...)\n\n```typescript\nprompt(options: PromptOptions) => Promise<PromptResult>\n```\n\nDisplay a prompt dialog with a text input, a confirm and a cancel button.\n\nIf the user selects the cancel button or dismisses the dialog, the promise\nis rejected with the `CANCELED` error code.\n\n| Param         | Type                                                    |\n| ------------- | ------------------------------------------------------- |\n| **`options`** | <code><a href=\"#promptoptions\">PromptOptions</a></code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#promptresult\">PromptResult</a>&gt;</code>\n\n**Since:** 0.1.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### AlertOptions\n\n| Prop              | Type                | Description                                                                                                         | Default           | Since |\n| ----------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- |\n| **`buttonTitle`** | <code>string</code> | The title of the button that confirms the dialog. On the web, the button title cannot be customized and is ignored. | <code>'OK'</code> | 0.1.0 |\n| **`message`**     | <code>string</code> | The message to display in the dialog.                                                                               |                   | 0.1.0 |\n| **`title`**       | <code>string</code> | The title of the dialog. On the web, the title cannot be customized and is ignored.                                 |                   | 0.1.0 |\n\n\n#### ConfirmResult\n\n| Prop        | Type                 | Description                            | Since |\n| ----------- | -------------------- | -------------------------------------- | ----- |\n| **`value`** | <code>boolean</code> | Whether the user confirmed the dialog. | 0.1.0 |\n\n\n#### ConfirmOptions\n\n| Prop                    | Type                | Description                                                                                                         | Default               | Since |\n| ----------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------- | --------------------- | ----- |\n| **`cancelButtonTitle`** | <code>string</code> | The title of the button that cancels the dialog. On the web, the button title cannot be customized and is ignored.  | <code>'Cancel'</code> | 0.1.0 |\n| **`message`**           | <code>string</code> | The message to display in the dialog.                                                                               |                       | 0.1.0 |\n| **`okButtonTitle`**     | <code>string</code> | The title of the button that confirms the dialog. On the web, the button title cannot be customized and is ignored. | <code>'OK'</code>     | 0.1.0 |\n| **`title`**             | <code>string</code> | The title of the dialog. On the web, the title cannot be customized and is ignored.                                 |                       | 0.1.0 |\n\n\n#### PromptResult\n\n| Prop        | Type                | Description                  | Since |\n| ----------- | ------------------- | ---------------------------- | ----- |\n| **`value`** | <code>string</code> | The value of the text input. | 0.1.0 |\n\n\n#### PromptOptions\n\n| Prop                    | Type                | Description                                                                                                         | Default               | Since |\n| ----------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------- | --------------------- | ----- |\n| **`cancelButtonTitle`** | <code>string</code> | The title of the button that cancels the dialog. On the web, the button title cannot be customized and is ignored.  | <code>'Cancel'</code> | 0.1.0 |\n| **`inputPlaceholder`**  | <code>string</code> | The placeholder of the text input. On the web, the placeholder cannot be customized and is ignored.                 |                       | 0.1.0 |\n| **`inputText`**         | <code>string</code> | The initial value of the text input.                                                                                |                       | 0.1.0 |\n| **`message`**           | <code>string</code> | The message to display in the dialog.                                                                               |                       | 0.1.0 |\n| **`okButtonTitle`**     | <code>string</code> | The title of the button that confirms the dialog. On the web, the button title cannot be customized and is ignored. | <code>'OK'</code>     | 0.1.0 |\n| **`title`**             | <code>string</code> | The title of the dialog. On the web, the title cannot be customized and is ignored.                                 |                       | 0.1.0 |\n\n</docgen-api>\n\n## Migrating from `@capacitor/dialog`\n\nThis plugin is largely API-compatible with the official [`@capacitor/dialog`](https://github.com/ionic-team/capacitor-plugins/tree/main/dialog) plugin, with a single difference: if the user cancels a prompt dialog, `prompt(...)` rejects with the `CANCELED` error code instead of resolving with a `cancelled` flag.\n\n| `@capacitor/dialog`                      | `@capawesome/capacitor-dialog`                                   |\n| ---------------------------------------- | ---------------------------------------------------------------- |\n| `alert({ title, message, buttonTitle })` | `alert({ title, message, buttonTitle })`                         |\n| `confirm({ ... }) → { value }`           | `confirm({ ... }) → { value }`                                   |\n| `prompt({ ... }) → { value, cancelled }` | `prompt({ ... }) → { value }`, rejects with `CANCELED` on cancel |\n\n## FAQ\n\n### How is this plugin different from other similar plugins?\n\nIt brings native alert, confirm, and prompt dialogs to Android, iOS, and the web through a single, fully typed API, using only official platform APIs so it stays safe for App Store and Google Play submissions. It supports both CocoaPods and Swift Package Manager on iOS and is actively maintained against the latest Capacitor and OS versions, with customizable button titles on Android and iOS. If you only need a quick native message, it is refreshingly simple to drop in; if you need consistent alert, confirm, and prompt behavior across every platform, it is built for exactly that.\n\n### How is this plugin different from the official `@capacitor/dialog` plugin?\n\nThis plugin is largely API-compatible with the official `@capacitor/dialog` plugin, with a single difference: if the user cancels a prompt dialog, `prompt(...)` rejects with the `CANCELED` error code instead of resolving with a `cancelled` flag. See the [migration table](#migrating-from-capacitordialog) above for the complete method mapping.\n\n### Can I customize the dialog buttons?\n\nYes, on Android and iOS you can customize the button titles using the `buttonTitle`, `okButtonTitle`, and `cancelButtonTitle` options. On the web, the button titles cannot be customized and are ignored, because the browser's built-in dialogs are used.\n\n### How do I know whether the user canceled a prompt?\n\nIf the user cancels the dialog, the `prompt(...)` method rejects with the `CANCELED` error code, so catch the error and compare `error.code` with `ErrorCode.Canceled`. Otherwise, the result contains the entered text in the `value` property. For confirmation dialogs, the `value` property of the `confirm(...)` result tells you whether the user confirmed the dialog.\n\n### Why is the dialog title not displayed on the web?\n\nOn the web, the title and button titles cannot be customized and are ignored, because the plugin uses the browser's built-in dialogs. Only the message is displayed. On Android and iOS, the title is fully supported.\n\n### Is this plugin safe to use for App Store submissions?\n\nYes, the plugin uses only official platform APIs to display the dialogs, so it is safe to use in apps submitted to the Apple App Store and Google Play Store.\n\n### Can I use this plugin with Ionic, React, Vue or Angular?\n\nYes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.\n\n## Related Plugins\n\n- [Action Sheet](https://capawesome.io/docs/sdks/capacitor/action-sheet/): Show native action sheets.\n- [Datetime Picker](https://capawesome.io/docs/sdks/capacitor/datetime-picker/): Let the user pick a date and time with a native picker.\n- [Toast](https://capawesome.io/docs/sdks/capacitor/toast/): Show native toast notifications.\n\n## Newsletter\n\nStay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/dialog/CHANGELOG.md).\n\n## License\n\nSee [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/dialog/LICENSE).\n","readmeFilename":"README.md"}