@groovymedia/easy-email-extensions 4.14.2 → 4.14.4
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/BlockLayer/components/ContextMenu/index.d.ts +1 -1
- package/lib/BlockLayer/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +1 -1
- package/lib/ShortcutToolbar/components/DragIcon/index.d.ts +1 -1
- package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/index2.js +2 -2
- package/lib/index2.js.map +1 -1
- package/lib/index3.js +2 -2
- package/lib/utils/MjmlToJson.d.ts +1 -1
- package/lib/utils/getBlockTitle.d.ts +1 -1
- package/lib/utils/parseXMLtoBlock.d.ts +1 -1
- package/package.json +3 -3
- package/readme.md +10 -7
package/lib/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import { c as commonjsGlobal } from "./index2.js";
|
|
3
|
-
import "easy-email-editor";
|
|
4
|
-
import "easy-email-core";
|
|
3
|
+
import "@groovymedia/easy-email-editor";
|
|
4
|
+
import "@groovymedia/easy-email-core";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "react-final-form";
|
|
7
7
|
import "mjml-browser";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IBlockData } from 'easy-email-core';
|
|
1
|
+
import { IBlockData } from '@groovymedia/easy-email-core';
|
|
2
2
|
export declare function getBlockTitle(blockData: IBlockData, isFromContent?: boolean): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IBlockData } from 'easy-email-core';
|
|
1
|
+
import { IBlockData } from '@groovymedia/easy-email-core';
|
|
2
2
|
export declare function parseXMLtoBlock(text: string): IBlockData<any, any>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@groovymedia/easy-email-extensions",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "Email editor",
|
|
5
|
-
"version": "4.14.
|
|
5
|
+
"version": "4.14.4",
|
|
6
6
|
"author": "m-Ryan",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"react-use": "^17.3.1"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@groovymedia/easy-email-core": "^4.
|
|
97
|
-
"@groovymedia/easy-email-editor": "^4.
|
|
96
|
+
"@groovymedia/easy-email-core": "^4.3.6",
|
|
97
|
+
"@groovymedia/easy-email-editor": "^4.3.6",
|
|
98
98
|
"react": "^18.2.0",
|
|
99
99
|
"react-dom": "^18.2.0",
|
|
100
100
|
"react-final-form": "^6.5.7"
|
package/readme.md
CHANGED
|
@@ -22,9 +22,9 @@ $ yarn add easy-email-extensions
|
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
24
|
import React from 'react';
|
|
25
|
-
import { BlockManager, BasicType, AdvancedType } from 'easy-email-core';
|
|
26
|
-
import { EmailEditor, EmailEditorProvider } from 'easy-email-editor';
|
|
27
|
-
import { ExtensionProps, StandardLayout } from 'easy-email-extensions';
|
|
25
|
+
import { BlockManager, BasicType, AdvancedType } from '@groovymedia/easy-email-core';
|
|
26
|
+
import { EmailEditor, EmailEditorProvider } from '@groovymedia/easy-email-editor';
|
|
27
|
+
import { ExtensionProps, StandardLayout } from '@groovymedia/easy-email-extensions';
|
|
28
28
|
import { useWindowSize } from 'react-use';
|
|
29
29
|
|
|
30
30
|
import 'easy-email-editor/lib/style.css';
|
|
@@ -139,7 +139,7 @@ export default function App() {
|
|
|
139
139
|
- You can add or overwrite
|
|
140
140
|
|
|
141
141
|
```tsx
|
|
142
|
-
import { BlockAttributeConfigurationManager } from 'easy-email-extensions';
|
|
142
|
+
import { BlockAttributeConfigurationManager } from '@groovymedia/easy-email-extensions';
|
|
143
143
|
|
|
144
144
|
BlockAttributeConfigurationManager.add({
|
|
145
145
|
[BasicType.TEXT]: () => <div>will be overwrite `Text`</div>,
|
|
@@ -179,8 +179,11 @@ export default function App() {
|
|
|
179
179
|
- You can add or overwrite popover's preset blocks
|
|
180
180
|
|
|
181
181
|
```tsx
|
|
182
|
-
import { BasicType } from 'easy-email-core';
|
|
183
|
-
import {
|
|
182
|
+
import { BasicType } from '@groovymedia/easy-email-core';
|
|
183
|
+
import {
|
|
184
|
+
BlockMarketManager,
|
|
185
|
+
BlockMaskWrapper,
|
|
186
|
+
} from '@groovymedia/easy-email-extensions';
|
|
184
187
|
|
|
185
188
|
BlockMarketManager.addCategories([
|
|
186
189
|
{
|
|
@@ -238,7 +241,7 @@ export default function App() {
|
|
|
238
241
|
## transform mjml to json
|
|
239
242
|
|
|
240
243
|
```ts
|
|
241
|
-
import { MjmlToJson } from 'easy-email-extensions';
|
|
244
|
+
import { MjmlToJson } from '@groovymedia/easy-email-extensions';
|
|
242
245
|
|
|
243
246
|
const json = MjmlToJson(`
|
|
244
247
|
<mjml>
|