@emailmaker/emailmaker 1.0.78 → 1.0.80
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/README.md +1 -1
- package/asset-manifest.json +13 -13
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +4 -0
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.5638f747b810a63f96cb.html +1 -0
- package/iframe/iframe.5638f747b810a63f96cb.html +1 -0
- package/iframe/js/826.96b0e5bb.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +12 -17
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +10 -21
- package/plugin_idigital.html +9 -17
- package/plugin_nota.html +7 -15
- package/plugin_s.html +1 -1
- package/static/css/{3397.fc40ad46.chunk.css → 3397.7968ee61.chunk.css} +1 -1
- package/static/js/{3017.d419c579.chunk.js → 3017.d2c48f42.chunk.js} +1 -1
- package/static/js/{3397.4165a92b.chunk.js → 3397.e93f3419.chunk.js} +2 -2
- package/static/js/3927.563d28b7.js +1 -0
- package/static/js/4592.2bf8f222.js +1 -0
- package/static/js/{emailmaker_core.44e840fe.js → emailmaker_core.511b829a.js} +2 -2
- package/translations.pot +140 -101
- package/iframe/iframe-eblock.bce17e2e504979a8da17.html +0 -1
- package/iframe/iframe.bce17e2e504979a8da17.html +0 -1
- package/iframe/js/826.1b2fdba2.js +0 -1
- package/static/js/1867.0e30089e.js +0 -1
- package/static/js/3056.5895caeb.js +0 -1
- /package/iframe/js/{826.1b2fdba2.js.LICENSE.txt → 826.96b0e5bb.js.LICENSE.txt} +0 -0
- /package/static/js/{3397.4165a92b.chunk.js.LICENSE.txt → 3397.e93f3419.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{emailmaker_core.44e840fe.js.LICENSE.txt → emailmaker_core.511b829a.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
package/plugin.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?
|
|
1
|
+
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?b8ac50de72d8a05d0cd0"></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?b8ac50de72d8a05d0cd0";
|
|
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
|
-
|
|
32
|
-
redirect: 'follow',
|
|
26
|
+
redirect: 'follow'
|
|
33
27
|
};
|
|
34
28
|
|
|
35
|
-
return fetch(
|
|
36
|
-
.then(
|
|
37
|
-
.then(
|
|
38
|
-
.catch(
|
|
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
|
-
|
|
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,
|
package/plugin_blocks_test.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?
|
|
1
|
+
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?b8ac50de72d8a05d0cd0"></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',
|
package/plugin_default.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?
|
|
1
|
+
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?b8ac50de72d8a05d0cd0"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?b8ac50de72d8a05d0cd0";
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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: "****",
|
package/plugin_idigital.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?
|
|
1
|
+
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?b8ac50de72d8a05d0cd0"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?b8ac50de72d8a05d0cd0";
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
var requestOptions = {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
redirect: 'follow'
|
|
27
|
+
};
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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?
|
|
1
|
+
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?b8ac50de72d8a05d0cd0"></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?b8ac50de72d8a05d0cd0";
|
|
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
|
-
|
|
32
|
-
redirect: 'follow',
|
|
26
|
+
redirect: 'follow'
|
|
33
27
|
};
|
|
34
28
|
|
|
35
|
-
return fetch(
|
|
36
|
-
.then(
|
|
37
|
-
.then(
|
|
38
|
-
.catch(
|
|
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?
|
|
1
|
+
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?b8ac50de72d8a05d0cd0"></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',
|