diff --git a/.gitignore b/.gitignore index 70ccbf7..ad2a563 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ # node files -dist node_modules # iOS files diff --git a/dist/docs.json b/dist/docs.json new file mode 100644 index 0000000..b9195a0 --- /dev/null +++ b/dist/docs.json @@ -0,0 +1,156 @@ +{ + "api": { + "name": "DocumentScannerPlugin", + "slug": "documentscannerplugin", + "docs": "", + "tags": [], + "methods": [ + { + "name": "scanDocument", + "signature": "(options?: ScanDocumentOptions | undefined) => Promise", + "parameters": [ + { + "name": "options", + "docs": "", + "type": "ScanDocumentOptions | undefined" + } + ], + "returns": "Promise", + "tags": [], + "docs": "Opens the camera, and starts the document scan", + "complexTypes": [ + "ScanDocumentResponse", + "ScanDocumentOptions" + ], + "slug": "scandocument" + } + ], + "properties": [] + }, + "interfaces": [ + { + "name": "ScanDocumentResponse", + "slug": "scandocumentresponse", + "docs": "", + "tags": [], + "methods": [], + "properties": [ + { + "name": "scannedImages", + "tags": [], + "docs": "This is an array with either file paths or base64 images for the\r\ndocument scan.", + "complexTypes": [], + "type": "string[] | undefined" + }, + { + "name": "status", + "tags": [], + "docs": "The status lets you know if the document scan completes successfully,\r\nor if the user cancels before completing the document scan.", + "complexTypes": [ + "ScanDocumentResponseStatus" + ], + "type": "ScanDocumentResponseStatus" + } + ] + }, + { + "name": "ScanDocumentOptions", + "slug": "scandocumentoptions", + "docs": "", + "tags": [], + "methods": [], + "properties": [ + { + "name": "croppedImageQuality", + "tags": [ + { + "text": ": 100", + "name": "default" + } + ], + "docs": "Android only: The quality of the cropped image from 0 - 100. 100 is the best quality.", + "complexTypes": [], + "type": "number | undefined" + }, + { + "name": "letUserAdjustCrop", + "tags": [ + { + "text": ": true", + "name": "default" + } + ], + "docs": "Android only: If true then once the user takes a photo, they get to preview the automatically\r\ndetected document corners. They can then move the corners in case there needs to\r\nbe an adjustment. If false then the user can't adjust the corners, and the user\r\ncan only take 1 photo (maxNumDocuments can't be more than 1 in this case).", + "complexTypes": [], + "type": "boolean | undefined" + }, + { + "name": "maxNumDocuments", + "tags": [ + { + "text": ": 24", + "name": "default" + } + ], + "docs": "Android only: The maximum number of photos an user can take (not counting photo retakes)", + "complexTypes": [], + "type": "number | undefined" + }, + { + "name": "responseType", + "tags": [ + { + "text": ": ResponseType.ImageFilePath", + "name": "default" + } + ], + "docs": "The response comes back in this format on success. It can be the document\r\nscan image file paths or base64 images.", + "complexTypes": [ + "ResponseType" + ], + "type": "ResponseType" + } + ] + } + ], + "enums": [ + { + "name": "ScanDocumentResponseStatus", + "slug": "scandocumentresponsestatus", + "members": [ + { + "name": "Success", + "value": "'success'", + "tags": [], + "docs": "The status comes back as success if the document scan completes\r\nsuccessfully." + }, + { + "name": "Cancel", + "value": "'cancel'", + "tags": [], + "docs": "The status comes back as cancel if the user closes out of the camera\r\nbefore completing the document scan." + } + ] + }, + { + "name": "ResponseType", + "slug": "responsetype", + "members": [ + { + "name": "Base64", + "value": "'base64'", + "tags": [], + "docs": "Use this response type if you want document scan returned as base64 images." + }, + { + "name": "ImageFilePath", + "value": "'imageFilePath'", + "tags": [], + "docs": "Use this response type if you want document scan returned as inmage file paths." + } + ] + } + ], + "typeAliases": [], + "pluginConfigs": [] +} \ No newline at end of file diff --git a/dist/esm/definitions.d.ts b/dist/esm/definitions.d.ts new file mode 100644 index 0000000..c057419 --- /dev/null +++ b/dist/esm/definitions.d.ts @@ -0,0 +1,66 @@ +export interface DocumentScannerPlugin { + /** + * Opens the camera, and starts the document scan + */ + scanDocument(options?: ScanDocumentOptions): Promise; +} +export interface ScanDocumentOptions { + /** + * Android only: The quality of the cropped image from 0 - 100. 100 is the best quality. + * @default: 100 + */ + croppedImageQuality?: number; + /** + * Android only: If true then once the user takes a photo, they get to preview the automatically + * detected document corners. They can then move the corners in case there needs to + * be an adjustment. If false then the user can't adjust the corners, and the user + * can only take 1 photo (maxNumDocuments can't be more than 1 in this case). + * @default: true + */ + letUserAdjustCrop?: boolean; + /** + * Android only: The maximum number of photos an user can take (not counting photo retakes) + * @default: 24 + */ + maxNumDocuments?: number; + /** + * The response comes back in this format on success. It can be the document + * scan image file paths or base64 images. + * @default: ResponseType.ImageFilePath + */ + responseType?: ResponseType; +} +export declare enum ResponseType { + /** + * Use this response type if you want document scan returned as base64 images. + */ + Base64 = "base64", + /** + * Use this response type if you want document scan returned as inmage file paths. + */ + ImageFilePath = "imageFilePath" +} +export interface ScanDocumentResponse { + /** + * This is an array with either file paths or base64 images for the + * document scan. + */ + scannedImages?: string[]; + /** + * The status lets you know if the document scan completes successfully, + * or if the user cancels before completing the document scan. + */ + status?: ScanDocumentResponseStatus; +} +export declare enum ScanDocumentResponseStatus { + /** + * The status comes back as success if the document scan completes + * successfully. + */ + Success = "success", + /** + * The status comes back as cancel if the user closes out of the camera + * before completing the document scan. + */ + Cancel = "cancel" +} diff --git a/dist/esm/definitions.js b/dist/esm/definitions.js new file mode 100644 index 0000000..70b6f9e --- /dev/null +++ b/dist/esm/definitions.js @@ -0,0 +1,25 @@ +export var ResponseType; +(function (ResponseType) { + /** + * Use this response type if you want document scan returned as base64 images. + */ + ResponseType["Base64"] = "base64"; + /** + * Use this response type if you want document scan returned as inmage file paths. + */ + ResponseType["ImageFilePath"] = "imageFilePath"; +})(ResponseType || (ResponseType = {})); +export var ScanDocumentResponseStatus; +(function (ScanDocumentResponseStatus) { + /** + * The status comes back as success if the document scan completes + * successfully. + */ + ScanDocumentResponseStatus["Success"] = "success"; + /** + * The status comes back as cancel if the user closes out of the camera + * before completing the document scan. + */ + ScanDocumentResponseStatus["Cancel"] = "cancel"; +})(ScanDocumentResponseStatus || (ScanDocumentResponseStatus = {})); +//# sourceMappingURL=definitions.js.map \ No newline at end of file diff --git a/dist/esm/definitions.js.map b/dist/esm/definitions.js.map new file mode 100644 index 0000000..e6866ad --- /dev/null +++ b/dist/esm/definitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAN,IAAY,YAUX;AAVD,WAAY,YAAY;IACtB;;OAEG;IACH,iCAAiB,CAAA;IAEjB;;OAEG;IACH,+CAA+B,CAAA;AACjC,CAAC,EAVW,YAAY,KAAZ,YAAY,QAUvB;AAgBD,MAAM,CAAN,IAAY,0BAYX;AAZD,WAAY,0BAA0B;IACpC;;;OAGG;IACH,iDAAmB,CAAA;IAEnB;;;OAGG;IACH,+CAAiB,CAAA;AACnB,CAAC,EAZW,0BAA0B,KAA1B,0BAA0B,QAYrC","sourcesContent":["export interface DocumentScannerPlugin {\r\n /**\r\n * Opens the camera, and starts the document scan\r\n */\r\n scanDocument(options?: ScanDocumentOptions): Promise\r\n}\r\n\r\nexport interface ScanDocumentOptions {\r\n /**\r\n * Android only: The quality of the cropped image from 0 - 100. 100 is the best quality.\r\n * @default: 100\r\n */\r\n croppedImageQuality?: number\r\n\r\n /**\r\n * Android only: If true then once the user takes a photo, they get to preview the automatically\r\n * detected document corners. They can then move the corners in case there needs to\r\n * be an adjustment. If false then the user can't adjust the corners, and the user\r\n * can only take 1 photo (maxNumDocuments can't be more than 1 in this case).\r\n * @default: true\r\n */\r\n letUserAdjustCrop?: boolean\r\n\r\n /**\r\n * Android only: The maximum number of photos an user can take (not counting photo retakes)\r\n * @default: 24\r\n */\r\n maxNumDocuments?: number\r\n\r\n /**\r\n * The response comes back in this format on success. It can be the document\r\n * scan image file paths or base64 images.\r\n * @default: ResponseType.ImageFilePath\r\n */\r\n responseType?: ResponseType\r\n}\r\n\r\nexport enum ResponseType {\r\n /**\r\n * Use this response type if you want document scan returned as base64 images.\r\n */\r\n Base64 = 'base64',\r\n\r\n /**\r\n * Use this response type if you want document scan returned as inmage file paths.\r\n */\r\n ImageFilePath = 'imageFilePath'\r\n}\r\n\r\nexport interface ScanDocumentResponse {\r\n /**\r\n * This is an array with either file paths or base64 images for the\r\n * document scan.\r\n */\r\n scannedImages?: string[]\r\n\r\n /**\r\n * The status lets you know if the document scan completes successfully,\r\n * or if the user cancels before completing the document scan.\r\n */\r\n status?: ScanDocumentResponseStatus\r\n}\r\n\r\nexport enum ScanDocumentResponseStatus {\r\n /**\r\n * The status comes back as success if the document scan completes\r\n * successfully.\r\n */\r\n Success = 'success',\r\n\r\n /**\r\n * The status comes back as cancel if the user closes out of the camera\r\n * before completing the document scan.\r\n */\r\n Cancel = 'cancel'\r\n}"]} \ No newline at end of file diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts new file mode 100644 index 0000000..800661a --- /dev/null +++ b/dist/esm/index.d.ts @@ -0,0 +1,4 @@ +import type { DocumentScannerPlugin } from './definitions'; +declare const DocumentScanner: DocumentScannerPlugin; +export * from './definitions'; +export { DocumentScanner }; diff --git a/dist/esm/index.js b/dist/esm/index.js new file mode 100644 index 0000000..992b367 --- /dev/null +++ b/dist/esm/index.js @@ -0,0 +1,7 @@ +import { registerPlugin } from '@capacitor/core'; +const DocumentScanner = registerPlugin('DocumentScanner', { + web: () => import('./web').then(m => new m.DocumentScannerWeb()), +}); +export * from './definitions'; +export { DocumentScanner }; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/index.js.map b/dist/esm/index.js.map new file mode 100644 index 0000000..4d6657c --- /dev/null +++ b/dist/esm/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,eAAe,GAAG,cAAc,CACpC,iBAAiB,EACjB;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACjE,CACF,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\r\n\r\nimport type { DocumentScannerPlugin } from './definitions';\r\n\r\nconst DocumentScanner = registerPlugin(\r\n 'DocumentScanner',\r\n {\r\n web: () => import('./web').then(m => new m.DocumentScannerWeb()),\r\n },\r\n);\r\n\r\nexport * from './definitions';\r\nexport { DocumentScanner };\r\n"]} \ No newline at end of file diff --git a/dist/esm/web.d.ts b/dist/esm/web.d.ts new file mode 100644 index 0000000..4d2a49b --- /dev/null +++ b/dist/esm/web.d.ts @@ -0,0 +1,5 @@ +import { WebPlugin } from '@capacitor/core'; +import type { DocumentScannerPlugin, ScanDocumentOptions, ScanDocumentResponse } from './definitions'; +export declare class DocumentScannerWeb extends WebPlugin implements DocumentScannerPlugin { + scanDocument(options?: ScanDocumentOptions): Promise; +} diff --git a/dist/esm/web.js b/dist/esm/web.js new file mode 100644 index 0000000..ba79de6 --- /dev/null +++ b/dist/esm/web.js @@ -0,0 +1,8 @@ +import { WebPlugin } from '@capacitor/core'; +export class DocumentScannerWeb extends WebPlugin { + async scanDocument(options) { + console.log(options); + throw this.unimplemented('Not implemented on web.'); + } +} +//# sourceMappingURL=web.js.map \ No newline at end of file diff --git a/dist/esm/web.js.map b/dist/esm/web.js.map new file mode 100644 index 0000000..d97168f --- /dev/null +++ b/dist/esm/web.js.map @@ -0,0 +1 @@ +{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,MAAM,OAAO,kBACX,SAAQ,SAAS;IAEjB,KAAK,CAAC,YAAY,CAAC,OAA6B;QAC9C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QACpB,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\r\n\r\nimport type { \r\n DocumentScannerPlugin, \r\n ScanDocumentOptions, \r\n ScanDocumentResponse \r\n} from './definitions';\r\n\r\nexport class DocumentScannerWeb\r\n extends WebPlugin\r\n implements DocumentScannerPlugin {\r\n async scanDocument(options?: ScanDocumentOptions): Promise {\r\n console.log(options)\r\n throw this.unimplemented('Not implemented on web.');\r\n }\r\n}"]} \ No newline at end of file diff --git a/dist/plugin.cjs.js b/dist/plugin.cjs.js new file mode 100644 index 0000000..8e87add --- /dev/null +++ b/dist/plugin.cjs.js @@ -0,0 +1,49 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var core = require('@capacitor/core'); + +exports.ResponseType = void 0; +(function (ResponseType) { + /** + * Use this response type if you want document scan returned as base64 images. + */ + ResponseType["Base64"] = "base64"; + /** + * Use this response type if you want document scan returned as inmage file paths. + */ + ResponseType["ImageFilePath"] = "imageFilePath"; +})(exports.ResponseType || (exports.ResponseType = {})); +exports.ScanDocumentResponseStatus = void 0; +(function (ScanDocumentResponseStatus) { + /** + * The status comes back as success if the document scan completes + * successfully. + */ + ScanDocumentResponseStatus["Success"] = "success"; + /** + * The status comes back as cancel if the user closes out of the camera + * before completing the document scan. + */ + ScanDocumentResponseStatus["Cancel"] = "cancel"; +})(exports.ScanDocumentResponseStatus || (exports.ScanDocumentResponseStatus = {})); + +const DocumentScanner = core.registerPlugin('DocumentScanner', { + web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DocumentScannerWeb()), +}); + +class DocumentScannerWeb extends core.WebPlugin { + async scanDocument(options) { + console.log(options); + throw this.unimplemented('Not implemented on web.'); + } +} + +var web = /*#__PURE__*/Object.freeze({ + __proto__: null, + DocumentScannerWeb: DocumentScannerWeb +}); + +exports.DocumentScanner = DocumentScanner; +//# sourceMappingURL=plugin.cjs.js.map diff --git a/dist/plugin.cjs.js.map b/dist/plugin.cjs.js.map new file mode 100644 index 0000000..30f3bf8 --- /dev/null +++ b/dist/plugin.cjs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var ResponseType;\r\n(function (ResponseType) {\r\n /**\r\n * Use this response type if you want document scan returned as base64 images.\r\n */\r\n ResponseType[\"Base64\"] = \"base64\";\r\n /**\r\n * Use this response type if you want document scan returned as inmage file paths.\r\n */\r\n ResponseType[\"ImageFilePath\"] = \"imageFilePath\";\r\n})(ResponseType || (ResponseType = {}));\r\nexport var ScanDocumentResponseStatus;\r\n(function (ScanDocumentResponseStatus) {\r\n /**\r\n * The status comes back as success if the document scan completes\r\n * successfully.\r\n */\r\n ScanDocumentResponseStatus[\"Success\"] = \"success\";\r\n /**\r\n * The status comes back as cancel if the user closes out of the camera\r\n * before completing the document scan.\r\n */\r\n ScanDocumentResponseStatus[\"Cancel\"] = \"cancel\";\r\n})(ScanDocumentResponseStatus || (ScanDocumentResponseStatus = {}));\r\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\r\nconst DocumentScanner = registerPlugin('DocumentScanner', {\r\n web: () => import('./web').then(m => new m.DocumentScannerWeb()),\r\n});\r\nexport * from './definitions';\r\nexport { DocumentScanner };\r\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\r\nexport class DocumentScannerWeb extends WebPlugin {\r\n async scanDocument(options) {\r\n console.log(options);\r\n throw this.unimplemented('Not implemented on web.');\r\n }\r\n}\r\n//# sourceMappingURL=web.js.map"],"names":["ResponseType","ScanDocumentResponseStatus","registerPlugin","WebPlugin"],"mappings":";;;;;;AAAWA,8BAAa;AACxB,CAAC,UAAU,YAAY,EAAE;AACzB;AACA;AACA;AACA,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AACtC;AACA;AACA;AACA,IAAI,YAAY,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC;AACpD,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAC7BC,4CAA2B;AACtC,CAAC,UAAU,0BAA0B,EAAE;AACvC;AACA;AACA;AACA;AACA,IAAI,0BAA0B,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AACtD;AACA;AACA;AACA;AACA,IAAI,0BAA0B,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AACpD,CAAC,EAAEA,kCAA0B,KAAKA,kCAA0B,GAAG,EAAE,CAAC,CAAC;;ACtB9D,MAAC,eAAe,GAAGC,mBAAc,CAAC,iBAAiB,EAAE;AAC1D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACpE,CAAC;;ACFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;AAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL;;;;;;;;;"} \ No newline at end of file diff --git a/dist/plugin.js b/dist/plugin.js new file mode 100644 index 0000000..6cca6cc --- /dev/null +++ b/dist/plugin.js @@ -0,0 +1,52 @@ +var capacitorDocumentScanner = (function (exports, core) { + 'use strict'; + + exports.ResponseType = void 0; + (function (ResponseType) { + /** + * Use this response type if you want document scan returned as base64 images. + */ + ResponseType["Base64"] = "base64"; + /** + * Use this response type if you want document scan returned as inmage file paths. + */ + ResponseType["ImageFilePath"] = "imageFilePath"; + })(exports.ResponseType || (exports.ResponseType = {})); + exports.ScanDocumentResponseStatus = void 0; + (function (ScanDocumentResponseStatus) { + /** + * The status comes back as success if the document scan completes + * successfully. + */ + ScanDocumentResponseStatus["Success"] = "success"; + /** + * The status comes back as cancel if the user closes out of the camera + * before completing the document scan. + */ + ScanDocumentResponseStatus["Cancel"] = "cancel"; + })(exports.ScanDocumentResponseStatus || (exports.ScanDocumentResponseStatus = {})); + + const DocumentScanner = core.registerPlugin('DocumentScanner', { + web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DocumentScannerWeb()), + }); + + class DocumentScannerWeb extends core.WebPlugin { + async scanDocument(options) { + console.log(options); + throw this.unimplemented('Not implemented on web.'); + } + } + + var web = /*#__PURE__*/Object.freeze({ + __proto__: null, + DocumentScannerWeb: DocumentScannerWeb + }); + + exports.DocumentScanner = DocumentScanner; + + Object.defineProperty(exports, '__esModule', { value: true }); + + return exports; + +})({}, capacitorExports); +//# sourceMappingURL=plugin.js.map diff --git a/dist/plugin.js.map b/dist/plugin.js.map new file mode 100644 index 0000000..435402b --- /dev/null +++ b/dist/plugin.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var ResponseType;\r\n(function (ResponseType) {\r\n /**\r\n * Use this response type if you want document scan returned as base64 images.\r\n */\r\n ResponseType[\"Base64\"] = \"base64\";\r\n /**\r\n * Use this response type if you want document scan returned as inmage file paths.\r\n */\r\n ResponseType[\"ImageFilePath\"] = \"imageFilePath\";\r\n})(ResponseType || (ResponseType = {}));\r\nexport var ScanDocumentResponseStatus;\r\n(function (ScanDocumentResponseStatus) {\r\n /**\r\n * The status comes back as success if the document scan completes\r\n * successfully.\r\n */\r\n ScanDocumentResponseStatus[\"Success\"] = \"success\";\r\n /**\r\n * The status comes back as cancel if the user closes out of the camera\r\n * before completing the document scan.\r\n */\r\n ScanDocumentResponseStatus[\"Cancel\"] = \"cancel\";\r\n})(ScanDocumentResponseStatus || (ScanDocumentResponseStatus = {}));\r\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\r\nconst DocumentScanner = registerPlugin('DocumentScanner', {\r\n web: () => import('./web').then(m => new m.DocumentScannerWeb()),\r\n});\r\nexport * from './definitions';\r\nexport { DocumentScanner };\r\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\r\nexport class DocumentScannerWeb extends WebPlugin {\r\n async scanDocument(options) {\r\n console.log(options);\r\n throw this.unimplemented('Not implemented on web.');\r\n }\r\n}\r\n//# sourceMappingURL=web.js.map"],"names":["ResponseType","ScanDocumentResponseStatus","registerPlugin","WebPlugin"],"mappings":";;;AAAWA,kCAAa;IACxB,CAAC,UAAU,YAAY,EAAE;IACzB;IACA;IACA;IACA,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IACtC;IACA;IACA;IACA,IAAI,YAAY,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC;IACpD,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAC7BC,gDAA2B;IACtC,CAAC,UAAU,0BAA0B,EAAE;IACvC;IACA;IACA;IACA;IACA,IAAI,0BAA0B,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACtD;IACA;IACA;IACA;IACA,IAAI,0BAA0B,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IACpD,CAAC,EAAEA,kCAA0B,KAAKA,kCAA0B,GAAG,EAAE,CAAC,CAAC;;ACtB9D,UAAC,eAAe,GAAGC,mBAAc,CAAC,iBAAiB,EAAE;IAC1D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACpE,CAAC;;ICFM,MAAM,kBAAkB,SAASC,cAAS,CAAC;IAClD,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;IAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 19d5c75..728f656 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,10 @@ "version": "2.0.0", "license": "MIT", "devDependencies": { - "@capacitor/android": "^5.0.0", - "@capacitor/core": "^5.0.0", + "@capacitor/android": "^7.0.0", + "@capacitor/core": "^7.0.0", "@capacitor/docgen": "^0.0.18", - "@capacitor/ios": "^5.0.0", + "@capacitor/ios": "^7.0.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -25,7 +25,7 @@ "typescript": "~4.1.5" }, "peerDependencies": { - "@capacitor/core": "^5.0.0" + "@capacitor/core": "^7.0.0" } }, "node_modules/@babel/code-frame": { @@ -132,18 +132,18 @@ } }, "node_modules/@capacitor/android": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-5.0.4.tgz", - "integrity": "sha512-WtXmjRQ0bCtFkwBID/jVEPbqnh0uR9wTSgkW7QNzogDuA0iyJJI2nxDfT9knUmg6mne/CnfTXg093zzdc13C0w==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-7.0.1.tgz", + "integrity": "sha512-jukJJHfkcyEBOkFBJRD3EwXMIIQo7lSv0ExPWgsIliPdGXLAj6ElvK2JaYEzec3vKyLc4RTNFVv0PMEU0vnImg==", "dev": true, "peerDependencies": { - "@capacitor/core": "^5.0.0" + "@capacitor/core": "^7.0.0" } }, "node_modules/@capacitor/core": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-5.0.4.tgz", - "integrity": "sha512-BFvziz9jM87pLHW2sXPNIzwrdmI5mAP0tBsBHgXoCO2+wVdpvIMYCpcst5BuTULaMz5JBFZZ6g6nqwgfs+SMCA==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-7.0.1.tgz", + "integrity": "sha512-1Ob9bvA/p8g8aNwK6VesxEekGXowLVf6APjkW4LRnr05H+7z/bke+Q5pn9zqh/GgTbIxAQ/rwZrAZvvxkdm1UA==", "dev": true, "dependencies": { "tslib": "^2.1.0" @@ -182,12 +182,12 @@ } }, "node_modules/@capacitor/ios": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-5.0.4.tgz", - "integrity": "sha512-JVyggBTbHR1OWqxTRysgGKhZHDuM0AQwCIbylvEpza5X0zmaltbQxVC83abcwOKsgNJnrcuv+HUgV+LXg8Dk4Q==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-7.0.1.tgz", + "integrity": "sha512-RN6S1C1k7ue57DFmJM4EizzsYBrahTTiMhcnlHspFLaojgHbFWZbYq1VriuRKysPU1ka/P+klsdtRFsB5K9jyw==", "dev": true, "peerDependencies": { - "@capacitor/core": "^5.0.0" + "@capacitor/core": "^7.0.0" } }, "node_modules/@eslint/eslintrc": { @@ -3340,16 +3340,16 @@ } }, "@capacitor/android": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-5.0.4.tgz", - "integrity": "sha512-WtXmjRQ0bCtFkwBID/jVEPbqnh0uR9wTSgkW7QNzogDuA0iyJJI2nxDfT9knUmg6mne/CnfTXg093zzdc13C0w==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-7.0.1.tgz", + "integrity": "sha512-jukJJHfkcyEBOkFBJRD3EwXMIIQo7lSv0ExPWgsIliPdGXLAj6ElvK2JaYEzec3vKyLc4RTNFVv0PMEU0vnImg==", "dev": true, "requires": {} }, "@capacitor/core": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-5.0.4.tgz", - "integrity": "sha512-BFvziz9jM87pLHW2sXPNIzwrdmI5mAP0tBsBHgXoCO2+wVdpvIMYCpcst5BuTULaMz5JBFZZ6g6nqwgfs+SMCA==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-7.0.1.tgz", + "integrity": "sha512-1Ob9bvA/p8g8aNwK6VesxEekGXowLVf6APjkW4LRnr05H+7z/bke+Q5pn9zqh/GgTbIxAQ/rwZrAZvvxkdm1UA==", "dev": true, "requires": { "tslib": "^2.1.0" @@ -3377,9 +3377,9 @@ } }, "@capacitor/ios": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-5.0.4.tgz", - "integrity": "sha512-JVyggBTbHR1OWqxTRysgGKhZHDuM0AQwCIbylvEpza5X0zmaltbQxVC83abcwOKsgNJnrcuv+HUgV+LXg8Dk4Q==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-7.0.1.tgz", + "integrity": "sha512-RN6S1C1k7ue57DFmJM4EizzsYBrahTTiMhcnlHspFLaojgHbFWZbYq1VriuRKysPU1ka/P+klsdtRFsB5K9jyw==", "dev": true, "requires": {} }, diff --git a/package.json b/package.json index 250c3ea..cdf8602 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,7 @@ ], "author": "David Marcus", "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/WebsiteBeaver/capacitor-document-scanner.git" - }, + "repository": "https://github.com/afilp/capacitor-document-scanner.git", "bugs": { "url": "https://github.com/WebsiteBeaver/capacitor-document-scanner/issues" }, @@ -44,10 +41,10 @@ "prepublishOnly": "npm run build" }, "devDependencies": { - "@capacitor/android": "^5.0.0", - "@capacitor/core": "^5.0.0", + "@capacitor/android": "^7.0.0", + "@capacitor/core": "^7.0.0", "@capacitor/docgen": "^0.0.18", - "@capacitor/ios": "^5.0.0", + "@capacitor/ios": "^7.0.0", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -60,7 +57,7 @@ "typescript": "~4.1.5" }, "peerDependencies": { - "@capacitor/core": "^5.0.0" + "@capacitor/core": "^7.0.0" }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config",