@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.7.445",
3
+ "version": "1.7.447",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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.16"
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.221"
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 style = node.getAttribute("style");
75
- if (style) {
74
+ const styleAV = node.getAttribute("style");
75
+ if (styleAV) {
76
76
  // rewrite style links...
77
- const css = await this.rewriteCss(style, siteFolder, currentPath);
78
- if (css !== style) {
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;