@social-mail/social-mail-client 1.2.613 → 1.2.615
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 +6 -20
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/CDN.d.ts +4 -0
- package/dist/common/CDN.d.ts.map +1 -0
- package/dist/common/CDN.js +20 -0
- package/dist/common/CDN.js.map +1 -0
- package/dist/model/model.d.ts +1 -0
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/BlogImageService.d.ts.map +1 -1
- package/dist/public/channel/BlogImageService.js +5 -3
- package/dist/public/channel/BlogImageService.js.map +1 -1
- package/dist/public/channel/BlogService.d.ts.map +1 -1
- package/dist/public/channel/BlogService.js +5 -3
- package/dist/public/channel/BlogService.js.map +1 -1
- package/dist/public/channel/ChannelView.d.ts.map +1 -1
- package/dist/public/channel/ChannelView.js +19 -33
- package/dist/public/channel/ChannelView.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +62 -114
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +7 -10
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/channel/PostView.js +1 -1
- package/dist/public/channel/PostView.js.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.d.ts.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.js +2 -0
- package/dist/public/channel/styles/channelViewStyle.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.min.js.map +1 -1
- package/dist/public/store/Store.pack.js.map +1 -1
- package/dist/public/store/Store.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
- package/dist/site-editor/editor/webComponentsPath.d.ts +0 -1
- package/dist/site-editor/editor/webComponentsPath.d.ts.map +1 -1
- package/dist/site-editor/editor/webComponentsPath.js +1 -15
- package/dist/site-editor/editor/webComponentsPath.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +6 -20
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +5 -5
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/common/CDN.ts +12 -0
- package/src/model/model.ts +1 -0
- package/src/public/channel/BlogImageService.ts +2 -1
- package/src/public/channel/BlogService.ts +2 -1
- package/src/public/channel/ChannelView.tsx +43 -27
- package/src/public/channel/PostView.tsx +2 -2
- package/src/public/channel/styles/channelViewStyle.ts +2 -0
- package/src/site-editor/editor/webComponentsPath.ts +15 -14
- package/src/web/page/mails/service/ConversationService.tsx +1 -1
|
@@ -1976,7 +1976,7 @@ const UMD = new UMDClass();
|
|
|
1976
1976
|
|
|
1977
1977
|
AmdLoader.instance.register(
|
|
1978
1978
|
["@social-mail/social-mail-client","@web-atoms/core","reflect-metadata","@web-atoms/date-time","@web-atoms/entity","@web-atoms/web-controls","@web-atoms/data-styles","@web-atoms/email-dom"],
|
|
1979
|
-
["@social-mail/social-mail-client/dist/public/channel/ChannelView","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@social-mail/social-mail-client/dist/public/channel/BlogService","@web-atoms/core/dist/di/DISingleton","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@web-atoms/core/dist/style/styled","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/services/email/EmailContentDownloader","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/web/page/mails/service/EngagementService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/core/dist/core/sleep","@social-mail/social-mail-client/dist/public/channel/emoji/EmojiPopup","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/public/channel/styles/channelViewStyle","@social-mail/social-mail-client/dist/common/TestMode","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@social-mail/social-mail-client/dist/public/channel/PostView","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@web-atoms/email-dom/dist/DomToString","@web-atoms/email-dom/dist/dom/StyleHelper","@web-atoms/email-dom/dist/style/mergeStyle","@social-mail/social-mail-client/dist/common/events/CommonEvents","@social-mail/social-mail-client/dist/web/commands/MailAppEvents","@social-mail/social-mail-client/dist/common/fileUrl","@social-mail/social-mail-client/dist/public/channel/controls/MediaCarousel","@social-mail/social-mail-client/dist/
|
|
1979
|
+
["@social-mail/social-mail-client/dist/public/channel/ChannelView","@web-atoms/core/dist/core/InjectProperty","@web-atoms/core/dist/web/controls/AtomControl","@web-atoms/core/dist/core/AtomBinder","@web-atoms/core/dist/core/types","reflect-metadata","@web-atoms/core/dist/core/AtomMap","@web-atoms/core/dist/core/AtomComponent","@web-atoms/core/dist/App","@web-atoms/core/dist/core/AtomDispatcher","@web-atoms/core/dist/di/RegisterSingleton","@web-atoms/core/dist/di/Register","@web-atoms/core/dist/di/ServiceCollection","@web-atoms/core/dist/di/TypeKey","@web-atoms/core/dist/di/ServiceProvider","@web-atoms/core/dist/core/TransientDisposable","@web-atoms/core/dist/di/Inject","@web-atoms/core/dist/services/BusyIndicatorService","@web-atoms/core/dist/core/AtomDisposableList","@web-atoms/core/dist/core/AtomWatcher","@web-atoms/core/dist/core/ExpressionParser","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/Hacks","@web-atoms/core/dist/web/core/AtomUI","@web-atoms/core/dist/core/InheritedProperty","@web-atoms/core/dist/core/PropertyMap","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/BindableProperty","@web-atoms/core/dist/core/Command","@web-atoms/core/dist/core/EventScope","@web-atoms/date-time/dist/DateTime","@web-atoms/date-time/dist/TimeSpan","@web-atoms/core/dist/core/Route","@web-atoms/core/dist/core/StringHelper","@web-atoms/core/dist/core/FormattedString","@web-atoms/core/dist/core/WebImage","@web-atoms/core/dist/web/styles/AtomStyle","@web-atoms/core/dist/web/styles/AtomStyleSheet","@social-mail/social-mail-client/dist/public/channel/BlogService","@web-atoms/core/dist/di/DISingleton","@social-mail/social-mail-client/dist/services/EntityService","@web-atoms/entity/dist/services/BaseEntityService","@web-atoms/entity/dist/models/Cloner","@web-atoms/entity/dist/models/cloneSource","@web-atoms/entity/dist/models/IEntityModel","@web-atoms/entity/dist/services/HttpSession","@web-atoms/core/dist/services/http/JsonError","@web-atoms/entity/dist/models/TaskManager","@web-atoms/entity/dist/models/Queue","@web-atoms/entity/dist/services/mergeProperties","@web-atoms/entity/dist/services/Query","@web-atoms/entity/dist/services/StringHelper","@web-atoms/entity/dist/services/resolve","@social-mail/social-mail-client/dist/services/BusyProgress","@web-atoms/core/dist/style/styled","@social-mail/social-mail-client/dist/common/apiPath","@social-mail/social-mail-client/dist/model/model","@social-mail/social-mail-client/dist/common/Sql","@social-mail/social-mail-client/dist/services/email/EmailContentDownloader","@web-atoms/core/dist/services/FetchBuilder","@social-mail/social-mail-client/dist/web/page/mails/service/EngagementService","@social-mail/social-mail-client/dist/common/cache/CacheTTL","@social-mail/social-mail-client/dist/common/CDN","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/services/NavigationService","@web-atoms/core/dist/core/AtomUri","@web-atoms/core/dist/services/ReferenceService","@web-atoms/core/dist/web/services/PopupService","@web-atoms/core/dist/web/services/PopupWindow","@web-atoms/core/dist/core/sleep","@social-mail/social-mail-client/dist/public/channel/emoji/EmojiPopup","@web-atoms/core/dist/web/WebApp","@web-atoms/core/dist/core/AtomOnce","@web-atoms/core/dist/web/services/WebBusyIndicatorService","@web-atoms/core/dist/web/styles/StyleBuilder","@web-atoms/core/dist/web/services/WindowService","@web-atoms/core/dist/Atom","@web-atoms/core/dist/core/AtomLoader","@web-atoms/core/dist/services/JsonService","@web-atoms/core/dist/core/FormattedError","@web-atoms/core/dist/view-model/AtomWindowViewModel","@web-atoms/core/dist/view-model/AtomViewModel","@web-atoms/core/dist/view-model/baseTypes","@web-atoms/core/dist/web/controls/AtomAlertWindow","@web-atoms/core/dist/web/styles/AtomAlertWindowStyle","@web-atoms/core/dist/core/Colors","@web-atoms/core/dist/web/styles/AtomWindowStyle","@web-atoms/core/src/web/images/close-button-hover.svg","@web-atoms/core/dist/web/controls/AtomWindow","@web-atoms/core/dist/web/controls/AtomTemplate","@web-atoms/core/dist/web/controls/AtomNotification","@web-atoms/core/dist/web/styles/AtomNotificationStyle","@web-atoms/core/dist/web/styles/AtomPopupStyle","@web-atoms/core/dist/web/services/NotificationPopup","@web-atoms/core/dist/web/styles/AtomTheme","@web-atoms/web-controls/dist/basic/InlinePopup","@web-atoms/web-controls/dist/basic/styles/inline-popup-style","@social-mail/social-mail-client/dist/style/GlobalStyle","@web-atoms/core/dist/core/AtomList","@social-mail/social-mail-client/dist/style/OverrideAppStyle","@web-atoms/data-styles/data-styles","@social-mail/social-mail-client/dist/public/channel/styles/channelViewStyle","@social-mail/social-mail-client/dist/common/TestMode","@web-atoms/web-controls/dist/basic/AtomRepeater","@web-atoms/core/dist/core/WatchProperty","@web-atoms/web-controls/dist/basic/MergeNode","@web-atoms/web-controls/dist/basic/ItemPath","@web-atoms/web-controls/dist/basic/styles/ui-display-none-style","@web-atoms/web-controls/dist/basic/styles/popup-style","@web-atoms/web-controls/dist/basic/styles/suggestion-popup","@web-atoms/web-controls/dist/basic/styles/repeater-style","@web-atoms/web-controls/dist/DataAttributes","@social-mail/social-mail-client/dist/public/channel/PostView","@social-mail/social-mail-client/dist/common/date/DateFormats","@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService","@web-atoms/email-dom/dist/DomToString","@web-atoms/email-dom/dist/dom/StyleHelper","@web-atoms/email-dom/dist/style/mergeStyle","@social-mail/social-mail-client/dist/common/events/CommonEvents","@social-mail/social-mail-client/dist/web/commands/MailAppEvents","@social-mail/social-mail-client/dist/common/fileUrl","@social-mail/social-mail-client/dist/public/channel/controls/MediaCarousel","@social-mail/social-mail-client/dist/public/channel/controls/TagCloud","@social-mail/social-mail-client/dist/public/channel/UrlService","@social-mail/social-mail-client/dist/common/Slugger","@social-mail/social-mail-client/dist/common/toBase36","@social-mail/social-mail-client/dist/public/channel/controls/PostList","@social-mail/social-mail-client/content/images/gif/loader.gif","@social-mail/social-mail-client/dist/public/channel/BlogImageService","@social-mail/social-mail-client/content/images/svg/logo/logo-orange.svg","@social-mail/social-mail-client/dist/public/channel/controls/RecentPosts","@social-mail/social-mail-client/dist/public/channel/controls/BlogHeader","@web-atoms/core/dist/Pack","@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater","@social-mail/social-mail-client/dist/public/channel/PostSummary","@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath"]);
|
|
1980
1980
|
|
|
1981
1981
|
System.register([], function (_export, _context) {
|
|
1982
1982
|
"use strict";
|
|
@@ -16107,10 +16107,33 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../../../service
|
|
|
16107
16107
|
|
|
16108
16108
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/service/EngagementService");
|
|
16109
16109
|
|
|
16110
|
-
System.register([
|
|
16110
|
+
System.register([], function (_export, _context) {
|
|
16111
16111
|
"use strict";
|
|
16112
16112
|
|
|
16113
|
-
var
|
|
16113
|
+
var _a, _b, cdn, CDN;
|
|
16114
|
+
return {
|
|
16115
|
+
setters: [],
|
|
16116
|
+
execute: function () {
|
|
16117
|
+
cdn = (_b = (_a = window.socialMail) === null || _a === void 0 ? void 0 : _a.cdn) !== null && _b !== void 0 ? _b : "d2qk6ju4y4xfge.cloudfront.net";
|
|
16118
|
+
if (cdn) {
|
|
16119
|
+
cdn = "https://" + cdn;
|
|
16120
|
+
}
|
|
16121
|
+
_export("CDN", CDN = {
|
|
16122
|
+
toCDNUrl(url) {
|
|
16123
|
+
return cdn + url;
|
|
16124
|
+
}
|
|
16125
|
+
});
|
|
16126
|
+
}
|
|
16127
|
+
};
|
|
16128
|
+
});
|
|
16129
|
+
//# sourceMappingURL=CDN.js.map
|
|
16130
|
+
|
|
16131
|
+
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/CDN");
|
|
16132
|
+
|
|
16133
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../services/EntityService", "../../model/model", "../../common/Sql", "../../services/email/EmailContentDownloader", "../../web/page/mails/service/EngagementService", "../../common/apiPath", "../../common/cache/CacheTTL", "../../common/CDN"], function (_export, _context) {
|
|
16134
|
+
"use strict";
|
|
16135
|
+
|
|
16136
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, Mailbox, MailboxEmail, Sql, EmailContentDownloader, EngagementService, apiPath, CacheTTL, CDN, cacheVersion, updateAttachments, BlogService;
|
|
16114
16137
|
return {
|
|
16115
16138
|
setters: [function (_tslib) {
|
|
16116
16139
|
__awaiter = _tslib.__awaiter;
|
|
@@ -16136,13 +16159,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
16136
16159
|
apiPath = _commonApiPath.apiPath;
|
|
16137
16160
|
}, function (_commonCacheCacheTTL) {
|
|
16138
16161
|
CacheTTL = _commonCacheCacheTTL.CacheTTL;
|
|
16162
|
+
}, function (_commonCDN) {
|
|
16163
|
+
CDN = _commonCDN.CDN;
|
|
16139
16164
|
}],
|
|
16140
16165
|
execute: function () {
|
|
16141
16166
|
cacheVersion = "1a";
|
|
16142
16167
|
updateAttachments = (channelID, email) => {
|
|
16143
16168
|
if (email.attachments) {
|
|
16144
16169
|
for (const iterator of email.attachments) {
|
|
16145
|
-
iterator.url = apiPath(`/api/channel/
|
|
16170
|
+
iterator.url = CDN.toCDNUrl(apiPath(`/api/channel/d/view/${channelID}/${iterator.postID}/${iterator.appFileID}/${iterator.name}`));
|
|
16146
16171
|
}
|
|
16147
16172
|
}
|
|
16148
16173
|
};
|
|
@@ -21561,6 +21586,8 @@ box-sizing: border-box;
|
|
|
21561
21586
|
padding-left: 10px;
|
|
21562
21587
|
padding-right: 10px;
|
|
21563
21588
|
gap: 5px;
|
|
21589
|
+
margin-left: auto;
|
|
21590
|
+
cursor: pointer;
|
|
21564
21591
|
}
|
|
21565
21592
|
|
|
21566
21593
|
& > header {
|
|
@@ -23901,7 +23928,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23901
23928
|
}],
|
|
23902
23929
|
execute: function () {
|
|
23903
23930
|
_export("renderMail", renderMail = AtomControl.registerProperty("data-html", "html", (c, e, value) => {
|
|
23904
|
-
var _a, _b, _c;
|
|
23931
|
+
var _a, _b, _c, _d;
|
|
23905
23932
|
if (!value) {
|
|
23906
23933
|
e.innerHTML = "";
|
|
23907
23934
|
return;
|
|
@@ -23927,7 +23954,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23927
23954
|
const {
|
|
23928
23955
|
parentElement
|
|
23929
23956
|
} = node;
|
|
23930
|
-
if (parentElement.tagName !== "STYLE") {
|
|
23957
|
+
if (parentElement.tagName !== "STYLE" && ((_a = node.nodeValue) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
23931
23958
|
firstVisibleElement || (firstVisibleElement = node.parentElement);
|
|
23932
23959
|
}
|
|
23933
23960
|
}
|
|
@@ -23937,7 +23964,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23937
23964
|
const iterator = node;
|
|
23938
23965
|
let cid = iterator.getAttribute("data-content-id");
|
|
23939
23966
|
if (cid) {
|
|
23940
|
-
const a = (
|
|
23967
|
+
const a = (_b = mail.attachments) === null || _b === void 0 ? void 0 : _b.find(x => x.contentID === cid);
|
|
23941
23968
|
if (a) {
|
|
23942
23969
|
iterator.setAttribute("src", a.url);
|
|
23943
23970
|
}
|
|
@@ -23950,7 +23977,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23950
23977
|
if (src) {
|
|
23951
23978
|
if (src.startsWith("cid:")) {
|
|
23952
23979
|
cid = src.substring(4);
|
|
23953
|
-
const a = (
|
|
23980
|
+
const a = (_c = mail.attachments) === null || _c === void 0 ? void 0 : _c.find(x => x.contentID === cid);
|
|
23954
23981
|
if (a) {
|
|
23955
23982
|
iterator.setAttribute("src", fileUrl(a));
|
|
23956
23983
|
}
|
|
@@ -23986,7 +24013,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23986
24013
|
const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
|
|
23987
24014
|
(root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
|
|
23988
24015
|
}
|
|
23989
|
-
if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((
|
|
24016
|
+
if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_d = thread.email) === null || _d === void 0 ? void 0 : _d.senderID)) {
|
|
23990
24017
|
const timeRead = DateTime.now;
|
|
23991
24018
|
thread.timeRead = timeRead;
|
|
23992
24019
|
const control = AtomControl.from(e);
|
|
@@ -24319,7 +24346,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24319
24346
|
"data-element": "engagements",
|
|
24320
24347
|
title: `View all ${x.engagement} ${x.count}`,
|
|
24321
24348
|
text: `${x.engagement} ${x.count}`
|
|
24322
|
-
})), XNode.create("share-button", {
|
|
24349
|
+
})), !email.parentID && XNode.create("share-button", {
|
|
24323
24350
|
title: email.subject,
|
|
24324
24351
|
link: location.href
|
|
24325
24352
|
}, XNode.create("i", {
|
|
@@ -24353,59 +24380,6 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24353
24380
|
|
|
24354
24381
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/channel/PostView");
|
|
24355
24382
|
|
|
24356
|
-
System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/services/NavigationService", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl"], function (_export, _context) {
|
|
24357
|
-
"use strict";
|
|
24358
|
-
|
|
24359
|
-
var XNode, NavigationService, styled, AtomControl;
|
|
24360
|
-
function CopyIcon({
|
|
24361
|
-
text
|
|
24362
|
-
}) {
|
|
24363
|
-
return XNode.create("i", {
|
|
24364
|
-
class: "fa-duotone fa-paste",
|
|
24365
|
-
"data-copy-icon": text,
|
|
24366
|
-
title: `Copy ${text}`
|
|
24367
|
-
});
|
|
24368
|
-
}
|
|
24369
|
-
_export("default", CopyIcon);
|
|
24370
|
-
return {
|
|
24371
|
-
setters: [function (_webAtomsCoreDistCoreXNode) {
|
|
24372
|
-
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
24373
|
-
}, function (_webAtomsCoreDistServicesNavigationService) {
|
|
24374
|
-
NavigationService = _webAtomsCoreDistServicesNavigationService.NavigationService;
|
|
24375
|
-
}, function (_webAtomsCoreDistStyleStyled) {
|
|
24376
|
-
styled = _webAtomsCoreDistStyleStyled.default;
|
|
24377
|
-
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
24378
|
-
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
24379
|
-
}],
|
|
24380
|
-
execute: function () {
|
|
24381
|
-
styled.css`
|
|
24382
|
-
i[data-copy-icon] {
|
|
24383
|
-
padding: 5px;
|
|
24384
|
-
cursor: pointer;
|
|
24385
|
-
}
|
|
24386
|
-
`.withId("data-copy-icon").installGlobal();
|
|
24387
|
-
document.body.addEventListener("click", e => {
|
|
24388
|
-
var _a;
|
|
24389
|
-
const target = e.target;
|
|
24390
|
-
const text = (_a = target.dataset.copyIcon) === null || _a === void 0 ? void 0 : _a.trim();
|
|
24391
|
-
if (!text) {
|
|
24392
|
-
return;
|
|
24393
|
-
}
|
|
24394
|
-
navigator.clipboard.writeText(text).then(x => {
|
|
24395
|
-
const control = AtomControl.from(target);
|
|
24396
|
-
const ns = control.app.resolve(NavigationService);
|
|
24397
|
-
return ns.notify(XNode.create("div", null, XNode.create("p", {
|
|
24398
|
-
text: text
|
|
24399
|
-
}), XNode.create("p", null, "Copied to clipboard successfully")));
|
|
24400
|
-
}).catch(error => console.error(error));
|
|
24401
|
-
});
|
|
24402
|
-
}
|
|
24403
|
-
};
|
|
24404
|
-
});
|
|
24405
|
-
//# sourceMappingURL=CopyIcon.js.map
|
|
24406
|
-
|
|
24407
|
-
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/buttons/CopyIcon");
|
|
24408
|
-
|
|
24409
24383
|
System.register([], function (_export, _context) {
|
|
24410
24384
|
"use strict";
|
|
24411
24385
|
|
|
@@ -24671,10 +24645,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
24671
24645
|
|
|
24672
24646
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/channel/controls/TagCloud");
|
|
24673
24647
|
|
|
24674
|
-
System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../services/EntityService", "@web-atoms/core/dist/di/DISingleton", "../../common/Sql", "../../model/model", "../../common/cache/CacheTTL", "../../common/apiPath", "@social-mail/social-mail-client/content/images/svg/logo/logo-orange.svg"], function (_export, _context) {
|
|
24648
|
+
System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../services/EntityService", "@web-atoms/core/dist/di/DISingleton", "../../common/Sql", "../../model/model", "../../common/cache/CacheTTL", "../../common/apiPath", "@social-mail/social-mail-client/content/images/svg/logo/logo-orange.svg", "../../common/CDN"], function (_export, _context) {
|
|
24675
24649
|
"use strict";
|
|
24676
24650
|
|
|
24677
|
-
var __awaiter, __decorate, __metadata, Inject, EntityService, DISingleton, Sql, AppFile, CacheTTL, apiPath, orangeLogo, cacheVersion, cacheSeconds, BlogImageService;
|
|
24651
|
+
var __awaiter, __decorate, __metadata, Inject, EntityService, DISingleton, Sql, AppFile, CacheTTL, apiPath, orangeLogo, CDN, cacheVersion, cacheSeconds, BlogImageService;
|
|
24678
24652
|
return {
|
|
24679
24653
|
setters: [function (_tslib) {
|
|
24680
24654
|
__awaiter = _tslib.__awaiter;
|
|
@@ -24696,6 +24670,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../services/Enti
|
|
|
24696
24670
|
apiPath = _commonApiPath.apiPath;
|
|
24697
24671
|
}, function (_socialMailSocialMailClientContentImagesSvgLogoLogoOrangeSvg) {
|
|
24698
24672
|
orangeLogo = _socialMailSocialMailClientContentImagesSvgLogoLogoOrangeSvg.default;
|
|
24673
|
+
}, function (_commonCDN) {
|
|
24674
|
+
CDN = _commonCDN.CDN;
|
|
24699
24675
|
}],
|
|
24700
24676
|
execute: function () {
|
|
24701
24677
|
cacheVersion = "1a";
|
|
@@ -24715,7 +24691,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../services/Enti
|
|
|
24715
24691
|
cacheSeconds
|
|
24716
24692
|
});
|
|
24717
24693
|
if (file) {
|
|
24718
|
-
return apiPath(`/api/channel/
|
|
24694
|
+
return CDN.toCDNUrl(apiPath(`/api/channel/d/webp(100)/${channelID}/${file.postID}/${file.appFileID}/${file.name}/${file.name}.100.webp`));
|
|
24719
24695
|
}
|
|
24720
24696
|
return orangeLogo;
|
|
24721
24697
|
});
|
|
@@ -25312,20 +25288,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
|
|
|
25312
25288
|
});
|
|
25313
25289
|
};
|
|
25314
25290
|
_export("WebComponents", WebComponents = class WebComponents {
|
|
25315
|
-
static run2(frame, doc) {
|
|
25316
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25317
|
-
const url = this.path + "/dist/editable.js";
|
|
25318
|
-
const sandbox = frame.getAttribute("sandbox");
|
|
25319
|
-
frame.setAttribute("sandbox", "allow-same-origin allow-scripts allow-popups allow-forms");
|
|
25320
|
-
const text = yield FetchBuilder.get(url).responseAsText();
|
|
25321
|
-
const win = doc.defaultView;
|
|
25322
|
-
win.eval(`window.addEventListener("unsafeEval", (e) => eval(e.detail) , { once: true });`);
|
|
25323
|
-
win.dispatchEvent(new CustomEvent("unsafeEval", {
|
|
25324
|
-
detail: text
|
|
25325
|
-
}));
|
|
25326
|
-
setTimeout(() => frame.setAttribute("sandbox", ""), 100);
|
|
25327
|
-
});
|
|
25328
|
-
}
|
|
25329
25291
|
static run(frame, doc) {
|
|
25330
25292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25331
25293
|
const url = this.path + "/dist/editable.js";
|
|
@@ -25444,7 +25406,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
|
|
|
25444
25406
|
});
|
|
25445
25407
|
}
|
|
25446
25408
|
});
|
|
25447
|
-
WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.
|
|
25409
|
+
WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.129`;
|
|
25448
25410
|
}
|
|
25449
25411
|
};
|
|
25450
25412
|
});
|
|
@@ -25452,10 +25414,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
|
|
|
25452
25414
|
|
|
25453
25415
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath");
|
|
25454
25416
|
|
|
25455
|
-
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/web/controls/AtomControl", "./BlogService", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "./emoji/EmojiPopup", "../../style/GlobalStyle", "./styles/channelViewStyle", "@web-atoms/
|
|
25417
|
+
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/web/controls/AtomControl", "./BlogService", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "./emoji/EmojiPopup", "../../style/GlobalStyle", "./styles/channelViewStyle", "@web-atoms/web-controls/dist/basic/AtomRepeater", "./PostView", "./controls/TagCloud", "./controls/PostList", "./controls/RecentPosts", "./controls/BlogHeader", "@web-atoms/core/dist/Pack", "../../common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/Bind", "./PostSummary", "./UrlService", "../../site-editor/editor/webComponentsPath", "./BlogImageService"], function (_export, _context) {
|
|
25456
25418
|
"use strict";
|
|
25457
25419
|
|
|
25458
|
-
var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, BlogService, XNode, Action, EmojiPopup,
|
|
25420
|
+
var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, BlogService, XNode, Action, EmojiPopup, AtomRepeater, PostView, TagCloud, PopularPosts, RecentPosts, BlogHeader, Pack, InfiniteRepeater, Bind, PostSummary, UrlService, WebComponents, BlogImageService, channel, emailID, tag, author, commentIcon, ChannelMessage;
|
|
25459
25421
|
return {
|
|
25460
25422
|
setters: [function (_tslib) {
|
|
25461
25423
|
__awaiter = _tslib.__awaiter;
|
|
@@ -25473,14 +25435,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
25473
25435
|
Action = _webAtomsCoreDistViewModelAction.default;
|
|
25474
25436
|
}, function (_emojiEmojiPopup) {
|
|
25475
25437
|
EmojiPopup = _emojiEmojiPopup.default;
|
|
25476
|
-
}, function (_styleGlobalStyle) {}, function (_stylesChannelViewStyle) {}, function (
|
|
25477
|
-
PopupService = _webAtomsCoreDistWebServicesPopupService.default;
|
|
25478
|
-
}, function (_webAtomsWebControlsDistBasicAtomRepeater) {
|
|
25438
|
+
}, function (_styleGlobalStyle) {}, function (_stylesChannelViewStyle) {}, function (_webAtomsWebControlsDistBasicAtomRepeater) {
|
|
25479
25439
|
AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
|
|
25480
25440
|
}, function (_PostView) {
|
|
25481
25441
|
PostView = _PostView.default;
|
|
25482
|
-
}, function (_commonControlsButtonsCopyIcon) {
|
|
25483
|
-
CopyIcon = _commonControlsButtonsCopyIcon.default;
|
|
25484
25442
|
}, function (_controlsTagCloud) {
|
|
25485
25443
|
TagCloud = _controlsTagCloud.default;
|
|
25486
25444
|
}, function (_controlsPostList) {
|
|
@@ -25586,20 +25544,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
25586
25544
|
channel
|
|
25587
25545
|
} = this;
|
|
25588
25546
|
const subject = `${emoji}:${Number(email.emailID).toString(36)}:${headerMessageID}`;
|
|
25589
|
-
|
|
25590
|
-
|
|
25591
|
-
|
|
25592
|
-
|
|
25593
|
-
|
|
25594
|
-
}
|
|
25595
|
-
|
|
25596
|
-
|
|
25597
|
-
text: emoji
|
|
25598
|
-
})), XNode.create("br", null), XNode.create("div", null, "If you have email client configured, you can click on following link."), XNode.create("div", null, XNode.create("a", {
|
|
25599
|
-
href: `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&body=${emoji}&in-reply-to=${headerMessageID}`
|
|
25600
|
-
}, "Email Now"))),
|
|
25601
|
-
title: "Send Email"
|
|
25602
|
-
});
|
|
25547
|
+
const link = `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&body=${emoji}&in-reply-to=${headerMessageID}`;
|
|
25548
|
+
this.element.dispatchEvent(new CustomEvent("shareLink", {
|
|
25549
|
+
detail: {
|
|
25550
|
+
link,
|
|
25551
|
+
title: "React"
|
|
25552
|
+
},
|
|
25553
|
+
bubbles: true
|
|
25554
|
+
}));
|
|
25603
25555
|
});
|
|
25604
25556
|
}
|
|
25605
25557
|
replyEmail(email, ce) {
|
|
@@ -25612,18 +25564,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
25612
25564
|
channel
|
|
25613
25565
|
} = this;
|
|
25614
25566
|
const subject = `${emoji}:${Number(email.emailID).toString(36)}:${headerMessageID}`;
|
|
25615
|
-
|
|
25616
|
-
|
|
25617
|
-
|
|
25618
|
-
|
|
25619
|
-
|
|
25620
|
-
}
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
href: `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&in-reply-to=${headerMessageID}`
|
|
25624
|
-
}, "Email Now"))),
|
|
25625
|
-
title: "Send Email"
|
|
25626
|
-
});
|
|
25567
|
+
const link = `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&in-reply-to=${headerMessageID}`;
|
|
25568
|
+
this.element.dispatchEvent(new CustomEvent("shareLink", {
|
|
25569
|
+
detail: {
|
|
25570
|
+
link,
|
|
25571
|
+
title: "React"
|
|
25572
|
+
},
|
|
25573
|
+
bubbles: true
|
|
25574
|
+
}));
|
|
25627
25575
|
});
|
|
25628
25576
|
}
|
|
25629
25577
|
};
|