@emailmaker/emailmaker 1.0.78 → 1.0.79

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 (32) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +13 -13
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +4 -0
  5. package/emailmaker.js +1 -1
  6. package/iframe/429.js +1 -1
  7. package/iframe/766.js +1 -1
  8. package/iframe/iframe-eblock.bce17e2e504979a8da17.html +1 -1
  9. package/iframe/iframe.bce17e2e504979a8da17.html +1 -1
  10. package/iframe/js/826.3270f626.js +1 -0
  11. package/iframe/sandbox-eblock.js +1 -1
  12. package/iframe/sandbox.js +1 -1
  13. package/package.json +1 -1
  14. package/plugin.html +12 -17
  15. package/plugin_blocks_test.html +1 -1
  16. package/plugin_default.html +10 -21
  17. package/plugin_idigital.html +9 -17
  18. package/plugin_nota.html +7 -15
  19. package/plugin_s.html +1 -1
  20. package/static/css/{3397.fc40ad46.chunk.css → 3397.d98b1f23.chunk.css} +1 -1
  21. package/static/js/1867.cb4ea2de.js +1 -0
  22. package/static/js/{3017.d419c579.chunk.js → 3017.4f7d58d4.chunk.js} +1 -1
  23. package/static/js/{3397.4165a92b.chunk.js → 3397.e93f3419.chunk.js} +2 -2
  24. package/static/js/3927.b581732a.js +1 -0
  25. package/static/js/{emailmaker_core.44e840fe.js → emailmaker_core.df2f1edc.js} +2 -2
  26. package/translations.pot +84 -93
  27. package/iframe/js/826.1b2fdba2.js +0 -1
  28. package/static/js/1867.0e30089e.js +0 -1
  29. package/static/js/3056.5895caeb.js +0 -1
  30. /package/iframe/js/{826.1b2fdba2.js.LICENSE.txt → 826.3270f626.js.LICENSE.txt} +0 -0
  31. /package/static/js/{3397.4165a92b.chunk.js.LICENSE.txt → 3397.e93f3419.chunk.js.LICENSE.txt} +0 -0
  32. /package/static/js/{emailmaker_core.44e840fe.js.LICENSE.txt → emailmaker_core.df2f1edc.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailmaker/emailmaker",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "private": false,
5
5
  "main": "emailmaker.js",
6
6
  "module": "emailmaker-esm.js",
package/plugin.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?204d3d917d2ace12a508"></script></head><body><button id="change_theme" style="width: 150px; height: 30px">Click Me</button><div style="background: white; width: 100%; height: 50px; display: flex; justify-content: center; align-items: center"></div><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?204d3d917d2ace12a508";
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?4e684395ab71693d9df0"></script></head><body><button id="change_theme" style="width: 150px; height: 30px">Click Me</button><div style="background: white; width: 100%; height: 50px; display: flex; justify-content: center; align-items: center"></div><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?4e684395ab71693d9df0";
2
2
  const auth_jwt = {
3
3
  username: '****',
4
4
  password: '****',
@@ -19,28 +19,20 @@
19
19
  client_id: '****',
20
20
  client_secret: '****',
21
21
  };
22
-
22
+ const origin = document.location.origin;
23
23
  const getAuthToken = async () => {
24
- var formdata = new FormData();
25
- formdata.append('grant_type', 'client_credentials');
26
- formdata.append('client_id', 'z72ev3L8JuDoyoE9JQeb2CiVGvVRibQ9q95jNiJ8');
27
- formdata.append('client_secret', 'wxMqp4DbfH6DzKj7xkMg7cQUkh1AbTvxjr04uwQ2');
28
-
29
24
  var requestOptions = {
30
25
  method: 'POST',
31
- body: formdata,
32
- redirect: 'follow',
26
+ redirect: 'follow'
33
27
  };
34
28
 
35
- return fetch('http://localhost:3000/api?oauth=token', requestOptions)
36
- .then((response) => response.json())
37
- .then((result) => result.access_token)
38
- .catch((error) => {
39
- console.log('error', error);
40
- return '';
41
- });
29
+ return fetch(origin + "/tests/plugin/temp_token_em.php", requestOptions)
30
+ .then(response => response.json())
31
+ .then(result => result.access_token)
32
+ .catch(error => { return ""; });
42
33
  };
43
34
 
35
+
44
36
  const auth_client_oauth = {
45
37
  client_id: '****',
46
38
  client_secret: '****',
@@ -99,7 +91,7 @@
99
91
  },
100
92
  // headless: true,
101
93
  content: {
102
- // templateId: 321739,
94
+ templateId: 321739,
103
95
 
104
96
  email: {
105
97
  id: '3769995',
@@ -131,6 +123,7 @@
131
123
  },
132
124
 
133
125
  config: {
126
+ disableDoubleClickNextButton: false,
134
127
  counters: { optimization_counter: 2, ai_counter: 3, ai_generator_counter: 4, ai_img_counter: 4 },
135
128
  limits: { optimization_limit: 0, ai_limit: 0, ai_generator_limit: 0, ai_img_limit: 0 },
136
129
  billingPageUrl: 'https://billing.yandex.ru',
@@ -153,6 +146,7 @@
153
146
  emailDropdownMenuLock: true,
154
147
  emailDropdownMenuClone: true,
155
148
  emailDropdownMenuRemove: true,
149
+ nextButtonEnabled: true,
156
150
  // Стилизация через token
157
151
  mergeTags: {
158
152
  syntax: ['{{%value%}}'],
@@ -199,6 +193,7 @@
199
193
  });
200
194
  setTimeout(() => {
201
195
  console.log(instance.getCodeErrors());
196
+ instance.updateConfig({activeNextButton: false})
202
197
  }, 5000);
203
198
  instance.setConfig({
204
199
  ...options.config,
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?204d3d917d2ace12a508"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">const getAuthToken = async () => {
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?4e684395ab71693d9df0"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">const getAuthToken = async () => {
2
2
  var requestOptions = {
3
3
  method: 'POST',
4
4
  redirect: 'follow',
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?204d3d917d2ace12a508"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?204d3d917d2ace12a508";
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?4e684395ab71693d9df0"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?4e684395ab71693d9df0";
2
2
  const auth_jwt = {
3
3
  username: "****",
4
4
  password: "****"
@@ -10,27 +10,16 @@
10
10
  }
11
11
 
12
12
  const getAuthToken = async () => {
13
- var formdata = new FormData();
14
- formdata.append("grant_type", "client_credentials");
15
- formdata.append("client_id", "qjX68m3U2rMSgvlrEGlRYW8scHb9ZasJVJsNpUtV");
16
- formdata.append("client_secret", "4hyY3zUo2zgCdhtqkyWSkBib7YznFqP0yg8J4Ijl");
17
-
18
-
19
- var requestOptions = {
20
- method: 'POST',
21
- body: formdata,
22
- redirect: 'follow'
13
+ var requestOptions = {
14
+ method: 'POST',
15
+ redirect: 'follow'
16
+ };
17
+
18
+ return fetch("https://emailmaker.ru/tests/plugin/temp_token_em.php", requestOptions)
19
+ .then(response => response.json())
20
+ .then(result => result.access_token)
21
+ .catch(error => { return ""; });
23
22
  };
24
- console.log("getToken");
25
-
26
- return fetch("http://localhost:3000/api?oauth=token", requestOptions)
27
- .then(response => response.json())
28
- .then(result => result.access_token)
29
- .catch(error => {
30
- console.log('error', error);
31
- return "";
32
- });
33
- };
34
23
 
35
24
  const auth_client_oauth = {
36
25
  client_id: "****",
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?204d3d917d2ace12a508"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?204d3d917d2ace12a508";
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?4e684395ab71693d9df0"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?4e684395ab71693d9df0";
2
2
  const auth_jwt = {
3
3
  username: '****',
4
4
  password: '****',
@@ -21,25 +21,17 @@
21
21
  };
22
22
 
23
23
  const getAuthToken = async () => {
24
- var formdata = new FormData();
25
- formdata.append('grant_type', 'client_credentials');
26
- formdata.append('client_id', 'L7cmxCedKA5LkUNCQVOQCcXbsdgb2yZwwcCC4saT');
27
- formdata.append('client_secret', 'oNe9aDSjvosSDYLGZfvscgcKFZDjc0bzhI33pIis');
24
+ var requestOptions = {
25
+ method: 'POST',
26
+ redirect: 'follow'
27
+ };
28
28
 
29
- var requestOptions = {
30
- method: 'POST',
31
- body: formdata,
32
- redirect: 'follow',
29
+ return fetch("https://emailmaker.ru/tests/plugin/temp_token_em.php", requestOptions)
30
+ .then(response => response.json())
31
+ .then(result => result.access_token)
32
+ .catch(error => { return ""; });
33
33
  };
34
34
 
35
- return fetch('http://localhost:3000/api?oauth=token', requestOptions)
36
- .then((response) => response.json())
37
- .then((result) => result.access_token)
38
- .catch((error) => {
39
- console.log('error', error);
40
- return '';
41
- });
42
- };
43
35
 
44
36
 
45
37
  const auth_client_oauth = {
package/plugin_nota.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?204d3d917d2ace12a508"></script></head><body><button id="change_theme" style="width: 150px; height: 30px">Click Me</button><div style="background: white; width: 100%; height: 50px; display: flex; justify-content: center; align-items: center"></div><div id="shadow-host" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?204d3d917d2ace12a508";
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?4e684395ab71693d9df0"></script></head><body><button id="change_theme" style="width: 150px; height: 30px">Click Me</button><div style="background: white; width: 100%; height: 50px; display: flex; justify-content: center; align-items: center"></div><div id="shadow-host" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?4e684395ab71693d9df0";
2
2
  const auth_jwt = {
3
3
  username: '****',
4
4
  password: '****',
@@ -21,26 +21,18 @@
21
21
  };
22
22
 
23
23
  const getAuthToken = async () => {
24
- var formdata = new FormData();
25
- formdata.append('grant_type', 'client_credentials');
26
- formdata.append('client_id', 'z72ev3L8JuDoyoE9JQeb2CiVGvVRibQ9q95jNiJ8');
27
- formdata.append('client_secret', 'wxMqp4DbfH6DzKj7xkMg7cQUkh1AbTvxjr04uwQ2');
28
-
29
24
  var requestOptions = {
30
25
  method: 'POST',
31
- body: formdata,
32
- redirect: 'follow',
26
+ redirect: 'follow'
33
27
  };
34
28
 
35
- return fetch('http://localhost:3000/api?oauth=token', requestOptions)
36
- .then((response) => response.json())
37
- .then((result) => result.access_token)
38
- .catch((error) => {
39
- console.log('error', error);
40
- return '';
41
- });
29
+ return fetch("https://emailmaker.ru/tests/plugin/temp_token_em.php", requestOptions)
30
+ .then(response => response.json())
31
+ .then(result => result.access_token)
32
+ .catch(error => { return ""; });
42
33
  };
43
34
 
35
+
44
36
  const auth_client_oauth = {
45
37
  client_id: '****',
46
38
  client_secret: '****',
package/plugin_s.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?204d3d917d2ace12a508"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">const getAuthToken = async () => {
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?4e684395ab71693d9df0"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">const getAuthToken = async () => {
2
2
 
3
3
  var requestOptions = {
4
4
  method: 'POST',