@social-mail/social-mail-client 1.2.595 → 1.2.597
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 +22 -3
- 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/BlogService.d.ts.map +1 -1
- package/dist/public/channel/BlogService.js +2 -4
- 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 +5 -2
- package/dist/public/channel/ChannelView.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +268 -22
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +24 -10
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/channel/PostView.d.ts.map +1 -1
- package/dist/public/channel/PostView.js +9 -4
- package/dist/public/channel/PostView.js.map +1 -1
- package/dist/public/channel/UrlService.d.ts.map +1 -1
- package/dist/public/channel/UrlService.js +6 -3
- package/dist/public/channel/UrlService.js.map +1 -1
- package/dist/public/channel/controls/MediaCarousel.d.ts +5 -0
- package/dist/public/channel/controls/MediaCarousel.d.ts.map +1 -0
- package/dist/public/channel/controls/MediaCarousel.js +26 -0
- package/dist/public/channel/controls/MediaCarousel.js.map +1 -0
- package/dist/public/channel/controls/PostList.d.ts.map +1 -1
- package/dist/public/channel/controls/PostList.js +4 -1
- package/dist/public/channel/controls/PostList.js.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.d.ts.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.js +15 -4
- package/dist/public/channel/styles/channelViewStyle.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +22 -3
- 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 +22 -3
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/public/channel/BlogService.ts +2 -4
- package/src/public/channel/ChannelView.tsx +3 -0
- package/src/public/channel/PostView.tsx +5 -1
- package/src/public/channel/UrlService.ts +5 -2
- package/src/public/channel/controls/MediaCarousel.tsx +16 -0
- package/src/public/channel/controls/PostList.tsx +4 -1
- package/src/public/channel/styles/channelViewStyle.ts +15 -4
- package/src/web/page/mails/service/ConversationService.tsx +21 -2
|
@@ -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/common/controls/buttons/CopyIcon","@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"]);
|
|
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/common/controls/buttons/CopyIcon","@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";
|
|
@@ -16216,10 +16216,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
16216
16216
|
getChannel(emailAddress, channel, d) {
|
|
16217
16217
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16218
16218
|
let q = this.entityService.query(Mailbox, "channels", emailAddress, d).where(x => x.datePublished !== null);
|
|
16219
|
-
if (channel) {
|
|
16220
|
-
|
|
16221
|
-
channel = channel.substring(1).toLowerCase() + "@%";
|
|
16222
|
-
}
|
|
16219
|
+
if (channel === null || channel === void 0 ? void 0 : channel.startsWith("@")) {
|
|
16220
|
+
channel = channel.substring(1).toLowerCase() + "@%";
|
|
16223
16221
|
q = q.where({
|
|
16224
16222
|
channel
|
|
16225
16223
|
}, p => x => Sql.text.like(x.emailAddress.emailAddress, p.channel));
|
|
@@ -21574,7 +21572,7 @@ box-sizing: border-box;
|
|
|
21574
21572
|
border-right: solid 1px lightgray;
|
|
21575
21573
|
display: grid;
|
|
21576
21574
|
grid-template-columns: 1fr auto;
|
|
21577
|
-
grid-template-rows: auto auto 1fr auto auto;
|
|
21575
|
+
grid-template-rows: auto auto auto 1fr auto auto auto;
|
|
21578
21576
|
|
|
21579
21577
|
& video, & img {
|
|
21580
21578
|
max-width: 100%;
|
|
@@ -21632,14 +21630,14 @@ box-sizing: border-box;
|
|
|
21632
21630
|
}
|
|
21633
21631
|
& > section {
|
|
21634
21632
|
padding: 10px;
|
|
21635
|
-
grid-row:
|
|
21633
|
+
grid-row: 4;
|
|
21636
21634
|
grid-column: 1 / span 3;
|
|
21637
21635
|
background-color: canvas;
|
|
21638
21636
|
color: canvastext;
|
|
21639
21637
|
}
|
|
21640
21638
|
& > footer {
|
|
21641
21639
|
padding: 10px;
|
|
21642
|
-
grid-row:
|
|
21640
|
+
grid-row: 6;
|
|
21643
21641
|
grid-column: 1/ span 3;
|
|
21644
21642
|
background-color: canvas;
|
|
21645
21643
|
color: canvastext;
|
|
@@ -21657,8 +21655,19 @@ box-sizing: border-box;
|
|
|
21657
21655
|
}
|
|
21658
21656
|
|
|
21659
21657
|
}
|
|
21658
|
+
|
|
21659
|
+
& > carousel-slider {
|
|
21660
|
+
grid-row: 3;
|
|
21661
|
+
grid-column: 1 / span 3;
|
|
21662
|
+
}
|
|
21663
|
+
|
|
21664
|
+
&[has-poster] > carousel-slider {
|
|
21665
|
+
grid-row: 5;
|
|
21666
|
+
grid-column: 1 / span 3;
|
|
21667
|
+
}
|
|
21668
|
+
|
|
21660
21669
|
& > section[data-element=comments] {
|
|
21661
|
-
grid-row:
|
|
21670
|
+
grid-row: 5;
|
|
21662
21671
|
grid-column: 1 / span 3;
|
|
21663
21672
|
padding-left: 20px;
|
|
21664
21673
|
display: flex;
|
|
@@ -23823,7 +23832,7 @@ System.register(["./apiPath"], function (_export, _context) {
|
|
|
23823
23832
|
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/date-time/dist/DateTime", "../../../../common/events/CommonEvents", "../../../../services/BusyProgress", "../../../../services/email/EmailContentDownloader", "./EngagementService", "../../../commands/MailAppEvents", "../../../../common/fileUrl"], function (_export, _context) {
|
|
23824
23833
|
"use strict";
|
|
23825
23834
|
|
|
23826
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl,
|
|
23835
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl, AncestorEnumerator, descendentIterator, DateTime, CommonEvents, BusyProgress, EmailContentDownloader, EngagementService, MailAppEvents, fileUrl, renderMail, ConversationService;
|
|
23827
23836
|
return {
|
|
23828
23837
|
setters: [function (_tslib) {
|
|
23829
23838
|
__awaiter = _tslib.__awaiter;
|
|
@@ -23849,7 +23858,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23849
23858
|
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
23850
23859
|
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
23851
23860
|
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
23852
|
-
|
|
23861
|
+
AncestorEnumerator = _webAtomsCoreDistWebCoreAtomUI.AncestorEnumerator;
|
|
23862
|
+
descendentIterator = _webAtomsCoreDistWebCoreAtomUI.descendentIterator;
|
|
23853
23863
|
}, function (_webAtomsDateTimeDistDateTime) {
|
|
23854
23864
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
23855
23865
|
}, function (_commonEventsCommonEvents) {
|
|
@@ -23887,7 +23897,20 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23887
23897
|
return;
|
|
23888
23898
|
}
|
|
23889
23899
|
msg.innerHTML = html;
|
|
23890
|
-
|
|
23900
|
+
let firstVisibleElement = null;
|
|
23901
|
+
for (const node of descendentIterator(msg)) {
|
|
23902
|
+
if (!firstVisibleElement && node.nodeType === Node.TEXT_NODE) {
|
|
23903
|
+
const {
|
|
23904
|
+
parentElement
|
|
23905
|
+
} = node;
|
|
23906
|
+
if (parentElement.tagName !== "STYLE") {
|
|
23907
|
+
firstVisibleElement || (firstVisibleElement = node.parentElement);
|
|
23908
|
+
}
|
|
23909
|
+
}
|
|
23910
|
+
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
23911
|
+
continue;
|
|
23912
|
+
}
|
|
23913
|
+
const iterator = node;
|
|
23891
23914
|
let cid = iterator.getAttribute("data-content-id");
|
|
23892
23915
|
if (cid) {
|
|
23893
23916
|
const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
|
|
@@ -23896,6 +23919,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23896
23919
|
}
|
|
23897
23920
|
}
|
|
23898
23921
|
if (/^(IMG|VIDEO)$/.test(iterator.tagName)) {
|
|
23922
|
+
firstVisibleElement || (firstVisibleElement = iterator);
|
|
23899
23923
|
const src = iterator.getAttribute("src");
|
|
23900
23924
|
iterator.setAttribute("controls", "true");
|
|
23901
23925
|
iterator.setAttribute("crossorigin", "anonymous");
|
|
@@ -23934,6 +23958,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23934
23958
|
container.appendChild(style);
|
|
23935
23959
|
msg.setAttribute("msg", "msg");
|
|
23936
23960
|
container.appendChild(msg);
|
|
23961
|
+
if (/img|video/i.test(firstVisibleElement === null || firstVisibleElement === void 0 ? void 0 : firstVisibleElement.tagName)) {
|
|
23962
|
+
const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
|
|
23963
|
+
(root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
|
|
23964
|
+
}
|
|
23937
23965
|
if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_c = thread.email) === null || _c === void 0 ? void 0 : _c.senderID)) {
|
|
23938
23966
|
const timeRead = DateTime.now;
|
|
23939
23967
|
thread.timeRead = timeRead;
|
|
@@ -24181,10 +24209,39 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24181
24209
|
|
|
24182
24210
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/service/ConversationService");
|
|
24183
24211
|
|
|
24184
|
-
System.register(["@web-atoms/core/dist/core/XNode"
|
|
24212
|
+
System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context) {
|
|
24213
|
+
"use strict";
|
|
24214
|
+
|
|
24215
|
+
var XNode;
|
|
24216
|
+
function MediaCarousel({
|
|
24217
|
+
email = void 0
|
|
24218
|
+
}) {
|
|
24219
|
+
var _a;
|
|
24220
|
+
if (!((_a = email.attachments) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
24221
|
+
return XNode.create("div", null);
|
|
24222
|
+
}
|
|
24223
|
+
return XNode.create("carousel-slider", null, ...email.attachments.map(x => /image/i.test(x.contentType) ? XNode.create("img", {
|
|
24224
|
+
src: x.downloadUrl
|
|
24225
|
+
}) : /video/i.test(x.contentType) && XNode.create("video", {
|
|
24226
|
+
src: x.downloadUrl
|
|
24227
|
+
})));
|
|
24228
|
+
}
|
|
24229
|
+
_export("default", MediaCarousel);
|
|
24230
|
+
return {
|
|
24231
|
+
setters: [function (_webAtomsCoreDistCoreXNode) {
|
|
24232
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
24233
|
+
}],
|
|
24234
|
+
execute: function () {}
|
|
24235
|
+
};
|
|
24236
|
+
});
|
|
24237
|
+
//# sourceMappingURL=MediaCarousel.js.map
|
|
24238
|
+
|
|
24239
|
+
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/channel/controls/MediaCarousel");
|
|
24240
|
+
|
|
24241
|
+
System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateFormats", "@web-atoms/core/dist/core/types", "../../web/page/mails/service/ConversationService", "./controls/MediaCarousel"], function (_export, _context) {
|
|
24185
24242
|
"use strict";
|
|
24186
24243
|
|
|
24187
|
-
var XNode, DateFormats, UMD, renderMail, commentIcon;
|
|
24244
|
+
var XNode, DateFormats, UMD, renderMail, MediaCarousel, commentIcon;
|
|
24188
24245
|
function PostView({
|
|
24189
24246
|
email = void 0,
|
|
24190
24247
|
itemPath = void 0
|
|
@@ -24197,7 +24254,8 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24197
24254
|
return XNode.create("section", {
|
|
24198
24255
|
"data-element": "blog-item",
|
|
24199
24256
|
"data-comment": isComment,
|
|
24200
|
-
"data-item-path": itemPath
|
|
24257
|
+
"data-item-path": itemPath,
|
|
24258
|
+
"data-msg-container": "true"
|
|
24201
24259
|
}, XNode.create("h4", {
|
|
24202
24260
|
"data-element": "title"
|
|
24203
24261
|
}, XNode.create("label", {
|
|
@@ -24213,7 +24271,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24213
24271
|
email
|
|
24214
24272
|
}))) : XNode.create("section", {
|
|
24215
24273
|
text: email.textBody
|
|
24216
|
-
})), XNode.create(
|
|
24274
|
+
})), XNode.create(MediaCarousel, {
|
|
24275
|
+
email: email
|
|
24276
|
+
}), XNode.create("footer", null, XNode.create("button", {
|
|
24217
24277
|
"data-element": "engage",
|
|
24218
24278
|
"data-click-event": "react-email",
|
|
24219
24279
|
style: "padding:0; margin:0; border: none; outline: none;"
|
|
@@ -24251,6 +24311,8 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24251
24311
|
UMD = _webAtomsCoreDistCoreTypes.UMD;
|
|
24252
24312
|
}, function (_webPageMailsServiceConversationService) {
|
|
24253
24313
|
renderMail = _webPageMailsServiceConversationService.renderMail;
|
|
24314
|
+
}, function (_controlsMediaCarousel) {
|
|
24315
|
+
MediaCarousel = _controlsMediaCarousel.default;
|
|
24254
24316
|
}],
|
|
24255
24317
|
execute: function () {
|
|
24256
24318
|
commentIcon = "💬";
|
|
@@ -24443,7 +24505,7 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
|
|
|
24443
24505
|
return `/${cid}/tag/${name}`;
|
|
24444
24506
|
},
|
|
24445
24507
|
getParameters() {
|
|
24446
|
-
var _a, _b;
|
|
24508
|
+
var _a, _b, _c;
|
|
24447
24509
|
const url = (_a = window.pageUrl) !== null && _a !== void 0 ? _a : new URL(location.href);
|
|
24448
24510
|
let pathname = url === null || url === void 0 ? void 0 : url.pathname;
|
|
24449
24511
|
const detail = url.searchParams.get("detail");
|
|
@@ -24468,6 +24530,7 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
|
|
|
24468
24530
|
};
|
|
24469
24531
|
}
|
|
24470
24532
|
switch (slug) {
|
|
24533
|
+
case "tag":
|
|
24471
24534
|
case "tags":
|
|
24472
24535
|
tag = p2;
|
|
24473
24536
|
slug = null;
|
|
@@ -24479,8 +24542,10 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
|
|
|
24479
24542
|
default:
|
|
24480
24543
|
const {
|
|
24481
24544
|
1: emailIDBase36
|
|
24482
|
-
} = /\-([^\-]+)\/?$/.exec(slug);
|
|
24483
|
-
|
|
24545
|
+
} = (_c = /\-([^\-]+)\/?$/.exec(slug)) !== null && _c !== void 0 ? _c : [];
|
|
24546
|
+
if (emailIDBase36) {
|
|
24547
|
+
emailID = Base36.decode(emailIDBase36);
|
|
24548
|
+
}
|
|
24484
24549
|
}
|
|
24485
24550
|
return {
|
|
24486
24551
|
channel,
|
|
@@ -24677,9 +24742,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
24677
24742
|
flex-wrap: wrap;
|
|
24678
24743
|
gap: 10px;
|
|
24679
24744
|
|
|
24745
|
+
& > * {
|
|
24746
|
+
flex: 1 1 100%;
|
|
24747
|
+
}
|
|
24748
|
+
|
|
24680
24749
|
& > header {
|
|
24681
24750
|
display: block;
|
|
24682
|
-
flex: 1 1 100%;
|
|
24683
24751
|
color: var(--accent-color, gray);
|
|
24684
24752
|
background-color: #cccccc0a;
|
|
24685
24753
|
padding: 5px;
|
|
@@ -25042,10 +25110,185 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
25042
25110
|
|
|
25043
25111
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/public/channel/PostSummary");
|
|
25044
25112
|
|
|
25045
|
-
System.register(["tslib", "@web-atoms/core/dist/core/
|
|
25113
|
+
System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/dist/services/FetchBuilder"], function (_export, _context) {
|
|
25114
|
+
"use strict";
|
|
25115
|
+
|
|
25116
|
+
var __awaiter, sleep, FetchBuilder, CustomElementsProxy, WebComponents, addAttributes;
|
|
25117
|
+
_export("WebComponents", void 0);
|
|
25118
|
+
return {
|
|
25119
|
+
setters: [function (_tslib) {
|
|
25120
|
+
__awaiter = _tslib.__awaiter;
|
|
25121
|
+
}, function (_webAtomsCoreDistCoreSleep) {
|
|
25122
|
+
sleep = _webAtomsCoreDistCoreSleep.default;
|
|
25123
|
+
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
25124
|
+
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
25125
|
+
}],
|
|
25126
|
+
execute: function () {
|
|
25127
|
+
CustomElementsProxy = class CustomElementsProxy {
|
|
25128
|
+
constructor(elements = []) {
|
|
25129
|
+
this.elements = elements;
|
|
25130
|
+
}
|
|
25131
|
+
define(name, factory) {
|
|
25132
|
+
this.elements.push({
|
|
25133
|
+
name,
|
|
25134
|
+
factory
|
|
25135
|
+
});
|
|
25136
|
+
}
|
|
25137
|
+
};
|
|
25138
|
+
addAttributes = (target, values) => {
|
|
25139
|
+
Object.defineProperty(target.prototype, "editableAttributes", {
|
|
25140
|
+
enumerable: true,
|
|
25141
|
+
configurable: true,
|
|
25142
|
+
get() {
|
|
25143
|
+
return values(this);
|
|
25144
|
+
}
|
|
25145
|
+
});
|
|
25146
|
+
};
|
|
25147
|
+
_export("WebComponents", WebComponents = class WebComponents {
|
|
25148
|
+
static run2(frame, doc) {
|
|
25149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25150
|
+
const url = this.path + "/dist/editable.js";
|
|
25151
|
+
const sandbox = frame.getAttribute("sandbox");
|
|
25152
|
+
frame.setAttribute("sandbox", "allow-same-origin allow-scripts allow-popups allow-forms");
|
|
25153
|
+
const text = yield FetchBuilder.get(url).responseAsText();
|
|
25154
|
+
const win = doc.defaultView;
|
|
25155
|
+
win.eval(`window.addEventListener("unsafeEval", (e) => eval(e.detail) , { once: true });`);
|
|
25156
|
+
win.dispatchEvent(new CustomEvent("unsafeEval", {
|
|
25157
|
+
detail: text
|
|
25158
|
+
}));
|
|
25159
|
+
setTimeout(() => frame.setAttribute("sandbox", ""), 100);
|
|
25160
|
+
});
|
|
25161
|
+
}
|
|
25162
|
+
static run(frame, doc) {
|
|
25163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25164
|
+
const url = this.path + "/dist/editable.js";
|
|
25165
|
+
frame.sandbox.add("allow-scripts");
|
|
25166
|
+
const text = yield FetchBuilder.get(url).responseAsText();
|
|
25167
|
+
const proxy = new CustomElementsProxy();
|
|
25168
|
+
const win = doc.defaultView;
|
|
25169
|
+
const globals = {
|
|
25170
|
+
window: win,
|
|
25171
|
+
document: win.document,
|
|
25172
|
+
Object: win.Object,
|
|
25173
|
+
Promise,
|
|
25174
|
+
console: win.console,
|
|
25175
|
+
Boolean: win.Boolean,
|
|
25176
|
+
String: win.String,
|
|
25177
|
+
Number: win.Number,
|
|
25178
|
+
Math: win.Math,
|
|
25179
|
+
Date: win.Date,
|
|
25180
|
+
Proxy: win.Proxy,
|
|
25181
|
+
Map: win.Map,
|
|
25182
|
+
Array: win.Array,
|
|
25183
|
+
RegExp: win.RegExp,
|
|
25184
|
+
PromiseRejectionEvent: win.PromiseRejectionEvent,
|
|
25185
|
+
setTimeout: (cb, n) => setTimeout(cb, n),
|
|
25186
|
+
setInterval: (cb, n) => setInterval(cb, n),
|
|
25187
|
+
clearTimeout: n => clearTimeout(n),
|
|
25188
|
+
clearInterval: n => clearInterval(n),
|
|
25189
|
+
Reflect: win.Reflect,
|
|
25190
|
+
requestAnimationFrame: win.requestAnimationFrame,
|
|
25191
|
+
requestIdleCallback: win.requestIdleCallback,
|
|
25192
|
+
Symbol: win.Symbol,
|
|
25193
|
+
HTMLElement: win.HTMLElement,
|
|
25194
|
+
MutationObserver: class extends win.MutationObserver {
|
|
25195
|
+
constructor(a) {
|
|
25196
|
+
super(a);
|
|
25197
|
+
}
|
|
25198
|
+
},
|
|
25199
|
+
IntersectionObserver: class extends win.IntersectionObserver {
|
|
25200
|
+
constructor(a) {
|
|
25201
|
+
super(a);
|
|
25202
|
+
}
|
|
25203
|
+
},
|
|
25204
|
+
customElements: proxy
|
|
25205
|
+
};
|
|
25206
|
+
win.HTMLElement.prototype.addEventListener = function (type, listener, options) {
|
|
25207
|
+
return win.EventTarget.prototype.addEventListener.call(this, type, listener, options);
|
|
25208
|
+
};
|
|
25209
|
+
const keys = Object.keys(globals);
|
|
25210
|
+
const init = `${keys.map(x => `var ${x} = globalWindow[${JSON.stringify(x)}]`).join(";\n")}`;
|
|
25211
|
+
const sourceMappingURL = this.path + "/dist/editable.js.map";
|
|
25212
|
+
const script = `
|
|
25213
|
+
"use strict";
|
|
25214
|
+
${init};
|
|
25215
|
+
Symbol.dispose ||= Symbol("dispose");
|
|
25216
|
+
;${text.replace("//# sourceMappingURL=editable.js.map", "//# sourceMappingURL=" + sourceMappingURL)}
|
|
25217
|
+
`;
|
|
25218
|
+
const fx = new doc.defaultView.Function("globalWindow", script);
|
|
25219
|
+
fx.call(win, globals);
|
|
25220
|
+
addAttributes(win.HTMLElement, () => [{
|
|
25221
|
+
name: "title",
|
|
25222
|
+
type: "string",
|
|
25223
|
+
display: "Tool Tip"
|
|
25224
|
+
}, {
|
|
25225
|
+
name: "lang",
|
|
25226
|
+
type: "lang",
|
|
25227
|
+
display: "Language"
|
|
25228
|
+
}]);
|
|
25229
|
+
addAttributes(win.HTMLAnchorElement, () => [{
|
|
25230
|
+
name: "href",
|
|
25231
|
+
type: "string",
|
|
25232
|
+
display: "Link"
|
|
25233
|
+
}, {
|
|
25234
|
+
name: "target",
|
|
25235
|
+
type: "string",
|
|
25236
|
+
suggest: ["_blank"],
|
|
25237
|
+
display: "Target"
|
|
25238
|
+
}]);
|
|
25239
|
+
addAttributes(win.HTMLImageElement, () => [{
|
|
25240
|
+
name: "src",
|
|
25241
|
+
type: "image",
|
|
25242
|
+
display: "Image"
|
|
25243
|
+
}, {
|
|
25244
|
+
name: "alt",
|
|
25245
|
+
type: "string",
|
|
25246
|
+
display: "Alt"
|
|
25247
|
+
}]);
|
|
25248
|
+
addAttributes(win.HTMLVideoElement, () => [{
|
|
25249
|
+
name: "src",
|
|
25250
|
+
type: "video",
|
|
25251
|
+
display: "Video"
|
|
25252
|
+
}, {
|
|
25253
|
+
name: "poster",
|
|
25254
|
+
type: "image",
|
|
25255
|
+
display: "Poster"
|
|
25256
|
+
}, {
|
|
25257
|
+
name: "autoplay",
|
|
25258
|
+
type: "boolean",
|
|
25259
|
+
display: "Auto Play"
|
|
25260
|
+
}, {
|
|
25261
|
+
name: "loop",
|
|
25262
|
+
type: "boolean",
|
|
25263
|
+
display: "Loop"
|
|
25264
|
+
}, {
|
|
25265
|
+
name: "muted",
|
|
25266
|
+
type: "boolean",
|
|
25267
|
+
display: "Muted"
|
|
25268
|
+
}]);
|
|
25269
|
+
yield sleep(10);
|
|
25270
|
+
for (const {
|
|
25271
|
+
name,
|
|
25272
|
+
factory
|
|
25273
|
+
} of proxy.elements) {
|
|
25274
|
+
doc.defaultView.customElements.define(name, factory);
|
|
25275
|
+
}
|
|
25276
|
+
frame.sandbox.remove("allow-scripts");
|
|
25277
|
+
});
|
|
25278
|
+
}
|
|
25279
|
+
});
|
|
25280
|
+
WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.122`;
|
|
25281
|
+
}
|
|
25282
|
+
};
|
|
25283
|
+
});
|
|
25284
|
+
//# sourceMappingURL=webComponentsPath.js.map
|
|
25285
|
+
|
|
25286
|
+
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath");
|
|
25287
|
+
|
|
25288
|
+
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/core/dist/web/services/PopupService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "./PostView", "../../common/controls/buttons/CopyIcon", "./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"], function (_export, _context) {
|
|
25046
25289
|
"use strict";
|
|
25047
25290
|
|
|
25048
|
-
var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, BlogService, XNode, Action, EmojiPopup, PopupService, AtomRepeater, PostView, CopyIcon, TagCloud, PopularPosts, RecentPosts, BlogHeader, Pack, InfiniteRepeater, Bind, PostSummary, UrlService, channel, emailID, tag, author, commentIcon, ChannelMessage;
|
|
25291
|
+
var __awaiter, __decorate, __metadata, InjectProperty, AtomControl, BlogService, XNode, Action, EmojiPopup, PopupService, AtomRepeater, PostView, CopyIcon, TagCloud, PopularPosts, RecentPosts, BlogHeader, Pack, InfiniteRepeater, Bind, PostSummary, UrlService, WebComponents, channel, emailID, tag, author, commentIcon, ChannelMessage;
|
|
25049
25292
|
return {
|
|
25050
25293
|
setters: [function (_tslib) {
|
|
25051
25294
|
__awaiter = _tslib.__awaiter;
|
|
@@ -25089,6 +25332,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
25089
25332
|
PostSummary = _PostSummary.default;
|
|
25090
25333
|
}, function (_UrlService) {
|
|
25091
25334
|
UrlService = _UrlService.UrlService;
|
|
25335
|
+
}, function (_siteEditorEditorWebComponentsPath) {
|
|
25336
|
+
WebComponents = _siteEditorEditorWebComponentsPath.WebComponents;
|
|
25092
25337
|
}],
|
|
25093
25338
|
execute: function () {
|
|
25094
25339
|
({
|
|
@@ -25111,6 +25356,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
25111
25356
|
var _a;
|
|
25112
25357
|
var _b;
|
|
25113
25358
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25359
|
+
this.app.installScript(`${WebComponents.path}/dist/main.js`);
|
|
25114
25360
|
this.channel = yield this.blogService.getChannel(void 0, channel, void 0);
|
|
25115
25361
|
const {
|
|
25116
25362
|
mailboxID: channelID
|