easy-email-extensions 2.5.2-beta.0 → 2.5.2-beta.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "easy-email-extensions",
3
3
  "license": "MIT",
4
4
  "description": "Email editor",
5
- "version": "2.5.2-beta.0",
5
+ "version": "2.5.2-beta.1",
6
6
  "author": "m-Ryan",
7
7
  "repository": {
8
8
  "type": "git",
@@ -37,9 +37,13 @@
37
37
  "@types/react": "17.0.2",
38
38
  "@types/react-dom": "^17.0.11",
39
39
  "@vitejs/plugin-react-refresh": "^1.3.6",
40
+ "antd": "^4.16.13",
40
41
  "cross-env": "^7.0.3",
41
42
  "lerna": "^4.0.0",
42
43
  "less": "^4.1.2",
44
+ "react": "^17.0.2",
45
+ "react-dom": "^17.0.2",
46
+ "react-final-form": "^6.5.7",
43
47
  "rollup-plugin-visualizer": "^5.5.2",
44
48
  "sass": "^1.43.4",
45
49
  "tsc-alias": "^1.4.1",
@@ -56,13 +60,9 @@
56
60
  "final-form-set-field-touched": "^1.0.1",
57
61
  "is-hotkey": "^0.2.0",
58
62
  "lodash": "^4.17.21",
59
- "lodash-es": "^4.17.21",
60
63
  "mjml-browser": "^4.10.4",
61
- "react": "^17.0.2",
62
64
  "react-codemirror2": "^7.2.1",
63
65
  "react-color": "^2.19.3",
64
- "react-dom": "^17.0.2",
65
- "react-final-form": "^6.5.7",
66
66
  "react-final-form-arrays": "^3.1.3",
67
67
  "react-sortablejs": "^6.0.0",
68
68
  "react-use": "^17.3.1",
@@ -70,9 +70,10 @@
70
70
  },
71
71
  "peerDependencies": {
72
72
  "antd": "^4.16.13",
73
+ "easy-email-core": "^2.5.2",
73
74
  "react": "^17.0.2",
74
75
  "react-dom": "^17.0.2",
75
76
  "react-final-form": "^6.5.7"
76
77
  },
77
- "gitHead": "ef46bf4efb676bb617dd589216c01a59f4ef0f50"
78
+ "gitHead": "421534a8d92ea474bb6c55fed95ac89b61e6b13b"
78
79
  }
package/readme.md CHANGED
@@ -17,25 +17,33 @@ $ yarn add easy-email-extensions
17
17
  ```
18
18
 
19
19
  ```js
20
- import React from "react";
21
- import { BlocksMap, EmailEditor, EmailEditorProvider } from "easy-email-editor";
22
- import "easy-email-editor/lib/style.css";
23
- import "antd/dist/antd.css";
20
+ import React from 'react';
21
+ import { BlockManager, BasicType } from 'easy-email-core';
22
+ import { EmailEditor, EmailEditorProvider } from 'easy-email-editor';
23
+ import { SimpleLayout } from 'easy-email-extensions';
24
+
25
+ import 'easy-email-editor/lib/style.css';
26
+ import 'easy-email-extensions/lib/style.css';
24
27
 
25
28
  const initialValues = {
26
- subject: "Welcome to Easy-email",
27
- subTitle: "Nice to meet you!",
28
- content: BlocksMap.getBlock("Page").create({}),
29
+ subject: 'Welcome to Easy-email',
30
+ subTitle: 'Nice to meet you!',
31
+ content: BlockManager.getBlockByType(BasicType.PAGE)!.create({}),
29
32
  };
30
33
 
31
34
  export function App() {
32
35
  return (
33
- <EmailEditorProvider data={initialValues} height={"calc(100vh - 72px)"}>
36
+ <EmailEditorProvider
37
+ data={initialValues}
38
+ height={'calc(100vh - 72px)'}
39
+ autoComplete
40
+ dashed={false}
41
+ >
34
42
  {({ values }) => {
35
43
  return (
36
- <SimpleFrame>
44
+ <SimpleLayout>
37
45
  <EmailEditor />
38
- </SimpleFrame>
46
+ </SimpleLayout>
39
47
  );
40
48
  }}
41
49
  </EmailEditorProvider>
@@ -125,6 +133,6 @@ export function App() {
125
133
  ]);
126
134
  ```
127
135
 
128
- - `SimpleFrame`
136
+ - `SimpleLayout`
129
137
 
130
138
  - All in one extension, provide basic and complete layout example. Refer to the above extension for configuration items.
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const SimpleFrame: React.FC;
@@ -1 +0,0 @@
1
- export { SimpleFrame } from './SimpleFrame';