@social-mail/social-mail-web-server 1.7.445 → 1.7.447
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/server/seed/ui/seed-ui.js +2 -2
- package/dist/server/services/files/web-content/WebContentTranspileService.d.ts.map +1 -1
- package/dist/server/services/files/web-content/WebContentTranspileService.js +14 -4
- package/dist/server/services/files/web-content/WebContentTranspileService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/seed/ui/seed-ui.ts +2 -2
- package/src/server/services/files/web-content/WebContentTranspileService.ts +16 -4
package/package.json
CHANGED
|
@@ -5,13 +5,13 @@ export default async function seedUI(config: DBConfig) {
|
|
|
5
5
|
await config.saveVersion(UIPackageConfig, {
|
|
6
6
|
package: "@social-mail/social-mail-client",
|
|
7
7
|
view: "dist/web/AppIndex",
|
|
8
|
-
version: "1.8.
|
|
8
|
+
version: "1.8.18"
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
await config.saveVersion(WebComponentsPackageConfig, {
|
|
12
12
|
package: "@social-mail/web-components",
|
|
13
13
|
view: "dist/index.js",
|
|
14
|
-
version: "1.0.
|
|
14
|
+
version: "1.0.228"
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
await config.saveVersion(FAFreePackageConfig, {
|
|
@@ -71,15 +71,25 @@ export default class WebContentTranspileService
|
|
|
71
71
|
continue;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
74
|
+
const styleAV = node.getAttribute("style");
|
|
75
|
+
if (styleAV) {
|
|
76
76
|
// rewrite style links...
|
|
77
|
-
const css = await this.rewriteCss(
|
|
78
|
-
if (css !==
|
|
77
|
+
const css = await this.rewriteCss(styleAV, siteFolder, currentPath);
|
|
78
|
+
if (css !== styleAV) {
|
|
79
79
|
node.setAttribute("style", css);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
// change all inline styler- styles
|
|
84
|
+
const style = (node as HTMLElement).style;
|
|
85
|
+
if (style) {
|
|
86
|
+
for(const attributeName of node.getAttributeNames()) {
|
|
87
|
+
if(attributeName.startsWith("styler-")) {
|
|
88
|
+
style.setProperty(`--${attributeName}`, node.getAttribute(attributeName));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
83
93
|
if (/svg/i.test(node.nodeName)) {
|
|
84
94
|
// svg should not be transformed
|
|
85
95
|
await this.rewriteLink(node, "src", siteFolder, currentPath);
|
|
@@ -102,6 +112,8 @@ export default class WebContentTranspileService
|
|
|
102
112
|
|
|
103
113
|
}
|
|
104
114
|
|
|
115
|
+
document.body.setAttribute("styler-attributes-expanded", "yes");
|
|
116
|
+
|
|
105
117
|
const htmlContent = document.doctype?.nodeName === "html" ? `<!DOCTYPE html>${document.documentElement.outerHTML}` : document.documentElement.outerHTML;
|
|
106
118
|
|
|
107
119
|
return htmlContent;
|