@markopolo_ai_inc/markopolo-email-editor 1.0.3 → 1.0.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.
Files changed (79) hide show
  1. package/package.json +1 -3
  2. package/public/favicon.ico +0 -0
  3. package/public/index.html +0 -50
  4. package/public/logo192.png +0 -0
  5. package/public/logo512.png +0 -0
  6. package/public/manifest.json +0 -25
  7. package/public/robots.txt +0 -3
  8. package/src/App.js +0 -15
  9. package/src/components/EmailEditor/assets/App.css +0 -339
  10. package/src/components/EmailEditor/assets/Columns.css +0 -309
  11. package/src/components/EmailEditor/assets/Header.css +0 -174
  12. package/src/components/EmailEditor/assets/ImageBlock.css +0 -12
  13. package/src/components/EmailEditor/assets/Preview.css +0 -30
  14. package/src/components/EmailEditor/assets/RichText.css +0 -199
  15. package/src/components/EmailEditor/assets/RightSettings.css +0 -520
  16. package/src/components/EmailEditor/assets/Sidebar.css +0 -195
  17. package/src/components/EmailEditor/components/BlockItems/ButtonBlock.js +0 -25
  18. package/src/components/EmailEditor/components/BlockItems/DividerBlock.js +0 -19
  19. package/src/components/EmailEditor/components/BlockItems/HeadingBlock.js +0 -16
  20. package/src/components/EmailEditor/components/BlockItems/ImageBlock.js +0 -28
  21. package/src/components/EmailEditor/components/BlockItems/MenuBlock.js +0 -52
  22. package/src/components/EmailEditor/components/BlockItems/SocialLinkBlocks.js +0 -26
  23. package/src/components/EmailEditor/components/BlockItems/SpacerBlock.js +0 -23
  24. package/src/components/EmailEditor/components/BlockItems/TextBlock.js +0 -16
  25. package/src/components/EmailEditor/components/BlockItems/index.js +0 -25
  26. package/src/components/EmailEditor/components/ColorPicker/index.js +0 -26
  27. package/src/components/EmailEditor/components/Column/index.js +0 -253
  28. package/src/components/EmailEditor/components/Header/index.js +0 -243
  29. package/src/components/EmailEditor/components/LeftSideBar/index.js +0 -253
  30. package/src/components/EmailEditor/components/Main/index.js +0 -281
  31. package/src/components/EmailEditor/components/Preview/index.js +0 -97
  32. package/src/components/EmailEditor/components/RichText/Bold.js +0 -37
  33. package/src/components/EmailEditor/components/RichText/FontColor.js +0 -39
  34. package/src/components/EmailEditor/components/RichText/InsertOrderedList.js +0 -36
  35. package/src/components/EmailEditor/components/RichText/InsertUnorderedList.js +0 -36
  36. package/src/components/EmailEditor/components/RichText/Italic.js +0 -36
  37. package/src/components/EmailEditor/components/RichText/Link.js +0 -99
  38. package/src/components/EmailEditor/components/RichText/RichTextLayout.js +0 -53
  39. package/src/components/EmailEditor/components/RichText/Strikethrough.js +0 -36
  40. package/src/components/EmailEditor/components/RichText/TextAlign.js +0 -58
  41. package/src/components/EmailEditor/components/RichText/Underline.js +0 -36
  42. package/src/components/EmailEditor/components/RichText/index.js +0 -210
  43. package/src/components/EmailEditor/components/RightSetting/index.js +0 -126
  44. package/src/components/EmailEditor/components/StyleSettings/ButtonStyleSettings.js +0 -141
  45. package/src/components/EmailEditor/components/StyleSettings/ColumnStyleSettings.js +0 -241
  46. package/src/components/EmailEditor/components/StyleSettings/DividerStyleSettings.js +0 -111
  47. package/src/components/EmailEditor/components/StyleSettings/HeadingStyleSettings.js +0 -162
  48. package/src/components/EmailEditor/components/StyleSettings/ImageStyleSettings.js +0 -217
  49. package/src/components/EmailEditor/components/StyleSettings/MenuStyleSettings.js +0 -177
  50. package/src/components/EmailEditor/components/StyleSettings/PaddingSettings.js +0 -30
  51. package/src/components/EmailEditor/components/StyleSettings/SocialLinkSettings.js +0 -250
  52. package/src/components/EmailEditor/components/StyleSettings/SpacerStyleSettings.js +0 -38
  53. package/src/components/EmailEditor/components/StyleSettings/TextStyleSettings.js +0 -108
  54. package/src/components/EmailEditor/components/StyleSettings/index.js +0 -32
  55. package/src/components/EmailEditor/configs/getBlockConfigsList.js +0 -263
  56. package/src/components/EmailEditor/configs/getColumnConfigFunc.js +0 -59
  57. package/src/components/EmailEditor/configs/getColumnsSettings.js +0 -246
  58. package/src/components/EmailEditor/configs/useDataSource.js +0 -19
  59. package/src/components/EmailEditor/index.js +0 -93
  60. package/src/components/EmailEditor/reducers/index.js +0 -173
  61. package/src/components/EmailEditor/translation/en.js +0 -166
  62. package/src/components/EmailEditor/translation/index.js +0 -39
  63. package/src/components/EmailEditor/translation/zh.js +0 -166
  64. package/src/components/EmailEditor/utils/classNames.js +0 -5
  65. package/src/components/EmailEditor/utils/dataToHTML.js +0 -323
  66. package/src/components/EmailEditor/utils/exportValidation.js +0 -296
  67. package/src/components/EmailEditor/utils/helpers.js +0 -48
  68. package/src/components/EmailEditor/utils/pexels.js +0 -20
  69. package/src/components/EmailEditor/utils/useSection.js +0 -24
  70. package/src/components/EmailEditor/utils/useStyleLayout.js +0 -82
  71. package/src/index.css +0 -99
  72. package/src/index.js +0 -15
  73. package/src/logo.svg +0 -1
  74. package/src/pages/AppPage/index.js +0 -10
  75. package/src/pages/Dashboard/Header.js +0 -192
  76. package/src/pages/Dashboard/defaultBlockList.json +0 -1758
  77. package/src/pages/Dashboard/index.js +0 -48
  78. package/src/reportWebVitals.js +0 -13
  79. package/src/setupTests.js +0 -5
