@social-mail/social-mail-client 1.4.191 → 1.4.193
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 +13 -5
- 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/public/channel/ChannelApp.pack.js +13 -5
- package/dist/public/channel/ChannelApp.pack.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +13 -5
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +13 -5
- 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/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +13 -5
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/service/ConversationService.tsx +13 -3
|
@@ -27983,7 +27983,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
27983
27983
|
return FetchBuilder.get(path).asText();
|
|
27984
27984
|
}))();
|
|
27985
27985
|
_export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27986
|
-
var _a, _b, _c, _d;
|
|
27986
|
+
var _a, _b, _c, _d, _e;
|
|
27987
27987
|
if (!value) {
|
|
27988
27988
|
e.innerHTML = "";
|
|
27989
27989
|
return;
|
|
@@ -28016,9 +28016,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28016
28016
|
e.appendChild(msg);
|
|
28017
28017
|
return;
|
|
28018
28018
|
}
|
|
28019
|
-
|
|
28019
|
+
const domParser = new DOMParser();
|
|
28020
|
+
const doc = domParser.parseFromString(html, "text/html");
|
|
28020
28021
|
let firstVisibleElement = null;
|
|
28021
|
-
for (const node of descendentIterator(
|
|
28022
|
+
for (const node of descendentIterator(doc.body)) {
|
|
28022
28023
|
if (!firstVisibleElement && node.nodeType === Node.TEXT_NODE) {
|
|
28023
28024
|
const {
|
|
28024
28025
|
parentElement
|
|
@@ -28049,7 +28050,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28049
28050
|
const cidBrackets = `<${cid}>`;
|
|
28050
28051
|
const a = (_c = mail.attachments) === null || _c === void 0 ? void 0 : _c.find(x => x.contentID === cid || x.contentID === cidBrackets);
|
|
28051
28052
|
if (a) {
|
|
28052
|
-
iterator.setAttribute("src", fileUrl(a));
|
|
28053
|
+
iterator.setAttribute("src", (_d = a.url) !== null && _d !== void 0 ? _d : fileUrl(a));
|
|
28053
28054
|
a.included = true;
|
|
28054
28055
|
}
|
|
28055
28056
|
}
|
|
@@ -28063,6 +28064,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28063
28064
|
iterator.target = "_blank";
|
|
28064
28065
|
}
|
|
28065
28066
|
}
|
|
28067
|
+
let start = doc.body.firstChild;
|
|
28068
|
+
while (start) {
|
|
28069
|
+
const next = start.nextSibling;
|
|
28070
|
+
start.remove();
|
|
28071
|
+
msg.appendChild(start);
|
|
28072
|
+
start = next;
|
|
28073
|
+
}
|
|
28066
28074
|
const container = document.createElement("msg-root");
|
|
28067
28075
|
msg.setAttribute("msg", "msg");
|
|
28068
28076
|
container.appendChild(msg);
|
|
@@ -28070,7 +28078,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28070
28078
|
const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
|
|
28071
28079
|
(root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
|
|
28072
28080
|
}
|
|
28073
|
-
if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((
|
|
28081
|
+
if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_e = thread.email) === null || _e === void 0 ? void 0 : _e.senderID)) {
|
|
28074
28082
|
const timeRead = DateTime.now;
|
|
28075
28083
|
thread.timeRead = timeRead;
|
|
28076
28084
|
const es = c.app.resolve(EntityService);
|