{"_id":"@bdxi/beldex-capacitor-file-picker","_rev":"4-d021a7b1d94c96587e3c94468c818b63","name":"@bdxi/beldex-capacitor-file-picker","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"name":"@bdxi/beldex-capacitor-file-picker","version":"1.0.0","description":"This plugin presents the native UI for picking a file.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Alexsanchez","email":"alexsanchez@beldex.io"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.2"},"devDependencies":{"@capacitor/android":"^3.0.2","@capacitor/ios":"^3.0.2","rimraf":"^3.0.0","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","beldex","bdxi","bdx"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"bugs":{"url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"publishConfig":{"access":"public"},"gitHead":"02018aa19496c1748fe3a399e32d54f2c750edbb","homepage":"https://github.com/Beldex-Coin/beldex-utils/tree/master#readme","_id":"@bdxi/beldex-capacitor-file-picker@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-xHh8ITR72kyEBFSSvIRb4lxb6E5gYNbO038jy6d/wC1Zhzvq/PTMUPKku2qgLNfsop6IFdooVfic9bdRl+mntA==","shasum":"136c68ca7145f7fa4415239f548a21ab1defb31f","tarball":"https://registry.npmjs.org/@bdxi/beldex-capacitor-file-picker/-/beldex-capacitor-file-picker-1.0.0.tgz","fileCount":193,"unpackedSize":873737,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpzXFRLqCKdCvjCVGu755lb/0dKokXJ9XLpM9FlyWOXAIhAKOeI/Tpt9ZxwaZxbgbo6lBkdXYS+KRUVXtv1cIM8oFi"}]},"_npmUser":{"name":"alexsanchez","email":"alexsanchez@beldex.io"},"directories":{},"maintainers":[{"name":"alexsanchez","email":"alexsanchez@beldex.io"},{"name":"codeman-crypto","email":"mohammed.niyas@beldex.io"},{"name":"lifwon","email":"mohammed.nowfil@vee4.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beldex-capacitor-file-picker_1.0.0_1687183342456_0.10184159152082461"},"_hasShrinkwrap":false},"1.1.0":{"name":"@bdxi/beldex-capacitor-file-picker","version":"1.1.0","description":"This plugin presents the native UI for picking a file.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Alexsanchez","email":"alexsanchez@beldex.io"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.2"},"devDependencies":{"@capacitor/android":"^3.0.2","@capacitor/ios":"^3.0.2","rimraf":"^3.0.0","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","beldex","bdxi","bdx"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"bugs":{"url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"publishConfig":{"access":"public"},"gitHead":"02018aa19496c1748fe3a399e32d54f2c750edbb","homepage":"https://github.com/Beldex-Coin/beldex-utils/tree/master#readme","_id":"@bdxi/beldex-capacitor-file-picker@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-dGtoLOlZPpGW9Os4QbVIJ1ya7gQFIiL0yoIyn/XWdZVTcuIwt6UgHE5HdF2AATWbrEoDarhrxXhPBmnThwBpuw==","shasum":"9329211a0aa275f3a9ec168af8919b834679189a","tarball":"https://registry.npmjs.org/@bdxi/beldex-capacitor-file-picker/-/beldex-capacitor-file-picker-1.1.0.tgz","fileCount":193,"unpackedSize":873736,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4PeCkE4XXXz/dZlcBP+R9kfMIJgM09kwVROyi/+sKPQIgMo7JN21q09ycBJqhKXY0dEp11hRO+bN0Kg85Xksl0tg="}]},"_npmUser":{"name":"alexsanchez","email":"alexsanchez@beldex.io"},"directories":{},"maintainers":[{"name":"alexsanchez","email":"alexsanchez@beldex.io"},{"name":"codeman-crypto","email":"mohammed.niyas@beldex.io"},{"name":"lifwon","email":"mohammed.nowfil@vee4.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beldex-capacitor-file-picker_1.1.0_1687183417170_0.9891417726998775"},"_hasShrinkwrap":false},"1.2.0":{"name":"@bdxi/beldex-capacitor-file-picker","version":"1.2.0","description":"This plugin presents the native UI for picking a file.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Alexsanchez","email":"alexsanchez@beldex.io"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.2"},"devDependencies":{"@capacitor/android":"^3.0.2","@capacitor/ios":"^3.0.2","rimraf":"^3.0.0","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","beldex","bdxi","bdx"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"bugs":{"url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"publishConfig":{"access":"public"},"gitHead":"02018aa19496c1748fe3a399e32d54f2c750edbb","homepage":"https://github.com/Beldex-Coin/beldex-utils/tree/master#readme","_id":"@bdxi/beldex-capacitor-file-picker@1.2.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-EpMvsEj1of3Asw7MgPalmyJ2Lvr4KNjup8XGY20cs6eNjUr54LqtrHFk94xQYSfrOLyno2Fm+USN+PjKjEi5zQ==","shasum":"7f4862b8dc64463fbbfa8b1131e12ff324580821","tarball":"https://registry.npmjs.org/@bdxi/beldex-capacitor-file-picker/-/beldex-capacitor-file-picker-1.2.0.tgz","fileCount":193,"unpackedSize":873737,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBsRj/FKeO3qG91Bj7W+PLenQNGpFjq1IV7xEawQ6YXLAiEA4sUYqHDbPy2IgoV1wv4XlCEq6TEF2Jaf/DdE9pfKDHg="}]},"_npmUser":{"name":"alexsanchez","email":"alexsanchez@beldex.io"},"directories":{},"maintainers":[{"name":"alexsanchez","email":"alexsanchez@beldex.io"},{"name":"codeman-crypto","email":"mohammed.niyas@beldex.io"},{"name":"lifwon","email":"mohammed.nowfil@vee4.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beldex-capacitor-file-picker_1.2.0_1687238758464_0.019430566629512924"},"_hasShrinkwrap":false},"1.3.0":{"name":"@bdxi/beldex-capacitor-file-picker","version":"1.3.0","description":"This plugin presents the native UI for picking a file.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Alexsanchez","email":"alexsanchez@beldex.io"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.2"},"devDependencies":{"@capacitor/android":"^3.0.2","@capacitor/ios":"^3.0.2","rimraf":"^3.0.0","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","beldex","bdxi","bdx"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"bugs":{"url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"publishConfig":{"access":"public"},"gitHead":"02018aa19496c1748fe3a399e32d54f2c750edbb","homepage":"https://github.com/Beldex-Coin/beldex-utils/tree/master#readme","_id":"@bdxi/beldex-capacitor-file-picker@1.3.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-yvH1pslhZ3vD2NqGvK3AsoUsZi6vHl3BEafePZjRcCR6NKMRhrPF22JGzvR3r+MU/PRjm66cBfM7UqsXkHkKPQ==","shasum":"ecac5128f996d715a97dc59db080367cc709406e","tarball":"https://registry.npmjs.org/@bdxi/beldex-capacitor-file-picker/-/beldex-capacitor-file-picker-1.3.0.tgz","fileCount":199,"unpackedSize":880189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqWMnkfFn7qU2E/ezpAT7kYP6FvL82+L8vZLmupdFkiQIhAIRMcrcL3kxoSg4aiVzXHnJXenoBTuWiBO/zEzhvXiAV"}]},"_npmUser":{"name":"alexsanchez","email":"alexsanchez@beldex.io"},"directories":{},"maintainers":[{"name":"alexsanchez","email":"alexsanchez@beldex.io"},{"name":"codeman-crypto","email":"mohammed.niyas@beldex.io"},{"name":"lifwon","email":"mohammed.nowfil@vee4.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beldex-capacitor-file-picker_1.3.0_1687527260182_0.5462334896032013"},"_hasShrinkwrap":false},"1.4.0":{"name":"@bdxi/beldex-capacitor-file-picker","version":"1.4.0","description":"This plugin presents the native UI for picking a file.","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Alexsanchez","email":"alexsanchez@beldex.io"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.2"},"devDependencies":{"@capacitor/android":"^3.0.2","@capacitor/ios":"^3.0.2","rimraf":"^3.0.0","typescript":"^3.2.4"},"keywords":["capacitor","plugin","native","beldex","bdxi","bdx"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"bugs":{"url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"publishConfig":{"access":"public"},"gitHead":"a5ab737d426a5d7140351e00cf93d31cbf7151d4","homepage":"https://github.com/Beldex-Coin/beldex-utils/tree/master#readme","_id":"@bdxi/beldex-capacitor-file-picker@1.4.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-zH7/YSDHjPYOnfyPMJwGjb5wJcd2hkvfrJSmZT3NgbhTgmhRJbU4fJsdklqGvCYGM4pcDQM57mXz2vjNCBEbdw==","shasum":"094778f2d27f06e884a8755d87e90d9d08047ee2","tarball":"https://registry.npmjs.org/@bdxi/beldex-capacitor-file-picker/-/beldex-capacitor-file-picker-1.4.0.tgz","fileCount":199,"unpackedSize":880189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8xAtON2uJorpP7Fn0Jw+tarFt2Ml9+0TfF6c08VyUZQIhAL/GuoVl1wYQNWevDFrgw9NJ3Mxd1vPlbk78kmD78Hil"}]},"_npmUser":{"name":"alexsanchez","email":"alexsanchez@beldex.io"},"directories":{},"maintainers":[{"name":"alexsanchez","email":"alexsanchez@beldex.io"},{"name":"codeman-crypto","email":"mohammed.niyas@beldex.io"},{"name":"lifwon","email":"mohammed.nowfil@vee4.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beldex-capacitor-file-picker_1.4.0_1687603910373_0.9270022458282103"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-19T14:02:22.389Z","1.0.0":"2023-06-19T14:02:22.731Z","modified":"2023-06-24T10:51:50.814Z","1.1.0":"2023-06-19T14:03:37.421Z","1.2.0":"2023-06-20T05:25:58.654Z","1.3.0":"2023-06-23T13:34:20.380Z","1.4.0":"2023-06-24T10:51:50.586Z"},"maintainers":[{"name":"alexsanchez","email":"alexsanchez@beldex.io"},{"name":"codeman-crypto","email":"mohammed.niyas@beldex.io"},{"name":"lifwon","email":"mohammed.nowfil@vee4.com"}],"description":"This plugin presents the native UI for picking a file.","homepage":"https://github.com/Beldex-Coin/beldex-utils/tree/master#readme","keywords":["capacitor","plugin","native","beldex","bdxi","bdx"],"repository":{"type":"git","url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"author":{"name":"Alexsanchez","email":"alexsanchez@beldex.io"},"bugs":{"url":"git+https://github.com/Beldex-Coin/beldex-utils.git#master"},"license":"MIT","readme":"# Capacitor File Picker (forked from https://github.com/epicshaggy/capacitor-file-picker)\n\n## Important\n\nThis fork exists as a stopgap to address an issue with the plugin not working correctly with Beldex specified versions of various Java packages. A PR will be submitted to the original maintainer, and this package will be removed if/when the original author accepts the PR. We do not suggest relying on this package at any stage.\n\nThe original README content is preserved below\n\n## Description\n\nPresents the device's native file picking ui and returns the selected file's uri.\n\n## Installation\n\n### Capacitor 2\n\nNot supported\n\n### Capacitor 3\n\n- `npm i @bdxi/beldex-capacitor-file-picker`\n\n## Usage\n\n```ts\nimport { Plugins } from \"@capacitor/core\";\n\nconst { FilePicker } = Plugins;\n\nFilePicker.showFilePicker({\n  fileTypes: [\"image/*\", \"application/pdf\"],\n}).then(\n  (fileResult: FilePickerResult) => {\n    const fileUri = fileResult.uri;\n    const fileName = fileResult.name;\n    const fileMimeType = fileResult.mimeType;\n    const fileExtension = fileResult.extension;\n  },\n  (error) => {\n    console.log(error);\n  }\n);\n```\n\n## Methods\n\n| Method                                         | Default | Type                        | Description                                                                       |\n| ---------------------------------------------- | ------- | --------------------------- | --------------------------------------------------------------------------------- |\n| showFilePicker(options: {fileTypes: string[]}) |         | `Promise<FilePickerResult>` | Presents the device's native file picking ui and returns the selected file's uri. |\n\n## Interfaces\n\nFilePickerResult\n\n| Properties | Default | Type     | Description                               |\n| ---------- | ------- | -------- | ----------------------------------------- |\n| uri        |         | `string` | Uri string pointing to the selected file. |\n| name       |         | `string` | The name of the selected file.            |\n| mimeType   |         | `string` | The MIME type of the selected file.       |\n| extension  |         | `string` | The extension of the selected file.       |\n\n## Android\n\nRegister the plugin by adding it to your MainActivity's onCreate:\n\n```java\nimport com.epicshaggy.filepicker.FilePicker;\n\npublic class MainActivity extends BridgeActivity {\n  @Override\n  public void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n\n    // Initializes the Bridge\n    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{\n      // Additional plugins you've installed go here\n      // Ex: add(TotallyAwesomePlugin.class);\n      add(FilePicker.class);\n    }});\n  }\n}\n```\n\n## Notes\n\nThe file picker only accpets:\n\n- application/pdf\n- image/\\*\n\nThis is because it was developed to meet the need to meet a specific need, but feel free to contribute to the plugin's development. :)\n","readmeFilename":"readme.md"}