@emailmaker/emailmaker 1.0.82 → 1.0.84-alpha.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/README.md +12 -1
- package/asset-manifest.json +14 -14
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +27 -12
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.8b0a12b23e904bcf1a09.html +1 -0
- package/iframe/iframe.8b0a12b23e904bcf1a09.html +1 -0
- package/iframe/js/826.179bb97b.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +15 -13
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +21 -10
- package/plugin_idigital.html +1 -1
- package/plugin_nota.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/{3397.945f9768.chunk.css → 3397.ac719526.chunk.css} +1 -1
- package/static/js/{1538.d2b702b9.chunk.js → 1538.d92fd4ae.chunk.js} +2 -2
- package/static/js/{3017.d2c48f42.chunk.js → 3017.87931e82.chunk.js} +1 -1
- package/static/js/{3397.a113106b.chunk.js → 3397.fc67b234.chunk.js} +2 -2
- package/static/js/3927.fd3236cc.js +1 -0
- package/static/js/985.e5559fdc.js +1 -0
- package/static/js/{emailmaker_core.e2942b7e.js → emailmaker_core.afa12694.js} +2 -2
- package/translations.pot +154 -163
- package/iframe/iframe-eblock.5638f747b810a63f96cb.html +0 -1
- package/iframe/iframe.5638f747b810a63f96cb.html +0 -1
- package/iframe/js/826.28adc3a2.js +0 -1
- package/static/js/3927.61b738e4.js +0 -1
- package/static/js/4592.2bf8f222.js +0 -1
- /package/iframe/js/{826.28adc3a2.js.LICENSE.txt → 826.179bb97b.js.LICENSE.txt} +0 -0
- /package/static/js/{1538.d2b702b9.chunk.js.LICENSE.txt → 1538.d92fd4ae.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{3397.a113106b.chunk.js.LICENSE.txt → 3397.fc67b234.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{emailmaker_core.e2942b7e.js.LICENSE.txt → emailmaker_core.afa12694.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?f2138bebdbc8d7b8c13f"></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?f2138bebdbc8d7b8c13f";
|
|
2
2
|
const auth_jwt = {
|
|
3
3
|
username: '****',
|
|
4
4
|
password: '****',
|
|
@@ -23,16 +23,17 @@
|
|
|
23
23
|
const getAuthToken = async () => {
|
|
24
24
|
var requestOptions = {
|
|
25
25
|
method: 'POST',
|
|
26
|
-
redirect: 'follow'
|
|
26
|
+
redirect: 'follow',
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
return fetch(origin +
|
|
30
|
-
.then(response => response.json())
|
|
31
|
-
.then(result => result.access_token)
|
|
32
|
-
.catch(error => {
|
|
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) => {
|
|
33
|
+
return '';
|
|
34
|
+
});
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
|
|
36
37
|
const auth_client_oauth = {
|
|
37
38
|
client_id: '****',
|
|
38
39
|
client_secret: '****',
|
|
@@ -127,6 +128,7 @@
|
|
|
127
128
|
counters: { optimization_counter: 2, ai_counter: 3, ai_generator_counter: 4, ai_img_counter: 4 },
|
|
128
129
|
limits: { optimization_limit: 0, ai_limit: 0, ai_generator_limit: 0, ai_img_limit: 0 },
|
|
129
130
|
billingPageUrl: 'https://billing.yandex.ru',
|
|
131
|
+
|
|
130
132
|
mode: 'pro',
|
|
131
133
|
configSwither: true,
|
|
132
134
|
revisionService: true,
|
|
@@ -165,11 +167,11 @@
|
|
|
165
167
|
},
|
|
166
168
|
},
|
|
167
169
|
};
|
|
168
|
-
|
|
170
|
+
|
|
169
171
|
async function init() {
|
|
170
172
|
// const response = await fetch("./key.txt");
|
|
171
173
|
// const key = await response.text();
|
|
172
|
-
const instance = await emailmaker.init({ ...options
|
|
174
|
+
const instance = await emailmaker.init({ ...options });
|
|
173
175
|
// let i = 0;
|
|
174
176
|
// let id = 0;
|
|
175
177
|
// setInterval(() => {
|
|
@@ -181,7 +183,7 @@
|
|
|
181
183
|
// // id: id++,
|
|
182
184
|
// code: '<div>31111111111111111111111111</div>'
|
|
183
185
|
// }
|
|
184
|
-
|
|
186
|
+
|
|
185
187
|
// });
|
|
186
188
|
// }, 30000);
|
|
187
189
|
instance.handleSaveEmail(async ({ value, patch, prev }) => {
|
|
@@ -245,7 +247,7 @@
|
|
|
245
247
|
// email.code.matchAll(TITLE_REGEX).map(item => item[1]).find(title => console.log(title));
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
init()
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
init()
|
|
251
|
+
.then((e) => {})
|
|
252
|
+
.catch((e) => console.log(e));
|
|
251
253
|
// })</script></body></html>
|
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?f2138bebdbc8d7b8c13f"></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?f2138bebdbc8d7b8c13f"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?f2138bebdbc8d7b8c13f";
|
|
2
2
|
const auth_jwt = {
|
|
3
3
|
username: "****",
|
|
4
4
|
password: "****"
|
|
@@ -10,16 +10,27 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const getAuthToken = async () => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
var formdata = new FormData();
|
|
14
|
+
formdata.append("grant_type", "client_credentials");
|
|
15
|
+
formdata.append("client_id", "z72ev3L8JuDoyoE9JQeb2CiVGvVRibQ9q95jNiJ8");
|
|
16
|
+
formdata.append("client_secret", "wxMqp4DbfH6DzKj7xkMg7cQUkh1AbTvxjr04uwQ2");
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var requestOptions = {
|
|
20
|
+
method: 'POST',
|
|
21
|
+
body: formdata,
|
|
22
|
+
redirect: 'follow'
|
|
22
23
|
};
|
|
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
|
+
};
|
|
23
34
|
|
|
24
35
|
const auth_client_oauth = {
|
|
25
36
|
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?f2138bebdbc8d7b8c13f"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?f2138bebdbc8d7b8c13f";
|
|
2
2
|
const auth_jwt = {
|
|
3
3
|
username: '****',
|
|
4
4
|
password: '****',
|
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?f2138bebdbc8d7b8c13f"></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?f2138bebdbc8d7b8c13f";
|
|
2
2
|
const auth_jwt = {
|
|
3
3
|
username: '****',
|
|
4
4
|
password: '****',
|
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?f2138bebdbc8d7b8c13f"></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',
|