diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bcd356..17ba21b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [1.2.0](https://github.com/EinfachHans/capacitor-email-composer/compare/V1.1.3...V1.2.0) (2022-08-23) + + +### Features + +* support attachments ([68cfb8c](https://github.com/EinfachHans/capacitor-email-composer/commit/68cfb8c2788da69a86733e6a0cd376ad5300e855)) +* Update to Capacitor V4 ([c865c15](https://github.com/EinfachHans/capacitor-email-composer/commit/c865c155a1b35071d17e2ed0f73898bfad873588)) + ### [1.1.3](https://github.com/EinfachHans/capacitor-email-composer/compare/V1.1.2...V1.1.3) (2021-11-30) diff --git a/README.md b/README.md index 87e4010..7ae68e4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,11 @@ Please consider donating if you're using this plugin in an app that makes you mo **Table of Content** - [Install](#install) +- [Attachments](#attachments) + - [Device Storage](#device-storage) + - [Native resources](#native-resources) + - [Assets](#assets) + - [Base64](#base64) - [API](#api) - [hasAccount()](#hasaccount) - [open(...)](#open) @@ -139,14 +144,24 @@ Open the E-Mail Composer #### OpenOptions -| Prop | Type | Description | -| ------------- | --------------------- | ---------------------------------------------------------- | -| **`to`** | string[] | email addresses for TO field | -| **`cc`** | string[] | email addresses for CC field | -| **`bcc`** | string[] | email addresses for BCC field | -| **`subject`** | string | subject of the email | -| **`body`** | string | email body | -| **`isHtml`** | boolean | indicats if the body is HTML or plain text (primarily iOS) | +| Prop | Type | Description | +| ----------------- | ------------------------- | ------------------------------------------------------------------------ | +| **`to`** | string[] | email addresses for TO field | +| **`cc`** | string[] | email addresses for CC field | +| **`bcc`** | string[] | email addresses for BCC field | +| **`subject`** | string | subject of the email | +| **`body`** | string | email body | +| **`isHtml`** | boolean | indicates if the body is HTML or plain text (primarily iOS) | +| **`attachments`** | Attachment[] | attachments that are added to the mail file paths or base64 data streams | + + +#### Attachment + +| Prop | Type | Description | +| ---------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| **`path`** | string | The path of the attachment. See the docs for explained informations. | +| **`type`** | 'absolute' \| 'resource' \| 'asset' \| 'base64' | The type of the attachment. See the docs for explained informations. | +| **`name`** | string | The name of the attachment. See the docs for explained informations. Required for base64 attachements. | diff --git a/package-lock.json b/package-lock.json index 6b3ef07..bec7058 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "capacitor-email-composer", - "version": "1.1.3", + "version": "1.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "capacitor-email-composer", - "version": "1.1.3", + "version": "1.2.0", "license": "MIT", "devDependencies": { "@capacitor/android": "4.1.0", diff --git a/package.json b/package.json index 3db5582..6d5a0a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "capacitor-email-composer", - "version": "1.1.3", + "version": "1.2.0", "description": "E-Mail Composer Plugin for Capacitor", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js",