@emailmaker/emailmaker 1.0.61 → 1.0.62
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.js +1 -1
- package/iframe/{iframe-eblock.f5bec4815a968824a7de.html → iframe-eblock.b34985f1b45339a1dbe1.html} +1 -1
- package/iframe/{iframe.f5bec4815a968824a7de.html → iframe.b34985f1b45339a1dbe1.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +3 -3
- package/plugin_idigital.html +1 -1
- package/plugin_s.html +1 -1
- package/static/js/{2299.bd334036.chunk.js → 2299.cf90b757.chunk.js} +1 -1
- package/static/js/2574.56baa8a0.js +1 -0
- package/static/js/{5211.7f490bc6.js → 5211.d27a1e14.js} +1 -1
- package/static/js/{7967.665dfd03.js → 7967.5136da11.js} +1 -1
- package/static/js/{8689.b8744e0e.chunk.js → 8689.aa776e90.chunk.js} +1 -1
- package/static/js/{8995.fc864aa4.js → 8995.54a7ed6e.js} +1 -1
- package/static/js/{emailmaker_core.d0afabb6.js → emailmaker_core.6e2a56e1.js} +1 -1
- package/translations.pot +70 -70
- package/static/js/2574.20b0540d.js +0 -1
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?4e621437f893e678fc6a"></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?4e621437f893e678fc6a";
|
|
2
2
|
const auth_jwt = {
|
|
3
3
|
username: '****',
|
|
4
4
|
password: '****',
|
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?4e621437f893e678fc6a"></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?4e621437f893e678fc6a"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?4e621437f893e678fc6a";
|
|
2
2
|
const auth_jwt = {
|
|
3
3
|
username: "****",
|
|
4
4
|
password: "****"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
const getAuthToken = async () => {
|
|
13
13
|
var formdata = new FormData();
|
|
14
14
|
formdata.append("grant_type", "client_credentials");
|
|
15
|
-
formdata.append("client_id", "
|
|
16
|
-
formdata.append("client_secret", "
|
|
15
|
+
formdata.append("client_id", "qjX68m3U2rMSgvlrEGlRYW8scHb9ZasJVJsNpUtV");
|
|
16
|
+
formdata.append("client_secret", "4hyY3zUo2zgCdhtqkyWSkBib7YznFqP0yg8J4Ijl");
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var requestOptions = {
|
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?4e621437f893e678fc6a"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?4e621437f893e678fc6a";
|
|
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?4e621437f893e678fc6a"></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',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2299],{37444:(e,t,n)=>{n.d(t,{F:()=>
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2299],{37444:(e,t,n)=>{n.d(t,{F:()=>D,y:()=>N});var s=n(90536),i=n(31052),o=n(53369),r=n(39990),c=n(83351),a=n(65119),d=n(84568),l=n(93563),u=n(86739),f=n(53200),p=n(63531),m=n(55701),g=n(47036),h=n(94381),w=n(18777),j=n(141),v=n(1779),y=n(40869),b=n(56920),E=n(76793),C=n(843),I=n(35317),x=n(95679),O=n(88528),P=n(62689),S=n(46312),k=n(84612),A=n(58819),M=n(15865),Q=n(62677),T=n(48426),_=n(4115);const D=[r.Q2,c.OV,v.S,j.k,a.yR,d.Nq,l.kE,u.GY,f.B,m.VM,g.f,h.Ad,w.Jg,y.M,b.F,E.KA,C.Sd,I.y,x.CL,O.tO,P.vx,S.Z8,p.yH,k.Zs,A.Uu,M.So,Q.C,T.N,_.U8];function N(){const e=(0,s.configureStore)({reducer:o.A,middleware:e=>e({serializableCheck:!1}).concat(D.map((e=>e.middleware)))});return(0,i.$k)(e.dispatch),e}},90070:(e,t,n)=>{n.d(t,{W0:()=>c,p6:()=>o});var s=n(33288);const i=s.di.createIdentifier(),o=()=>s.di.useInstance(i);class r{constructor(){this._storage=Object.create(null)}get(e){const t=this._storage[e];return t&&(!t.expires||t.expires<Date.now())?t.value:""}set(e,t,n){this._storage[e]={value:t,expires:n.expires?1e3*n.expires+Date.now():void 0}}remove(e){delete this._storage[e]}}const c=e=>s.di.inject(e,i,new r)},23580:(e,t,n)=>{n.d(t,{A$:()=>m,Ff:()=>d,IP:()=>a,My:()=>l,Nj:()=>f,if:()=>c,lg:()=>u,rl:()=>p});var s=n(92810),i=n(45934),o=n(82375),r=n(41664);const c="INJECTION",a=c,d=(e,t)=>{if(!e){const e=o.Q.createChild(),t=(0,r.Q)();return o.Q.inject(t,e),t}return e};function l(e){const t=e.getState()[c];return t&&o.Q.getInstance(t)}function u(){const e=l((0,i.Pj)());return function(t,n){e.inject(t,n)}}function f(e){return l((0,i.Pj)()).getInstance(e)}function p(e){const[t,n]=(0,s.useState)(),o=(0,i.Pj)(),r=(0,s.useRef)(Promise.resolve()),c=l(o);return(0,s.useEffect)((()=>{const t=r.current=r.current.then((()=>c.getInstanceAsync(e))).then((e=>{t===r.current&&n(e)}),(e=>console.log(e)))}),[n,e,o,c]),t}function m(e){return l((0,i.Pj)()).getServices(e)}},93982:(e,t,n)=>{n.d(t,{Zc:()=>d,_q:()=>l,cZ:()=>c,dB:()=>a,ml:()=>u});var s=n(45934),i=n(41664),o=n(23580),r=n(55654);function c(e){return(0,i.Q)(e)}function a(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new r.lt))}function d(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new r.lt)).event}function l(e){return u(e).event}function u(e){return a((0,s.Pj)(),e)}},39217:(e,t,n)=>{n.d(t,{CJ:()=>g,eT:()=>a,ft:()=>m,jY:()=>u,mg:()=>l,no:()=>p,qT:()=>r});var s=n(14315),i=n(44141),o=n(33288);function r(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return`${e}/wp-json`}const c={baseUrl:"https://app.emailmaker.ru/api//wp-json",baseApiParams:{secure:!0,credentials:"same-origin",format:"json"},securityWorker:()=>({credentials:"same-origin"})};c.baseUrl=r("https://app.emailmaker.ru/api/");const a=o.di.createIdentifier();function d(e){return o.di.getOrCreateInstance(e,a,(()=>function(e=c){const t=new Map;return{create(n){const i=new s.RQ({...e,...n});return t.set(i,n),i},getOptions:()=>e,setOptions(n){e=n;for(const[s,i]of t)Object.assign(s,{...e,...i})}}}()))}function l(e,t={}){return d(e).create(t)}const u=o.di.createIdentifier(),f=o.di.createIdentifier(),p=o.di.createIdentifier(),m=e=>{var t;t=e,o.di.inject(t,p,{execute:async(e,n={})=>{const s=o.di.getServices(t,u),i=new Request(e,n);for(const t of s)await t.execute(i);let r=await fetch(i);const c=o.di.getServices(t,f);for(const t of c)r=await t.execute(r);return r}});const n=o.di.getInstance(e,p);o.di.inject(e,i.Pz,l(e,{customFetch:(null===n||void 0===n?void 0:n.execute)||fetch}))};let g;!function(e){const t="https://racs.rest/v3";e.post=function(e,n){const s={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,s)},e.getAll=async function(e,n=0){const s={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:`{"filter":{},"limit":${n}}`},i=await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,s);return await i.json()}}(g||(g={}))},15230:(e,t,n)=>{n.d(t,{Cd:()=>c,Lz:()=>r,ax:()=>a,f5:()=>i,sZ:()=>o});var s=n(41664);const i="Not implemented in plugin",o=(0,s.Q)(),r=(0,s.Q)(),c=(0,s.Q)(),a=(0,s.Q)();(0,s.Q)(),(0,s.Q)()},12299:(e,t,n)=>{n.r(t),n.d(t,{init:()=>x});var s=n(39217),i=n(90070),o=n(37444),r=n(77509),c=n(33288),a=n(15230),d=n(14386),l=n(8671),u=n(55853),f=n(19209),p=n(33746),m=n(25565),g=n(62410),h=n(63772),w=n(37e3),j=n(1383),v=n(1281),y=n(85163),b=n(93982),E=n(13522),C=n(92268);y.EW.isPlugin=!0,y._P.isEditor=!1;const I=(0,d.E)([l.e,u.E,f.F,j.h,p.F,v.Z,m.i,g.r,h.Z,w.JR,C.w]);async function x(e){const t=(0,o.y)(),n=new r.j,d=await(0,w.qF)(e.element,n),l=w.sC.get(d);if(l){const t=await l;if(t.getElement()===d)return await t.reset(e)}const u=async function(){if(c.di.inject(t,a.ax,t),e.standaloneKey){c.di.inject(t,m.E,e.standaloneKey);const s=(0,b.Zc)(t,E.A.FILE_PROXY_EVENT_ID);n.addDisposable(s((async({url:e})=>(await fetch(e)).blob()),Number.MIN_VALUE))}c.di.inject(t,a.Lz,n),(0,i.W0)(t),(0,s.ft)(t);const o=await I(t);return await o.setOptions(e),c.di.inject(t,a.Cd,o),o.instance}();return d&&w.sC.set(d,u),u}},37e3:(e,t,n)=>{n.d(t,{JR:()=>w,qF:()=>j,sC:()=>v});n(57650),n(57964);var s=n(26254),i=n(89949),o=n(92810),r=n(97716),c=n(45934),a=n(64617),d=n(82212),l=n(32269),u=n(14386),f=n(893),p=n(33288),m=n(15230),g=n(17126),h=n(70082);const w=(0,u.l)((e=>{let t=null;const n=p.di.getInstance(e,m.Lz);let u;return{instance:{getElement:()=>t},async setOptions(w){let y=await j(w.element,n);const{instance:b}=p.di.getInstance(e,m.Cd)||{};if(t!==y){if(t&&v.delete(t),!(y&&v.has(y)&&b)){if(u&&u.dispose(),t=y,u=n.addDisposable(new l.jG),y)v.set(y,b);else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};u.addDispose(t),y=e}return(t=>new Promise(((n,l)=>{var p;if(null!==(p=u)&&void 0!==p&&p.isDisposed())n();else{const l=(0,r.H)(t);l.render((0,h.jsx)(o.StrictMode,{children:(0,h.jsx)(c.Kq,{store:e,children:(0,h.jsx)(i.R,{onLoad:n,children:(0,h.jsx)(g.or.Provider,{value:{element:t},children:(0,h.jsx)(a.fS,{children:(0,h.jsx)(d.Y,{children:(0,h.jsx)(f.m,{children:(0,h.jsx)(s.A,{})})})})})})})})),u.addDispose(n),u.addDispose((()=>l.unmount()))}})))(y)}console.log("multiple init call on single HTMLELEMENT")}},dispose(){var e;null===(e=u)||void 0===e||e.dispose()}}}));function j(e,t){if("undefined"!==typeof e){if("string"===typeof e){if(e=document.querySelector(e))return e;const n=t.addDisposable(new l.jG);return new Promise(((t,s)=>{const i=new MutationObserver((()=>{(e=document.querySelector(e))&&(n.dispose(),t(e))}));i.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),n.addDisposable({dispose:()=>i.disconnect()})}))}return e}return e}const v=new Map},25565:(e,t,n)=>{n.d(t,{E:()=>l,i:()=>u});var s=n(20116),i=n(55084),o=n(14386),r=n(97001),c=n(44376),a=n(91738),d=n(33288);const l=d.di.createIdentifier(),u=(0,o.l)((async e=>{const t=d.di.getInstance(e,l);if(t){const s=(await n.e(9640).then(n.bind(n,76794))).injectStandaloneMocks;await s(e,t)}(0,s.B)(e,i.A);const o=new r.P(e),u=new c.y(e);return{async setOptions(e){u.setOptions(e),await o.show(e.content)},instance:{...u.get(),show:e=>o.show(e),save:()=>o.save(),getEmail:()=>o.getEmail(),getBlocks:()=>o.getBlocks(),getEmailRevisions:()=>o.getEmailRevisions(),getComments:()=>o.getComments(),compileEmail:async e=>e?(0,a.AU)(e):await o.compileEmail(),getCodeErrors:()=>o.getCodeErrors()}}}))}}]);
|