package/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "@markopolo_ai_inc/markopolo-email-editor",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "files": [
6
6
  "build",
7
- "public",
8
- "src",
9
7
  "README.md"
10
8
  ],
11
9
  "dependencies": {
Binary file
package/public/index.html DELETED
@@ -1,50 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8" />
6
- <link rel="icon" href="https://img.icons8.com/bubbles/344/new-post.png" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- <meta name="theme-color" content="#000000" />
9
- <meta name="description" content="Web site created using create-react-app" />
10
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
11
- <!--
12
- manifest.json provides metadata used when your web app is installed on a
13
- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
14
- -->
15
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
16
- <!--
17
- Notice the use of %PUBLIC_URL% in the tags above.
18
- It will be replaced with the URL of the `public` folder during the build.
19
- Only files inside the `public` folder can be referenced from the HTML.
20
-
21
- Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
22
- work correctly both with client-side routing and a non-root public URL.
23
- Learn how to configure a non-root public URL by running `npm run build`.
24
- -->
25
- <title>Markopolo Email Template Editor</title>
26
- </head>
27
- <style>
28
- * {
29
- padding: 0;
30
- margin: 0;
31
- box-sizing: border-box;
32
- }
33
- </style>
34
-
35
- <body>
36
- <noscript>You need to enable JavaScript to run this app.</noscript>
37
- <div id="root"></div>
38
- <!--
39
- This HTML file is a template.
40
- If you open it directly in the browser, you will see an empty page.
41
-
42
- You can add webfonts, meta tags, or analytics to this file.
43
- The build step will place the bundled scripts into the <body> tag.
44
-
45
- To begin the development, run `npm start` or `yarn start`.
46
- To create a production bundle, use `npm run build` or `yarn build`.
47
- -->
48
- </body>
49
-
50
- </html>
Binary file
Binary file
@@ -1,25 +0,0 @@
1
- {
2
- "short_name": "Email Editor",
3
- "name": "Email Editor - Design your own email",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
14
- },
15
- {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
20
- ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
24
- "background_color": "#ffffff"
25
- }
package/public/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
package/src/App.js DELETED
@@ -1,15 +0,0 @@
1
- import AppPage from "./pages/AppPage";
2
- import { createBrowserHistory } from "history";
3
- import { Router } from "react-router-dom";
4
-
5
- function App() {
6
- const history = createBrowserHistory();
7
-
8
- return (
9
- <Router history={history}>
10
- <AppPage />
11
- </Router>
12
- );
13
- }
14
-
15
- export default App;
@@ -1,339 +0,0 @@
1
- @import "./RichText.css";
2
- @import "./ImageBlock.css";
3
- @import "./Sidebar.css";
4
- @import "./Preview.css";
5
- @import "./Header.css";
6
- @import "./Columns.css";
7
- @import "./RightSettings.css";
8
-
9
- .email-editor * {
10
- box-sizing: border-box;
11
- }
12
-
13
- /* Email editor design tokens aligned to Nabiq dark theme (globals.scss .dark). */
14
- :root {
15
- color-scheme: dark;
16
-
17
- /* Nabiq dark semantic tokens */
18
- --ee-bg: #0a0a0a;
19
- --ee-foreground: #fafafa;
20
- --ee-primary: #d8fe91;
21
- --ee-primary-foreground: #171717;
22
- --ee-card: #171717;
23
- --ee-muted: #262626;
24
- --ee-muted-foreground: #a1a1a1;
25
- --ee-border: #282828;
26
- --ee-border-width: 1px;
27
- --ee-radius: 0.5rem;
28
- --ee-shadow:
29
- 0px 1px 3px 0px rgba(0, 0, 0, 0.25), 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
30
- --ee-shadow-sm: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
31
-
32
- --block-active-border: var(--ee-primary);
33
- --block-hover-border: #b8e67a;
34
- --block-empty-content-color: #374151;
35
- --block-empty-content-background: rgba(216, 254, 145, 0.12);
36
-
37
- --start-content-background: var(--ee-muted);
38
- --start-content-font-color: var(--ee-muted-foreground);
39
-
40
- --left-sidebar-background: var(--ee-muted);
41
- --left-sidebar-tabs-background: var(--ee-card);
42
- --left-sidebar-tab-color: var(--ee-foreground);
43
- --left-sidebar-tab-hover-background: #404040;
44
- --left-sidebar-tab-active-color: var(--ee-primary);
45
- --rich-text-icon: rgba(216, 254, 145, 0.35);
46
-
47
- --tools-font-color: var(--ee-primary-foreground);
48
- --option-hover-color: rgba(216, 254, 145, 0.15);
49
- --border-color: var(--ee-border);
50
-
51
- --header-bg-color: var(--ee-card);
52
- --header-icon-hover-color: var(--ee-foreground);
53
- --header-icon-active-color: var(--ee-primary);
54
- --header-icon-disabled-color: var(--ee-muted-foreground);
55
- --header-drawer-close-bg-color: var(--ee-muted-foreground);
56
- --header-drawer-close-color: var(--ee-foreground);
57
- --header-drawer-close-hover-bg-color: #404040;
58
- --header-drawer-head-bg-color: var(--ee-muted);
59
-
60
- --right-settings-font-color: var(--ee-foreground);
61
- --right-settings-title-font-color: var(--ee-muted-foreground);
62
- --right-settings-block-title-font-color: var(--ee-foreground);
63
- --right-settings-block-title-background-color: var(--ee-muted);
64
-
65
- --column-background: var(--ee-muted);
66
- --column-active-border: var(--ee-primary);
67
- --column-un-active-border: var(--ee-border);
68
- --column-divider-color: var(--ee-muted-foreground);
69
-
70
- --align-style-item-active-color: var(--ee-primary);
71
- --align-style-item-un-active-color: var(--ee-border);
72
-
73
- --blue-500: var(--ee-primary);
74
- --gray-400: var(--ee-muted-foreground);
75
- --slate-100: var(--ee-muted);
76
- --red-100: rgba(248, 113, 113, 0.2);
77
- --red-500: #f87070;
78
- }
79
-
80
- img {
81
- max-width: 100%;
82
- }
83
-
84
- .hover-visible {
85
- width: 100%;
86
- height: 100%;
87
- position: absolute;
88
- }
89
-
90
- .font-semibold {
91
- font-weight: 600;
92
- }
93
-
94
- .width-full {
95
- width: 100%;
96
- }
97
-
98
- .margin-y-30 {
99
- margin-top: 30px;
100
- margin-bottom: 30px;
101
- }
102
-
103
- .margin-top-6 {
104
- margin-top: 6px;
105
- }
106
-
107
- .margin-top-12 {
108
- margin-top: 12px;
109
- }
110
-
111
- .margin-top-18 {
112
- margin-top: 18px;
113
- }
114
-
115
- .margin-top-32 {
116
- margin-top: 32px;
117
- }
118
-
119
- .height-full {
120
- height: 100%;
121
- }
122
-
123
- .relative {
124
- position: relative;
125
- }
126
-
127
- .absolute {
128
- position: absolute;
129
- }
130
-
131
- .select-none {
132
- user-select: none;
133
- }
134
-
135
- .margin-auto {
136
- margin: auto;
137
- }
138
-
139
- .text-left {
140
- text-align: left;
141
- }
142
-
143
- .text-center {
144
- text-align: center;
145
- }
146
-
147
- .text-right {
148
- text-align: right;
149
- }
150
-
151
- .inline-block {
152
- display: inline-block;
153
- }
154
-
155
- .flex {
156
- display: flex;
157
- }
158
-
159
- .justify-center {
160
- justify-content: center;
161
- }
162
-
163
- .justify-between {
164
- justify-content: space-between;
165
- }
166
-
167
- .items-center {
168
- align-items: center;
169
- }
170
-
171
- .cursor-default {
172
- cursor: default;
173
- }
174
-
175
- .cursor-pointer {
176
- cursor: pointer;
177
- }
178
-
179
- .cursor-grab {
180
- cursor: grab;
181
- }
182
-
183
- .border-transparent {
184
- border-color: transparent;
185
- }
186
-
187
- ol {
188
- list-style: auto;
189
- margin-left: 11px;
190
- }
191
-
192
- ul {
193
- list-style: disc;
194
- margin-left: 11px;
195
- }
196
-
197
- a:hover {
198
- text-decoration: underline;
199
- }
200
-
201
- @keyframes shake {
202
- 0%,
203
- 100% {
204
- transform: translateX(0) rotate(0);
205
- }
206
-
207
- 5%,
208
- 30%,
209
- 50%,
210
- 70%,
211
- 90% {
212
- transform: rotate(5deg);
213
- }
214
-
215
- 20%,
216
- 40%,
217
- 60%,
218
- 80% {
219
- transform: rotate(-5deg);
220
- }
221
- }
222
-
223
- .ant-btn-primary {
224
- background-color: var(--ee-primary);
225
- border-color: var(--ee-primary);
226
- }
227
-
228
- .block-style_settings-collapse .ant-collapse-header {
229
- font-weight: bold;
230
- background-color: var(--start-content-background);
231
- color: var(--start-content-font-color) !important;
232
- }
233
-
234
- .block-style_settings-collapse .ant-collapse-item {
235
- margin-bottom: 12px;
236
- padding: 0;
237
- }
238
-
239
- .block-style_settings-collapse .ant-collapse-content-box {
240
- padding: 0 !important;
241
- }
242
-
243
- /* Dark theme for confirmation modals (Delete Column, Add Link, etc.) */
244
- .ee-modal-dark .ant-modal-content {
245
- background-color: var(--ee-card) !important;
246
- border: var(--ee-border-width) solid var(--ee-border);
247
- border-radius: var(--ee-radius);
248
- box-shadow: var(--ee-shadow);
249
- }
250
- .ee-modal-dark .ant-modal-header {
251
- background-color: var(--ee-card) !important;
252
- border-bottom: var(--ee-border-width) solid var(--ee-border);
253
- border-radius: var(--ee-radius) var(--ee-radius) 0 0;
254
- }
255
- .ee-modal-dark .ant-modal-title {
256
- color: var(--ee-foreground) !important;
257
- }
258
- .ee-modal-dark .ant-modal-body {
259
- background-color: var(--ee-card) !important;
260
- color: var(--ee-foreground);
261
- }
262
- .ee-modal-dark .ant-modal-body p,
263
- .ee-modal-dark .ant-modal-body .column-modal-context {
264
- color: var(--ee-foreground);
265
- }
266
- .ee-modal-dark .ant-modal-close-x {
267
- color: var(--ee-muted-foreground);
268
- }
269
- .ee-modal-dark .ant-modal-close-x:hover {
270
- color: var(--ee-foreground);
271
- }
272
- .ee-modal-dark .ant-modal-footer {
273
- background-color: var(--ee-card) !important;
274
- border-top: var(--ee-border-width) solid var(--ee-border);
275
- }
276
- .ee-modal-dark .ant-modal-footer .ant-btn-default {
277
- background-color: var(--ee-muted) !important;
278
- border-color: var(--ee-border) !important;
279
- color: var(--ee-foreground);
280
- }
281
- .ee-modal-dark .ant-modal-footer .ant-btn-default:hover {
282
- border-color: var(--ee-primary);
283
- color: var(--ee-primary);
284
- }
285
- .ee-modal-dark .ant-modal-footer .ant-btn-primary {
286
- background-color: var(--ee-primary) !important;
287
- border-color: var(--ee-primary) !important;
288
- color: var(--ee-primary-foreground) !important;
289
- }
290
- .ee-modal-dark .ant-modal-footer .ant-btn-primary:hover {
291
- background-color: #b8e67a !important;
292
- border-color: #b8e67a !important;
293
- color: var(--ee-primary-foreground) !important;
294
- }
295
- /* Input inside modal (e.g. Add Link) */
296
- .ee-modal-dark .ant-modal-body .ant-input,
297
- .ee-modal-dark .ant-modal-body .ant-input-affix-wrapper {
298
- background-color: var(--ee-muted) !important;
299
- border-color: var(--ee-border) !important;
300
- color: var(--ee-foreground) !important;
301
- }
302
- .ee-modal-dark .ant-modal-body .ant-input:focus,
303
- .ee-modal-dark .ant-modal-body .ant-input-affix-wrapper-focused {
304
- border-color: var(--ee-primary) !important;
305
- box-shadow: 0 0 0 1px var(--ee-primary) !important;
306
- }
307
- .ee-modal-dark .ant-modal-body .ant-input-group-addon {
308
- background-color: var(--ee-muted) !important;
309
- border-color: var(--ee-border) !important;
310
- color: var(--ee-foreground);
311
- }
312
-
313
- /* Export validation modal: severity headings and location text (dark theme) */
314
- .ee-modal-dark .export-validation-errors-heading {
315
- color: var(--red-500);
316
- }
317
- .ee-modal-dark .export-validation-warnings-heading {
318
- color: #fbbf24;
319
- }
320
- .ee-modal-dark .export-validation-info-heading {
321
- color: #60a5fa;
322
- }
323
- .ee-modal-dark .export-validation-location {
324
- color: var(--ee-muted-foreground);
325
- }
326
-
327
- /* Force InputNumber unit addon (px/%) dark – antd uses .ant-input-number-group-addon with #fafafa */
328
- .email-editor .right-settings .ant-input-number-group-addon,
329
- .email-editor
330
- .right-settings
331
- .ant-input-number-group-wrapper
332
- .ant-input-number-group-addon {
333
- background-color: var(--ee-muted) !important;
334
- border-color: var(--ee-border) !important;
335
- color: var(--ee-foreground) !important;
336
- }
337
- .email-editor .right-settings .ant-input-number-group-addon * {
338
- color: var(--ee-foreground) !important;
339
- }