@social-mail/social-mail-client 1.2.640 → 1.2.641
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 +23 -0
- 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/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +23 -0
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +23 -0
- 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/HtmlPageEditor.tsx +29 -0
|
@@ -54228,6 +54228,29 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
54228
54228
|
InstallDragDropHelper(this);
|
|
54229
54229
|
setTimeout(() => {
|
|
54230
54230
|
this.undoRedo = new UndoRedo(this.htmlDocument, this);
|
|
54231
|
+
const clone = this.htmlDocument;
|
|
54232
|
+
if (clone.querySelector(`[styler-layout="component"]`)) {
|
|
54233
|
+
let componentScript = clone.querySelector("[styler-component-script]");
|
|
54234
|
+
if (!componentScript) {
|
|
54235
|
+
componentScript = this.htmlDocument.createElement("script");
|
|
54236
|
+
componentScript.setAttribute("styler-component-script", "component-script");
|
|
54237
|
+
const head = clone.querySelector("head");
|
|
54238
|
+
head.appendChild(componentScript);
|
|
54239
|
+
const scripts = clone.querySelectorAll("script[src]");
|
|
54240
|
+
for (let index = 0; index < scripts.length; index++) {
|
|
54241
|
+
const script = scripts[index];
|
|
54242
|
+
const srcScript = script.getAttribute("src");
|
|
54243
|
+
if (srcScript.includes("@social-mail/social-mail-client/") || srcScript.includes("/component.js")) {
|
|
54244
|
+
script.remove();
|
|
54245
|
+
break;
|
|
54246
|
+
}
|
|
54247
|
+
}
|
|
54248
|
+
}
|
|
54249
|
+
const src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
|
|
54250
|
+
if (componentScript.getAttribute("src") !== src) {
|
|
54251
|
+
componentScript.setAttribute("src", src);
|
|
54252
|
+
}
|
|
54253
|
+
}
|
|
54231
54254
|
}, 10);
|
|
54232
54255
|
});
|
|
54233
54256
|
}
|