@social-mail/social-mail-client 1.9.44 → 1.9.46

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.
@@ -29654,10 +29654,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
29654
29654
 
29655
29655
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/home/HomePage");
29656
29656
 
29657
- System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "./HomePage.global.css"], function (_export, _context) {
29657
+ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@positron-js/context/dist/PositronInBrowser", "./HomePage.global.css", "../../../common/menu/MenuService", "../../commands/AppCommands"], function (_export, _context) {
29658
29658
  "use strict";
29659
29659
 
29660
- var __awaiter, XNode, ContentPage, HomePage;
29660
+ var __awaiter, XNode, ContentPage, PositronInBrowser, MenuService, AppCommands, HomePage;
29661
29661
  _export("default", void 0);
29662
29662
  return {
29663
29663
  setters: [function (_tslib) {
@@ -29666,12 +29666,26 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
29666
29666
  XNode = _webAtomsCoreDistCoreXNode.default;
29667
29667
  }, function (_webAtomsWebControlsDistMobileAppMobileApp) {
29668
29668
  ContentPage = _webAtomsWebControlsDistMobileAppMobileApp.ContentPage;
29669
- }, function (_HomePageGlobalCss) {}],
29669
+ }, function (_positronJsContextDistPositronInBrowser) {
29670
+ PositronInBrowser = _positronJsContextDistPositronInBrowser.default;
29671
+ }, function (_HomePageGlobalCss) {}, function (_commonMenuMenuService) {
29672
+ MenuService = _commonMenuMenuService.default;
29673
+ }, function (_commandsAppCommands) {
29674
+ AppCommands = _commandsAppCommands.default;
29675
+ }],
29670
29676
  execute: function () {
29671
29677
  _export("default", HomePage = class HomePage extends ContentPage {
29672
29678
  init() {
29673
29679
  return __awaiter(this, void 0, void 0, function* () {
29674
29680
  this.renderer = XNode.create("div", null, XNode.create("home-page", null));
29681
+ if (PositronInBrowser.isAvailable) {
29682
+ const menuService = this.resolve(MenuService);
29683
+ yield menuService.firstSearch;
29684
+ const id = menuService.mailboxes[0].mailboxID;
29685
+ AppCommands.openMailbox.dispatch({
29686
+ id
29687
+ });
29688
+ }
29675
29689
  });
29676
29690
  }
29677
29691
  });