@groovymedia/easy-email-core 4.12.3 → 4.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs.js +9 -9
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +4 -4
- package/lib/index.es.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +8 -3
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
This is the core easy-email library, composed by the following parts
|
|
6
6
|
|
|
7
7
|
- utils
|
|
8
|
+
|
|
8
9
|
- JsonToMjml
|
|
9
10
|
- BlockManager
|
|
10
11
|
- createCustomBlock
|
|
@@ -33,7 +34,7 @@ $ yarn add easy-email-core
|
|
|
33
34
|
## transform json to mjml
|
|
34
35
|
|
|
35
36
|
```ts
|
|
36
|
-
import { JsonToMjml } from 'easy-email-core';
|
|
37
|
+
import { JsonToMjml } from '@groovymedia/easy-email-core';
|
|
37
38
|
|
|
38
39
|
const xml = JsonToMjml({
|
|
39
40
|
data: json,
|
|
@@ -145,7 +146,11 @@ console.log(xml);
|
|
|
145
146
|
## parseReactBlockToBlockData
|
|
146
147
|
|
|
147
148
|
```tsx
|
|
148
|
-
import {
|
|
149
|
+
import {
|
|
150
|
+
JsonToMjml,
|
|
151
|
+
components,
|
|
152
|
+
parseReactBlockToBlockData,
|
|
153
|
+
} from '@groovymedia/easy-email-core';
|
|
149
154
|
|
|
150
155
|
const { Page, Section, Column, Text, Button } = components;
|
|
151
156
|
|
|
@@ -401,7 +406,7 @@ import {
|
|
|
401
406
|
JsonToMjml,
|
|
402
407
|
BasicType,
|
|
403
408
|
BlockManager,
|
|
404
|
-
} from 'easy-email-core';
|
|
409
|
+
} from '@groovymedia/easy-email-core';
|
|
405
410
|
const { Section, Column, Image, Button } = components;
|
|
406
411
|
|
|
407
412
|
type IMyFirstBlock = IBlockData<
|