Skip to content

Commit

Permalink
chore(release): 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfachHans committed Aug 23, 2022
1 parent 10d60ae commit 117f03d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -139,14 +144,24 @@ Open the E-Mail Composer

#### OpenOptions

| Prop | Type | Description |
| ------------- | --------------------- | ---------------------------------------------------------- |
| **`to`** | <code>string[]</code> | email addresses for TO field |
| **`cc`** | <code>string[]</code> | email addresses for CC field |
| **`bcc`** | <code>string[]</code> | email addresses for BCC field |
| **`subject`** | <code>string</code> | subject of the email |
| **`body`** | <code>string</code> | email body |
| **`isHtml`** | <code>boolean</code> | indicats if the body is HTML or plain text (primarily iOS) |
| Prop | Type | Description |
| ----------------- | ------------------------- | ------------------------------------------------------------------------ |
| **`to`** | <code>string[]</code> | email addresses for TO field |
| **`cc`** | <code>string[]</code> | email addresses for CC field |
| **`bcc`** | <code>string[]</code> | email addresses for BCC field |
| **`subject`** | <code>string</code> | subject of the email |
| **`body`** | <code>string</code> | email body |
| **`isHtml`** | <code>boolean</code> | indicates if the body is HTML or plain text (primarily iOS) |
| **`attachments`** | <code>Attachment[]</code> | attachments that are added to the mail file paths or base64 data streams |


#### Attachment

| Prop | Type | Description |
| ---------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
| **`path`** | <code>string</code> | The path of the attachment. See the docs for explained informations. |
| **`type`** | <code>'absolute' \| 'resource' \| 'asset' \| 'base64'</code> | The type of the attachment. See the docs for explained informations. |
| **`name`** | <code>string</code> | The name of the attachment. See the docs for explained informations. Required for base64 attachements. |

</docgen-api>

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 117f03d

Please sign in to comment.