@social-mail/social-mail-client 1.2.523 → 1.2.524
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/dist/admin/AdminAppIndex.pack.js +20 -10
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/webComponentsPath.d.ts.map +1 -1
- package/dist/site-editor/editor/webComponentsPath.js +20 -10
- package/dist/site-editor/editor/webComponentsPath.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +20 -10
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/webComponentsPath.ts +39 -10
|
@@ -51765,15 +51765,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
|
|
|
51765
51765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51766
51766
|
const url = this.path + "/dist/editable.js";
|
|
51767
51767
|
const sandbox = frame.getAttribute("sandbox");
|
|
51768
|
-
frame.setAttribute("sandbox", "allow-scripts allow-
|
|
51768
|
+
frame.setAttribute("sandbox", "allow-same-origin allow-scripts allow-popups allow-forms");
|
|
51769
51769
|
const text = yield FetchBuilder.get(url).responseAsText();
|
|
51770
51770
|
const win = doc.defaultView;
|
|
51771
51771
|
win.eval(`window.addEventListener("unsafeEval", (e) => eval(e.detail) , { once: true });`);
|
|
51772
51772
|
win.dispatchEvent(new CustomEvent("unsafeEval", {
|
|
51773
51773
|
detail: text
|
|
51774
51774
|
}));
|
|
51775
|
-
frame.
|
|
51776
|
-
frame.setAttribute("sandbox", sandbox);
|
|
51775
|
+
setTimeout(() => frame.setAttribute("sandbox", ""), 100);
|
|
51777
51776
|
});
|
|
51778
51777
|
}
|
|
51779
51778
|
static run(frame, doc) {
|
|
@@ -51799,19 +51798,30 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
|
|
|
51799
51798
|
Array: win.Array,
|
|
51800
51799
|
RegExp: win.RegExp,
|
|
51801
51800
|
PromiseRejectionEvent: win.PromiseRejectionEvent,
|
|
51802
|
-
setTimeout,
|
|
51803
|
-
setInterval,
|
|
51804
|
-
clearTimeout,
|
|
51805
|
-
clearInterval,
|
|
51801
|
+
setTimeout: (cb, n) => setTimeout(cb, n),
|
|
51802
|
+
setInterval: (cb, n) => setInterval(cb, n),
|
|
51803
|
+
clearTimeout: n => clearTimeout(n),
|
|
51804
|
+
clearInterval: n => clearInterval(n),
|
|
51806
51805
|
Reflect: win.Reflect,
|
|
51807
51806
|
requestAnimationFrame: win.requestAnimationFrame,
|
|
51808
51807
|
requestIdleCallback: win.requestIdleCallback,
|
|
51809
51808
|
Symbol: win.Symbol,
|
|
51810
51809
|
HTMLElement: win.HTMLElement,
|
|
51811
|
-
MutationObserver: win.MutationObserver
|
|
51812
|
-
|
|
51810
|
+
MutationObserver: class extends win.MutationObserver {
|
|
51811
|
+
constructor(a) {
|
|
51812
|
+
super(a);
|
|
51813
|
+
}
|
|
51814
|
+
},
|
|
51815
|
+
IntersectionObserver: class extends win.IntersectionObserver {
|
|
51816
|
+
constructor(a) {
|
|
51817
|
+
super(a);
|
|
51818
|
+
}
|
|
51819
|
+
},
|
|
51813
51820
|
customElements: proxy
|
|
51814
51821
|
};
|
|
51822
|
+
win.HTMLElement.prototype.addEventListener = function (type, listener, options) {
|
|
51823
|
+
return win.EventTarget.prototype.addEventListener.call(this, type, listener, options);
|
|
51824
|
+
};
|
|
51815
51825
|
const keys = Object.keys(globals);
|
|
51816
51826
|
const init = `${keys.map(x => `var ${x} = globalWindow[${JSON.stringify(x)}]`).join(";\n")}`;
|
|
51817
51827
|
const script = `
|
|
@@ -51835,7 +51845,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
|
|
|
51835
51845
|
});
|
|
51836
51846
|
}
|
|
51837
51847
|
});
|
|
51838
|
-
WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.
|
|
51848
|
+
WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.106`;
|
|
51839
51849
|
}
|
|
51840
51850
|
};
|
|
51841
51851
|
});
|